<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10chinesetwfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><generator uri="http://www.habariproject.org/" version="0.7-alpha">Habari</generator><id>tag:blog.bcse.info,2010-09-03:atom/0b7d649d4e1b4b369409ea814509ecd4f65e39fe</id><title>Lvx ex Cælis</title><subtitle>虛實相歸，有無相生；寒暑相反，明晦相隨。</subtitle><updated>2010-08-30T04:34:14+08:00</updated><link rel="alternate" href="http://blog.bcse.info/" /><link rel="first" href="http://blog.bcse.info/atom/1/page/1" type="application/atom+xml" title="First Page" /><link rel="next" href="http://blog.bcse.info/atom/1/page/2" type="application/atom+xml" title="Next Page" /><link rel="last" href="http://blog.bcse.info/atom/1/page/13" type="application/atom+xml" title="Last Page" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/bcse" /><feedburner:info uri="bcse" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>23.97692</geo:lat><geo:long>121.57041</geo:long><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-nd/2.5/" /><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><logo>http://feeds.feedburner.com/~fc/bcse?bg=CCFFFF&amp;fg=444444&amp;anim=f</logo><feedburner:emailServiceId>bcse</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%2Fbcse" 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%2Fbcse" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/bcse" 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%2Fbcse" 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%2Fbcse" 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%2Fbcse" 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%2Fbcse" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><entry><title>YourMood Plugin for Habari (pre-alpha)</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/viwv3b-fS1Q/yourmood-plugin-for-habari-pre-alpha" /><link rel="edit" href="http://blog.bcse.info/yourmood-plugin-for-habari-pre-alpha/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:yourmood-plugin-for-habari-pre-alpha/1283113264</id><updated>2010-08-30T04:34:14+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-03T02:45:11+08:00</app:edited><published>2010-08-30T04:34:14+08:00</published><category term="@斷簡" /><category term="Habari" /><category term="Plugin" /><content type="html">&lt;p&gt;又一個小 Plugin，效果就是每篇文章下方的「這篇文章讓你覺得...」，中文版的心情取自 Yahoo! 奇摩新聞，而英文版的心情則參考 NBC New York。&lt;/p&gt;

&lt;div class="download"&gt;&lt;a href="https://bitbucket.org/bcse/yourmood/get/tip.tar.bz2"&gt;YourMood&lt;/a&gt; &lt;small&gt;(pre-alpha)&lt;/small&gt;&lt;/div&gt;

&lt;p&gt;這個 Plugin 的 PHP 部份比較簡單，困難的地方反而是 CSS…… XD 我的作法是把每篇文章的心情資訊分別儲存於一條 &lt;code&gt;postinfo&lt;/code&gt; 紀錄當中，起初也曾考慮過要新增一個名為 Mood 的新內容類別（Content Type），不過後來覺得以 YourMood 而言這樣子太大材小用、浪費空間。現在的這種作法也並非沒有缺點，這種作法的缺點就是不容易進行統計與分析。&lt;/p&gt;

&lt;p&gt;目前 YourＭood 的已知問題有：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;完全沒有判斷使用者是否已經投過票，只要重新整理就能再投一次。&lt;/li&gt;
&lt;li&gt;投票結果的更新我預期是要有補間動畫的，不過這樣一來就必須用 JavaScript 產生 HTML，會導致 HTML 樣板不容易自訂。&lt;/li&gt;
&lt;li&gt;缺少圖示，我實在找不到合適的圖庫……&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=viwv3b-fS1Q:-TVaTaXZ0gQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=viwv3b-fS1Q:-TVaTaXZ0gQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/viwv3b-fS1Q" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/yourmood-plugin-for-habari-pre-alpha/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/yourmood-plugin-for-habari-pre-alpha</feedburner:origLink></entry><entry><title>繁體版微軟雅黑字型 (3)</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/Lbok5N5JAWk/microsoft-yahei-traditional-6-02u" /><link rel="edit" href="http://blog.bcse.info/microsoft-yahei-traditional-6-02u/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:%E7%B9%81%E9%AB%94%E7%89%88%E5%BE%AE%E8%BB%9F%E9%9B%85%E9%BB%91%E5%AD%97%E5%9E%8B-3/1283078458</id><updated>2010-08-30T04:03:14+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-30T04:03:14+08:00</app:edited><published>2010-08-30T04:03:14+08:00</published><category term="@言語" /><category term="typeface" /><content type="html">&lt;p&gt;此更新檔的功能為將微軟雅黑字型 6.02 版（MD5: EB525DCBA67C642CFA418424F8C7DFC7）更新為繁體版，&lt;strong&gt;並加上微軟雅黑本來沒有的韓文字體&lt;/strong&gt;。原始字型檔可在 Windows 7 當中找到，這裡不提供原始字型檔，請自行取得。&lt;/p&gt;

