Monthly Archives: July 2011

Google Plus Gets a +1

Note: This is a long read, but if you make it to the end, I’d appreciate your comments Google+ is the latest social offering from Google. It was launched end June, and has had a rapid ramp-up with an estimated … Continue reading

Posted in Technology | 4 Comments

Console.log-ing objects

Console logging object’s is straightforward in Node.js. A basic console.log(object) works well in printing out member variables and functions of an object: var obj = { "name": "ditesh", "age": 13 }; console.log(obj); // Outputs { name: ‘ditesh’, age: 13 } … Continue reading

Posted in Code, Node.js, Technology | Leave a comment

Bersih 2.0

Today was Bersih’s peaceful rally in Kuala Lumpur, Malaysia’s capital. Approximately 50,000 Malaysians turned up to support Bersih’s call for free and fair elections, despite water cannons, tear gas and mass arrests by the police. There have been many videos … Continue reading

Posted in Malaysia, Politics | Leave a comment

Implementing UIDL

I was trying to figure out how to implement the UIDL command as part of a POP3 daemon I am building using Node.js. UIDL is an optional command in RFC 1939, but many POP3 clients use it in the leave-message-on-server … Continue reading

Posted in Code, Node.js, Technology | 1 Comment

Climbing Mount Everest

I’ve been fascinated by Mount Everest and the mountaineers that pit themselves against it for a number of years now. Thanks to the Internet, I follow blog posts by those who have receive first hand information of the latest in … Continue reading

Posted in Mount Everest, Mountaineering | Leave a comment

Catching uncaught exceptions in Node.js

A common problem when writing Node.js servers is in ensuring all exceptions are handled. Node.js will helpfully die when exceptions are not caught and handled, which forces you, the author, to ensure robustness in your Node.js applications. There is a … Continue reading

Posted in Code, Node.js | Leave a comment

Going all Jain on Hemant

The post by Hemant Mehta on Jainism is a slightly shocking read. There are a number of factual inaccuracies and drive-by innuendos. Let’s look at the article one piece at a time. First up – Sam Harris and Richard Dawkins … Continue reading

Posted in Jainism | 2 Comments

Killing connections

When working with remote services (eg Twitter stream), it’s important to test out and handle all (if not, as many as possible) edge cases. Examples of edge cases include transient network errors, unexpected disconnections to long lived streams, temporary routing … Continue reading

Posted in Technology | Leave a comment