Praveen's Blog

An Eternal Quest for Incremental Improvement

  • My (ex-)manager David Carlton has decided to leave us to join Playdom. I learned a lot in the past two years working with him. We are going to miss him a lot! Playdom is fortunate to have such a talented individual on board. I am sure he will be ...

I have pre-ordered Apple iPhone 3G from my neighboring AT&T store last Sunday (Jul 20). I have done this as purchasing from the Apple Store wouldn't let me to apply my FAN discounts on the plan. Applying it latter would reflect only after a couple of billing cycles ...


Lately I was encountering segmentation fault with one of our processes and found that it was not dumping core file even though we asked it by using appropriate ulimit setting. It was set-UIDed root. Then I discovered that the default behavior of set-UID, set-GID processes is not to dump core ...


Assume that you have done an accidental commit of a wrong version into the svn repository and wondering how to revert that commit, this tip is for you.

Let us take a case where one has committed a revision 543 of a file something.cc to the trunk and he ...


If one wants to check if a given thread or a process is alive in the system, here is the way of doing it. This code snippet is guaranteed to work on Linux NPTL threads. What we need as an input to this function is the tid (thread id) given ...


I have just come across Google code search. I am not sure when this one is launched. This service is awesome. You can search for a code snippet and get the results from archived files, svn, cvs, etc. You also get the information about the programming language, license and more ...


I always have an interest towards interview questions and puzzles, especially the programming ones. Here are some of the trivial C and C++ puzzles that I have come across. Please note that the solutions that I have given are tested, but no guarentee that they are the most efficient ones ...


I was debugging a malfunctioning code in my project. The part of the code that I debugged involved some endian based computations. I just guessed that there might be some endian based issues in the code. But when I looked into the details of the code, they have handled the ...


One of the most common interview questions for software professionals is "How do you find a loop in a singly linked list?". Most of the people tend to think in the recursive way to solve this problem. The truth is that the most optimal solution for this problem lies out ...


A few months back we were introduced to the a subset of eXtreme Programming practices like Pair Programming and Test Driven Development. At the beginning I was in the impression that Pair Programming will not work out well for my style of programming. But slowly, I am leaning more towards ...