Friday, April 25, 2008

Matching a Backslash in Java

I've done it a million times in the past but for whatever reason I keep screwing up how to properly write a backslash (\) in a regular expression. Sometimes i spent a little time to solve it but the problems is i simply forget it at next times. It is wasting times trying to figure out why the character class in this

[\";:()\\[\\]<>@.\\,]

regular expression wouldn't match strings containing commas. I'm blogging the solution so I'll have a permanent record and hopefully, I'll once and for all stop screwing it up!

Solution:
[\";:()\\[\\]<>@.\\\\,]

notes: character '/' is treat as normal string "/", and character '\' as character '\\'

Wednesday, April 23, 2008

BARCA-MAN UTD: Top of The World


CHAMPION LEAGUE SEMI FINAL FIRST ROUND

BARCELONA VS MANCHESTER UNITED
NOU CAMP, BARCELONA
kick-off 19:45 BST

DONT MISS IT!!!


CHRISTINAO RONALDO VS LIONEL MESSI
...WHO IS THE BEST OF THE BEST...

VS

Windows XP keyboard Useful shortcuts

General keyboard shortcuts
• F2 key (Rename the selected item)
• F3 key (Search for a file or a folder)
• ALT+ENTER (View the properties for the selected item)
• ALT+F4 (Close the active item, or quit the active program)
• ALT+ENTER (Display the properties of the selected object)
• ALT+SPACEBAR (Open the shortcut menu for the active window)
• ALT+ESC (Cycle through items in the order that they had been opened)
• SHIFT+F10 (Display the shortcut menu for the selected item)
• ALT+SPACEBAR (Display the System menu for the active window)
• CTRL+ESC (Display the Start menu)
• F10 key (Activate the menu bar in the active program)
• SHIFT when you insert a CD-ROM into the CD-ROM drive
(Prevent the CD-ROM from automatically playing)
• CTRL+SHIFT+ESC (Open Task Manager)

Microsoft natural keyboard shortcuts
• Windows Logo (Display or hide the Start menu)
• Windows Logo+BREAK (Display the System Properties dialog box)
• Windows Logo+D (Display the desktop)
• Windows Logo+M (Minimize all of the windows)
• Windows Logo+SHIFT+M (Restore the minimized windows)
• Windows Logo+E (Open My Computer)
• Windows Logo+F (Search for a file or a folder)
• CTRL+Windows Logo+F (Search for computers)
• Windows Logo+F1 (Display Windows Help)
• Windows Logo+ L (Lock the keyboard)
• Windows Logo+R (Open the Run dialog box)
• Windows Logo+U (Open Utility Manager)

Microsoft Internet Explorer navigation
• CTRL+B (Open the Organize Favorites dialog box)
• CTRL+E (Open the Search bar)
• CTRL+F (Start the Find utility)
• CTRL+H (Open the History bar)
• CTRL+I (Open the Favorites bar)
• CTRL+L (Open the Open dialog box)
• CTRL+N (Start another instance of the browser with the same Web address)
• CTRL+O (Open the Open dialog box, the same as CTRL+L)
• CTRL+P (Open the Print dialog box)
• CTRL+R (Update the current Web page)
• CTRL+W (Close the current window)

Monday, April 14, 2008

Manchester 2 Arsenal 1

Didn't really expect such a close win from Man Utd... Heh heh..
1 goal from Ronaldo spotkick and one sneaky freekick is really on fire.
No wonder there are so many jealous haters :)

Thanks to the Van Der Sar, manchester save alot dangerous shoot and pass from arsenal..InTerEsTinG game from both sides.

PROPER WAY TO USE THE MEDICAL CARD

PROPER WAY TO USE THE MEDICAL CARD
IN CASE OF EMERGENCY!!!
In cases of Emergency, a matter of LIFE & DEATH (eg Heart-attack, Strokes, Accidents) NEVER.. NEVER.. NEVER use a medical card! Why?....

1. In the emergency room, you will be asked to register and make a 'Deposit' BEFORE the patient is TREATED!

2. When you show the medical card….the doctor MUST complete the claim form and fax to the insurance company BEFORE they can treat the patient. The hospital MUST wait until the insurance company Confirms coverage & limit of policy.

3. ALL these procedures may take 1-2 HOURS!! By this time the patient may have lapsed into a coma!!

4. Use your credit card or Cash FIRST. AFTER the patient has been treated & attended by the doctor, then show the admission counter nurse the medical card. She will then liaise with the insurance company directly for the approvals. She will tear the earlier credit card deposit once the insurance company has approved.

5. By now the patient would have been wheeled into the room to rest or to the surgery room for immediate surgery. Sincerely we pray no one has to go through such an ordeal. Share this info with your loved ones, your colleague & friends.

Man Utd's next generation of wonderkids

Manchester United have set off on their pre-season United States tour with a number of young stars involved, but some other talents have lef...