I was checking out the live feed from Facebook regd the video service they rolled out yesterday and noticed this comment on the live feed form.. all I can say is WTF 🙂

I was checking out the live feed from Facebook regd the video service they rolled out yesterday and noticed this comment on the live feed form.. all I can say is WTF 🙂

Quick post for my own reference down the road. the “for” loop comes in very handy, when you want to perform the same task on multiple items in a bash shell.
For example, I wanted to query the DNS results of a couple of sub domains (blog.gogoair.com, pr.gogoair.com, tracker.gogoair.com), I can do it the normal way (that 99% of us do 🙂 )
[code] dig blog.gogoair.com
dig pr.gogoair.com
dig tracker.gogoair.com [/code]
Or, I can use the for loop function and do this
[code] for i in {blog,pr,tracker}.gogoair.com; do echo "$i" ; dig +short "$i"; done [/code]
Got to love technology :).. Makes you lazy!!..err I meant to say productive.
Thx to Cliff for the inspiration.
I wanted to signup for the service offered by the Techcrunch 2011 Disrupt winner, GetAround (which by the way is a pretty cool service) and went to their website. And what do I see? I need a facebook account to use their service. I know Facebook is popular, but how fair is it to require a potential customer to have a Facebook account?? 
Jhanvi and I visited India in April and were lucky to celebrate Ugadhi with our family back home. Ugadhi is the an important festival in South India and is essentially the celebration of the begenning of a new year (yep.. new year in April 🙂 ). One of the specialities of Ugadhi in Andhra Pradesh is something called “Ugadhi Pachadi”. It is a mixture of 6 ingredients (Neem Flower, Jaggery, Red Pepper, Green Mango, Salt and Tamarind) which designate the different “tastes” of life (bitter, sweet, hot, salty, tangy etc).
I haven’t been able to celebrate Ugadhi with my family for more than 10 years. So it was a special occasion. And mom went all the way to make it even more memorable. Here are some pictures.
Hanging Mango Leaves 
Garelu 
Ugadhi Pachadi : Ingredients
Ugadhi Pachadi : Final 
Thanking the divine ones 
Another late update. I really want to post these updated in the first week of the month, but something or the other always stops me from doing it. Maybe one of my resolution should be to post updates on resolutions on a timely basis :).

A bit late on posting my monthly updates :). I blame it on the travel to India and poor connectivity. Here come the updates


Say you want to enable reverse proxy on a site powered by Apache Web Server where all traffic to the web site it reverse proxied to a different server, but you want to exclude certain paths from being reverse proxies. I don’t know why you would want to do that :).. but we ran into that scenario at work and I wanted to document the config for future reference. The picture below shows a high level view of the traffic

[bash]
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
[/bash]
[bash]
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /static !
ProxyPass /media !
ProxyPass / http://INTERNAL_SERVER:8888
ProxyPassReverse / http://INTERNAL_SERVER:8888
[/bash]
This is a quick trick I came up with to find out the IP address of a client that is trying to access a farm of web servers that you have access to. The diagram below shows the network path for a typical web server. 
You have a client that might be sitting behind a (or multiple) proxy server. And there is a load balancer involved because you have multiple web servers for redundancy.
We were recently working on some rewrite rules for our web servers at work and we needed to find out what IP address the web servers were seeing the client traffic come from. Couple of challenges
The web servers usually write an entry to the error log when they serve a 404 error. So we can use that to figure out which web server you are hitting and what IP address the web server is seeing you as. Here’s the trick
Here is an example, I ran on this website (https://kudithipudi.org)
[bash]
root@samurai:/var/log/apache2# grep -i what_is_my_ip access_kudithipudi.log
199.27.130.105 – – [04/Mar/2011:16:07:18 +0000] "GET /what_is_my_ip HTTP/1.0" 40 4 5495 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/2 0110218 Firefox/3.6.14 ( .NET CLR 3.5.30729; .NET4.0E)"
[/bash]
Here come the monthly updates on my 2011 resolutions.

(click on the image for a larger size. The blue line shows 2011 traffic and the green line shows 2010 traffic)Comment by Mark Horstman on his recent podcast regd managing a massive workload increase
We don’t see the world as it is, we see it as we are
I believe this a famous quote.. don’t know who the original author is. But wanted to note, since it is a pretty deep :).
I highly recommend Mark and his partner Mike’s podcast “Manager Tools” and “Career Tools” to every professional. Well worth the time.