Thursday, December 15, 2011

Have Yourself A Merry Little Christmas

One of my favorite Christmas song. Accuradio has a channel “Have Yourself A Merry Little Christmas” that plays various versions of this song. That is so nice.

 

Have Yourself A Merry Little Christmas – Lyrics

Music composed by Hugh Martin, lyrics by Ralph Blane

Have yourself a merry little Christmas,
Let your heart be light
From now on,
our troubles will be out of sight

Have yourself a merry little Christmas,
Make the Yule-tide gay,
From now on,
our troubles will be miles away.

Here we are as in olden days,
Happy golden days of yore.
Faithful friends who are dear to us
Gather near to us once more.

Through the years
We all will be together,
If the Fates allow
Hang a shining star upon the highest bough.
And have yourself A merry little Christmas now.

Tuesday, November 29, 2011

Python utf-8 decoding problem

今天用Python/Google App Engine寫網站時遇到的error message:

File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa4 in position 57: invalid start byte

中文無法正常顯示,後來查到的解決方式是:把檔案編碼方式改成utf-8即可正常顯示。
reference: http://bbs.chinaunix.net/archiver/tid-2332880.html

Sunday, June 19, 2011

Melody–Realize (龍櫻op)

作詞:melody. /MIZUE
作曲:Koutaro Odaka
編曲:Kei "Spicy" Kawano

(日文)

I can 迷わずに 進もう
願いに 近ずけるよ
I see the light
Wake up, stand up
もう一度 明日へ try

Look at my 小さいの手で
Hold on tight つかまえた my precious
なくしそうな visions is me
見失いたくない 自分のway

Do you know that I want it all
心の奥で 輝き つずける
その夢を 忘れないで

I can 迷わずに 進もう
願いに 近ずけるよ

いつの日にか 溢れる 光の花を咲かせよう
I see the light
Wake up, stand up
もう一度 明日へ try

Here I am 瞳閉じたら
独りじゃないことに 気ずいた
乾いていた 心が 嬉しい 涙に染まる Once again

I promise 今から
この胸の中で 動き始めた
この鼓動 感じながら

I will 思い切り つらぬく
このまま 走りたいから
いつの日にか 夢見た場所で
A-ha-ha と笑っているでしょ
Wake up, stand up
何度でも Get up and try

Carry on…..
I realize
I realize
That we can get there

I can 迷わずに 進もう
願いに 近ずけるよ

いつの日にか 溢れる 光の花を咲かせよう

I will 思い切り つらぬく
このまま 走りたいから
いつの日にか 夢見た場所で
A-ha-ha と笑っているでしょ
Wake up, stand up
何度でも Get up and try

(中譯)

對著不再迷惘的未來前進吧
向願望接近吧
I see the light
wake up, stand up
再一次 對著明天去嘗試

看我用小小的這雙手
緊緊抓住 獲得的珍貴東西
這種稍縱即逝的想法 卻是我
不想丟失的,自己的道路

Do you know that I want it all
在心的深處 持續閃耀的
這個夢想 是絕對不會忘記的

對著不再迷惘的未來前進吧
向願望接近
也許某一天吧
滿溢著光輝的花朵就會綻放
I see the light
wake up, stand up
再一次 向明天 嘗試

Here I am 閉上雙眼的話
就會意識到 其實並不孤獨
乾涸的心
再一次被高興的淚水所溼潤

I promise 從今天開始
在胸中 開始澎湃的
這個鼓動 我感覺到了

★我會下定決心 貫徹到底
想要就這樣子一路奔跑下去
所以,也許某一天 能在夢中所盼望的地方
a-ha-ha 開懷地笑著吧
wake up, stand up
不管是幾次 get up and try ★

carry on...
I realize
I realize
that we can get there

對著不再迷惘的未來前進吧
向願望接近吧

也許某一天
滿溢著光耀的花朵就會綻放

Sunday, February 27, 2011

Plants vs Zombies soundtrack

