<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1044399098156732237</id><updated>2024-11-08T23:08:56.314+08:00</updated><category term="Baseball"/><category term="MLB"/><category term="Giants"/><category term="Music"/><category term="Fun"/><category term="Programming"/><category term="政治"/><category term="Computer"/><category term="C++"/><category term="Linux"/><category term="boost"/><category term="Qt"/><category term="google"/><category term="Firefox"/><category term="小夫"/><category term="魚夫"/><category term="Emacs"/><category term="Life"/><category term="Money"/><category term="老蕭"/><category term="馬囧"/><title type='text'>Dkr&#39;s Note</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>73</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-3670013863707817329</id><published>2008-04-09T12:27:00.001+08:00</published><updated>2008-04-09T12:28:45.792+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fun"/><title type='text'>South Park 髒話教學</title><content type='html'>看起來好像是日本人做的。South Park 實在不是個適合小孩子看的節目，雖然當年我看了不少 orz

&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/Wl83bJQws0E&amp;hl=en&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/Wl83bJQws0E&amp;hl=en&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/3670013863707817329/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/3670013863707817329' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/3670013863707817329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/3670013863707817329'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/04/south-park.html' title='South Park 髒話教學'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-4844588619781410061</id><published>2008-03-31T14:20:00.006+08:00</published><updated>2008-03-31T19:10:15.417+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boost"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>BOOST 1.35.0 is out!</title><content type='html'>&lt;a href=&quot;http://www.boost.org/&quot;&gt;boost&lt;/a&gt; 更新了！增加了十一個新的 library。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;New Libraries&lt;/b&gt;

&lt;br /&gt;* Asio: &lt;br/&gt;
Portable networking, including sockets, timers, hostname resolution and     socket iostreams, from Chris Kohlhoff.&lt;br/&gt;
&lt;br/&gt;
* Bimap: &lt;br/&gt;
Boost.Bimap is a bidirectional maps library for C++. With Boost.Bimap you can create associative containers in which both types can be used as key, from Matias Capeletto.&lt;br/&gt;&lt;br/&gt;
* Circular Buffer: &lt;br/&gt;
STL compliant container also known as ring or cyclic buffer, from Jan Gaspar.&lt;br/&gt;
&lt;br/&gt;
* Function Types: &lt;br/&gt;
Boost.FunctionTypes provides functionality to classify, decompose and synthesize function, function pointer, function reference and pointer to member types. From Tobias Schwinger.&lt;br/&gt;
&lt;br/&gt;
* Fusion: &lt;br/&gt;
Library for working with tuples, including various containers, algorithms, etc. From Joel de Guzman, Dan Marsden and Tobias Schwinger.&lt;br/&gt;
&lt;br/&gt;
* GIL: &lt;br/&gt;
Generic Image Library, from Lubomir Bourdev and Hailin Jin.&lt;br/&gt;
&lt;br/&gt;
* Interprocess: &lt;br/&gt;
Shared memory, memory mapped files, process-shared mutexes, condition variables, containers and allocators, from Ion Gaztañaga.&lt;br/&gt;
&lt;br/&gt;
* Intrusive: &lt;br/&gt;
Intrusive containers and algorithms, from Ion Gaztañaga.&lt;br/&gt;
&lt;br/&gt;
* Math/Special Functions: &lt;br/&gt;
A wide selection of mathematical special functions from John Maddock, Paul Bristow, Hubert Holin and Xiaogang Zhang.&lt;br/&gt;
&lt;br/&gt;
* Math/Statistical Distributions: &lt;br/&gt;
A wide selection of univariate statistical distributions and functions that operate on them from John Maddock and Paul Bristow&lt;br/&gt;
&lt;br/&gt;
* MPI: &lt;br/&gt;
Message Passing Interface library, for use in distributed-memory parallel application programming, from Douglas Gregor and Matthias Troyer.&lt;br/&gt;
&lt;br/&gt;
* System: &lt;br/&gt;
Operating system support, including the diagnostics support that will be part of the C++0x standard library, from Beman Dawes. &lt;br/&gt;
&lt;br/&gt;
加了不少實用的東西，看來至少可以先玩玩 ASIO 還有 MPI 看看...</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/4844588619781410061/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/4844588619781410061' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/4844588619781410061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/4844588619781410061'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/boost-1350-is-out.html' title='BOOST 1.35.0 is out!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-1233049232703888617</id><published>2008-03-31T13:52:00.003+08:00</published><updated>2008-03-31T14:18:26.076+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Baseball"/><category scheme="http://www.blogger.com/atom/ns#" term="Giants"/><category scheme="http://www.blogger.com/atom/ns#" term="MLB"/><title type='text'>Giants Opening Day 25-man rosters</title><content type='html'>&lt;table&gt;
&lt;tr&gt;&lt;td&gt;Pitchers&lt;/td&gt;&lt;td&gt;DOB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;18 Matt Cain&lt;/td&gt;&lt;td&gt;10/01/84&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;32 Kevin Correia&lt;/td&gt;&lt;td&gt;08/24/80&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;41 Brad Hennessey&lt;/td&gt;&lt;td&gt;02/07/80&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;55 Tim Lincecum&lt;/td&gt;&lt;td&gt;06/15/84&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;53 Jonathan Sanchez&lt;/td&gt;&lt;td&gt;11/19/82&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;37 Jack Taschner&lt;/td&gt;&lt;td&gt;04/21/78&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;48 Erick Threets&lt;/td&gt;&lt;td&gt;11/04/81&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;47 Merkin Valdez&lt;/td&gt;&lt;td&gt;11/10/81&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;45 Tyler Walker&lt;/td&gt;&lt;td&gt;05/15/76&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;38 Brian Wilson&lt;/td&gt;&lt;td&gt;03/16/82&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;22 Keiichi Yabu&lt;/td&gt;&lt;td&gt;09/28/68&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;75 Barry Zito&lt;/td&gt;&lt;td&gt;05/13/78&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Catchers        &lt;/td&gt;&lt;td&gt;          DOB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;20 Steve Holm   &lt;/td&gt;&lt;td&gt;          10/21/79&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; 1 Bengie Molina   &lt;/td&gt;&lt;td&gt;       07/20/74&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Infielders         &lt;/td&gt;&lt;td&gt;               DOB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;35 Rich Aurilia    &lt;/td&gt;&lt;td&gt;       09/02/71&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;29 Brian Bocock    &lt;/td&gt;&lt;td&gt;       03/09/85&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;12 Jose Castillo   &lt;/td&gt;&lt;td&gt;       03/19/81&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; 5 Ray Durham     &lt;/td&gt;&lt;td&gt;        11/30/71&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;40 Daniel Ortmeier &lt;/td&gt;&lt;td&gt;       05/11/81&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; 8 Eugenio Velez     &lt;/td&gt;&lt;td&gt;     05/16/82&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Outfielders&lt;/td&gt;&lt;td&gt; DOB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;28 Rajai Davis    &lt;/td&gt;&lt;td&gt;        10/19/80&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;14 Fred Lewis      &lt;/td&gt;&lt;td&gt;       12/09/80&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;10 Dave Roberts   &lt;/td&gt;&lt;td&gt;        05/31/72&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;33 Aaron Rowand   &lt;/td&gt;&lt;td&gt;        08/29/77&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; 2 Randy Winn     &lt;/td&gt;&lt;td&gt;        06/09/74&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

