Skip to main content

Posts

My new laptop

A week ago I bought an HP G6-2005AX Notebook. Basic specs: AMD A8-4500M  Vision Quadcore CPU with Radeon HD Graphics Dedicated GPU 2MB ATI Radeon 6840 64 bit OS (Windows Home Basic, Linux) 8 GB RAM 500 GB harddisk (Toshiba ATA) I bought this from an HP dealer near Indiranagar and I paid INR 34,000 all inclusive. While I started running Ubuntu 12.04 LTS Precise Pangolin  , I quickly migrated to Fedora Core 17. Everything worked out of the box (on both distro), but I like Fedora better, because it gives me more control over the machine. I am having some difficulties in getting the AMD Catalyst 12.6 driver running for the dedicated GPU. The system is workable, just that I am not able to squeeze the best 3D from the card that I paid for. Which is good; were it not for the card, I would have been playing quake instead of tinkering with the kernel. Problems build character. Here is my first bug report/note on Fedora with the 3.6.0 kernel not ready fr my computer (...

Handling Unicode filenames in Windows with Python 3.0

You will find this post useful if 1. You are on Windows 2. You are using Python 3.0 or above 3. You are having problems with os.walk or os.listdir because some of your filenames are encoding in Unicode While using os.walk, you encounter and error similar to the one below. File "C:\Python32\lib\encodings\cp437.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u2013' in position 226: character maps to What would have gotten you going in Python 2.7 but will not work in Python 3.0: rootdir = ru'D:\COUNTRY\ROADS\' for (root, dirname, filename) in os.walk(rootdir): You will be irreverently pointed out a Syntax error. What will work (or to be more precise, worked on my system !): rootdir = r'D:\COUNTRY\ROADS\' for (root, dirname, filename) in os.walk(rootdir.encode('utf-8')): # do your stuff here Useful links: If you are on Python 2.6 ...

5 Ways to Kill a Post-Mortem

Software projects fail. One of the techniques you could apply to a project not going well is a post-mortem. A meeting where the critical participants meet to discuss what is going wrong. Preferably when there is still time to salvage things. But before you run a post-mortem of a project, here are some things you would want to consciously avoid. Hopefully as a project lead or in similar capacity, this will help you facilitate the meeting and shape positive outcomes. It starts with you.  The Final Blame-Game The idea of a post-mortem is to take an earnest look at some of the things that went wrong and understand why and how to avoid them. In brief, make mistakes, but please make new mistakes . If the meeting degenerates into blame-fixing, then you are headed in the wrong direction. Rule the meeting politely but iron glove. Don't let it become a mudslinging match. If you have been deeply involved in the project, chances are high that you would have your own frustr...

Siddhi talks at GE

  Yesterday, Siddharta came over to our GE office. A few of us huddled in a small quiet conf. room and Siddharta gave a splendid demo of the software he is working on . And we had some great discussion on agile, agile in restrained environments, such as those controlled by regulatory agencies like FDA. Post session, Lavanya , Siddharta and I finished off at the cafeteria jostling details and efficacy of stand-ups.   I met Siddharta at Barcamp Bangalore 3, a few months back. A guy with incisive views, he is one of the more-meat-less-talk tech-entrepreneurs I have come across. It is good to see fruitful social and commercial relationships spring up from Barcamp -- he has some good leads now.   I struggle to make some people understand that one aspect of the Barcamp community is to build and support business relationships and networks. Some people get mad at even one single job-post. "Don't spam me", the vociferous will cry, giving little or no thought to somebody...

Barcamp Bangalore 4: Collectively speaking

  Bangalore is a fascinating city. BCB4 is happening on 28th and 29th of this month at the Indian Institute of Management.   The Barcamp out here is spectacular for at least three reasons. big With over 600 registrants at BCB3 in March/April, this is the largest Barcamp in the word. And if you talk to the people who make it happen, they will, in classical duality-of-life style, tell you that quality rules over quantity. times Organising anything of this size is rope-climbing tough. And doing that once a quarter. Oh my God. And that too, when there is no direct monetary profit to be reaped. I am neither an economist nor a sociologist (And never wanted to be), but this calls for some serious introspection into human behaviour. new Bangalore takes the definition of an unconference to a new level. When the definition of unconference itself was starting to gather a cruddy layer of formality -- the same new Ajax, Web 2.0, ROR, Bangalore just tore the definitions with BCB3...

The counter-inductive science

The most unmathematical thing about computers is that the law of induction does not hold. Just because things have gone right for 74,362 iterations does not guarantee that things will be all right on the 74,363 rd time. Smarty error : Now that's a neat one !