Sunday, January 13, 2013

The Zen of Python

  • Beautiful is better than ugly.
  • Explicit is better than implicit.
  • Simple is better than complex.
  • Complex is better than complicated.
  • Flat is better than nested.
  • Sparse is better than dense.
  • Readability counts.
  • Special cases aren't special enough to break the rules. Although practicality beats purity.
  • Errors should never pass silently. Unless explicitly silenced.
  • In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch.
  • Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea.
  • Namespaces are one honking great idea -- let's do more of those!

Wednesday, January 2, 2013

Interesting day with my Laptop!!


Over the new year long weekend, besides the new year celebrations and family time, I was also able to accomplish an enjoyable wishful activity of mine - 'Cleaning Heat Sink and Fan of my HP Laptop'.

The CPU temperature of my 5 year oldie used to remain in the range of 50 to 70 deg C.

I referred the below two resources to prepare for it and followed the instructions shown. During the steps I also had to Google for more resources and some steps but the below ones were the baseline which I used.

I enjoyed the entire series of episodes which began with an idea, then gathering courage to do it, learning the how to part, managing expectations for getting the required time out from family time on a holiday, executing it, climax thrill of the laptop not working, researching for new laptops, then finally finding the most silly looking miraculous trick to see it work, test it for a couple of days, use it for something productive, and ... share it as an achievement.

Magic steps that worked:

Now the CPU temperature is in the range of 30 to 45 deg C. Coool!!!

Last but not the least I was almost about to buy a new laptop (maybe a Macbook), so I was able to delay an expense of at least 1000 SGD, not sure till when. Super!