Update for Wednesday, 6 April 2011

redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.

It’s great! Recommend. I’ve put it in gnome-session-properties‘ startup programs.

Bottle

Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.

It’s just a single file–convenient for quick projects.

Accept-Ranges, Range headers

I knew HTTP spec had provisions for partial downloads–that makes resumable HTTP downloads and “download accelerators” work. Needed this for my quick Bottle-powered project, and it’s real easy! If server supports byte range retrieval, it says so with a response header:

Accept-Ranges: bytes

When client wants to do a partial download, it uses Range request header:

Range: bytes=0-1000
$ python
>>> import httplib
>>> conn = httplib.HTTPConnection("www.gutenberg.org")
>>> conn.request("GET", "/cache/epub/11/pg11.txt", headers={"range" : "bytes=71198-71240"})
>>> print conn.getresponse().read()
we're all mad here. I'm mad.
You're mad.'

sshuttle

Transparent proxy server that works as a poor man’s VPN. Forwards over ssh. Doesn’t require admin. Works with Linux and MacOS. Supports DNS tunneling.

Works, and way easier than PPTP or OpenVPN to get running.