Archive for June 2007

Moving Windows without Ghost

2007-06-30

Broken windows logo

As there is no copy of Ghost around, I was unable to move my Windows 2000 to new harddisk for a short while. After Bunny’s suggestion, I give ntfsclone a try. It only claims to be able to move NTFS partition, nothing more. Not even fixing boot record.

Probably I’m lucky, since after cloning a damaged NTFS partition (with lots of bad sector), Windows still manage to boot! Most likely because of my habit of always installing Windows on the very first partition of every disk, thus the boot record of cloned partition fits completely on the new disk. The bad sectors have been biting me in the past (damaging an important DLL and render the Windows partition unbootable), so it is still unsafe to say I have a fully usable Windows again. Still, perhaps time for a reinstall, but at least there is a plan B.


2007-07-02 update: Finally, I have spent a whole night re-installing Windows. The bad sectors have damaged some not-so-critical yet still essential files (shellext, java stuff, …) . Under that state some applications can’t be installed, basically leaving me a broken system.

洗 keyboard!

2007-06-26

將鍵盤放入洗碟機洗,厲害! :thumbup: 比當年 Verbatim 的「洗 floppy」[1] 有過之而無不及!

[1] Verbatim 當年出的 5¼” floppy 說明允許拆開外面的軟膠殼,將裏面的碟片拿出來洗,待乾透後放回去封好,然後照常使用!(至少它的說明書如是說。)

Uploading to WordPress as draft in Drivel

2007-06-17

Drivel used to be a versatile GUI blog posting application, but it is suffering bit rotting. I’ve been using it since 2005, and noticed its lack of activity at that time. Though some refresh occurred around mid-2006, that is just temporary. Too sad that Drivel looks like not reviving now; it has been unofficially abandoned. And problems likely won’t be fixed now, such as unable to cope with newest blogger API (using Google authentication), selecting multiple blog post categories and so on.

Right now the single thing that annoys me most is, Drivel always publish the post upon clicking the ‘Post’ button, and in no way can I change setting and categories before letting the cat out of the bag. If it can be published as draft, there is still chance to go to web admin interface and change necessary settings.

New option in drivel post dialog

Thus this patch — it adds a checkbox to determine whether the post is published or not when submitting it. The patch also fixes GNOME bug#402672 I have reported (essentially making spellchecking usable again). Just apply the patch and recompile, and it’s done. BUT just for Movable Type and WordPress ONLY, I don’t have LiveJournal account so will not be making any changes for LiveJournal support. BTW LiveJournal bloggers are recommended to use LogJam anyway.

Since all bug reports will be ignored for now, I guess making it available on my own is better.

在 Ubuntu 寫 shell script 也不容易

2007-06-16

早期用 Mandriva 時寫了一大堆的 bash shell script,上年嘗試在 Ubuntu 用時,已經發覺不甚妥,有些功能在 Debian 或 Ubuntu 的 bash 是用不了的,例如雙方括號 [[ …… ]]、進行 regular expression match 等等;那類功能沒了不會死人,改一下之後很多 script 都沒事。但自從用了 Ubuntu Feisty 之後,所有 script 都完了。最起碼,array 完全不能用,沒有了這個功能,對我來說就等於不用再寫 script。我想大概 Debian 和 Ubuntu 的人想將 bash 打斷手腳,令其變成完全 posix compliant 的殘廢 shell。

沒法子,現在任何 shell 都信不過了,最信得過的卻又是先天性腦萎縮,唯有在 Perl, Python, PHP 之間選一個。暫時最熟手的是 PHP,雖然如果聽到用 PHP 寫 CLI 的 script 很多人都會瞪大眼,以為我是傻的,但總之要先做到日常的工作,別的待日後才說吧。

大家都是 Linux,預設都是 bash,但 bash script 卻不兼容……即使我本身不打算考慮 portability(反正只是自己用的 script),所用的平台也要逼我考慮,有點諷刺。

Altavista, Bye bye

2007-06-11

As I have written before, Babelfish of Altavista can’t really compare with Google Translate; not only in terms of translation quality, even when considering number of supported languages and performance, Babelfish immediately pales in comparison.

I have always been wondering what goes on with Babelfish. Now the answer is clear. Altavista is dead. Long live the Google!

CLI theme alternative plugin superseded

2007-06-11

PipperL’s alternative theme plugin is convenient when people want to try one of the most geekish WordPress theme, CLI theme, by Rod McFarland. Other than setting it as default theme (most people wouldn’t want that), or using ThemeSwitcher, PipperL’s plugin is the 3rd method — appending '/cli' to the end of site URL automatically changes to CLI theme.

