Affichage des articles dont le libellé est modifying. Afficher tous les articles
Affichage des articles dont le libellé est modifying. Afficher tous les articles

lundi 24 mars 2014

String modifying error, trying to delete data in string topic




On 24/03/2014 16:20, mikie wrote:
> Here is some code:
> import socket,sys
>
> s=socket.socket()
> port=int(sys.argv[1])
> s.bind(("127.0.0.1",port))
> s.listen(2)
> cls,addr=s.accept()
>
> data=cls.recv(1024)
> f=data.pop("Proxy-Connection")
> cls.close()
>
> Im trying to delete some headers in the request but get an error saying:
> 'str' object has no attribute 'pop'
>
> How can I modify data received from the client?
>


Strings are immutable so you'll need string methods to manipulate your
data see
http://docs.python.org/3/library/std...uence-type-str

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com







vendredi 21 février 2014

[Q] Modifying APK files. Why won't "apktool" recompile? topic




Modifying Mms.apk. I installed Java, and used the following command to decompile the .apk:
apktool.jar d Mms.apk

I then made my changes, and am trying to recompile with the command:
apktool.jar b Mms Mms.apk

The guides I'm following say this will create a "dist" folder within the Mms folder, containing the new (but unsigned) .apk file. This doesn't happen.
No output is given in Command Prompt.

A "build" folder is created, however. Inside is an "apk" folder. Inside of that is a "classes.dex" file.

Why won't apktool create the dist folder?
How can I get the recompiled apk file?





mercredi 29 janvier 2014

[Q] Modifying in-call screen via AOSP topic




I've read elsewhere that “Developers cant customize the in-call screen because of security concerns”

So, I am trying to understand the functionality of the in-call screen at the source level.

Can any Android devs, especially those that have created their own custom ROMs, tell me which specific classes in the AOSP are responsible for both display and functionality of this screen?