Google Code Block

2012年2月25日

Words of Wisdom

 

Watch your thoughts,
for they become words.

Watch your words,
for they become actions.

Watch your actions,
for they become habits.

Watch your habits,
for they become your character.

And watch your character,
for it becomes your destiny.

What we think, we become.

Said from Margaret Thatcher, The Movie Iron Lady

2011年12月7日

Silence is Killer

First they came for the Communists

When the Nazis came for the communists,
I remained silent;
I was not a communist.

When they locked up the social democrats,
I remained silent;
I was not a social democrat.

When they came for the trade unionists,
I did not speak out;
I was not a trade unionist.

When they came for the Jews,
I remained silent;
I wasn't a Jew.

When they came for me,
there was no one left to speak out.

Friedrich Gustav Emil Martin Niemöller

_________________________

當納粹追殺共產主義者,
我保持沉默;
我不是共產黨員。

當他們鎖定了社會民主黨,
我保持沉默;
我不是社會民主主義者。

當他們來抓工會會員,
我沒有說出來;
我不是工會會員。

當他們追殺猶太人,
我保持沉默;
我不是猶太人。

當他們來抓我,
有沒有人留下來說話了。

Reference : wiki

2011年8月28日

看不懂?當日大量買入賣出有何意義?

9933

9933-2

兆豐證在8/17買入又賣出9933七萬多張

這樣換手的意義何在?

先記錄一下,希望以後能解答自己的這個問題

2011年4月8日

銘句

people always own thier own freedom to come, to go, to leave and stay.
but can't stop themselves loving someone, recalling something.

2010年8月5日

[Python] 傳遞 class、function 及其 arguments

在 Python 的世界中,所有東西都是物件,所以函式也可以當作物件來傳遞,例如:
def func(func2):
     z = func2()
     print z
def func2():
    x = 1
    y = 2
    return x+y
執行 func() 可得 func2() 執行結果
但是函式也有可能接收不同的參數,

2010年4月21日

CKIP Client for C# (part II - Bug 修正)

有網友在CKIP Client for C# (part II - 新增詞性分析)中提到:
」傳去700個字元,但實際上卻只回來3、4百個字元」
」傳回已斷詞過的詞性,不到一半」
經過測試後發現,用本程式傳長一點的文章斷詞,就會出現此問題。Trace 一下 code :
// Blocks until send returns.
byte[] msg = Encoding.Default.GetBytes(xmlString);
byte[] bytes = new byte[1024];
int i = _conn.Send(msg);
// Get reply from the server.
i = _conn.Receive(bytes);

2010年1月13日

當兵注意事項

ironbull
想不到竟然是退伍後才來寫這篇,又勾起了我剛入伍時那青春(?)又熱血(?)的回憶...(遠目)
以下的資料是學長整理給我的,現在要送給即將邁入人生另一階段的好友,祝福你...減肥成功 XD