Monday, April 24, 2006

Raju Ban Gaya Gentleman - Super Blooper

Caught a scene from "Raju Ban Gaya gentleman" sometime back ...

Scene : SRK has just entered the interview room with Three panelist and a geeky looking computer operator.
Problem : SRK has diploma in civil engineering and is required to prove his brains as claimed by him "Degree se akal nahi milti "
Argument : There is an uptown posh project undertaken by the firm where the interview is being held - Project manager of which is present in the panel. SRK throws some crap about not using RCC and hence saving around 5 crores.

BLOOPER : Not only the argument which he presented was gibberish, the event that follows is hilarious.... The panel leader asks the computer geek if the computer confirms to the claims made by SRK. The geek eagerly presses few buttons and there is a huge amount of text that scrolls the screen and then comes back to the command prompt. The operator says, "Eureka, he is right". The command that is typed by our dude was none other than the dos equivalent of "ls". The scrolling text was the directory listing.

PS : only thing that was cool about the scene was the colors on the computer terminal .. my fav green on black.

Sunday, April 16, 2006

Monday to Friday of Music

Monday no clues , all red with the (monday) blues

Tuesday am on a Dock, friday's far, hence the alternative rock

Wednesdays nowhere in the week, time to settle and for some heavy metal

Thursday's punky, makes me jumpy, I listen to that chap, doing gangsta rap

Friday's jazz, I pull up my sock and listen to the rock


Important Note : Saturday, Sunday I am in trance

Tuesday, March 21, 2006

Geoffrey's Bangalore


From left to right : Me, Jon, Rajeshwar, Ambar and Rob

Sunday, March 12, 2006

No Kidding

Australia batting first - 434 for 4 in 50 overs

South Africa - 438 for 8 in 49.5 overs

South Africa Win by 1 wicket with 1 ball to spare !

Monday, March 06, 2006

Test Driven Development

Test Driven Development is a technique for writing the test cases first and then doing incremental coding for each case. This has to be coupled with regression testing after each module for a test case is written. An automated testing environment is a desired requirement for this paradigm.

Inadvertently , we might have done this in past for one or more of our projects. I have done something similar in one of my projects without following the regression testing rule exhaustively.

The way it works - several iterations of the following steps:
  • Write a test case for a small feature: use the requirement and the use cases to write test cases.
  • Make sure that the test case fails (you haven't written the code for this feature) : There might be a "bug" in your program which gives you this "feature". This requirement basically means "start with a clean slate".
  • Write the code necessary to pass the current test case.
  • Refractor code - making sure that the code for the new feature fits in the design or the other parts of the code are adjusted to make it the simplest design.
  • Regressing testing - run all the test cases written so far

Advantages
  • Due to regression testing requirement , the modules are written in a modular way which can be tested individually and hence aids object oriented design.
  • Takes out a huge amount of time from a manual regression testing process
  • Coding is always done an incremental fashion which makes a loosely coupled system
  • Testing for each feature is NOT done as an afterthought
  • The initial test case document provides a good document for system capabilities

Limitations and challenges :
  • A sound automated testing environment is required to ensure regression testing - hence additional effort required initially. (JUnit is an example of automated testing infrastructure for java and boost test for c++).
  • Distributed objects in an environment - can write "mock" objects to support this
  • A test driven environment is as good as the test cases, since they are the key design driver.

References :
http://www.objectmentor.com/writeUps/TestDrivenDevelopment
http://en.wikipedia.org/wiki/Test_driven_development

Tuesday, February 28, 2006

tar -zcvf oc4j

A tar command only with the source folder( I missed out on specifying the tar name)

[root@ssinghal home]# tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.

Wednesday, February 22, 2006

Sirsi

After frenzied head banging and dancing at the tull concert, came a peaceful weekend at sirsi- a small town north of Bangalore.
The journey by bus took about 8 hours and was pretty painful as I got a seat right over the Bus tire and was on the receiving end of bus driver's ire . ( man ! embedded poetry !)
Anyway, it was a fun trip because it was the wedding of one the members of my engineering gang and all my old frieds were supposed to be there. I was met with one of my friends at 6 AM in the morning and he in true sense of our "friendship" was really excited about waking him up in the morning ( he reached there the previous evening) so far so good, I got the pleasure of waking him up.
It was a BIG wedding as it was a small place Arati's( whose wedding we were there to attend) father is pretty well knows around the parts. But the real fun was visiting Arati's estate. They have plantations of Supari, Kali-Mirch, Vanilla, elaichi and many others.


We quickly managed to take a break from the wedding hall ( it was a two day affair, hence we had some time in hand) and go there. The leading road is pretty striking too , there was a simple turn from the main road which looked like heading to one of those small colonies that you see around the main roads in a small town. For a while, I seemed to be right. Going about a 100 meters inside, we found ourself on a mud road with a valley on one side with us driving to climb at a regular incline on the other side.
At the plantation, it was the most soothing thins that I heard - silence ! I used to be a small town kid myself and was pretty used to small and quiet surrounding during my childhood. but nothing like that in the recent past.There was a small stream of water flowing all across the plantation in a criss cross pattern to make sure that it reaches every where within the plantation.
Majority of the tress were tall, almost like coconut tress and they made sure that the sultry weather of sirsi was replaced by a serene shade and cool breeze blowing. Then there were creepers and small shrubs. It reminded me of my childhood days and was really tempted to stay back for more time.



Then I met all my friends , opened a bottle of champagne during the night , chatted away that night, felt grumpy the next day during the wedding due to lack of sleep and managed to get the last seat on a bus to bangalore ( it was worse than sitting on the tire , I was right at the back and it was worse than being in a sack , what a talent)
Now I am comfortable back in bangalore in a familiar temperature controlled environment. Sirsi was a good break