Even though I don’t use PipperL’s plugin anymore (using ThemeSwitcher now), this might still be useful for others: somebody else extended it and gave it a new life: CLI switch. The original plugin no more works for CLI theme 2.0 or above.

Dennys also posts some instruction on how to update the plugin so it works for CLI 2.0 theme. However the instruction is hackish, and not feasible for Joe users.

2008-07-07 edit: I stopped using anything related to CLI plugin at least a whole year ago. It is a mess regarding CJK support… well, put it simply, there is no support. I have given up.

回憶 — 買 Linux 軟件

2007-06-04

「Linux 軟件也買?」看到標題的人可能會這樣想。但是 VMware 會不會買?Crossover Linux 呢?買不買完全在於需要與否,還有軟件本身是否優秀得令人甘心花錢。像 VMware,就可說是件值得買的東西,即使 Xen, Qemu 等等開始追趕,到現在它們的功能和表現還是差一截(撇開花錢的版本感覺上比較快不說)。回想自己過去,買過的 Linux 軟件只有兩件:

MpegTV — 唯一像樣的媒體播放軟件

在自己玩 Linux 的早期,別說 3D 了,單單是能播影片就已經是件很了不起的事。那時可沒有像 Mplayer, Xine, VideoLan 等等一大堆影片播放程式和 gstreamer 之類的多媒體架構;當時最通用,可以勉強播一個半個 Mpeg 的程式稱為 Xanim(99 年就停止開發了),而且 Xanim 也不是甚麼純粹的開源軟件,裏面還有一堆的 binary library 用來支援不同影片編碼。免費就有,想開源,留待發夢吧。

那時看到有這麼一個 shareware 程式,支援更多的影片格式,還能播 VCD!(記憶所及,當時能播 VCD 的程式不存在)用了兩年左右吧,最後覺得它是件值得投資的東西,就在網上付款了,拿了個 registration code。不過,見不到加了個 registration code 和原來的程式有甚麼分別,不覺得增加了或加強了任何功能。過了幾個月,開始覺得後悔,因為我買的時候似乎差不多已經是它最後的版本,之後也再沒有新版本了。花了 10 元美金,原來是一件準備棄置的垃圾。(上面說的版本最新的也只是配合 glibc 2.1 的系統,即 RedHat/SuSE 7.0 的年代;還有 libc5 的版本呢!現在網站還叫人買,真是無恥!)

Mup — 唯一能用的樂譜製作軟件

那時不算早期了,已經是 2003 年左右。當時對於 Linux 能否製作樂譜產生了疑問,當時 Windows 方面以 Encore 等軟件為主(不記得有沒有 Finale 了,但總之都是貴得令人咋舌),易學易用的 GUI,Linux 想都別想(只是估不到現在還是一樣)。花點時間找了一找,只找到 Lilypond 和這個 Mup(沒有注意到 Musixtex, PMX 等,但恐怕見到也提不起勁)。Lilypond 的格式當時見到就沒興趣學了,而 Mup 的網站又說可以下載和試用,於是就抓回來用一下。一用就愛上它了,因為格式簡單易學,又能自動編排音符和音譜整體的配置、空間,於是試了不多久就付錢 (US$30) 買了。

不同 MpegTV,到現在我還是覺得付 30 元美金很超值,因為 Mup 真是給人用的,不同 Lilypond,只是輸入一頁音譜,複雜程度就夠要人的命,諸如 100 頁以上的大型作品更不用說,嘔血也嘔不出來。固然,Lilypond, Mup 之流和 Windows 的同類軟件完全是兩回事,功能強之外要強調易用的話就就只有 Windows 的東西(Rosegarden, Noteedit 之類的頂多只能製作手機鈴聲那種級數的簡單和弦),但在文字模式之下輸入樂譜,速度出奇地快,初期製作又不用太顧慮編排問題(它自動編排得算是不錯),幫了不少忙。半年的空閑時間能讓我輸入一整首協奏曲的 2/3(這首曲的配置難度頗高),算是有所交待。現在仍不後悔買了它。

Arkkra 給我的印象很特別,不是一般公司式經營,似乎只是頂多兩三個人聚在一起寫 code(他們自己如是說),我交 patch 給他們,也肯接受!剛才說了 “patch” 是嗎?沒錯,有 source code 的,付錢之後會教顧客如何製作一個特殊的檔案,作用就像 registration code 一樣。open source shareware 在我玩 Linux 的生涯中還未見過第二個。


2007-06-28 更新:我是傻的。竟然去找 MpegTV 有沒有下載,而且竟然讓我找到。不單止這樣,還要笨到去嘗試執行,還要能夠用!

MpegTV screenshot MpegTV screenshot