How to handle multiple window events in Javascript
I’ve written a window event handler mainly for handling multiple onload events. The typical way of handling multiple onload events is by creating a helper function that contains all the onload functions and using window.onload to call the helper function. An example would look something like this, function onloader() { onload1(); onload2(); // and so [...]
Tracking Exit Links in Google Analytics
I’ve been spending my time writing a script that will help track exit links (external links) in Google Analytics. This script will traverse through all anchor tags within the body and apply tracking codes on tags with the href attribute. If the anchor tag has an onclick attribute already, it appends the tracking code to [...]
Quad in the office
I’m so lucky. My company bought a couple of Quad core computers with 2gb ram for the new starters coming in. One is starting in a couple of weeks and another is coming back from holidays in a week. So I took the opportunity to pinch the new systems and give them my old Pentium [...]
Travel Plans End of Year
The end of the year is just around the corner and I’m excited to take a month off and have a little holiday. Thinking of heading off around the end of November to mid December period. Prospects so far? 1-1.5 week in KL, 1.5-2 weeks in Sabah, and 1 week in Bali/Thailand/Vietnam/Cambodia, depending where my [...]
Are we paying too much for public transport?
I’ve been thinking recently amount costs relating to transport. It will cost me $6 for a return bus ticket and $6.80 for a return train ticket. Amounts to $12.80 a day. If I buy a travel 10 bus ticket and a city weekly train ticket, it will cost me $10.40 a day (assuming a Mon-Fri [...]