March 2006 - Posts
Spend much time basically fixing all the 'code breaks' of Shock. One problem is that my textfield's doubleclick is not working. After trying for 2 hours to try to solve the problem, I realize that there is a field which I must now set to true. <TextFieldInstanceName>.doubleClickEnabled = true; Once that is set, my event listeners will start firing double click events..=x
spend quite some time migrating shockos(tentative name, unless someone can help me think of a better name) from Flex beta 1 to beta 2 today. It cannot compile when moved to beta 2 (and this is happen in all beta 1 application) because the xml namespace has changed to
http://www.adobe.com/2006/mxml. After which I got a lot of errors as closeButton is replaced by showCloseButton for titleWindow, and there is now this property of showRoot for all the components which uses XML as a dataprovider, without which the menus, trees , etc, will not render correctly. Most are this 3 problems..subsequent minor problems includes the popUpManager. Previously in Beta 1, you can use addChild method of any UIComponent to add a child, but use popUpManager to remove (even thought the new UIComponent is not added by popUpManager). This no longer works. Thanksfully a change to removeChild do the trick.
Also get a lot of warning errors for being lazy last time (read: never specify return type). Other errors are visual errors. Some CSS styles I used no longer works. Some got to try to rectify it. Alpha to beta 1 was much smoother (Only Void to void, thats all!). Hopefully when the next version arrives, the transition can be smooth (a wizard to help in conversion will be nice)
Developers who work with Beta 1 should have know some intellisense are..missing.
Like Bitmap Filters constructor..where are the intellisense??? lol..Thanksfully they put it in beta 2. Speaking of filters..the one that always impress me is
joa. Innovative use of filters that leave my jaw dropping..haha
By the way Anderson points to me this
competition by RocketBoots.
Its the same as Macromedia developer's derby, just that its open to developers outside US and Canada. Time to go back to Flex Beta 2 and type some codes ~
Flex Beta 2 is now available for download.
I was pretty excited when I learn about
Flex Developer's Derby, and I tot of submitting shockos for it. By why only US and Canada residents can enter the contest? Pretty discouraging for me. =(
Most smartphone games are either short and repetatives, or not very engaging (what I feel personally), and most importantly, not free. Luckily there is a project around which can turn your smartphone into a gameboy color!
gnuboyAllow me to play classics RPGs while I am on the go. As a follow up to my previous post on playing divx videos on Smartphone, I think smartphone will slowly replace portable media devices, especially with insanely cheap sdcard (I just buy a 1 gig kingston mini sd card for $64!) Given a game (game boy color) is 1 mb, and a full screen divx movie around 200mb, its more than sufficient to put movies, many games, mp3s, podcast, msdn video, anime to keep me busy during travel time. I used to read news only over the phone only a year ago...haha
For battery life,
the core media player can play for 3 hours straight, and still enough to last me the whole day.
If you want some..violent action..can download
Doom
One of my friend has come out with a Personalized name stickers online business at
stikybusiness.com

Pretty cool if you need to have some *cute* decoration for your children
I was coding a image processing application using c# today. My task is very simple, for each image, divide it into 8 x 8 pixel block. For each block, gets its DCT, quantized it, and finally the histogram of its YCrCb. It is a very simple for-loop with multiplication and calculations of matrix.
Been a noob in handling in images, I manually loop through the jpeg files, and used getPixel to get the information of the image at pixel level, and do the calculations. A small 500 x 375 picture took...11 seconds....
Googling a while, i realize its the getPixel method. I suppose this is pretty well known, just that most of the time I am coding asp.net so never touch this department before, haha. A few more googling effort reveals this page
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp11152001.aspGot to use unsafe codes to access the bitmap instead. After changing getPixel to the class's PixelAt, the same calculate takes 0.5708208 seconds.
11 minutes vs 0.57 seconds..what a huge performance difference!
A great boost to the development of shockOS is
Flex 2 library just released on
Macromedia LabsFlex 2 Library includes the MD5 hashing utiliy, the essential tool I need to tap into some web 2.0 apis. It also has flickr and youtube api, which I am directly integrate in, and the much needed RSS parser. I was just telling a friend yesterday it will be good to have a MD5 hashing utility in flex and now there is. Hopefully more libraries can be up soon. XD