April 2011
1 post
5 tags
Getting the "double tap on the led to disable...
While I’m loving my new notebook (Hp Envy 14), it doesn’t play completely nice with Linux yet. Like there is an led on the envy’s touchpad, on which you can double tap to toggle touchpad on/off. That functionality isn’t supported out of the box and requires patches to both the kernel and the synaptics touchpad driver. Synaptics driver patch (for 1.4.0) Kernel patch (for...
Apr 4th
2 notes
January 2011
2 posts
Teach Yourself Programming in Ten Years →
Peter Norvig’s article. So true and a must read.
Jan 16th
1 note
3 tags
CloudApp for Linux (and Windows) - py-cloudapp
CloudApp is one great way to share your files elegantly. And the features they provide even with their free accounts are great Create unlimited bookmarks Upload 10 files a day (max file size 25MB) Update: keep your files forever The only problem is it’s Mac OS centric, but the CloudApp team provides developers a nice api so that other platforms don’t get left out. Here is one...
Jan 14th
6 notes
December 2010
1 post
3 tags
Making a HTTP DELETE request with urllib2
Yet another post to overcome yet another urllib2 quirk. Using the default urllib2 module shipped with python, one can only make HTTP GET and POST requests. The code that decides which method to use is something like this (in urllib2.Request) def get_method(self): if self.has_data(): return 'POST' else: return 'GET' Thankfully you can make DELETE (and also HEAD and PUT...
Dec 19th