附上生日的目的我只是要給大家看看其實人稱老人隊的老人也不是真的那麼多，雖然還有一個老游擊手躺在 DL 就是了。&lt;br/ &gt;
&lt;br/ &gt;
我們的開季 25 人名單相當有趣，投手部門看到了 Merkin Valdez 這個曾經排名在 Matt Cain 之上的前 Prospect，也有 Keiichi Yabu 這個老頭，另一個老頭Steve Kline 則是被 DFA。稍微看一下其實不難發現我們投手部門的組成是以年輕人為主體，Cain-Lincecum 這組合可能會是全聯盟最好的 1-2 號投手組合之一&lt;br/ &gt;
&lt;br/ &gt;
捕手部門我們拉上來 Steve Holm 取代了 Eliezer Alfonzo，不過 Steve Holm 連最高只打過 AA，而且也 28 歲了，大家可以不用對他有任何期待。&lt;br/ &gt;
&lt;br/ &gt;
內野手部分可以看到跟原本的預想名單不太一樣，Omar Vizquel 受傷，Frandsen 更是運氣超差，原本今年應該是他機會最好的一年，結果卻不幸受傷。內野的打擊看來也將會是一片悽慘，投手部門想勝投大概得靠自己少失點分了。&lt;br/ &gt;
&lt;br/ &gt;
外野部門則是跟預想的差不多，Dave Roberts 搞了半天結果還是沒被交易出去，大家最好祈禱 Rowand 跟去年的表現不要差太多，不然又要被笑了 orz&lt;br/ &gt;
&lt;br/ &gt;
在今年國聯西區各隊看來都有些希望的狀況下，只有我們完全不用擔心什麼爭奪分區冠軍或是外卡的問題。大家歡樂看球，贏球賺到，輸球也別太難過。預計今年 Cain 的運氣可能會比去年還差，希望他想開一點 XD&lt;br/ &gt;
&lt;br/ &gt;
開幕戰將由最帥的雞頭掛帥迎戰萬惡躲人，雖然 Zito 不是我們的 Ace，但是他是我們的 Face！請大家幫雞頭加油！</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/1233049232703888617/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/1233049232703888617' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1233049232703888617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1233049232703888617'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/giants-opening-day-25-man-rosters.html' title='Giants Opening Day 25-man rosters'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-2533036963355041660</id><published>2008-03-28T17:08:00.002+08:00</published><updated>2008-03-28T17:13:21.460+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Music"/><title type='text'>身騎白馬</title><content type='html'>星光大道三最近最紅的話題應該就是徐佳瑩了，他的身騎白馬應該早就被轉寄過無數次了，這邊也不用多說。不過在我聽到的時候，除了驚訝於詞曲之外，也覺得編曲實在相當不凡。如果沒有編曲，這也不會是一首這麼出色的歌。下面就是這首歌的編曲者蘇通達講解這首歌他的編曲過程，對編曲有興趣的人不妨一看。
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/NvJ9AAyCdus&amp;hl=en&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/NvJ9AAyCdus&amp;hl=en&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/2533036963355041660/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/2533036963355041660' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2533036963355041660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2533036963355041660'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/blog-post_28.html' title='身騎白馬'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-6856666320169559225</id><published>2008-03-28T16:38:00.003+08:00</published><updated>2008-03-28T17:07:35.133+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><title type='text'>WinTabber</title><content type='html'>這幾天一直在趕程式，但是由於要跑的 benchmark 實在太大，比較大的 case 跑一次少說要兩三小時，一秒上下幾十萬次的我當然沒有那麼多美國時間把那些 benchmark 在同一台機器上面一一跑完，所以理所當然的開了一堆 putty 在跑。&lt;br /&gt;
&lt;br /&gt;
不過問題來了，總共要跑的 benchmark 也有個 15 組，雖然我手上可以用的機器並沒有到 15 台，不過也是有個十台左右。開了十個 putty 的桌面實在是亂七八糟，搞不請楚哪個視窗是哪台機器。找了一下 putty 是有 &lt;a href=&quot;http://www.raisin.de/putty-tabs/putty-tabs.html&quot;&gt;PuttyTabs&lt;/a&gt; 這個 Tab 的支援，不過我想了一想，覺得應該會有讓所有程式都可以支援 Tab 的方法，所以找了一下發現了 &lt;a href=&quot;http://www.wintabber.com/&quot;&gt;WinTabber&lt;/a&gt; 這個好東西。&lt;br /&gt;
&lt;br /&gt;
WinTabber 不僅僅可以支援 putty，也可以支援許多程式。使用的方法也很簡單，打開 WinTabber 之後選擇 File-&gt;New Tab，接著再選擇要加入 Tab 的程式。如此就可以讓程式也支援 Tab 了。&lt;br /&gt;
&lt;br /&gt;
目前使用起來是沒啥問題，除了偶爾 focus 會跑掉之外都還蠻讓我滿意的。在 putty 本身真正的支援 Tab 之前我應該會繼續使用吧。</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/6856666320169559225/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/6856666320169559225' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/6856666320169559225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/6856666320169559225'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/wintabber.html' title='WinTabber'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-7236194001615175726</id><published>2008-03-07T11:20:00.001+08:00</published><updated>2008-03-07T11:19:29.337+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Baseball"/><category scheme="http://www.blogger.com/atom/ns#" term="Giants"/><category scheme="http://www.blogger.com/atom/ns#" term="MLB"/><title type='text'>Lowry&#39;s horrible outing</title><content type='html'>1.0IP 4ER 9BB。為什麼他丟了 9BB 只掉四分呢？因為他沒被打安打。為什麼他沒有被打安打呢？因為在他丟的五十球當中，只有十二球是好球，打者連打的機會都沒有。&lt;br /&gt;
&lt;br /&gt;
問題出在哪？Bochy 說 Lowry 有抱怨他沒辦法把球抓好，並且他也堅持 Lowry 的手肘已經康復了。樂觀一點來看，現在還只是春訓，還有很多時間可以把狀況調整回來。稍微悲觀一點，或許 Lowry 的手肘其實還沒完全好，那麼我們就得等他傷勢復原。最悲觀的狀況，Rick Ankiel ...&lt;br /&gt;&lt;br /&gt;
來點好消息，還記得 Merkin Valdez 這個名字嗎？曾經他是個排名比 Cain 還高的 prospect，在經過去年的 Tommy John 之後重新出發，目前的成績是 3.0IP 0ER 2H 1BB 1SO，或許他可以在開季的時候出現在牛棚。&lt;br /&gt;&lt;br /&gt;
3/5 Update: 今天的新聞出來了，Lowry 的手腕被診斷出有肌腱炎，讓他沒辦法握好球。所以會休息幾天，並且錯過下一次的先發。對 Giants 來講或許算是個好消息。&lt;br /&gt;
3/7 Update: 結果要動手術來解決這個問題，Lowry 大概要休息兩到三週，Bochy 說大概在四月下旬 Lowry 會重回 rotation，看來春訓又多了一個位置要爭了。</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/7236194001615175726/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/7236194001615175726' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/7236194001615175726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/7236194001615175726'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/lowrys-horrible-outing.html' title='Lowry&#39;s horrible outing'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-452599239786405317</id><published>2008-03-07T10:20:00.000+08:00</published><updated>2008-03-07T10:20:00.823+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="小夫"/><category scheme="http://www.blogger.com/atom/ns#" term="政治"/><category scheme="http://www.blogger.com/atom/ns#" term="魚夫"/><title type='text'>魚夫笑破肚皮？我也笑破肚皮了</title><content type='html'>剛剛同學丟了&lt;a href=&quot;http://vivataiwantv.blogspot.com/&quot;&gt;台灣玉山長昌台&lt;/a&gt;台長大人魚夫最新寫的&lt;a href=&quot;http://vivataiwantv.blogspot.com/2008/03/blog-post_06.html&quot;&gt;一篇文章&lt;/a&gt;，他在裡面嘲笑了國民黨立委知識水準低落等等。身為一個愛台灣的台長，會有這種文章是不意外，何況國民黨立委搞不太清楚什麼是 blog 也的確是挺好笑的。不過不知道為啥我總覺得他文章裡面有些許自表的意味，以下節錄自他的文章：
&lt;blockquote&gt;
法源是什麼呢？叫NCC問你們的網管啦，就是去申請一個帳號，然後把影音上傳，再貼在你們馬蕭的官網上，至於資金呢？不用錢啦，免驚啦！
&lt;/blockquote&gt;
嘲笑別人沒知識的時候就知道叫別人問看看網管，不過之前好像有某人以為趨勢故意擋住台灣玉山長昌台，還自以為是受到政治迫害。怎麼魚夫台長那時候就不知道要問網管呢 XD
&lt;blockquote&gt;
好啦，我知道你們的網路知識水準低，沒關係，魚夫（我還有個身份是教授哦！）在大學裡有教授一門課叫「Web2.0網路多媒體行銷」，剛剛開學，特別批准費鴻泰和張顯耀兩位同學前來旁聽，不過你們對馬、蕭和魚夫老師不敬，只能站在門外抄筆記。
&lt;/blockquote&gt;
大驚！魚夫台長大人竟然還有教 Web 2.0 的課程！原來所謂的 Web 2.0 就是要把跟網友互動的管道拔掉，只剩下一言堂啊。看到玉山長昌台搞成這樣，真不知道魚夫教授要怎麼要教導底下的學生 orz &lt;br /&gt;
&lt;br /&gt;
然後又看到下面那一大票愛台灣的回應，我深深的覺得小夫真的找錯人搞網站了……</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/452599239786405317/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/452599239786405317' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/452599239786405317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/452599239786405317'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/blog-post_07.html' title='魚夫笑破肚皮？我也笑破肚皮了'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-5776070348601360299</id><published>2008-03-06T22:34:00.000+08:00</published><updated>2008-03-06T22:34:00.343+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Music"/><title type='text'>Skid Row</title><content type='html'>Skid Row 應該可以算是在 90 年代一個相當知名的團，雖然現在還有在運作，不過我相信在很多人的心中 Skid Row 早就在 Sebastian Bach 離團之後結束了。一般提到 Skid Row，大部分人應該會想到他們首張專輯 Skid Row 裡面的 18 and life：&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/0Xd8ykpZkwA&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/0Xd8ykpZkwA&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;br /&gt;
或是我個人最喜歡的 I remember you：&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/pGhlUzzib6c&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/pGhlUzzib6c&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/P0TwmP0lA2Y&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/P0TwmP0lA2Y&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;br /&gt; 
不過其實第二張 Slave to the Grind 都相當不錯。
Slave to the Grind:&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/5YSKIbWDqS8&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/5YSKIbWDqS8&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;
Wasted Time:&lt;br /&gt;
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/ABcTUtFY6SI&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/ABcTUtFY6SI&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;
Sebastian Bach 的聲音實在很特別，不知道還有哪裡可以找到類似的主唱啊…</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/5776070348601360299/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/5776070348601360299' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/5776070348601360299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/5776070348601360299'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/skid-row_5140.html' title='Skid Row'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-2309452846852287642</id><published>2008-03-04T20:31:00.004+08:00</published><updated>2008-03-04T21:17:29.237+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="政治"/><category scheme="http://www.blogger.com/atom/ns#" term="老蕭"/><title type='text'>蕭萬長子女 在台、美各有豪宅？</title><content type='html'>剛剛沒事看新聞，看到這一則&lt;a href=&quot;http://udn.com/NEWS/NATIONAL/NATS5/4242737.shtml&quot;&gt;「蕭萬長子女 在台、美各有豪宅？」&lt;/a&gt;。主要就是在說民進黨團質疑老蕭小孩手中有豪宅的事情。
&lt;blockquote&gt;
民進黨團幹事長賴清德上午在立法院召開記者會表示，蕭萬長多次公開說自己是無殼蝸牛，他妻子的自傳也提到夫妻理財簡單，只儲蓄與投資基金，暗示蕭萬長清廉耿介，但根據黨團掌握的資料與媒體報導，沒有那麼簡單。&lt;br /&gt;
&lt;br /&gt;
他說，蕭萬長的一個兒子與兩個女兒在台北市龍江路「元大花園廣場」各有一棟六、七千萬元豪宅，總值約兩、三億元；至於波士頓的豪宅，當初登記在兩個女兒名下時，她們才二十餘歲，不應有能力買豪宅。
&lt;/blockquote&gt;
姑且不論是不是真的有豪宅，有豪宅應不應該。我看到這則新聞的第一個想法就是「老蕭有兒子嗎？」我印象中似乎老蕭只有女兒而已。結果不久之後果然看到&lt;a href=&quot;http://www.rti.org.tw/News/NewsContentHome.aspx?NewsID=101366&amp;t=1&quot;&gt;老蕭出來說要提告&lt;/a&gt;。
&lt;blockquote&gt;
民進黨團幹事長賴清德等4位立委，指控國民黨副總統候選人蕭萬長子女在美國和台灣各有豪宅，質疑蕭萬長資金來源可疑。蕭萬長已經委請律師，控告賴清德等人違反總統副總統選罷法及加重誹謗罪，馬蕭總部更痛批，民進黨綠委亂爆料，因為蕭萬長根本沒有兒子，只有3位女兒。
&lt;/blockquote&gt;
我很討厭每次小夫打選戰都要在那邊扒糞，這次根本就擺明是亂來，雖然賴清德是說口誤，不過可以口誤到連性別都搞錯這個也誤太大了吧，感覺是連最基本的查證都沒有做好就爆料。ptt 政黑板一個很常用的梗是「請問馬英九的兒子為何不用當兵？」，看來又多了一個「為何老蕭的兒子不用當兵？」可以用 XD</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/2309452846852287642/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/2309452846852287642' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2309452846852287642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2309452846852287642'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/03/blog-post.html' title='蕭萬長子女 在台、美各有豪宅？'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-410566549203741094</id><published>2008-02-21T15:05:00.003+08:00</published><updated>2008-03-04T15:14:43.801+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Emacs"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Emacs Cheat Sheet</title><content type='html'>年紀大了，在寫程式的時候常常會忘記指令。做一下 cheat sheet 好了 &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;基本指令&lt;/b&gt;&lt;br /&gt;
C-x C-c 離開 &lt;br /&gt;
C-g 清除 command &lt;br /&gt;
C-u undo &lt;br /&gt;
C-h help &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;移動游標&lt;/b&gt;&lt;br /&gt;
C-f 前進&lt;br /&gt;
C-b 後退&lt;br /&gt;
C-n 下一行&lt;br /&gt;
C-p 上一行&lt;br /&gt;
C-a 開頭&lt;br /&gt;
C-e 結尾&lt;br /&gt;
C-v 下一頁&lt;br /&gt;
M-v 上一頁&lt;br /&gt;
M-&lt; 檔案的開頭&lt;br /&gt;
M-&gt; 檔案的結尾&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;搜尋和取代&lt;/b&gt;&lt;br /&gt;
C-s 往前搜尋&lt;br /&gt;
C-r 往後搜尋&lt;br /&gt;
M-x replace-string 替代字串 &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;編輯&lt;/b&gt;&lt;br /&gt;
C-d 刪除下一個字元&lt;br /&gt;
Backspace 刪除前一個字元&lt;br /&gt;
M-d 刪除下一個字&lt;br /&gt;
C-k 刪除到行末&lt;br /&gt;
C-w 剪下區塊&lt;br /&gt;
M-w 複製區塊&lt;br /&gt;
C-y 貼上&lt;br /&gt;
C-@ 設定區塊&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;視窗&lt;/b&gt;&lt;br /&gt;
C-x 2 創造水平視窗&lt;br /&gt;
C-x 3 創造垂直視窗&lt;br /&gt;
C-x 0 刪除視窗&lt;br /&gt;
C-x 1 刪除另一個視窗&lt;br /&gt;
C-x o 移動到另一個視窗&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/410566549203741094/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/410566549203741094' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/410566549203741094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/410566549203741094'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/02/emacs-cheat-sheet.html' title='Emacs Cheat Sheet'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-1355632401405466330</id><published>2008-02-01T02:42:00.000+08:00</published><updated>2008-02-01T03:00:47.497+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="小夫"/><category scheme="http://www.blogger.com/atom/ns#" term="政治"/><category scheme="http://www.blogger.com/atom/ns#" term="魚夫"/><title type='text'>台灣玉山電視台</title><content type='html'>隨著 Web2.0(?) 的時代來臨，候選人沒個網站跟網友互動好像就弱掉了。當然基本上網站存在的目的是要為了幫候選人加分用的，不過眼下就存在了一個幫對手助選的網站，&lt;a href=&quot;http://vivataiwantv.blogspot.com/&quot;&gt;台灣玉山長昌台&lt;/a&gt;。&lt;br /&gt;&lt;br /&gt;

