<?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: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-29424489</id><updated>2011-11-28T08:37:26.777+08:00</updated><category term='share'/><category term='linux note'/><category term='hacking linux kernel'/><category term='cygwin'/><category term='web'/><category term='journal'/><category term='latex'/><category term='vm in general'/><category term='dev'/><category term='testdrive'/><category term='network'/><category term='career'/><category term='lyx'/><category term='mumble'/><category term='hacking'/><category term='ms note'/><category term='ms activity'/><category term='google'/><category term='db'/><category term='life'/><title type='text'>Me, Myself, and Taco</title><subtitle type='html'>歡迎收看來自一個geek的胡言亂語。。。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default?start-index=101&amp;max-results=100'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>323</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-29424489.post-2480342171656836373</id><published>2010-12-15T16:33:00.001+08:00</published><updated>2010-12-15T16:36:44.872+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>修改CodeIgniter (aka. CI)使其能正確執行oci_bind_by_name所需步驟</title><summary type='text'>修改CodeIgniter (aka. CI)使其能正確執行oci_bind_by_name所需步驟：Step 1./system/database/DB_driver.php --&gt;line 293:--if (FALSE === ($this-&gt;result_id = $this-&gt;simple_query($sql)))++if (FALSE === ($this-&gt;result_id = $this-&gt;simple_query($sql, $binds)))line 440:--function simple_query($sql)++function simple_query($sql, $binds=FALSE)line 447:--return $this-&gt;_execute($sql);++return $this-&gt;_execute($sql, $binds);Step</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2480342171656836373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2480342171656836373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2480342171656836373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2480342171656836373'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/12/codeigniter-aka-ciocibindbyname.html' title='修改CodeIgniter (aka. CI)使其能正確執行oci_bind_by_name所需步驟'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5006808849270851082</id><published>2010-12-09T16:34:00.002+08:00</published><updated>2010-12-09T16:40:08.711+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>Generate setter/getter for PHP in Eclipse</title><summary type='text'>很久沒發文了，慶祝今天找到個快速產生setter/getter的套件，特別上來分享一下！話說使用Eclipse開發Java class時在變數上點右鍵後選source即可看到自動產生setter/getter的選項，但開發PHP class時卻沒有這項貼心的功能～詢問Google老師之後看到了很多做法，其中不乏自行編輯Eclipse的template for auto code completion，但是最讚的莫過於PHP source plugin這個套件，裝完之後Eclipse的toolbar上會出現"PHP Source"，點下去即可選擇要產生特定變數的Getter/Setter :-)下面的URL是該套件的官方網站：http://pdt.plugins.e-surf.pl/features.php裡面有screenshot供人瞻仰。。。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5006808849270851082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5006808849270851082' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5006808849270851082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5006808849270851082'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/12/generate-settergetter-for-php-in.html' title='Generate setter/getter for PHP in Eclipse'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1001129494361685547</id><published>2010-05-22T09:43:00.008+08:00</published><updated>2010-05-22T10:46:30.656+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='share'/><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>紅酒"蒸"牛肉～</title><summary type='text'>醞釀許久的煮飯魂終於在今天得到實現了～參考前人的食譜（http://www.wretch.cc/blog/QLynnQ/7273158）之後，昨天下班後直奔sogo復興館B2的生鮮超市買了以下食材：經過一整個晚上的浸泡，牛肉散發出迷人的香氣，放到鍋子裡稍微煎過之後更是香氣四溢！牛肉起鍋後不用洗鍋子，直接把洋蔥放下去拌炒，接著再把紅蘿蔔與洋菇放下去一起炒，接著把蕃茄切塊丟進去煮成天然番茄醬，理論上現在應該就要把浸牛肉的紅酒倒進去悶煮，但有鑒於紅酒存量不足，於是拿水代替～然後加入鹽，黑胡椒，香料攪拌調味將煮好的醬汁與起鍋的牛肉混合後把之前保存下來的紅酒肉汁一併加到鍋內再加點鹽、黑胡椒、香料就可以放進電鍋裡蒸了（為了確保蒸得夠久，我在電鍋的外鍋放了三碗水）！最後就是清理環境，打完收工，等著吃飯囉～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1001129494361685547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1001129494361685547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1001129494361685547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1001129494361685547'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/05/blog-post.html' title='紅酒&quot;蒸&quot;牛肉～'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_rQtQ8dROuIs/S_c89wQhdMI/AAAAAAAAHnw/JlvqQ-wFKzY/s72-c/food_01.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1386785793377408189</id><published>2010-03-19T23:20:00.001+08:00</published><updated>2010-03-19T23:25:35.798+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>等一下就下車</title><summary type='text'>搭捷運的時候很常聽到"等一下就下車"，今天早上不免俗的又聽到了～很奇怪，看到行動不便的人讓座是很正常的一件事，為什麼要用"等一下就下車"當做理由呢？還是說"等一下沒有要下車"就不打算讓坐，如果是這樣，幹麻還假惺惺的讓座呢？反正等一下你下車自然會空出一個座位啊！真是莫名奇妙～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1386785793377408189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1386785793377408189' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1386785793377408189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1386785793377408189'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/03/blog-post.html' title='等一下就下車'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8738433537518775599</id><published>2010-03-13T23:10:00.002+08:00</published><updated>2010-03-13T23:13:45.653+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='share'/><title type='text'>指定Eclipse使用JDK執行</title><summary type='text'>Symdrome:The Maven Integration requires that Eclipse be running in a JDK,  beacuase a number of Maven core plugins are using jars from the JDK.Please make sure the -vm options in eclipse.ini is pointing to a JDK and  verify that Installed JREs are also using JDK installs.Solution:在eclipse.ini的最開頭（一定要在最開頭，而且-vm之後要換行！）加上jdk裡面javaw.exe的完整路徑，如下：-vmC:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8738433537518775599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8738433537518775599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8738433537518775599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8738433537518775599'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/03/symdrome-maven-integration-requires.html' title='指定Eclipse使用JDK執行'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1345917114406406064</id><published>2010-03-07T09:08:00.003+08:00</published><updated>2010-03-07T09:15:20.593+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>Servicemix 3.3.1最常見的build error &amp; solution</title><summary type='text'>先給sulution：http://cwiki.apache.org/SM/discussion-forums.html#nabble-tt25602583|a25603368再給syndrome：error: error reading[Home_Dir]\.m2\repository\org\springframework\spring-dao\2.0.6\spring-dao-2.0.6.jar;error in opening zip file重點是error in opening zip file！根據官方說法，是被3rd party的東西影響到的，所以我們只需要將solution提供的repository加入pom.xml的repositories裡，再將zip file的目錄刪除，以上面的syndrome為例 --&gt; [Home_Dir]\.m2\repository\</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1345917114406406064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1345917114406406064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1345917114406406064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1345917114406406064'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/03/servicemix-331build-error-solution.html' title='Servicemix 3.3.1最常見的build error &amp; solution'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-6178338450948325022</id><published>2010-03-04T16:30:00.002+08:00</published><updated>2010-03-04T16:40:33.795+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>不喜歡照著manual還做不出來的感覺！</title><summary type='text'>Open source的東西這就是這樣。。。照著manual做還不一定能得到相同的結果！http://servicemix.apache.org/building.html已經是從SVN checkout src出來，還是在build的過程中得到這樣的錯誤訊息：[INFO] Error building POM (may not be this project's POM).Project ID: null:servicemix-utils:bundle:1.1.0Reason: Cannot find parent: org.apache.servicemix:servicemix-pom for project: null:servicemix-utils:bundle:1.1.0 for project null:servicemix-utils:bundle:</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/6178338450948325022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=6178338450948325022' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6178338450948325022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6178338450948325022'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/03/manual.html' title='不喜歡照著manual還做不出來的感覺！'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3897763498316672823</id><published>2010-02-24T07:16:00.003+08:00</published><updated>2010-02-24T07:32:25.239+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>眉眉角角～</title><summary type='text'>今天終於解決了一個延宕多時的問題 --&gt; 在我的機器上始終無法執行ANT！C:\Documents and Settings\Administrator&gt;ant這個時候不應有 Files\Apache。上Google找了很多次也找了很久始終找不到答案（居然有Google找不到的東西！），在百般無奈下只好再度把manual翻出來看，終於在仔細研讀後看到了這麼一段話 Windows Note:    The ant.bat script makes use of three environment variables - ANT_HOME,  CLASSPATH and JAVA_HOME. Ensure that ANT_HOME and JAVA_HOME variables are  set, and that they do not have quotes (either ' or </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3897763498316672823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3897763498316672823' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3897763498316672823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3897763498316672823'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2010/02/blog-post.html' title='眉眉角角～'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5167110727092611221</id><published>2009-08-16T20:49:00.003+08:00</published><updated>2009-08-16T21:15:40.802+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='share'/><title type='text'>Pixar展覽日</title><summary type='text'>今天跟chtsai與信安一行人到台北市立美術館看pixar 20周年展覽，沒想到人超多，買預售票還要排大概一小時，現場買票要等兩小時～整個展覽中我最喜歡的是那些上面寫滿密密麻麻註記的手稿，還有製作流程的說明影片，感覺上跟我們做系統文件差不多，只是歡樂多了！為了不破壞各位參觀的興致，就不說得太仔細了，不過當然要不免俗地放一些在入口及出口拍的紀念照。最後推薦大家去看看，可以晚一點再去，如果堅持要現在（週末）去的話就要做好跟一堆人擠＆排隊的心理準備～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5167110727092611221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5167110727092611221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5167110727092611221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5167110727092611221'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/08/pixar.html' title='Pixar展覽日'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_rQtQ8dROuIs/Sof_OTqvpAI/AAAAAAAAE5g/h0BI4ARTa-M/s72-c/DSC01152.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7339881366014692629</id><published>2009-08-11T15:35:00.002+08:00</published><updated>2009-08-11T15:39:06.865+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>tar + exclude</title><summary type='text'>長久以來都是整個目錄tar起來，還沒有真的用過exclude功能，嘗試了一下之後發現exclude除了要帶路徑之外還要再加上個*，不然想exclude的路徑一樣會被tar起來。這樣子是不會work2的：tar czf auto_import.tar.gz --exclude="auto_import/csv_files/" --exclude="auto_import/tmp_csv/" auto_import這樣子才對：tar czf auto_import.tar.gz --exclude="auto_import/csv_files/*" --exclude="auto_import/tmp_csv/*" auto_import</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7339881366014692629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7339881366014692629' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7339881366014692629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7339881366014692629'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/08/tar-exclude.html' title='tar + exclude'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2671237237488819721</id><published>2009-08-10T14:48:00.001+08:00</published><updated>2009-08-11T15:39:34.538+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='db'/><title type='text'>擴充sqlldr的容錯值</title><summary type='text'>使用sqlldr將資料倒進DB的時候Oracle預設只要遇到50比錯誤的資料就會停止import，若想將容錯值擴充為大於50，可以使用errors這個參數，範例如下：/u01/app/oracle/product/10.2.0/db_1/bin/sqlldr control=./ctl_files/vp_tb_vasmd_cdrinfo.ctl errors=10000000 log=./log_files/vp_tb_vasmd_cdrinfo.log userid=foak/qazwsx direct=true</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2671237237488819721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2671237237488819721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2671237237488819721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2671237237488819721'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/08/sqlldr_10.html' title='擴充sqlldr的容錯值'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5200550464424342195</id><published>2009-08-02T22:24:00.004+08:00</published><updated>2009-08-02T23:02:18.294+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><category scheme='http://www.blogger.com/atom/ns#' term='db'/><title type='text'>Use Google Spreadsheet as DB</title><summary type='text'>每天都有新鮮事！今天的新鮮事則是發現可以把Google spreadsheet拿來當作DB用～下面兩個links有蠻詳盡的說明：http://ouseful.wordpress.com/2009/05/14/querying-a-google-spreadsheet-of-mps-expenses-data-so-who-claimed-for-biscuits/http://ouseful.wordpress.com/2009/05/18/using-google-spreadsheets-as-a-databace-with-the-google-visualisation-api-query-language/我在試的時候發現如果想要用修改URL方式將spreadsheet拿來當作DB用，光是到spreadsheet的[Share]中設定Get the link to share.</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5200550464424342195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5200550464424342195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5200550464424342195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5200550464424342195'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/08/use-google-spreadsheet-as-db.html' title='Use Google Spreadsheet as DB'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1581691074418840161</id><published>2009-07-25T15:34:00.003+08:00</published><updated>2009-07-25T15:45:17.141+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><title type='text'>putty tunnel</title><summary type='text'>本篇為log...如果辦公室有擋特定網頁或是即時通訊軟體，如果不算現在正流行的3G網卡（在地下室就收不到訊號了），通常的解決方式是拿家裡的一台電腦來裝VPN server或是用putty開個tunnel做跳板，我因為懶得研究VPN server怎麼設定，所以決定採用我熟悉的putty～已經有很多網頁在說明如何設定putty，所以就不浪費網路資源了：http://cha.homeip.net/blog/archives/2006/01/putty_ssh_tunne.html但是除了設定putty外，要拿來當跳板的電腦還要有個proxy，這個部份也已經有很多網頁說明：http://www.ubuntugeek.com/how-to-setup-transparent-squid-proxy-server-in-ubuntu.html當proxy server安裝設定完畢，putty</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1581691074418840161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1581691074418840161' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1581691074418840161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1581691074418840161'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/07/putty-tunnel.html' title='putty tunnel'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-6484050941098171069</id><published>2009-06-30T10:50:00.008+08:00</published><updated>2009-11-09T13:42:58.516+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vm in general'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>山不轉路轉</title><summary type='text'>上一篇寫到要如何用Network Namespaces + Vconfig來做到只用一台電腦與一張PCI網卡就可以監控使用相同IP網段的多個VLAN，結果發現從獨立namespace發出帶有VLAN ID的封包始終無法成功的送到網路上，經過整整一個星期的思考，在iptables &amp; ip route之間穿梭，卻找不到一個可以把封包丟出去的方法。。。在我勤奮不懈的努力之下，洗澡的時候忽然有個"Multiple routing table"的想法閃過腦中，於是踏出浴室之後馬上google Linux是否有這種東西＆要怎麼用，話說天救自救者，就這樣給我試出來了，哇哈哈哈！有興趣的人可以用下面的script試一下：+--NS2:------------------------------------------------./ns_exec -nm -- /bin/bashecho $$+---</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/6484050941098171069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=6484050941098171069' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6484050941098171069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6484050941098171069'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/06/blog-post.html' title='山不轉路轉'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2379718930624445693</id><published>2009-06-23T18:15:00.011+08:00</published><updated>2009-11-09T13:42:43.952+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Linux Container (Network Namespaces) + 802.1q (vconfig) + screen</title><summary type='text'>今天要作筆記的對象是Virtual VLAN interface，虛擬化已經從最早的虛擬電腦（Vmware/Virtual PC/Qemu/Virtual box/Xen/KVM...etc）演進到虛擬switch（Virtual route forwarding enabled switch），虛擬的的Network interface其實也存在好一陣子（eg. IP alias），不過虛擬的VLAN interface倒是很少見。雖然在2004年有人寫了個linux-vrf的patch，讓我們在Linux下可以透過chvrf這個工具指定某個process要透過哪張虛擬的VLAN interface對外丟封包，只不過該patch只支援到2.6.8版的Linux kernel（等同於Fedora Core2時代），那麼新版的Linux用戶該怎麼辦呢？沒關係，待我細細道來。首先要先介紹</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2379718930624445693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2379718930624445693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2379718930624445693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2379718930624445693'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/06/linux-container-network-namespaces.html' title='Linux Container (Network Namespaces) + 802.1q (vconfig) + screen'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2758230621807345902</id><published>2009-06-13T22:29:00.004+08:00</published><updated>2009-06-23T18:35:21.939+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Update一下</title><summary type='text'>很久沒寫blog了，所以想說來字好了。晚上在看HBO播放的Across the universe時忽然有種"現在的台灣 = 越戰時的美國"的感覺。。。BTW，今天發現開發Xoops module其實很簡單！ :-)</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2758230621807345902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2758230621807345902' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2758230621807345902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2758230621807345902'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/06/update.html' title='Update一下'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-9053733920918136030</id><published>2009-04-01T19:54:00.003+08:00</published><updated>2009-04-01T20:02:20.870+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>檔名過長怎麼辦？</title><summary type='text'>今天遇到個很機車的問題，因為檔案名稱/路徑過長而無法刪除，試著rename但是連rename都失敗，如下：C:\ProgramFiles\IBM\WebSphere\AST\updater\workspace\proxies\eclipse\features\updater.ast.fixpack.constellation.1005_1.0.0\backup\files\eclipse\plugins\com.ibm.datatools.db2.luw.serverdiscovery_1.0.0.v200610132104\com\ibm\datatools\db2\luw\serverdiscovery&gt;move model* a檔名或副檔名太長。還好找到這篇blog解救了我，始用到的是方法三：方法3首先先挑一個沒在用的磁碟機編號，例如 Tsubst T: .T:rename "</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/9053733920918136030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=9053733920918136030' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/9053733920918136030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/9053733920918136030'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/04/blog-post.html' title='檔名過長怎麼辦？'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7631215758716250215</id><published>2009-02-03T21:11:00.007+08:00</published><updated>2009-02-24T12:02:29.064+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>Oracle 10g and SQuirrel SQL</title><summary type='text'>是的，今天要討論的是題目就是建立Oracle 10g database然後用免費的SQuirrel SQL連線進行檢視或修改。安裝Oracle 10g十分容易因此不在這裡贅述，唯一要說明的是只要安裝Oracle 10g即可，不要勾選"建立起始資料庫"，這樣可以節省不少空間。安裝完之後點選[開始] -&gt; [所有程式] -&gt; [Oracle - OraDb10g_home1] -&gt; [組態設定核轉移工具] -&gt; [資料庫組態輔助程式] （aka. DBCA）有了這個幫手讓建立資料庫不再是難事，google上有很多介紹如何使用command line建立資料庫的連結，實際上跟著做過之後就會發現其實手續十分繁雜～花點腦筋依序按下"下一步"之後資料庫就建立好了，這裡要注意的是請記得SID，之後的很多地方都會用到。資料庫建立好了不代表我們現在就可以連到資料庫，接著我們需要建立並設定Network </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7631215758716250215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7631215758716250215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7631215758716250215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7631215758716250215'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/02/oracle-10g-and-squirrel-sql.html' title='Oracle 10g and SQuirrel SQL'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2328694336475700374</id><published>2009-01-31T23:52:00.006+08:00</published><updated>2009-02-01T00:16:08.490+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>巧遇～</title><summary type='text'>繼上次（應該是2004年吧）在西門町巧遇藍小慧之後今天又在西門町遇到了從澳洲回台灣過年的大學同學（Cathy）以及在台灣工作但是很久沒有聯絡的學弟（Richard）。。。有圖有真相：Cathy加上我加上RichardCathy買東西去了，所以只剩我們三個人的合照（加上Kevin）</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2328694336475700374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2328694336475700374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2328694336475700374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2328694336475700374'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/blog-post_31.html' title='巧遇～'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_rQtQ8dROuIs/SYRxKXJiTbI/AAAAAAAACeQ/9ie72ju5ARg/s72-c/DSC00656.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-9028230754028299075</id><published>2009-01-31T08:24:00.003+08:00</published><updated>2009-01-31T10:53:49.286+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vm in general'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>vmware-vdiskmanager -- final</title><summary type='text'>避免昨天參考的連結哪天突然變成broken link，今天還是決定上來做個筆記：[vmware-vdiskmanager的完整路徑] -x [擴充後的容量]GB [VMDK的完整路徑]// [擴充後的容量]並不是所有的數字都可被接受，例如昨天我放20失敗，改用21嘗試後便成功檢查/dev/下面是不是有新的sda#，sdb#，或是類似的裝置出現，接著將新增的裝置帶入下面的指令中fdisk /dev/sda在console的互動環境中建立新的partition（n）並將filesystem type改成LVM適用的8e，完成後先將改變存回partition table中（w）再離開// #為數字// 如果直接輸入fdisk得到查無指令的訊息，請在前面加上/sbin/再試試看，以下的指令都適用重新開機 or 執行partporbe（就不需要重開機）pvcreate /dev/sda#</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/9028230754028299075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=9028230754028299075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/9028230754028299075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/9028230754028299075'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/vmware-vdiskmanager-final.html' title='vmware-vdiskmanager -- final'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2881130062342373732</id><published>2009-01-30T16:53:00.004+08:00</published><updated>2009-01-30T17:44:04.995+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vm in general'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>vmware-vdiskmanager -- continued</title><summary type='text'>昨天使用vmware-vdiskmanager增加vmware image的容量之後其實事情還沒有結束，因為對於Linux來說有用的磁碟空間仍舊沒有改變，因為我採用LVM的方式規劃硬碟，所以參考了下面兩個連結完成增加vmware disk space的後續動作：http://www.global-domination.org/forum/viewtopic.php?t=750&amp;sid=4b727581d6dbb199087becdd4c9fb31chttp://www.swizzling.org/2008/04/01/expand-lvm-disk-on-linux-in-vmware/其實上面的兩個連結內容大同小異，要說明的地方只有：第一個連結中寫到"Add *n*ew partition 3 as primary, change to LVM *t*ype (8e) "，這裡將新增的</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2881130062342373732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2881130062342373732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2881130062342373732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2881130062342373732'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/vmware-vdiskmanager-continued.html' title='vmware-vdiskmanager -- continued'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2250817588387938004</id><published>2009-01-29T20:50:00.003+08:00</published><updated>2009-01-30T12:12:19.301+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vm in general'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>vmware-vdiskmanager</title><summary type='text'>之前在vmware中裝了個測試平台專門用來處理資料庫相關的嘗試與測試作業，隨著raw data與日俱增，原先設定為20G的vmware disk也不太夠用，google之後發現了增大已存在的vmware disk空間的指令與用法，現在趕快寫下來備忘一下："c:\Program Files\VMware\VMware Server\vmware-vdiskmanager.exe" -x 42.0Gb "c:\Virtual Machines\Red Hat Linux\Red Hat Linux.vmdk"其中的-x 42.0Gb指的是希望將原先的vmware disk增加到42GbPS. 要注意的是這個指令只能用在增加vmware disk上，想減少？抱歉，辦不到！儼然就像要變胖的人瘦回原先的樣子一樣  ＠＠</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2250817588387938004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2250817588387938004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2250817588387938004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2250817588387938004'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/vmware-vdiskmanager.html' title='vmware-vdiskmanager'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7127424212181077148</id><published>2009-01-27T17:38:00.003+08:00</published><updated>2009-01-27T17:47:45.553+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Ironic</title><summary type='text'>今天用google確認我沒有把"ironic"拼錯的時候發現了其中一個連結連到了由ALANIS MORISSETTE所演唱的Ironic，這首歌收錄在由Warner Brothers於1995年發行的JAGGED LITTLE PILL專輯中，話說當年在NZ的時候還有買過這張CD呢～再度仔細看過歌詞之後發現不但歌曲名稱蠻符合我目前的處境，連其中的歌詞現在看來也顯得蠻貼切的："Well life has a funny way of sneaking up on youWhen you think everything's ok and everythings going right"（這算是傳說中的"樂極生悲"嗎？）希望另一句歌詞能夠在不久的將來也變得貼切："And life has a funny way of helping you out whenYou think </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7127424212181077148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7127424212181077148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7127424212181077148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7127424212181077148'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/ironic.html' title='Ironic'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2966536539401753665</id><published>2009-01-25T23:08:00.003+08:00</published><updated>2009-01-25T23:21:07.707+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>新年快樂 to ALL</title><summary type='text'>這是我第一次覺得在過年時許願一點也不準，記得我第一次在過年時許願是工作的第一年，當時正在準備研究所甄試，於是當然許了希望能夠順利錄取，結果也的確天從人願。第二次許願是研究所即將畢業的時候，當時的老闆十分硬，於是便許了希望能夠順利畢業，雖然過程十分坎坷，但是結果也算是盡如人意。第三次是入伍後，相信當過兵的人都聽過"只有平安退伍才是真的"這句話，因此我當然也許了希望能夠平安退伍，只是後來想想退伍後總該要有個工作吧？因此又多許了希望能夠找到喜歡的工作，而這兩件事情都很幸運的實現了，首先退伍時我還是個健健康康，活蹦亂跳的人，再來便是在退伍前已經確定退伍後的頭路。難道是因為"事不過三"嗎？亦或是因為去年太貪心一次許了兩個願？還是因為這個願望從以前到現在都沒有中斷過（只是沒說出來而已）所以造成了今年決定拿出來認真許一下的願望馬上就事與願違。。。不過該慶幸的是今天是除夕夜，過了今天又是新的一年！人嘛，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2966536539401753665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2966536539401753665' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2966536539401753665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2966536539401753665'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/to-all.html' title='新年快樂 to ALL'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4297286061896694742</id><published>2009-01-16T14:22:00.005+08:00</published><updated>2009-01-16T14:41:12.880+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>Now, Discover Your Stengths</title><summary type='text'>最近在看一本名為"Now, Discover Your Stengths"的書，中文翻譯成＂發現我的天才＂，這本書是在上次參加BTC training時同事推薦的，其中有一些蠻有趣的觀點質得大家細細品味與思考。其中最有趣的觀點是"practices make perfect"這句話其實不完全正確，practices正確的東西（strengths）才會make perfect，practices不正確的東西（weakness）只是充其量在做損害控制而已，試問一家光做損害控制的公司怎麼可能賺錢呢？很多人喜歡拿愛因斯坦不善言詞的例子來說明"practices make perfect"，但是大家都忘了愛因斯坦的成就在於E = MC2，而不是成為演說家！總之，大家有機會的話可以看看 :-)</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4297286061896694742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4297286061896694742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4297286061896694742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4297286061896694742'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/now-discover-your-stengths.html' title='Now, Discover Your Stengths'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-6474606520362282201</id><published>2009-01-15T17:00:00.004+08:00</published><updated>2009-02-18T06:11:29.385+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Tomcat &amp; /etc/hosts</title><summary type='text'>今天終於解決了一樁千古懸案 --&gt; 啟動Tomcat之後就無法關閉。之前一直以為是客戶IT的機車firewall規則造成的，後來在以色列同仁詢問我無法啟動Tomcat的原因時一並附上的error log中找到了關鍵字"Cannot assign requested address"，上google搜尋之後發現原來是/etc/hosts沒有設定好（因為之前主機換地方所以IP也換了，但是忘了改/etc/hosts）。至於完整解得請參考這裡</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/6474606520362282201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=6474606520362282201' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6474606520362282201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6474606520362282201'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2009/01/tomcat-etchosts.html' title='Tomcat &amp; /etc/hosts'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8849777010385860468</id><published>2008-12-31T22:30:00.002+08:00</published><updated>2008-12-31T22:33:57.672+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>bye 2008</title><summary type='text'>難得有一年的最後一天不是在打電動中度過，然而卻是更慘的看著電視卻不在意螢幕上在撥什麼節目的狀況下度過！恩，現在應該是在演灌籃高手，看到櫻木花道讓我有種"我會不會跟櫻木花道一樣被拒絕50次"的奇妙感覺＠＠感謝killer大大與chstai適時的打電話傳送一絲絲的溫暖，揪甘心耶～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8849777010385860468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8849777010385860468' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8849777010385860468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8849777010385860468'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/bye-2008.html' title='bye 2008'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8824146060650501615</id><published>2008-12-31T05:38:00.003+08:00</published><updated>2008-12-31T05:46:38.197+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>淺眠中。。。等待開獎</title><summary type='text'>等待真的會讓時間變長，愛因斯坦果然是先知，雖然明天才開始，但這種感覺真的不是很好，很久沒有睡一兩個小時就醒來一次還外加做些奇怪的夢，上次出現這種狀況是剛入伍的時候，因為擔心睡過頭錯過集合時間，再上一次是大二時考MM2（Mathematics Modeling 2）的時候夢到自己被當掉，根據經驗法則，結局應該不會太差才是～希望如此吧！Trying very hard to be the man of his words...</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8824146060650501615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8824146060650501615' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8824146060650501615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8824146060650501615'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/blog-post.html' title='淺眠中。。。等待開獎'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2314434620637310133</id><published>2008-12-29T14:50:00.002+08:00</published><updated>2008-12-29T14:58:55.754+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>寫網頁的好幫手 -- XML, CSS, XSL</title><summary type='text'>是的，今天要討論的東西就是網頁！以前寫網頁總是寫得很累，幾乎每個地方都是自己寫code產生html語法兜出來的，雖然知道有template這種東西，但總是懶得用。最近幾天在看XML的時候忽然發現以前會這麼累不是沒有原因的，那就是沒有善用style sheet。XML跟style sheet要怎麼用呢？&gt;&gt;&gt;請看這裡&lt;&lt;&lt;</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2314434620637310133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2314434620637310133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2314434620637310133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2314434620637310133'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/xml-css-xsl.html' title='寫網頁的好幫手 -- XML, CSS, XSL'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-929462586161360976</id><published>2008-12-21T16:37:00.014+08:00</published><updated>2008-12-21T17:17:57.353+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>VIM:TOhtml測試</title><summary type='text'>以下是用VIM的TOhtml script產生出來的code in html。 1 #include &lt;pthread.h&gt; 2 #include &lt;stdio.h&gt; 3  4 int debug = 0; 5  6 struct aaa { 7     int     a; 8     int     b; 9     char    c;10 };11 12 int main(int argc, char *argv[]) {13     printf("%d\n", (size_t) &amp;((struct aaa *)0)-&gt;c);14     return 0;15 }需要複製的部份有script與pre兩個blocks，需要注意的地方有以下幾點：將script複製到blogger html template的head block中要把script block中的comment </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/929462586161360976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=929462586161360976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/929462586161360976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/929462586161360976'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/vimtohtml.html' title='VIM:TOhtml測試'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2259719854398620110</id><published>2008-12-21T15:06:00.006+08:00</published><updated>2008-12-21T23:06:04.656+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Playboy與阿宅的心情</title><summary type='text'>最近，我慢慢開始可以了解為什麼傳說中的playboy會出現在你我周遭並搞得大家人仰馬翻。我想，最大的原因應該是來自於對感情的不安全感吧！因為覺得不安全，所以東拉西扯的抓了一堆在手裡，但是卻又是人人有機會，各個沒把握。最後就變成跟每個人都搞上一點曖昧的playboy～但是playboy卻又不是人人當得起。於是，當不成playboy的人都變成了傳說中的阿宅，就像變不成天鵝的萬年醜小鴨！Playboy與阿宅的另一個共通點應該就是只能在夜深人靜的時候輕嘆著：唉，逼唉阿～以下是不想成為playboy或阿宅的人：渡輪上八里左岸公園情人橋（漁人碼頭）淡水</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2259719854398620110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2259719854398620110' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2259719854398620110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2259719854398620110'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/playboy.html' title='Playboy與阿宅的心情'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_rQtQ8dROuIs/SU0FtkSPBKI/AAAAAAAABw8/H1-xFUCg2zo/s72-c/DSC00386.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2038359684607912489</id><published>2008-12-20T08:21:00.003+08:00</published><updated>2008-12-23T05:49:18.991+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>2008 Year End Party</title><summary type='text'>昨天是本公司的尾牙，主題是"愛變"也是本公司名稱的諧音，同時的確也有很多東西與往年的尾牙不同，例如絕大部分的節目是由員工＆老闆擔綱演出，用餐方式從buffet改成桌菜，還有最重要的一點，今年的頭獎是轎車一部（Honda Fit 1.5）！廢話不多說，請看以下的當天實錄：我們五點半從基隆路出發，原本以為會是前幾個到的，沒想到還坐在小黃上的時候就有探子回報說"你們在哪裡阿？都快坐滿了！"，抵達現場的時候果然已經大排長龍～進到會場之後的第一個感覺是"跟直銷公司的宣傳大會還蠻像的"，請原諒我第一次參加這麼大型的尾牙＠＠，尾牙開始之前電視牆上撥著今年公司活動的剪影。信安你不用躲了（其實我是在照後面的老闆 :-p）接著與最近做案子常遇到的人合影PM大大etc...菜單（普通）節目表活動終於開始 :-)台灣大老闆Sophia Tong上菜啦！當晚的節目海報最後抽頭獎的場面，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2038359684607912489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2038359684607912489' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2038359684607912489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2038359684607912489'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/2008-year-end-party.html' title='2008 Year End Party'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_rQtQ8dROuIs/SUw3dLGSqRI/AAAAAAAABlU/zql67gAMMBc/s72-c/DSC00344.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-6995651721002226065</id><published>2008-12-14T10:04:00.004+08:00</published><updated>2008-12-14T11:01:13.014+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journal'/><title type='text'>2008兩廳院耶誕樹點燈</title><summary type='text'>昨天偕同友人到兩廳院去看耶誕樹點燈，原本很期待那顆高達"七公尺"的耶誕樹應該會很壯觀，只是親自到現場看過之後發現這顆"七公尺"的耶誕樹還頗令人失望的，跟前一天在101前面看到的耶誕樹比起來簡直小了一倍，而且表演舞台小了點@@，不過現場的氣氛倒是還不錯啦～以免費的活動而言，算是不錯了 ^^現場還有薑餅屋，當然是為了宣傳節目要順帶一提的是，昨天的月亮超級大，在天空的位置又很低，我跟友人都叫它"飛碟"！螳螂捕蟬黃雀在後，路人甲拍月亮我看友人拍路人甲～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/6995651721002226065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=6995651721002226065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6995651721002226065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6995651721002226065'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/2008.html' title='2008兩廳院耶誕樹點燈'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_rQtQ8dROuIs/SURpXWOabhI/AAAAAAAABjY/jwd_bqhutyE/s72-c/DSC00320.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5037359776642860048</id><published>2008-12-14T09:36:00.003+08:00</published><updated>2008-12-14T10:00:41.135+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>BTC Day 3</title><summary type='text'>已經上了兩天課居然忘了照一下會議室的門牌，先補上：BTC training的第三天算是整個課程的高潮，各組分別上台在分配到的情境下報告，第一組（本組）的狀況是在內部會議上被老闆電爆（還好以前接受過專業的被電訓練），第二組的狀況是客戶A的老闆出車禍眼睛受傷不能受到光的刺激（當然就沒有投影片可以用），第三組到客戶B（以free style的工作方式聞名業界）那邊，結果場面一片混亂，第四組基本上沒有什麼狀況，不過他們演了十分精采的"藍色鐵絲網"，以歡樂的方式結束final presentation session。以下就是第三組所遭遇到的混亂場面：一開始大家都還乖乖在座位上大家收到"老闆沒有要大家安靜之前都可以盡量high"的指令之後台下的觀眾就開始亂了看的出來台上的人很努力的想要控制場面但是似乎沒什麼效果不要懷疑，這是其中一張照片，只不過鏡頭被控制場面的人擋住了～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5037359776642860048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5037359776642860048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5037359776642860048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5037359776642860048'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/btc-day-3.html' title='BTC Day 3'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_rQtQ8dROuIs/SURgO0OojwI/AAAAAAAABgo/_EgS1dv9m4Y/s72-c/DSC00298.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2364294368075780894</id><published>2008-12-11T22:00:00.003+08:00</published><updated>2008-12-11T22:27:03.926+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>BTC Day 1 &amp; 2</title><summary type='text'>原本想說參加這三天（12/10 ~ 12/12）的training course可以好好的relax一下，沒想到就在第一天早上得知要relax是不太可能的～實際情況就看看以下的照片紀錄吧！Day1桌上堆滿凌亂的文件原本預期training會在五點準時結束，不過六點多的時候大家都還努力在做功課，同時把零食一掃而空本組的討論終於告一段落準備開始製作海報美術小組上場了很好，大家都很投入大家希望從這堂課得到的東西鐺鐺鐺鐺～美麗的海報出爐囉！完成於第一天7:45PMDay 2今天中午在一樓lobby的buffet用餐像個觀光客一樣拍個不停果然很有耶誕節的感覺這顆耶誕樹看起來還不錯左側走廊右側走廊剛剛有人在演奏時居然忘了拍＠＠今天當然當然又有group assignment證明本組十分有向心力這時候大家其實已經頭昏昏腦鈍鈍草稿之一終於完成今天的assignment，時間：8:20PM</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2364294368075780894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2364294368075780894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2364294368075780894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2364294368075780894'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/btc-day-1-2.html' title='BTC Day 1 &amp; 2'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_rQtQ8dROuIs/SUEcKnS2rFI/AAAAAAAABdU/p7BRwm2bcuE/s72-c/DSC00262.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1630705351368709582</id><published>2008-12-06T23:00:00.005+08:00</published><updated>2008-12-07T01:18:54.630+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journal'/><title type='text'>Family Day</title><summary type='text'>今天是2008年進入冬天之後合歡山第一次降雪，很巧的也是我們家的family day（that's right, yet another one），不過我們並沒有一窩蜂的往合歡山鑽，我的今天的目的地是位於台北市的 -- 陽明山！！！中午在半山腰（教師會館後面）用過午餐之後在一連錯過了幾個路口之後我們終於抵達今天健行的地點 -- 二子坪。下車後的第一個反應是[beep]！好冷，接下來映入眼簾的景象十分有趣：移山填海反共抗俄紀念碑 -- 正面第二＆四面第三面身為鄉民的我一定要合影留念一下！老爸說以後如果有大陸的客戶來台灣一定要帶他們到現場參訪（看來我爸也有成為鄉民的潛力～）為了證明先前說今天很冷並非話虎爛，因此決定附上真相：試問一個正常人怎麼會沒事跑去買熱飲呢？身為優良國民，為了響應政府刺激消費的政策，雖然明明已經吃過午餐還是要先吃個熱騰騰的肉粽暖身（小孩子最誠實了 ^^）（</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1630705351368709582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1630705351368709582' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1630705351368709582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1630705351368709582'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/family-day.html' title='Family Day'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_rQtQ8dROuIs/STqPOGebjkI/AAAAAAAABRc/-DKQmm3aGJw/s72-c/DSC00183.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8195996148335099416</id><published>2008-12-05T15:43:00.006+08:00</published><updated>2008-12-07T01:25:07.974+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>消失的JUnit GUI介面</title><summary type='text'>最近因為需要幫專案做壓力測試而稍微研究了一下JMeter（標題不是JUnit嗎？），JMeter除了能夠讓使用者自訂瀏覽網頁的動作之外還可以使用Proxy模式錄製test plan或是直接使用JUnit的test case/suite對web app進行功能與壓力測試。雖然使用Proxy模式就可以輕鬆建立出test plan，但是仍然缺少了些彈性與靈活度，於是想試試看使用結合JMeter + JUnit的做法。有鑒於最近一次使用JUnit是大三修Java課的時候，於是決定再花點時間看看JUnit（參考http://caterpillar.onlyfun.net/Gossip/JUnit/IntroduceJUnit.htm），第一步當然是先把介面跑起來，然而在我輸入"java junit.swingui.TestRunner"之後卻得到"</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8195996148335099416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8195996148335099416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8195996148335099416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8195996148335099416'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/junit-gui.html' title='消失的JUnit GUI介面'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rQtQ8dROuIs/STjhFat9uFI/AAAAAAAABPE/2EoHeJiGnLs/s72-c/JUnit_Eclipse.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7011930030475904250</id><published>2008-12-02T09:08:00.004+08:00</published><updated>2008-12-02T09:20:51.486+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Breakdown</title><summary type='text'>沒錯，今天的主題就是"Breakdown"～因為連續兩個週末我碰過的東西都故障了。。。首先是湯姆熊裡面的瘋狂小紅車，玩著玩著它就當機然後自動重開機，信安則在旁邊一邊幸災樂禍一邊把小紅車玩完。接著是家裡那台PC中的顯卡最近常常在重開機之後發生顯示頻率過高的錯誤造成螢幕無法顯示畫面，看在它盡心盡力的工作了六年，於是拍照留念一下。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7011930030475904250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7011930030475904250' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7011930030475904250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7011930030475904250'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/12/breakdown.html' title='Breakdown'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_rQtQ8dROuIs/STSMGXLmS0I/AAAAAAAABOQ/Bumk-JPgGBc/s72-c/DSC00154.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1542216028525219423</id><published>2008-11-23T08:58:00.008+08:00</published><updated>2008-11-23T20:22:36.143+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journal'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Hander退伍攤</title><summary type='text'>唯一一張有照到主角以上為離開薑母鴨店前在門口拍的以下為抵達螞蟻咖啡後拍的可可的3Q可可的Mocha不管怎麼看很明顯的，3Q比較可愛最後要感謝Lexelㄉㄉ，終於不辭辛勞地在凌晨兩點把我們送回台北 :-)</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1542216028525219423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1542216028525219423' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1542216028525219423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1542216028525219423'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/hander.html' title='Hander退伍攤'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_rQtQ8dROuIs/SSinjA3OV2I/AAAAAAAABJ8/NiFnhmFy5Ho/s72-c/DSC00131.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7604450780535509345</id><published>2008-11-17T17:01:00.007+08:00</published><updated>2008-11-23T20:24:04.126+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journal'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>苗栗二日遊--老爸的同學會</title><summary type='text'>外甥也參加了他阿公（我爸）的同學會這應該算是苗栗的地標之一（圓緣Motel）從民宿往外看的景色一從民宿往外看的景色二車隊在民宿集結中我們一共出動了12輛車我們住的民宿，空間十分寬敞，設備也很好台灣第一口油井所在地這就是傳說中的第一口油井More View下面是雪壩國家公園的遊客中心在傳統三合院中吃中飯傳說中可以看到魚躍龍門的地方，可是。。。來自三義的$65元牛肉麵（我點的是板條）</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7604450780535509345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7604450780535509345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7604450780535509345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7604450780535509345'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/blog-post_17.html' title='苗栗二日遊--老爸的同學會'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_rQtQ8dROuIs/SSE3YN_BPwI/AAAAAAAABG8/jU9ka1dNows/s72-c/DSC00045.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8175597024326953760</id><published>2008-11-13T12:23:00.002+08:00</published><updated>2008-11-13T12:34:06.560+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>[SQL] select distinct &amp; group by</title><summary type='text'>對於大部分的初學者（eg. Myself）來說，以下兩個SQL指令應該是差不多的：(1) select distinct a from table_a;(2) select a from table_a group by a;以上這兩個指令都是用來從table_a中找出a欄位的資料，而且結果中的每一筆資料都是不重複的，但是真正執行起來(1)與(2)的效能確有天差地遠的差別！對一個擁有78x萬筆資料的table（而且沒有index）而言，(1)執行了899分鐘之後還在執行中，(2)卻在1~2分鐘之內執行完畢。就在今天早上枯枯等待從昨天晚上就在執行的(1)吐出搜尋結果的時候忽然想到為什麼不試試看(2)呢？果然是山不轉路轉，馬上就得到想要的結果！於是又再一次的在好奇心的驅使下學到新事物 :-)</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8175597024326953760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8175597024326953760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8175597024326953760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8175597024326953760'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/sql-select-distinct-group-by.html' title='[SQL] select distinct &amp; group by'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3420712501204156304</id><published>2008-11-13T09:29:00.005+08:00</published><updated>2008-11-13T09:59:43.179+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>為國軍弟兄抱屈</title><summary type='text'>以上是 阿扁大總統（注意前面有空一格喔）浪費掉的伙食（源自http://udn.com/NEWS/NATIONAL/NATS1/4598945.shtml），果然連看守所裡面的嫌犯的伙食比保國為民（沒錯！是"為"民不是"衛"民）的國軍弟兄們吃的更好，看了讓我不禁為國軍弟兄抱屈～</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3420712501204156304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3420712501204156304' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3420712501204156304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3420712501204156304'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/blog-post_9551.html' title='為國軍弟兄抱屈'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SRuDAiK8EmI/AAAAAAAABGA/N0sAbInFv-s/s72-c/4598945-1977772.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5022119055666923793</id><published>2008-11-13T09:11:00.004+08:00</published><updated>2008-11-13T09:22:00.052+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>好文借轉</title><summary type='text'>借轉出自學運前輩之手的"給野草莓的一封信"。quotes:"不夠理性、判斷力的學生，很容易就被他們激發出來了。"所以應該整理出一份參加者名單，以後HR找人的時候可以避開這些地雷。"各位同學，講白一點，出來運動，腦筋要清楚，意志要堅定，目標要明 確，這才會帶種。今天你們被動員出來，老經驗的教授告訴你們，頂多就是被抬走不要怕（現在的人權怎麼比以前進步那麼多？），但你們有的人又是哭，又的又是 喊被打；各位同學，你們的表現，都在鏡頭面前一五一十呈現在國人的眼裏了，對照之前那些怵目驚心的暴動畫面，你們還有什麼理直氣壯告訴人民，今天我們要幫 你們爭取人權呢？"這裡像是看到一堆爛草莓不甘自己身價低要求政府/全民高價收購。最後，為了避免好圖流失，借轉今天看到的有趣新聞漫畫（原圖出自http://blog.udn.com/mykey/2379370）：</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5022119055666923793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5022119055666923793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5022119055666923793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5022119055666923793'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/blog-post_13.html' title='好文借轉'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rQtQ8dROuIs/SRuApCnTI5I/AAAAAAAABFw/UC3PAJ-kH1A/s72-c/f_2395980_1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2908717389586414452</id><published>2008-11-07T10:05:00.003+08:00</published><updated>2008-11-07T10:12:46.978+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>我看"英文 菜"單</title><summary type='text'>有"災條"動員為什麼不會先設想可能發生的狀況？規劃任何活動的時候除了正規劇本之外本來就應該還有很多套應變措施，而不是等活動搞雜了才找藉口塘塞，推卸責任，甚至指控他人。花這麼多力氣證明自己無辜只不過更顯示出事前考慮不週而已。"英文 菜"加油好嗎？不過套句少林功夫的台詞，有些人終究是"爛泥扶不上牆"，我想劣幣驅良幣的效應就要成真了。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2908717389586414452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2908717389586414452' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2908717389586414452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2908717389586414452'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/blog-post.html' title='我看&quot;英文 菜&quot;單'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-9187528777291700618</id><published>2008-11-07T09:24:00.004+08:00</published><updated>2008-11-07T09:45:54.167+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>Derby之schema does not exist</title><summary type='text'>原本想說在java的ij console下執行query指令，那麼在java app裡面照著下應該也不會有問題，沒想到昨天這麼做的時候應是得到了個shema does not exist的錯誤，原文是："綱目 'A' 不存在。"（'A'是連進該DB的username，稍後會有解釋）。Google之後在derby自己的網頁中找到答案，借quote一下：5.3.        Why do I get the error 'schema does not exist'?         ^          The current schema for any connection defaults to a schema corresponding       to the user name. If no user name is supplied then the user name </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/9187528777291700618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=9187528777291700618' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/9187528777291700618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/9187528777291700618'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/11/derbyschema-does-not-exist.html' title='Derby之schema does not exist'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2285051569502276838</id><published>2008-10-31T16:47:00.002+08:00</published><updated>2008-10-31T17:40:42.660+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Design Database with Dia</title><summary type='text'>Dia可以用來model database不稀奇，用UML模式即可。用Dia model好的database可以自動變成SQL指令就希奇了！是的，今天要介紹的就是使用Dia model好database之後要如何自動產生SQL指令。在這個不景氣的時代能省則省，一切從簡，因此我決定直接hot link別人寫好的tutorial，如下：Database Design with DiaTutorial中提到的tedia2sql可以從這裡下載。tedia2sql的安裝說明只提及使用apt安裝dependency的package名稱，若透過fedora 9的yum可以使用下列指令安裝：yum install perl-XML-Parser-2.36-3.fc9.i386 perl-libxml-perl-0.08-7.fc9.noarch perl-XML-RegExp-0.03-4.fc9.</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2285051569502276838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2285051569502276838' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2285051569502276838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2285051569502276838'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/10/design-database-with-dia.html' title='Design Database with Dia'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7370847477272999050</id><published>2008-10-31T14:24:00.005+08:00</published><updated>2008-11-02T09:13:48.526+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='journal'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>慶祝Punk即將入伍之聚餐</title><summary type='text'>為了慶祝Punk即將入伍以及我與信安的生日，上週六由Punk發起聚餐活動，感謝信安ㄉㄉ以VIP的身分帶大家到內湖的某餐廳，以下是當天Punk拍的照片：為了紀念某個被留在美麗華看paper的可憐友人，讓我代替他跟安琪合照吧</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7370847477272999050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7370847477272999050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7370847477272999050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7370847477272999050'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/10/punk.html' title='慶祝Punk即將入伍之聚餐'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SQqmJPbzleI/AAAAAAAABDk/eaF8dqOqdBE/s72-c/img_0169.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7983757050792794891</id><published>2008-10-31T13:17:00.005+08:00</published><updated>2008-11-13T09:25:47.471+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>w910i照相功能－後續</title><summary type='text'>話說只用晚上拍的照片評論w910i的照相功能稍嫌不公，因此我特別在白天的時候也拍了幾張：看起來白天拍的效果還不錯，只是沒有防手震功能，所以手必須非常穩，可能就是因為手震的關係讓照片裡物體的輪廓看起來並不是非常清楚</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7983757050792794891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7983757050792794891' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7983757050792794891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7983757050792794891'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/10/w910i.html' title='w910i照相功能－後續'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rQtQ8dROuIs/SQqV21_R3mI/AAAAAAAABCs/4yG9D-oV9Mk/s72-c/DSC00008.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5158954187165055027</id><published>2008-10-28T21:45:00.002+08:00</published><updated>2008-10-28T21:51:38.096+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>原來2M是不夠的</title><summary type='text'>今天拿到3.5G網卡＆新手機（w910i），決定po慶祝一下。這是我這輩子第一次用照相手機，原本預期2M畫素應該蠻夠用的，沒想到試拍了之後發現performance實在是令人搖頭，以下便是試拍成品：乍看之下感覺好像是用CCD web cam照出來的相片@@</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5158954187165055027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5158954187165055027' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5158954187165055027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5158954187165055027'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/10/2m.html' title='原來2M是不夠的'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_rQtQ8dROuIs/SQcYh7L-lII/AAAAAAAABCc/5kElJ2jP9GE/s72-c/DSC00006.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7104124590888497585</id><published>2008-10-21T12:33:00.002+08:00</published><updated>2008-10-21T12:40:11.094+08:00</updated><title type='text'>Use Apt or Yum behind proxy</title><summary type='text'>在proxy後面使用Apt或Yum安裝/更新packages的時候要注意下列幾件事情：1. 請選擇proxy有開的protocol作為來源，通常是http。2. 請export http_proxy，格式為export http_proxy=http://username:password@ip:port需要格外注意的有：A. ip可改為hostnameB. username只需要輸入username即可，不需要domain，例如，如果在firefox中輸入的username為aaa\bcd則export時只需輸入bcd。今天在B卡了一陣子，又是姑且一試之下把domain拿掉便可行了。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7104124590888497585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7104124590888497585' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7104124590888497585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7104124590888497585'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/10/use-apt-or-yum-behind-proxy.html' title='Use Apt or Yum behind proxy'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4089718313043470918</id><published>2008-10-19T17:46:00.005+08:00</published><updated>2008-10-21T12:33:22.555+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>天殺的SELINUX</title><summary type='text'>雖然SELINUX已經存在各Linux disto中很久了，但是以前在使用Debian/Ubuntu時從來沒有用過它，應該說從來沒有裝過它！因此對它的實際功能不是很了解，只約略知道它是加強安全性的一個核心套件而已。雖然大部分的distro把他列為optional套件，但Red Hat系列中卻將SELINUX設定為預設安裝並執行的套件之一。最近因為某些原因於是在vmware下裝起Red Hat系列的Fedora（別了Debian/Ubuntu），等安裝好Tomcat之後要測試的時候發現連到localhost時完全正常，但是從host machine要連過去的時候就是不work，總是在firefox的分頁中看到連線錯誤的訊息。接下來做了很多嘗試與微調，其中最讓我不解的是為什麼我用Putty連SSH連得好好的，web server卻連不上？在vmware下執行netstat -an時明明看到</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4089718313043470918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4089718313043470918' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4089718313043470918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4089718313043470918'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/10/selinux.html' title='天殺的SELINUX'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-6944448868756575765</id><published>2008-09-10T22:55:00.002+08:00</published><updated>2008-09-10T23:14:47.951+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Cellphone Service In Japan</title><summary type='text'>今天才真正見識到日本手機服務的威力。  晚上有個在日本的同學用手機寄email給我，我在好奇心的驅使下便回信給他看看是否是雙向服務，沒想到他還真的收到我的回信，於是我們就把email當msn用地聊了一個晚上，後來他還寄了一個xxx.3gp的檔案過來，上google查詢之後發現原來是影音檔案1，安裝3gp player2之後便可以看到內容，畫面雖然小但是影音品質還不錯。講了這麼多，重點在哪裡？ 重在在於剛剛提到的這些服務完全免費！看來日本的手機服務領先我們不只一個世代了。。。  1. http://en.wikipedia.org/wiki/3GP  2. http://www.reganam.com/3gp-player.htm</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/6944448868756575765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=6944448868756575765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6944448868756575765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/6944448868756575765'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/09/cellphone-service-in-japan.html' title='Cellphone Service In Japan'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1120509342164995503</id><published>2008-09-10T11:21:00.001+08:00</published><updated>2008-09-10T11:25:15.372+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>在CS中輸入中文</title><summary type='text'>懸宕多年的懸案終於解決了，原來是要在執行CS之前先執行個叫做csmate的程式。之前看到別人打中文總是很納悶究竟是怎麼辦到的，但是離開之後卻又忘了上google查，所以才會拖到現在人家都上太空了我還在殺豬公@@</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1120509342164995503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1120509342164995503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1120509342164995503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1120509342164995503'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/09/cs.html' title='在CS中輸入中文'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2381177595748406991</id><published>2008-09-04T11:45:00.002+08:00</published><updated>2008-09-04T11:54:15.731+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>More on Google Chrome</title><summary type='text'>用了兩天的google chrome終於忍不住要抱怨一下他的中文字真的是有夠難看，這還真的是把廣義的難看都包含進來了 --&gt; 醜+不容易看！下面就放兩個比較明顯的對比（與firefox相比）。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2381177595748406991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2381177595748406991' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2381177595748406991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2381177595748406991'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/09/more-on-google-chrome.html' title='More on Google Chrome'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SL9bo8Q3bYI/AAAAAAAAAu8/j-TkUn7WZf4/s72-c/facebook.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1454746882014591436</id><published>2008-09-03T19:54:00.007+08:00</published><updated>2008-09-03T20:39:24.778+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='ms note'/><title type='text'>Another Thing That M$ Pissed Me Off</title><summary type='text'>今天有兩件事情值得慶祝： 我退伍了！Google  Chrome Beta is on the market :-)    但是有一件事情令人賭濫： 我NB的Windows  Xp居然不能upgrade到SP2以上的版本！        為什麼我會發現我NB的Windows Xp無法upgrade到SP2以上的版本呢？完全要感謝Google Chrome！當我回到家裡裝Google Chrome的時候忽然出現無法安裝的錯誤訊息，當我執行Windows Update的時候卻又得到安裝失敗的訊息，仔細追根究底終於發現原因。我只是因為之前NB的硬碟與光碟機壞掉拿去修理所以將系統回復到出廠的樣子而已就跟我說不能再更新至SP2以後的版本，這是怎麼回事？OS有bug，有security issue，廠商不是應該有義務負責修補嗎？要強迫推銷Vista或之後的Windows 7也不是這樣子的吧？</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1454746882014591436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1454746882014591436' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1454746882014591436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1454746882014591436'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/09/another-thing-m-pissed-me-off.html' title='Another Thing That M$ Pissed Me Off'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SL6BeO2PbwI/AAAAAAAAAus/b9L9OoXH6c8/s72-c/google_chrome_install_error.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8043359866410909205</id><published>2008-09-03T09:31:00.005+08:00</published><updated>2008-09-03T09:44:53.972+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='testdrive'/><title type='text'>Test Drive on Google Chrome</title><summary type='text'>The pros and cons I observed... for now!Pro:Good looking interfaceSpeedy at launching and when opening web pages (even with flash and java-script)"Feel" lightweight (you'll see why I use the word "feel" later).Con:Distortion in some pictures.The distorted pictureThe original pictureStill consumes lots of memory, although I can hardly feel it.Try to add up the memory used by each "chrome.exe""Esc"</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8043359866410909205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8043359866410909205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8043359866410909205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8043359866410909205'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/09/test-drive-on-google-chrome.html' title='Test Drive on Google Chrome'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_rQtQ8dROuIs/SL3p6QBSoII/AAAAAAAAAtk/s5369KlUJEA/s72-c/google_chrome_pic_distortion.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4270351536607783757</id><published>2008-09-02T13:12:00.003+08:00</published><updated>2008-09-02T13:17:25.491+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='lyx'/><title type='text'>Space in publications</title><summary type='text'>除了正常的space還有以下幾種：protected space --&gt; 在protected space左右的兩個字不會因為換行而被切開來，一定會出現在同一行中，通常使用在cross-reference。inter-word space --&gt; 確保兩個字中間一定有一個space，避免文字與特殊符號中間缺少space。thin space --&gt; 用來分隔first name, middle name, and last name，如果用正常的space就會讓這些組成全名的各部分之間顯得太過分開。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4270351536607783757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4270351536607783757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4270351536607783757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4270351536607783757'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/09/space-in-publications.html' title='Space in publications'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-278478744512205881</id><published>2008-08-29T17:45:00.003+08:00</published><updated>2008-08-29T20:37:10.898+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>退伍感言</title><summary type='text'>今天是精神無力周的最後一天，結束時長官把所有最近要退的人都拉上台發表退伍感言，我本來有千言萬語想說，但是最後只說了下面幾句話：從進中隊到現在也有一段時間，這期間學到很多東西也忘掉很多東西，現在要退伍了，希望可以把忘掉的東西記起來，把學到的東西忘掉，報告完畢。今天過完在營還剩兩天，一切都要怪當初讀研究所的時候懶惰沒選軍訓，導致現在不但同梯的都退光了，連學弟都比我早退。。。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/278478744512205881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=278478744512205881' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/278478744512205881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/278478744512205881'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/blog-post_29.html' title='退伍感言'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4402481657200945592</id><published>2008-08-29T10:58:00.001+08:00</published><updated>2008-08-29T10:58:34.852+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='lyx'/><title type='text'>好書推薦 -- Self-publishing with LyX</title><summary type='text'>今天要向大家推薦的好書是：Self-publishing with LyX 適合閱讀的對象為：需要寫paper，或是任何具有固定格式之出版品的人 關於這本書的介紹以及電子檔請參閱李果正大大的blog 。 雖然我也十分認同這是一本好書，但是有些觀點與作者不同，以下就不同的部分發表我的看法。 排版的確是LaTeX的強項，但是OpenOffice也沒有如作者形容的那般不堪，OpenOffice一樣可以設定style然後在全文各個不同的地 方套用，因此如果是編寫中短篇作品的話還是可以使用OpenOffice，但是長篇著作還是建議使用LaTeX，因為不論OpenOffice還是MS Office在排版方面總是會不盡人意的出那麼一點差錯。 再來就是作者認為一般商用的專業排版軟體需要使用者本身具有相當程度的排版專業知識才能夠發揮效能，不過我認為LaTeX本身也不簡單，就算LyX替使用 </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4402481657200945592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4402481657200945592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4402481657200945592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4402481657200945592'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/self-publishing-with-lyx.html' title='好書推薦 -- Self-publishing with LyX'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-124358262491516868</id><published>2008-08-27T19:30:00.003+08:00</published><updated>2008-08-28T18:30:37.754+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>有趣的flash遊戲</title><summary type='text'>如下圖：</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/124358262491516868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=124358262491516868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/124358262491516868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/124358262491516868'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/flash.html' title='有趣的flash遊戲'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rQtQ8dROuIs/SLZ-Dg-uMPI/AAAAAAAAAtU/QN0HQnQqXIU/s72-c/%E5%8D%8A%E8%B7%AF%E8%B8%A2%E5%88%B0%E6%89%81.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4961136713858157205</id><published>2008-08-22T21:58:00.002+08:00</published><updated>2008-08-22T22:01:36.832+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>An Interesting Anti-spam Mechanism</title><summary type='text'>今天在jserv的blog上發現個有趣的anti-spam機制，算是將古老的方法賦予新的使用意義。很像google作風 :-)以下是真相：</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4961136713858157205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4961136713858157205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4961136713858157205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4961136713858157205'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/interesting-anti-spam-mechanism.html' title='An Interesting Anti-spam Mechanism'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_rQtQ8dROuIs/SK7Gh8UnLLI/AAAAAAAAAso/WqiuKv2aFEk/s72-c/jserv_anti_spam.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5183207897616918756</id><published>2008-08-22T21:23:00.006+08:00</published><updated>2008-08-22T21:46:28.155+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>Blue Gate</title><summary type='text'>由此進入藍色大門。雖然是對岸同胞寫的文章，但是大部分仍是用於台灣或其他地區。順便附上財經新聞乙則。以上都是在我面試完才在google上看到的東西，希望後人有機會可以先參考一下。面談的時候居然不知不覺的聊了兩個小時（同時跟三個人），果真是光陰似箭歲月如梭！筆試果真如wayne所言"沒問題啦，不用緊張"，但是沒經歷過總是會緊張的。最後恭喜我的在營日終於進入各位數倒數階段（今天過完就剩八天）:-)</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5183207897616918756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5183207897616918756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5183207897616918756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5183207897616918756'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/blue-gate.html' title='Blue Gate'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2782292790292978947</id><published>2008-08-17T07:57:00.005+08:00</published><updated>2008-08-17T08:10:33.577+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>5億探長 V.S. 7億總統</title><summary type='text'>.tblGenFixed td {padding:0 3px;overflow:hidden;white-space:normal;letter-spacing:0;word-spacing:0;background-color:#fff;z-index:1;border-top:0px none;border-left:0px none;border-bottom:1px solid #CCC;border-right:1px solid #CCC;} .dn {display:none} .chip {background-image:url('http://www.google.com/images/spreadsheets/chip.gif'); background-repeat:no-repeat; background-position:top right;} .</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2782292790292978947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2782292790292978947' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2782292790292978947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2782292790292978947'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/5-vs-7.html' title='5億探長 V.S. 7億總統'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2104596886112068767</id><published>2008-08-14T00:03:00.004+08:00</published><updated>2008-08-14T00:20:04.652+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>果然一分錢一分貨！</title><summary type='text'>今天首次踏入新落成的光華商場，感覺果然比以前好很多，剛進去的時候有種在逛百貨公司的感覺。雖然新環境令人激賞，但也沒讓我忘了此行的目的 --&gt; 幫我爸買3.5"硬碟外接盒（掛點的外接盒已經過保固一年多，送修也不敷成本）。四處晃了晃之後在某個攤位問到了一個僅要價$299 NTD的商品（加上統一編號後變成$314 NTD），於是當下十分開心的將它買下，直到回家興高采烈地將硬碟從掛點的外接盒換到新買的外街盒上並按下電源鈕時才發現怎麼電腦完全沒有找到硬碟的跡象，反而出現無法辨識USB裝置的警告訊息？！仔細一看發現LED亮著紅燈，其實我也不知道這代表什麼但直覺告訴我不太對勁，於是在開關處輕輕橋了橋後LED果然變成感覺比較正常的綠燈，但是電腦依舊沒有半點找到硬碟的徵兆。這時候不禁罵自己怎麼不先看看說明書，等到看完說明書後感覺十分無言。。。裡面只有說明如果作業系統為Windows 98請安裝包裝中所附的</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2104596886112068767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2104596886112068767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2104596886112068767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2104596886112068767'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/blog-post.html' title='果然一分錢一分貨！'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2419538831319411394</id><published>2008-08-12T20:21:00.003+08:00</published><updated>2008-08-14T00:18:41.623+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>CS in my Ubuntu box!</title><summary type='text'>今天照著google到的三篇文章1,2,3半信半疑地把wine裝起來，沒想到真的就真的跑起來了！重點是還蠻流暢的。第一篇說明如何設定wine以及安裝cs，第二篇則是說明如何讓cs能夠顯示中文字，第三篇用來解決聲音延遲的問題。我要對字體取得以及registry設定補充說明：首先字體可以從裝有Windows的機器上取得，以新細明體為例，完整路徑為c:\windows\Fonts\mingliu.ttc將字體複製到Linux機器上，例如放到wine的字體目錄中，~/.wine/drive_c/windows/Fonts接下來執行wine regedit開啟registry編輯器，找到HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts之後新增字串，因為我們要直接套用第二篇文章提供的.reg檔案，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2419538831319411394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2419538831319411394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2419538831319411394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2419538831319411394'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/08/cs-in-my-ubuntu-box.html' title='CS in my Ubuntu box!'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SKGAlQnHafI/AAAAAAAAAsg/5_Qgc-iw7QI/s72-c/cs_in_ubuntu.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1625826520891052274</id><published>2008-07-29T18:43:00.002+08:00</published><updated>2008-07-29T18:51:13.723+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='ms note'/><title type='text'>Another way of debugging</title><summary type='text'>最近在寫windows service的時候依舊採用老舊的debug方式 --&gt; 把msg寫到文字檔中，然後再開啟文字檔檢查。如果service持續將msg寫入文字檔中，我們就必須要將文字編輯器關閉然後重新開啟文字檔，十分麻 煩。我今天很幸運地發現其實可以用DebugView1取代文字檔的功能即時檢視除錯訊息！ 使用方法則是用OutputDebugString2函式取代原本使用的fopen，fpritnf函式。        1 http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx2 http://msdn.microsoft.com/en-us/library/aa363362(VS.85).aspx</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1625826520891052274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1625826520891052274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1625826520891052274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1625826520891052274'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/another-way-of-debugging.html' title='Another way of debugging'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8767660173140695701</id><published>2008-07-28T20:40:00.000+08:00</published><updated>2008-07-28T20:42:02.420+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='ms note'/><title type='text'>Create Native Windows Service In C -- supplementary</title><summary type='text'>我在上個星期五花了一點篇幅紀錄目前研究windows service的進度1，今天下午測試後發現有些功能完全沒有作用，經過google的幫忙後在CodeProject上找到一篇不錯的tutorial2，文中剛好講到我之前疏忽的重點：我們利用RegisterServiceCtrlHandlerEx函式註冊service control handler時所輸入的第二個參數正影響著handler的prototype。若是將handler cast成為(LPHANDLER_FUNCTION_EX)則handler的prototype將會是：handler(DWORD dwOpcode,DWORD evtype, PVOID evdata, PVOID Context);若是將handler cast成為(LPHANDLER_FUNCTION)則handler的prototype就會變成：</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8767660173140695701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8767660173140695701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8767660173140695701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8767660173140695701'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/create-native-windows-service-in-c_28.html' title='Create Native Windows Service In C -- supplementary'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3629016726965061368</id><published>2008-07-27T17:15:00.002+08:00</published><updated>2008-07-27T17:28:16.711+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>auto mount usb drive failed</title><summary type='text'>累積兩個星期的ubuntu update終於在昨天一口氣更新完畢，只不過更新完後卻發現原本用得好好的外接usb硬碟現在卻沒有辦法在接上usb port時自動掛載到系統中，自動掛載的過程會出現下列的錯誤訊息： org.freedesktop.hal.storage.mount-removable no &lt;-- (action, result). 原本一度以為可能是硬碟壞掉，由於不甘心眼睜睜看著硬碟中的資料1就這麼付諸流水，因此特地將上面提及的錯誤訊息丟到google中好好搜尋一番，沒有多久便在某網頁2找到類似的解決方法：  sudo gnome-mount -vbd /dev/sdb1  從dmesg中得知我的外接usb硬碟的代號為/dev/sdb，而原本主要的資料都存在第一個劃分區塊因此決定mount /dev/sdb1。    1 hm... you know exactly what</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3629016726965061368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3629016726965061368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3629016726965061368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3629016726965061368'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/auto-mount-usb-drive-failed.html' title='auto mount usb drive failed'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5902828627745239733</id><published>2008-07-25T19:11:00.005+08:00</published><updated>2008-07-25T20:13:11.182+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>Create Native Windows Service In C</title><summary type='text'>最近忙著開車因此在tracing Linux kernel的進度上嚴重落後，除了開車之外也忙著寫程式1。這次寫的程式是native windows service，強調native是因為新版visual studio所寫出來的service都需要.net平台才能執行2。 一開始google的時候發現一篇十分有用的教學文章3，該篇文章交我們如何用C寫windows service（坊間的教學大多使用VB, C#或是C++），以下是參考教學文件實做出來的prototype：   1 沒學弟補進來的悲哀 2 昨天測試的結果，若是有其他微調的方法請告知 3 http://www.devx.com/cplus/Article/9857/0/page/1</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5902828627745239733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5902828627745239733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5902828627745239733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5902828627745239733'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/create-native-windows-service-in-c.html' title='Create Native Windows Service In C'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4672602381025464805</id><published>2008-07-14T16:50:00.002+08:00</published><updated>2008-07-14T21:29:08.702+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vm in general'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><category scheme='http://www.blogger.com/atom/ns#' term='ms note'/><title type='text'>Mount drive in dosbox</title><summary type='text'>1. 在terminal下執行dosbox指令2. 在dosbox的console下執行mount指令，例如：mount c /home/user/tmpmount d /media/cdromPS. dosbox的mount指令只能接受完整路徑，因此在Linux環境下用~是行不通的。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4672602381025464805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4672602381025464805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4672602381025464805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4672602381025464805'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/mount-drive-in-dosbox.html' title='Mount drive in dosbox'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3645508786131793549</id><published>2008-07-14T02:16:00.003+08:00</published><updated>2008-07-14T02:28:01.434+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>[心得] 說話的技巧</title><summary type='text'>不論是在收看莒光園地（應該可以說是全國收視率最好的節目）或是在聽長官說話，最近常常聽到"大家都知道。。。所以。。。"，"我們都知道。。。所以。。。"或類似的說詞，既然大家都已經知道了還拿出來講幹嘛，直接切入主題把該講的重點講一講不就好了，這麼說只不過是在浪費彼此的時間而已。有些人講話習慣會在句尾加上個"喔"（或諸如此類的壯聲詞），例如"可見國軍是多麼的精實喔"，或是習慣重複剛剛說的話，也就是同樣的話講兩次，乍聽之下好像很體貼聽眾，特別重複讓大家都能聽到、聽懂。仔細想想，這些動作不過是用來掩護發言者根本不知道下一句該講什麼，也某種程度的暴露了發言者的頭腦其實不是很靈光，說不是很聰明也不為過！所以下次在發言之前，例如於莒光課後進行第X次發言或於榮團會（榮譽團結會）進行第Y次發言之前先想好自己要講些什麼東西，稍稍不注意就很有可能犯了以上的錯誤。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3645508786131793549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3645508786131793549' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3645508786131793549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3645508786131793549'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/blog-post.html' title='[心得] 說話的技巧'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1855431956117502560</id><published>2008-07-13T08:31:00.001+08:00</published><updated>2008-07-13T08:36:47.940+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Scheduler] More Detail In Scheduler</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。PID即為TID。Kernel版本：v2.6.24.3我們在上一篇1提到2.6.24.3以後版本的scheduler永遠將cfs_rq rb-tree2中最左邊的node挑出來成為current task，而kernel是依據每個task的vruntime大小決定該task在cfs_rq rb-tree中的位置。最後發現不論是task的vruntime或是單次執行時間長度都與task的load欄位3有密切的關係，因此決定再花一篇的篇幅解釋load究竟是何方神聖。之前所提到的load其實是個內含integer type的weight與</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1855431956117502560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1855431956117502560' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1855431956117502560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1855431956117502560'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/scheduler-more-detail-in-scheduler.html' title='[Scheduler] More Detail In Scheduler'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5927227665091096056</id><published>2008-07-09T16:35:00.005+08:00</published><updated>2008-07-09T16:54:13.698+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Scheduler] Behind The Scene</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。PID即為TID。Kernel版本：v2.6.24.3本篇要討論的是scheduler背後幫助我們更容易了解scheduler如何運作的一些細節，主要以解釋下列兩個問題的方式進行：Kernel以什麼為依據決定將task放runqueue1中哪個位置？在沒有preemption發生的時候kernel怎麼知道什麼時候該讓current task釋出CPU給其他task使用？Kernel以什麼為依據決定將task放runqueue中哪個位置？版本2.6.22之後的kernel在runqueue中以新增的cfs_rq紅黑樹結構存放schedule </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5927227665091096056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5927227665091096056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5927227665091096056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5927227665091096056'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/scheduler-behind-scene.html' title='[Scheduler] Behind The Scene'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4530126214652775136</id><published>2008-07-09T09:20:00.028+08:00</published><updated>2008-12-09T09:49:31.602+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Access exploit 20080707</title><summary type='text'>圖一：自作聰明的IE圖二：行為正常的FirefoxSecurity Update @ 20080709為了避免誤會，決定將剛才使用iframe開啟的文字檔拿掉，exploit code請參照圖二。讓我不禁想問：明明都已經指名副檔名為.txt為什麼IE要這麼自作聰明的解析txt檔？原文當有人開啟位於192.168.0.106內含上述原始碼的網頁時MS Access便會將存放在192.168.0.106 web server下的notepad.exe另存為本機端的c:\test11.exe，若是將目錄設定為開機會自動執行的路徑則重新開機後剛剛開啟網頁的電腦便會開始執行test11.exe。這個exploit到目前為止還算是0-day exploit，在MS釋出patch之前請大家好自為之。另外，安裝程式的時候沒有用的功能千萬不要亂勾，例如我已經很久沒有裝MS Access了。結論，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4530126214652775136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4530126214652775136' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4530126214652775136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4530126214652775136'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/access-exploit-20080707.html' title='Access exploit 20080707'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_rQtQ8dROuIs/SHQkTxV1IsI/AAAAAAAAAsQ/w8X9QxdcO9k/s72-c/stupid_ie.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1392350775641071894</id><published>2008-07-08T12:57:00.002+08:00</published><updated>2008-07-08T20:22:58.193+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Scheduler] Before Schedule Takes Place</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。PID即為TID。Kernel版本：v2.6.24.3假設我們遇到的是一般task，在schedule暫停current task並讓原本暫停中的task成為current task之前會呼叫put_prev_task_fair函式將current task1讓出CPU的使用權，如果current task已執行完畢就會被從runqueue移除，否則重新放回runqueue等待下次輪到它使用CPU繼續執行。static void put_prev_task_fair(struct rq *rq, struct task_struct *</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1392350775641071894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1392350775641071894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1392350775641071894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1392350775641071894'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/scheduler-before-schedule-takes-place.html' title='[Scheduler] Before Schedule Takes Place'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5704920443523140493</id><published>2008-07-05T15:41:00.006+08:00</published><updated>2008-07-05T15:49:13.458+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Share folder with virtualbox -- just a short note</title><summary type='text'>If you are running Linux as guest OS, use mount.vboxsf instead of mount -t vboxsf when you encounter the following error message:mounting failed with the error: Protocol error The complete command should look like this (ignore the brackets when you type in):sudo mount.vboxsf [share folder's name] [your mount point]</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5704920443523140493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5704920443523140493' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5704920443523140493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5704920443523140493'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/share-folder-with-virtualbox-just-short.html' title='Share folder with virtualbox -- just a short note'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4072198541494771983</id><published>2008-07-02T09:54:00.002+08:00</published><updated>2008-07-02T09:59:19.590+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Scheduler] The Overview</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。PID即為TID。Kernel版本：v2.6.24.3Linux schedules tasks的過程中會依據task_struct中紀錄1的schedule scheme決定如何操作2runqueue，每個task所屬的schedule scheme不是fair_sched_class就是rt_sched_class。Fair schedule class用於schedule所有一般的tasks，rt schedule class用於schedule所有real-time tasks3。我們先看看fair_sched_class與</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4072198541494771983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4072198541494771983' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4072198541494771983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4072198541494771983'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/07/scheduler-overview.html' title='[Scheduler] The Overview'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4501999028805313691</id><published>2008-06-25T10:53:00.002+08:00</published><updated>2008-06-25T11:01:56.988+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Linux scheduler大改版</title><summary type='text'>原本今天打算開始寫Linux scheduler的部分，但是一看src code之後發現跟之前看的src code與教科書1有很大的出入，傳說中的O(1) scheduler早已不復存在，於是決定好好研究一下再下筆。看著看著發現一個新的資料結構，名為struct cfs_rq cfs，Google之後大概知道它的作用，也找到了一個有趣的blog2，有趣的部分在於它的comment。  PS. 這時候前恩師的話在腦中響起"src code在眼前為什麼不看而要相信書上寫的呢？"。1 大名鼎鼎的Understanding Linux Kernel與Linux Kernel Development。 2 http://zylix666.blogspot.com/2007/10/cfs.html</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4501999028805313691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4501999028805313691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4501999028805313691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4501999028805313691'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/linux-scheduler.html' title='Linux scheduler大改版'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1113189357043580402</id><published>2008-06-24T09:44:00.009+08:00</published><updated>2008-06-24T10:05:37.084+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] Process/Thread Termination Part 2</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。PID即為TID。Kernel版本：v2.6.24.3What does do_exit do?按照正常的邏輯推理，當一個thread執行結束後作業系統需要做的事情包含將thread標示為離開作業環境，將thread佔用的資源釋出，例如檔案、lock、thread與descriptor的記憶體空間等。現在就來看看do_exit函式究竟做了哪些事情。當一個thread執行結束之後do_exit函式會先將PF_EXITING寫入該thread task_struct的flags欄位。經過一些house keeping work之後透過</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1113189357043580402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1113189357043580402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1113189357043580402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1113189357043580402'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-processthread_24.html' title='[Process Management] Process/Thread Termination Part 2'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8180455770036346695</id><published>2008-06-22T11:02:00.004+08:00</published><updated>2008-06-22T11:13:07.222+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><category scheme='http://www.blogger.com/atom/ns#' term='ms note'/><title type='text'>More on LXR -- The partial use of hosts file</title><summary type='text'>今天再來討論一下有關LXR的議題。當我們編輯lxrng.conf的時候會指定base_url，如果裡面填寫的是domain name則其他在同樣LAN的電腦可能會無法開啟LXR網頁，這時候我們需要在瀏覽端電腦上設定hosts檔案，hosts檔案在Linux與Winows下的路徑分別為：Linux --&gt; /etc/hostsWindows --&gt; C:\WINDOWS\system32\drivers\etc\hosts在裡面加上：LXR機器的IP1        LXR機器的domain name如此一來不論瀏覽端電腦是否在LAN2都可以使用LXR機器的domain name開啟LXR頁面。1 甚至"localhost"也可以2 包括LXR本機</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8180455770036346695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8180455770036346695' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8180455770036346695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8180455770036346695'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/more-on-lxr-partial-use-of-hosts-file.html' title='More on LXR -- The partial use of hosts file'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-1387356767700212004</id><published>2008-06-20T21:39:00.005+08:00</published><updated>2008-12-09T09:49:31.933+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] Process/Thread Termination Part 1</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。Kernel版本：v2.6.24.3有關thread termination有兩件事情需要確認，一是kernel thread與user thread結束的步驟是否相同（Part 1），二是他們結束的步驟各1為何（Part 2）。講到thread termination讓人立即想到的就是程式執行（user thread）完畢，user thread通常是因執行應用程式的可執行檔而產生，而compiler在編譯應用程式可執行檔的過程中會在程式最後加上exit函式，該函式會透過system call sys_exit讓Linux</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/1387356767700212004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=1387356767700212004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1387356767700212004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/1387356767700212004'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-processthread_6991.html' title='[Process Management] Process/Thread Termination Part 1'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_rQtQ8dROuIs/SFuzVMIwV9I/AAAAAAAAArw/kYkf7SiR1s8/s72-c/kernel_thread_do_exit.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-672051117882792165</id><published>2008-06-20T07:50:00.005+08:00</published><updated>2008-12-09T09:49:32.075+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] Process/Thread Creation Part 3</title><summary type='text'>專門用語： 使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。 使用斜體字型標示Linux中的資料結構，macro，變數或函式名稱。 Kernel版本： v2.6.24.3  Kernel thread與User thread建立過程的相同之處： 都會呼叫do_fork函式建立task_struct，task_thread_info，與堆疊空間。新建立的thread的狀態都是可以執行，但不一定馬上被執行。  Kernel thread與User thread建立過程的不同之處： 傳入do_fork的數性參數不同，就連產生user thread的三個函式1本身傳入的屬性參數都不同。產生kernel thread時新thread要執行的函式已經存在記憶體中，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/672051117882792165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=672051117882792165' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/672051117882792165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/672051117882792165'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-processthread_20.html' title='[Process Management] Process/Thread Creation Part 3'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_rQtQ8dROuIs/SFrxBWPEdRI/AAAAAAAAAro/R4eOEpGNvA4/s72-c/process_life_cycle.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2307625724025193215</id><published>2008-06-19T12:58:00.003+08:00</published><updated>2008-06-19T13:09:57.829+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] Process/Thread Creation Part 2</title><summary type='text'>專門用語： 使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，變數或函式名稱。 Kernel版本：v2.6.24.3User thread:應用程式使用fork，vfork，或clone函式建立新的user threads，這些函式分別透過Linux system call呼叫sys_fork，sys_vfork，或sys_clone kernel function建立新threads，而sys_fork，sys_vfork，與sys_clone共同呼叫的函式為do_fork1。asmlinkage int sys_fork(struct pt_regs regs){       return do_fork(SIGCHLD, </summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2307625724025193215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2307625724025193215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2307625724025193215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2307625724025193215'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-processthread_19.html' title='[Process Management] Process/Thread Creation Part 2'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-638995205437534506</id><published>2008-06-17T16:47:00.004+08:00</published><updated>2008-06-22T13:46:25.768+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] Process/Thread Creation Part 1</title><summary type='text'>專門用語： 使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，變數或函式名稱。PID即為TID。 Kernel版本：v2.6.24.3今天要研究的課題是作業系統中每個在跑的process是怎麼來的？因為process可分為kernel thread與user thread，所以接下來會分兩個部分討論產生kernel thread（Part 1）與user thread（Part 2）的流程，最後比較這兩個流程之間的同異之處與補充說明（Part 3）。Kernel thread:建立kernel thread需要呼叫的kernel function為kernel_thread。呼叫kernel_thread時需要傳入三個變數，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/638995205437534506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=638995205437534506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/638995205437534506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/638995205437534506'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-processthread.html' title='[Process Management] Process/Thread Creation Part 1'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-8924503572526320579</id><published>2008-06-13T16:09:00.004+08:00</published><updated>2008-06-13T16:47:00.522+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Another browse/trace code tool -- GNU Global</title><summary type='text'>話說前幾天介紹了trace code利器LXR與cscope之後今天又發現了另外一個不錯的工具 -- GNU Global[1]，他算是結合了LXR與cscope的優點：+ 可以產生能夠使用網頁瀏覽的tags+ 產生的方式十分簡單，不需要像使用LXR一樣要編寫設定檔，請參考tutorial[2]+ 在原始碼的root directory建立完tags之後在任何子目錄中都能夠搜尋關鍵字/definition+ 網頁版本的tags可以隨意移動至任何路徑下（例如/var/www）缺點有：- 沒有類似LXR提供的usage功能，因此當某definition在多個檔案中出現時，我們只能從搜尋結果中猜測目前檔案中的definition究竟來自於何處（cscope也有此缺點）。- 花很多時間產生tags（與LXR所需的時間不相上下）如果在自行產生之前想先看看demo，可以連到以下的連結看看：http:</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/8924503572526320579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=8924503572526320579' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8924503572526320579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/8924503572526320579'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/another-browsertrace-code-tool-gnu.html' title='Another browse/trace code tool -- GNU Global'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3787078718999534931</id><published>2008-06-12T11:13:00.010+08:00</published><updated>2008-06-22T13:45:43.357+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] task_struct中存放哪些關鍵資訊？</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，變數或函式名稱。PID即為TID。Kernel版本：v2.6.24.3佔了1.7KBytes記憶體空間的task_struct可以存放許多資訊，其中包含許多對保持作業系統正成運作而言並非必要1的資訊，如統計或其他功能數據utime，stime，utimescaled，stimescaled。。。等。究竟哪些才是會影響task運作的關鍵資訊呢？讓我們看看Linux在呼叫工作排程將current task暫停而開始執行另一個task（稱之為context switch）之前保存哪些資訊。Linux的工作排程函式叫做schedule，真正發生context switch</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3787078718999534931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3787078718999534931' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3787078718999534931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3787078718999534931'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-taskstruct.html' title='[Process Management] task_struct中存放哪些關鍵資訊？'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-656260504973030638</id><published>2008-06-11T21:29:00.006+08:00</published><updated>2008-06-19T13:07:34.675+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>[Process Management] 如何找到current task的task_struct？</title><summary type='text'>專門用語：使用打字機（Courier New）字體表示原始碼。task/process即為Linux中的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，變數或函式名稱。Kernel版本： v2.6.24.3以task_struct為關鍵字使用LXR[1]進行搜尋後會發現有許多類似下面這行程式碼：struct task_struct *xxx = current;因此我們再繼續搜尋current，便發現current其實是個macro：#define current get_current()而get_current函式的回傳值為current_task亦即指到current task的task_struct的指標：return x86_read_percpu(current_task);因此藉由直接呼叫current</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/656260504973030638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=656260504973030638' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/656260504973030638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/656260504973030638'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/process-management-current.html' title='[Process Management] 如何找到current task的task_struct？'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-2064932272252827659</id><published>2008-06-11T09:40:00.006+08:00</published><updated>2008-06-22T13:44:48.670+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Linux的主要構成要素</title><summary type='text'>專門用語文中提及的task，thread，task與process都代表著運行於Linux的thread。文中的Linux與Linux kernel指的皆為作業系統核心。使用斜體字型標示Linux中的資料結構，變數或函式名稱。PID即為TID。 Linux與所有的作業系統核心一樣必須管理硬體資源以在現今的電腦世界中提供多工的作業環境。提到多工作業環境，Linux要能夠在任何時刻於所有正在運行的threads中找出特定的某個thread才能透過kernel function schedule的協助讓每個thread都被執行到。因此Linux使用名為task_struct的資料結構存放用以區分各個thread的資訊（稱之為特徵或finger print）1。當我們更進一步區分threads時，便能將運行於Linux中的threads分為kernel threads與user threads。</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/2064932272252827659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=2064932272252827659' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2064932272252827659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/2064932272252827659'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/linux.html' title='Linux的主要構成要素'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3853572521308370515</id><published>2008-06-09T09:46:00.005+08:00</published><updated>2008-12-09T09:49:33.344+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Browse/Trace Code With Vim And Cscope</title><summary type='text'>我們在6/3介紹使用網頁介面的cross reference trace Linux source code[1]，該方法為cross reference建立資料庫時需要大量的時間（動輒數小時），如果想要在短時間內即可開始trace code，可以考慮採用tags系統的trace code方式。本篇要介紹的cscope[2]理念上延續ctags[3]使用tags方式在原始碼中搜尋關鍵字或函式的definition。如果同樣 一個definition出現在兩個以上的檔案中，ctags[3]預設直接開啟第一個檔案，如果遇到如Linux kernel針對許多部同硬體架構撰寫的原始碼，ctags[3]搜尋到的第一個match不一定是我們需要的檔案，這個部份cscope[2]則以提供 match清單的方式供使用者選擇該開啟哪個match所對應的檔案。採用cscope的另一個原因是它與編輯器vim</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3853572521308370515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3853572521308370515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3853572521308370515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3853572521308370515'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/browsetrace-code-with-vim-and-cscope.html' title='Browse/Trace Code With Vim And Cscope'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SEyL2O95FCI/AAAAAAAAAq4/obGkkANxSjY/s72-c/cscope_01.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5360113326524890473</id><published>2008-06-05T17:01:00.019+08:00</published><updated>2008-12-09T09:49:34.638+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Debugging Linux Kernel Without KGDB Patch (Qemu + GDB)</title><summary type='text'>1) Get Linux kernel source code &amp; Qemu package要debug Linux kernel首先當然要先拿到原始碼，可以從官方網頁取得[1]，也可以從package repository取得，如[2]中第十個步驟所述。安裝Qemu套件的指令為：$ sudo aptitude install qemu qemu-launcher qemubuilder qemuctl2) Prepare Qemu disk image接下來是設定debug環境，由於我們借助Qemu進行kernel debugging，因此首先要建立Qemu的磁碟映像檔。利用Qemu launcher[3]可以很輕鬆的在指定路徑建立磁碟映像檔，這裡我們使用raw格式的磁碟映像以便稍後如果有轉換需要的話可以進行轉換。此範例將Qemu disk image存放於~/Qemu中（</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5360113326524890473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5360113326524890473' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5360113326524890473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5360113326524890473'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/debugging-linux-kernel-without-kgdb.html' title='Debugging Linux Kernel Without KGDB Patch (Qemu + GDB)'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rQtQ8dROuIs/SEeyKoMtrcI/AAAAAAAAAqA/-pED-3twYD0/s72-c/qemu_create_disk_image.PNG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-83190843936518245</id><published>2008-06-04T11:32:00.004+08:00</published><updated>2008-12-09T09:49:34.798+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Qemu And Its Launcher</title><summary type='text'>最近為了再度開啟Linux hacking生涯而重新安裝Qemu[1]，這次安裝Qemu的時候一起將Qemu launcher裝起來試用。有了Qemu launcher我們就可以告別以往在terminal透過下指令的方式啟動guest os，現在可以在Qemu launcher所提供的UI介面下修改guest os的參數設定，例如指定特定的磁碟映像檔，是否要掛載光碟機，要配置多少記憶體等等。除了網路設定之外一切都顯得相當容易，由於目前hacking Linux kernel暫時不會與網路扯上關係因此就先跳過網路設定的部分直接使用。Qemu launcher的UI介面與正在安裝Debian minimum install安裝完成，開機後的登入畫面輸入額外參數的地方[2][1] http://bellard.org/qemu/[2] "-s"為等候GDB由port 1234</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/83190843936518245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=83190843936518245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/83190843936518245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/83190843936518245'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/qemu-and-its-launcher.html' title='Qemu And Its Launcher'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SEYNDTNaipI/AAAAAAAAAoQ/DeShjNc466w/s72-c/qemu_launcher_01.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-7837057570342239053</id><published>2008-06-03T07:33:00.022+08:00</published><updated>2008-12-09T09:49:35.115+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Technical Writing's Rule Of Thumb + Local Web based Code Cross Reference (eg. LXR clone)</title><summary type='text'>----- Begin Update Block @ 8th Jun 2008 -----將以下"/home/user/"開頭的路徑一律改為"~/"開頭，config檔中的路徑除外。----- End Update Block @ 8th Jun 2008 -----寫技術文件並非多高深的學問，只需要記住幾個要點就可以寫出易懂的文件。*永遠假設讀者什麼都不懂（eg. not only rookies but DUMMIES!）*完整地敘述scenario（eg. what is our goal, where are we, what are the problems, what needs to be done）*提供可複製的做法，讓dummies看了之後即便不加思索地照做也能得到正確的結果（just like report bugs）我相信很多人都聽過以上的論點，尤其是寫過論文的人[</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/7837057570342239053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=7837057570342239053' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7837057570342239053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/7837057570342239053'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/06/technical-writings-rule-of-thumb-local.html' title='Technical Writing&apos;s Rule Of Thumb + Local Web based Code Cross Reference (eg. LXR clone)'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SES3wFgh7vI/AAAAAAAAAoA/T6SLELiJngw/s72-c/local_lxr_01.PNG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3055029859916290052</id><published>2008-05-31T15:12:00.005+08:00</published><updated>2008-12-09T09:49:35.550+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Linux Cross Reference (LXR) 又進步了</title><summary type='text'>自從由EOS lab畢業後就沒有再看過Linux source code，想當然也不會去逛LXR的網頁，今天心血來潮再度開啟LXR看看被我晾在一邊許久的kernel code[1]，沒想到發現令人眼睛為之一亮的新功能[2]！沒錯，就是左上角用紅色線框起來的PDF icon，按下它之後便會將目前瀏覽的原始碼轉換成產生熱騰騰的pdf檔案。PS. 我仍然很喜歡右上角那張十分有意思的圖[1] 最後一次看的版本為2.6.14[2] 不知道什麼時候加入的，以前大多使用vim + cscope trace code</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3055029859916290052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3055029859916290052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3055029859916290052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3055029859916290052'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/linux-cross-reference-lxr.html' title='Linux Cross Reference (LXR) 又進步了'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_rQtQ8dROuIs/SED7dkJh6xI/AAAAAAAAAn4/vly8I2dvREg/s72-c/lxr.linux.no.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5447026001645477110</id><published>2008-05-30T18:46:00.010+08:00</published><updated>2008-06-01T13:02:31.057+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><title type='text'>Code::Blocks, a nice IDE</title><summary type='text'>今天再度展開IDE探索之旅，首先發現Eclipse現在已經可以用來開發Android（that's right, this is Google's Android）應用程式[1]，稍微玩了一下範例之後深深覺得電腦的記憶體（512MB）實在無法負荷吃Ram怪獸Eclipse。接著開始搜尋輔助wxWdigets的IDE，赫然發現Code::Blocks的存在（之後簡稱CB），同時發現有個名為wxPack的套件不但早已將wxWidgets的lib都編譯好，還附上支援WYSIWYG的GUI開發工具[2]。花點時間把玩CB之後發現以前替wxWidgets準備開發環境的方式"商當"原始，現在當然連Makefile也不需要準備，輕輕按下Build就大功告成，果然有工具用就怠惰了。如果將範圍侷限在產生native executble[3]，CB其實是非常general purpose的IDE，與DevC</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5447026001645477110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5447026001645477110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5447026001645477110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5447026001645477110'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/codeblocks-nice-ide.html' title='Code::Blocks, a nice IDE'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3911953068890975793</id><published>2008-05-29T09:12:00.006+08:00</published><updated>2008-05-29T09:42:45.724+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dev'/><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>[佛心來的叮嚀] 十惡不赦的MIS</title><summary type='text'>最近發現不少知名網站資料庫的設計實在是非常爛，不但有sql injection的問題，最誇張的是使用者密碼居然用明碼存！難怪一般MIS的薪水一直起不來，怪誰勒？請各位親朋好友在申請帳號的時候千萬不要使用相同的帳號密碼（尤其是email的帳密），切記切記！PS. 強者我朋友三天就拿到超過一萬筆個人資料（含明碼密碼）</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3911953068890975793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3911953068890975793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3911953068890975793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3911953068890975793'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/mis.html' title='[佛心來的叮嚀] 十惡不赦的MIS'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-5607786659565642326</id><published>2008-05-28T11:39:00.008+08:00</published><updated>2008-12-09T09:49:35.677+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>HEROES觀後感（Vol. 1 &amp; 2）</title><summary type='text'>上個星期因為很單純的念頭（看正妹～）而開始看HEROES。第一季大部分的人都在這了origin link:http://www.nbc.com/Heroes/images/wallpapers/heroes-downloads-desktop-season2-1-1024x768.jpg顧人怨的Sylarorigin link:http://www.nbc.com/Heroes/images/wallpapers/heroes-downloads-desktop-season2-5-1024x768.jpg第一季一共有23集，兩個高潮分別是save the cheerleader與save the world，這兩個高潮合起來就變成劇中常聽到的台詞"save the cheerleader save the world"。本季的主人翁們因為DNA異於常人，</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/5607786659565642326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=5607786659565642326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5607786659565642326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/5607786659565642326'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/heroesvol-1-2.html' title='HEROES觀後感（Vol. 1 &amp; 2）'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SDzmtG2JwJI/AAAAAAAAAno/6MC57q9e3yM/s72-c/heroes-downloads-desktop-season2-1-1024x768.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4148773624118917159</id><published>2008-05-28T11:00:00.003+08:00</published><updated>2008-05-28T11:29:34.864+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>油價上漲 != 補貼小黃</title><summary type='text'>由於產油國疑似哄抬價格加上長期凍漲油價，從今天起油價要一次漲足，此政策一出果然民怨載道，叫得罪兇的不是一般用車民眾，而是運輸業者，因此政府端出補貼運輸業者的牛肉。我認為對於大眾運輸業者如公車、客運等的補貼是舉雙手贊成，畢竟以原（或漲幅較小的）票價鼓勵民眾多多搭乘大眾交通工具可以減少汽、柴油的使用量，不但能夠省錢還可以愛地球。相較之下，我就不懂為什麼要補貼小黃？雖然現在共乘制度慢慢受到重視，但是一次也只能搭載三、四個人（但大部分時候其實還是只有一位乘客），不論對環境或是油耗的影響都很有限。使用者付費是很正常的觀念，與其補貼不如回歸市場機制，價格提高之後搭小黃的人雖然會減少，但再怎麼貴還是會有人搭（例如，報公帳的人，有錢人等）。不能夠因為小黃司機以漲價之後客源減少為訴求的抗議就輕易補貼，這些司機中不乏具有勞動生產力的青壯年人士，為什麼他們一定要選擇開小黃作為主要職業呢（在日本45</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4148773624118917159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4148773624118917159' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4148773624118917159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4148773624118917159'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/blog-post_28.html' title='油價上漲 != 補貼小黃'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3955940532737667043</id><published>2008-05-27T21:39:00.005+08:00</published><updated>2008-12-09T09:49:35.862+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mumble'/><title type='text'>Interesting screenshot of "HEROES"</title><summary type='text'>A screenshot of HEROES (S02E07)The title, sub-title, and photo altogether is very convincing.Take a closer look at the content and you'll see :-)Here comes HEROES' site</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3955940532737667043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3955940532737667043' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3955940532737667043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3955940532737667043'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/interesting-screenshot-of-heroes.html' title='Interesting screenshot of &quot;HEROES&quot;'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_rQtQ8dROuIs/SDwPdG2JwII/AAAAAAAAAng/CdbNKoIWBK8/s72-c/shot0001.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-3675549745765548223</id><published>2008-05-26T21:17:00.003+08:00</published><updated>2008-05-26T21:22:31.544+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Still decide to note this down</title><summary type='text'>$ file [file_name]to get the info of a fileincluding encoding informationso we can use iconv with the correct input</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/3675549745765548223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=3675549745765548223' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3675549745765548223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/3675549745765548223'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/still-decide-to-note-this-down.html' title='Still decide to note this down'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29424489.post-4859821744853958688</id><published>2008-05-22T07:11:00.001+08:00</published><updated>2008-05-22T07:14:47.245+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux note'/><title type='text'>Linux kernel中random的用途</title><summary type='text'>昨天在產生PGP key pair的時候終於第一次見到Linux中random的用途：We need to generate a lot of random bytes. It is a good idea to performsome other action (type on the keyboard, move the mouse, utilize thedisks) during the prime generation; this gives the random numbergenerator a better chance to gain enough entropy.+++++++++++++++++++++++++++++++++++++++++++++++++++++++.++++++++++++++++++++.+++++++++++++++++++++++++++</summary><link rel='replies' type='application/atom+xml' href='http://memyselfandtaco.blogspot.com/feeds/4859821744853958688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29424489&amp;postID=4859821744853958688' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4859821744853958688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29424489/posts/default/4859821744853958688'/><link rel='alternate' type='text/html' href='http://memyselfandtaco.blogspot.com/2008/05/linux-kernelrandom.html' title='Linux kernel中random的用途'/><author><name>t@c0</name><uri>http://www.blogger.com/profile/18216710145323134914</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_rQtQ8dROuIs/SVWcdYcsmgI/AAAAAAAAB-s/bMqAhCpbC0w/S220/DSC00386.JPG'/></author><thr:total>0</thr:total></entry></feed>
