Greasemonkey xhr redirection in Firefox 3

I found that my rssget script is not working in Firefox 3 beta for some of the link. After some investigation, the cause seems to be the difference in redirection handling. In Firefox 2, when GM_xmlhttpRequest() is fired, it would follow status like 302 to do the redirection to return the correct page response to the onload function. However, in Firefox 3, the onload would receive a status like 302 and thus the script would fail.

I don’t know whether it


大眾並不存在

集體是複數,大眾不存在。有趣的是,哪些人認為大眾必然存在?

潮語告訴我們:大眾並不存在


蘇真真的《香港潮語學習字卡》正式出版發行,一如所料銷路極佳。這款字卡是一次諧擬(parody),即假扮幼童識字卡片,大字卡片、

Abusing Python frame and code objects

Suppose that you want to find the value of the first argument to thefunction that called your caller . While the inspect module documents the types involved, it doesn't really explain what the membersare; here's what I've worked out.

Start with a frame, for example from calling inspect.currentframe() to get your own frame and then backing up a couple of frames to yourcaller's caller via f_back . The values of all of the function'slocal variables are


Shrink

If the tunnel fee of the Tate's Cairn Tunnel is raised, does anyone demur? On the other hand, if the grocery product - be it yogurt, toothpaste or toilet paper - shrinks in size without change in price, does anyone make a sound? Not much - and that's a problem.

Unbeknownst to most of consumers, manufacturers around the globe have been quietly trimming the content of their packaged products to maintain their profit margins. People might read intently the price tag during shopping and complain about the

大功告成

近日我的作息時間是這樣的
六點幾起床:讀報,寫小說
九點到公司:工作
一點午飯時間:快速食飯,工作
八至九點離開公司:快速食晚飯把工作帶回家再做
十一點:再寫小說
當然我經歷過更油盡燈枯的日子
不過
我終於寫完我的小

Attribute tracing as a mixin class

Attribute tracing as a standalone class haslimits if you want to trace access to all objects of a particular class,not just a few of them; you wind up having to hunt down all the placeswhere you manufacture new instances and modify them and so on. So let'stry an attribute tracer as a mixin:

def _getname(obj):  cl = obj.__class__  return "<%s.%s>" % \         (cl.__module__,

Erhu

Listening to her erhu teacher playing the instrument, as my wife told me, always makes her look stupid as a novice.

And her teacher said, "What does it take to be an erhu player? It takes audacity, devotedness and endless hours of playing erhu." The sentence went off in my head like a Roman candle.

The teacher went on to tell my wife his story when he was young: "When I was riding the bus to and from school, I clinched the passenger pole, running my

擇偶條件part 1

從前的︰

1. 大我十年以上。
2. 給我生活費。
3. 給我零用。(生活是生活,零用是零用)
4. 替我交學費hall fee雜費。(嘩!好大貪)
5. 聽粵曲。
6. 看《紅樓夢》。
7. 有學識。(well... 學識同修養唔掛鉤)
8. 內向。

一點心意

旺角道的棋桌

把座椅還給他們
就像他們把勞苦的青春給了我們
把棋盤還給他們
就像他們把智慮的壯年給了我們
把空間還給他們
就像他們把這繁榮的根基給了我們

在旺角道和通菜街交界的天橋底,有一處三角形的橋底空地。某年,

重逢

重逢

這個drafting meeting好像開了一輩子那麼久。散會的時候已將近晚上八時,上海的夜幕急不及待地展開。Eric發揮「律政鴨」本色,拉大隊晚飯卡拉OK直落,乘機討好客人和bankers。哼,一大班男人去得了什麼地方?我推說還要處理文件,Eric