&lt;p&gt;※ 註：微軟雅黑字型本來就包含繁體字，此更新檔是將微軟雅黑中的簡體字也取代為繁體，如此便能用繁體顯示原本為簡體的文字。如果您沒有這樣的需求，便無須使用本更新檔。&lt;/p&gt;

&lt;div class="download"&gt;&lt;a href="http://dl.dropbox.com/u/870967/msyht/msyhtu_p.exe"&gt;Microsoft YaHei Traditional Patcher&lt;/a&gt; &lt;small&gt;v6.02u&lt;/small&gt;&lt;/div&gt;

&lt;p&gt;這裡是我的&lt;a href="/chinese-simp-to-trad"&gt;中文簡繁參考對應表&lt;/a&gt;，如果對此對應表有意見者，也歡迎幫忙修改。&lt;/p&gt;

&lt;hr /&gt;

&lt;h3&gt;更新內容&lt;/h3&gt;

&lt;ol&gt;
    &lt;li&gt;
        &lt;p&gt;從 &lt;a href="http://www.microsoft.com/typography/fonts/family.aspx?FID=346"&gt;Malgun Gothic&lt;/a&gt; 中取得韓文字體，雖然字體黑度不同，但小字時並不明顯。&lt;/p&gt;
        &lt;div class="floatleft"&gt;&lt;a href="http://www.flickr.com/photos/bcse/4937038197/" title="韓文顯示效果預覽 (1)"&gt;&lt;img src="http://farm5.static.flickr.com/4081/4937038197_89b2299cfd_m.jpg" width="240" height="180" alt="韓文顯示效果預覽 (1)" /&gt;&lt;/a&gt;&lt;/div&gt;
        &lt;div&gt;&lt;a href="http://www.flickr.com/photos/bcse/4937038073/" title="韓文顯示效果預覽 (2)"&gt;&lt;img src="http://farm5.static.flickr.com/4075/4937038073_a824584269_m.jpg" width="240" height="180" alt="韓文顯示效果預覽 (2)" /&gt;&lt;/a&gt;&lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;
        &lt;p&gt;從 &lt;a href="http://www.microsoft.com/typography/fonts/family.aspx?FID=376"&gt;Meiryo UI&lt;/a&gt; 中取得縮減版數字字體，適合用於守塔、守城遊戲 XD&lt;/p&gt;
        &lt;div class="floatleft"&gt;&lt;a href="http://www.flickr.com/photos/bcse/4937625112/" title="6.02u (half-size) 在 1024×768 解析度下，最多可顯示 6 位數血量"&gt;&lt;img src="http://farm5.static.flickr.com/4074/4937625112_6229d559dd_m.jpg" width="240" height="180" alt="6.02u (half-size) 在 1024×768 解析度下，最多可顯示 6 位數血量" /&gt;&lt;/a&gt;&lt;/div&gt;
        &lt;div&gt;&lt;a href="http://www.flickr.com/photos/bcse/4937625526/" title="6.02u (third-size) 在 1024×768 解析度下，最多可顯示 8 位數血量"&gt;&lt;img src="http://farm5.static.flickr.com/4073/4937625526_00d9a1ede7_m.jpg" width="240" height="180" alt="6.02u (third-size) 在 1024×768 解析度下，最多可顯示 8 位數血量" /&gt;&lt;/a&gt;&lt;/div&gt;
        &lt;ol&gt;
            &lt;li&gt;&lt;a href="http://dl.dropbox.com/u/870967/msyht/msyhtu_h.exe"&gt;6.02u (half-size)&lt;/a&gt; （數字為 1/2 個中文字寬）&lt;/li&gt;
            &lt;li&gt;&lt;a href="http://dl.dropbox.com/u/870967/msyht/msyhtu_t.exe"&gt;6.02u (third-size)&lt;/a&gt; （數字為 1/3 個中文字寬）&lt;/li&gt;
            &lt;li&gt;&lt;a href="http://dl.dropbox.com/u/870967/msyht/msyhtu_q.exe"&gt;6.02u (quater-size)&lt;/a&gt; （數字為 1/4 個中文字寬）&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/li&gt;
