Sunday, 30 December 2007

Do you key www before your blogger add?

I have come across quite a number of blog which repeat the same mistake. You don't have to key the www in front of your blogspot address.

For example,
xxx.blogspot.com - correct
www.xxx.blogspot.com - not necessary

Some people assume that for every internet address www is default. This is not true. During the first invention of world wide web, almost all the website carry the www address. Until today, there is not necessary anymore. In technical terms, with or without www is just a configuration only.

Friday, 28 December 2007

Tips to counter inflation 2008

Going into year 2008, inflation is very real for all the people. The forecast inflation number is quite stunning, our wallet would get squeezed. In fact, my wallet already started bleeding, follow by recent food price hike, fare hike, what ever.

So, some tips to counter the inflation next year.

  1. Reduce the eating out ocassion/avoid going to restaurant
  2. Reduce shopping trip (no see, no buy)
  3. When going to hawker centre, always order mix vege rice or anything 2.5 & below
  4. Bring your own plain water
  5. Refrain from taking taxi
  6. Don't buy useless gadget (good, but not essential to have)
  7. Holiday at nearby countries - Malaysia, Indonesia, Thailand
Keep your money in the bank, and let the inflation drop!

Completely my last wedding dinner of the year

Tonight, I have completed my last wedding dinner of the year. It is nice to share the joy of marriage with my friend and I truly enjoyed the food offered by the swissotel. It was a nice combination of style and food quality.

This year was quite heavy on my wallet, as there were many wedding banquet being held. Going into 2008, I haven't receive a single invitation yet. This is a good sign, haha. At least for the first 3 months, I would expect no invitation card.

Do let me know earlier if you plan to invite me for the dinner. I have to save the ang pao money before hand.

Thursday, 27 December 2007

Second trip to Old Airport Road

Today, together with another colleague, we set off to Old Airport Road hawker centre the second time this month. He said he wanted to taste the Nam Sing fried hokkien mee (described as legendary). We thought the opening hour is till 8pm. So we happily took the train and bus there. Only realised when we arrived there, it is closed. I am not sure the opening hour, but definitely have to go there during weekend day time.

Since hokkien mee is out, we have some other dishes instead.


The dessert is sold by a soya bean stall - Selegie Soya. I only realised I forgot to take picture after I have finished. Therefore, only an empty bowl for you to see. The cincau taste nice, coupled with the syrup and atap seed. Makes a cooling and nice dessert.


The assorted kueh is sold by a stall claimed to be famous in Tiong Bahru. After tried it, the taste is fair enough, but not fantastic. The gula melaka inside the oneh oneh is quite stingy, it drag down the overall taste. The other kuehs were made by different ingredients that I have difficulties to differentiate.


The satay is from a stall called Old Man something. The waiting queue was fairly long. So originally I expect it to be good. However, after the long wait, the first taste verdict? Too sweet. I have tried different types of satay, but clearly this is not for me. The meat is marinated with too much sugar or sauce, and somehow it is surprisingly sweet. The satay sauce also very plain, the peanut is not crunchy and not spicy enough.

When we took the bus back to Kallang mrt, we passed pass a stretch of shop near the mrt. Unknowingly, the area has been transformed into China steamboat city. I think there are at least 6 to 7 steamboat shop over there, selling different type of steamboat coming from different area of China. If got time, I would try it next time and give comment.

Wednesday, 26 December 2007

Useful unix command

As a IT professional, very often, I have to use unix command. Here is list of useful command for easy reference.

#Recursive grep the word
find . -name "*.java" | xargs grep -l <search_word>

#Recursive grep the word ignore case
find . | xargs grep -li <search_word>

#Create tar
tar cvf <file name> <dir>

#List tar
tar tvf <file name>

#Extract tar
tar xvf <file name>

#Zip file - Original file changed
gzip <files>

#Zip file - Original file unchanged
gzip -c <files> > <tar file>

#Unzip the file
gunzip test.tar.gz

#Use awk to tokenise string
cat file.txt | awk -F ":" '{print $2}'

#Grep file name to copy to another directory
grep -l '\[273\]' *.txt | xargs -i cp {} <dir>

#Sort lines in file
sort <file>.txt >> <file>.txt.so

#Remove duplicate
sort <file>.txt | uniq > <file>.sort

#Remove spaces
cat <file>.txt | sed -e 's/ //g'

#Find files bigger than this size 1.5MB
find . -type f -size +1572864c -exec ls -l {} \;

#Show space occupied by directory and content
du -ks <directory>

#Sum and sort the space occupied by each sub directory
du -ks ./* | sort -n

#Remove old log files
find . -type f -mtime +45 -exec rm -f {} \;

#Find big old files
find . -type f -mtime +365 -size +700000c -exec ls -l {} \; >> big_old_files.txt 2>&1 &

Tuesday, 25 December 2007

选择

平时我们去小贩中心,总是要从众多的摊位中选择要吃的食物。如果你对那里不熟,通常都要想半天。结果点的食物没有达到要求。又好像我有朋友办结婚晚宴,酒店给了一大堆选择,结果花了一大堆时间选来选去。最后好像都差不多。

这就是选择的坏处。因为有的选,我们往往就迷失在当中。选工作,选伴侣,选房子。一些人在后悔的时候,就会把当初的选择拿出来讲。当初应该怎么样。。。怎么样。。。

如果没有的选的话,那人就会勇往直前,不用像太多。最后我觉得反而可能更好。

Thursday, 20 December 2007

44th Golden Horse Award - Lee Hom & symphony

Just in case you did not watch the show, this piece of performance is one of the best of that night. One of my favourite too!

Design by Dzelque Blogger Templates 2007-2008