Recharging my batteries

I took one week off from work to do nothing. Just to sit at home and relax. Usually vacation turn out to be more stressful than going to work. Not that I enjoy travelling, which I do, but more often than not there is very little relaxing going on. So I thought, why don’t I …

Mid-year check-in

Summer is already over. 2012 ends in a little more than 4 months. I am now 34 years old  and my nephew, whose birth coincided with my arrival in US, is now 6 years old. We celebrated our 3rd wedding anniversary last weekend. I can’t imagine how quickly time is flying. Forbes suggests that it is a …

Learning from Data

A new trend has started with the online Artificial Intelligence class taught by Sebastian Thrun and Peter Norvig in partnership with Stanford. Following the success trail blazed by Thrun and Norvig, quite a few courses have followed suit: Software Engineering for Software as a Service (Berkeley) Natural Language Processing (Stanford) Game Theory (Stanford) Probabilistic Graphical Models (Stanford) Cryptography (Stanford) Design and …

Adding tracing to your code

One thing you might want in your code is to add tracing to it so that your application log file will contain entries for all function entries and exits. This is tremendously useful when debugging a running application especially when you cannot connect a debugger to it for any reason. It is also very helpful …

Broken Windows

Once upon a time, in a place far far away, there was an idyllic small town. The town had a beautiful street with elegant houses on either side and big green trees gave shade to the sidewalks. The houses had large french doors and windows made with expensive panes of glass. Kids played ball on …

New year, new theme.

After a long time I decided to change the theme of my blog. I had recently changed the name of the blog to Mélange (previously it was called .entrypoint), so I thought it would be good to change the look and feel as well. I was using Classic Beauty, created by esn Studio, for a …

Year twentyTwelve = new Year()

It is that time of the year when you sweep some stuff under the rug and decide that they are a thing of the past. It is also the time when you get the feeling that you need a brand new start. The new year is a time of renewing resolutions, forgiving yourself for your …

RAII – Resource Acquisition Is Initialization

Resource Acquisition Is Initialization (RAII) is a programming idiom used in C++ for resource management. To understand it clearly let us look at a common programming problem. Consider a method that needs to be synchronized across multiple threads. If you were programming against Win32 and if you were using Critical Sections as your synchronization primitive, …

What I miss about C#

It has been a month or so since I started programming in C++. To be frank it is not the monster that I thought it would be and it wasn’t that hard to move to C++ from C#. Granted I haven’t faced any of the notorious and nasty bugs that is difficult to debug in …

Coming Home

C++ was my first programming language. We were “taught” C++ in our first semester for our Engineering curriculum. Needless to say it was a nightmare. C++ is too big and too hard as a first programming language. At least it was for me. I didn’t own a computer at that time and I hadn’t really …