基本上原本我是不知道這個網站的存在，不過由於前幾天在新聞上看到有&lt;a href=&quot;http://vivataiwantv.blogspot.com/2008/01/trend-micro.html&quot;&gt;本台正告趨勢科技&lt;/a&gt;這篇文章，才讓我知道了這個網站。基本上不懂技術其實不會怎樣，畢竟這個世界上懂技術的人也不是那麼多。而魚夫身為一個助選人員，第一時間有政治迫害的聯想其實也是可以接受。不過當人家指正你的時候還死不認錯那就真的很蠢了。我們可以看看在正告這篇文章下面的留言，清一色的都沒有質疑魚夫的地方，難道都沒有資訊從業人員發現問題？當然不是，而是這個&lt;a href=&quot;http://vivataiwantv.blogspot.com/&quot;&gt;台灣玉山長昌台&lt;/a&gt;的留言需要經過審核才可以發表，說好聽點是避免有藍蛆來亂，其實說穿了根本只是不希望看到任何「不愛台灣」的言論出現，動搖了愛台灣的人們。&lt;br /&gt;&lt;br /&gt;

這種自打手槍網站，要怎麼期待它達到跟網友交流的目的呢？不過看看台灣台上面的打馬文章，或許這個網站的定位本來就是大話新聞 Web 版吧 XD</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/1355632401405466330/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/1355632401405466330' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1355632401405466330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1355632401405466330'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/02/blog-post.html' title='台灣玉山電視台'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-938917530268068446</id><published>2008-01-29T03:44:00.000+08:00</published><updated>2008-01-29T03:58:57.373+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="政治"/><category scheme="http://www.blogger.com/atom/ns#" term="馬囧"/><title type='text'>決戰322／藍要收復舊河山～馬：民進黨比5個「921」可怕</title><content type='html'>今天無聊在亂看新聞，看到馬囧在競選總部成立大會上面講的話，新聞在&lt;a href=&quot;http://www.ettoday.com/2008/01/27/301-2223666.htm&quot;&gt;此&lt;/a&gt;。 &lt;br /&gt;
&lt;blockquote&gt;
馬英九：「過去八年台灣所遭受的傷害，我跟各位報告，起碼是五個921地震、十個納莉颱風的水準。大家要有心理準備，我們要拿出全力來，從頭收拾舊河山」。 
&lt;/blockquote&gt;
&lt;br /&gt;
這段話讓我真的覺得馬囧這個人腦袋不夠清楚，拿什麼比喻都好，偏偏拿了 921 地震跟納莉颱風來舉例子，分明就是拿石頭砸自己的腳。要是民進黨真的造成的災難如此巨大，那人民要怎麼樣放心交給你處理？還是他覺得他自己在 921 還有納莉颱風的時候都處理得很好嗎 orz 再加上之前的&lt;a href=&quot;http://news.yam.com/cna/politics/200711/20071112948456.html&quot;&gt;社子島事件&lt;/a&gt;，真的讓人覺得馬囧講話有點不經大腦。</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/938917530268068446/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/938917530268068446' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/938917530268068446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/938917530268068446'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/01/3225921.html' title='決戰322／藍要收復舊河山～馬：民進黨比5個「921」可怕'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-6124238980572889222</id><published>2008-01-23T03:11:00.002+08:00</published><updated>2008-02-24T01:14:18.858+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Money"/><title type='text'>點廣告賺錢</title><content type='html'>紀錄一下點廣告賺錢的 link，隨時會更新...&lt;br /&gt;

