14 Mar 2009, 6:44am
電腦
by lachesis

leave a comment

[備忘]MySQL連線編碼

人老了真的記憶力變得很差(;´Д⊂) アウ… 才沒多久沒寫php連MySQL5,只記得MySQL那邊資料庫連線編碼要設好,資料庫編碼要設好,table也要設好,文字檔(文字編輯器)編碼也要改,完全忘記php這邊還要指定連線編碼orz。自我備忘一下,如果不想看到一堆????? php端程式還要記得加上這行:

mysql_query("SET CHARACTER SET 'utf8'", $link);

11 Mar 2009, 5:59am
ACG 音樂
by lachesis

leave a comment

【歌詞】Melodies of Life

這是Final Fantasy系列中我非常喜歡的一首曲子。不久前買了Distant Worlds music from Final Fantasy 台北場的票,不知道海外場的陣容完整度如何。溫習了一下之前日本場Voices Music From Final Fantasy的影片,嗯,歌劇可以跳過,但實在很希望能聽到白鳥英美子現場演唱Melodies of Life啊~~~ 話說回來,這音樂會的票最高票價賣到一張不剩,完全看不出來經濟到底不景氣在哪裡了。最近日幣相對於台幣漲這麼多,四月要買到很貴的FF7ACC了,PS3主機似乎只能乖乖買亞版了。希望年底FF13發行的時後已經降回來了,當然,前提是FF13和versus13年底能発売…( ̄Д ̄;;

[日本語版]

宛てもなく彷徨っていた
手がかりもなく探しつづけた
あなたがくれた想い出を
心を癒す詩にして

約束もすることもなく
交わす言葉も決めたりもせず
抱きしめそして確かめた
日々は二度と帰らぬ

記憶の中の手を振るあなたは
わたしの名を呼ぶことが出来るの

あふれるその涙を
輝く勇気にかえて
いのちはつづく
夜を越え
疑うことのない明日へとつづく

飛ぶ鳥の向こうの空へ
いくつの記憶預けただろう
儚い希望も夢も
届かぬ場所に忘れて

めぐり逢うのは偶然と言えるの
別れる時が必ず来るのに

消えゆく運命でも
君が生きている限り
いのちはつづく
永遠に
その力の限りどこまでも

わたしが死のうとも
君が生きている限り
いのちはつづく
永遠に
その力の限りどこまでもつづく

[英語版]

Alone for a while I’ve been searching through the dark,
For traces of the love you left inside my lonely heart.
To weave by picking up the pieces that remain.
Melodies of Life – Love’s lost refrain.

Our paths they did cross, though I cannot say just why,
We met, we laughed, we held on fast, and then we said goodbye,
And who’ll hear the echoes of stories never told?
Let them ring out loud till they unfold.

In my dearest memories, I see you reaching out to me.
Though you’re gone, I still believe that you can call out my name.

A voice from the past, joining yours and mine.
Adding up the layers of harmony.
And so it goes, on and on.
Melodies of life.
To the sky beyond the flying birds -
forever and beyond.

So far and away, see the bird as it flies by,
Gliding through the shadows of the clouds up in the sky,
I’ve laid my memories and dreams upon those wings.
Leave them now and see what tommorow brings.

In your dearest memories, do you remember loving me?
Was it fate that brought us close and now leaves me behind?

A voice from the past, joining yours and mine.
Adding up the layers of harmony.
And so it goes, on and on.
Melodies of life.
To the sky beyond the flying birds -
forever and beyond.

If I should leave this lonely world behind.
Your voice will still remember our melody.
Now I know we’ll carry on.
Melodies of Life.
Come circle round and grow deep in our hearts,
as long as we remember.

10 Mar 2009, 1:12am
蘋果 電腦
by lachesis

leave a comment

在Mac OS X 上使用顏文字

從OS X變成我主要使用的作業環境之後,唯一比較大的煩惱就是日本語輸入時不知怎麼外掛顏文字詞書。昨天心血來潮又搜尋了一下,這次居然找到了ヽ(`▽´)/。找到兩個來源,一個是「NADの顔文字辞書(OS X版)3.7」解開後有說明可以參考安裝。另一個是「オレンジの顔文字辞書 for ことえり 3.1」。オレンジ的基本上對 Mac 的支援是只到OS 9 ,但在 OS X 上也是會動的。NAD 應該是針對 OS X 包的,不過個人比較喜歡オレンジ的配置跟顏文字。以下略略說明如何安裝。

1. 首先要解壓縮,這不用多說明,抓回來的東西點下去就對了,這樣的常識Mac族都有。
2. 接著找到包裝裡面的辭典檔。NAD解開後分兩種辭典擋,建議用「普通辞書」資料夾下的那個。オレンジ的則有 orange31-kz 和 orange31-kz-逆引 兩個,其實用前面那個應該就可以了。
3. 把辭典檔搬到或複製到 「個人家目錄下」> 資源庫 > Dictionaries 這個目錄下。
Unix 路徑為 /Users/<Yourname>/Library/Dictionaries
4. 右上角的輸入法Icon先切到日文隨便一種,按下Icon 選 「Kotoeri 偏好設定」,選「字典」。這時應該會看到「NADの顔文字辞書3.7」「Dictionary1」兩個詞書在裡面。
5. 選一本按下打開,書本會呈現打開的狀態。照理說這樣應該就已經enable詞書了,但可能要切換到其他的應用程式讓輸入法重新載入才會生效,這細節我不太確定。

比較特別的是Orange的那本詞書打開後好像立刻就有效了,但Kotoeri偏好設定中的那本Dictionary1也消失了…,有可能裝下去就無法移除了(汗) 。NAD 則可以正確打開和關閉,如果不喜歡他的詞書就可以直接關閉停用。但オレンジ的跟我之前在XP上用的比較接近,比較順手,無法移除就不跟他計較那麼多了。不管怎麼說,有顏文字可以用真是開心。(* ̄∇ ̄)/゜・:*【祝】*:・゜\( ̄∇ ̄*)