Today, I poke around Java Swing to build up a simple data entry. One thing I wanted to do is to create a number input field so as usually I hack through the API document and found this little JFormattedTextField component. By the judge from the API point of view it is pretty easy to use. … Continue reading From Java Swing Dimension JFormattedTextField bite
Joljet mobile client
A few years ago, I built a music portal to experience ExtJS and of cause to create my own music listening experience. It was fun and I have learnt a lot from this exercise from hand craft the app, built script and caching optimization. As always with great power come great responsibility. Due to the size … Continue reading Joljet mobile client
Use jQuery select an option from dropdown
Self note Using index: Or select by value:
Yii overwrite accessRules in base class
Suppose you defined a base class Controller with basic accessRules and you want to add (overwrite) rules in derived class, using array_merge here how you do it: As best practice your base class default access rule is deny all by default.
Code Reading Skills for ExtJS newbie
@samnangchhun wrote a blog post talking about this particular subject, I just want to share my experience exploring a new tool especially the ExtJS library from sencha.com Now there is something special about sencha.com which I love, they put alot of effort in documenting their library API as well as sample projects in every release. … Continue reading Code Reading Skills for ExtJS newbie
Play!
Out of my boredom I usually tune in some random Khmer Oldies Songs just to remind myself the glorious era where sound of the music would flew into the deepest of my heart and cheer me up. What I did in the pass was collect all my favorite songs and classified it manually and sometime after … Continue reading Play!
[mac os x lion] Reset a user’s password in single user mode
Lesson learn for mac newbie, always show input method in login screen otherwise here how you going to get back into your machine. Boot into single user mode (press Command-S at power on) Type fsck -fy Type mount -uw / Type launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password. Ignore … Continue reading [mac os x lion] Reset a user’s password in single user mode
Build monodevelop on ubuntu 11.10
Again? yes but this time I don't have to built mono runtine Ubuntu 11.10 packed with mono 2.10.5 which good enough since what I am after is dynamic. However monodevelop I got from Ubuntu Software Center (USC) is 2.6 and the official release is 2.8.x so I take my on my gut to try and … Continue reading Build monodevelop on ubuntu 11.10
LINQ 101 .NET Reflection
In this post I am going over three points listed bellow: What is .NET Reflection? Cut short it refer to a set of API built-in .NET Framework, which give you a greate power to load and manipulate type within assembly (.dll) one of the most favor use is to support late binding. There a whole lot … Continue reading LINQ 101 .NET Reflection
.NET developer survive on linux
I've been joking with my friends "the open source fan boyz" that I am a Microsoft slave for the fact that I am a dedicated .NET developer. But for all the joke I found some competitive disadvantage for me moving forward. If customer is looking for a low cost solution .NET is not the way to … Continue reading .NET developer survive on linux