My Blog

All about my activities, Ideas and everything.

Month: August, 2010

How to : Java add custom annotation

From Java 5, there is a new feature called annotation that provided easier to tag or mark class or method. For example, in JUnit we can ust @Test above a method to let the JUnit engine knows that this class is a test case. Moreover, we can also implement our own annotation as well. Reference: [...]

Tutorial : J2ME and Netbeans : How to test RecordStore with emulator

I’m using Netbeans 6.9 and implementing RecordStore and I want to test that with emulator. How would I do that? because every time I close the emulator, the state will be deleted or gone in some way. This is my way of doing that. Basically, you just have to actually install the application in the [...]

If XML file is too big for AJAX

http://www.developer.com/lang/php/article.php/3897851/article.htm I found this article which is quite useful. What will you do if XML file is too big. 1. Transform the XML documents into a character string. 2. Split the character string into equal chunks (400 characters). 3. Save each chunk as a value in an array. 4. Transfer the chunks one by one [...]