Subscribe to RSS Subscribe to Comments Blog of Roy Chan

Blog of Roy Chan

轉了 HTC Magic 三週

買了 HTC Magic 三週,買的原因如下:

  • 確實想要個易於 customize 又可以用的電話 (OpenMoko 的電話一直可用性都似乎很差)
  • 最好是 Free/Open Source Software 電話 (iPhone 不是)
  • 相關公司比較開放 (Apple 一向出名限制多多, 有時比 M$ 更甚。 Palm 則仍有待觀客)
  • 有大 vendor 支援, 個 OS 唔會只變成小眾 Hacker Toy (現時除 Apple 外,只有Google 有這種號招力)
  • 推出時間, Palm Pre 在香港推出遙遙無期… Samsung Galaxy 和 HTC Hero 也是沒有 keyboard.. 值得等待的程度大減
  • Android 的勢不錯,確實成功感引了大量非 GNU/Linux 的開發者為他編寫程式,前景應該不錯﹐值得投資 (我指心力上)

遲點講講用後報告。

相關連結


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


二十年的回望

二十年前,我只是一個中學生,曾經參加過大大小小不同的集會和遊行。二十年來的集會,我大約參予了超過一半。曾經思考過繼續參加的意義和作用,結果這幾年仍是繼續。不知不覺地,已二十年了。

從來沒有想過在香港這資訊發達的地方,歷史可以被埋沒。我中學時代的歷史科對中國近代史也是輕輕帶過。對大躍進和文革的描述亦是十分含糊,但最少我也知道文革大概是怎麽一回事。然而,聽得多新一代言論令我驚覺很多時不是如我所想理所當然。我不怪新一代對歷史的不關心,最多只能說是無奈。因為我相信我不能把自己的價值觀强加新一代。不過面對新一代對是非黑白的扭曲就不得不正視。

今年的集會對我來說多了一份意義。這不單是要告訊當權者歷史不能被埋沒,亦是期望被洗腦的新一代看到我們經歷過那時代的人思想和他們的差異,重新思考自己價值觀的正確性。

謹以 Les Miserable 的一曲 Drink with me 送給二十年前的死難者:

ENJOLRAS: Marius, rest.
FEUILLY: Drink with me to days gone by. Sing with me the songs we knew
PROUVAIRE: Here’s to pretty girls who went to our heads. JOLY: Here’s to witty girls who went to our beds. ALL: Here’s to them and here’s to you! GRANTAIRE: Drink with me to days gone by. Can it be you fear to die? Will the world remember you When you fall? Could it be your death Means nothing at all? Is your life just one more lie?
ALL: Drink with me to days gone by. To the life that used to be WOMEN: At the shrine of friendship, never say die MEN: Let the wine of friendship never run dry ALL: Here’s to you and here’s to me


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Moblin 2.0 for Netbook

Moblin 不動聲色,突然發表了使用新設計介面的 Moblin 2.0 Beta for Netbook。這個柔合了 Nokia Maemo 和 OLPC Sugar 的介面頗酷,確實令人眼前一亮。

Moblin 原本主要針對 MID 而設,但見 Netbook 大熱,2.0 也分一杯羮。這次展示的 UI 就是針對 Netbook。第一個畫面是所謂 m_zone 的介面,左邊顯示重要日程、To-Do-list 和常用軟件,右邊分兩區以 thumbnail 顯示多個最近存取的網站、圖片、影片和 Twitter 等 Microblog 訊息。頂部面板則用來顯示時間、電量、連線等狀態和主要工具。主要工具包括可以即時改變 Twitter 等 Microblog 狀態通訊錄瀏覽器多媒體管理程式剪貼薄應用程式列表切換應用程式。通訊錄、瀏覽器、多媒體管理程式、剪貼薄和應用程式列表都主要用 incrememtal 搜尋方式找需要的朋友、網頁、圖片、影片和應用程式。通訊錄功能頗似 Maemo,其實如果一般桌面都可以這樣做也不錯。瀏覽器兼具類似 Firefox Awesome bar 的 automagic bar,亦可以用 thumbnail 切換不同分頁。切換軟件方面,用 zone 取替了傳統 X Window 的 workspace。各視窗可以方在不同的 zone, 當一個 zone 沒有任何視窗就會自動消失,將一個視窗移至最右邊又會自動產生一個新 zone 存放新視窗。在各 zone 間切換和移動視窗的介窗,很似令人引頸以待的 Gnome Shell。

