Google Custom Search

2007/03/27

離人



去KTV喜歡唱“離人“,但是常常變成“人離“

唱的太難聽,其他人假借倒飲料,上廁所,通通離開了

多希望你沒有離去

也傻的以為可以用婚姻留住妳

只是,妳的心早已不在這裡

分手快一年了

應該是進步了吧,我想

至少今晚,淚水只在眼眶

只有滴進心裡

2007/03/25

98Ideal公告


本公司最近考慮把Google買下來,所以想在Google上班的朋友,可以先寄履歷過來,謝謝。

2007/03/24

喚醒你的阿帕契

你的OSX裡住了一個多重人格的阿帕契,你以為他溫馴的像隻貓,但其實他掛載了火力強大的地獄火。講到哪裡去了?

其實我要說的是如果你和我一樣從事網頁程式設計,那你通常手上會有很多案子在進行,又或者你在跟客戶做展示時,你會希望在你的電腦上同時執行很多個之前的作品;所以想辦法讓這件事達成囉。

這裡分成兩個部份,一個是跟網域名稱有關,一個是跟Apache設定有關。


  • 設定多重Domain Name


  • 這次先採用最簡單方式來做,打開/etc/hosts
    插入
    127.0.0.1 aaa.com.tw aaa
    127.0.0.1 bbb.com.tw bbb
    aaa.com.tw,bbb.com.tw取代成你的網站domain name,如果你的網站很多個,就建很多筆



  • 修改Apache的設定檔

  • 這裡比較麻煩的是Apache目前有三種版本,1.x,2.0,2.2,但是還好是大同小異。

    1.打開apache目錄下的conf/httpd.conf,找到下面這段並且將註解取消(如果有的話)

    # Use name-based virtual hosting.
    NameVirtualHost *:80
    2.插入下面這段,依據不同版本的Apache可能插入到不同的檔案,但是直接插入到httpd.conf最下面應該也是可行的

    <VirtualHost *:80>
    ServerAdmin root
    DocumentRoot /你的網站跟目錄在哪裡/
    ServerName aaa.com.tw
    </VirtualHost>

    3.重新啟動Apache

這樣就大功告成啦~~

2007/03/23

增加TextWrangler認識的檔案類型

OSX上,免費的文字編輯器,我採用TextWrangler,取代Windows上的UltraEdit

今天忽然想到,我的TextWrangler不認識SQL的檔案,我覺得非常羞愧,我竟然麻木不仁了這麼久,走筆自此,根本雙手發抖,呼吸困難了。

既然無法工作下去,就想想辦法教我的TextWrangler認識SQL吧。



  1. 下載相關檔案











  2. 解壓縮





  3. 將擺放到適當目錄並更名




  4. 啟動TextWrangler


如此一來,你的TextWrangler也學會SQL囉,謝謝收看,我要繼續工作了,Bye Bye




Communication




Communication - The Cardigans

For twenty seven years I’ve been trying
To believe and confide in
Different people I found...

Some of them got closer than others,
And some wouldn’t even bother,
And then you came around.

I didn’t really know what to call you,
You didn’t know me at all,
But I was happy to explain.

I never really knew how I’d move you,
So I tried to intrude through
The little holes in your veins.

And I saw you.
But that’s not an invitation,
That’s all I get,
If this is communication,
I disconnect...
I’ve seen you, I know you,
But I don’t know how to connect,
So I disconnect...

You always seem to know where to find me,
And I’m still here behind you,
In the corner of your eye.

I never really learnt how to love you,
But I know that I love you,
Through the hole in the sky,

Where I see you
And that’s not an invitation,
That’s all I get.
If this is communication,
I disconnect...
I’ve seen you, I know you,
But I don’t know how to connect,
So I disconnect...

Well, this is an invitation,
It’s not a threat,
If you want communication,
That’s what you get.
I’m talking and talking,
But I don’t know how to connect.

And I hold... a record for being patient
With your kind of hesitation.
I need you, you want me,
But I don’t know how to connect,
So I disconnect,

I disconnect...


ps.六便士來了,沒有看到羊毛衫,總覺得怪怪的:D

2007/03/22

當兵的阿呆樣

寄件者 當兵舊照


大家好,我是一個空軍下士,實在有夠阿呆的。

2007/03/21

Sixpence None The Richer

SIXPENCE NONE THE RICHER



Kiss me

Kiss me out of the bearded barley.
Lightly, beside the green, green grass.
Swing, swing, swing the spinning step.
You wear those shoes and I will wear that dress.
Oh, kiss me beneath the milky twilight.
Lead me out on the moonlit floor.
Lift your open hand.
Strike up the band and make the fireflies dance,
silver moon's sparkling.
So kiss me.
Kiss me down by the broken tree house.
Swing me high upon its hanging tire.
Bring, bring, bring your flowered hat.
We'll take the trail marked on your father's map.
Oh, kiss me beneath the milky twilight.
Lead me out on the moonlit floor.
Lift your open hand.
Strike up the band and make the fireflies dance,
silver moon's sparkling.
So kiss me.
Kiss me beneath the milky twilight.
Lead me out on the moonlit floor.
Lift your open hand.
Strike up the band and make the fireflies dance,
silver moon's sparkling.
So kiss me.
So kiss me.
So kiss me.
So kiss me.





There she goes

There she goes
There she goes again
Racing through my brain
And I just can't contain
This feeling that remains

