Sunday, July 31, 2011

WOT test server up

Yep, I spend over 10k gold to get the IS4, and is a bit disapointed. A bit slow, and I was killed rather faster during my first 2 trials....

Thursday, July 21, 2011

Starcraft match, Baby vs Killer

http://www.youtube.com/watch?v=1VXIE0o9Qbo&feature=feedu

See link above. I was surprised by who finally win :-)

Thursday, July 14, 2011

javascript math

So what is 70.18*100 in javascript? It might be surprise you that the result is 7018.00000000001.

And number.toFixed() should fix this nicely.

Another interesting thing about jqGrid. I have a date column that requires a customized format but needs to be sorted as date. I did some research and none of the online solution works (my jqGrid version is 3.6.5). So I download the source, and what's going on is jqGrid parse the date with y,m,d,h,i,s A (as year, month, date, hour, minute, second, AM/PM). So the solution is:

sorttype: 'datetime', datefmt: 'm-d-y h:i:s A' (I am mm-dd-yyyy hh:mm:ss AM/PM format).

Wednesday, July 6, 2011

Cool jQuery UI

Haven't been doing scripts for a while, and there is one from msdn that looks pretty cool: http://msdn.microsoft.com/en-us/scriptjunkie/hh127352.aspx

Kind of surprised how easy it is doing round corner UIs :-)