<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atomfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://purl.org/atom/ns#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="0.3" xml:lang="en"><title>Clement in a Nutshell</title><link rel="alternate" type="text/html" href="http://chiunam.net" /><link rel="start" type="application/atom+xml" href="http://feeds.feedburner.com/chiunam" /><tagline type="text/html" mode="escaped">Every little thing counts</tagline><modified>1970-01-01T00:00:00+00:00</modified><generator>http://wordpress.org/?v=2.6.1</generator><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/chiunam" /><feedburner:info uri="chiunam" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><link rel="icon" href="http://chiunam.net/images/logo.png" type="image/png" title="Clement in a Nutshell" /><feedburner:emailServiceId>chiunam</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/chiunam" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fchiunam" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:browserFriendly>This is an XML content feed. It is intended to be viewed in a newsreader or syndicated to another site, subject to copyright and fair use.</feedburner:browserFriendly><entry><title>Default zoom level in Safari</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/RFq_uLq3Whs/125" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">We Blog!</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">accessibility</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">osx</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">safari</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">userstyle</dc:subject><author><name>Clement T</name></author><issued>2009-08-03T07:59:23-07:00</issued><modified>2009-08-03T07:59:23-07:00</modified><id>http://chiunam.net/?p=125</id><summary type="text/html" mode="escaped">話說吾妻給我不停慫恿下終購入 MacBook Pro，Switch 的過程也很順利，唯獨 MBP 熒幕太靚，resolution 太高，變相字體縮小很多，看得很不舒服，又其 Safari 看網頁例必要按幾次 Command + 才可 zoom 至適合大小，實在太費時失事也。</summary><content type="text/html" mode="escaped">&lt;p&gt;整年沒更新，一來懶，二來沒甚麼寫，要寫都傾向書於 Facebook、Twitter 等微博，簡單快趣。當然有一直留意 Web Development 的近期發展，對於近期火紅的 HTML5 、CSS3 @font-face 或&lt;a href="http://www.zeldman.com/2009/07/02/xhtml-wtf/" class="external"&gt;胎死腹中的 XHTML 2.0&lt;/a&gt; 都想說一點，但感覺實在太 remote，我還是比較著眼於解決當前問題。&lt;/p&gt;
&lt;p&gt;說完廢話一大堆，就要說說切身的當前的問題。話說吾妻給我不停慫恿下終購入 MacBook Pro，Switch 的過程也很順利，唯獨 MBP 熒幕太靚，resolution 太高，變相字體縮小很多，看得很不舒服，又其 Safari 看網頁例必要按幾次 Command + 才可 zoom 至適合大小，實在太費時失事也。&lt;/p&gt;
&lt;p&gt;Firefox 有幾個 Add-on 可以設定 default zoom level，可惜 Safari 沒有類似的 plugin，但其實 Safari 有一個常被遺忘的 feature，可以輕鬆搞定這問題：就是 Userstyle。&lt;/p&gt;
&lt;p&gt;方法非常簡單，先建立一個 CSS 檔，例如叫 &lt;a href="http://files.getdropbox.com/u/167481/Userstyles/userstyle.css" class="external"&gt;userstyle.css&lt;/a&gt;，內容只有一句：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;code lang="css"&gt;body{zoom:1.25}&lt;/code&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;1.25 是根據 1280:1024 這個比例計出來&lt;sup&gt;1&lt;/sup&gt; ，可以隨喜好更改，再到 Safari 的 Preferences &gt; Advanced，在 style sheet 一欄選剛建立的檔&amp;#8230;&lt;br /&gt;
&lt;a href="http://chiunam.net/wp-content/uploads/2009/08/userstyle.png" &gt;&lt;img src="http://chiunam.net/wp-content/uploads/2009/08/userstyle.png" alt="" title="在 Preference 設定 userstyle" width="499" height="338" class="aligncenter size-full wp-image-122" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Boom! 就是這麼簡單！所有網頁即時放大至熒幕闊度，我等開始老眼昏花的人不需要再受細字之苦！瀏覽器佔盡畫面闊度亦配合一般 Switcher 的期望，一舉兩得也。&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;/p&gt;&lt;ol class="footnotes"&gt;&lt;li id="footnote_0_125" class="footnote"&gt;1280 是 MBP 的 screen width，1024 則是現在大多網頁的闊度&lt;/li&gt;&lt;/ol&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=RFq_uLq3Whs:qhSm7IqpGkU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=RFq_uLq3Whs:qhSm7IqpGkU:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=RFq_uLq3Whs:qhSm7IqpGkU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=RFq_uLq3Whs:qhSm7IqpGkU:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=RFq_uLq3Whs:qhSm7IqpGkU:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=RFq_uLq3Whs:qhSm7IqpGkU:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=RFq_uLq3Whs:qhSm7IqpGkU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/125/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/125</feedburner:origLink></entry><entry><title>Google Chrome - 改變未來的瀏覽器？</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/pRNtP-PJCpI/105" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-standards</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">網絡見聞</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">browser</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">chrome</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">google</dc:subject><author><name>Clement T</name></author><issued>2008-09-02T08:35:39-07:00</issued><modified>2008-09-02T08:35:39-07:00</modified><id>http://chiunam.net/?p=105</id><summary type="text/html" mode="escaped">今天最多人談論的科技話題，想必是 &lt;a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html"&gt;Google Chrome&lt;/a&gt;，Google 發佈自家瀏覽器，想必是籍著優化她一系列網上服務的優勢去搶攻瀏覽器市場吧，就有如自前 Apple 發佈 Windows Safari 及 Mobile Safari 的道理一樣。</summary><content type="text/html" mode="escaped">&lt;p&gt;&lt;a href="http://chiunam.net/wp-content/images/google_chrome_screenshot.jpg" title="" onclick="pp_image_popup('http://chiunam.net/wp-content/images/google_chrome_screenshot.jpg',440,359,''); return false;"&gt;&lt;img src="http://chiunam.net/wp-content/images/google_chrome_screenshot.jpg" class="centered noframe" alt="" width="440" height="359" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;今天最多人談論的科技話題，想必是 &lt;a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html" class="external"&gt;Google Chrome&lt;/a&gt;，Google 發佈自家瀏覽器，想必是籍著優化她一系列網上服務的優勢去搶攻瀏覽器市場吧，就有如自前 Apple 發佈 Windows Safari 及 Mobile Safari 的道理一樣。&lt;/p&gt;
&lt;p&gt;太多人談 Chrome 的技術，我也不說了，自行看其他 blog 或她的&lt;a href="http://www.google.com/googlebooks/chrome/" class="external"&gt;漫畫解說&lt;/a&gt;已有個明白，我只想反駁一點，她對 Web Development 可能有的負面影響。&lt;/p&gt;
&lt;p&gt;有人說 Chrome 會對 Web Development 帶來災難，全因支援 Webkit 的網站實在太少，萬一 Chrome 搶灘成功，很多網站也要重寫。這說法不無道理，可惜十分之鴕鳥心態。不要說 Webkit，在香港，我想還有不少 IE6 Only 的網站，可能 IE8 正式推出時也不能正確使用，更莫說其他平台。我認為一個 Developer，眼光應看闊一點，不要局限一切於自我封閉的技術&lt;sup&gt;1&lt;/sup&gt;&lt;sup&gt;2&lt;/sup&gt;。世界很大，瀏覽器不只 IE；作業器統不只 Windows；Programming Language 不只 Java；Database 不只 Oracle。何況現在四大瀏覽器陣營 (IE, FF, Webkit, Opera) 也朝著網頁標準走，著眼製作遵循網頁標準的網站，不就是一個很好的治本方法？&lt;/p&gt;
&lt;p&gt;世界不同，百花齊放本就是互聯網的本質，封閉自己活在自己眼中世界，只會裏足不前，技術落後之餘，得不到尊重是理所當然的。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;延伸閱讀&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.tinyau.net/archives/2008/09/02/google-will-release-google-chrome-tomorrow" class="external"&gt;Google 將推出 Google Chrome @ 天佑的自由天地&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://jacky.seezone.net/2008/09/02/2090/" class="external"&gt;瀏覽器之戰新成員 Google Chrome - 網絡暴民 Jacky&amp;#8217;s Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://ejohn.org/blog/google-chrome-process-manager/" class="external"&gt;John Resig - Google Chrome Process Manager&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;/p&gt;&lt;ol class="footnotes"&gt;&lt;li id="footnote_0_105" class="footnote"&gt;看著 Chrome 的解說漫畫，對 Google 的 Developer 又欣賞又羡慕，既可堅持自己的理念，又可各自表達不同意見，在香港，有幾個 Developer 得到應有的尊重？&lt;/li&gt;&lt;li id="footnote_1_105" class="footnote"&gt;我最愛漫畫中一句 &amp;#8220;I don&amp;#8217;t care if there&amp;#8217;s one fewer cool feature. I just want this product to be ROCK SOLID.&amp;#8221; 有幾多 Developer 會抱住如此先做好本份的心態？一個好的 product，應先從基本著手，耍花巧是本末倒置。&lt;/li&gt;&lt;/ol&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=pRNtP-PJCpI:EcztSZnwr5c:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=pRNtP-PJCpI:EcztSZnwr5c:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=pRNtP-PJCpI:EcztSZnwr5c:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=pRNtP-PJCpI:EcztSZnwr5c:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=pRNtP-PJCpI:EcztSZnwr5c:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=pRNtP-PJCpI:EcztSZnwr5c:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=pRNtP-PJCpI:EcztSZnwr5c:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/105/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/105</feedburner:origLink></entry><entry><title>GC!J 更新</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/ebbUqWUHG8w/98" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">技術交流</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">atnext</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">greasemonkey</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">javascript</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">user-scripts</dc:subject><author><name>Clement T</name></author><issued>2008-08-21T22:00:53-07:00</issued><modified>2008-08-21T22:00:53-07:00</modified><id>http://chiunam.net/?p=98</id><summary type="text/html" mode="escaped">原來 &lt;a href="http://chiunam.net/blog/archives/91"&gt;GC!J&lt;/a&gt; 已有一年歷史，最近和&lt;a href="http://blog.tiney.com/"&gt;電鋸&lt;/a&gt;商議後轉到 &lt;a href="http://code.google.com/p/gcj/"&gt;google code&lt;/a&gt;，方便管理，亦歡迎任何人提意見或參與維護。</summary><content type="text/html" mode="escaped">&lt;p&gt;原來 &lt;a href="http://chiunam.net/blog/archives/91" class="internal"&gt;GC!J&lt;/a&gt; 已有一年歷史，最近和&lt;a href="http://blog.tiney.com/" class="external"&gt;電鋸&lt;/a&gt;商議後轉到 &lt;a href="http://code.google.com/p/gcj/" class="external"&gt;google code&lt;/a&gt;，方便管理，亦歡迎任何人提意見或參與維護。&lt;/p&gt;
&lt;p&gt;趁今日打風有空，我更新了 GC!J 到 0.3b，把那些字碼存放到另一個 JS 檔再用 XHR 擷取，有新字碼時就不需要重新安裝整個 User Script，容易管理得多。&lt;/p&gt;
&lt;p&gt;不知 GC!J 為何啥的我就再說一下吧：&lt;br /&gt;
GC!J 是一個 &lt;a href="http://en.wikipedia.org/wiki/Greasemonkey" class="wikipedia"&gt;Greasemonkey&lt;/a&gt; user script，它主要把&lt;a href="http://atnext.com/" class="external"&gt;壹傳媒&lt;/a&gt; 那些圖像香港字轉為實在的文字，並把中文字間的空格移除，方便用家轉貼新聞。若想保留中文字間空格，可按 Firefox 的 Tools -&gt; Greasemonkey -&gt; User Script Commands -&gt; Toogle Chinese Spaces。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;安裝&lt;/strong&gt;&lt;br /&gt;
GC!J 0.3b 需要 &lt;a href="http://www.getfirefox.com" class="external"&gt;Firefox 3.0&lt;/a&gt; 或以上&lt;sup&gt;1&lt;/sup&gt; 及 &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/748" class="external"&gt;Greasemonkey&lt;/a&gt;。安裝 Greasemonkey 後到 &lt;a href="http://code.google.com/p/gcj/" class="external"&gt;GC!J&lt;/a&gt; project home page 按 Installation 下的連結就，再 reload atnext.com 就可看到效果。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Know Issues&lt;/strong&gt;&lt;br /&gt;
蘋果動新聞的圖片說明因為會不停轉換，文字會再被轉回圖像。&lt;sup&gt;2&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;若有意見歡迎留言，發現 bug 的話亦請留言相告，謝謝。&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;/p&gt;&lt;ol class="footnotes"&gt;&lt;li id="footnote_0_98" class="footnote"&gt;因為用到 native 的 getElementsByClassName&lt;/li&gt;&lt;li id="footnote_1_98" class="footnote"&gt;這個走馬燈式的圖片轉換方法真的好 Web 1.0，既不 accessible 亦不 user friendly，其實整個動新聞網真的 &amp;#8220;動&amp;#8221; 過籠，版面亦怪怪的。&lt;/li&gt;&lt;/ol&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ebbUqWUHG8w:gO1X5gpDR0U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ebbUqWUHG8w:gO1X5gpDR0U:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ebbUqWUHG8w:gO1X5gpDR0U:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ebbUqWUHG8w:gO1X5gpDR0U:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=ebbUqWUHG8w:gO1X5gpDR0U:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ebbUqWUHG8w:gO1X5gpDR0U:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ebbUqWUHG8w:gO1X5gpDR0U:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/98/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/98</feedburner:origLink></entry><entry><title>盡職</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/ZW9TqrfX3TA/97" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">網絡見聞</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">security</dc:subject><author><name>Clement T</name></author><issued>2008-05-29T04:53:49-07:00</issued><modified>2008-05-29T04:53:49-07:00</modified><id>http://chiunam.net/?p=97</id><summary type="text/html" mode="escaped">近日很多資訊保安事故不斷被揭出，最令人驚嘆的莫過於入境處及警隊的內部資料竟然可以輕易外洩。而我今早亦無意發現本地某大銀行的一個網上服務，其中一個用作測試的網站竟然中門大開，任人瀏覽。</summary><content type="text/html" mode="escaped">&lt;p&gt;近日很多資訊保安事故不斷被揭出，最令人驚嘆的莫過於入境處及警隊的內部資料竟然可以輕易外洩。我今早亦無意發現本地某大銀行的一個網上服務，其中一個用作測試的網站竟然中門大開，任人瀏覽，系統的設定，源碼以及一些登入戶口及密碼可以隨意下載，簡直豈有此理。&lt;/p&gt;
&lt;p&gt;我已電郵那間銀行，要求她們盡快跟進，並調查有否洩露客戶資料。不過由此例子可見，被揭出的保安事故極可能只是冰山一角，相信有很多只是沒人發現沒報導出來而已。&lt;/p&gt;
&lt;p&gt;資訊外洩事故，一定是人為疏忽。然而資訊科技業界都會犯的錯誤，要那些沒太多電腦知識的用家去避免確實有點困難 &lt;sup&gt;1&lt;/sup&gt;。但最令我氣結的是商經局局長馬時亨說成這是用家不理資訊保安政策的後果，期圖把責任推給用家。&lt;/p&gt;
&lt;p&gt;資訊保安政策當然要有，但只有它並不足夠。在資訊保安範疇，盡職 (Due Diligence) 才是重點&lt;sup&gt;2&lt;/sup&gt;。所謂盡職，就是要把已訂立的政策，&lt;strong&gt;有紀律地&lt;/strong&gt;透過負責任行為去執行訂立的管理常規。盡職是所有人的責任，負責資訊保安者尤甚，他應嚴謹對待每個處理資訊的步驟，亦要確保其管輆範圍內的程序有否違規，才可避免當中有任何狀況。現在很多的情況是，硬件不夠，軟件又陽春。用家保安意識薄弱之餘，指引不足，保安執行力不夠，幾環弱點加起來，不出事才怪。&lt;/p&gt;
&lt;p&gt;各個機構現在最需要做的，是檢討一下機構裡的資訊保安，在政策，教育，執行上花多些功夫，全面檢討有否潛在危機，包括防止一切資訊帶離工作間。不要單純靠用家自律，這顯然是不會有效的。&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;/p&gt;&lt;ol class="footnotes"&gt;&lt;li id="footnote_0_97" class="footnote"&gt;這說法其實有點說不過，資訊保安不止是業界從業員的責任，其實是整個機構的責任&lt;/li&gt;&lt;li id="footnote_1_97" class="footnote"&gt;這是 CISSP (一個資訊保安認證考試) 第一課所說的。&lt;/li&gt;&lt;/ol&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ZW9TqrfX3TA:ZVuojptC6CE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ZW9TqrfX3TA:ZVuojptC6CE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ZW9TqrfX3TA:ZVuojptC6CE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ZW9TqrfX3TA:ZVuojptC6CE:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=ZW9TqrfX3TA:ZVuojptC6CE:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ZW9TqrfX3TA:ZVuojptC6CE:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=ZW9TqrfX3TA:ZVuojptC6CE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/97/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/97</feedburner:origLink></entry><entry><title>網站裸跑 08</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/hii0yZu3NRg/96" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-standards</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">css-naked-day</dc:subject><author><name>Clement T</name></author><issued>2008-04-08T05:58:50-07:00</issued><modified>2008-04-08T05:58:50-07:00</modified><id>http://chiunam.net/?p=96</id><summary type="text/html" mode="escaped">&lt;a href="http://naked.dustindiaz.com/"&gt;CSS Naked Day&lt;/a&gt; 今年已經第三屆，前兩年都忘了，幸好今年改遲一點，令我夠時間加上 wordpress plugin ，到時會準時脫衫，裸跑一番。</summary><content type="text/html" mode="escaped">&lt;p&gt;&lt;a href="http://naked.dustindiaz.com/" class="external"&gt;CSS Naked Day&lt;/a&gt; 今年已經第三屆，前兩年都忘了，幸好今年改遲一點，令我夠時間加上 wordpress plugin ，到時會準時脫衫，裸跑一番。&lt;/p&gt;
&lt;p&gt;不知道何為網站裸跑運動的話可看看&lt;a href="http://jacky.seezone.net/" class="external"&gt;Jacky&lt;/a&gt;的簡介：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;此運動的目的，在於推廣網頁標準，使用 Semantic Markup 和正確的結構，就算沒有 CSS，你的網站的結構內容仍然整齊不亂有意義。這也表示了，內容和表達，能夠清晰地分開。&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;延伸閱讀：&lt;br /&gt;
&lt;a href="http://jacky.seezone.net/2008/04/07/1977/" class="external"&gt;08 脫皮日&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://jacky.seezone.net/2006/04/04/1601/" class="external"&gt;預告：明天不穿衣&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=hii0yZu3NRg:1YuIaYBjOwE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=hii0yZu3NRg:1YuIaYBjOwE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=hii0yZu3NRg:1YuIaYBjOwE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=hii0yZu3NRg:1YuIaYBjOwE:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=hii0yZu3NRg:1YuIaYBjOwE:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=hii0yZu3NRg:1YuIaYBjOwE:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=hii0yZu3NRg:1YuIaYBjOwE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/96/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/96</feedburner:origLink></entry><entry><title>無障礙之都</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/GBrLeSaLbc8/95" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-standards</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">網絡見聞</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">accessibility</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-design</dc:subject><author><name>Clement T</name></author><issued>2007-12-05T20:50:16-08:00</issued><modified>2007-12-05T20:50:16-08:00</modified><id>http://chiunam.net/blog/archives/95</id><summary type="text/html" mode="escaped">昨晚看到&lt;a href="http://www.isd.gov.hk/chi/tvapi/07_dp54.html"&gt;勞福局的電視宣傳短片&lt;/a&gt;，宣揚無障礙之都，點子鮮明，清楚指出無障礙設計的重要。其實只要多留意一點，一些細微的改善已可達到無障礙設計，就如宣傳片中末的一級樓梯，只要稍為改動，已經是無障礙。</summary><content type="text/html" mode="escaped">&lt;p&gt;昨晚看到&lt;a href="http://www.isd.gov.hk/chi/tvapi/07_dp54.html" class="external"&gt;勞福局的電視宣傳短片&lt;/a&gt;，宣揚無障礙之都，點子鮮明，清楚指出無障礙設計的重要。其實只要多留意一點，一些細微的改善已可達到無障礙設計，就如宣傳片中末的一級樓梯，只要稍為改動，已經是無障礙。&lt;/p&gt;
&lt;p&gt;道路設計如是，網頁設計亦然。&lt;/p&gt;
&lt;p&gt;關於網頁無障礙，其實&lt;a href="http://www.gov.hk/tc/residents/" class="external"&gt;香港政府一站通&lt;/a&gt;已設立了一個&lt;a href="http://www.gov.hk/tc/about/accessibility/index.htm" class="external"&gt;分頁&lt;/a&gt;，宣揚無障礙瀏覽的重要，並提供一些制作無障礙網站的貼士，應是香港第一個網站有如此的社會責任，這麼看重無障礙設計吧。 雖然一站通曾被批評為一個抄襲 Y! 的分類網站，但在無障礙設計確實花了不少心思。希望其他香港網頁設計師或者網站管理人員，在搞 Web 2.0 Startup 賺錢之餘，亦會負點社會責任，顧及一些傷健人士瀏覽網頁的需要。&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=GBrLeSaLbc8:Fg51s1mI1ww:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=GBrLeSaLbc8:Fg51s1mI1ww:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=GBrLeSaLbc8:Fg51s1mI1ww:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=GBrLeSaLbc8:Fg51s1mI1ww:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=GBrLeSaLbc8:Fg51s1mI1ww:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=GBrLeSaLbc8:Fg51s1mI1ww:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=GBrLeSaLbc8:Fg51s1mI1ww:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/95/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/95</feedburner:origLink></entry><entry><title>Handheld CSS 之死</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/qp9QubQUCAU/94" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-standards</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">css</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">handheld</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-design</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-development</dc:subject><author><name>Clement T</name></author><issued>2007-11-04T21:32:40-08:00</issued><modified>2007-11-04T21:32:40-08:00</modified><id>http://chiunam.net/blog/archives/94</id><summary type="text/html" mode="escaped">隨著 handheld device 能力的提升，mobile browser 的操作及晝面顯示越來越接近 desktop PC，幾乎可以判決 handheld CSS 死刑。

