Power off: Take out battery
Power on: Take out battery, plug usb charger, put back battery.
Screen on: Press Volume button. Keep Screen Lock as None for this to work.
A home widget to turn off display:
An app that allows Volume button to unlock:
Download 64-bit/32-bit python from the python.org download page
to install setuptools
curl http://python-distribute.org/distribute_setup.py | python
sudo env ARCHFLAGS=”-arch x86_64” pip install pycurl
[W 101119 13:49:59 iostream:190] Read error on 33: [Errno 104]
Connection reset by peer
Tornado doesn’t have a timeout for idle connections - it will let the
connection stay alive as long as the client holds the connection open.
It’s possible you’ve got some other kind of file descriptor leak, but
if the problem is idle connections then you can either disable all
connection reuse by passing no_keepalive=True to your HTTPServer
constructor, or run behind nginx, which is (I assume) more
sophisticated about managing idle connections.