It all started with an invitation for a dinner from Junior…it was us, Bob and Alan the guys who have come to set up the SMS box here in Samoa. I was not that hungry at the time since I had a late lunch that day (this late lunch is happening quite often now!).
Then we headed to Bowling Aly, a night club. There was Karaoke and all of us enjoyed every last bit of it. So much so that Alan Darcy, an Irishmen, was adamant that he would sing even when the Karaoke system was not playing any songs! There was great music accompanying the people on the dance floor. I have heard that Samoans are very good at pulling everyone to the dancing floor even if they can’t dance to save their life! However, luckily I was not pulled. If I had been, it would look like some kind of break dance since while one part of my body moves; others would refuse, thus creating an illusion of break dancing :).
Next, we headed to Mac Donald’s to stuff ourselves at the only 24 hr joint here. And then, it was back to work. The whole night reminded me of the fun we had in
FSM. After a couple of weeks of hectic work all day all night, I guess we all deserved a break. Thanks to Junior for giving us one!
posted by 88Pro / Saturday, April 16, 2005
package com.senthoor.test;
public class ReplaceAll {
public static void main(String[] args) {
String replace = "this$works";
String original = "Hello World";
System.out.println(original.replaceAll(" ",replace));
}
}
|
Will this code work? NO. Why? Because
String.replaceAll(), is same as,
Pattern.compile(regex).matcher(str).
replaceAll(repl).
Note that backslashes (\) and dollar signs ($) in the replacement string may cause the results to be different than if it were being treated as a literal replacement string. Dollar signs may be treated as references to captured subsequences as described above, and backslashes are used to escape literal characters in the replacement string.[extract from JavaDoc]So if you think if your replacement String is going to have \ or $(like when I had to do some password replacement and these were valid characters for password in the system I was working on), you might be better off with, Apache StringUtils
org.apache.commons.lang.StringUtils#
replace(String, String, String)
posted by 88Pro / Saturday, April 16, 2005
I am getting links from friends pointing out that lot of people are in trouble because of their blogs. Lot of media spot light is on this topic and now you can add CNN to this list. Here are few interesting reads on this topic.
A very positive note from
Tim BrayTao of Mac rips Tim's claims apart.
A balanced view by
CNNHere is
Tim Bray's take on what Tao of Mac had to say.
Sam Ruby’s (May the source be with you)
extention to Bray's original post
posted by 88Pro / Sunday, April 10, 2005
This is something I need to bookmark it and keep. This is St.John's
College Magazine, 1994-1996. It has some of my Table Tennis records.
..... Just wanted to have the link so that I don't loose it.
posted by 88Pro / Friday, April 08, 2005
One of my friend has gotten into
blogging and let me link to him and welcome him to the blog world. As he is a doctor he has a
great write up about smoking. If you have time drop by.
posted by 88Pro / Monday, April 04, 2005
I started at
this post at
oreilly.com and ended up here, "
Hacking Las Vegas: THE INSIDE STORY OF THE MIT BLACKJACK TEAM'S CONQUEST OF THE CASINOS". An unreliable story about how group of MIT students were able to turn BlackJack games at casinos to their advantage by using card counting and brain power.
If you don’t know what Blackjack is or how it is played, read about it from
HowStuffWorks.com. This article also has a section on Card Counting which should give you a rough idea of how difficult it is to do Card Counting and how brilliant the MIT team is to break in.
posted by 88Pro / Saturday, April 02, 2005
What can be more appropriate to post today, than a link to
The Top 100 April Fool's Day Hoaxes. Some of them are really creative, and some have even used April Fool's as a medium to get back at their competition (
Check #99 on Page 10)
posted by 88Pro / Friday, April 01, 2005