Sometime, you may want to format an integer or a long value into a fixed width String. You need to display the value in fixed width especially in reports where you want to keep the numbers in aligned (e.g. 3456 as 0003456 and 1234 as 0001234). Other than that, you may also want to format the integer value for a better visibility. For example, to display integer value as a do … [Read more...]
Google Wave Invitation Giveaway
I got my free Google Wave invitation from LiewCf, thanks for the invitation! Ok, now is my turn to give you guys, my blog readers, the free invitations. … [Read more...]
Adobe Acrobat Reader: Possible Security Vulnerability When Acrobat JavaScript Is Enabled
It is possible to have security vulnerability in Adobe's Acrobat Reader if the Acrobat Javascript option is enable. When the option is enabled and you open a crafted PDF file with Adobe Reader that allows JavaScript execution, your computer will be exposed to security risk - hacker may able to access your valuable data from your hard disk. … [Read more...]
Java: Continuously Read Data From FileChannel Without MappedByteBuffer
When programmer writes a program to read data from a file continuously and sequentially with a fixed data type reading sequence (e.g. to read three integers then 2 doubles repeatedly), he or she may find the MappedByteBuffer from Java library is useful. … [Read more...]
Short URL: Top 5 Websites That Provide Free Short URL Service
What is a "short URL"? Short URL or tiny URL is an URL used to represent a long URL For example, http://tinyurl.com/45lk7x can be used to represent and will be used to redirect to http://www.snippetit.com/2008/10/implement-your-own-short-url. Why people use short URL? First, because it is easy to remember. Imagine when you read an article on a magazine or newspaper that … [Read more...]