&lt;/ol&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=Lbok5N5JAWk:Lh0TB83ZkCY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=Lbok5N5JAWk:Lh0TB83ZkCY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/Lbok5N5JAWk" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/microsoft-yahei-traditional-6-02u/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/microsoft-yahei-traditional-6-02u</feedburner:origLink></entry><entry><title>Binadamu Theme for Habari v1.2</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/YrDFkc5m_sg/binadamu-theme-for-habari-v12" /><link rel="edit" href="http://blog.bcse.info/binadamu-theme-for-habari-v12/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:binadamu-theme-for-habari-v12/1281979282</id><updated>2010-08-17T01:21:51+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-17T01:21:51+08:00</app:edited><published>2010-08-17T01:21:51+08:00</published><category term="@斷簡" /><category term="Habari" /><category term="Theme" /><category term="Binadamu" /><content type="html">&lt;p&gt;沒想到距離上一個 stable 版已經兩年了 @﹏@ 這次的更新主要就是支援 Habari 0.7，另外 source code 也遷移到 &lt;a href="http://bitbucket.org/bcse/binadamu/"&gt;bitbucket.org/bcse&lt;/a&gt;。&lt;/p&gt;

&lt;h4&gt;Changelog&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;支援 Habari 0.7。&lt;/li&gt;
&lt;li&gt;新增本地化支援以及正體中文語系。&lt;/li&gt;
&lt;li&gt;更多的外掛支援：Breezy Archives、Fresh Comments、TwitterLitte。&lt;/li&gt;
&lt;li&gt;Gravatar 改用 &lt;a href="http://svn.habariproject.org/habari-extras/plugins/gravatar/branches/080915-themefunction/"&gt;Template 版&lt;/a&gt;。&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="download"&gt;&lt;a href="http://bitbucket.org/bcse/binadamu/get/0.7-1.2.tar.bz2"&gt;Binadamu&lt;/a&gt; &lt;small&gt;v1.2&lt;/small&gt;&lt;/div&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=YrDFkc5m_sg:8uX8qbdkqzs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=YrDFkc5m_sg:8uX8qbdkqzs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/YrDFkc5m_sg" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/binadamu-theme-for-habari-v12/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/binadamu-theme-for-habari-v12</feedburner:origLink></entry><entry><title>Polyglot Plugin for Habari (pre-alpha)</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/ldFMajaDqbU/polyglot-plugin-for-habari-pre-alpha" /><link rel="edit" href="http://blog.bcse.info/polyglot-plugin-for-habari-pre-alpha/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:polyglot-plugin-for-habari-pre-alpha/1281473601</id><updated>2010-08-11T05:15:51+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-22T02:21:16+08:00</app:edited><published>2010-08-11T05:15:48+08:00</published><category term="@斷簡" /><category term="Habari" /><category term="Plugin" /><content type="html">&lt;div class="floatright"&gt;&lt;a href="http://www.flickr.com/photos/bcse/4879796651/" title="polyglot by BCSEEATI, on Flickr"&gt;&lt;img src="http://farm5.static.flickr.com/4143/4879796651_48a2ddcc4e.jpg" width="243" height="281" alt="polyglot" /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;寫了個小 plugin，對於偶爾會寫多國語言版本文章的 blog 來說相當實用。&lt;/p&gt;

&lt;p&gt;目前是採用這樣的 formatting:&lt;/p&gt;

&lt;pre class="prettyprint"&gt;&lt;code&gt;&amp;lt;x:polyglot lang="zh-tw"&amp;gt;
    正體中文文章。
&amp;lt;/x:polyglot&amp;gt;
 
---
 
&amp;lt;x:polyglot lang="en"&amp;gt;
    English entry.
&amp;lt;/x:polyglot&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;x:polyglot /&amp;gt;&lt;/code&gt; 是自定義標籤，因為如果用既有標籤的話 Regular Expression 會不好處理巢狀標籤的問題…… 目前後台的 UI 還沒處理，要自己輸入這些特殊標籤。&lt;/p&gt;

