Tuesday, August 18, 2009

Regular Expression For IP Address Validator

private boolean

validateAnIpAddressWithRegularExpression(String iPaddress){

final Pattern IP_PATTERN =

Pattern.compile("b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).)"

+ "{3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)b");

return IP_PATTERN.matcher(iPaddress).matches();

}

Importing outlook contacts in evolution

1. Open outlook
2. Go to File -> Import and export
3. Select "Export to a file" from the menu and click "Next"
4. Select "Comma separated values" and click "Next"
5. Write down the file name and select "Allow duplicates to be created"
6. Select the folder you want to transfer ("Contacts" in this regard)
7. Click "Next" and click "Finish"

Now boot in Linux and run Evolution.
1. Go to File -> Import
2. Click "Forward"
3. Select "Import a single file" and click " Forward"
4. Browse for the file in the file menu and select it and click "Forward"
5. Select "Personal" and click "Forward"
6. Finally click "Import"