A quick outline of Firefox extension structure

Yesterday I mentioned Firefox extensions inpassing. Let's fill in the blanks.

Firefox extensions come as .xpi files, which are just yet anotherextension for ZIP archives. Unpacked, extensions live in their owndirectory in the extensions/ subdirectory in your Firefox profiledirectory. Firefox profile directories live under ~/.mozilla/firefox ; the default profile is in .default .(Firefox randomizes the name of the profile directory, I believe dueto security concerns.)

The actual name of an extension


搞錯了

有些事情令人啼笑皆非。例如,一個人在闡釋自己某些處於特定前提下產生的個別感覺時,不但表現出一種樣板性,同時還不幸表現出,該位人士自己完全不能聽懂對方在說什麼。

(所謂樣板性,在這裡是這個意思:例如,見人

How to fiddle with Firefox .jar files relatively easily

A lot of Firefox's code is actually written in various interpretedlanguages, especially JavaScript, and Firefox extensions are prettymuch all interpreted. This means that you can do a lot of Firefox andextension hacking without ever having to rebuild from source; you justzap the interpreted files in place in your installed copy.

Firefox doesn't leave all of these files sitting around for you toedit; it bundles them up in various .jar files (pretty much all inthe chrome/ subdirectory). Fortunately .jar


20051122網摘 – Structured Blogging

Google

Blogging


Mario 音樂大雜燴

mario

我們這一代,細細個開始玩孖寶兄弟,現在大大個了就玩孖寶音樂:


自由格式和 Structured Blogging

structuredblogging

Google Base 引來人們無限想像,究竟這些「自由格式」可以怎樣用呢?如果有看近期的技術文章的話,就會見有人將 Google Base MicroFormats 做一個聯想,然後再聯繫到 語意網 Semantic Web 上去,潛力無窮無盡。但對於一般人來說,實在很難明白, Google Base 現在有


Why I don't write 'if (NULL == foo)' in C code

One of the infamous trivial bugs in C code is accidentally writing' = ' instead of ' == ' in conditional expressions; you get assignmentinstead of equality checking. One common piece of advice for avoidingthis is to reverse the order of the check, putting the constant first.This way, if you accidentally write ' NULL = foo ' instead of the == version, you'll get a compile time error.

I can't stand to write this version, because it looks wrong to me.


向肥腩宣戰!

腩!

由於身形日久失修,又缺少運動,肚上的肥肉越長越大,形成一個肥美的腩。

相比起其他人,我的腩其實不算嚴重,至少在外觀上不太「凸」出。但有苦自己知,當你平常穿的褲子開始勒住肚皮,就知道已經到了警界線。我


20051120網摘 – 咪咪

文化

  • 再談福娃 一場誤會,全因資訊誤傳,只有看沒有想
  • 免費人體奧妙展 Quote: 陳列於全港九新界各便利店、報攤的八卦雜誌封面,尤其近期那些,不堪入目之程度簡直已與咸書無異
  • 咪咪 林志玲殺死男人的疊字

IT 技術


Weekly spam summary on November 19th, 2005

Once again, I'm leading with Hotmail's stats to highlight their spam problem :

  • three email messages accepted.
  • 320 messages refused because they came from non-Hotmailemail addresses.
  • 22 messages refused because their sender addresses had already hitour spamtraps.
  • 21 messages refused due to their originating IP address (17 in theSBL, two in the CBL, one in the XBL, one because it's fromGilat-Satcom).

Gilat-Satcom is a serious problem here; it