2007年6月13日 星期三

瀏覽器新選擇:Safari3

WWDC2007 中,Apple介紹了他們的新瀏覽器 Safari3,不但可以在Apple平台上跑,也能夠在windows xp及vista裡跑,由於是Apple出品的,在介面上也有著Apple一慣的風格與質感。另一方面,windows平台下的瀏覽器也多了一種新選擇,Apple也要來搶攻IE及Firefox的市場了。

pure-ftpd 將 / 固定在自己的家目錄

在 ubuntu系統中,加入 ChrootEveryone 到 /etc/pure-ftpd/,內容為 yes,

restart後再登入ftp就只能在自己目錄活動了。

2007年6月11日 星期一

論文寫作用詞

在某BBS上看到的,要找出處已經不見了@@a

google一下其實也有,不過也沒有原始出處

http://tw.myblog.yahoo.com/marie-0126/article?mid=121&prev=156&next=119
1.論文不叫做report,aricle 叫做study/work....etc..

2.no I ,碰到非用不可用we

3.no 未來式 盡量用現在式 不得已用 something is corrently underway 取代未來式
以下這些字最好換掉

affect→influence、impact

A agree with B→A correlate with B、A correspond to B

carry out→implement、execute、promulgate

change→modify、adjust、alter、vary

check或prove→verify、confirm、demonstrate

complicated→complex、cumbersome

consider→evaluate、access

correct / incorrect→precise / imprecise、accurate / inaccurate

depends on→relies on、hinges on

different→various、varied、varying、distinct

find→obtain、derive、attain、locate、identify

help→assist、facilitate、guide、direct

important→critical、crucial、essential、pertinent、relevant、significant、vital

improve→enhance、upgrade、elevate

is made of→consists of、comprises of

little或few→slightly、seldom、negligibly

make clear→elucidate、clarify

make sure→assure、ensure

meet(滿足)→satisfy、fulfill、adhere to

much或greatly或strongly→markedly、significantly、substantially

problem→obstacle、limitation、restriction、shortcoming、drawback、phenomenon

needs→requires、stipulates

proposes→presents、describes

realize→comprehend、perceive、understand

solve→alleviate、modify、resolve、eliminate、eradicate

suitable→appropriate、adequate

tries→attempts、aspires、aims

usually→normally、typically、generally

[軟體] VirtualBox 1.4

Innotek 公司在前幾天推出了虛擬機器軟體 VirtualBox 1.4 版,過去除了使用VMWare或是Virtual PC外,現在又有了一個免費的新選擇,VirtualBox 的授權有兩種,一就是GPL,二是個人使用的免費版本,支援多國語言、64位元的主機,Mac與新的Vista都可以裝進去。ubuntu user 可以直接抓deb檔下來安裝,或是使用apt-get,以下為debian-base的source列表:
deb http://www.virtualbox.org/debian feisty non-free

deb http://www.virtualbox.org/debian edgy non-free

deb http://www.virtualbox.org/debian dapper non-free

deb http://www.virtualbox.org/debian etch non-free

deb http://www.virtualbox.org/debian sarge non-free

deb http://www.virtualbox.org/debian xandros4.0-xn non-free

MySQL的預設編碼?

在一些安裝了 MySQL Server 的系統上,不曉得是什麼原因,預設的連線編碼、校對甚至是資料庫與資料庫欄位的編碼皆是latin1_swedish_ci,雖然使用上可能還是正常,但是配合其它工具軟體來看時,就可能爆炸啦,但是直接改編碼方式又會破壞資料,解決的方法我是使用 phpMyAdmin 備份出來,重設資料庫編碼成 utf-8,再將資料匯入:

1. 下載 phpMyAdmin 套件

2. 修改 phpMyAdmin/libraries/select_lang.lib.php
在裡頭找到這行

'utf-8'        => 'utf8',   改成

'utf-8'        => 'latin1', 存檔

3. 使用phpMyAdmin把資料庫備份出來,這時應該看的到正確的中文字

4. 把資料庫的所有編碼都改成 utf-8,並清空或刪除資料庫。

5. 把 phpMyAdmin/libraries/select_lang.lib.php 改回原本設定,再匯入已備份的資料庫就行了,此時所有編碼應該都是 utf-8。

PS:以上皆假設對所有資料庫有完整權限。

Full Circle Ubuntu magazine 第一期出版

fullcirclemagazine出版了第一期的ubuntu電子雜誌,內容介紹了很多在ubuntu中使用的自由軟體,而且都是Open Source的軟體,對於剛入門Linux的新手,是本很有幫助的雜誌。

線上看雜誌連結: http://www.scribd.com/doc/99695/Full-Circle-MagazineIssue-1

PDF版本:http://www.scribd.com/word/download/99695?extension=pdf 

[軟體]Thunderbird 中文版使用 MinimizeToTray 的問題

這幾天因為把ThunderBird從1.5.x更新到2.0.x,也從以往用的英文版換成正體中文的版本,發現MinimizeToTray這個功能好像有點問題,只要隨便按個鍵就縮下去了,這樣的話不是等於鍵盤掛了?一開始懷疑是2.0.x版與其不相容,找了一下MinimizeToTray的官方網站,都沒看到類似的討論串,難道是中文版的關係?到moztw.org找了一下,發現真的是官方的MinimizeToTray與中文套件有不相容,改用了台灣社群裡的patch版本,就正常了。

2007年6月8日 星期五

ubuntu 7.04下安裝 ns2

1. 安裝所需要的軟體
$sudo apt-get install build-essential

$sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

$sudo apt-get install libxmu-dev

2. 從 http://www.isi.edu/nsnam/ns/ 下載 NS2 All in One 套件
$tar xvfz ns-allinone-2.31.tar.gz

$cd ns-allinone-2.31

$./install

3. 等一段時間後,在 .bashrc 裡加入 path 設定 (以下請自行改成ns2所在的目錄位置)
export PATH=$PATH:/home/username/ns-allinone-2.31/bin:/home/username/ns-allinone-2.31/tcl8.4.14/unix:/home/username/ns-allinone-2.31/tk8.4.14/unix

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/ns-allinone-2.31/otcl-1.13:/home/username/ns-allinone-2.31/lib

export TCL_LIBRARY=$TCL_LIBRARY:/home/username/ns-allinone-2.31/tcl8.4.14/library

4. 執行 ./validate 驗證安裝