Entries from March 1, 2007 - March 31, 2007

Friday
Mar302007

Revenge of the developer!

How do you get even with the BA's for giving you a 14 page functional requirements specification? You give them back a 15 page testing script! ;-)

Ah revenge is sweet. :-)
Friday
Mar302007

JQuery string formatting.

Need string formatting functions.
http://bassistance.de/jquery-plugins/jquery-plugin-format/
Is the right direction to start, but it doesn't do it sufficiently.

This is useful too.
http://jan.moesen.nu/code/javascript/sprintf-and-printf-in-javascript/
Friday
Mar302007

30 March 2007

Getting to work early has a very different feeling.  Feels more relaxed, not rushed.  And I could take time to enjoy the surroundings.
I think I like it quite a bit.
Thursday
Mar292007

Infinite loop in a survey questionaire for acupuncture.

This is a true story that happened a few years ago.
A church friend asked me to fill out a survey regarding acupuncture. The questions were like this.

  1. Have you ever had acupuncture yourself? (If no, go to step 3)
  2. Was the painful?
  3. Have you ever hear from a friend who had acupuncture? (If yes, go to step 2)
  4. other acupuncture related questions.

2 of the guys in the group (who are geeks, me being one of them) spotted the infinite loop simultaneously (and almost immediately) and laughed at our little insider joke. The rest didn't get what's so funny about it.

Years years later, I took my wife to get acupuncture for a swollen ankle. And it did hurt like hell - she was in pain and tears. We never had the guts to go back again.
Thursday
Mar292007

29 March 2007

Rules to better code
  • Unit Test everything!
  • Refactor mercilessly.
  • Go home early and get a good night's sleep.
  • Use coffee but only if necessary (ie, writing test scripts).
Wednesday
Mar282007

Quiz: The default operator

Hot on the trail of the previous quiz.
There's a default operator in C# (2.0)
Do you know what this does:

Type t = <anything>;
object x = default ( t );

Answer: http://msdn2.microsoft.com/en-us/library/xwth0h0d.aspx
Wednesday
Mar282007

Quiz: The ?? operator

There's a ?? operator in C# (2.0)
Do you know what it does?

Answer: http://msdn2.microsoft.com/en-us/library/ms173224.aspx
Wednesday
Mar282007

MSN Javascript errors.

I hate javascript errors.  I don't understand why MSN spaces has so many of them.  It reflects really poorly on people reading your blog if it keeps throwing javascript errors on their browsers...

Free Image Hosting at www.ImageShack.us

Fix it please?
Wednesday
Mar282007

28 March 2007

I wanted to do a search of comparison of different numbers of users vs each blog service. Possibly over time. Pitty I don't have this data - need to search for it on the internet.

Oh another one with the MMOG data from daedalous project.
An idea to try using http://tools.google.com/gapminder/ to test the project.
Tuesday
Mar272007

27 March 2007

It has been a very hectic few days.  A lot of changes from staging that had to be merged in.
Didn't have much to blog - got lots of little notes here and there but nothing really substantial to talk about.

Oh that's right, I picked up a copy of Command & Conquer 3.  I wonder how long it'll take to install a 6 GB game.  Probably as long as installing Visual Studio .NET 2005.