We should forget about small efficiencies — Donald Knuth
13 Aug
今天更新 Gentoo Linux 時, 在 sudo emerge -uvDNat world 之後, 發現 php-5.2.3 升到 php-5.2.4_pre200708051230, 然後 expat-1.95.8 升到 expat-2.0.1, 當下暗暗感覺不妙, 果不其然, 升級完之後 apache 就不會動了, 比方說執行 sudo /etc/init.d/apache2 stop 時, 會出現:
sojia [~] -pigfoot- sudo /etc/init.d/apache2 stop
/usr/sbin/apache2: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
果然, 因為 expat-1.95.8 的是編出來的 libexpat.so.0, expat-2.0.1 會編出 libexpat.so.1. 我試著 rebuild apache 結果也一樣不行.
正確答案要這樣:
sojia [~] -pigfoot- sudo revdep-rebuild
就是把系統中, 會用到 libexpat 的套件都 rebuild 之後才會動. 給大家作個參考.
Popularity: 57% [?]
13 Aug
上個禮拜, Sun 終於拿出殺手級的 processor : UltraSPARC T2 (Niagara 2)!
除了把從 T1 的 32 threads per processor (8 cores, 4 threads/core), 加到 64 threads per processor (8 cores, 8 threads/core) 之外, 最令人在意的是 “Zero Cost” Security 這個 feature.
一般大家不作一些 security 保護的理由不外乎是速度慢, 尤其是在 web server 的 implementation, 作了之後對 throughput 影響非常明顯, 所以在 T2 中, 他們加了一個 cryptographic unit, 也就是說可以利用這個硬體來完成一些費時的 security function.
本來以為作了 DES, 3DES, AES, MD5, SHA-1 就了不起了, 但是在 2007/07/08 的新聞中, 聽到 Sun Staff Engineer Dr. Lawrence Spracklen 的 talk, T2 support 的有:
後來在他的 blog (Lawrence Spracklen’s Blog) 中, 看到他寫的這篇 UltraSPARC T2 Crypto performance. 看起來還蠻不賴的啊~
接著我猜會有強者利用這些硬體作出 T2 的 SSL. 好期待測出來的數字啊~
PS: 這裡是用 UltraSPARC T1 CPU 的 T1000 和 T2000 的價錢, 不知道搭配 T2 的 Server 會賣多少錢 XD
Popularity: 36% [?]
12 Aug
What’s New
Known Issues
Mozilla Firefox 1.5.0.12 Release en_US (20070809)
Mozilla Firefox 1.5.0.12 Release zh_TW (20070810)
Mozilla Firefox 1.5.0.12 Release zh_CN (20070810)
Mozilla Firefox 1.5.0.12 Release ja (20070810)
Mozilla Firefox 1.5.0.12 Release de (20070811)
Mozilla Firefox 1.5.0.12 Release nl (20070811)
Mozilla Firefox 1.5.0.12 Release hu (20070811)
Popularity: 56% [?]
7 Aug

The Wii Remote API also allows the Web page to detect all Wii Remotes that are connected to the Wii.
This makes it possible to make Web pages interact with up to four users at the same time, a concept not normally possible with traditional JavaScript event detection.
The API is available to JavaScript running on the Web page.
如果之前有買 Wii 的人, 可能知道在 2007 年 6 月 30 日之前, 可以無料下載 瀏覽器 Opera.
現在 Opera 提供了一組 Wii Remote API, 讓網頁開發者可以更方便的利用 Wii remote 來設計以及開發程式. (應該遊戲比較多吧? :p)
當然, Opera 也作了個範例小遊戲, Demo game 在這. 這個是從那個遊戲中節錄的 Code Snippets:
if ( window.opera && opera.wiiremote ) {
//get the rotation of the Wii Remotes
wiiremote1 = opera.wiiremote.update(players[0]);
wiiremote2 = opera.wiiremote.update(players[1]);
}
利用 opera.wiiremote 這個 Opera 自己提供的 java script library 就可以使用囉! 有興趣的可以再看看 Ajaxian 這篇 The Wii Remote API: Now your userbase is four, 有比較簡單的說明.
Popularity: 33% [?]
6 Aug
I change WordPress theme to illacrimo created by Design Disease. It’s hard a little bit when using a dark color background, isn’t it?
Popularity: 30% [?]
6 Aug
What’s New
Known Issues
Mozilla Firefox 2.0.0.6 Release en_US (20070804)
Mozilla Firefox 2.0.0.6 Release zh_TW (20070804)
Mozilla Firefox 2.0.0.6 Release zh_CN (20070804)
Mozilla Firefox 2.0.0.6 Release ja (20070805)
Mozilla Firefox 2.0.0.6 Release de (20070805)
Mozilla Firefox 2.0.0.6 Release nl (20070805)
Mozilla Firefox 2.0.0.6 Release hu (20070805)
Popularity: 55% [?]