2010年9月28日 星期二

給珮妤的一封信

給珮妤的一封信

一年多沒見,沒想到再次見面竟是送你最後一程。
最後一次送你的禮物居然是 眼淚。

多麼不相信這會發生在你身上,因為你看起來是如此的健康。
多麼不想去你的告別式,因為我不想相信你已不在這世上。
我一直在問我自己“為什麼?!“,“為什麼是你?!“

回想起以前高中畢業時,你曾對我說過
“很遺憾我們沒有同班,要不然我們一定可以成為很好的朋友“
那時我很想跟你說,既使沒有同班我們也都是好朋友。

幸運的是老天有眼,讓我們碩班時在淡江的電梯上不期而遇,
更巧的還是我們的實驗室還是在同一層~
禰補了以前沒做過的事,帶給我們許多相處的時間,
一起上廁所、吃飯、跟你去國小實習,
真的很快樂~
還跟你約要一起畢業。
談到人生規劃,你跟我說要先去國小實習,
也想繼續念博班,

但是卻不知當時你早已有病在身,在我面前故坐鎮定,
現在回想起我真的很後悔沒辦法分擔你當時所遭遇的痛苦、疾病。
你的冷靜,你的努力,一直深深烙印在我腦海中。
上天竟這麼的無情、自私,總是把最好的人留在身邊,
剝奪了你跟大家在一起的時間、快樂。

人生的白紙,隨人著色繪出美麗的圖畫,
但白紙的大小卻不能自己決定。

生命竟是如此的脆弱,但意志可以如此的堅強。

你一直是個堅強的女生,總是不讓人擔心,
在另一個世界裡,我相信,
你依然是個出色的天使。
 
2009.6月4日

2010年5月31日 星期一

Install converter

step 1. install MacPorts

step 2. open terminal and type : sudo port install ImageMagick

step 3 . sudo port install ghostscript

done !

[Set up the environment]

cd $HOME

vi .bashrc

================================================

export MAGICK_HOME="$HOME/ImageMagick-6.9.1"

export PATH="MAGICK_HOME/bin:$PATH"

export DYLS_LIBRARY_PATH="MAGICK_HOME/bin/"

:q

================================================

[check]

convert logo: logo.gif

identify logo.gif

display logo.gif




===============================================
create a .gif file :

convert -density 500 -alpha off -delay 50 *.eps _____.gif

-density 500: the gif size

-alpha off : transparency

-delay 50 : output 2 pictures per second. 100 = output 1 picture per second.




source:http://www.imagemagick.org/script/binary-releases.php

2010年3月25日 星期四

How to create a icon for your own self -----如何建立一個屬於自己的icon

如何建立一個屬於自己的icon 圖示?通常大家給的答案幾乎都是去 iconfactory 抓免費的。
如果要漂亮一點的圖就要付費。但是,卻不能保證那些圖都是你要的。
其實建立一個新的icon並不難!只是要讓圖的付檔名變成.icns
actually, it is easy to create a new icon you like! (just change format from .png to .icns)
follow next steps, you will be a creater!

step 1. prepare your picture you like. you can download any picture on the websit or creat your own picture.

step 2. save as .png or .psd

step 3. go to "/Developer/Applications/Utilities" and open "Icon Composer.app"

step 4. "file >> New icns" you will see like this:



step 5. drag your picture in to the box and filled it.


like this :

step 6. save it. "file >> save"

step 7. now you need IcnsRsrc to convert .icns to .rsrc .

step. 8 download and open it. "file >> open >> .icns" than you will get a new icon.

now you can easily change any icon you like !!

drag .ratc to new file which you want to change.

enjoy it !!

參考來源:http://macapper.com/2007/04/21/how-to-create-custom-icons-for-your-mac/

set printer to server for MAC (or Linux)

this way is to link the server printer from MAC to Windows

step 1. open website type "http://localhost:631/"

step 2. enter "Administration --> add printer", choose "Windows Printer via SAMBA" and click continue.

step 3. type "smb://username:password@140.11x.xxx.xx/HP_Color_LaserJet_xxxx" and continue.
ps: username is server name.
password is server password.
140.1xx.xxx.xxx is server IP
HP_Color_xxxxx is the printer's type

step 4. type "Name","Description","Location" whish you prefer to and continue.

step 5. choose the printer type. (for me i choose "HP" ) and continue.

step 6. done! you can go back "Administration --> Manage" print test page to check is it work.

good luck !
if i have time i will put figuer in this in the future.

install gnuplot on MAC

前提:每次安裝都會花很久的時間才會安裝成功,不是失敗就是哪些沒安裝,為了以防萬一還是來記一下好了。

在 MAC上安裝 gnuplot 之外必須還要在安裝一項 AquaTerm 來輸出結果。

stap 1. download AquaTerm v1.0.1
click on "AquaTerm.dmg"
step 2. open Terminal type :
"cd /usr/local/lib/"
"sudo ln -s libaquaterm.1.0.1.dylib libaquaterm.1.0.0.dylib"
ernter your password

-------------------------------------以上aquaterm才算是安裝成功---------------------------------
再來就是gnuplot 的部份:
there are two way to install gnuplot :

step 3. download gnuplot 4.0.0.dmg
install this , and follow the installation step to the end.

the other way to install is :
step 3. download gnuplot-4.4.0.tar.gz
unzip this file
step 4. open Terminal to where you download the gnuplot file.
4-1 . type "./configure" enter it
4-2. "make"
4-3. "sudo make install" and type your password.

--------------------------------------------end-----------------------------------------------
check gnuplot :

step 5. type "gnuplot"

step 6. "set term aqua"

step 7. "plot sin(x)"

個人比較喜歡第一種方法,簡單。雖然比較低階(只有到4.0.0),但是個人用起來似乎沒什麼差別。

參考網站:http://www.oikos.com.tw/v4/viewtopic.php?id=32198
http://www.it.uom.gr/teaching/gnuplot/gnuplot.html