<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/&quot;DkQNQXg9fip7ImA9WxBbFkw.&quot;"><id>tag:blogger.com,1999:blog-22176493</id><updated>2010-03-15T08:53:10.666+08:00</updated><title>Chinson's</title><subtitle type="html">禁止全文轉貼喔，有需要引用的朋友，可部份轉載並註明出處，或者使用連結也是個不錯的方式&lt;br /&gt;
本站網址已修改為︰http://blog.chinson.idv.tw</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>109</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/chinson" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="chinson" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DUUFSXoycCp7ImA9WxBSEEg.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-601039206292381349</id><published>2009-12-17T20:16:00.004+08:00</published><updated>2009-12-17T21:40:18.498+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-17T21:40:18.498+08:00</app:edited><title>Subversion Server on Ubuntu</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/601039206292381349/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=601039206292381349" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/601039206292381349?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/601039206292381349?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/12/subversion-server-on-ubuntu.html" title="Subversion Server on Ubuntu" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><content type="html">寫程式這麼久，今天終於把 Subversion(svn) Server 架起來了XD架一個 Subversion Server 主要有 2 個工作要做︰1. 建立 svn檔案系統(1) 先安裝 subversion 套件及 apache2 的 svn 模組sudo apt-get install subversion libapache2-svn(2) 在系統中建立 svn 的檔案庫目錄︰sudo mkdir /path_to_svn_repository/(3) 在 /path_to_svn_repository/ 建立 svn 的檔案系統sudo svnadmin create /path_to_svn_repository/(4) 設定使用權限給 apache2sudo chown -R www-data:www-data /path_to_svn_repository/2. 在 &lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;DUIDR3w4eSp7ImA9WxNbEk0.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-3073179309793069489</id><published>2009-11-14T22:02:00.002+08:00</published><updated>2009-11-14T22:06:16.231+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-14T22:06:16.231+08:00</app:edited><title>免費好用的影片剪輯軟體 - Avidemux</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/3073179309793069489/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=3073179309793069489" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/3073179309793069489?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/3073179309793069489?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/11/avidemux.html" title="免費好用的影片剪輯軟體 - Avidemux" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">http://avidemux.sourceforge.net/index.html目前我有使用到的功能︰1. 剪去不要的片段2. 串接多個檔案的影片3. 可移除或替換聲音檔剪輯小影片還滿好用的&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CUICQHk8fip7ImA9WxJXEUQ.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-8396327895174032466</id><published>2009-06-05T17:01:00.004+08:00</published><updated>2009-06-05T17:19:21.776+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-05T17:19:21.776+08:00</app:edited><title>Google Gadget for Linux - 在 Ubuntu/Linux 上使用 Google 桌面小工具</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/8396327895174032466/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=8396327895174032466" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8396327895174032466?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8396327895174032466?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/06/google-gadget-for-linux-ubuntulinux.html" title="Google Gadget for Linux - 在 Ubuntu/Linux 上使用 Google 桌面小工具" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">現有的 Google 桌面 for Linux 版本，僅支援個人電腦的資料搜尋功能，沒有在 Windows 版本底下可以使用的小工具功能，如果要使用小工具的功能，那就要透過 "Google Gadget for Linux" 這個開源碼專案。Google Gadget for Linux 有各種 Linux 版本可用的套件，可參考該專案的Wiki 網頁。而在最近版的 Ubuntu 9.10 jaunty 也直接包含這個套件，安裝上就很容易了︰GTK版本︰sudo apt-get install google-gadgets-gtkQT版本︰sudo apt-get install google-gadgets-qt如果想嘗試最新版本，也可以參照其說明編譯最新原始碼 :)開始想去寫一些小工具來玩了，哈~借用一下專案網站上的截圖 :p&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;C0UGQXg4eSp7ImA9WxJWEk0.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-9203875245327447626</id><published>2009-05-08T15:28:00.008+08:00</published><updated>2009-06-17T09:13:40.631+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-17T09:13:40.631+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IT note" /><title>玉山銀行的網路ATM - 原來我也可以用網路ATM!</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/9203875245327447626/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=9203875245327447626" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/9203875245327447626?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/9203875245327447626?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/05/atm.html" title="玉山銀行的網路ATM - 原來我也可以用網路ATM!" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><content type="html">網路ATM應該已經出來很久了，不過我一直沒有嘗試過，不清楚是如何操作的，一個很大的原因是，我手邊並沒有讀卡機，又不想沒事花錢去買一台。最近因為報稅的關係，想去申請了自然人憑證，但是需要讀卡機，正當我在網路上看相關資料時，無意中瞄到筆電側面的SC兩個字，據我以前看說明書，這是Smart Card插座...Smart Card == 晶片卡 ??當時在腦中浮現這個疑問，於是趕快上網一查... 真的耶!!在買了2年多以後，我終於知道我這台筆電可以讀晶片卡，可以用網路ATM!!!(好遲鈍 Orz)話說雖然有讀卡機，但是現在市面上的銀行網路ATM，都是以IE的ActiveX寫成，就一個Firefox使用者來說，十分的不便，不過沒關係，玉山銀行很貼心的為Firefox使用者開發了plugin，所以至少在Windows底下的Firefox是可以使用的。(ps. 現在王山銀行也推出可用於 Linux &lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CUEDQn85eyp7ImA9WxJSF0g.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-5789988538805017787</id><published>2009-04-14T17:24:00.009+08:00</published><updated>2009-05-08T11:34:33.123+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-08T11:34:33.123+08:00</app:edited><title>DICOMViewer - 顯示醫學DICOM影像的Viewer</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/5789988538805017787/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=5789988538805017787" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5789988538805017787?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5789988538805017787?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/04/dicomviewer-dicomviewer.html" title="DICOMViewer - 顯示醫學DICOM影像的Viewer" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_SmQ8qfQoLEI/SeRZNTZqK6I/AAAAAAAAAK4/eymrNd9jFx4/s72-c/dicomviewer_screenshot.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><content type="html">最近花了點時間，以DCMTK函式庫為基礎寫了一個DICOMViewer，這個程式只能瀏覽本地端位於硬碟內的DICOM影像檔，不具有DICOM影像傳輸以及開啟DICOMDIR的功能。此程式包含了一個檔案瀏覽器以及一個顯示區域。程式中可以調整影像顯示的 Window/Level ，並且有放大、拖曳(影像長寬超過顯示區域時)的功能，此外顯示區域內會顯示影像的部份資訊。程式下載位置︰http://code.google.com/p/dicomviewer/Screenshot︰&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;Ak8DQ3YycCp7ImA9WxVaFkU.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-7087152257591057096</id><published>2009-03-25T11:11:00.004+08:00</published><updated>2009-04-14T14:01:12.898+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-14T14:01:12.898+08:00</app:edited><title>MFC 多執行緒的鎖 - Lock</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/7087152257591057096/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=7087152257591057096" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/7087152257591057096?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/7087152257591057096?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/03/mfc-lock.html" title="MFC 多執行緒的鎖 - Lock" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">設計多執緒程式可以避免主程式執行工作時，被運算量較大的工作給絆住，造成視窗延遲的現象。但是在這樣的情況下，主程式的使用者可能會重複觸發程式中的子執行緒行程，使得同時有2個以上的相同子執行緒在工作。此外例如子執行緒工作尚未結束前，主程式的某某些特定工作時必須要等待子執緒的工作完成，程式該如何撰寫。類似的問題，可透過 Lock 來完成。MFC 的 Lock 主要是由以下這幾項構成︰CSemaphore mutex;  // 全域變數，用來計數 lock 數CSingleLock wait(&amp;amp;mutex); // 操作 lock 的類別wait.Lock(INFINITE);  // 要求鎖定 mutexwait.Unlock();  // 要求解鎖 mutex當程式嘗試呼叫 wait.Lock(INFINITE); 鎖定 mutex 時，若 mutex 已經在其他地方被鎖定，&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;AkAGRXg9eyp7ImA9WxVaFkU.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-311927297201636302</id><published>2009-03-25T10:45:00.004+08:00</published><updated>2009-04-14T13:58:44.663+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-14T13:58:44.663+08:00</app:edited><title>簡單的 MFC 多執行緒寫法</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/311927297201636302/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=311927297201636302" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/311927297201636302?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/311927297201636302?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/03/mfc.html" title="簡單的 MFC 多執行緒寫法" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><content type="html">一般程式的執行過程是一個指令一個指令逐步動作，當前一步指令尚未結束前，下一個指令就不會執行，這樣的操作是屬於單執行緒程式。所謂多執行緒，則是程式在主要的執行緒之外，新增其他執行緒工作，使2個(或多個)執行緒同時進行工作，也稱為平行處理程式。我的功力只算剛入門，充其量就是剛寫出一個有子執行緒的小程式，這裡做個筆記。在 VC++ 所建立的 MFC 專案內，假設要加入子執行緒的地方在 testview.cpp 內 (類別為 CTestView，繼承自 CView)如果要開啟子執行緒的函式為 CTestView::Execute() ，則:#include "testview.h"UINT ChildThread_Function ( LPVOID param ){   　CTestView* view = (CTestView*) param;   　param-&amp;gt;DoSomething();&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;DkINRHkzeip7ImA9WxVUEko.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-5992604177841584324</id><published>2009-03-17T14:51:00.004+08:00</published><updated>2009-03-17T15:23:15.782+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-17T15:23:15.782+08:00</app:edited><title>建立動態連結函式庫 - Visual C++ 2005</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/5992604177841584324/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=5992604177841584324" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5992604177841584324?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5992604177841584324?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/03/visual-c-2005.html" title="建立動態連結函式庫 - Visual C++ 2005" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">這是一個簡單的說明跟筆記，相關資料可參考網路上的文章深入C++Builder 探訪動態連結函式庫 (Dynamic Linking Libraries,DLLs)NaCl -動態連結函式庫（Dynamic Linking Libraries,DLLs）在 VC2005 裡，可以建立的範本似乎僅有 MFC DLL 專案，依據其說明，此專案也可建立非MFC應用程式使用的 DLL1. 在新增專案裡直接選 "Visual C++" -&amp;gt; "MFC" -&amp;gt; "MFC DLL"2. 設定 MFC 是採用共用 DLL 或靜態連結，目前僅測試共用DLL的類型3.新增新類別，假設類別名稱是 test  (專案自動產生的檔案可以暫時都不要理它)test.h 檔的內容︰#pragma once#ifdef DLL_EXPORT#define DLLACT __declspec(dllexport)#else#&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;DEEEQ30_fSp7ImA9WxVVE08.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-6801185299791801743</id><published>2009-03-04T17:47:00.004+08:00</published><updated>2009-03-06T16:03:22.345+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-06T16:03:22.345+08:00</app:edited><title>IT筆記與碎碎念貼文分開囉</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/6801185299791801743/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=6801185299791801743" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/6801185299791801743?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/6801185299791801743?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2009/03/it.html" title="IT筆記與碎碎念貼文分開囉" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">當文章慢慢累積之後，慢慢的覺得碎碎念的一些東西，不是很適合跟資訊相關筆記放在一起。這個想法有一陣子了，但是一直沒有動手做，之前也都沒注意到有什麼好方法。最近在修版面設定的時候，注意到Blogger有個匯入匯出的功能，原本想說這只能用來做備份，不過今天心血來潮，就試著動手匯出所有資料，然後再透過Blogger提供的工具，把已匯出的資料再匯入到新的部落格裡，最後把不想移過去的文章刪掉(透過blogger的標籤可以批次刪文)，竟然也就完成了。以後碎碎念的東西，就轉移陣地啦，這裡放一些資訊相關的筆記就好。等到一切搞定後，這裡不該出現的就會不見了，新部落格弄好後就會在這裡放個連結囉。ps. 新部落格開張&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;DkMAQHY-fip7ImA9WxVTEEQ.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-6493705883508517901</id><published>2008-12-24T12:29:00.003+08:00</published><updated>2008-12-24T12:54:01.856+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-24T12:54:01.856+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>Ubuntu 系統如何與 Sony Ericsson K610i 進行檔案傳輸 - By OBEX</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/6493705883508517901/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=6493705883508517901" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/6493705883508517901?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/6493705883508517901?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/12/ubuntu-sony-ericsson-k610i-by-obex.html" title="Ubuntu 系統如何與 Sony Ericsson K610i 進行檔案傳輸 - By OBEX" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><content type="html">Object Exchange (OBEX) protocol 是一種裝置間通訊的協定，最早是使用在紅外線通訊，後來也應用到藍芽、甚至是USB有線。因為我不是學網路技術的，詳細的技術內容就不著墨了，網路上的資料也很多。OBEX 的一項特色是內建於許多的手機當中，手機與手機之間、手機與 PC 之間的檔案傳輸，都可以透過 OBEX 來完成。當然對於終端的使用者來說，OBEX是什麼其實不重要，重要的是裝置之間的傳輸是不是隨插即用。在 Ubuntu 系統中，一般的隨身碟接上 USB 埠之後，通常自動會在桌面出現一個新的儲存裝置，可是預設的環境下，如果接入 Sony Ericsson K610i 手機的 USB 傳輸線，即使設定好檔案傳輸模式，恐怕還是找不到，原因是 OBEX 並沒有預設安裝。安裝其實也很簡單，因為 OBEX 的套件已經在  Ubuntu 的套件庫中了，只要用平常習慣的方式，安裝 &lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CEIARn4yfSp7ImA9WxVaEEQ.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-1157605581516086891</id><published>2008-10-01T15:25:00.008+08:00</published><updated>2009-04-07T16:22:27.095+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-07T16:22:27.095+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IT note" /><title>開放程式碼的視窗開發工具 Eclipse + Qt</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/1157605581516086891/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=1157605581516086891" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/1157605581516086891?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/1157605581516086891?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/10/eclipse-qt.html" title="開放程式碼的視窗開發工具 Eclipse + Qt" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">.Note. 學習 QT 程式設計的好地方︰ Qt4 Gossip玩 Linux 的朋友應該很熟悉 Qt 這個函式庫，它是 KDE 所使用的一個基礎的視窗函式庫，其撰寫語言是 C++。Eclipse 則是我最近一年才聽到的東西，它是一個開放程式碼的程式開發環境，類似於 Visual C++ 這樣的產品，支援 Java, C/C++ 等語言的開發。不過單純的 Eclipse 並不包含 Qt 視窗函式庫，當然也就沒有開發 Qt 程式的整合式視窗開發介面。不過 Qt 為 Eclipse 提供了一個 plugin ，稱為"Qt Eclipse Integration for C++" ，透過這個 plugin 的加持，Eclipse 就搖身變成一個 Qt 的整合式視窗開發工具。這個結合是否夠強大我並不是很了解，但絕對是我個人目前看過結合最完整，介面也最友善的免費工具。不過當然了，Qt &lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CkUFRn0_eSp7ImA9WxdVGEo.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-3906654165960858198</id><published>2008-07-23T17:08:00.001+08:00</published><updated>2008-07-24T11:30:17.341+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-24T11:30:17.341+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IT note" /><title>使用 DCMTK 函式庫 for Visual C++ 2005</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/3906654165960858198/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=3906654165960858198" title="20 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/3906654165960858198?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/3906654165960858198?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/07/dcmtk-for-visual-c-2005_23.html" title="使用 DCMTK 函式庫 for Visual C++ 2005" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">20</thr:total><content type="html">這篇文章假設讀者已經透過 DCMTK 的編譯及設定 for Visual C++ 2005 一文編譯好適用於 VC++2005的函式庫。創建一個新專案後，要如何跟我們已經設定好的 DCMTK 函式庫做連結呢？1. 將 DCMTK 的 include 目錄設定給新專案(1) 在方案總管中點選新專案(2) 從主選單中選擇 "專案" - "屬性"(3) 從對話盒左側選擇 "組態屬性" - "C/C++"(4) 在右側的 "其他 Include 目錄" 屬性中，填入 "C:\DCMTK\include"2. 將 DCMTK 的 lib 目錄設定給新專案(1) 從屬性對話盒左側選擇 "組態屬性" - "連結器"(2) 在右側的 "其他程式庫目錄" 屬性中，填入 "C:\DCMTK\lib"3. 在新專案中指定引用的相關程式庫檔案(1) 從屬性對話盒左側選擇 "組態屬性" - "連結器" - "輸入&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CkUFRn0_eip7ImA9WxdVGEo.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-8226527483408762655</id><published>2008-07-22T10:51:00.002+08:00</published><updated>2008-07-24T11:30:17.342+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-24T11:30:17.342+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IT note" /><title>DCMTK 的編譯及設定 for Visual C++ 2005</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/8226527483408762655/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=8226527483408762655" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8226527483408762655?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8226527483408762655?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/07/dcmtk-for-visual-c-2005.html" title="DCMTK 的編譯及設定 for Visual C++ 2005" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">DCMTK 是一個開放程式碼的 DICOM Toolkit，提供讀取 DICOM 影像及進行傳輸通訊的函式庫。我的博士論文中，有關電腦斷層影像的讀取程式，就是使用 DCMTK 這個函式庫。先前編譯的 DCMTK 版本是 3.5.3 ，但是最近研究室學弟使用這個函式庫在讀取新資料時，頻頻出現問題。問題的可能原因是高榮更新了影像軟體，也許新版本的 DICOM 格式有更新，造成舊的讀取程式不相容。目前最新的 DCMTK 版本是 3.5.4 ，雖然不確定此版本是不是可以使用在新資料上，但總是試試無妨。DCMTK 的程式碼相當龐大，而且適用於 Window 及 Linux 平台，因此在編讀前必須經過一翻設定。以下主要簡介如何在 Windows 下的 Visual C++ 2005 進行 DCMTK 函式庫的設定及編譯。要下載的檔案︰DCMTK 3.5.4 source code and &lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;DUUDRnc6cCp7ImA9WxVVE0w.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-5872637580941657827</id><published>2008-02-25T13:28:00.002+08:00</published><updated>2009-03-06T13:27:57.918+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-06T13:27:57.918+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Research Related" /><title>睡覺也是有方法的</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/5872637580941657827/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=5872637580941657827" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5872637580941657827?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5872637580941657827?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/02/blog-post_25.html" title="睡覺也是有方法的" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">不知道的人也許會認為，睡覺就是睡覺，一次睡8個小時跟分段睡8個小時並沒什麼不同。但是事實上，一次睡足8小時跟分段睡滿8小時是絕對不同的。正常人的睡眠有所謂的睡眠週期，每一個週期內又有不同的睡眠階段，睡眠中的每一個階段，各有不同的用處。分段睡眠會打亂睡眠週期，睡眠的品質可是會大打折扣的。剛剛查資料時，找到一篇與睡眠品質有關的好文，並且還滿適合一般人閱讀的，這篇文章的標題是「優質睡眠」，作者從睡眠的相關科學解釋，來教大家睡覺應該怎麼睡。因為睡眠不只是單純的休息而已，還包括生理機能的修復、免疫系統的運作、甚至於 REM 期可以幫助記憶。睡不好不只是會勞累而已，對身體的長期影響也是很大，現代人應該要多了解喔。優質睡眠︰http://mypaper.pchome.com.tw/news/kiske/3/1295571123/20070924140355/#centerFlag&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;D0IMQHgycCp7ImA9WxZSEk4.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-8011481374358795577</id><published>2008-01-24T15:04:00.000+08:00</published><updated>2008-01-25T12:33:01.698+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-25T12:33:01.698+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>修改及重新製作 Ubuntu 安裝光碟的 iso 檔</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/8011481374358795577/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=8011481374358795577" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8011481374358795577?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8011481374358795577?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/01/ubuntu-iso.html" title="修改及重新製作 Ubuntu 安裝光碟的 iso 檔" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">Ubuntu 提供3個版本的安裝光碟 - desktop, server, alternative在一般情況下，使用官方提供的光碟即可。可是有時候我們想客製化特殊的安裝光碟，就需要重新製作 iso 檔要客製化安裝光碟的 iso 檔，大概需要3個步驟︰(假設使用 ubuntu-7.10-alternate-i386.iso)1. 將原 iso 檔內的光碟內容複製到系統中mkdir -p ~/ubuntumkdir -p ~/cd-imagesudo mount -o loop path-to/ubuntu-7.10-alternate-i386.iso ~/cd-imagecp -rT ~/ubuntu ~/cd-imagesudo umount ~/ubuntu2. 修改光碟內容範例︰修改 kernel 參數，使安裝一開始跳過選擇語言及鍵盤的畫面，並直接選擇繁體中文及US的鍵盤型態(1)&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;DkANSH89cCp7ImA9WxZSEUg.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-2885496211225365765</id><published>2008-01-24T13:57:00.000+08:00</published><updated>2008-01-24T14:06:39.168+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-24T14:06:39.168+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>建立 debian/ubuntu 套件庫映射站(mirror)的方法</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/2885496211225365765/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=2885496211225365765" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/2885496211225365765?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/2885496211225365765?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2008/01/debianubuntu-repository-mirror.html" title="建立 debian/ubuntu 套件庫映射站(mirror)的方法" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">1.系統上要先安裝好 debmirrorapt-get install -y debmirror2.選擇要 mirror 到哪一個目錄裡，假設是 /pathto/ubuntumkdir -p /pathto/ubuntu3.執行 debmirror 指令，從台灣官方中文站的 repository - tw.archive.ubuntu.com 來建立 mirrordebmirror --nosource -m --passive --host=tw.archive.ubuntu.com --root=ubuntu --method=ftp --progress --dist=dapper --section=main --arch=i386 /pathto/ubuntu/ --ignore-release-gpg&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;AkYNRHo-eyp7ImA9WB9UEEw.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-8640300683640640075</id><published>2007-11-30T13:50:00.000+08:00</published><updated>2007-12-07T17:03:15.453+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-12-07T17:03:15.453+08:00</app:edited><title>網址改成 blog.chinson.idv.tw</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/8640300683640640075/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=8640300683640640075" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8640300683640640075?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/8640300683640640075?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/11/blogchinsonidvtw.html" title="網址改成 blog.chinson.idv.tw" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><content type="html">透過 blogger 提供的 "自訂網域" 服務，我把這個部落格的網址轉換到 blog.chinson.idv.tw 這個網址囉。原先 chinsonyeh.blogspot.com 的網址也會自動轉址到 blog.chinson.idv.tw 。我原先就有一個 chinson.idv.tw (一年400元) 的 Domain Name，之前一直覺得這個部落格不用自己的 Domain Name 有點可惜，所以既然有這個服務，當然就給它轉過來了，哈~我還是比較喜歡用 "chinson" 而不是用 "chinsonyeh" ，當初會用 chinsonyeh.blogspot.com 而不用 chinson.blogspot.com ，是因為後者早被別人註冊走了，而且連過去還是空白的 ~_~。&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;A0IARH49eip7ImA9WB9VFE0.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-704774841554797011</id><published>2007-11-29T16:04:00.000+08:00</published><updated>2007-11-30T15:59:05.062+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-30T15:59:05.062+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ARM" /><title>KB9202B  - 製作 JFFS2 影像，並寫入 NAND Flash</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/704774841554797011/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=704774841554797011" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/704774841554797011?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/704774841554797011?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/11/arm-jffs2-nand-flash.html" title="KB9202B  - 製作 JFFS2 影像，並寫入 NAND Flash" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">試了2天，終於成功了...我們要做的工作是把先前可用於 NFS 遠端開機的根檔案系統寫入到目標板上的 NAND Flash 中，要做這件事之前，首要工作是要建立可以寫入 NAND Flash 的一個 JFFS2 影像檔。JFFS2 是用於 Flash 的檔案系統，就我的理解，Linux 是透過 MTD 的驅動程式，將 NAND Flash 模擬成一個分割區(partition, 在我的板子上是 /dev/mtd0)。如果將製作成 JFFS2 形式的影像檔寫入到該分割區，就可以建立在該分割區上的一個 JFFS2 檔案系統。最後藉由正確的開機參數，指定 Linux 核心由該分割區(/dev/mtdblock0)開機。以下流程是說明如何建立 JFFS2 的影像檔，以及如何寫入到 NAND Flash 中。假設製作好且確定可用於 NFS 掛載的根檔案系統，放置於主機的 /usr/local/&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CUUDSH84eip7ImA9WB9VEk8.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-3528611828683764209</id><published>2007-11-23T17:50:00.000+08:00</published><updated>2007-11-28T12:14:39.132+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-28T12:14:39.132+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>建立 patch 檔的方法</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/3528611828683764209/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=3528611828683764209" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/3528611828683764209?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/3528611828683764209?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/11/patch.html" title="建立 patch 檔的方法" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">玩 Linux 這麼久，常常會使用 patch 這個指令，今天我終於了解要怎麼產生一個 patch 檔了。1. 準備修改前及修改後的程式碼 file.cpp , file.cpp.ori (檔名在這邊不重要)2. 使用 diff 指令來產生 2 個檔案之間的差異︰LC_ALL=C TZ=UTC0 diff -Naur file.cpp.ori file.cpp &amp;gt;&amp;gt; my_patch_file前面加上的 LC_ALL=C TZ=UTC0 是根據 man patch 所提到的以下句子，並直接取用其範例指令 :The diff command’s headers should have dates and times in Universal Time using traditional Unix format, so that patch recipients can use the -Z&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CUEERns-eSp7ImA9WB9VEk8.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-5299848441168343041</id><published>2007-11-19T17:16:00.000+08:00</published><updated>2007-11-28T12:20:07.551+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-28T12:20:07.551+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ARM" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>KB9202B - 使用遠端 Linux 核心及根檔案系統</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/5299848441168343041/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=5299848441168343041" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5299848441168343041?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5299848441168343041?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/11/kb9202b-linux.html" title="KB9202B - 使用遠端 Linux 核心及根檔案系統" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total><content type="html">最近猛 K "建構嵌入式 Linux 系統" 這本書，慢慢對整個嵌入式 Linux 的架構有了更深一層的了解。這本書是我大約在2~3年前就買的，當時就想學習嵌入式系統，但是一直苦無機會。這本書出版的時候，Linux 的核心還是 2.4 版，但是書中的資訊一直到現在仍是相當的有用。我在前一文中有提到，在 KB9202B 的相關文件中只教怎麼編 Kernel ，沒教怎麼安裝。而事實上，在嵌入式系統的開發階段，為了節省檔案傳輸的麻煩，是可以不需要將核心甚至是根檔案系統安裝到目標板上，而是將目標板設定成 - "直接使用遠端主機上的 Linux 核心及根檔案系統"。要做這樣子的設定，主要是要修改2個地方，一個是目標板上 U-Boot 的設定，一個是主機上，要讓目標板遠端掛載的根檔案系統。note: 下面的操作前，必須先編譯好核心，並在主機端建立根檔案系統。同時並假設核心的放置目錄為 /&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CE8ASHY5eip7ImA9WB9XGE0.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-7826719689260000698</id><published>2007-11-06T11:39:00.000+08:00</published><updated>2007-11-12T01:40:49.822+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-11-12T01:40:49.822+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ARM" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>在 KB9202B (AT91RM9200 core) 上安裝新 Kernel - 使用 u-boot</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/7826719689260000698/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=7826719689260000698" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/7826719689260000698?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/7826719689260000698?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/11/kb9202b-at91rm9200-core-kernel-u-boot.html" title="在 KB9202B (AT91RM9200 core) 上安裝新 Kernel - 使用 u-boot" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><content type="html">KB9202B 是 Kwikbyte 推出的 ARM920T 學習板，核心是使用 Atmel 製造的 AT91RM9200 。最近花了很多時間在學這張板子，雖然有一些概念了，也懂的怎麼使用內建的 linux 系統，但是離入門還有點距離。KB9202B 板子上提供有 GPIO 埠，但是如果要使用的話，似乎要自行把針腳焊接上去。不過目前的問題卡在，在程式中該怎麼存取系統的 GPIO ，尤期原廠沒有提供相關的資訊。根據 Linux 2.6.21 報馬仔 這篇的說明，2.6.21 的 linux kernel 提供有 GPIO api ，可省去自行撰寫驅動程式的過程，因此我就想嘗試將 kernel 升級。KB9202B 的說明文件中，有說明如何建立 linux host 的開發環境，及如何編譯新板的 u-boot 、linux kernel。可是奇怪的是，linux kernel編好了之後，&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;AkIESH06fip7ImA9WB9RFkU.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-5653825669767202393</id><published>2007-10-18T14:04:00.000+08:00</published><updated>2007-10-18T14:21:49.316+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-10-18T14:21:49.316+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>下載影音串流 - mms:// (Linux)</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/5653825669767202393/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=5653825669767202393" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5653825669767202393?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/5653825669767202393?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/10/mms-linux.html" title="下載影音串流 - mms:// (Linux)" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">當遇到網址為 mms:// 的影音檔，使用播放程式沒辦法另存新檔，直接用網址下載也不行，怎麼辦呢？當然是用專門下載影音串流的程式囉。Windows 下有 SDP 可以用，請參考這一篇說明。Linux 的話可以使用 mimms ，使用方法相當類似 wget ，是一個指令示的工具。首先要知道串流的網址，例如 mms://abc.com/abc.mp3 ，那抓取的方法如下︰mimms -c mms://abc.com/abc.mp3"-c" 是指使用續傳功能，還有其他參數可以使用，請參考 mimms --help 的說明。ps. Ubuntu 可以直接使用 apt 安裝 : sudo apt-get install mimms&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;D0cFQXs9fyp7ImA9WB9SGUg.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-1899295809686947234</id><published>2007-10-10T02:22:00.000+08:00</published><updated>2007-10-10T02:36:50.567+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-10-10T02:36:50.567+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IT note" /><title>原來Yahoo奇摩知識限制他家搜尋的存取</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/1899295809686947234/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=1899295809686947234" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/1899295809686947234?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/1899295809686947234?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/10/yahoo.html" title="原來Yahoo奇摩知識限制他家搜尋的存取" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">平常在搜尋資訊時，極極少有找到奇摩知識上的資訊，原來是 Google 大神被拒在門外啊。Taiwan.CNET︰例如Yahoo!奇摩知識家仍然有此限制；也就是說，Google使用者還是無法搜尋到該服務的內容。難怪 Yahoo 一直打不過 Google 了，像這種鎖國政策真的跟白痴沒兩樣，因為這等於把奇摩知識這個服務與非 Yahoo 搜尋的使用者隔絕了。像我就幾乎沒用過奇摩知識，印象中只有在很久以前(至少1年前)用 Google 搜尋時曾經有查到過上面資料。還好我並不介意 Flickr 不被搜尋引擎找到，不然要是也這樣的話還真是麻煩， Yahoo 的服務還是少用為妙....&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;AkMMRH88fyp7ImA9WB9RFkU.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-2701007497709132153</id><published>2007-10-10T01:17:00.000+08:00</published><updated>2007-10-18T14:21:25.177+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-10-18T14:21:25.177+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>NFS 分享資料夾的設定方法</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/2701007497709132153/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=2701007497709132153" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/2701007497709132153?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/2701007497709132153?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/10/nfs.html" title="NFS 分享資料夾的設定方法" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><content type="html">這是以前寫在別的地方的筆記，因為最近有用到所以挖了出來，autofs 的部份這次並沒有測試。NFS 是用於 Linux 與 Linux 系統網路連線的工具，功能類似 Windows 下的網路芳鄰。一般 Linux 與 Windows 連線必須使用 Samba ，然而 Linux 與 Linux 則是使用 NFS 較簡單快速。1.架設NFS Server在 debian 下要架設 NFS 伺服器必需安裝以下套件 apt-get install nfs-common nfs-kernel-server portmap接著修改 /etc/exports 以設定要分享的目錄$ sudo vim /etc/exports#[欲分享的目錄]　  [主機名稱1或IP1(參數1,參數2)]　 [主機名稱2或IP2(參數3,參數4)]/tmp　　　　　*(rw,sync)/home/public　&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry><entry gd:etag="W/&quot;CkYDR3czfSp7ImA9WB9SGUg.&quot;"><id>tag:blogger.com,1999:blog-22176493.post-2551217384550037647</id><published>2007-10-10T00:44:00.000+08:00</published><updated>2007-10-10T01:16:16.985+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-10-10T01:16:16.985+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><title>如何將 mp3 的 Tag 標籤轉換為 UTF-8 編碼</title><link rel="replies" type="application/atom+xml" href="http://blog.chinson.idv.tw/feeds/2551217384550037647/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=22176493&amp;postID=2551217384550037647" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/2551217384550037647?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/22176493/posts/default/2551217384550037647?v=2" /><link rel="alternate" type="text/html" href="http://blog.chinson.idv.tw/2007/10/mp3-tag-utf-8.html" title="如何將 mp3 的 Tag 標籤轉換為 UTF-8 編碼" /><author><name>Chinson</name><uri>http://www.blogger.com/profile/08193820306750767690</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="07890299970291468862" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><content type="html">f從 Windows 轉換到 Linux 系統的朋友，應該都會發現影音播放器載入mp3音樂的資訊時，中文都呈現亂碼。這是因為目前的 Linux 系統多預設採用 UTF-8 做中文編碼，而 Windows 系統到目前還沒有膽子把系統內的中文編碼完全轉換到 UTF-8 。先前我曾經嘗試找過 Linux 下的程式來做中文編碼的轉換，不過當時似乎不太成熟。後來是發現，原來有一支 Windows 下的影音播放器支援 UTF-8 編碼，而且可以一次選取多個 mp3 檔案，將所有 Big5 的標籤資訊都重新以 UTF-8 寫入，那就是很受玩家喜愛的 foobar2000 。(ps. 因為 foobar2000 在轉 mp3 的中文標籤很方便，我就沒再去找其他 Linux 上的程式來試，也許目前也有方便的 Linux 程式可用。)安裝 foobar2000foobar2000 是 For Windows&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]</content></entry></feed>
