Wednesday, October 20, 2010

Ruby: Convert numbers to Indian currency format using regex


10000.to_s.gsub(/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/, "\\1,")


Works on decimals too

Sunday, October 17, 2010

I fear the future

Where robots drive the cars and do house chores, individual privacy would be non-existent, poor & unskilled will not have a place in the world, medical care would be super expensive, everybody would drive a car, media will be powerful enough to topple a government if the government doesn't favour the media and study of history, languages, cultures etc would be deemed unnecessary.

Humanity as we know it would cease to exist. I fear this future!

Sunday, October 10, 2010

Google building self driving cars!

The latest funny/frightening news from Google: Building self driven cars. Toyota prius running with help from cameras, radars, GPS and Google's massive data centers. How does it fit into the whole "organize the world's information" thingy ?

Even if you stretch it a mile it won't.

I think Google has distracted itself from it's original path of being everything information. It shows in things like this and efforts to sell phones. The problem with that is that the world's information is still not organized. Not even close. They have not made search any better than it was (sorry instant doesn't count). Won't it be better if they could answer simple questions directly ? or do better job at image search or catalog searching etc ? In fact the google maps itself is not fool proof which these cars depend on!

Tuesday, September 28, 2010

Wednesday, September 08, 2010

NoSQL can get you fired!

Digg is facing some issues with it's new launch of V4. The core of this issue is use of Cassandra in the new version instead of MySQL which was running the site in V3. As a result the VP of engineering has to pay with his job!

As with all new, shinny "world domination" technologies, Cassandra is too immature to be used in the wild. I am not saying that Cassandra is a bad project but that it needs time to mature. World needs NoSQL databases but you cannot just shift a multi million hits website's core system from a stable, trusted, tested workhorse to a new, talented yet unproven and expect everything to just work.

Thursday, August 12, 2010

Time for my IE revenge

Since the birth of internet we all have been tortured by website which work only in IE 6. It is time for revenge! Mostfit doesn't work in IE6. We tell the companies using it specifically to use Firefox or chrome. If they insist on M$ we tell them to "use IE 8, but no IE6"!

Die IE6! DIE

open source

Open source is super contagious. I just my office admin saying to a M$ guy: "We are against microsoft! we are building one open source products and we do not appreciate M$"! Mind you this is a social sector company and not a technology company!

Tuesday, August 03, 2010

Google ME

Rumour has it that Google is planning yet another social product "Google Me". I would like to take this early opportunity to put it out there:

IT IS GOING TO FAIL

like others viz Buzz, Wave, Knol, Open social, Orkut etc.