Java 的 Internationalization 與 Localization (Internationalization and Localization in Java)

在 Test.java 中編寫
Create a file call Test.java and type

import java.util.ResourceBundle;import java.util.Locale;public class Test {    public static void main(String[] args){        System.out.println(ResourceBundle.getBundle("messages").getString("greetings"));        System.out.println(ResourceBundle.getBundle("messages", new Locale("a", "b")).getString("greetings"

快樂


快樂是看見家人的快樂,然後自己也快樂。

表弟昨日結婚,辦了一個令全家人都快樂的婚禮。

平時到朋友的婚禮,總及不上親人的婚禮那麼親切,那種親切就是現場大部分親戚你都認識,你不會感覺陌生,你會知道其他親朋都在

Lab Series Max LS

試用了Lab Series的男士護膚三步曲差不多3個月,是時候來到第三步—–潤膚。

由於我屬於油性皮膚(我想知道那個麻甩佬不是),初時我還以為,隨便找一瓶潤膚產品也可以,反正面部油脂很快便會出來,洗面後只要隨便塗上少許

Continue reading...

The comedy potential inherent in people reusing your address space

For my non-sins, I used to be one of the people who saw email complaintsabout UofT-wide spam issues (as opposed to spam issues for the specificsubdomains that I was responsible for). As part of this, every so oftenwe would get a complaint saying that a UofT IP address (usually but notalways in 128.100.0.*) had spammed people, with Received: headersincluded so that we could see this ourselves.

There were two problems with


放狗屁、賺大錢

如果閣下精於放狗屁,卻又一貧如洗,便應考慮從事以下的工作,包管你單憑放狗屁就可以賺到盆滿缽滿。

1. 風水命理師:只須拿著羅盤,記熟一堆風水命理的詞彙和口訣,隨便指指點點人家怎樣擺放傢俱、裝這拆那,就可以

月滿軒尼詩("Crossing Hennessy") ------ 學友,湯唯,安志杰的關係沒火花!
























導演: 岸西 (2010)
編劇: 岸西
主演: 張學友, 湯唯, 安志杰, 鮑起靜, 李修賢, 朱咪咪, 張可頤
片長: 104分鐘

1. 套戲好淡,沒太多印心的東西!相對地最有火花及高潮位只有張學友與前度張可頤(其實我唔認得佢,
Continue reading...

愚人節的都市日報

都市日報在愚人節推出潮搞香港新聞,的確比現在的新聞更反映香港問題,什麼香港小巴司機奪F-1冠軍,維港填平,李超人宣布取消風暴警訊。

香港人的言論自由,又見一斑,令我看後都不禁拿來玩一玩。

jpgbox.com image hosting

Continue reading...

NPS三修之道

網上的人常說自己NC雙修,意指自己開了兩個相機系統,買了NIKON相機,自然用nikon mount的鏡頭,那對nikon系統有些厭惡,想昇級的話,佳能Canon就是最佳的選擇,像佳能的新機5d mark2,簡直就是攝界最強。

強在哪? c/p值嘛,就是那


Why commands can never afford to get it wrong in a version

Netcat is a nice, handy program; there are any number of circumstancesin scripts and the like where what it does is just what I want. I don'tuse it, though. Instead, I have my own simple netcat-like program(called tcp ) that I use instead.

There are a number of reasons for this, but one significant reasonis that some versions of netcat get the end of file logic wrong. When they see end of file onstandard input, they just close standard input


怎樣才算工作?

替我們舖木地板的是個本來不太相熟的朋友,他在我家工作了幾天之後,便知道我只須星期一、三、五早上教書,其餘大部份時間在家裏;有一天,他忍不住說:「你好像不用工作似的,真寫意。」我連忙答道:「我每天的工作