There she goes
There she goes again
Pulsing through my veins
And I just can't contain
This feeling that remains

There she goes
There she goes again
Racing through my brain
And I just can't contain
This feeling that remains

There she goes
There she goes again
She calls my name,
Pulls my train
No one else could heal my pain
And I just can't contain
This feeling that remains

There she goes
There she goes again
Chasing down my lane
And I just can't contain
This feeling that remains

There she goes
There she goes
There she goes

孤單平衡寂寞?

討厭孤單,卻習慣寂寞。

到底平衡了什麼?

想要逃離,學不會灑脫。

我,想你過了頭

2007/03/19

Killing Me Softly with his song




Killing me softly with his song Roberta Flack

*Strumming my pain with his fingers
Singing my life with his words
Killing me softly with his song
Killing me softly with his song
Telling my whole life with his words
Killing me softly with his song

I heard he sang a good song
I heard he had a style
And so I came to see him
To listen for a while
And there he was, this young boy
A stranger to my eyes(*)

I felt all flushed with fever
Embarrassed by the crowd
I felt he found my letters
And read each one out loud
I prayed that he would finish
But he just kept right on(*)

He sang as if he knew me
In all my dark despair
And then he looked right through me
As if I wasn't there
And he just kept on singing
Singing clear and strong(*)

如何在你的Linux上燒錄光碟?


推薦X-CD-Roast

超好用,支援多數主流套件(包含我的Slackware就非常厲害了,哈哈哈)。

設定方便,只要指定好哪台讀取,哪台燒錄,在額外指定硬碟上的緩衝空間就可以了

馬上裝一套來用用吧

ps.是GUI的哦~~

Desperado



Desperado Linda Ronstadt

Desperado
Why don't you come to your senses
You've been out riding fences for so long now
Oh, you're a hard one

But I know that you've got your reasons
These things that are pleasing you
Can hurt you somehow
Don't you draw the Queen of diamonds boy
She'll beat you if she's able
The Queen of hearts is always your best bet
How it seems to me some fine things have been laid upon your table
But you only want the ones you can't get

Desperado
Oh, you ain't getting no younger
Your pain and your hunger
They're driving you home
Freedom, ah, freedom
That's just some people talking
Your prison is walking thru this world all alone

Don't your feet get cold in the winter time
The sky won't snow and the sun won't shine
It's hard to tell the night time from the day
You're losing all your highs and lows
Ain't it funny how the feeling goes away

Desperado
Why don't you come to your senses
Come down from your fences open the gate
It may be raining
But there's a rainbow above you
You better let somebody love you
You better let somebody love you
Before it's too late

2007/03/18

SQLMap 的矛盾

當我們使用SQLMap時,最重要的工作就是編寫Dao的xml檔,有兩點需要注意:

  • 如果sql述句有用到特殊符號,請採用xml的CDATA:
    ex
    <insert id="insertPeople" parameterClass="bo.People">
    <![CDATA[
    insert into people (name, address) values (#name#, #address#)
    ]]>
    </insert>


  • 如果你也有採用SQLMap的動態生成查詢(Dynamic ),那你千萬不要將整段sql述句包起來,不然你會和我一樣搞了一整夜,死了大堆腦細胞才找到這個問題。
  • Zoo Keeper



    寶貝以前最喜歡玩的遊戲,無意間看到,紀念一下。

    這個遊戲就是將三個以上相同圖案的動物以直或橫的方式靠在一起就能消去,右上有滿足過關條件要消去的動物數量,如果某一種動物一直沒被消除,還會變臭臉。





    ps.那個鱷魚到底是有什麼困難,為什麼一臉青蛙樣?

    2007/03/17

    花都開好了




    比佛


    A福特



    金水呢,有誰知道這是什麼花啊?

    2007/03/16

    美的覺醒


    美的覺醒 蔣勳

    這是逛誠品的另一項收穫,

    音樂小品



    旅行 心情 爵士,上次去誠品意外的小驚喜,演奏曲都是耳熟能詳的,用清新的,單純的方式表現,別有一番滋味;如果心情煩躁時,聽聽或許能沈澱一下心情。

    ps.想聽我借你不以為然

    消失的一天

    一直到下午三點之前,都以為今天是星期三。

    前天買咖啡少給五元,今天買咖啡忘了付錢。

    怎麼了我,怎麼會變這樣?

    一定是有人偷了我的一天,讓我整個很脫線。

    ps. 賣咖啡的小妹,謝謝你告訴我,原來我又失戀了,還煩勞你指出在雜誌的哪一頁,下次我會自己記得的

    River of No Return

    一切的起點,源自於小朱過於甜美的青春印象,如小說般的日記,伴隨著感嘆歲月流逝的哀傷。

    心裡響起了性感女神“瑪麗蓮夢露“的“River of no return"



    我的青春小鳥一樣不回來啊,該不會是掉到大江裡去了吧,哈哈哈。

    ps.這首歌真的很好聽,很有感覺,我有CD,想聽的跟我說,我借你我知道答案

    2007/03/13

    白色氣人節

    2007/03/13 得意的笑 明天,又是氣人節,路上,公車上,捷運上,不斷上演。

    沒關係,你們可以再甜蜜點,我的心很堅強滴,嘿嘿嘿。

    哈哈哈~~完

    2007/03/12

    Dreamgirls


    Dreamgirls

    我有一天去看Dreamgirls,