Tuesday, February 12, 2013

Making builtin webcam driver work for Ubuntu HP laptop

Thank you Universe and bitbucket.org.

After trying a lot of solutions mentioned over links found on internet, I could see the webcam work using the instructions mentioned at below link:

https://bitbucket.org/ahixon/r5u87x


$ sudo apt-get install libglib2.0-dev libusb-dev build-essential gcc automake mercurial
 $ hg clone http://bitbucket.org/ahixon/r5u87x/
 $ cd r5u87x
 $ make
 $ sudo make install
 $ sudo r5u87x-loader --reload

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!!

Woila!!

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.

http://www.ifixit.com/Guide/Installing+-+Cleaning+HP+Pavilion+dv6000+Fan/3826/1

http://www.youtube.com/watch?v=qcy0YSOmX4E&list=WL78DF75D50D149DD5

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:
http://h30434.www3.hp.com/t5/Notebook-Lockups-Freezes-Hangs/Can-t-wake-up-laptop-HP-Pavilion-dv6000/td-p/287126/page/4#

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!