網頁標準推的是 Semantic Markup ,也就是在你裝飾你的網頁前,應該先搞好網頁的結構,做好規劃工作。不過,很多人在開始寫網頁時,也只是打開 WYSIWYG 的編輯器,邊想要加什麼就加什麼。因為 WYSIWYG 所以在 Code level 是否 Semantic 對於用家來說根本看不見,
痛到想死
話說落雨落到狗屎咁既朝早十點幾,我如常返工,o係出lift既時候,濕淋淋既地板令我腳底一滑,好一隻右腳腳指公踢左埋lift門邊
Putting a pleasant Python surprise to use
Although I've been programming in Python for a few years now, it keepssurprising me with little bits and pieces. Here's a neat Python languagefeature that I recently used for the first time (discovered originallythrough Bram Cohen's LiveJournal).
A common programming pattern is 'search for a something to work on, butstop if you don't find anything'. In Python one might write it somethinglike this (taken more or less from DWiki 's source):
found = False
Pitfalls in generating Last-Modified:
Every HTTP reply from a web server can include a Last-Modified: header, which theoretically tells interested parties when the web pagewas last modified. This is really something that works best when theweb server is just sending out static files; when it is generatingdynamic content, like DWiki does, things get interesting.
The major use of Last-Modified: is to decide when a browser already hasa current copy of the web page and doesn't need to fetch it again. Thus,with dynamic pages
廣告兩則
I can't stop my tears
每次看到雨絲,看到雨點打在玻璃窗上,總會莫名其妙的想哭。
中午時獨自一人在辦公室吃午餐,看著窗外灰暗的天,忽爾整顆心都好像掉落了,覺得好寂寞好寂寞。
然後聽到滴嗒滴嗒的聲音,我以為是一雙手按
再見,謝謝你的魚
剛剛看完《星際快閃黨 The Hitchhiker’s Guide to the Galaxy 》,玩轉銀河系,相當痛快!影片開頭有一首歌,講述在地球第二等智慧生物海豚 (人類只是第三等) ,不斷向人類發出地球即將被毀滅而徒勞無功,唯有向人類講聲道別: So long and thanks for all
Why a Blog?
Honesty compels me to admit that part of why I am trying blogging isthat I coded a bunch of blog features into DWiki , my wiki-thing, and Iwould feel kind of stupid if they never got used. (The blogdir codehas a clear usage case, but the blog code does not quite so much.)
But that's not all of it. Web pages cry out for a linking structure,an organization, a taxonomy, just like we are supposed to sensiblyorganize directories on our computers
Making a Python mountain out of a molehill
DWiki is the software that runs CSpace , including this blog . It'swound up much bigger than I expected and wanted it to be. This is sortof the story of how (or why) that happened.
DWiki started out with a simple goal: serve up (revision controlled)wiki-text documentation as HTML pages. It didn't have to edit thepages; we'd do that in a real editor in a real environment. The coreprogram model was simple: pages would be generated