This article demonstrates how to generate random password or string using java.util.Random.
You can define your own set of characters in this string variable
private static final String charset = "!0123456789abcdefghijklmnopqrstuvwxyz";
Class: RandomPassword.java
Read more...
Author: Manet Yim
Programming
Common Issue
When you use java.util.Date object with JDK version higher than 1.1
Date d = new Date();
d.getMonth();
You will get deprecated warning messages when you try to compile
The method getMonth() from the type Date is deprecated
However you can supress the warning message by adding @SuppressWarnings("deprecation") to you main() method
@SuppressWarnings("deprecation")
public static void main(String[] args) {
...
}
or adding @SuppressWarnings("unchecked") to other method
@SuppressWarnings("unchecked")
public void otherMethod() {
...
}
Note that this can only be used in JDK 5.0+
Alternative
Now let's forget about working around the deprecated method, let's learn how to use java.util.Calendar instead
Read more...
Author: Manet Yim
Programming
In Java Language, there are 4 types of operators
- Arithmetic
- Relational
- Logical
- Bitwise
The rest of this post includes a small class to demonstrate on how those operators are used.
Arithmetic Operators
+ : Addition
- : Subtraction
* : Multiplication
/ : Division
% : Modulus
++ : Increment
-− : Decrement
Read more...
Author: Manet Yim
Programming
The scenario that I came across is, when I am working on a excel file which required to present in multiple page print out, I will need to keep showing every column on each page printed out. Ok, how do I achieve that?
In this post, I will show you how to get around it.
Say you have data similar to the Screenshot below

In printed out on A4 paper size, there will be 2 pages. Page 1 will include Task Item column, Page 2 will not inlcude Task Item column. Now follow steps below to get repeat print column
Read more...
Author: Manet Yim
FAQ & Tip
This tutorial is showing you how to setup secured ftp connection from another machine to Linux. In this demonstration purpose, I am going to use Windows XP and Ubuntu 8.10 Server.
The rest of this post will take you through
- Requirements
- Installation
- Setup connection
Requirements
Read more...
Author: Manet Yim
FAQ & Tip, Software
To set up your own web server is not a hard thing to do. This post is showing you how to install IIS (Internet Information Server) on Windows XP and get your first welcome page up and running.
IIS server is shipped with Windows XP, you do not need to download or use any other third party software.
Table of Content
- Requirement
- Installing
- Setup Website
- Testing
Read more...
Author: Manet Yim
FAQ & Tip
For a basic computer virus protection for your home pc, you don't need to spend a cent on anti-virus software. There are 4 of them to choose from.
- AVG Free Edition
- Avast! Home Edition
- BitDefender Free Edition
- ClamWin
Read more...
Author: Manet Yim
Software
By default Windows XP does not enable Clear Type Font. You have to set it manually. You can do this one of the two methods
- Change Desktop Properties Settings
Recommended for normal users
- Edit Windows Registry
Recommended for Advanced users
Let's get start
Change Desktop Properties Settings
- Right Click on your desktop
- Display Properties Windows appears

- Click on Effects button
- Effects Windows appears

- Select Clear Type
- Click OK button
- Click OK button again on Display Properties Windows
Read more...
Author: Manet Yim
FAQ & Tip
Are you Software Developer? if yes, you might find this post useful. You could find free apps which I believe they are used most by other developers out there.
This post will take you to list of software under the following categories
- Integration Development Environment (IDE)
- Text Editor and Comparison
- Databases Engine, Client and Server
- File Archive and Transfer
- Virtual Machine
- Graphics and GUIs
Read more...
Author: Manet Yim
Software
After looking through forums, I saw a lot of people (including myself) experienced a bad time with wordpress upgrade where thing doesn't always happen in the way you expected to happen, either the whole thing get screwed up or not 100% working in the way it should be. The worst thing is they could not revert back the old working version.
If you have similar problem above, maybe this post is a great tip for you. This will also be a good post for my future reference. I have used this method when I upgrading this website (computer-faqs.com).
Table of Content
- Before upgrade
- Upgrade
- After upgrade
- Prepare to go live
- Simple Rollback
- Summary
Read more...
Author: Manet Yim
FAQ & Tip