Monday, July 27, 2009

Moving away from www

Since I have been spending some time recently on hacking, I wanted to start using custom domains and also start using for other things and not just this blog. Hence I am moving away this blog from to Not that it makes much of a difference if you are using the feedburner link to subscribe to the blog or if you are coming to the blog from other places. That said, if you do come to the site directly or use a bookmark, make sure you update those.

Update: All blogs posts from 2003-2011 will continue to work with the previous page urls too (although it will redirect to - thanks to a quick and dirty hack - I will blog about it later.

Sunday, July 26, 2009

Tracking me on Twitter

For a while, I have been thinking of hacking up a system which would track up all the tweets that talk of me - just for the fun of it. So, I started using the Twitter API and built up an hack to scan through the public timeline and store those tweets and to publish it later in whatever way deemed fit. Turns out, that's not so easy - since this public timeline only lists 20 recent tweets every minute (off the thousands or hundreds of thousands that might be generated.)

The right way to do this would have been to use the twitter firehouse, which of course is not openly available to everybody, or to use the search interface. As I was planning to shift the code to use that, I hit upon this neat little widget from Twitter, which allows me to create a widget to track all the tweets containing my name and allows me to publish this wherever. I am putting this up on this blog. I have taken out the widget showing my tweets to the new widget titled "Chatter about me on twitverse" and its a dynamically updating widget. At this moment, I am enjoying the look of the new widget on my blog.

Update: I have removed the widget from this blog since I have made my twitter stream private. You can still get the widget from the link.

Sunday, July 19, 2009

The curious case of Rajshri and Incredible India

Ever since I moved to Singapore, I found that is a fantastic source of good Indian content legally available. The site is owned by the Rajshri group, the reputed Indian media house, which gave us hits like Hum Aapke Hain Kaun and Maine Pyaar Kiya. The site doesn't have anything cutting edge (new movies etc), but still has a lot of good older movies and lots of TV series content. Its quite appealing and while the user experience is not excellent, the streaming is pretty good. All in all, a good site to visit on a regular basis.

There are a bunch of technical problems - don't ever try going back or forward in the video, you will be stuck forever; or every once in a while, the streaming itself will completely freeze (and if it happens towards the end of a movie, you will miss the ending since the rewind and FF doesn't work), but this blog is about something else that I find grossly wrong about that site.

I understand that the site has to make money (at least for the cost of hosting and serving the content) and ads seem the best way. Being an Non Resident Indian (NRI), some of the ads presented to me makes sense - like those of banks advertising NRI products. But the most common ad you see on the site is that of Incredible India.

Right, I understand that the Incredible India ads should be served outside of India, but do you really want it to be shown to NRIs? NRIs, by themselves, have enough reasons (family bonds) to visit India every once in a while and if they don't want to visit India for that reason, I doubt they want to do it on the insistent claim of the Indian Ministry of Tourism.

The only reason it makes sense is if the content was seen by Foreigners - the Singaporeans, Malaysians and the like, who might actually make good tourists. But will they be visiting and checking out Hindi TV Series, or Mahabharat, or Hum Aapke Hain Kaun? I very much doubt so. I am yet to hear of a single Singaporean who sees any Indian Content. I have heard of the Bollywood craze in Malaysia and Thailand, but here in Singapore, there is no craze.

I am guessing that either the Incredible India guys have got it all wrong when they decided to serve ads on that site, or it is a case of collusion between an Indian Govt organization and a private one to move money in a particular direction (and you know which one I am talking about). I quite often imagine a guy from the Indian Ministry of Tourism (which runs the Incredible India campaign) receiving a neat kickback in exchange for channeling the Government's (in turn tax payers') money to run's bill and potentially give them a healthy profit to boot.

Whatever the reason, I don't like the idea of two organizations of high repute getting it either wrong or voluntarily doing it wrong.

ps: This blog is based on ads seen here in Singapore and the experience of visitors from some other region might be quite different.

Monday, July 13, 2009

Day trip to Pulau Ubin

Me, wifey along with fox2mike, hyacie, coolbanno and Rujuta took off for a day long trip to Pulau Ubin, the island off Singapore, and a preserved reserve. I had checked out Leone's blog on how to get to Pulau, but Fox2Mike had a better route in mind - turns out taking 29 from Tampines MRT will get us closer to the Ferry Terminal than taking 9 from Simei. Hence we followed that and he was right - 29 from Tampines is a better idea. You can also take Bus No. 2 from Tanah Merah Interchange.

The short, 10 minute ferry ride from Changi Ferry Terminal to Pulau Ubin was quite fun, specially since you have do it in rundown bumboat with pretty much nothing for safety. It costs it S$2.5 for a one way ticket per person.

