At the end of the tunnel… there is Internet

Sunday, August 24th, 2008

Linux is so cool. Using Linux or Linux tools can give you tiny moments of joy, just like anything built by geeks, like iPhone, Skype etc.

Today as I woke up, I found that one of the 12 servers we use at BiRhymes was not accessible from India (the ones at the Joyent data center). No, our apps weren’t down, they were up because that server is only used to handle REST calls from MySpace.com so the only person who should access that server is MySpace and of course MySpace has servers in USA. The static files are servered from Amazon S3.

(more…)

Extending Prototype

Sunday, September 9th, 2007

A talk I gave at OSSCamp Delhi about creating reusable addons/extensions to Prototype.js
(more…)

Cookie Jar: Yummy JSON Cookies (using Prototype)

Thursday, April 12th, 2007

JavaScript code to store data as JSON strings in cookies. It uses prototype.js to store and retrieve JSON data from cookies.

Now we can store and retrieve JavaScript Objects, Arrays, Boolean, String, Number values using cookies, just like storing Java Objects in session on the server side.
(more…)

JavaScript/CSS Font Detector

Saturday, March 10th, 2007

JavaScript code to detect available availability of a particular font in a browser using JavaScript and CSS.
(more…)