星期二, 三月 07, 2006

Huffman code

Informal description
Given. A set of symbols and their costs.Find. A prefix free binary character code (a sets of codewords) with minimum weighted path length.Note-1. A code wherein each character is represented by a unique binary string (codeword) is called a binary character code.Note-2. A prefix free code is a code having the property that no codeword is a prefix of any other codeword.Note-3. In the standard Huffman coding problem, it is assumed that each symbol in the set that the code words are constructed from has an equal cost to transmit: a code word whose length is N digits will always have a cost of N, no matter how many of those digits are 0s, how many are 1s, etc. When working under this assumption, minimizing the total cost of the message and minimizing the total number of digits are the same thing.

星期一, 二月 20, 2006

When you tell me that you love me (by WESTLIFE)

又是一首很棒的歌
是由西城男孩唱的...

I wanna call the stars
Down from the sky
I wanna live a day
That never dies
I wanna change the world
Only for you
All the impossible
I wanna do

I wanna hold you close
Under the rain
I wanna kiss your smile
And feel the pain
I know what's beautiful
Looking at you
In a world of lies
You are the truth

And baby
Everytime you touch me
I become a hero
I'll make you safe
No matter where you are
And bring you
Everything you ask for
Nothing is above me
I'm shining like a candle in the dark
When you tell me that you love me

I wanna make you see
Just what I was
Show you the loneliness
And what it does
You walked into my life
To stop my tears
Everything's easy now
I have you here

And baby
Everytime you touch me
I become a hero
I'll make you safe
No matter where you are
And bring you
Everything you ask for
Nothing is above me
I'm shining like a candle in the dark
When you tell me that you love me

In a world without you
I would always hunger
All I need is your love to make me stronger

And baby
Everytime you touch me
I become a hero
I'll make you safe
No matter where you are
And bring you
Everything you ask for
Nothing is above me
I'm shining like a candle in the dark
When you tell me that you love me

You love me
When you tell me that you love me

星期二, 一月 10, 2006

我一定要做到
















2006第一号目標
我一定會做到
一定~~~

星期一, 一月 02, 2006

2006 Happy New Year in Taipei 101 (The best count down event ever)

去了Taipei 101倒數...
大家都很瘋狂
信義區, 信義新天地, Taipei 101, 還有台北市政府的周圍道路,
上面有空地的地方, 都站滿了人,
估計此次的跨年, 有四十萬人湧進信義商圈,
新竹的總人口也才39萬人, 可見其盛況,
我見過不少大場面,
不過我相信這一次是我人生目前, 看到最大的場面,


真的是滿滿的人,
我七點多就已經信義商圈了,
我逛著逛著, 就看到人越來越多,
一直到十一點的時候, 你人站在哪裡, 就在哪裡,
別想在換地方站了, 三十米的道路, 上面都是人,
五十米的道路, 也是滿滿的人,
連台北市政府正前方的仁愛路八十米的超大馬路,
上面也不例外的, 滿滿滿滿滿滿滿..............


每個人 不管站在101的哪一面,
每個人都抬頭雙眼注視著101,
一直聽到 "好漂亮喔!!" "快拍 快拍"...


因為我站在新光三越A4館那裡, 所以聽的到台北市政府前演唱會的狂歡聲,
以及將於2006/1/1開幕, 卻提前開幕的超大誠品門口的活動與排隊人潮聲,
真的好熱鬧~~~


想想我回國以後, 參加了連此次共三次的101倒數,
第一次, 2003/12/31, Taipei 101剛完成, 第一次搞倒數, 那一年我站在台北市府前,
跟著大家熱烈的隨著台上的五月天擺動, 然後, Taipei 101在最後八秒,
用他那八節主體, 一秒一秒的暗掉, 當時的我, 好驚訝 好高興...
那時候的很多人 都沒想到101會加入倒數
是最後 演唱會的主持人叫大家 看101 大家才很驚喜的歡度有101的第一次倒數


第二次, 2004/12/31, 迫不及待的去台北, 就是想看Taipei 101的跨年煙火
這一次, 我沒去台北市府, 我站在紐約紐約購物中心的天橋上,
注視著101的另一個角度, 好高 好大喔!!
世界第一高的大樓, 真不是蓋的,
不過這一次不在市政府, 所以聽不到倒數, 大家因為有去年的經驗,
所以知道101應該會有煙火表演, 所以大家都目不轉睛的盯著大樓,
聽不到市府的倒數, 所以慢慢的有聽到人群說.
"今年可能沒有煙火表演吧!!" "時間到了!! 怎沒還沒有!!"
心中也開始懷疑了起來...
突然, 大樓開始熄燈.. "來了!!!" "開始了"
歡呼聲四起, 大家像瘋了似的, 狂叫!!
那一年的煙火很好看, 很像一支仙女棒,
可是來不及照相, 因為一切都來的太突然了,
也被第一炸給震撼住了, 手握著相機, 一張也沒拍...