Once you have reached there, the next fun thing would you be cycling (or biking to those who are used to that word.) You can get the bicycles at Pulau Ubin for a day rental of anything between S$2 - S$20. I got myself a "Giant" bicycle with 21 gears for $8. After everybody else got theirs', we were off.

We cycled to Chek Jawa Wetlands. Its a relaxing ride with lots and lots of greenery to be seen. The ride itself is fun with a little bit of tarred road, a bit of rough ride with both downward and upward slopes, sometime quite steep.

One at the wetlands, things to do include climbing up a tall observatory and spend a few minutes taking in the air, snapping a few photos, check out the sea from that height and of course do some planespotting - quite a few flights can be seen approaching landing at Changi.

Once you are done with the observatory, walk around and enjoy the boardwalk, checking out some sea vegetation and animals. When we were there, we had lots and lots of wind blowing at us and it was quite a pleasant experience.

Once we were done with it, we rode back our way back to the center of the town (where we started cycling) for lunch. We stopped at Ubin first stop, where my seafood loving friends grabbed crabs, while me, Nidhi and Fox2Mike feasted on Plain rice with veggies and veggie fried rice. You can order Beer if you like.

After a heavy lunch and some much needed rest, we cycled around a bit when we located this secluded spot where some there was nobody else and it was facing the sea. After hanging out there for a while, we headed back to Changi Ferry Terminal. While we wanted to hang out at the Changi beach for a while, we were all too tired and so we all decided to split and head back home.

If you are not used to cycling or physical activity, be ready to face some skin-rashes and cramps, as happened to me and wifey. If you are not careful, you can pass out in the train on your way back, as it happened to hyacie!

All in all, a day full of fun worth spending a weekend day and quite a good break from all the aircon and shopping arcades in Singapore. All the photos from my camera can be found here.

Tuesday, July 07, 2009

Beautiful Condo available on twin sharing basis at Tiong Bahru

One of my friends in relocating out of Singapore and is looking forward to finding a replacement for himself. He used to share it with a flat-mate who will continue to stay here. Details:
  • 3 bedroom fully furnished condo; high floor; very breezy; heart of city; 1 km from Clarke Quay; 5 minutes by cab to Raffles and CBD; 10 minutes by bus to CBD; direct buses; 7 minutes walk from Tiong Bahru MRT station; 5 minutes walk from Great World City Mall at River Valley.
  • Condo to be shared with 1 working male professional seeking a like minded male/female professional.
  • Your share: S$1500 p.m (Deposit S$1500 and Agent Commission S$500)
I have myself visited the place and found it to be quite attractive. I have also stayed with his room mate for a while and found him to be a excellent flat-mate. Its quite a good deal.

Interested? Contact Vinayak at 9234 6440 or email him at

Sunday, July 05, 2009

[Hack]: Rahu Kalam Calculator

Rahu Kalam, in Indian Astrology, is considered that part of the day which is inauspicious for starting new activities or performing good deeds. More on how to calculate Rahu Kalam at Wikipiedia. Essentially, Rahu Kalam is supposed to be calculated on the basis on the sunrise and sunset times, which in turns depends on where you live. Calculating this is quite tedious.

In India, since it is mostly South Indians who believe in Rahu Kalam, they tend to assume that sunrise and sunset is 0600 and 1800 Hrs respectively. This leads to fixed times of the Rahu Kalam on each day of the week. This, however, could be wrong depending on the seasons. Even more importantly, this would be quite wrong in others parts of the world. In Singapore, sunrise is rarely before 7.00 AM and in Scandinavian counties, sunrise and sunset hugely varies depending on the season. So, I decided to write a hack to automate all this.

So the site is at:

Essentially, you need to tell where you are from (Bangalore, Hyderabad, New York etc) and based on the lat-long on that location, it will calculate the Sunrise Sunset times and tell you the Rahu Kalam for the next 3 days. You are of course free to choose a specific date and find the Rahu Kalam for that date. The system will remember your location choice and not ask you next time. (You can choose to clear it, of course)

The hack itself involves using a bunch of webservices - the Yahoo Maps Webservice for geocoding a location and getting its latitude and longitude. Second, I used the Earthtools API to get the sunrise and the sunset of a given location. Everything else is calculated internally. I have hosted it on Google App Engine.

Please test the tool and give me your much-sought-after feedback/suggestions etc. You may also tell me what you want to see there.

I will clean up the code in a while and post it in public.

Administrative note

All tech posts have now moved to or you may subscribe to its RSS feed. In due course, I shall be moving it out completely, so if you follow my tech posts, please shift to following that blog.