&lt;p&gt;第一個語言版本會被視為預設語言版本，如果文章中沒有出現 &lt;code&gt;&amp;lt;x:polyglot /&amp;gt;&lt;/code&gt; 標籤，Polyglot 就不會被執行。但如果有的話，&lt;code&gt;&amp;lt;x:polyglot /&amp;gt;&lt;/code&gt; 以外的文字都會被忽略，可以用來寫註解或畫分隔線。&lt;/p&gt;

&lt;p&gt;目前在 Feed 方面的處理是一律忽略 &lt;code&gt;&amp;lt;x:polyglot /&amp;gt;&lt;/code&gt;，所以在 Feed 裡面會一次看到各國語言版本的文章。&lt;/p&gt;

&lt;div class="download"&gt;&lt;a href="https://bitbucket.org/bcse/polyglot/get/tip.tar.bz2"&gt;Polyglot&lt;/a&gt; &lt;small&gt;(pre-alpha)&lt;/small&gt;&lt;/div&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=ldFMajaDqbU:ZKR2oIfR7po:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=ldFMajaDqbU:ZKR2oIfR7po:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/ldFMajaDqbU" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/polyglot-plugin-for-habari-pre-alpha/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/polyglot-plugin-for-habari-pre-alpha</feedburner:origLink></entry><entry><title>Mercurial 使用感想</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/iWh-3luKOAc/thoughts-on-mercurial" /><link rel="edit" href="http://blog.bcse.info/thoughts-on-mercurial/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:mercurial-%E4%BD%BF%E7%94%A8%E6%84%9F%E6%83%B3/1281253995</id><updated>2010-08-08T16:06:14+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-09T02:01:11+08:00</app:edited><published>2010-08-08T16:06:14+08:00</published><category term="@言語" /><category term="SCM" /><category term="Mercurial" /><content type="html">&lt;p&gt;自從我開始使用 &lt;a href="http://mercurial.selenic.com/"&gt;Mercurial&lt;/a&gt; 已經有一個月了，現在突然有股衝動想要把舊的 Subversion 上的 projects 全部搬到 Mercurial 上來。&lt;/p&gt;

&lt;p&gt;就我目前的經驗而言，Mercurial 有以下優點：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;速度真的快很多。&lt;/li&gt;
&lt;li&gt;建立 branch 超方便。Mercurial 建立 branch 的作法並不是複製一份檔案到另一個資料夾，所以看起來也會比較乾淨。&lt;/li&gt;
&lt;li&gt;commit 不會直接上 server，所以還有反悔的機會，事實上也不一定要有 server。&lt;/li&gt;
&lt;li&gt;因為不用上 server，所以可以提高 commit 的頻率，降低 debug 的難度。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.hgignore&lt;/code&gt; 的機制比 &lt;code&gt;svn:ignore&lt;/code&gt; 方便太多了。&lt;/li&gt;
&lt;li&gt;在本地維護一份 repository 的好處是，如果&lt;a href="https://opensvn.csie.org/"&gt;有一天 server 倒了&lt;/a&gt;，資料也都還在，可以迅速移轉到其他 server。&lt;/li&gt;
&lt;li&gt;因為本地有一份完整的 repository，所以當想要查看 change log 時不用再上 server 取回資料，這點算是我最討厭 Subversion 的一點。&lt;/li&gt;
&lt;li&gt;事實上，也可以在既有的 Subversion repository 中使用 Mercurial，這樣就可以享受到本地 repository 的好處，又不需要將 Subversion 砍掉重練。&lt;/li&gt;
&lt;li&gt;漂亮的 branch 圖讓人更有 commit 的動力！XD&lt;/li&gt;
&lt;li&gt;以上提到的優點，&lt;a href="http://git-scm.com/"&gt;git&lt;/a&gt; 可能都作得更好，我之所以選擇 Mercurial，只是因為 &lt;a href="http://bitbucket.org/"&gt;bitbucket&lt;/a&gt; 有提供一個免費的 private repository，而 &lt;a href="http://github.com/"&gt;github&lt;/a&gt; 沒有。&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;缺點：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Mercurial 不支援 sub-directory check out，但其實我也想不出有什麼合理的情境會需要用到 sub-directory check out。如果真的想要把複數 projects 放在一個 repository 裡面的話，可以考慮使用 branches。&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=iWh-3luKOAc:w_oUVvuuiNE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=iWh-3luKOAc:w_oUVvuuiNE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/iWh-3luKOAc" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/thoughts-on-mercurial/atom/comments" thr:count="2" thr:updated="2010-08-09T00:41:37+08:00" /><thr:total>2</thr:total><feedburner:origLink>http://blog.bcse.info/thoughts-on-mercurial</feedburner:origLink></entry><entry><title>How to convert video from PNG image sequence to VP6A (VP6 with alpha channel)</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/YEnbPrIqfdw/how-to-convert-video-from-png-image-sequence-to-vp6a-vp6-with-alpha-channel" /><link rel="edit" href="http://blog.bcse.info/how-to-convert-video-from-png-image-sequence-to-vp6a-vp6-with-alpha-channel/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:how-to-convert-video-from-png-image-sequence-to-vp6a-vp6-with-alpha-channel/1281183043</id><updated>2010-08-07T20:12:54+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-07T21:59:08+08:00</app:edited><published>2010-08-07T20:12:54+08:00</published><category term="@斷簡" /><category term="Flash" /><content type="html">&lt;p&gt;說到這個「含有 Alpha Channel 的 Flash Video」，事實上 Flash Player 支援的影片格式中，唯一可以使用 Alpha Channel 的也只有 VP6A (VP6 with alpha channel) 一種，不過相關資訊實在是少得可憐，好像只有日本人有在玩這項技術。我研究了兩天的結論如下：&lt;/p&gt;