今年, 2005/12/31, 由於電視有廣告,
大家都知道Taipei 101今年會有很不一樣的表演,
所以 才會湧進那麼多人
今年 我站在新開幕的誠品(號稱目前全國最大的誠品)與新光三越A4館之間
聽的到一點點歡呼與倒數聲,
所以我一邊跟大家隨著大樓倒數,
一邊狂拍...
天阿, 好美...
最後 煙火結束後 上面顯示"2006 BRAVIA By Sony"
真是會做生意... 不過世界最高的廣告看板也很有特色阿!!!
總之, 今年的跨年 好屌!!!


由於 太多人了
我花了一個鐘頭把車子開出停車場,
兩個鐘頭把車子開出信義商圈,
台北市的每一個主要道路, 在3:00am 2006/1/1還滿滿的車子,
真的很特別...
我愛2005/2006跨年...
希望明年也能有這種盛況~~~
2006新年快樂, 希望大家身體健康, 事業順利~~~

星期四, 十二月 29, 2005

先改變自己

一位安葬於西敏寺的英國國教主教的墓誌鈱說:
我年少時,意氣風發,躊躇滿志,當時曾夢想要改變世界,
但當我年事漸長,閱歷增多,我發覺自己無力改變世界,
於是我縮小了範圍,決定改變我的國家。



















但這個目標還是太大了。
接著我步入了中年,無奈之餘,我將試圖改變的對象鎖定在最親密的家人身上。
但天不從人願,他們個個還是維持原樣。
當我垂垂老矣,我終於頓悟了一些事:
我應該先改變自己,用以身作則地方是影響家人。
若我能先當家人的榜樣,也許下一步就能改善我的國家,
再後來我甚至可能改造整個世界,誰知道呢?

星期一, 十二月 26, 2005

Last X'mas 去年的聖誕節

嗯... 這是一首80年代 很紅的一首歌
聖誕夜的前夕 收音機播送著這首歌
覺得歌詞寫的真是不錯
http://myhome.apbb.com.tw/kuoyulin/Last%20Christmas.mp3



這樣的故事並不是發生過
但是 我很少對歌曲有共鳴
於是 記錄下這首歌曲

=============================
LAST CHRISTMAS

Last Christmas
I gave you my heart
But the very next day, you gave it away
This year
To save me from tears
I'll give it to someone special

Once bitten and twice shy
I keep my distance
But you still catch my eye
Tell me baby
Do you recognize me?
Well
It's been a year
It doesn't surprise me
(whispered) Merry Christmas,
I wrapped it up and sent it
With a note saying "I love you" and meant it
Now I know what a fool I've been
But if you kissed me now
I know you'd fool me again

A crowded room
Friends with tired eyes
I'm hiding from you
And your soul of ice
Oh my I thought you were
Someone to rely on Me?
I guess I was a shoulder to cry on
A friend to discover with a fire in her heart
A girl under cover but you tore me apart
You tore me apart, ooo-ooo
Now I've found a real love you'll never fool me again

A friend to discover with a fire in her heart
A girl under cover but you tore me apart
[Spoken] Maybe next year,
I'll give it to someone
I'll give it to someone special.

===中譯==================

去年的聖誕節

去年的聖誕節,我把心給了你
但隔天你就將它丟棄
今年,我在淚水中力圖振作
我會把心交給一個特別的人

曾經受傷,不免心存畏懼
我保持著距離
但你依然吸引著我的目光
告訴我,寶貝
你認出我了嗎?
已經過了一年
我並不驚訝

(聖誕快樂)
我包裝好後將它送出
附上字條,寫著"我愛你"
我是認真的
現在我才知道當初真傻
但如果你現在吻我
你可以再次愚弄我

擁擠的房間裡
朋友們眼神疲憊
我想避開你和你冰冷的靈魂
老天,我曾以為你是多麼倚賴我
我以為我就是你可以靠著哭泣的肩膀

有著火熱的心的愛人臉龐
刻意掩飾,你卻將我拆穿
如今我已找到真愛,你再也不能愚弄我
有著火熱的心的愛人臉龐
刻意掩飾,你卻將我拆穿
也許明年我會把心交給一個人
一個特別的人

星期五, 十二月 23, 2005

Merry X'mas

聖誕節快樂