Obtained the authorization from HKO


Today, received the authorization from HKO on reproduce/re-disseminate their weather information.

In addition, HKO also provided a detailed documentation on how their information is organized in the HTML files, such that programmer can collect the information accurately. Those information is ver...

Continue reading...
HKWW

Day 3 : 經已完成 並進入測試


上圖為在 EeePC 701 上 FireFox 2.0.0.11 運行的 Screen-shot


除此以外還在以下系統上成功運行:
  • Ubuntu 8.04 LTS + FireFox 3.0
  • Windows XP + FireFox 3.0
  • Windows XP + FireFox 2.0.0.15

近日天氣這麼不穩定, 相信會是測試的好時候。



昨日提及的 XPCOM Service 原來比想像中容易得多。
其一,有 JavaScript Component Wizard 幫忙。
其二 是這個 XPCOM Service 只會給 HKWW 做定時下載的工作,
只是 F...
Continue reading...
HKWW

Day 2 : 已經能運作, 但有幾個問題要解決


今天天文台發出雷暴警告, HKWW  已能成功顯示。
基本的流程和 function 都可以算是已經完成, 但有幾個問題須要解決。

一) 用 Extension Wizard 的 build.sh 所 compile 出來的 .xpi 不能運作

原因似乎是 build.sh compile 出來的 .xpi 和 chrome.manifest 所描述的不同。
在 chrome.manifest 中, content locale 和 skin 都是 plain directory 來 access,
但在 .xpi 中, 它們都是包含在 .jar 中。

因為仍在開發中, 所...

Continue reading...
HKWW

Day 1 : 不消一天已初步成形



真的要多謝 Extension Wizard 的幫助, 使得像我這些新手馬上就能架起基本的框架展開工作。



今天的目標是在 Status-bar 中能顯示圗示和用 XMLHttpRequest 從天文台取得現正生效的警告。
MDC 中的技術文件都頗為詳細, 所以沒有什麼大的問題。


首先要在 status-bar 中加入 HKWW 自己的 statusbarpanel
然後在 statusbarpanel 中加入 image 便能顯示圗示。



既然這麼容易, 就即刻試一試:


由於縮圖關係, 效果未如理想。 所以我用...

Continue reading...
HKWW