&lt;div class="floatright"&gt;&lt;a href="http://www.flickr.com/photos/bcse/4859870244/" title="VP6 with alpha channel (Sorenson Squeeze) by BCSEEATI, on Flickr"&gt;&lt;img src="http://farm5.static.flickr.com/4082/4859870244_785f4ed343_m.jpg" width="240" height="77" alt="VP6 with alpha channel (Sorenson Squeeze)" /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;用 &lt;a href="http://www.ffmpeg.org/"&gt;FFmpeg&lt;/a&gt; 將 PNG 包裝成 AVI，指令是 &lt;code&gt;ffmpeg -i %4d.png -r 30 -vcodec png BadApple.avi&lt;/code&gt;。不過我這樣做出來的 AVI 檔，用 MediaInfo 檢測出來是 30 fps 無誤，但一般播放軟體都會以為它是 25 fps…… 所以我最後只好再將 avi 用 &lt;a href="http://www.bunkus.org/videotools/mkvtoolnix/"&gt;mmg&lt;/a&gt; 重新包成 mkv，並在 mmg 中覆寫 FPS 值，然後再用 FFmpeg 包回 avi。 &lt;/li&gt;
&lt;li&gt;將影片載入至 &lt;a href="https://www.sorensonmedia.com/flash-video-encoding/"&gt;Sorenson Squeeze&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;編碼選項中要勾 “Compress Alpha Data”。&lt;/li&gt;
&lt;li&gt;Alpha Data Rate 的設定要視你的影片內容而定。以 &lt;a href="/bad-apple-screensaver"&gt;Bad Apple!!&lt;/a&gt; 而言，Alpha Data Rate 應該要設非常高，因為這段影片只有 alpha channel 有在動，其他的 red, green, blue channels 從頭到尾都是空的。&lt;/li&gt;
&lt;li&gt;順便解釋一下 Profile 應該選哪一個，VP6-E 是比較舊的 Profile，適合 500Kbps 以下的網路串流播放，而 VP6-S 則比較適合高解析度的影片。&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=YEnbPrIqfdw:9OqkOqLQ5CQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=YEnbPrIqfdw:9OqkOqLQ5CQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/YEnbPrIqfdw" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/how-to-convert-video-from-png-image-sequence-to-vp6a-vp6-with-alpha-channel/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/how-to-convert-video-from-png-image-sequence-to-vp6a-vp6-with-alpha-channel</feedburner:origLink></entry><entry><title>ef - ebullient future</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/o9JEaehLThs/ef-ebullient-future" /><link rel="edit" href="http://blog.bcse.info/ef-ebullient-future/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:ef-ebullient-future/1281015396</id><updated>2010-08-05T21:37:47+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-05T21:38:17+08:00</app:edited><published>2010-08-05T21:37:47+08:00</published><category term="現代視覺" /><category term="@斷簡" /><content type="html">&lt;div&gt;&lt;a href="http://www.flickr.com/photos/bcse/4863225822/" title="ef - ebullient future by BCSEEATI, on Flickr"&gt;&lt;img src="http://farm5.static.flickr.com/4078/4863225822_52fbd034ff.jpg" width="500" height="281" alt="ef - ebullient future" /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;測試了一下其他類似的素材，但效果似乎並不好……&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=o9JEaehLThs:nBDkRBR3a60:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=o9JEaehLThs:nBDkRBR3a60:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/o9JEaehLThs" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/ef-ebullient-future/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/ef-ebullient-future</feedburner:origLink></entry><entry><title>“Bad Apple!!” Screensaver</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/q7LbnXOpAmQ/bad-apple-screensaver" /><link rel="edit" href="http://blog.bcse.info/bad-apple-screensaver/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:-bad-apple-screensaver/1280913806</id><updated>2010-08-04T18:34:34+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-30T18:29:31+08:00</app:edited><published>2010-08-04T18:34:34+08:00</published><category term="@言語" /><category term="現代視覺" /><category term="Flash" /><category term="C#" /><category term=".NET" /><category term="東方" /><content type="html">&lt;p&gt;&lt;x:polyglot lang="zh-tw"&gt;&lt;/p&gt;

