# Sunday, 28 January 2007

In the context of console gaming, I'm not fanboy. No one console company has a monopoly on my gaming interests. No chance in hell am I going to be a one console person. I go where the games I want to play are.

And right now that means the Xbox 360 and the Nintendo Wii, I'm not giving up one console just because I'm playing another one. I'm just enjoying myself in all the great games I can play, and one day.. with my son.

That said... bias wise I'll always lean towards... Nintendo for giving me the best gaming experience since.... hmmmm... a long long long time ago.

Sunday, 28 January 2007 21:01:31 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 

Mmmm... motion controled simplified boxing. Very nice!!

Sunday, 28 January 2007 12:58:15 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Saturday, 27 January 2007

But I'm not in that some minority! :P

Saturday, 27 January 2007 01:48:14 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 
# Wednesday, 24 January 2007

7 days ago I was rudely awakened by my wife telling me her stomach was hurting, and she felt like shitting, and my son was born soon after.

Better put some more pictures up now as any good father would do!

It's just so hard to get a good picture..

Stop squirming...

There.. this will do I guess! ;)

And of course.. the coup de grace..

Wednesday, 24 January 2007 22:56:09 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [3]  | 
# Tuesday, 23 January 2007

So.. you've got this cool Pocket PC .Net CF 2.0 application, which reads off a SQL Server Compact Edition database, everything works fine when you're in debugging mode, then as you're testing the app you get the dreaded OutOfMemory exception thrown when you try to open a connection to the database.

You go to the memory app under settings and notice that the Pocket PC only has 1MB of program memory left, obviously it can't load the SQLCE runtime AND do your queries at the same time. You hit the running programs tab and select close all, but you don't expect a user to do that. There must be a better way to do this!

The OS is supposed to close applications in low memory situations, but exactly how low is LOW? Gleamed from the Pocket PC SDK we find this little tidbit:-

The Shell in a Windows Mobile-based Smartphone sends WM_CLOSE messages if there is less than 128 KB of free memory. The shell does not send WM_CLOSE messages if you ask for more memory than is available. For example, the Smartphone does not allocate 200 KB of memory if it only has 190 KB free. Instead, the shell displays an Out Of Memory dialog box to the user.