據說這個 beta 版還很 buggy, 但新介面確實令人感興趣。對一般桌面可能略少了彈性,但對細螢幕的 netbook 或 MID 似乎頗適合。如 Jim Zemlin 所說,Moblin 這個 UI 設計是專研了一般使用者使用 Netbook 的習慣,而不是把桌面搬上 Netbook。並非完美但有很多值得借鏡的地方。

不過針對 Netbook, 還是使用 Firefox 較適合。Moblin 自家的輕量 browser, 對 MID 使用者還可。始終 netbook 用戶是期週一些全功能的應用程式。

相關連結:


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


山寨版 Magic

Engadget 看到山寨版 Magic,很搞笑。BTW,最少顯示有不少人對 G2 很有興趣!

山寨版 HTC Magic


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


無恥曾蔭權絕不代表我個人立場

嚴正聲明:香港特別行區行政長官曾蔭權任何言論不代表我個人立場。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Linux 核心 mailling list podcast

這個是早幾天的舊聞,但頗有趣,所以提一提。Jon Master 上週開始製作了一個 Linux kernel mailling list (LKML) 的 podcast,每日提供一個約五分鐘當日 LKML 上討論的總結。Jon 的說法是想方便沒有時間看 kernel mailing list 的朋友。不過這工程應該很浩大,每日出一集,要花的時間可不少,不知 Jon 可以支援多久。我下載聽過, Jon 的報導頗 flat,高低仰揚欠奉,但勝在夠慢,想練一練英文的 Linux 友不妨一聽 (Jon 也有上載講稱至 Kernel Newbies,也給 多點支持。Jon 大約每天香港時間下午一、二點左右發佈新一集。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


修正 Intel 圖形晶片在 Ubuntu 9.04 (jaunty) 的表現

前提過 Ubuntu 9.04 的亮點,這次提提 9.04 的問題。如果你的電腦是使用 Intel 圖形晶片,你應該會發覺 9.04 在繪圖的表現比 8.10 差了不小,尤其在 Compiz 很明顯,很多特效都不流暢。這是因為 9.04 是值幾項重要圖形技術的轉接期,Linux 核心 2.6.28 開始轉用 Graphics Execution Manager (GEM) 以改進和簡化 X server 的記憶體管理。X.Org 亦引入了 UXA 和 Direct Rendering Infrastructure (DRI2) 取替 EXA/XXA 和 DRI,壐加上 kernel-based mode setting (KMS)。大量新玩意出現,問題臭蟲自然不少,互相兼容亦很多問題。

現時 9.04 開啟了 GEM,但亦使用 EXA,而 UXA 又未隱定。部份使用舊 Intel 圖形晶片在 9.04 甚至出現鎖機現像。Ubuntu 的 release note 建議有鎖機問題的朋友可以停用 DRI (會同時停用 3D 和桌面特效 compiz) ,方法是在 /etc/X11/xorg.conf 的 Device 章節 (Section) 加上 Option "DRI" "off"

如只是繪圖表現差或特效不流暢,可以啟用 “greedy” migration heuristic。我試了,果然 Compiz 回復 8.10 時的輰順。方法是 /etc/X11/xorg.conf 的 Device 章節 (Section) 加上 Option MigrationHeuristic" "greedy":

Section "Device"
    Identifier "Configured Video Device"
    Option "MigrationHeuristic" "greedy"
EndSection

參考資料:


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Jaunty Jackalope

其實 Ubuntu 9.04 (Jaunty) release 前兩周已傳用了 Beta 版本的 9.04,不過一直懶於動筆寫寫。當然桌面Wubi 安裝手冊也算按是在 jaunty release 一日內出現。伺服器版的安裝手冊 則因為考慮到其實不應鼓勵安裝非 LTS 的伺服器,加上每次 update 大花功夫 (最辛苦是 cap 圖),決定以後只提供 LTS 版的伺服器安裝說明。

Jaunty 這個版本改動不算太大,事實上 GNOME 2.26 比 2.24 的改動也不太大,多了 Brasero 這個其實 Ubuntu 一早預裝的光碟燒錄程式,在 Ubuntu 底下顯得不起眼。當然 Brasero 的介面是改變了不少,個別軟件也有不少改動。但面對一個已啟動的 9.04,驚喜似乎久奉。誰不知重點是在開機的一剎。

如果說 9.04 最令我喜歡的,絕不是新的 OSD 通告系統 notifiy-osd,而是 9.04 的開機速度。我現在由開機到登入 GNOME 才花不到半分鐘的時間,而休眠和由休眠回復的時間也有很大改善。當然我安裝 9.04 beta 時也順道換了較快的硬碟,所以不能作準。但在其實沒有換硬碟的電腦安裝 9.04 , 似乎也確實快了不少。

此外,9.04 這次的壁紙似乎是比較像樣 (雖然很 OS X) 。另外 9.04 也正式收錄 Dust Theme,這個 theme 我在 8.04 時已開始使用,這次不用自改去下載,免了麻煩。黑色 panel 配橙色壁紙,感覺比美很多。在外觀上,我認為 Ubuntu 還只差 icon theme, 尤其是 Emblems (最醜的設計) 。過往 Fedora 的 theme 一直比 Ubuntu 專業萬部,但 Fedora 9 的視窗邊框確實醜得嚇人。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


PHP Framework

It’s long time I haven’t wrote some long web application. For some reason, I intent to start one recently and try to find a suitable framework. I had thinking of writing in Python while I consider it is a better language then Perl/PHP. However, I don’t want to have too many different application run on a single machine, I decide to program back in PHP finally. The next question is which PHP framework I should choose.

Currently, the hottest PHP frameworks are Zend Framework and CakePHP. But after read several articles online, I think CodeIgniter is better.


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


使用 vim 編輯 web textarea (Firefox or Kazehakase)

用了 vi/vim 十多年,其他 text editor 對我來說確實很麻煩。大部份事用 vi/vim 做都有說不出的爽!!! 就算多年前因工作需要在 windows 寫程式寫,也懶得用 UltraEdit 等,抓個 vim windows 爽很多。近年,經常要在網頁上的 textarea 打一大篇文章,結果還是受不了,很多時需要在 copy&paste 到 vim 執行仔細的編輯。簡潔的按鍵自然是我喜用 vi/vim 的主要理由,regular expression 更是我編輯時不缺的利器。

幾年來,我花了不少工夫企圖把 regular expression 或 vi/vim 式的編輯引入 web,包括寫了些 bookmarklet 等,但始終和 vi/vim 差很遠。嘗試過幾個令 Firefox 使用 external editor 的 extension, 不過都不太有效。近兩年前,找到了 It’s All Text,終於把我這個難題解決了。

It’s All Text 這個 Firefox extension 安裝後,會在每個 textarea box 的右下角浮現一個 “edit” 小按鈕,按下就會把 textarea 的內容送去指定的 text editor 進行編輯,絕對是 vi/vim 的必裝 extension。

然而,這年來因為安全問題,我經常會同時使用多個 browser,用不同 browser 執行不同安全級別的 web apps。(都是 ajax 惹的禍)。Prism, Epiphany, Kazehakase,甚至 Opera 都會常用來代替 Firefox 執些較低 reliability 的 web site/apps (Prism 一般用來跑重要的 webapp 如 gmail 和 online-banking),Noscript extension 則用來限制不明網站的 javascript。不過用其他 browser 時,就少了 It’s All Text 用 external editor 的爽便。早期才發現用了半年的 Kazehakase 其實內建使用 external editor 的功能,多了個可以便利使用 browser。

在 Kazehakase 設定使用 gvim 很簡單,首先 UI Level 要設定為 Expert (View -> UI Level -> Expert),在 Edit -> Preference 中的 External Program,設定 Editor command 為:

gvim -f %s

就搞定了。 (-f 選項是避免 gvim 自動 fork 入背景工作,令 Kazehakaze 不知 gvim 完成編輯)

往後在要編輯的 textarea 按右鼠鍵在選單選 Launch Editor 就可以了。(當然是經謹關閉了 gvim 才好 submit web form)


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


你的人生補時又會有多少?

Loss Life Time

34 小時 18 分鐘,有 1 日多的時間,似乎確實是浪費了很多時間。會做什麼? 到時才會知…..

P.S. 測試您的人生補時,可以在官方網站進入任何一個次頁再按左下角 Pickup 的 Loss:Life:Time Check。不懂日文可以看バカ同盟: 你的人生補時會有多少?的翻譯。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


在 Maemo 設定中文 locale

好像有不少人對 N810/N800 有興趣,也寫寫 N800 的一些技巧。 Maemo 4.1 支援顯示中文 (其實舊版都得,不過要自己加中文字體) , 不過部份軟件 copy & paste 中文有問題, 如 mYTube 和 Canola 等。問題是系統仍是使用 en_US locale。

要加中文 locale ,可以:

先安裝安裝 https://garage.maemo.org/projects/locales-extras 中的 locales-extras-cjk_2.3.5-2_all.deb

再要在 Control Panel 加上 zh_TW 選項, 打以下命令:

gconftool-2 --set /apps/osso/applet/languageregional/available_languages \
     --type=list --list-type=string "[zh_TW]"

wolfg 所說,亦可以用 gconf-editor 做。

另外 zh_TW 無翻譯檔 (*.mo), 可以由 en_US 抄出來 (不否大部份 介面訊息會變 message id):

cd /usr/share/locale/en_US/LC_MESSAGES/
cp -i *.mo /usr/share/locale/zh_TW/LC_MESSAGES/

再到 control panel -> Language and region, 改 Device Language 就可以了。

最後 reboot 個系統。

P.S. 不過 Bookmarks 個 folder 名仍不可以中文。

P.P.S. 輸入中文可以到 Maemo CJK Support 安裝 SCIM, 不過我個人不建議在 n800/n810 上跑 SCIM。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


修正 Debian 5.0 香港中文支援

Debian 5 桌面

Debian 5.0 (Lenny) 結果如期在情人節出爐,令我有點意外。現在 ftp.hk.debian.org 基本上把 5.0 的光碟 ISO 都 mirror 了。由於硬碟空間問題,只 mirror 了 i386 和 amd64 平台的 businesscard、netinst、CD-1 (GNOME)、kde-CD-1 和 xfce+lxde-CD-1 的 ISO 以及 LiveCD ISO 等。DVD ISO 會在這一兩天搞定。

另外安裝手冊亦在 OSWikiHK 有了初稿

香港似乎沒有人做過測試,安裝 Debian 5.0.0 選擇繁體中文和香港區域時,安裝程式沒有自動安裝中文字體和輸入法引擎,令安裝出來的 Debian 亂碼。要按裝以下套件後重新開機才可以較正常顯示:

  • ttf-arphic-uming
  • scim-tables-zh
  • im-switch

即是在終端機 (Terminal),打:

su -c 'apt-get install ttf-arphic-uming scim-tables-zh im-switch'

以上設定後,顯示小中文字體明顯很矇,應該有些設定仍有問題。待稍後有時間測試才補充。

更新: 提供了香港區無安裝中文套件問題 #517854, 下個版本應該會 fix 個問題


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Progress dialog box of Zenity

Zenity is the tool to display different types of GTK+ dialog box. It is very useful if you want to write a simple GUI shell script.

Apart from those simple yes-no/ok-cancel dialog box, zenity also provide interesting dialog box like the progress dialog box. The dialog box can be show with the commend “zenity --progress“. To make it meaningful, you may need to add more options of it.

The option “--text=string” control a short description show above the progress bar in the dialog box and “--percentage=num” set the percentage show in the progress bar.

You must not miss the following 4 options which applicable to all zenity dialog box. “--title=string” set the title of the dialog box and “--window-icon=path” set the window icon show beside the title. “--width=num” and “--height=num” control the size in pixels of the window. For example:

zenity --progress --title='Waiting...' --window-icon='/usr/share/pixmaps/gnome-about-logo.png' --text='Waiting for you to press Cancel' --percentage=50

Zenity progress dialog box

Sure, you won’t happy with the above functions. Let make the dialog box moving. Option “--pulsate” can make the progress bar beating right and left:

yes | zenity --progress --pulsate

Zenity pulsating progress box

Not satisfied? Me too! So, when will the Ok button press-able. Can the progress bar grow to show the progress of a task? Yes, it can. During the zenity show the progress dialog box, it also listen to the STDIN. If you type an number and press ENTER in the terminal you run zenity, you will see the number become the percentage show progress bar of the dialog box. If you start and line with “#”, type few words after it and press ENTER, the words will replace the description above the progress bar. In short, zenity --progress received the following format from STDIN:

num1
# description1
num2
# description2
...
# ...

Where num percentage of the progress bar and description change the progress description. The following script demo and explain more clear about the progress dialog box:

for x in 10 20 30 40 50 60 70 80 90 100
do
    echo $x
    echo "# Count to $x"
    sleep 1
done | zenity --progress --title='Counter'

Zenity progress box

You see that when the progress bar become 100%, the Ok button is activated.

Besides, you will found that if you press the “Cancel” button during the script working. The dialog box will disappear but you won’t see the prompt while script still running and not affected. You should expect the “Cancel” button will stop the script but it’s not. Option “--auto-kill” should be added to make it happen. It make the “Cancel” button kill parent process of zenity - the shell. Beware that if you type zenity on the command line, it will kill the shell and close the whole terminal. If you run zenity in a shell script, the script will be killed.

The last option you shall not missed is “--auto-close” which close the dialog automatically when the progress bar reach 100.

Many people demonstrate zenity progress with wget which show a progress dialog to show the progress while wget downloading file. But it seems the output format of wget was changed and all script I found online didn’t work. Here is my fix of the demo.

wget "$url" 2>&1 | \
     sed -u 's/^.* \+\([0-9]\+%\) \+\([0-9.]\+[GMKB]\) \+\([0-9hms.]\+\).*$/\1\n# Downloading... \2 (\3)/' | \
     zenity --progress --title='Download' --auto-kill --auto-close

It refine the wget output:

11550K .......... .......... .......... .......... .......... 21%  304K 2m51s
11600K .......... .......... .......... .......... .......... 21%  296K 2m50s
11650K .......... .......... .......... .......... .......... 22%  321K 2m50s
11700K .......... .......... .......... .......... .......... 22%  475K 2m49s

to zenity --progress format.


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


立會選舉數據分析

立法會選舉結束,我也學人做選後分析,不過我為興趣的並不是全港的選舉數據分析,反而是我所屬票站的分析。身處今屆號稱民x聯新票倉的天水圍區,我屋苑的區議員亦是著名的”隱形”民x聯,但事實上我進的屋苑是否直是被建制派佔據!?

直接比較各候選名單的得票率並不是一個好的方法,因為新界西的建制派一向是集中在兩、三個名單,反而泛民則分散了多個名單。不用看,民x聯名單的得票率很大機會都是最高。所以我把個候選人在我屋苑的得票率和整個新界西的得票率做比較,可以較準確地看到我屋苑的投票意向。為了比較這幾年的變化,也找來上屆 2004 年立法會選舉的數據。

在2004年,我屋苑偏向是陳偉業的票倉,他的得票率是他在全新界西的 1.65 倍 (多 5.06 個百分點)。其次是李卓人,有 1.27 倍 (多 2.7 個百分點)。而民x聯,只有 0.83 倍 (少 4.28 個百分點,當然得票數字還是所有候選名單最高的),自x黨反而好點點,有 1.09 倍 (多 0.94個百分點)。整體上,我屋苑泛民 (陳+李+梁+民主黨+民協) 的得票率是 63.5%,比全新界西高少許 (1.05 倍,多 2.98 個部份點),建制派有 32.41% 比全新界西低 (0.91 倍,多 3.34 個百分點)。明顯在 2004 年,我屋苑的選民還是偏泛民的。

到了今次選舉,兩大陣營的形勢其實改變不算大。泛民得票率有 63.42%,比 2004 少了點,仍是比全新界西高少許 (1.03倍)。建制派有 35.74% ,仍是全新界西低一點 (0.95 倍) ,但在比率上比 2004 年的 0.91 倍有少部增長。個別候選名單中,我屋苑和全新界西最大的是張賢登名單,足足有 2.01 倍 (多 2.54 個百份點)。這應該不奇怪,因為張賢登一向工作地區在屏山、天水圍附近,其今屆得票亦應主要來自這些選區。其次的是上屆得票比率同亦較全新界西高的陳偉業和李卓人,有 1.38 倍。然而,陳偉業的優勢就比上屆少了不少。李卓人得票率可以比全新界面高 4.03 個百分點,但只比上屆多兩票。而陳偉業只高了 3.05 個百分點,比上屆少了 184 票。公民黨在我屋苑的得票率比全新界西少一點,有 0.97 倍。投票給民建聯的人多了不少,是全新界西的 1.1 倍,高 2.3 個百分點,但其實只比上屆多 68 票。不過以全新界西一樣,似乎上屆自由黨的不少票都流入民建聯手中,令自由黨在我屋苑的得票率只有全新界西的 0.94 倍,少了 0.32 個百分點,比上屆 412 票。而新參選的工聯會得票率只有全新界西的 0.58 倍。整體建制派有 37.56% 是全新界西的 0.95 倍,比上屆有很少許的進部,但實際票比上屆還是少了 95 票。整體泛民則有 63.42% (全新界西的 1.03),共比上屆少了點,但其實流失了 500 票。民主黨今屆比上屆多了一個名單,得票率除了新的張賢登外,合都比上屆跌。其實其總得票率有 17.62% ,比上屆少了3.48 個百分點,少了 330 票。

簡單來說,我屋苑的選民仍是偏泛民,和上屆差別不大。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


在 EeePC 加入速成輸入法

早一陣子有朋友買了部 EeePC 901 回來,因為不慣用速成,但 eeepc 又無 速成輸入法,問我點搞。我都知 lazyeeepc 亦可以加速成輸入法,但因為朋友不想加 lazyeeepc, 所我就手動搞搞佢。

注意: 本文已放上 OSWikiHK, 請到 在 EeePC 加輸入法 一文看最新最完整的版本。

EeePC 900/900A/901 使用 gcin 作為輸入法引擎。雖然預設只有幾個輸入法,但其實 gcin 提供了很多其他輸入法 (包括速成) ,只是沒有開啟罷了 (可能華碩怕太多輸入法選擇會很亂)。要開啟這些隱藏了的輸入法,需要手動改變設定。

先 Ctrl-Alt-T 開啟終端機 (Terminal), 在 /home/user> 提示符下輸入以下命令檢查您的 EeePC 使用的輸入法引擎是否 gcin:

echo $XMODIFIERS

如果顯示 @im=scim,您的 EeePC 應該仍是舊版 (700/701) ,還使用 scim 。您應該跟 SCIM一節的方法在 SCIM 安裝速成等輸入法或在終端機打 sudo apt-get autoremove scim; sudo apt-get install gcin gcin-qt3-immodule 安裝 gcin 取代 scim 。

如果顯示的是 @im=gcin,則表示您確實是 gcin ,可以按以下指示安裝速成等輸入法。先在終端機打以下命令把系統預設的 gcin 輸入法清單複製至目錄 ~/.gcin 中:

cp /usr/share/gcin/table/gtab.list ~/.gcin/gtab.list

輸入以下指令用文字編輯器 Kate 開啟 ~/.gcin/gtab.list:

kate ~/.gcin/gtab.list

並把檔案編輯成以下:

繁體倉頡 1 cj.gtab cj.png
繁體簡易 2 simplex.gtab simplex.png
繁體注音 3 - juyin.png
繁體詞音 6 - tsin.png
繁體大易 7 dayi3.gtab dayi3.png
簡體五筆 8 wubi.gtab wubi.png
簡體拼音 5 pinyin.gtab pinyin.png
#內碼 0 - intcode.png
#倉頡五代 2 cj5.gtab cj5.png
#標點倉頡 4 cj-punc.gtab cj-punc.png
#繁體行列 8 ar30.gtab ar30.png
#日本式 =  kana-nippon.gtab kana-nippon.png
#Greek ` greek.gtab greek.png
#拉丁字母 [ latin-letters.gtab latin-letters.png
#帶調粵拼 ] jyutping.gtab jyutping.png

重點在於增加了第二行,令 gcin 有 簡易 (即是速成輸入法) 可以選。您亦可以刪除上文字一些輸入法前的井號 (#) 啟用該隱藏了的輸入法。儲存後, 將 gtab.list 複製至幾個語系 (locale):

cd ~/.gcin
cp gtab.list gtab_en.list
cp gtab.list gtab_tw.list
cp gtab.list gtab_cn.list

完成後,先關閉了所有正在運行中的軟件,然後按 Ctrl-Alt-Backspace 重新啟動 X-Window (會中止所有執行中的 X-Window 程式) 就可以正常使用速成輸入法了。

其他 gcin 設定可以打 gcin-setup 跑 gcin 個設定程式。

您亦可以到 /usr/share/gcin/table 找到其他 eeepc 個 gcin 無用到既輸入法檔 (*.gtab) 可同樣用以上方法加入。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Upgrade to Diablo (Maemo 4.1)

Ok, you won’t believe that I haven’t upgrade my N800 to the lateast OS2008, Diablo (Maemo 4.1) until today. I even unaware it til bunny tell me few weeks ago.

2 Major things that diablo delights me are the Chinese support on RSS reader and the new mail client Modest. Ok, it also shipped with the Chinese font MHei18030C5.ttf. But I used the Chinese font provided by Google’s Android SDK which is much better then AR PL UMing since I upgrade to OS2008 beta. I have never got a problem on reading Chinese in N800. However, the broken Chinese support in RSS reader in Maemo 4.0 really make it useless for me. It is great they really fix it in Diablo. Besides, the long waiting Modest is pretty great. I had try the beta version of it last year in OS2008 beta and found it is much better then the old mail client. However the beta version didn’t integrated well with Task applet. I haven’t use the N800 to read mail since I upgrade to the official OS2008 (Maemo 4.0) coz it didn’t ship with Modest. Now, n800 can really become the Internet Tablet instead of only an E-Book reader or Podcast player for me. Wow!!!!!


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


GNU/Linux HSDPA (3.5G) 上網!?

早一陣子,有人問我 GNU/Linux 可不可以 HSDRA (3.5G) 上網。現在香港 HSDPA 計畫都頗貴,我沒有錢使用,所以亦答不到。不過研究一下亦無況。

Google 搜索一下,Tuxmobil 有一專頁收集了有過 GNU/Linux 3G 上網的資料。似乎上 Smartone-Vodafone 最新那個 HSDPA USB stick 有 GNU/Linux 驅動器,有 Debian、Fedora 8 和 OpenSuSE 10.3 等 distro 的套件預備。但見討論區有不少人投訴驅動器有問題。

有機會要找個有 Smartone-Vodafone USB stick 的朋友備來試試。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Feodra 9 中 KDE4 的中文支援問題

KDE4 的介面有很多吸引人的支援,不過多個使用 KDE4 的 distribution 在中文支援都問題多,繼 Kubuntu KDE 4 Remix 後,Fedora 9 中的 KDE4 也是沒有搞好中文支援。在 VM 試了幾次,亦在些簡介一下修正中文支援問題的方法 (本文最新版本已拼入 OSWiki 中的 安裝 Fedora 9使用 LiveCD 安裝 Fedora 9 桌面中):

首先需要自行自行安裝下以套件(Package):

  • kde-l10n-Chinese - KDE 簡體中文支援
  • kde-l10n-Chinese-Traditional - KDE 繁體中文支援
  • im-chooser - 讓您設定輸入法引擎的圖形介面工具。
  • scim-tables-chinese - SCIM 的中文輸法表,包括香港人常用的倉頡、速成、港式廣東話、行列、五筆等。安裝此套件時 YUM 自動會安裝其他所需的 SCIM 套件。
  • scim-pinyin - SCIM 智能漢語拼音輸入法。安裝此套件時 YUM 自動會安裝其他所需的 SCIM 套件。
  • scim-chewing - SCIM 酷音輸入法 (一種智能注音輸入法)。安裝此套件時 YUM 自動會安裝其他所需的 SCIM 套件。

即是使用倉頡、速成或港式廣東話的使用者可以打命令:

yum install kde-l10n-Chinese-Traditional im-chooser scim-tables-chinese

即是使用漢語拼音的使用者可以打命令:

yum install kde-l10n-Chinese im-chooser scim-pinyin

即是使用的使用者可以打命令:

yum install kde-l10n-Chinese-Traditional im-chooser scim-chewing

安裝完成後,執行 im-chooser。勾選 Enable input method feature,選擇 “Use SCIM”

使用 LiveCD 安裝的朋友需要在 K 選單中選 應用程式(Application) -> 設定(Settings) -> 系統設定(System Settings)。在系統設定(System Settings)中選擇地區與語言(Regional and Language),並在新增語言 (Add Language) 中選擇『繁體中文』(Chinese)後按套用(Apply)。

再重新登入後,您需要在 SCIM 輸入法設定中的 介面(前端) -> 全域設定中的以下三個快速鍵:

  • 作用鍵: Control+space
  • 下一種輸入法: Shift+Control+KeyRelease+Shift_L

設定後,按『確定』。

相關連結:


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


GDM 佈景主題: 用 Google/Windows/Mac 登入

GDM Google GDM

我一向都喜歡使用有人像的 GDM 登入畫面,近來最想使用的 tobain 設計的 Avio-GDM,不過今天看見 feuc5766 設計的 GDM Google English GDM 登入佈景,覺得很有趣。這個佈景主題把登入畫面裝扮成 Google 搜尋網頁,暗喻 Google 在當世電腦世界的地位。

當然,Gnome-look.org 還有模仿其他 OS 的登入畫面佈景:


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Based on Fluidity© 1998-2007 Roy Hiu-yeung Chan