&lt;div class="floatright"&gt;&lt;object width="256" height="192"&gt;&lt;param name="movie" value="http://dl.dropbox.com/u/870967/blog/BadApple.swf"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://dl.dropbox.com/u/870967/blog/BadApple.swf" type="application/x-shockwave-flash" width="256" height="192" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;

&lt;p&gt;看了&lt;a href="http://www.techbang.com.tw/posts/3207-you-can-also-use-the-bad-apple-when-the-screen-saver"&gt;愛秀，你也可以用「Bad Apple!!」當螢幕保護程式&lt;/a&gt;這篇文章，而知道有人把 &lt;a href="http://www.nicovideo.jp/watch/nm3601701"&gt;Bad Apple!! 影繪 PV&lt;/a&gt; 作成了螢幕保護程式，效果看起來實在很有趣，於是也想自己作作看。&lt;/p&gt;

&lt;p&gt;&lt;a href="http://badapplescreensarver.blog135.fc2.com/"&gt;原作&lt;/a&gt;的作法是確實地製作一個 &lt;a href="http://msdn.microsoft.com/en-us/library/ms997507.aspx"&gt;Layered Window&lt;/a&gt;，然後迅速替換 PNG 圖片來達成動畫的效果，因此需求的資源相當高，在我的 MacBook 上播起來會卡卡的…… orz 此外，由於影片的每一幀影格都分別儲存為無損壓縮的 PNG 格式，所以檔案會異常地巨大。&lt;/p&gt;

&lt;p&gt;我的作法是在螢幕保護程式執行時，先抓一張目前的桌面作為背景圖，然後在上面播放含有 Alpha Channel 的 Flash Video，優點是動作流暢，缺點則是桌面不會變化，但如果要用 Flash Video，這個問題就無法解決，或許未來可以試看看直接使用 &lt;a href="http://msdn.microsoft.com/en-us/library/dd375454.aspx"&gt;DirectShow&lt;/a&gt; 播放其他支援 Alpha Channel 的影像編碼格式&lt;sup id="fnref:bad-apple-screensaver-1"&gt;&lt;a href="#fn:bad-apple-screensaver-1" rel="footnote"&gt;1&lt;/a&gt;&lt;/sup&gt;。&lt;/p&gt;

&lt;h3&gt;Download&lt;/h3&gt;

&lt;div class="download"&gt;&lt;a href="http://dl.dropbox.com/u/870967/BadAppleScr.tar.gz"&gt;“Bad Apple!!” Screensaver&lt;/a&gt; &lt;small&gt;(13.2 MB)&lt;/small&gt;&lt;/div&gt;

&lt;!--more--&gt;

&lt;h3&gt;Install&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;本軟體需要先安裝 &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&amp;amp;FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5"&gt;.NET Framework 2.0&lt;/a&gt; 才能執行，Windows Vista、Windows 7 已內建無須額外安裝。&lt;/li&gt;
&lt;li&gt;BadAppleScr.tar.gz 解壓縮後會得到 5 個檔案，將這 5 個檔案全部放到 C:\WINDOWS\system32\ 當中。&lt;/li&gt;
&lt;li&gt;這樣就安裝好了！ :D&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;Source Code&lt;/h3&gt;

&lt;p&gt;本原始碼可以在 &lt;a href="https://bitbucket.org/bcse/badapplescr"&gt;bitbucket.org/bcse&lt;/a&gt; 取得，有兩個分支版，一個是跟原作一樣用替換 PNG 圖片的方式、另一個則是上一段提到的使用 Flash Video 的方法。&lt;/p&gt;

