Profiling using Netbeans profiler
I just used Netbeans profiler for profiling a java based application which was getting hanged while using it. I was really impressed with the simplicity and elegance of the profiler. Using the profiler is a child's play and it gives you the required info in a nice GUI with charts and graphs which helps you in finding out where the problem lies. You can also view the live profiling results. Lets see how simple it is to profile an application using Netbeans profiler. I am using Netbeans 6.7.1.
1. Initially open your project in Netbeans. Now go to Profile menu and select Attach Profiler sub-menu
2. A new dailog for Attach Profiler opens up. Select the project name (jtharness in my case) from the drop down list corresponding to Attach to label.
3. At the bottom of this dialog you can see following "Attach Mode: Local direct attach to Java Application, change". Click on change. A new Attach Wizard pops up. In this select the appropriate Target type, Attach method and Attach invocation and press Next button
4. In the next page review your Attach Settings and press Next
5. Now the Mannual Integration page opens up. Copy the startup option shown in Step 1 and use this option in CLI for java command while starting your appliccation.
6. Now as I had mentioned above use the option given in Step 1 for starting your application so as to integrate the profiler. For eg: normally I start my application using the CLI command
java -jar javatest.jar
I will replace this call with following
java -agentpath:"D:\Program Files\NetBeans 6.7.1\profiler3\lib\deployed\jdk15\windows\profilerinterface.dll=\"D:\Program Files\NetBeans 6.7.1\profiler3\lib\"",5140 -jar javatest.jar
7. Now click Finish button. The original Attach Profiler dialog comes up, click on the Attach Button and your profiler starts up!!
Joined Samsung Electronics
Chetan Bhagat's 2 states - a lackluster

Recently I came to know about the new novel by Chetan Bhagat named 2 states. I was really eager about this book as I liked his previous two books namely 5 point someone and One night @ call center. So yesterday I went to Landmark with the intent of buying the book, in the book shop I managed to get an empty seat hence couldn't resist myself from reading the book there itself, when I started reading the book initially it seems to be a normal story; there was nothing great in it, but I told myself "be patient and keep reading" but once reached the half way through i.e. some 100 odd pages I told myself enough is enough, this is a crap novel and any further reading is complete wastage of time. 2 states seems to be sequel of 5 point some one, where the Hari of 5 point someone becomes Krish and enters the hallowed portals of IIM Ahemdabad to find his love Ananya, this time she is his classmate instead of professor's daughter and then a normal love story. He is a Punjabi and she is a Tamil Brahmin and their parents are against the inter-caste marriage.
The thing that I used to like about Chetan's novels were the way he portrays the innocent love stories, combined with his witty one liners. But this book falls short of these, there is absolutely no humor and its a boring love story devoid of any adventure. Probably it's time that Chetan comes out of his comfort zone (of amataeur love stories) and try out something new!
Leaving Wipro and Bengaluru

Leaving Wipro is definitely one of the toughest decision in recent times, the same was true while joining also :). During college I had offers from VMWare, GE and Wipro, with the package of Wipro being the least and I still joined it. It has been roller coaster ride at Wipro, in past 4 years I had my share of both the best and worst days; be it having fun with colleagues, spending long time over the pool side in EC chatting with friends or working till late nights and over the weekends. Overall its been a good experience and I am going as a satisfied man. There are number of things that I really like about Wipro but the thing that I really like is its knowledge centricity.
Knowledge centric organization
Knowledge is at the core of Wipro. There is very high focus on the continuous knowledge up-gradation. Wipro library is simply awesome, the collection of books is incredible be it technical, general management or some serious management books. I was really happy with the number of books that I have read here. I know not many companies in India invest so much in books as Wipro does. Also the sort of trainings that we have be it from Wipro employees or from other companies is really good. I still remember when I attended a session on Cloud Computing by an evangelist from Amazon in 2007. Cloud computing became hot in 2008 and Wipro was way ahead in it. Once I attended a training on Social computing and Semantic Web I was really amazed with the presenters, the sort of research that they had done in this field. Before attending the training I thought I had very good knowledge about the topic and during training came to know that it just the tip of iceberg and I need to spend lot of time probably years to reach the level of expertise that these presenters have.
Some bangalore buddies whom I really going to miss
Ravi, Kushal, Santosh and me (Left to right)
Why I still travel by train?

Recently I was on a Diwali visit to my native place Ajmer. By train it takes 48 hours to reach my home. Her Highness told me for this "Are you nuts? You will be traveling for 4 days and staying at home only for 2 days. Can't you just take a flight and avoid this wastage of time?". I just smiled and told hopefully one day I will be able to explain you why I still travel by train. There are several reasons why I still travel by train. Here goes the reason's
1. Affordable : No matter how much the airline guys shout about cheap travel they can't beat Indian Railways in terms of price. I pay 1400 bucks for 3 Tier AC and just 500 for Sleeper class. Now even if u get air ticket for free still u need to pay some 2000-3000 as tax, also the airports are far from city (at least Bangalore airport is far away...its some 50-55 kms from city)
2. Time for yourself : During my travel through train I get 2 full days just for myself without any distraction, there are no managers, no laptop, no work. This way I get sufficient time to think about my career - how I am doing and how to improve it further?. I get time to read my favorite books. I know people will say common you can save lot of time through air travel and read books at home...even though I read lot of books but still my laptop is my biggest distraction, in train there is none.
3. Sight seeing : I travel across the length of the country covering close to 2500 kms. During this travel I get a chance to see the diverse landscapes; from the hilly Western Ghats in Karnataka and Maharashtra, the rivers and lush green mountains on the way to the desiccated areas of Rajasthan. I enjoy watching the farmers toiling their farms with their bullocks, the herdsman driving the cattle. And guess what all this sight seeing for free!!
4. Comfort : As mentioned in case of price, in case of comfort also the low cost airlines can never beat the mighty railways. This is what Shashi Tharoor has to say about economy class airlines "Absolutely, in cattle class out of solidarity with all our holy cows!"
5. The 1960 factor : Inspiration for this came from the movie Love Aaj Kal where the protagonist Veer Singh of 1960 era travels thousands of kilometers for just one glance of his sweetheart. This time it was same for me :)
What is google wave?
A nice small video on what is Google wave?










