2008年8月10日 星期日

Using Phonon with Qt

Phonon 是一支 KDE 的 multimedia 的 API。在 Qt 的文件中,也有提及這個API。無奈 Debian 的Package 設定不夠完善,即使裝完該裝的套件,也不能直接使用。

  1. 安裝 libphonon-dev, phonon, phonon-backend-gstreamer
  2. ln -s /usr/lib/kde4/plugin/phonon_backend  /usr/lib/qt4/plugin/phonon_backend

  3. 在做完 qmake -project後, 編輯 project.pro, 加上
     QT += phonon

    也可以直接加在 /usr/share/qt4/mkspecs/default/qmake.conf 裡, 一勞永逸。


另外, coding 時, 不能像Qt Assistant 裡介紹的那樣, 直接
#include <phonon>

必須一個個地 include /phonon 裡會用到的 head file

2008年8月5日 星期二

Get Program Return Value in C/Bash Shell

在 C shell 裡以 $status 取得執行檔的回傳值 (Bash 則是 $?)

Example:
test.c:

#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
return strtol(argv[1], NULL, 10);
}


test.csh

#!/bin/csh
./a.out $1
set rev=$status
if ( $rev == '0' ) then
echo "a.out returns 0."
else
echo "a.out returns $rev."
endif

2008年8月4日 星期一

我在山頂聽見海浪聲

換了新鬧鐘,但調錯時間,鬧鐘整整慢了一個小時,所以今早也就晚了一個小時起床,然而我完全沒發現,還是和平常一樣,換上運動服,帶上MP3,出門騎腳踏車運動去。路上只覺得奇怪,怎麼天比平常亮,路上的車怎麼比平常多,直到我騎到中興路、學府路的交叉路口,停下來等紅綠燈時,才發現已經快九點了,這下可有趣了,因為現在人已在離家最遠的地方,不管是馬上折返,還是依平常的路線繼續騎下去,花的時間會是差不多的。所幸今天老闆出差不會進辦公室,所以我決定還是依平常的路線繼續騎下去。:P

轉進學府路, 開始進入山區,就這麼一路往上爬,爬到最高點時,MP3正好放到有里知花唱的涙のキッス,背景音樂的海浪聲,和眼前的山景正好形成強烈的對比,別有一番趣味。


(找不到有海浪聲的版本,請大家自行想像)

第一次知道有里知花這個歌手,是在一個論壇裡,看到一位網友留言說他在有里知花的歌裡聽到了海浪聲,當時我覺得很好奇,什麼樣的音色會讓人聯想到海浪,於是就去找了她的歌回來聽,這才知道她唱的涙のキッス是以海浪聲加上吉他為配樂,那位網友指的海浪聲該不會就是這個吧 orz ... 不過清新的嗓音佐以吉他伴奏,遠處傳來陣陣海浪聲,有里知花的涙のキッス的確讓人耳目一新。(這裡有原唱桑田大叔的影片給大家比較:_請按我_)另外我也很喜歡有里知花的 I cry:



補記:
老闆今天雖然出差,但他今天早上還是先進了辦公室一趟,所以我上班遲到還是被抓包了。

2008年7月27日 星期日

Vim TOhtml