&lt;h3&gt;Changelog&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;2010-08-10: 新增&lt;a href="http://www.flickr.com/photos/bcse/4878468979/"&gt;音量控制功能&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;2010-08-07: 重新壓縮影片，本來的版本可能是作了太多後製，看起來反而怪怪的。同時修正了一個檔案路徑的問題。&lt;/li&gt;
&lt;li&gt;2010-08-05: 看到一堆 404 才發現原來我沒有把檔案傳上去…… XD&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;/x:polyglot&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;x:polyglot lang="en-us"&gt;&lt;/p&gt;

&lt;div class="floatright"&gt;&lt;object width="256" height="192"&gt;&lt;param name="movie" value="http://dl.dropbox.com/u/870967/blog/BadApple.swf"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://dl.dropbox.com/u/870967/blog/BadApple.swf" type="application/x-shockwave-flash" width="256" height="192" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;

&lt;p&gt;This is my reimplementation of &lt;a href="http://badapplescreensarver.blog135.fc2.com/"&gt;Bad Apple!! Screensaver&lt;/a&gt;. It aimed to be a lightweight alternative to the original one.&lt;/p&gt;

&lt;p&gt;The original one using &lt;a href="http://msdn.microsoft.com/en-us/library/ms997507.aspx"&gt;Layered Windows&lt;/a&gt; technique to create a transparent window. And then it display PNG image sequence on the window, that’s why it needs very high resources.&lt;/p&gt;

&lt;p&gt;My version does not make a real transparent window. It captures the screen and use it as background image to fake the transparent effect. Furthermore, I compress the PNG image sequence to a Flash Video with alpha channel and play the video by Flash Player. So it can use lesser resources to achieve a similiar result.&lt;/p&gt;

&lt;h3&gt;Download&lt;/h3&gt;

&lt;div class="download"&gt;&lt;a href="http://dl.dropbox.com/u/870967/BadAppleScr.tar.gz"&gt;“Bad Apple!!” Screensaver&lt;/a&gt; &lt;small&gt;(13.2 MB)&lt;/small&gt;&lt;/div&gt;

&lt;!--more--&gt;

&lt;h3&gt;Installation&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;If you do not have &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&amp;amp;FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5"&gt;.NET Framework 2.0&lt;/a&gt; installed, please install it first.&lt;/li&gt;
&lt;li&gt;Extract "BadAppleScr.tar.gz" to "C:\WINDOWS\system32\".&lt;/li&gt;
&lt;li&gt;Right click on "BadApple.scr" and hit "Install".&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;Source Code&lt;/h3&gt;

&lt;p&gt;You can grab the source code at &lt;a href="https://bitbucket.org/bcse/badapplescr/overview"&gt;bitbucket.org/bcse&lt;/a&gt;. There are two branches currently. One is using PNG image sequence method and another is using Flash Video method.&lt;/p&gt;

&lt;h3&gt;Changelog&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;2010-08-10: Add &lt;a href="http://www.flickr.com/photos/bcse/4878468979/"&gt;Volume Control&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;2010-08-07: Recompress the video and bugfixes.&lt;/li&gt;
&lt;li&gt;2010-08-05: First release.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;/x:polyglot&gt;&lt;/p&gt;

&lt;div class="footnotes"&gt;
&lt;hr /&gt;
&lt;ol&gt;