Plants vs Zombies is my favorite game recently. What fascinates me most is its graphic design and music. The music is from Laura Shigihara, from Wiki I learned that she wants to mix in melodic tunes and funky beats! One of my favorite song in this game is its main menu background music. It is:

I like it especially from 0:35!

This is one is also good. 好鬼得意!

Thursday, February 10, 2011

Scaling for IE/Chrome/Firefox/Safari

I want a scaling that works for all above browsers. I end up with two separate style sheets, one for IE, and one for the rest browsers. And I did something like this:

This is sample text before scale
This is sample text after scale
<div class="myclass">This is sample text</div>
<style type="text/css">
.myclass {
    width: 100%;
    background: #ECECEC;
    font: bold 24px Arial;
}
</style>

<!--[if IE]>
<style type="text/css">
.myclass {
    zoom: 0.6;
}
</style>
<![endif]-->

<!--[if !IE]>-->
<style type="text/css">
.myclass {
    -moz-transform: scale(0.6);
    -webkit-transform: scale(0.6);
}
</style>
<!--<![endif]-->

The css 'zoom' would work for IE and Safari. 'zoom' scales element to the top left of element, and '-moz-transform' and '-webkit-transform' scales to the center. The 'position' property could be further adjusted in browser specific styles so that all browsers display the element at exactly same position after scale!

Conditional comments

Conditional comments only work for IE, but it can be used for deciding whether the browser is IE or not, and include browser specific style sheets.

<!--[if IE]>
do something for IE
<![endif]-->
<!--[if !IE]>-->
do something for other browsers
<!--<![endif]-->

Reference: http://www.quirksmode.org/css/condcom.html

Chrome minimum font size

I find my chrome failed to display my css font size settings. I learned that chrome has a default minimum font size setting, and the solution is to add below syntax:

-webkit-text-size-adjust:none;

Friday, January 14, 2011

天梯 - 釗峰

《天梯》

主唱:釗峰@C AllStar
作曲:賴映彤@groovision
填詞:鍾晴
編曲:Adrian Chan@Sense &賴映彤@groovision
監製:簡@groovision

如可 找個荒島
向未來避開生活中那些苦惱
如冬天欠電爐 雙手擁抱 可跟天對賭

無論有幾高 就如絕路
隔絕塵俗只想要跟你可終老
來跨出那地圖 不需好報 都只想你好

能共你 沿途來爬天梯 不用忌諱
中傷流言全悍衛
留住你 旁人如何話過不可一世
問我亦無愧 有你可失去我一切

幾多對 持續愛到幾多歲
當生命 仍能為你豁出去
千夫所指裡 誰理登不登對
仍挽手歷盡在世間興衰

幾多對 能悟到幾多精髓 能撐 下去
竭力也要為愛盡瘁 抱緊一生未覺累
前方 仍然大霧
到懸崖或海邊也許永不知道
能相擁到白頭 一起偕老 不跟天鬥高

前面有幾高 一片荒土
每步隨著攀登叫雙手都粗糙
從崎嶇這路途 開墾給你 可走得更好

能共你 沿途來爬天梯 黑夜亦亮麗
於山頭同盟洪海中發誓
留住你 旁人如何 話過不可一世
問我亦無愧 有你可以 拆破這天際

幾多對 持續愛到幾多歲
當生命 仍能為你豁出去
千夫所指裡 誰理登不登對
仍挽手歷盡在世間興衰

幾多對 能悟到幾多精髓 能撐 下去
竭力也要為愛盡瘁 抱緊一生未覺累

握著手 而幸福包圍泥牆簡陋
牽著走 懷著勇氣至愛得永久

幾多對 持續愛到幾多歲
不轟烈 如何做世界之最
千夫所指裡 誰理登不登對
仍挽手歷盡在世間興衰
幾多對 能悟到幾多精髓 能撐 下去
竭力也要為愛盡瘁 抱緊一生未覺累

幾多對 持續愛到幾多歲
當生命 仍能為你豁出去