MySinaBlog 的 RSS 圖片問題又引來 一 些 聲 音 ,因此我快速地將原本用在 Google Reader 的 取全文 Greasemonkey Scripts Port 了一個 Bloglines 版本:
用法差不多,在 Bloglines 的內容版面上,按 “j” 會將文章 highlight,然後再按 “g” 就能取得全文。現時支持: hk yahoo blog, my sina blog,
In an aside in a recent entry , I wrote:
With sufficient cleverness, you can construct a version of
capture()that is passedstore's name and puts the result in it directly,without needing you to make it an array and usestore[0].
I'm wrong. In Python, no outside power can change a function's localvariables (more precisely, no outside power can change the namebindings , doing the equivalent of ' localvar =something '). While you can
First I'll show you the symptoms, then I'll explain what I did to shootmyself in the foot:
# zpool create tank01 c0t38d0# zpool create tank02 c0t39d0# zpool replace tank01 c0t38d0 c0t42d0
(Time passes, the resilver finishes, and zpool status tank01 shows nouse of c0t38d0.)
# zpool attach
There's a lot of times where a function wants to return more than aplain boolean; for example, validation routines often want to returnsome sort of explanation of the validation error (if there is one).At the same time, the most natural way to use the function is oftenin the flow of a conditional:
if blah(o): ....elif not validates(o): # whoops, lost the error reason
There's a variety of traditional answers to this,
MySinaBlog 的 RSS 圖片問題又引來 一 些 聲 音 ,因此我快速地將原本用在 Google Reader 的 取全文 Greasemonkey Scripts Port 了一個 Bloglines 版本:
用法差不多,在 Bloglines 的內容版面上,按 “j” 會將文章 highlight,然後再按 “g” 就能取得全文。現時支持: hk yahoo blog, my sina blog,