&lt;li id="fn:bad-apple-screensaver-1"&gt;
&lt;p&gt;MPEG-4 Part 2 和 MPEG-4 Part 10 規範中都包含了 alpha transparency。最好的 MPEG-4 Part 2 自由軟體實作應該是 Xvid， 而最好的  MPEG-4 Part 10 自由軟體實作是 x264，兩者都沒有實作到 alpha transparency 的樣子。附帶一提，如果你要把 VP8 算進 MPEG-4 Part 10…… VP8 也不支援 Alpha Channel。VC-1 則好像只有 Windows Media 獨撐大局，沒有自由軟體實作。&amp;#160;&lt;a href="#fnref:bad-apple-screensaver-1" rev="footnote"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=q7LbnXOpAmQ:x8ULsH6cxVg:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=q7LbnXOpAmQ:x8ULsH6cxVg:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/q7LbnXOpAmQ" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/bad-apple-screensaver/atom/comments" thr:count="4" thr:updated="2010-08-11T09:16:35+08:00" /><thr:total>4</thr:total><feedburner:origLink>http://blog.bcse.info/bad-apple-screensaver</feedburner:origLink></entry><entry><title>Segoe WP Full Family Free Download</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/qmoClah-Fp4/segoe-wp-full-family-free-download" /><link rel="edit" href="http://blog.bcse.info/segoe-wp-full-family-free-download/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:%E6%B8%AC%E8%A9%A6/1273947572</id><updated>2010-07-23T15:58:15+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T15:59:44+08:00</app:edited><published>2010-07-23T15:58:15+08:00</published><category term="@言語" /><category term="typeface" /><content type="html">&lt;p&gt;Microsoft 在剛釋出的 &lt;a href="http://go.microsoft.com/fwlink/?LinkId=196225"&gt;Design Templates for Windows Phone 7&lt;/a&gt;&lt;sup id="fnref:segoe-wp-1"&gt;&lt;a href="#fn:segoe-wp-1" rel="footnote"&gt;1&lt;/a&gt;&lt;/sup&gt; 當中包含了 Segoe WP 全字族。&lt;/p&gt;

&lt;p&gt;根據它的授權條款描述，它允許使用者依照該字型的嵌入限制來進行內嵌，而我用 FontForge 查看過的結果是，Segoe WP 允許被內嵌於 Editable Document。唯一不允許的是自由散佈這些檔案，不過沒關係，大家到上面 Microsoft 提供的連結下載就好。&lt;/p&gt;

&lt;p&gt;以下是授權條款原文：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;c. Font Components.&lt;/strong&gt; While the software is running, you may use its fonts to display and print content. You may only embed fonts in content as permitted by the embedding restrictions in the fonts; and temporarily download them to a printer or other output device to print content.  You may not distribute the fonts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="footnotes"&gt;
&lt;hr /&gt;
&lt;ol&gt;

&lt;li id="fn:segoe-wp-1"&gt;
&lt;p&gt;我實在找不到 MSDN Download 的連結。&amp;#160;&lt;a href="#fnref:segoe-wp-1" rev="footnote"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=qmoClah-Fp4:RxKAgDqtEk0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=qmoClah-Fp4:RxKAgDqtEk0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/qmoClah-Fp4" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/segoe-wp-full-family-free-download/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/segoe-wp-full-family-free-download</feedburner:origLink></entry><entry><title>中文簡繁參考對應表</title><link rel="alternate" href="http://feedproxy.google.com/~r/bcse/~3/ccF2QL7F-dI/chinese-simp-to-trad" /><link rel="edit" href="http://blog.bcse.info/chinese-simp-to-trad/atom" /><author><name>Joel Lee</name><uri>http://blog.bcse.info</uri></author><id>tag:blog.bcse.info,2010:chinese-simp-to-trad/1272666857</id><updated>2010-05-01T06:51:03+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-05T21:18:39+08:00</app:edited><published>2010-05-01T06:51:03+08:00</published><category term="@斷簡" /><category term="Natural Language Processing" /><content type="html">&lt;p&gt;更新了一下&lt;a href="https://spreadsheets.google.com/ccc?key=0AhpwnJUAWi9ndHBTVmg5cS0xZVhQUC1NX2s0bzNWY3c&amp;amp;hl=zh_TW"&gt;這張表&lt;/a&gt;。&lt;/p&gt;

&lt;p&gt;欄位由左至右依序是簡字編號、繁字編號、簡體字符、繁體字符、簡字字頻、繁字字頻，字頻的計算是根據 &lt;a href="http://svn.openfoundry.org/libchewingdata/utf-8/"&gt;tsi.src&lt;/a&gt;，因此沒有簡體字的資料，事實上也不需要有。&lt;/p&gt;

&lt;p&gt;有顏色的部份是指沒有必要轉換，或者為了避免發生混淆而不進行轉換。&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/bcse?a=ccF2QL7F-dI:pjdPLvRXkQc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/bcse?i=ccF2QL7F-dI:pjdPLvRXkQc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/bcse/~4/ccF2QL7F-dI" height="1" width="1"/&gt;</content><link rel="replies" href="http://blog.bcse.info/chinese-simp-to-trad/atom/comments" thr:count="0" /><thr:total>0</thr:total><feedburner:origLink>http://blog.bcse.info/chinese-simp-to-trad</feedburner:origLink></entry></feed>
