Jan
31
2007
成為
switcher 後首遇蘋果臭蟲。 XD
話說我的 Mac mini 的 wireless connection 時常斷線又不懂得 reconnect,完全減低其作為 always on machine 的 utilization。試了很多方法亦不得要領,終於在蘋果的論壇找到同樣的受害者。原來主因在於 WPA re-authentication timeout,每當時間一到,就會踢走 Mac box。這個預設值為一小時,若設定為兩分鐘,那 Mac box 就只能上線兩分鐘。但最奇的是這個問題只會發生在 OS X 10.4.8 及所有 ZyXEL 品牌的 wireless router 這個組合上。而我,就是使用這個組合… orz
據論壇說已有人向蘋果滙報這個 bug,但蘋果方面仍未有解決方案。ZyXEL 的 router 也不能 disable 這個 timeout,只能把其設定為最大值 9999 秒 (不足三小時)。
no comments | tags: airport, os-x | posted in 喃喃自語, 技術交流
Jan
23
2007
哈!我也成為 Mac 友了!
舊電腦不能過渡到 07 年,壽終正寢,正好催化為家添一部 media center 的念頭,思前想後,實在沒有不買 Mac Mini 的理由。
除了作為 media center,這部小機器亦是 NAS 、download machine ;若加多這個 USB deviece 就是 HDD TV recorder!四千多就可滿這麼多願望,一部 PC 都唔得啦!
而且可以像現在般對著電視打 blog ,很正;也很虛榮。
至於 Mac OS X,仍未摸熟,暫時只試過 Front Row 看相,已大有值回票價的感覺。
9 comments | tags: mac | posted in 喃喃自語
Jan
11
2007
Challenge: A traditional media organisation publishes various press releases daily via a central system to different channels, e.g. fax, data terminal and internet. As some special reasons, the system is not able to markup the content for the internet version. It can only change the line break to <br> and consecutive spaces to i.e. No hyperlinks even if there are any URLs or e-mail addresses written in the articles. It is definitely not user-friendly for internet readers and something should be made in order to improve usability.
No way to intervene the publication system but it is able to add post-publishing logic to the external JavaScript file included in the HTML output.
I decide to solve it by JavaScript regex but badly my regex sux! Theoretically it can be done by two lines of regex replace code (one for URLs and another for e-mail addresses) but they crash when replace globally at the same time. (e.g. ‘chiunam.net’ of ‘no-reply@chiunam.net’ – MY REGEX SUX!)
Finally I made it by scanning the article from start and create hyperlink for matched pattern once. It is clumsy but it works pretty good.
See my code in action.
1 comment | tags: javascript, regex | posted in 技術交流
Jan
4
2007
為安全計,若你在斷纜期間曾使用 Proxy,趁現在網絡大致回復,快更改你網上服務的密碼。
no comments | tags: security | posted in 喃喃自語