October 31st, 2008
The following code generates a dictionary of all key/value in a configuration file.
import ConfigParser
config = {}
cp = ConfigParser.ConfigParser()
cp.read('test.cnf')
for section in cp.sections():
config[section] = dict(cp.items(section))
print config['section1']['key1']
Posted in Uncategorized | No Comments »
September 30th, 2008
In an attempt to have the best programming environment setup, I ordered the Das Keyboard ultimate.

I simply love the mechanical sound it makes.
BTW, VIM+Python rocks 
Soon a post of what I have done to improve my Python coding with VIM.
Posted in Uncategorized | 4 Comments »
September 20th, 2008
If you are somebody who spends 12+ hours everyday with VIM and Konsole, you have to use this theme for both.
Vim
Konsole
Posted in Uncategorized | No Comments »
September 19th, 2008
Are we moving towards a police state?

Posted in Uncategorized | No Comments »
September 17th, 2008
Federal Investigating Agency to combat terror
Great news. I sincerely pray that this works out.
Posted in Uncategorized | No Comments »
September 17th, 2008
So apparently my development machine would be a Linux box and since I spend most of the time at work, Marsedit and Mac wont work. Did a quick search for blog editors for Linux and Google threw up this link. Considering I now use Firefox instead of Safari, a FF blog editor plugin seems to make sense. Anyway, my FF is open 100% of the time so its just a matter of pressing F8 and writing.
Posted in Blog | No Comments »
August 20th, 2008
Finally, I used Python enough to provide my own recipe.
Sorting a list of dictionary based on a key value.
Job well done!
Posted in Programming, python | No Comments »
August 14th, 2008
Python blogger v1.0 released.
As soon as I get time, I plan to implement Blogger class using GData API and finish implementing Movable Type API.
Posted in Programming, pyblog | No Comments »
August 13th, 2008
I am not sure if I got my readers acquainted with the fact that I am getting my first (and probably my only tattoo) on my whole back. Design can be found here.
I already have had 7 sessions with 4 more to go and with every session I have learnt a new trick to reduce the pain of the process. Here are the things I recommend:
- Eat food.
- Upload all your loud music on your iPod.
- Blast music in your ears while the tattoing is done. Loud music will take your mind off the pain.
- Do open mouth loud breathing. You might look like a dick but trust me, it helps a lot by relaxing your muscles.
BTW, for anybody in Iowa City, I am getting my tattoo done by the excellent artist Scott Warren aka Scotty at Nemesis Studio.
Posted in Tips | No Comments »
August 7th, 2008
Python Blogger.
This time I 100% intend to complete the project.
Posted in Blog, Programming, pyblog, python | 2 Comments »