過去在blog上若遇到要寫原始碼, 總是自己以 html tag 一行行改寫, 寫久了, 難免感到不便, 所以 survey 了一下, 找到以 vim 利用 tohtml.vim自動轉碼的方法。
  1. 安裝 vim-script (主要是需要 tohtml.vim)
  2. 在 /etc/vim/vimrc.local 加入

    let html_use_css=1

    這是為了產生以ccs控制版面的 html code.
  3. 在 Blogger 的 template 加入 css 的 source code

    .Constant { color: #ff6060; }
    .Statement { color: #0000ff; }


使用範例:
:10,40Tohtml, 把第十到第四十行轉成 html

tohtml.vim 也可以轉出 XML
:let use_xhtml = 1

:help tohtml for more details.

2008年7月24日 星期四

Evince 日文顯示問題

在安裝了 xpdf-japanese 後就可以看到日文的 PDF, 但不知什麼原因, 並不是所有的文件都看得到日文字, 大概是字形設定有誤吧, Anyway, 在胡亂測試後, 找到下面這個解法。
  1. 安裝 xpdf, xpdf-japanese
  2. 下載 poppler-data-0.2.0.tar.gz 安裝 poppler-data
  3. 解開後
    make install datadir=/usr/share
  4. 編輯 /etc/fonts/conf.d/60-latin.conf 在<prefer>內加入日文字形
    <alias>
      <family>serif</family>
        <prefer>
          <family>Bitstream Vera Serif</family>
          ...
          <family>Kochi Mincho</family>
        </prefer>
      </alias>

Evince 中文顯示有問題的朋友,應該可以比照辦理。

References

2008年7月23日 星期三

Debian on the Fujitsu S2210

換了工作,也換了一台新的NB,因為工作的需要,得在NB上灌Linux,照舊寫個summary,方便日後參考。

這次還是灌 Debian, 大部分的安裝還是和以前一樣, 沒什麼特別的地方, 唯獨顯示晶片和無線要自己編譯kernel module, 所幸這部分並不難, 而且 apt 上都有 source 套件, 不需另外下載。

Video
安裝系統時,安裝程式會自動安裝 ati 的 driver, 並做好相關的設定, 就一般使用而言, 這樣已經足夠了。但自動安裝的環境不支援硬體的3D功能, 不幸的是, 小弟的工作會用到 3D 加速, 解決的方法有二, 第一是重編 mesa, 讓它只使用 software render, 第二種方法就是重編 kernel module, 讓module 支援 3D, 在這裡, 小弟選擇爽度較高的第二種方法:

  1. 因為要重編 module, 所以要先建立編譯 kernel的環境(安裝 gcc, linux-header 等族繁不及備載)
  2. 安裝 fglrx-modules-2.6.686, fglrx-control, fglrx-source
  3. 到 /usr/src 解開 fglrx.tar.bz2, 解開壓縮後到裡面執行 ./make.sh 就會自動編譯 fglrx.ko
  4. 把編譯好的 fglrx.ko copy 到 /lib/modules/2.6.25-2-686/nonfree/fglrx/ 取代原本的 module
  5. 把 /etc/X11/xorg.conf.fglrx-0 改成 xorg.conf

其實這個 flow 並不是最正確的做法, fglrx-module 應該是不用裝的, xorg.conf 裡有很多設定是不需要的, 但這個 flow 應該是最簡單的方法。

Dual Display
fglrx 似乎不支援 randr, 所幸 如果在載入 fglrx 時, 如果 detect 到 D-sub 有接, 會自動切到 clone mode, 作簡報時還滿方便的, 也可以在 xorg.conf 中強制指定

Option "DesktopSetup" "clone"

man fglrx for more details.

Wireless
S2210 的 wireless 是 Atheros 的 AR242x 系列, madwifi 有支援, 但需要自行編譯 kernel module:
  1. 安裝 madwifi-tool 和 madwifi-source 兩個套件

  2. 編譯 module
    1. 到/usr/src 解開 madwifi.tar.bz2
    2. 到 /usr/src/modules/madwifi/script/ 執行
      ./madwifi-unload
      ./find-madwifi-modules.sh $(uname -r)
    3. 到 /usr/src/modules/madwifi/ 執行
      make; make install
      所有的 driver 會裝到 /lib/module/$(uname -r)/net


  3. 載入 kernel module

    modeprobe ath_pci

    dmesg 看一下, 如果有下面這樣的error
    wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status 13)
    表示無線模組被 disable 了, 最簡單的方法是重新開機,如果reboot無效, 就先進 windows 一次, 再回到 Linux。這一次 module 應該會自動載入, iwconfig 應該會看到 wifi0 和 ath0,如果有表示kernel module 載入無誤。

  4. 連上 AP
    ifconfig ath0 up
    iwconfig ath0 essid "<ESSID>" key <key number>

    如果要連上 DHCP server

    dhclient ath0

  5. 最後再 /etc/network/interfaces 加入
    iface ath0 inet static
    pre-up /sbin/iwconfig ath0 essid "<ESSID NAME>" key <key number>
    address 168.95.1.1
    netmask 255.255.255.0
    gateway 168.95.1.254

    這樣就可以用 ifup ifdown 來控制無線網卡

ACPI
把 user 加入 powerdev 的 group 就可以用 gnome-power-manager 來 suspend/ hibernate, 螢幕的亮度可以用 Function key 來調整, LID 也可以正常運作, 總之把使用者加入 powerdev 的 group 後,人生就變彩色的了。

待解決的問題:
因為這些問題, 不大影響日常工作, 所以暫時先擱著:
  • ACPI, function key 可以調整LCD的亮度, LID也可以正常運作, 但 suspend 有問題, 無法進入 suspend mode
  • Multimedai key, S2210 上方有一排多媒體按鍵, 有人寫了 driver 放在網路上, 但我懶得試... :p


Reference
Wifi:
MadWifi 'First Time User' HOWTO

Problem during the boot: "wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status 13)"

2008年7月22日 星期二

Nvidia Driver Complains Xen Is Not Supported

之前一直都是用 debian 提供的 nv driver. 但因為最近工作的關係, 需要 3D 加速, 於是到 Nvidia 的網站下載 driver, 不過, 沒想到 Debian 裡 Linux kernel 2.6.25 竟然是內建support Xen 的... 偏偏 Nvidia 的 driver 不支援 support Xen 的 kernel... 挖哩咧~ 所幸在 nvnew.net裡找到下面這個解決方法:

cd /lib/modules/`uname -r`
grep CONFIG_XEN . -Rl | xargs -i sed -i -e 's/CONFIG_XEN/CONFIG_LUPO/g' {}
export IGNORE_XEN_PRESENCE=1
sh NVIDIA-Linux-x86-169.12-pkg1.run


Reference:
nVidia drivers on Debian Lenny with 2.6.25-2 kernel

2008年7月20日 星期日

Connect Bluetooth Mouse at Boot Time

Add device to hcid.conf
Edit "/etc/bluetooth/hcid.conf". Add following lines:

device <Bluetooth Address> {
name "<Device Name>"
}

Your can get the bluetooth address and device name by "hcitool scan"

Pair device
hidd --search

Connect at boot time
Edit "/etc/default/bluetooth". Change

HIDD_ENABLED=0

to

HIDD_ENABLED=1


All set! Restart your computer.

Reference:
HOWTO: Logitech Bluetooth Mouse & Keyboard

2008年7月1日 星期二

ForwardX11 in SSH

By default, ForwardX11 is not assigned. Modify /etc/ssh/ssh_config or ~/.ssh/config to make ForwardX11 enabled.

PS. There is also a X11Forwarding in sshd_config, but by default, it is set to "yes".

2008年6月3日 星期二

剔銀燈(與歐陽公席上分題)

范仲淹

昨夜因看蜀志。笑曹操、孫權、劉備。用盡機關,徒勞心力,只得三分天地。屈指細尋思,怎如共、劉伶一醉。

人世都無百歲。少癡騃、老成尫悴。只有中間,些子少年,忍把浮名牽系。一品與千金,問白髮、如何迴避。

2008年6月1日 星期日

Alone Again



Gilbert O'Sullivan

In a little while from now,
If I'm not feeling any less sour
I promised myself to treat myself
And visit a nearby tower,
And climbing to the top,
Will throw myself off
In an effort to make it clear to who
Ever what it's like when your shattered
Left standing in the lurch, at a church
Where people 're saying,
"My God that's tough, she stood him up!
No point in us remaining.
May as well go home."
As I did on my own,
Alone again, naturally

To think that only yesterday,
I was cheerful, bright and gay,
Looking forward to, but who wouldn't do,
The role I was about to play
But as if to knock me down,
Reality came around
And without so much as a mere touch,
Cut me into little pieces
Leaving me to doubt,
All about God and His mercy
For if He really does exist
Why did He desert me
In my hour of need?
I truly am indeed,
Alone again, naturally

It seems to me that
There are more hearts
Broken in the world
That can't be mended
Left unattended
What do we do? What do we do?

Now looking back over the years,
And what ever else that appears
I remember I cried when my father died
Never wishing to have cried the tears
And at sixty-five years old,
My mother, God rest her soul,
Couldn't understand, why the only man
She had ever loved had been taken
Leaving her to start with a heart
So badly broken
Despite encouragement from me
No words were ever spoken
And when she passed away
I cried and cried all day
Alone again, naturally
Alone again, naturally

2008年5月12日 星期一

The Final Countdown


剩三個星期... 不奢望能逆轉勝,但求能進入延長賽...

2008年5月8日 星期四

漁父

蘇軾

漁父飲,誰家去。魚蟹一時分付。酒無多少醉為期,彼此不論錢數。

漁父醉,蓑衣舞。醉裏卻尋歸路。輕舟短棹任斜橫,醒後不知何處。

漁父醒,春江午。夢斷落花飛絮。酒醒還醉醉還醒,一笑人間今古。

漁父笑,輕鷗舉。漠漠一江風雨。江邊騎馬是官人,借我孤舟南渡。

2008年4月29日 星期二

Remember the Name



Fort Minor

You ready?! Let's go!
Yeah, for those of you that want to know what we're all about
It's like this y'all (c'mon!)

This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!

Mike! - He doesn't need his name up in lights
He just wants to be heard whether it's the beat or the mic
He feels so unlike everybody else, alone
In spite of the fact that some people still think that they know him
But fuck em, he knows the code
It's not about the salary
It's all about reality and making some noise
Making the story - making sure his clique stays up
That means when he puts it down Tak's picking it up! Let's go!

Who the hell is he anyway?
He never really talks much
Never concerned with status but still leaving them star struck
Humbled through opportunities given despite the fact
That many misjudge him because he makes a living from writing raps
Put it together himself, now the picture connects
Never asking for someone's help, or to get some respect
He's only focused on what he wrote, his will is beyond reach
And now it all unfolds, the skill of an artist

This is twenty percent skill
Eighty percent fear
Be a hundred percent clear cause Ryu is ill
Who would've thought that he'd be the one to set the west in flames
And I heard him wreck it with The Crystal Method, "Name Of The Game"
Came back dropped Megadef, took em to church
I like bleach man, why you had the stupidest verse?
This dude is the truth, now everybody's giving him guest spots
His stock's through the roof I heard he's fuckin' with S. Dot!

This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!

They call him Ryu, he's sick
And he's spitting fire
And mike got him out the dryer he's hot
Found him in Fort Minor with Tak
What a fuckin' nihilist porcupine
He's a prick, he's a cock
The type woman want to be with, and rappers hope he get shot
Eight years in the making, patiently waiting to blow
Now the record with Shinoda's taking over the globe
He's got a partner in crime, his shit is equally dope
You wont believe the kind of shit that comes out of this kid's throat

Tak! - He's not your everyday on the block
He knows how to work with what he's got
Making his way to the top
He often gets a comment on his name
People keep asking him was it given at birth
Or does it stand for an acronym?
No he's living proof, got him rocking the booth
He'll get you buzzing quicker than a shot of vodka with juice
Him and his crew are known around as one of the best
Dedicated to what they do and give a hundred percent

Forget Mike - Nobody really knows how or why he works so hard
It seems like he's never got time
Because he writes every note and he writes every line
And I've seen him at work when that light goes on in his mind
It's like a design is written in his head every time
Before he even touches a key or speaks in a rhyme
And those motherfuckers he runs with,
The kids that he signed?
Ridiculous, without even trying,
How do they do it?!

This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!

This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!

2008年4月10日 星期四

Setup Eclipse CDT with Cygwin

本來在安裝 Eclipse、CDT、cygwin 後,要把 cygwin/bin 的路徑設到系統環境變數 Path 中,CDT 才能找得到 gcc。但是... 我就是不想動我的環境變數... 稍微試了一下,看有沒有辦法在不更動環境變數的形況下,正常使用CDT。結論是這個想法是可行的,但還是乖乖設定環境變數比較省事。

設定的方法如下:
  • 在 Toolbar 上點選 Window -> Preferences
  • 在 Preferences 對話窗中點選 C/C++ -> Environment,加入環境變數 Path, 其值為 cygwin/bin 的路徑

只要在此加入環境變數就可正常compile程式,但cygwin compile 出來的執行檔需要 cygwin1.dll 才能執行,所以雖然可以正常compile,但 Eclipse 的 console 無法正確執行compile好的程式。在不更動系統環境變數的前提下,最簡單的做法就是把 cygwin1.dll 複製到 系統 Path 或 Project 的工作目錄中,但再一次地,我就是不想複製檔案,所幸這仍然有解
  • Toolbar 上點選 Run -> Open Run Dialog
  • 在 Run 的對話窗中點選 C/C++ Local Application -> ProjectName.exe, 在右側點選 Environment分頁,一樣加入 Path 的環境變數。

做到這裡可以正常執行Build完的程式了,但還不能Debug...
不能Debug 的主因有二,一是 Eclipse找不到 gdb.exe 二是在 Debug 的過程中, Eclipse 再度找不到 cygwin1.dll (啊不是都已經設環境變數了嗎!? 吼~~)
  • 在 Toolbar 上點選 Run -> Open Debug Dialog
  • 在 Run 的對話窗中點選 C/C++ Local Application -> ProjectName.exe, 在右側點選 Debugger 分頁
  • 在 Debugger 分頁中設定 GDB debugger的位置:
    Drive:\PATH\TO\gdb.exe
  • 給定一GDB command file,並在 command file加入
    path /cygdrive/drive/path/to/cygwin/bin

這樣一來,就可以正常地Debug了...

雖然找到設定的方法,但我最後還是決定把 cygwin 加到系統 PATH 裡...做人還是不要太搞怪的好...

References:
Debugging with GDB

2008年3月31日 星期一

Make Gmail as Default Email Client

把下面這個 Script 設成預設的電子郵件軟體即可。

#!/bin/sh
firefox https://mail.google.com/mail?view=cm\&tf=0\&to=`echo $1 | sed 's/mailto://'`

另外,在Windows下安裝Gmail Notifier 或 Google Talk 都可以把Gmail設成預設的郵件軟體。

Reference:
Set Gmail as Default Mail Client in Ubuntu

2008年3月29日 星期六

Sync PocketPC with Evolution

今天花了些功夫研究如何同步 PDA 手機 和 Gnome 的 PIM, Evolution。最後雖然能成功同步,但在PDA裡中文的資料同步到 Evolution後全變成空白... 唉...非英語系使用者的悲哀... Anyway, 還是把同步旳步驟記下來,以備日後參考。

安裝軟體
synce-multisync-plugin
synce-dccm
synce-serial
librra-tools

optional:
synce-gnomevfs

synce 的 package 在Debian裡被拆的亂七八糟,而且套件間的相依性也做的不是很好,小弟也是試了好久,才找齊所需的套件。

設定連線
  1. 載入 ipaq module
    >>modeprobe ipaq

  2. 接上 PDA cardle

  3. 若沒有問題,在console下打
    >>dmesg
    應該會看到:
    usb 5-5.2: new full speed USB device using ehci_hcd and address 15
    usb 5-5.2: configuration #1 chosen from 1 choice
    ipaq 5-5.2:1.0: PocketPC PDA converter detected
    usb 5-5.2: PocketPC PDA converter now attached to ttyUSB0
    若沒有出現上述message, 可試著在載入 ipaq module 時加上 vender id 和 device id的參數。

  4. 以 root 的帳號設定 synce 連線
    >> synce-serial-config ttyUSB0

  5. 以一般 user 的帳號啟動 dccm
    >>synce-dccm

  6. 以 root 的帳號建立 synce 連線
    >>synce-serial-start

到這裡若沒問題PDA應該已和電腦連上線。可以在console下打 pstatus 試試看是否看得到 PDA的資訊。

和 Evolution 同步
  1. 以一般 user 的帳號設定 partnership
    >>synce-matchmaker create [1|2]
    若兩個index都被佔滿了可先以
    >>synce-matchmaker clear [1|2]
    清除設定

  2. 開啟 multisync (在 console 下開可以看得到較多的 runtime message, 有助於尋找問題)

  3. 新增 synchronization pair
    plugin 一個選 SynCE Plugin 一個選 Ximan Evolution 2 (先後順序不重要)

  4. 在 Ximan Evolution 2 的 Plugin options 中選擇要同步的Calendar, Addressbook, 及 Task ( 預設是No,所以一定要進去選,網路上的論壇都建議在 Evolution 中為 PPC 另外建一個 Calendar or addressbook)

  5. 若一切設定無誤,按下 Sync 按鈕就會開始同步。

MultiSync 有點笨,大概是因為 PDA 上資料的 timestamp 較舊的關係,第一次同步時,不會把資料從PAD複製到Evolution中。論壇上有人說可以按 ReSync 解決這個問題(ReSync的按鈕可在 option中設定是否顯示,預設是不會顯示的)。不過我測試的結果是按了 ReSync會讓 MultiSync crash。 也不知道是不是因為資料裡有中文的關係。

結束連線
  1. 關閉 Multisync
  2. 在 console下下
    >>killall -HUP synce-dccm

References
HP Ipac Pocket PC Setup
HOWTO: Pocket PC Syncing with Evolution

PS1. dpkg小提示: dpkg -L 可顯示該package內含的檔案
PS2. 之後又試了一下, 在zh_TW.utf8下 MultiSync 甚至打不開... 看來MultiSync 的中文support做的不好, 下次或許可以改以 opensync 來試試。

2008年3月25日 星期二

Firefox tips

flash-plugin 中文的問題
1.安裝 ttf-arphic-bsmi00lp 字型
2.在startup script 中加入 export LC_ALL=zh_TW

指定特別連結的處理程式
若要指定以 GNOME MPlayer 來處理 mms 或 rtsp protoclas, 修改 prefs.js:
user_pref("network.protocol-handler.app.mms", "/usr/bin/gnome-mplayer");
user_pref("network.protocol-handler.app.rtsp", "/usr/bin/gnome-mplayer");
或是在 "about:config"加入上述的String
同理,若要處理ed2k的link, 可在"about:config"中加入
network.protocol-handler.external.ed2k -> true
network.protocol-handler.app.ed2k -> "/usr/bin/sancho"

Misc.
"about:plugins"列出所有已安裝的plug-ins

2008年3月22日 星期六

舊友無處不堪尋

高中時期,我有一群換帖的好友:色胚,小花,賤賤,熊熊,倫子,小丸子(小丸子是化名,因為她是唯一沒有綽號的人),小白。

小白高二時移民澳洲,是最早和我們失聯的。我則是在大學重考後,一個人到新竹唸書,從此就沒再和他們聯絡了。前陣子,意外地和熊熊聯絡上,才又再度和大家搭上線。今天下午,約了和大家見面,十幾年沒見,卻沒有一點疏離的感覺。明明對對方的近況都不是很了解,彼此卻又能熱絡地聊著,彷彿昨天才見過面一般。

歲月似乎沒有在我這群好友身上留下多少痕跡。色胚頭髮留長了,又留了點鬍子,雖然還是有點痞痞的,但感覺比以前成熟穩重了。熊熊還是像以前一樣親切健談,但在談笑間,看得出這幾年的工作經歷,讓他的視野拓展了許多。活潑大方的倫子,隨著年紀增長,多增添了一股女人味,變得更加明豔動人。不過,最讓我驚訝的是小丸子:

這十幾年來,她完全沒變,除了手上多了一個小奶娃...

(實在找不到小丸子抱娃娃的圖,只好用體積差不多的法國麵包代替)


今天很可惜沒見到賤賤和小花,希望下次能有機會見到他們。

對了,我們的綽號之所以會這麼娘,都是因為這些綽號都是倫子和小丸子取的。致於我的綽號是什麼嘛!? "外人探我綽號者,視投名狀,必殺之;兄弟探我綽號者,視投名狀,必殺之!" 別再問了~ 大哥是對的!

補記:
"舊友無處不堪尋"是改自張良能的小重山,原文如下:

柳暗花明春事深,
小闌紅芍藥,已抽簪。
雨餘風軟碎鳴禽,
遲遲日,猶帶一分陰。
往事莫沉吟。
身閑時序好、且登臨。
舊游無處不堪尋,
無尋處,惟有少年心。


很慶幸地,小弟的這群老友在哪,小弟的少年心就在哪。

2008年3月19日 星期三

Make Love


這個點子其實是在Jserv's blog 中 "貓也會的 CMake" 的簡報文件中看到的。因為實在太妙了,忍不住複製了一個。

2008年3月8日 星期六

左右為難

我是左撇子。

唸幼稚園時,老師教我們寫數字(國字的一二三四...),從一寫到十。看著老師拿著粉筆在黑版上畫一劃,我們就在習字簿上畫一劃。從一寫到三都還沒什麼問題,寫到四時,隱隱約約覺得怪怪的,等老師教到"五"時,我就發現事情大條了,為什麼我寫出來的字和黑版上的不太一樣?明明就一筆一劃照著老師教的寫的啊!原來看到老師在黑版上用右手由"內"往"外"畫一橫,我也跟著用左手在紙上由"內"往"外"畫一橫,結果寫出來的字像照了鏡子一樣,左右顛倒。當時幼稚園老師看到了,嚇了一跳,大概以為我腦子有問題吧,於是叫我把習字簿帶回家給父母看,全班的本子都是當場收回老師那,只有我的要帶回去給家長看...

習字簿帶回家給我媽看後,她也是嚇了一大跳。不過知子莫若母,老媽很快就發現這一切都是阿共的陰謀這一切都是我用左手拿筆的關係。於是,老媽決定要把我的慣用手改成右手。她做了一個布娃娃套在我的左手,叫我一整天戴著,剛開始還覺得滿新奇的,因為做什麼事都有一個玩具陪著。但到了晚上要吃飯時,才發現我的左手其實被這個布娃娃廢了,得改用右手拿湯匙吃飯。布娃娃戴了兩天,等一切都習慣用右手後,我媽就沒叫我再戴回布娃娃手套。也好在當時很快就改成右手,如果一直沒改過來,現在的我可能會變成這個樣子:


葛屁老師
(不過,葛屁老師的娃娃戴在右手上說...)

就這樣,我當了一陣子"右撇子"。一直到上了小學,小學導師在家長會時向我媽建議最好不要糾正慣用手,我的左手才又再度解除封印,於是現在的我,寫字用右手,畫圖用左手,打桌球用左手拿球拍,踢足球倒是左右都可以開弓。我知道你們想問什麼,是的,轉大人後我是用左手打手......機底~

補記:
話說我雖逃過了當葛屁老師的命運,但小弟自覺和下面這位仁兄倒還滿像的...


2008年2月28日 星期四

Patience




Guns N Roses - Patience

Shed a tear 'cause I'm missin' you
I'm still alright to smile
Girl, I think about you every day now
Was a time when I wasn't sure
But you set my mind at ease
There is no doubt
You're in my heart now

Said, woman, take it slow
It'll work itself out fine
All we need is just a little patience
Said, sugar, make it slow
And we come together fine
All we need is just a little patience
(patience)
Mm, yeah

I sit here on the stairs
'Cause I'd rather be alone
If I can't have you right now
I'll wait, dear
Sometimes I get so tense
But I can't speed up the time
But you know, love
There's one more thing to consider

Said, woman, take it slow
And things will be just fine
You and I'll just use a little patience
Said, sugar, take the time
'Cause the lights are shining bright
You and I've got what it takes
To make it, We won't fake it,
I'll never break it
'cause I can't take it

little patience, mm yeah, mm yeah
need a little patience, yeah
just a little patience, yeah
some more patience, yeah
need some patience, yeah
could use some patience, yeah
gotta have some patience, yeah
all it takes is patience,
just a little patience
is all you need

I BEEN WALKIN' THE STREETS AT NIGHT
JUST TRYIN' TO GET IT RIGHT
HARD TO SEE WITH SO MANY AROUND
YOU KNOW I DON'T LIKE
BEING STUCK IN THE CROWD
AND THE STREETS DON'T CHANGE
BUT BABY THE NAME
I AIN'T GOT TIME FOR THE GAME
'CAUSE I NEED YOU
YEAH, YEAH, BUT I NEED YOU
OO, I NEED YOU
WHOA, I NEED YOU
OO, ALL THIS TIME
(ah)