Posted on February 27, 2011, 6:09 pm, by Van Nhu.
I use to play my faceboook app Chinese poker on my Iphone on my way home from work. My connection is not fast enough and it made the game less interest. . I felt also a litle bit frustrated. I need to do something about it and out comes JQuery Datatable. JQuery Datatable generates a [...]
Posted on February 11, 2011, 2:59 pm, by Van Nhu.
Was curious on how window.history.pushState works and since I have been used jQuery history plugin on my Facebook application for years (Thanks to Taku Sano, Takayuki Miwa, Lincoln Cooper!) and still ran on an old version I decided to add support for new feature in HTML5 and rewrite it a litle bit. How does pushState [...]
Posted on February 21, 2010, 3:20 pm, by Van Nhu.
Last week, I was trying to create a shuffle function on my array class which extends the native Array class. I got the ReferenceError when running the code bellow. The reason is that Array is a dynamic class and my is not. Since Array is dynamic, it will try to create new property when you [...]
Posted on November 22, 2009, 5:19 pm, by Van Nhu.
For example if process name is php, you can get a list of jobs by using the command bellow ps aux | grep php Result root 7749 0.0 0.1 3236 796 pts/2 S+ 16:09 0:00 grep php root 19292 1.8 5.6 90624 28528 ? S 01:36 16:09 php test.php To kill a process you can [...]
Posted on November 11, 2009, 11:00 pm, by Van Nhu.
vnkeys is originally designed to work with flash.text.TextField and you can feel it when typing. The replacement happens smoothly. It is easy to use and the code bellow will explain how to… package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldType; import org.vnmedia.vnkeys.KeyConverter; import org.vnmedia.vnkeys.mapping.VNIMap; // define swf dimension [SWF(width=160, height=60)] // this is an [...]
Posted on November 5, 2009, 11:24 pm, by Van Nhu.
This post is for you that have read this quick start from Zend and our goal is to create a bootstrap like this one. We assume that you know how to create a project, layout, module, controller and action by using zf.bat, zf.sh or manually and further that you are able to create a helloworld [...]
Posted on October 26, 2009, 10:50 pm, by Van Nhu.
The goal of this post is to show how we can create a radio button group so users can switch on and off when using vnkeys as the swf above. To create TextArea and TextInput we use input components that follows vnkeys (see this how to for details). Bellow is our code example where we [...]
Posted on October 26, 2009, 12:27 am, by Van Nhu.
In the package org.vnmedia.flex we find two subclasses of Flex controls class. FlexTextInput is extending TextInput and FlexTextArea extending TextArea. Those two inherit all functionalities from their parent. We just added some more code handling the typing since TextInput and TextArea behaves unlike TextField. It is simple to use. You just need to declare namespace [...]
Posted on October 24, 2009, 10:31 pm, by Van Nhu.
Bellow is a table on how to hit the keyboard (left hand side) to get the vietnamese letter (right hand side) VNI => Vietnamese a1 => á a2 => à a3 => ả a4 => ã a5 => ạ a6 => â o7 => ơ a8 => ă d9 => đ We do not implement [...]
Posted on October 23, 2009, 10:02 pm, by Van Nhu.
In actionscript 3 one can not use private scope for constructor and you need a workaround to implement simgleton pattern. Following is one way that I use package { public class Singleton { private static var instance:Singleton; private static var isAllowedInstance:Boolean; public function Singleton() { if (!isAllowedInstance) { throw new Error("Please use " + [...]