眾所周知，一直以來支援 handheld CSS 的 browser 可謂廖廖可數，各款手機與 PDA 都有自己不同的 rendering engine 去呈現網頁。要把網頁設計能於這些 handheld device 顯示正確一直傷了不少網頁設計者的腦筋。</summary><content type="text/html" mode="escaped">&lt;p&gt;隨著 handheld device 能力的提升，mobile browser 的操作及晝面顯示越來越接近 desktop PC，幾乎可以說 handheld CSS 已死。&lt;/p&gt;
&lt;p&gt;眾所周知，一直以來支援 handheld CSS 的 browser 可謂廖廖可數，各款手機與 PDA 都有自己不同的 rendering engine 去呈現網頁。要把網頁設計能於這些 handheld device 顯示正確一直傷了不少網頁設計者的腦筋。 而原本用來解決問題的 handheld CSS 卻發揮不到應有的功用，原因就是我&lt;a href="http://chiunam.net/blog/archives/63" class="internal"&gt;以前提過的雞與蛋問題&lt;/a&gt;。結果，大部份網站還是要個別設立流動版，不但重覆製作，失卻網頁標準 one page, serve all 的精神；大多流動版更是原版的 trim down version，形成流動版的資訊往往殘缺不齊，是為三不像。&lt;/p&gt;
&lt;p&gt;輾轉過去，handheld CSS 的使用率仍是舊模樣，但 mobile browser 的發展卻很神速。 Mobile Safari 正藉 iPhone 及 iPod Touch 大舉攻入 mobile browsing / mobile web apps 的市場，激起網頁設計的巨浪，不少當紅網站，如 facebook、google 更對 iPhone 作出優化，情況就像替 handheld CSS 拔喉，離 handheld CSS 壽終正寢之時相信不遠。&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=qp9QubQUCAU:kbVm9VHQyg8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=qp9QubQUCAU:kbVm9VHQyg8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=qp9QubQUCAU:kbVm9VHQyg8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=qp9QubQUCAU:kbVm9VHQyg8:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=qp9QubQUCAU:kbVm9VHQyg8:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=qp9QubQUCAU:kbVm9VHQyg8:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=qp9QubQUCAU:kbVm9VHQyg8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/94/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/94</feedburner:origLink></entry><entry><title>網頁製作小貼士 (一)  選擇正確 Document Type Declaration</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/0dwC8uceVls/93" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-standards</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">技術交流</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">網頁製作小貼士</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">screencast</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">tips</dc:subject><author><name>Clement T</name></author><issued>2007-08-04T06:11:36-07:00</issued><modified>2007-08-04T06:11:36-07:00</modified><id>http://chiunam.net/blog/archives/93</id><summary type="text/html" mode="escaped">隆重登場，專講網頁標準的 screencast！

