Cyclone Gaja – this year’s natural disaster which has landed like a stab in the gut for Tamil Nadu. … Cyclone Gaja is a major disaster, and its economic impact in Tamil Nadu is comparable to that of the tsunami of 2004. – The Hindu After the disaster, the Tamil Nadu’s Chief Minister announced a…… Continue reading Gaja Relief & Disaster Management Numbers
When I moved the site from Jekyll to WordPress, I was asked to create a site icon by WordPress. I was trying to play around with the letter from “t” from my screen name “tecoholic” in a couple of Vector editors using different fonts, handrawn symbols …etc., and finally landed on what I know best.…… Continue reading Creating an Icon for my blog
Sorting is simplified in Python with sorted(). You can even sort with complex rules.
In situations where you have a list of objects and have to retrieve then in random order, dictionaries can act as lookup tables. This tip is not very obvious, hence this explanation: This method employs a iterator looping through the list of users every time we have to find a user, which means we have…… Continue reading Python Tip #8 – reducing looping by using dicts
Sometimes we have to deal with external objects and their attributes. getattr() can save you at those times.
Merge or combine dictionaries ** is the unpacking operator
Check for existence of a key in dictionary and retrieve its value if present.