Wow.. 128KB is what the OS considers to be low... so what can we do about it? Well we call the function which the snippet above was taken from, SHCloseApps. What this API function does is that you pass the amount of memory you want and the OS will keep sending WM_CLOSE messages to applications until the memory requested is achieved. To use the function in your PPC program first you need to declare the P/Invoke in your class (For C# examples.. well start reading the documentation on how to do P/Invokes!)

Public Declare Function SHCloseApps Lib "aygshell" (ByVal MemorySought As Int32) As Boolean

Then when you need to, just call the function with the number of bytes of memory you need.


Simple and gets the job done, before I did this my app kept getting OutOfMemory exceptions (no thanks to the RSSReader, GPS Map program AND Pocket IE) during execution. Now it just works... like it should.

PS. Here's another tip, you might want to use this function if you ever want the user to take a picture with the device's builtin camera, cause they usually need about 1~2MB to take a 1MP picture, so be sure to free up some memory BEFORE you show the picture selector dialog box.

Tuesday, 23 January 2007 00:29:19 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [3]  | 
# Sunday, 21 January 2007

Turn off the bloddy rate limiting switch on RDP sessions already so my colleagues can go RDP into the servers and not have to come ask me to manually tweak the coonnections already!

I already have my hands full taking care of my wife and baby already you know!

Sunday, 21 January 2007 21:19:25 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Thursday, 18 January 2007

I treat my gear very carefully, I gently slide my notebooks in and out of the bag, I only torture my touch screen s after I put a screen protector on them. I die a little inside when anything bad happens to my gear, like when my M200 dropped cause of a faulty bag strap,or where my phone dropped to the ground cause I missed the holster.

So, imagine my surprise that this kind of gentle attituide doesn't apply when taking care of babies.  When I try to bundle him up and he fights back I'm too scared to apply too much force cause I'm afraid I might dislocate his arm or something, worse when trying to change a diaper and he's just kicking wildly while I'm trying to clean his butt.

Whereas my wife who has taken care of a lot of her nieces and nephews just pushes the little guy's arms down, or just yanks the legs straight and proper when doing a diaper change. She asks me why do I find it so hard to force a baby's down, I ask her isn't she afraid of breaking anything cause I'm just trying to be careful here. She just tells me to just give them the push and the baby should get the idea already.

Ok then... we'll see what happens after a few more tries.

Thursday, 18 January 2007 17:24:10 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [4]  | 

We had to wait till the baby pissed till the doctor would discharge him. guess it's to make sure all the plumbing works.

But he has, and now we're waiting for them to finish processing the bill so i can take my son back!

Thursday, 18 January 2007 10:10:48 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Wednesday, 17 January 2007
There's an old saying that the best laid plans are always broken. I think this saying is somehow related to Murphy's Law. Anyway that's exactly what happened this morning, I had in my mind the perfect plan for the baby's birth, laid out what to take, how to inform my friends and family. It was perfect! It also didn't work out.

Wednesday, 17 January 2007 16:09:04 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [2]  | 

Yes.. mother and son is obvisouly ok if not I wouldn't be here posting right?

Wednesday, 17 January 2007 10:46:56 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 

definetly looks more like his mother now. And after finalizing with mom. Chan Wen Zhern it is!

Wednesday, 17 January 2007 10:43:47 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 

Before they wheel him off to do all the necessary checkups.

I should have taken it 2 mins later, cause his eyes were open and he was fidgeting around then. No I haven't seen him properly to see wheter he looks like the mother or father.

Wednesday, 17 January 2007 10:31:42 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 

At 9AM this morning my son Chan Wen Zhern(Zhen, need to decide) was born. w00t

Wednesday, 17 January 2007 10:00:41 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [3]  | 

oh joy

Wednesday, 17 January 2007 08:27:41 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [2]  | 

The window of opportunity for an epidural has closed, she's pretty pissed at that.

Wednesday, 17 January 2007 08:16:26 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 

it's go time, baby,s coming!

Wednesday, 17 January 2007 07:55:01 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 
# Monday, 15 January 2007
Windows Vista is ready to launch on the end of January, but... certain bumps exists on the road to the upgrade. And here I talk about the biggest bump I expect to be, LUA.

Monday, 15 January 2007 21:36:55 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Saturday, 13 January 2007
OK, so pretty much everyone has heard of Apple's recently announced Apple iPhone phone device. I guess some of my friends would like to see what I think about the thing.

Saturday, 13 January 2007 23:11:12 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Wednesday, 10 January 2007

32275 Gamerscore possible,
8904 Gamerscore obtained,
353 Achievements unlocked,
63 Games played,
1 Year Of Xbox Live.

Today my XBox 360 turns one, one year of XBox Live fun, one year of next generation fun!

Wonder how the next year will be?

Wednesday, 10 January 2007 21:11:40 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [1]  | 

If you're going to provide a recovery DVD because of some licensing issue that doesn't allow you to provide the actual OS installation DVDs. Can you please make sure that they can boot on an external USB DVD Drive? Especially for laptops which DO NOT have a DVD drive to begin with? Cause I sure as hell ain't going to buy your overpriced drive accesory just to restore my OS!

Wednesday, 10 January 2007 00:20:46 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Saturday, 06 January 2007

Following an earth quake a few weeks ago, the international lines were cut, even the redundant ones. Net performance has just been terrible terrible after that.

I can't connect my IM apps, and even if I DO connect, messages might not get through.

TMNut seems to be working on something with the LOCAL lines, and thus I can't even RDP into my office servers at the LOCAL data center to get my work done.

Having a shoddy connection is seriously hampering my Xbox 360 experience, I have trouble connecting to the Live network, and even if I can it's damn right impossible to play with anyone outside of Malaysia.

Luckily the server hosting this blog doesn't seem to be affected by the line outages, so as long as Maxis doesn't screw up you can be sure to get Live updates on my child's birth! ;)

Saturday, 06 January 2007 15:33:23 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Thursday, 04 January 2007

To add to my ever growing list of reasons why I should never EVER accept a project to make a Windows application meant for mass distribution instead of being used internally by the client company.

So... the program has finally made it to the UAT stage, and we're sitting together in the testing room and members of the test team are installing the program. Then one person says "It's telling me to install Microsoft .Net Framework 2.0" so I tell him to use the one which I had downloaded earlier.

Then he says "It's telling me I need to install Windows Installer 3.0". I looked at the screen, sure enough one of the prerequisites of the .Net Framework 2.0 is the Windows Installer 3.0 runtime. But the installer was kind enough to provide a link to the download. It's a small download, only about 2MB which is nothing compared to the .Net Framework.

Then he says "Aiyo... it needs geniue validation lar." I looked at the Microsoft Geniue Validation button that was showing on his screen, then I asked him what the problem is. "That means a lot of people will be unable to use the program. Can we work around this arr?"

I tried hard not to scream about condoning piracy, I shrugged, grinned a bit and kept repeating to myself.

This is the last time...
This is the last time...
This is the last time...

Thursday, 04 January 2007 22:14:26 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Tuesday, 02 January 2007

Ugh... this is the tough part, as if waiting anxiously through your wife's pregnancy isn't enough. Now I'm worry about when she'll go into labour. Will it be at night while we're sleeping? Will it be in the morning when I'm off site in Klang? How many false alarms before she actually goes into labour?

Usually I pack my notebook stuff for work in the morning, now I pack it BEFORE I got to sleep in case I need to rush over to the hospital at night! :P

Tuesday, 02 January 2007 22:32:15 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  | 
# Monday, 01 January 2007

OK, it's 2007 so here I go with the resolutions for this year.

  • Make sure I start 2008 saying I should have been a better father to my kid.
  • Only get one phone replacement this year and stick with it till the next. *gulp*
  • Make it through the year without one panic attack of running out of time on work. :P

Now for the resolutions that I know I can meet

  • Get a Nintendo Wii.
  • Get Halo 3.

Monday, 01 January 2007 21:18:40 (Malay Peninsula Standard Time, UTC+08:00)  #    Comments [0]  |