pigfoot’s weblog

We should forget about small efficiencies — Donald Knuth

Archive for August, 2007

今天更新 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% [?]

  • 2 Comments
  • Filed under: Gentoo, IT, Linux, Unix
  • Niagara 2

    上個禮拜, 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% [?]

  • 0 Comments
  • Filed under: IT, Sun
  • Get Firefox!

    What’s New

    Known Issues

    • Although Firefox 1.5.0.x is more efficient than Firefox 2, according to Firefox 1.5.0.12 official release notes, 1.5.0.x had been maintained with security and stability updates until June 2007. All users are strongly encouraged to upgrade to Firefox 2
    • Cannot support native firefox extension of FreeDownloadManager. Please use flashgot instead.

    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)

    1. my vs7.1-release patch
    2. my tweaks profile patch
    3. Adobe Flash Player (9.0.47.0)
    4. Speed improvement by using tete’s Optimized CRT DLL
    5. Used branding artwork by JairoB
    6. UAO of zh_TW.Big5 Unicode Fix
    7. P0/P1/P2/P3 all build with VC7.1
    8. P0 build build with /GAL7 arch:SSE and mmoy’s SSE patches, for Athlon XP, and Duron 1.1 GHz+
    9. P1 build build with /GAL6 and mmoy’s MMX patches, for Generic CPU
    10. P2 build build with /GAL6 arch:SSE and mmoy’s SSE patches, for Pentium III ,Celeron 500+
    11. P3 build build with /GAL7 arch:SSE2 and mmoy’s SSE2 patches, for AMD Athlon 64, AMD Sempron, Pentium D, Pentium M, Pentium 4 and Celeron 1.7 GHz+

    Popularity: 56% [?]

  • 1 Comment
  • Filed under: Gecko, IT
  • The Wii Remote API of Opera

    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% [?]

  • 0 Comments
  • Filed under: IT, Web, What's New
  • WP_illacrimo_Theme

    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% [?]

  • 0 Comments
  • Filed under: Life, Talk
  • Get Firefox!

    What’s New

    Known Issues

    • Extensions installed under Firefox 1.5 may be incompatible and/or require updates to work with Firefox 2. You can try to use Nightly Tester Tools Lite to force the installations of incompatible extensions.
    • Cannot support native firefox extension of FreeDownloadManager. Please use flashgot instead.

    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)

    1. my vs7.1-release patch
    2. my tweaks profile patch
    3. Adobe Flash Player (9.0.47.0)
    4. Support Mozilla Update Channel since Firefox 2.0.0.6
    5. Speed improvement by using tete’s Optimized CRT DLL
    6. Used branding artwork by JairoB
    7. UAO of zh_TW.Big5 Unicode Fix
    8. P0/P1/P2/P3 all build with VC7.1
    9. P0 build build with /GAL7 arch:SSE and mmoy’s SSE patches, for Athlon XP, and Duron 1.1 GHz+
    10. P1 build build with /GAL6 and mmoy’s MMX patches, for Generic CPU
    11. P2 build build with /GAL6 arch:SSE and mmoy’s SSE patches, for Pentium III ,Celeron 500+
    12. P3 build build with /GAL7 arch:SSE2 and mmoy’s SSE2 patches, for AMD Athlon 64, AMD Sempron, Pentium D, Pentium M, Pentium 4 and Celeron 1.7 GHz+

    Popularity: 55% [?]

  • 10 Comments
  • Filed under: Gecko, IT