Two pictures of my nephew one year apart. Now, I feel old 🙂


Quick way to figure out, which ports a particular program is using in linux
[bash] netstat -plan | grep -i PROGRAM_NAME [/bash]
Example : Check which ports SSH is listening on
[bash]
samurai@samurai:~$ sudo /bin/netstat -plan | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 5257/sshd
tcp 0 52 123.123.123.123:22 124.124.124.124:32846 ESTABLISHED 3551/sshd: samurai
tcp6 0 0 :::22 :::* LISTEN 5257/sshd
unix 3 [ ] STREAM CONNECTED 5893 3551/sshd: samurai
unix 2 [ ] DGRAM 5849 3551/sshd: samurai
[/bash]
Most Redhat/Fedora users are used to chkconfig and service for controlling the services/programs that startup at boot time. Here is how you do it in Ubuntu
[bash] sudo SERVICE_NAME status [/bash]
Example : Check the status of Apache Web Service
[bash]samurai@samurai:~$ sudo service apache2 status
Apache is running (pid 3496).[/bash]
[bash] update-rc.d SERVICE_NAME add [/bash]
Example : Configure squid to start on bootup
[bash] update-rc.d squid add [/bash]
[bash] update-rc.d SERVICE_NAME remove [/bash]
Example : Configure squid to NOT start on bootup
[bash] update-rc.d squid remove [/bash]
NOTE : You need to have a startup script in /etc/init.d for the service to ensure update-rc.d works fine.
Picture of my mom taken with my new toy (Canon 50mm F/1.8 lens). My mom is usually a shy person and this is probably the first time I saw her being comfortable in front of a camera.

I took a photography class recently and am finally enlightened to what a good lens can do :). Prior to the class, I was always of the opinion that a zoom lens is the way to go. But my instructor opened my eyes to the world of fixed (and expensive) lenses :).
More pictures from this photo shoot at http://www.flickr.com/photos/kudithipudi/sets/72157625773287053/with/5385052525/
Good article regd. communications (verbal and email) on NY Times at http://boss.blogs.nytimes.com/2011/01/06/are-your-messages-being-heard/ . I esp liked the comment about keeping messages short and smiling. We spend some much time at work (and most of that on email) in the modern work place. And I think these two things will make your colleagues appreciate you a lot more :).
For my notes.. if you ever want to check the IO capability of a disk (local or network) on a linux machine, use the following command
[bash] dd if=/dev/zero of=test.file bs=4M count=1000 [/bash]
The above command make a copy of the output from /dev/zero to a file called test.file (you can locate the file on the disk you want to measure) with a block size of 4M for a total file size of 4000Mb.
For the few folks that keep in touch with me through this website.. Happy New Year!! :). Hope this new year brings you health and love.
I am usually not a resolutions guy :).. But I wanted to give it a try this year. And I am making them public, so that I have more incentive (read pressure) to reach them. Without future adieu, here they are
No.. not the part, where I am eating Jhanvi’s head :).. But that big fat gut hanging out for everyone’s viewing pleasure. Loosing that is my first resolution.
This is a picture of the traffic to this site, according to Google. I want to double that by the end of this year. In other words, write more often :).Jhanvi and I ran the 2010 Hot Chocolate 15K last Saturday (11/6/2010). I don’t know why I keep doing this.. but I don’t seem to realize that I am not a superman 🙂 and cannot run races efficiently without practicing. Anyways, here is what happens when you run a race without ANY training..
My Results

I was aiming to be the last in everything :).. but looks like some people still beat me..
Jhanvi’s Results

Thx to Jhanvi for making me run the race… I wanted to run the 5K and call it a day 🙂 (and no. it is not called cheating when it is 27 degrees and you are freezing your butt off!! 🙂 ).. but she encouraged me to run the 15K. Clearly not my best time.. but I am proud I completed it never the less.
I came across this interesting article on a MSDN blog about why each drive has its own current directory and in addition to learning something new (that you can use cd /d option to change directories between drives) I saw this super funny response from one of the users to a spam comment :)..

Bold forecast :).. But in 5 to 10 years, I predict the majority of a company’s infrastructure will be hosted in a “cloud”. If you recall (circa 2000..), most of the companies were hosting “anti-spam” services in house. If anyone suggested that we can outsource that service, you would get a “are-you-crazy” look :). And now, you will get the same look if anyone suggests they run the anti-spam service in house. I believe the same is going to happen for infrastructure. You might still be running some components in house, but it will get smaller and smaller. Companies will be forced to focus on their core competency rather than try to maintain an army of engineers to perform tasks that someone else might be a lot better at.
Speaking of being visionary, apparently Netflix operates most of their infrastructure in the cloud. If Netflix can operate in the cloud, a majority of us can too :). Here are some links regd their lessons from moving to a cloud.
http://blip.tv/file/4252897 (Video of Netflix Director of Engineering explaining their move to the cloud)
https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnxwcmFjdGljYWxjbG91ZGNvbXB1dGluZ3xneDo2NDc2ODVjY2ExY2Y1Zjcz&pli=1 (Write up by a Netflix engineer about the move to the cloud from a storage and DB prospective)