這是我加入 &lt;a href="http://ilg.webstandards.org/"&gt;WaSP ILG&lt;/a&gt; (ILG 網頁正翻新，暫時沒啥看) 後首個個人項目，目的希望透過一些網頁製作上的小貼士，令更多人了解網頁標準。
第一集先講 Doctype，立即去片！</summary><content type="text/html" mode="escaped">&lt;p&gt;隆重登場，專講網頁標準的 screencast！&lt;/p&gt;
&lt;p&gt;這是我加入 &lt;a href="http://ilg.webstandards.org/" class="external"&gt;WaSP ILG&lt;/a&gt; (ILG 網頁正翻新，暫時沒啥看) 後首個個人項目，目的希望透過一些網頁製作上的小貼士，令更多人了解網頁標準。&lt;br /&gt;
第一集先講 Doctype，立即去片！&lt;/p&gt;
&lt;div&gt;
&lt;object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/kVWkzrk5Bh0"&gt;&lt;param name="movie" value="http://www.youtube.com/v/kVWkzrk5Bh0" /&gt;&lt;/object&gt;
&lt;/div&gt;
&lt;p&gt;相關連結：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://chiunam.net/demo/doctype/sample1.htm" class="internal"&gt;片中提到的範例1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://chiunam.net/demo/doctype/sample2.htm" class="internal"&gt;片中提到的範例2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.alistapart.com/stories/doctype/" class="external"&gt;Fix Your Site With the Right DOCTYPE!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML)" class="wikipedia"&gt;Comparison of layout engines (HTML) - Wikipedia&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://hsivonen.iki.fi/doctype/" class="external"&gt;Activating the Right Layout Mode Using the Doctype Declaration&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;歡迎就節目提出意見，若有網頁製作上的問題，亦歡迎留言發問。&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=0dwC8uceVls:8A8aXucWzqs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=0dwC8uceVls:8A8aXucWzqs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=0dwC8uceVls:8A8aXucWzqs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=0dwC8uceVls:8A8aXucWzqs:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=0dwC8uceVls:8A8aXucWzqs:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=0dwC8uceVls:8A8aXucWzqs:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=0dwC8uceVls:8A8aXucWzqs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/93/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/93</feedburner:origLink></entry><entry><title>Apostrophe: 還我生存空間</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/-Qun9-HHZyE/92" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">技術交流</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">ie6</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">semantic-markup</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">web-standards</dc:subject><author><name>Clement T</name></author><issued>2007-07-25T09:51:56-07:00</issued><modified>2007-07-25T09:51:56-07:00</modified><id>http://chiunam.net/blog/archives/92</id><summary type="text/html" mode="escaped">左圖上句的 apostrophe 走樣，相信不少中文 Windows + IE6 的用家都見過，覺得很醜對吧。然而亦有不少網頁編寫人員，當遇見這個情況時...</summary><content type="text/html" mode="escaped">&lt;p&gt;&lt;a href="http://chiunam.net/wp-content/images/apostrophe_in_cie6.png" title="" onclick="pp_image_popup('http://chiunam.net/wp-content/images/apostrophe_in_cie6.png',178,77,''); return false;"&gt;&lt;img src="http://chiunam.net/wp-content/images/apostrophe_in_cie6.png" class="alignleft" alt="" width="178" height="77" /&gt;&lt;/a&gt;左圖上句的 apostrophe 走樣，相信不少中文 Windows + IE6 的用家都見過&lt;sup&gt;1&lt;/sup&gt;，覺得很醜對吧。然而亦有不少網頁編寫人員，當遇見這個情況時，十之八九是把那個 apostrophe (’) 更改為 single quote (&amp;#39;)&lt;sup&gt;2&lt;/sup&gt;，快快解決問題外，心中還暗忖那死人 MS Word 的 smart quote function，好把我鍵入的 single quote 轉為 apostrophe，待我 copy and paste 到網頁後，他媽的 IE6 卻把它當全型字顯示，微軟你玩我咩！&lt;/p&gt;
&lt;p&gt;不過我想說明，這個問題，算不上是微軟的錯，不是 IE6 的 bug，也不是 Word 「玩嘢」。事實是它們之間有點不協調；簡單點說，就是 IE6 不知道你這個 apostrophe (’) 是中文還是英文，所以會根據 Locale 設定，把它當成中文標點符號，以全型方式顯示出來。&lt;/p&gt;
&lt;p&gt;其實只要花一點小功夫，我們就可以指定整個網頁，或某一個 element 所使用的語言。HTML 中可使用 &lt;code&gt;lang&lt;/code&gt; 屬性 (XHTML 則用 &lt;code&gt;xml:lang&lt;/code&gt;)，以表示 element 中的內容是以甚麼語言撰寫，只要標示正確，瀏覽器就懂得怎樣處理。就如上圖下面的句子，在加上 &lt;code&gt;lang&lt;/code&gt; 屬性後，IE6 就懂得把 apostrophe 以英文的字型顯示出來 (可真接用 IE6 觀看&lt;a href="http://chiunam.net/demo/apostrophe.htm" class="internal"&gt;這個示範&lt;/a&gt;)。　&lt;/p&gt;
&lt;p&gt;看，多簡單吧？不過很多人都忽略了。這個實例，又可以引伸為 &lt;a href="http://en.wikipedia.org/wiki/Semantic_markup" class="wikipedia"&gt;Semantic Markup&lt;/a&gt; 的一個好處。&lt;/p&gt;
&lt;p&gt;延伸閱讀：&lt;br /&gt;
&lt;a href="http://jedi.org/blog/archives/005749.html#entry" class="external"&gt;多語環境中的網頁親和力&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.w3.org/TR/i18n-html-tech-lang/#ri20040429.092928424" class="external"&gt;Best Practice 5: Choosing between &lt;code&gt;lang&lt;/code&gt; and &lt;code&gt;xml:lang&lt;/code&gt;&lt;/a&gt;&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;/p&gt;&lt;ol class="footnotes"&gt;&lt;li id="footnote_0_92" class="footnote"&gt;其實不一定是中文 Windows，實際影響的是 Windows 的 Locale setting&lt;/li&gt;&lt;li id="footnote_1_92" class="footnote"&gt;用 single quote 當 apostrophe，在仍是 ASCII 主導的時代，這做法無可厚非，但現在 Unicode 盛行，何不用回較正確的 apostrophe？本文標題是哇眾一點，只希望大家對這個 issue 有個 full picture，不要再斬腳趾避沙蟲。&lt;/li&gt;&lt;/ol&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=-Qun9-HHZyE:2pAMTnSFuAg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=-Qun9-HHZyE:2pAMTnSFuAg:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=-Qun9-HHZyE:2pAMTnSFuAg:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=-Qun9-HHZyE:2pAMTnSFuAg:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=-Qun9-HHZyE:2pAMTnSFuAg:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=-Qun9-HHZyE:2pAMTnSFuAg:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=-Qun9-HHZyE:2pAMTnSFuAg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/92/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/92</feedburner:origLink></entry><entry><title>蘋果裡的香港字</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/chiunam/~3/MLnojo1KQuM/91" /><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">技術交流</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">chinese-computing</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">hkscs</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">php</dc:subject><dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/">user-scripts</dc:subject><author><name>Clement T</name></author><issued>2007-07-24T05:38:36-07:00</issued><modified>2007-07-24T05:38:36-07:00</modified><id>http://chiunam.net/blog/archives/91</id><summary type="text/html" mode="escaped">&lt;a href="http://blog.tiney.com/?p=1077"&gt;Chainsaw 寫 Userscript&lt;/a&gt;，我也做過，不過用的是 PHP。</summary><content type="text/html" mode="escaped">&lt;p&gt;&lt;a href="http://blog.tiney.com/?p=1077" class="external"&gt;Chainsaw 寫 Userscript&lt;/a&gt;，我也做過，不過用的是 PHP。&lt;/p&gt;
&lt;p&gt;幾年以來，我一直在用一個自己編寫的 PHP script，把生果日報的網上版「淨化」後給我在 Palm 上看。當時曾考慮像 &lt;a href="http://www.kornhill.com/pda/index.php" class="external"&gt;Kornhill&lt;/a&gt; 一樣公開使用，不過知道生果報曾出信警告提供這類服務的網民&lt;sup&gt;1&lt;/sup&gt;，所以只好「收收埋埋」獨自「享受」自己努力的成果。&lt;/p&gt;
&lt;p&gt;其實當時已有人做了相同的東西，並且開放源碼&lt;sup&gt;2&lt;/sup&gt;，不過那個 script 有一點我認為不夠貼心的，就是保留了生果報的圖像香港字，那些圖像字在 Palm 上看實在太醜樣，而且浪費 bandwidth。於是決定自己寫個 function，好替我取得內容時把那些醜樣的圖像字一一換掉為實實在在的香港字 (Big5-HKSCS)。&lt;/p&gt;
&lt;p&gt;編寫初期還以為那些十六進制的圖像字檔名是對應那個字的內碼，只要找到檔名，再 generate 那個香港字就行&lt;sup&gt;3&lt;/sup&gt;，但後來發覺那些十六進制檔名並非內碼，哪怎樣才知道它們的配對呢？思前想後還是用個蠢方法，暴力地把所有生果報的圖像字列出來，逐個逐個把其所示的香港字編成一個表，放入一個 associative array，再跑一句 preg_replace 就搞掂了。 &lt;/p&gt;
&lt;p&gt;以下是這個 function 的完成品，我還另存一個純文字檔，只列出圖像和文字的配對，大家有用請自便。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://chiunam.net/demo/fcnGif2HK.phps" class="internal"&gt;PHP Gif2HK&lt;/a&gt; (Big5 encoding)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://chiunam.net/demo/apple.txt" class="internal"&gt;生果圖像字表&lt;/a&gt; (UTF-8 encoding)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;其實，生果肯改用 UTF-8，不就更好？&lt;/p&gt;
&lt;p&gt;&lt;ins datetime="2007-07-25T03:25:19+00:00"&gt;Update: 強烈建議使用&lt;a href="http://blog.tiney.com/?p=1083" class="external"&gt;新版 GC!J&lt;/a&gt;，睇生果報順眼好多。&lt;/ins&gt;&lt;img src="http://chiunam.net/images/ct.png" alt="CT" title="Written by Clement T" class="signature" /&gt;&lt;/p&gt;
&lt;/p&gt;&lt;ol class="footnotes"&gt;&lt;li id="footnote_0_91" class="footnote"&gt;那時 Web 2.0 還未興起，大部份網站都視網站上資訊為賣錢的主要途徑，尤其本身有推出收費 PDA 頻道的生果報，會主動打擊這類 PHP。&lt;/li&gt;&lt;li id="footnote_1_91" class="footnote"&gt;源碼現在一直還流傳着，雖說曾被打壓過，但總有人繼續做的，只是較為低調而已。&lt;/li&gt;&lt;li id="footnote_2_91" class="footnote"&gt;這應是三數行 code 就辦到的事，而且一勞永逸。&lt;/li&gt;&lt;/ol&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=MLnojo1KQuM:_3u_JzDbgrc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=MLnojo1KQuM:_3u_JzDbgrc:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=MLnojo1KQuM:_3u_JzDbgrc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=MLnojo1KQuM:_3u_JzDbgrc:D7DqB2pKExk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?i=MLnojo1KQuM:_3u_JzDbgrc:D7DqB2pKExk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=MLnojo1KQuM:_3u_JzDbgrc:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/chiunam?a=MLnojo1KQuM:_3u_JzDbgrc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/chiunam?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</content><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://chiunam.net/blog/archives/91/feed</wfw:commentRss><feedburner:origLink>http://chiunam.net/blog/archives/91</feedburner:origLink></entry></feed>