&lt;a href=&quot;http://clix4coins.com/index1.php?ref=daikeren&quot;&gt;CLix4coins&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.just-click.us/?r=daikeren&quot;&gt;Just-Click&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://bux.to/?r=daikeren&quot;&gt;Bux.to&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://bux3.com/?r=daikeren&quot;&gt;bux3.com&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.hits4pay.com/members/index.cgi?daikeren&quot;&gt;Hits4Pay&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.DailyClicks.biz/?r=daikeren&quot;&gt;DailyClicks&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://paid.vg/id/daikeren&quot;&gt;Paid.vg&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://fast.sc/signup.php?ref=daikeren&quot;&gt;Fast.sc&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://10Bux.net/?r=daikeren&quot;&gt;10Bux.net&lt;/a&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/6124238980572889222/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/6124238980572889222' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/6124238980572889222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/6124238980572889222'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/01/blog-post.html' title='點廣告賺錢'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-2238490170435220505</id><published>2008-01-23T02:02:00.000+08:00</published><updated>2008-01-23T03:01:46.538+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boost"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Boost Libraries: Foreach</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;BOOST_FOREACH 是甚麼?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;

在 C++ 中，寫一個 iterate 一整個 sequence 的迴圈是讓人厭煩的，我們可以用 iterators，但是需要寫很多照本宣科的程式碼。或是我們可以用 std::for_each() 演算法，但是其實它也沒有省下多少功夫。相對之下，像是 Perl 之類的語言提供了內建的 &quot;foreach&quot; 來自動建構這樣的程序。BOOST_FOREACH 就是這類程序的 C++ 版本。它會直接幫助我們 iterates 整個 seqeuce，讓我們不用跟 iterators 奮鬥。&lt;br /&gt;&lt;br /&gt;

BOOST_FOREACH 是為了簡單易用以及有效率而設計的，他不會做動態 allocation，沒有 virtual function calls 也不用任何的 function pointers。這讓它可以產生 near-optimal 的程式碼，BOOST_FOREACH 的效率通常只跟手寫的 loop 差了幾個百分比而已。儘管 BOOST_FOREACH 是一個 macro，他的表現相當的出色。它剛好 evaluate 他的 argument 一次，讓我們不會看到有預期之外的效果。&lt;br /&gt;&lt;br /&gt;

&lt;span style=&quot;font-weight:bold;&quot;&gt;Hello, world!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
下面是一個簡單的程式，它使用了 BOOST_FOREACH 來 iterate 一個 std::string 的內容。
&lt;pre class=&quot;prettyprint&quot;&gt;
#include &amp;lt;string&gt;
#include &amp;lt;iostream&gt;
#include &amp;lt;boost/foreach.hpp&gt;

int main()
{
    std::string hello( &quot;Hello, world!&quot; );
    
    BOOST_FOREACH( char ch, hello )
    {
        std::cout &lt;&lt; ch;
    }

    return 0;
}
&lt;/pre&gt;
程式會 output 
&lt;pre class=&quot;prettyprint&quot;&gt;
Hello world!
&lt;/pre&gt;

