We should forget about small efficiencies — Donald Knuth
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: 34% [?]
9 Jun
BonEcho, 其實就是非官方版的 Mozilla Firefox 2.0 的 codename, 也是 nightly build 的預設的 branding name.
我原本作非官方的 build, 都不會下這個參數 –enable-official-branding, 這也和大部份的 un-official builder (e.g. tete009) 一樣. 不過我發現一件很奇妙的事, 那就是用這樣 build 出來的 Firefox, 連 Yahoo!奇摩 會很奇怪:
經過交叉測試後, 結果是 User-Agent 搞的鬼. BonEcho 送出來的 User-Agent 是:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070327 BonEcho/2.0.0.3 (pigfoot)
我用 User Agent Switcher 換成如下:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070327 Firefox/2.0.0.3 (pigfoot)
一切就正常了. 我在 2.0.0.4 作的 builds 會修掉這個 issue.
目前只能猜測是Yahoo!奇摩的 CGI 有作一些檢查吧? 有誰也會這樣的嗎? 還是只有我這樣? XD
Popularity: 35% [?]
2 Mar

Adobe to take Photoshop online, from News.com.
Hoping to get a jump on Google and other competitors, Adobe Systems plans to release a hosted version of its popular Photoshop image-editing application within six months, the company’s chief executive said Feb. 28.
Popularity: 49% [?]
26 Nov
Good web-site: Dynamic Drive CSS Library.
Here you’ll find original, practical CSS codes and examples such as CSS menus to give your site a visual boast. In addition, this site has its own RSS for subscription as well.
Popularity: 21% [?]
28 Aug
Firefox Extension Promises Private P2P, from BetaNews.
AllPeers released a beta Thursday of what it called the most ambitious Firefox extension to date, a peer-to-peer application that would allow friends and family to share files and content between one another in a private setting.
The application has been released on Firefox’s extensions Web site, and is compatible with Windows, Mac OS and Linux. The AllPeers backend uses BitTorrent in combination with what is calls a “darknet,” where the computer user will remain anonymous while transferring files.
You can get this Firefox extension on Firefox Add-Ons site or take a online tour on AllPeers official website. In addition, here is a tutorial on AllPeers.
It’s sad, however, that traffic MUST go through the AllPeers servers in the UK from user Comments on Add-Ons site.
Popularity: 19% [?]
28 Aug

FreeEnigma is Firefox extension which implements a version of GPG, and brings cryptography to webmail like Google Mail, Yahoo! Mail or Hotmail.
Popularity: 16% [?]
25 Jul
Picturing the New Spam, from digg.
The volume of the spam contains images has more than doubled since April, according to analysis by anti-spam vendor IronPort Systems. Image-based spam accounts for 21% of all spam, compared with just 1% in late 2005, IronPort says.
不過這讓我想到之前看到的消息: PWNtcha 來解讀 Blog 或是註冊網頁上常見的 CAPTCHA, 已經有相當高的辨識率. 原因就是簡單的 CAPTCHA 都是固定字型、固定位置、沒有顏色變化這類固定的規則, 所以就比較容易被識破.
而 WordPress 的 Plugin AuthImage, MovableType 的 Plugin SCode, PWNtcha 都有 100% 的偵測率. 雖說 Image Spam (aka Content Spam) 可能情況複雜點, 不過應該還是有一定規則才是.
PS: 所謂的 CAPTCHA 用例子來說最快了! 就是下面的圖片:

如果可以回答的出來是 “smwm”, 那就是通過了這個測試.
CAPTCHA 是 Carnegie Mellon University 註冊的商標, 是在資訊領域中, 用來測試使用者是真正的人, 還是自動化程式的 challenge-response 方法之一. 常見的也就是上面的例子.
Popularity: 27% [?]