HTML5 AJAX File Upload

Update: Slides (Google Docs) (PDF, SlideShare) and the jQuery library.

下星期二我會在 Tossug 的 HTML5 讀書會講如何使用 HTML5 的各 API 製作 AJAX 檔案上傳控制項,取代 SWFUpload 或是 iframe。內容大概是以這篇文章說過的為底,加上一些新的發現,以及各個瀏覽器的比較。歡迎參加,請參考詳細資訊

Next Tuesday, I will be at Tossug, talking about how to implement AJAX File Upload using only APIs supplied by HTML5 to replace SWFUpload or the crappy iframe. The talk will base on this post with extend information on some findings, and comparison between browser platforms. Please register if your interested; information can be found here.

壹電視全視窗 bookmarklet

昨天壹電視開播,內容的部份我想要一段時間才知道是不是如他們的宣傳。

技術的部份,前端使用的是商業授權版的 JW Player,後端是用 RTSP 通訊協定實作隨選視訊和 Live 廣播。前者我也買過用在演示實驗網站,但是伺服器端沒有找到什麼 FLOSS 解決方案或是買的起的商用軟體(架的起來放在學網裡給各個學校計劃也不錯,但是架不起來orz)。

畫面比較不滿意的地方是只能用全螢幕或是畫面上的小小螢幕,而且 Flash Player 全螢幕如果失去 focus 就會消失。所以我做了一個簡單的 bookmarklet 把畫面放大到全視窗,可以把電視開到另一個視窗放到想要的任意大小。

» 壹電視全視窗

跟其他 bookmarklet 一樣,把連結拖到書籤,開壹電視網頁然後點一下即可。已知問題是切換標準/高畫質的按鈕會失效,想要看高畫質要先切換再改成全視窗。

CNNIC certificate criss: what you should do

Disclaimer: I am a Mozilla Taiwan Community contributor, however the followings are my own point of view; not the view of entire community.

中文版貼在 Mozilla Links

So, now we got bug 476766 calling Mozilla to remove CNNIC CA certs from it’s codebase, and people posted over on how to remove it manually. Personally I agreed with the objective argument in the bug, that officially CNNIC is considered innocent until proven guilty. To make my point, here is a PhotoShop MS Paint mock up for you. Please stop the nonsense in bug 476766 unless you see this:

But if you do, please immediately click [Detail…] and export the fake SSL cert. Every responsible browser vendor, include Mozilla, will remove the CNNIC Root upon this goes public, and the fake certificate would be the biggest scandal of the year to China, on the Internet.

What you should do before that

If you feel unsafe on the standard practice of browser vendors, you could disable the CA certs in your computer. Mozilla is correct on not-removing the CA certs, but for user who want to remove them themselves, I don’t think Mozilla has provided an easy tool for that. Clicking Tools – Options – Advanced – Security – Certificate Manager is just too painful. So here is an add-on I wrote which does that for you: CA Untrustworthy. Do remember that removing CNNIC CA certs will break legit CNNIC-signed websites.

For the less paranoid, Rex provided us an add-on “Cert Alert” that alerts user whenever they encountered an CNNIC-signed website. Install it, after that, when you see the alert, you could use your judgment to consider the trustworthiness of the website – you might actually find the fake SSL cert that way.