&lt;span style=&quot;font-weight:bold;&quot;&gt;支援的類型&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
BOOST_FOREACH 會 iterates seqeuces，不過甚麼才會真正的組成一個 sequence？BOOST_FOREACH 是建構在 Boost.Range 之上，所以它自然會支援那些 Boost.Range 可以辨認的類型。舉例來說，我們可以用：
&lt;pre&gt;
    * STL containers
    * arrays
    * Null-terminated strings (char and wchar_t)
    * std::pair of iterators
&lt;/pre&gt;
&lt;span style=&quot;font-weight:bold;&quot;&gt;範例&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
下面是幾個使用 BOOST_FOREACH 的範例：

在 STL container 做 iterate:
&lt;pre class=&quot;prettyprint&quot;&gt;
std::list&lt;int&gt; list_int( /*...*/ );
BOOST_FOREACH( int i, list_int )
{
    // do something with i
}
&lt;/pre&gt;
在 array 上面做 iterate with covariance (就是說 iteration variable 跟 element 的型別不完全一致）
&lt;pre class=&quot;prettyprint&quot;&gt;
short array_short[] = {1,2,3};
BOOST_FOREACH( int i, array_short )
{
    // The short was implicitly converted to an int
}
&lt;/pre&gt;
在 loop 中使用 return, continue 以及 break
&lt;pre class=&quot;prettyprint&quot;&gt;
std::deque&lt;int&gt; deque_int( /*...*/ );
int i = 0;
BOOST_FOREACH( i, deque_int )
{
    if( i == 0 ) return;
    if( i == 1 ) continue;
    if( i == 2 ) break;
}
&lt;/pre&gt;
透過 reference iterate 整個 sequence，並且做變更
&lt;pre class=&quot;prettyprint&quot;&gt;
short array_short[] = { 1, 2, 3 };
BOOST_FOREACH( short &amp; i, array_short )
{
    ++i;
}
// array_short contains {2,3,4} here
&lt;/pre&gt;
利用巢狀 BOOST_FOREACH iterate 一個二維 vector
&lt;pre class=&quot;prettyprint&quot;&gt;
std::vector&amp;lt;std::vector&amp;lt;int&gt; &gt; matrix_int;
BOOST_FOREACH( std::vector&amp;lt;int&gt; &amp; row, matrix_int )
    BOOST_FOREACH( int &amp; i, row )
        ++i;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/2238490170435220505/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/2238490170435220505' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2238490170435220505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2238490170435220505'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2008/01/boost-libraries-foreach.html' title='Boost Libraries: Foreach'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-7226924745561546182</id><published>2007-11-14T14:27:00.000+08:00</published><updated>2007-11-14T16:12:54.663+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Music"/><title type='text'>魏如萱 / 甜蜜生活</title><content type='html'>前自然捲主唱娃娃（魏如萱）發了單飛之後的第一張新專輯，希望大家多多支持。&lt;br /&gt;
&lt;br /&gt;
其實第一次知道他並不是由於聽自然捲的關係，而是因為在&lt;a href=&quot;http://www.bcc.com.tw/&quot;&gt;中廣&lt;/a&gt;音樂網的愛月光節目當中聽到這個有點白爛、有點自 high 的聲音，讓我覺得相當親切，養成了聽他廣播的習慣，之後才接觸到自然捲的歌，才知道娃娃除了自 high 之外，其實也有著好歌喉。&lt;br /&gt;
&lt;br /&gt;
想買專輯的人可以去博客萊定，這次是 3CD 預購版，除了魏如萱的專輯之外還附送了很棒的兩張西班牙專輯。物超所值，要買要快喔 XD&lt;br /&gt;&lt;br /&gt;

&lt;embed src=&quot;http://www.books.com.tw/CD/activity/waa/waa_jukebox.swf&quot; quality=&quot;high&quot; bgcolor=&quot;#e30000&quot; width=&quot;200&quot; height=&quot;500&quot; name=&quot;waa_jukebox&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/7226924745561546182/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/7226924745561546182' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/7226924745561546182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/7226924745561546182'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/11/blog-post.html' title='魏如萱 / 甜蜜生活'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-1638386517836321592</id><published>2007-06-08T12:14:00.000+08:00</published><updated>2007-11-14T14:17:45.315+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Baseball"/><category scheme="http://www.blogger.com/atom/ns#" term="Giants"/><category scheme="http://www.blogger.com/atom/ns#" term="MLB"/><title type='text'>2007 Draft: San Francisco Giants</title><content type='html'>&lt;a href=&quot;http://www.baseballamerica.com/draftdb/2007xteam.php?team=SF&quot;&gt;Baseball America Draft 2007: Giants&lt;/a&gt;&lt;br /&gt;
&lt;pre&gt;
Round    overall      player              position
1        10           Madison Bumgarner   lhp
1        22           Tim Alderson        rhp
1        29           Wendell Fairley     of
1s       32           Nick Noonan         2b
1s       43           Jackson Williams    c
1s       51           Charlie Culberson   2b/ss
5        164          Chance Corgan       rhp
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/1638386517836321592/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/1638386517836321592' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1638386517836321592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1638386517836321592'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/06/2007-draft-san-francisco-giants.html' title='2007 Draft: San Francisco Giants'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-2907401565419760727</id><published>2007-06-07T02:45:00.000+08:00</published><updated>2007-11-14T14:19:35.035+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Minimum and Maximum Operators in C++</title><content type='html'>今天偶然發現的&lt;a href=&quot;http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_6.html#SEC116&quot;&gt;Minimum and Maximum Operators in C++&lt;/a&gt;。可以用以下的 code 很簡單的產生 Minimum 以及 Maximum：
&lt;pre class=&quot;prettyprint&quot;&gt;
max = x &gt;? y ;
min = x &amp;lt;? y ;
&lt;/pre&gt;
&lt;br /&gt;
不過要注意一下，這個是 g++ 才有的 extensions，別的 compiler 無法使用。&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/2907401565419760727/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/2907401565419760727' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2907401565419760727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/2907401565419760727'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/06/minimum-and-maximum-operators-in-c.html' title='Minimum and Maximum Operators in C++'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-7737677590166139714</id><published>2007-04-10T23:20:00.000+08:00</published><updated>2007-04-11T01:08:23.375+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boost"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Boost Libraries: Format</title><content type='html'>在傳統的 C 語言當中，處理 output 的問題我們會用 printf 這個 function。藉由 printf 的格式化輸出，可以方便的做些簡單的排版輸出。等到進入了 C++ 時代，cout 取代了 printf，但是卻失去了原本好用的格式化輸出，使得有時候處理 output 會變成一件繁瑣的事情。boost::format 就是為了這個而生。 &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Synopsis &lt;/b&gt;&lt;br /&gt;
一個 format 物件是經由 format-string 和其後的參數建構而來，後面傳進來的參數是以 operator % 來做連接的。每一個參數都會被轉型成為 string 的型式，接著在依照 format-string 的樣子轉換成一個 string。下面是一個例子：&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;
cout &lt;&lt; boost::format(&quot;writing %1%,  x=%2% : %3%-th try&quot;) % &quot;toto&quot; % 40.23 % 50; 
     // prints &quot;writing toto,  x=40.230 : 50-th try&quot;
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;How it works&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt; 
當你呼叫 format(s) 時，它將會建構一個 format 物件，並且 parse 其中的 format string 給下一個步驟使用。
&lt;/li&gt;
&lt;li&gt;
接著，可能是馬上，就像
&lt;pre class=&quot;preetyprint&quot;&gt;
cout &lt;&lt; format(&quot;%2% %1%&quot;) % 36 % 77 ;
&lt;/pre&gt;
或是稍後，就像
&lt;pre class=&quot;prettyprint&quot;&gt;
format fmter(&quot;%2% %1%&quot;);
fmter % 36; fmter % 77;
&lt;/pre&gt;
你把變數「餵」到 format 當中，這些變數會變成所謂的 internal stream，它們的 state 是由之前的 format-string 所決定的，接著 format string 將會儲存這些結果給下一步使用。
&lt;/li&gt;
&lt;li&gt;
當所有的參數都被餵進去之後，你可以把 format dump 到一個 stream 當中，或是透過 member function str() 轉成一個 string。如例子：
&lt;pre class=&quot;prettyprint&quot;&gt;
// fmter was previously created and fed arguments, it can print the result :
cout &lt;&lt; fmter ;  

// You can take the string result :
string s  = fmter.str();

// possibly several times :
s = fmter.str( );

// You can also do all steps at once :
cout &lt;&lt; boost::format(&quot;%2% %1%&quot;) % 36 % 77; 

// using the str free function :
string s2 = str( format(&quot;%2% %1%&quot;) % 36 % 77 );

&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
另外，你還可以重新使用用過的 format object，來降低處理的複雜度。
&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;b&gt;Examples&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
簡單的 output，有 re-ordering：
&lt;pre class=&quot;prettyprint&quot;&gt;
cout &lt;&lt; format(&quot;%1% %2% %3% %2% %1% \n&quot;) % &quot;11&quot; % &quot;22&quot; % &quot;333&quot;; // &#39;simple&#39; style.
&lt;/pre&gt;
將會輸出 &quot;11 22 333 22 11 \n&quot;
&lt;/li&gt;
&lt;li&gt;
更精確的格式輸出：
&lt;pre class=&quot;prettyprint&quot;&gt;
cout &lt;&lt; format(&quot;(x,y) = (%1$+5d,%2$+5d) \n&quot;) % -23 % 35;     // Posix-Printf style
&lt;/pre&gt;
會輸出：&quot;(x,y) = ( -23, +35) \n&quot;
&lt;/li&gt;
&lt;li&gt;
傳統的 printf 語法，沒有 re-ordering：
&lt;pre class=&quot;prettyprint&quot;&gt;
cout &lt;&lt; format(&quot;writing %s,  x=%s : %d-th step \n&quot;) % &quot;toto&quot; % 40.23 % 50; 
&lt;/pre&gt;
輸出：&quot;writing toto, x=40.23 : 50-th step \n&quot;
&lt;/li&gt;
&lt;li&gt;
幾種表達同樣東西的方法：
&lt;pre class=&quot;prettyprint&quot;&gt;
cout &lt;&lt; format(&quot;(x,y) = (%+5d,%+5d) \n&quot;) % -23 % 35;
cout &lt;&lt; format(&quot;(x,y) = (%|+5|,%|+5|) \n&quot;) % -23 % 35;

cout &lt;&lt; format(&quot;(x,y) = (%1$+5d,%2$+5d) \n&quot;) % -23 % 35;
cout &lt;&lt; format(&quot;(x,y) = (%|1$+5|,%|2$+5|) \n&quot;) % -23 % 35;
&lt;/pre&gt;
這些都代表著：&quot;(x,y) = ( -23, +35) \n&quot;
&lt;/li&gt;
&lt;li&gt;
使用 manipulators 去修改 format-string
&lt;pre class=&quot;prettyprint&quot;&gt;
format fmter(&quot;_%1$+5d_ %1$d \n&quot;);

format fmter2(&quot;_%1%_ %1% \n&quot;);
fmter2.modify_item(1, group(showpos, setw(5)) ); 

cout &lt;&lt; fmter % 101 ;
cout &lt;&lt; fmter2 % 101 ;
&lt;/pre&gt;
都是代表著 &quot;_ +101_ 101 \n&quot;
&lt;/li&gt;
&lt;li&gt;
使用有參數的 manipulators：
&lt;pre class=&quot;prettyprint&quot;&gt;
cout &lt;&lt; format(&quot;_%1%_ %1% \n&quot;) % group(showpos, setw(5), 101);
&lt;/pre&gt;
manipulators 會在每個有 %1% 的地方作用，因此會輸出 &quot;_ +101_ +101 \n&quot;
&lt;/li&gt;
&lt;li&gt;
新的 format features：&quot;absolute tabulations&quot;，在迴圈當中相當有用，可以確定一個欄位在每一行都是輸出在同一個位置。
&lt;pre class=&quot;prettyprint&quot;&gt;
for(unsigned int i=0; i &lt; names.size(); ++i)
    cout &lt;&lt; format(&quot;%1%, %2%, %|40t|%3%\n&quot;) % names[i] % surname[i] % tel[i];
&lt;/pre&gt;
可能的輸出會如下：
&lt;pre&gt;
Marc-François Michel, Durand,           +33 (0) 123 456 789
Jean, de Lattre de Tassigny,            +33 (0) 987 654 321
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
其他的部分可以在 boost format 的 &lt;a href=&quot;http://www.boost.org/libs/format/doc/format.html&quot;&gt;document&lt;/a&gt; 當中看到，不過大概看過這些就可以應用了。</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/7737677590166139714/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/7737677590166139714' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/7737677590166139714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/7737677590166139714'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/04/boost-libraries-format.html' title='Boost Libraries: Format'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-3746288747540467641</id><published>2007-04-05T15:52:00.000+08:00</published><updated>2007-04-06T21:44:51.023+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boost"/><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>Boost Libraries: Timer</title><content type='html'>在寫程式的時候，我們常常會希望知道程式總共跑了多久，或是某個 function 需要執行多久，來瞭解我們的 performance。通常會使用的方法是利用 time.h 裡面的 clock() 來達到我們想要的目的，程式大概會長這樣：
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;
#include &amp;lt;ctime&gt;
#include &amp;lt;iostream&gt;

using namespace std ;

int main( void ) {
   clock_t t = clock() ;
   // do something....
   cout &lt;&lt; &quot;The program runs &quot; &lt;&lt; (clock()-t)/CLK_TCK &lt;&lt; 
   &quot; seconds&quot; &lt;&lt; endl ;
   return 0 ;
}
&lt;/pre&gt;
&lt;br /&gt;
這樣當然是沒啥不好的，不過人總是懶惰，有時候會覺得要寫那麼多行 code 是很麻煩的事情。所以就有了 &lt;a href=&quot;http://www.boost.org/libs/timer/index.html&quot;&gt;boost::timer&lt;/a&gt; 的誕生。
&lt;br /&gt;
Boost timer 的使用相當簡單，基本上只有三個 class。接下來就一一介紹。
&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Class Timer&lt;/b&gt;&lt;br /&gt;
timer 這個 class 會測量經過的時間，通常使用在程式當中一些比較繁瑣的 timing 測量方面。實做其實就是利用上面講過的 clock() function。要注意的是，timer 最多可以測量的時間大概是 596.5 小時（或是更少）。以下是一個簡單的例子：

&lt;pre class=&quot;prettyprint&quot;&gt;
#include &amp;lt;boost/timer.hpp&gt;
#include &amp;lt;iostream&gt;

using namespace std ;
using namespace boost ;

int main( void ) {
  timer t1 ;
  // do something..
  cout &lt;&lt; t1.elapsed() &lt;&lt; endl ;

  return 0 ;
}
&lt;/pre&gt;
&lt;br /&gt;
如此便可以輸出 t1 這個 timer 經過的時間。
&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Class progress_timer&lt;/b&gt;&lt;br /&gt;
progress_timer 跟 timer 很相似，差別是在它會自動在 destruction 的時候輸出 progress_timer 所經過的時間。例子如下：
&lt;pre class=&quot;prettyprint&quot;&gt;
#include &amp;lt;boost/progress.hpp&gt;
int main()
{
   progress_timer t;  // start timing
   // do something ...
   return 0;
}
&lt;/pre&gt;&lt;br /&gt;
如此程式會於結束的時候輸出如 0.06 s 之類的訊息：
&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Class progress_display&lt;/b&gt;&lt;br /&gt;
progress_display 這個 class 則就是傳統我們會看到的 progress bar 功能。這個只是要給人看，讓人知道這隻程式正在跑。舉例來說，如果我們想要來在 map 當中插入 element，在插入的途中想利用 progress_display 來知道進度，可以用以下的 code：

&lt;pre class=&quot;prettyprint&quot;&gt;
#include &amp;lt;boost/progress.hpp&gt;
#include &amp;lt;map&gt;
#include &amp;lt;iostream&gt;

using namespace std ;
using namespace boost ;

int main( void ) {
  map&lt;int,int&gt; big_map ;
  progress_display show_progress( 1000000 ) ;

  for ( int i = 0 ; i &lt; 1000000 ; i++ ) {
    big_map.insert( make_pair(i,i) ) ;
    ++show_progress ;
  }

  return 0 ;
}
&lt;/pre&gt;
在大約有 70% 的 element 被插入時，progress_display 會顯示
&lt;pre&gt;
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
************************************
&lt;/pre&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/3746288747540467641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/3746288747540467641'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/04/c-test.html' title='Boost Libraries: Timer'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-1084265726641958418</id><published>2007-04-02T20:04:00.000+08:00</published><updated>2007-04-06T21:45:52.382+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><category scheme="http://www.blogger.com/atom/ns#" term="google"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>google code prettify</title><content type='html'>這幾天一直在找在 &lt;a href=&quot;http://www.bloglines.com/&quot;&gt;blogger&lt;/a&gt; 上面可以讓貼程式碼比較方便的辦法，最後在 &lt;a href=&quot;http://www.dreamprojections.com/SyntaxHighlighter/&quot;&gt;dp.SyntaxHighlighter&lt;/a&gt; 和 &lt;a href=&quot;http://code.google.com/p/google-code-prettify/&quot;&gt;google-code-prettify&lt;/a&gt; 之間我選擇了 google code prettify。&lt;br /&gt;&lt;br /&gt;

&lt;a href=&quot;http://code.google.com/p/google-code-prettify/&quot;&gt;google-code-prettify&lt;/a&gt; 的使用相當簡單，首先先去&lt;a href=&quot;http://code.google.com/p/google-code-prettify/downloads/list&quot;&gt;下載網頁&lt;/a&gt;上面抓下它的 CSS 和 js 檔案，上傳到網頁空間。接著在網頁前面加上：&lt;br /&gt;

&lt;pre class=&quot;prettyprint&quot;&gt;
&amp;lt;link href=&quot;prettify.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;prettify.js&quot;&gt;&amp;lt;/script&gt;
&lt;/pre&gt;

其中，prettify.css 和 prettify.js 這兩個檔案必須更改正確的路徑。接著，在 body 這個 tag 加上 onload=&quot;prettyPrint()&quot;，這樣就完成了設定的動作。
&lt;br /&gt;&lt;br /&gt;
當你要將某段 code 貼上時，你只要將要貼上的 code 以 &amp;lt;pre class=&quot;prettyprint&quot;&gt;...&amp;lt;/pre&gt;包起來，就可以達到 syntax highlight 的效果。</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/1084265726641958418/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/1084265726641958418' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1084265726641958418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/1084265726641958418'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/04/google-code-prettify.html' title='google code prettify'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-3210173870987135303</id><published>2007-01-30T11:23:00.000+08:00</published><updated>2007-04-06T21:48:03.279+08:00</updated><title type='text'>SAD</title><content type='html'>人的生命實在是很脆弱，經不起一下撞擊。希望大家都可以注意交通安全。&lt;br /&gt;&lt;br /&gt;

那時候在電視上看到 7-11 的廣告，馬上就去查了她的資料。後來看到她出道之後還覺得自己眼光很不錯，想不到竟然會在他演藝事業要起飛的時候香消玉殞，想想實在讓人不勝欷噓。&lt;br /&gt;&lt;br /&gt;

以下的影片只能拿來懷念了…&lt;br /&gt;

&lt;embed src=&quot;http://www.youtube.com/v/zAkI81MhT4E&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;

&lt;embed src=&quot;http://www.youtube.com/v/BHtYFapBNlc&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;

&lt;embed src=&quot;http://www.youtube.com/v/mxuqOet5D7Y&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/3210173870987135303/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/3210173870987135303' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/3210173870987135303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/3210173870987135303'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/01/sad.html' title='SAD'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-4950647984484865141</id><published>2007-01-12T01:33:00.000+08:00</published><updated>2007-04-06T21:48:34.391+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Baseball"/><category scheme="http://www.blogger.com/atom/ns#" term="Giants"/><category scheme="http://www.blogger.com/atom/ns#" term="MLB"/><title type='text'>Bonds failed amphetamine test</title><content type='html'>才剛收完 Brian Sabean 這笨蛋給我們的新年禮物，接著 Bonds 又丟來了另外一份大禮。&lt;br /&gt;&lt;br /&gt;

根據&lt;a href=&quot;http://mlb.mlb.com/NASApp/mlb/news/article.jsp?ymd=20070111&amp;content_id=1777148&amp;vkey=news_mlb&amp;fext=.jsp&amp;c_id=mlb&quot;&gt;報導&lt;/a&gt;，&lt;a href=&quot;http://www.baseball-reference.com/b/bondsba01.shtml&quot;&gt;Barry Bonds&lt;/a&gt; 在去年的某項藥檢沒有通過，讓人意外的，不是 steroid，而是安非他命。&lt;br /&gt;&lt;br /&gt;

至於會測出安非他命反應的原因，Bonds 把它歸咎於他從 &lt;a href=&quot;http://www.baseball-reference.com/s/sweenma01.shtml&quot;&gt;Mark Sweeney&lt;/a&gt; 衣櫃當中拿的「某樣」東西，Sweeney 則說他的櫃子裡面並沒有所謂跟安非他命有關的「某種東西」。依照 Bonds 過去的紀錄來說，應該是他豪洨的機率比較大一點。畢竟稍微想想就知道，怎麼可能會莫名其妙的吃人家衣櫃裡面的東西呢？不過這件事情還沒有比較正式的報導出現，大部分都是差不多的內容，當事人也都沒有正式的發言，所以明天之後應該還會有更精確的消息吧。&lt;br /&gt;&lt;br /&gt;

Bonds 惹上的麻煩已經夠多了，據說現在合約一直搞不定的一部份就是如果 Bonds 要出庭而不能比賽，那麼薪水方面要怎麼算。不過當然也只是據說而已，實際怎樣也只有天曉得，好像也有人建議我們別跟 Bonds 簽約了，不過我看這個可能性應該是趨近於零，約是一定會簽，差別只不過合約長怎樣而已。&lt;br /&gt;&lt;br /&gt;

Update:&lt;br /&gt;
Bonds 有出來澄清，說他並沒有把這件事情怪罪於 Mark Sweeney 的身上。不過他並沒有否認他藥檢沒通過 orz</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/4950647984484865141/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/4950647984484865141' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/4950647984484865141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/4950647984484865141'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/01/bonds-failed-amphetamine-test.html' title='Bonds failed amphetamine test'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-5037775262314213106</id><published>2007-01-04T02:27:00.000+08:00</published><updated>2007-04-06T21:50:35.629+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Baseball"/><category scheme="http://www.blogger.com/atom/ns#" term="Giants"/><category scheme="http://www.blogger.com/atom/ns#" term="MLB"/><title type='text'>一個 Giants Fan 的新年願望</title><content type='html'>對 Giants Fans 來說，2006 年是很糟糕的一年。不僅僅這又是個沒有 playoff 的一年，再加上豬頭到不行的 GM，我們的未來看來前途或許不會是那麼的看好。人就是在狀況不好的時候會想要求助於神，那麼就讓我來許願吧：
&lt;ol&gt;
&lt;li&gt;鐵支我們沒辦法甩掉你，那就請你好好工作，少點 BS。就算你不小心砸鍋了，也請像個男人一  樣負起責任，別把過錯往隊友身上推。&lt;/li&gt;
&lt;li&gt;Bonds 我很高興你留下來了，所以請你在破了 Hank Aaron 的紀錄之後，繼續為你的家鄉努力打球。也請你別在大家努力拼戰的時候擺爛了，像個職業球員吧！&lt;/li&gt;
&lt;li&gt;Pedro Feliz 我知道選球從來不是你的專長，但是也請你別被那麼明顯的變化球給騙到。拜託少揮幾顆壞球吧！&lt;/li&gt;
&lt;li&gt;Barry Zito 你他媽的拿了那麼多錢，就算我知道不可能，也請你每年都拿個 18 勝來看看！好吧，我知道這是痴人說夢。不過許願不都是這樣子的嗎&lt;/li&gt;
&lt;li&gt;Ray Durham 我只希望你身體健康&lt;/li&gt;
&lt;li&gt;Matt Cain 希望你相信自己的 stuff，只要你把球順利的丟進去，沒幾個人打的到你的球&lt;/li&gt;
&lt;li&gt;Brian Sabean 我對你已經沒有任何期待，但是我還是希望你到這把年紀還是可以長些腦袋。不然什麼都不做也好，反正不做結果說不定會比較好一點&lt;/li&gt;
&lt;li&gt;其他的 Giants 球員，大家加油吧。我們等 playoff 還有 World Series 已經很久了！&lt;/li&gt;
&lt;/ol&gt;2007 年到底會是怎樣的一年還是未知數，只是以目前的狀況來看或許不是真的那麼樂觀。希望一切都是我多慮，在 2007 年鐵支不會 BS，Bonds 打球態度很好，Zito 拿 Cy Young Award，Feliz 不追打壞球，老頭們身體健康，Giants 拿到冠軍。我真心的希望如此！</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/5037775262314213106/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/5037775262314213106' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/5037775262314213106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/5037775262314213106'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2007/01/giants-fan.html' title='一個 Giants Fan 的新年願望'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-383497659328608053</id><published>2006-12-29T02:36:00.000+08:00</published><updated>2007-04-06T21:51:01.144+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Baseball"/><category scheme="http://www.blogger.com/atom/ns#" term="Giants"/><category scheme="http://www.blogger.com/atom/ns#" term="MLB"/><title type='text'>Zito&#39;s Giants deal worth about $18M per year</title><content type='html'>睡前就看到這種鳥蛋消息，怒的都睡不好了。
&lt;br /&gt;&lt;br /&gt;
根據 &lt;a href=&quot;http://sports.espn.go.com/mlb/news/story?id=2710389&quot;&gt;ESPN 的報導&lt;/a&gt;，我們跟 &lt;a href=&quot;http://www.baseball-reference.com/z/zitoba01.shtml&quot;&gt;Barry Zito&lt;/a&gt; 簽下了 18M/yr，總共七年的約。如果 Zito 在最後兩年可以投滿 400IP，或是最後一年可以丟滿 200IP，那麼還可以有第八年 18M 的 player option。也就是說這是一份至少七年 126M，最多有可能到八年 144M 的合約。
&lt;br /&gt;&lt;br /&gt;
當然，Zito 是個不錯的投手。而我們似乎也是需要補個先發投手。但是這兩件事情對在一起並不代表我們就要把 Zito 簽下來。尤其是當這份約長達七年的時候，就該仔細想想和一個投手簽七年的約風險會不會太大了一點？我完全不知道 Brian Sabean 在想什麼東西，他愛老兵或許有點道理，不過 Zito 這份約的意義何在？Sabean 你最好趕快給我出來解釋一下！！
&lt;br /&gt;&lt;br /&gt;
最後，這筆交易可以用 rotoworld 的評論來結尾：&lt;blockquote&gt;The Giants could stay afloat in the post-Barry Bonds era by spending $100 million-$120 million per year, but they&#39;re probably not going to build another great team with Brian Sabean at the helm.&lt;/blockquote&gt;
Sabean Sucks!!!</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/383497659328608053/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/383497659328608053' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/383497659328608053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/383497659328608053'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2006/12/zitos-giants-deal-worth-about-18m-per.html' title='Zito&#39;s Giants deal worth about $18M per year'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044399098156732237.post-4753801797738049444</id><published>2006-12-25T11:46:00.000+08:00</published><updated>2007-04-06T21:51:59.568+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Music"/><title type='text'>Last Christmas</title><content type='html'>聖誕節應景歌曲，Last Christmas。這首歌讓很多人唱過，原本的主唱是由 WHAM! 所唱。WHAM! 這個團體大家可能不熟，不過裡面的團員 George Michael 大家一定都知道。下面送上三個 Last Christmas 的版本，一個是原版的，另外則是我個人最喜歡的版本，Darren Hayes 版，最後是比較不一樣的搖滾版。

&lt;embed src=&quot;http://www.youtube.com/v/06rlB0Kw3fw&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;
&lt;embed src=&quot;http://www.youtube.com/v/Wt1mednJrwE&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;
&lt;embed src=&quot;http://www.youtube.com/v/HTBZJWZoNvY&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;

&lt;span style=&quot;font-weight:bold;&quot;&gt;Lyrics&lt;/span&gt;
&lt;pre&gt;
Chorus:

Last Christmas, I gave you my heart
But the very next day, You gave it away
This year, to save me from tears
I&#39;ll give it to someone special

Last Christmas, I gave you my heart
But the very next day, You gave it away
This year, to save me from tears
I&#39;ll give it to someone special

Once bitten and twice shy
I keep my distance but you still catch my eye
Tell me baby do you recognise me?
Well it&#39;s been a year, it doesn&#39;t surprise me

(Happy Christmas!) I wrapped it up and sent it
With a note saying &quot;I Love You&quot; I meant it
Now I know what a fool I&#39;ve been
But if you kissed me now I know you&#39;d fool me again

Chorus

(Oooh. Oooh Baby)

A crowded room, friends with tired eyes
I&#39;m hiding from you and your soul of ice
My God I thought you were someone to rely on
Me? I guess I was a shoulder to cry on
A face on a lover with a fire in his heart
A man undercover but you tore me apart
Oooh Oooh
Now I&#39;ve found a real love you&#39;ll never fool me again

Chorus

A face on a lover with a fire in his heart
(Gave you my heart)
A man undercover but you tore me apart
Next year
I&#39;ll give it to someone, I&#39;ll give it to someone special
special
someone
someone
I&#39;ll give it to someone, I&#39;ll give it to someone special
who&#39;ll give me something in return
I&#39;ll give it to someone
hold my heart and watch it burn
I&#39;ll give it to someone, I&#39;ll give it to someone special
I&#39;ve got you here to stay
I can love you for a day
I thought you were someone special
gave you my heart
I&#39;ll give it to someone, I&#39;ll give it to someone
last christmas I gave you my heart
you gave it away
I&#39;ll give it to someone, I&#39;ll give it to someone
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkr-note.blogspot.com/feeds/4753801797738049444/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1044399098156732237/4753801797738049444' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/4753801797738049444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044399098156732237/posts/default/4753801797738049444'/><link rel='alternate' type='text/html' href='http://dkr-note.blogspot.com/2006/12/last-christmas.html' title='Last Christmas'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01237352056606394680</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>