<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>易春木 &#187; 記事本</title>
	<atom:link href="http://eeepage.info/category/spring/person/feed/" rel="self" type="application/rss+xml" />
	<link>http://eeepage.info</link>
	<description>軟體開發, 網站規劃, 以及攝影記錄!</description>
	<lastBuildDate>Wed, 15 Feb 2012 06:57:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>資源豐富的教學網-教育部電機與電子群科中心學校</title>
		<link>http://eeepage.info/242/</link>
		<comments>http://eeepage.info/242/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 07:39:31 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[記事本]]></category>
		<category><![CDATA[基本電學]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[數位邏輯]]></category>
		<category><![CDATA[電子學]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2378</guid>
		<description><![CDATA[發現一個資源豐富的教學網 裡面有基本電學,電子學, 數位邏輯 還有個高工的考試內容 教育部電機與電子群科中心學校 Home >> 數位教材 >> 專業科目]]></description>
			<content:encoded><![CDATA[<p>發現一個資源豐富的教學網<br />
裡面有基本電學,電子學, 數位邏輯<br />
還有個高工的考試內容</p>
<p><span id="more-2378"></span></p>
<p><strong>教育部電機與電子群科中心學校</strong><br />
<a href="http://210.70.70.242/index.php?option=com_content&#038;view=category&#038;layout=blog&#038;id=57&#038;Itemid=116" target="_blank">Home >> 數位教材 >> 專業科目</a></p>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/242/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>android 使用 linux LED driver 來控制GPIO 的LED行為</title>
		<link>http://eeepage.info/linux-led-driver/</link>
		<comments>http://eeepage.info/linux-led-driver/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 10:27:02 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[IT開發]]></category>
		<category><![CDATA[記事本]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[gpio]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2355</guid>
		<description><![CDATA[Linux Kernel's LED driver 一般embedded system廠商控制LED都是透過GPIO的high/low操作 所以不會使用linux kernel內的預設LED功能, 而是自己寫獨立的driver 但是因為正統方式應該要配合Linux Kernel會比較有系統 kernel/drivers/leds 先到kernel作make menuconfig 將LED功能打開 +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y + +# +# &#8230; <a href="http://eeepage.info/linux-led-driver/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p> Linux Kernel's LED driver<br />
		一般embedded system廠商控制LED都是透過GPIO的high/low操作<br />
		所以不會使用linux kernel內的預設LED功能, 而是自己寫獨立的driver<br />
		但是因為正統方式應該要配合Linux Kernel會比較有系統<br />
		kernel/drivers/leds</p>
<hr />
先到kernel作make menuconfig<br />
將LED功能打開</p>
<p><span id="more-2355"></span></p>
<blockquote><p>+CONFIG_NEW_LEDS=y<br />
+CONFIG_LEDS_CLASS=y<br />
+<br />
+#<br />
+# LED drivers<br />
+#<br />
+CONFIG_LEDS_GPIO_PLATFORM=y<br />
+CONFIG_LEDS_TRIGGERS=y
</p></blockquote>
<hr />
去kernel/driver/led底下<br />
作出客製化的修改</p>
<p><strong>Makefile</strong></p>
<blockquote><p> # LED Platform Drivers<br />
+#++<br />
+obj-y                                  += leds-xxxx.o<br />
+#--</p></blockquote>
<p><strong>從led-gpio.c 改寫成另一份檔案 led-xxxx.c</strong></p>
<blockquote><p>1: 可以改寫 led_dat->platform_gpio_blink_set = blink_set;<br />
2: 改寫 gpio_led_work()<br />
反正就是接到led的driver的API, 如led_on(), led_off()</p></blockquote>
<p><strong>Access介面node:</strong></p>
<blockquote><p>
ledtrig-timer.c:78: static DEVICE_ATTR(delay_on, 0644, led_delay_on_show, led_delay_on_store);</p>
</blockquote>
<p><strong>順便提到, led-class: always implement blinking</strong></p>
<blockquote><p>
在2010年時候, kernel/driver/leds<br />
由 <a href="http://nv-tegra.nvidia.com/gitweb/?p=user/amartin/linux-2.6.git;a=commit;h=5ada28bf76752e33dce3d807bf0dfbe6d1b943ad" target="_blank">Johannes Berg 新增一個功能 led-class: always implement blinking</a><br />
led-class: always implement blinking</p>
<p>--<br />
Currently, blinking LEDs can be awkward because it is not guaranteed that<br />
all LEDs implement blinking.  The trigger that wants it to blink then<br />
needs to implement its own timer solution.</p>
<p>Rather than require that, add led_blink_set() API that triggers can use.<br />
This function will attempt to use hw blinking, but if that fails<br />
implements a timer for it.  To stop blinking again, brightness_set() also<br />
needs to be wrapped into API that will stop the software blink.</p>
<p>As a result of this, the timer trigger becomes a very trivial one, and<br />
hopefully we can finally see triggers using blinking as well because it's<br />
always easy to use.</p>
<p>Signed-off-by: Johannes Berg <johannes.berg@intel.com><br />
Acked-by: Richard Purdie <rpurdie@linux.intel.com><br />
Signed-off-by: Andrew Morton <akpm@linux-foundation.org><br />
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org></p></blockquote>
<p>這是近年來 kernel/driver/leds 比較大的修改</p>
<hr />
<strong>如何注册gpio-led平台设备:</strong><br />
(如果是android系統, 應該是寫在 kernel/arch/arm/mach-tegra/board-xxxxx.c)</p>
<blockquote><p>例子如下：<br />
#define GPIO_LED3       138<br />
#define GPIO_LED4       139</p>
<p>static struct gpio_led gpio_leds[] = {<br />
        {<br />
                .name   = "led3",<br />
                .default_trigger = "heartbeat",<br />
                .gpio   = GPIO_LED3,<br />
                .active_low = 1,<br />
                .default_state = LEDS_GPIO_DEFSTATE_OFF,<br />
        },<br />
        {<br />
                .name   = "led4",<br />
                .gpio   = GPIO_LED4,<br />
                .active_low = 1,<br />
                .default_state = LEDS_GPIO_DEFSTATE_OFF,<br />
        },<br />
};</p>
<p>static struct gpio_led_platform_data gpio_led_info = {<br />
        .leds           = gpio_leds,<br />
        .num_leds       = ARRAY_SIZE(gpio_leds),<br />
};</p>
<p>static struct platform_device leds_gpio = {<br />
        .name   = "leds-gpio",<br />
        .id     = -1,<br />
        .dev    = {<br />
                .platform_data  = &#038;gpio_led_info,<br />
        },<br />
};<br />
最后调用platform_device_register(&#038;leds_gpio)将LED设备注册到内核中。注册之前一定要保证编号为138和139的两个端口是可用的。<br />
成功注册之后，系统中便会出现名为led3和led4的两个led_classdev了。由于是用gpio模拟led，所以对gpio-led设置的亮度，只要不是0就是全亮（gpio只有两个状态）。<br />
对于可能睡眠的gpio,gpio-led会借助于工作队列去设置亮度，所以不用担心会被阻塞。</p></blockquote>
<hr />
<p>做完了以上的kernel部分<br />
想要往上讓android系統可以控制光的話, 要使用android光系統</p>
<blockquote><p>
修改:<br />
device/nvidia/common/liblights/lights.c 裡面的<br />
open_lights() 和改寫 set_light_backlight()變成控制LED</p>
<p>修改:<br />
frameworks/base/services/java/com/android/server/BatteryService.java 裡面的<br />
updateLightsLocked() </p></blockquote>
<hr />
<p><strong>參考:</strong><br />
led子系统<br />
<a href="http://blog.csdn.net/yuanlulu/article/details/6438841" target="_blank">http://blog.csdn.net/yuanlulu/article/details/6438841</a></p>
<p>内核中led触发器实例<br />
<a href="http://blog.csdn.net/yuanlulu/article/details/6438847" target="_blank">http://blog.csdn.net/yuanlulu/article/details/6438847</a></p>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/linux-led-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux程式設計教學手冊 Beginning Linux Programming (第四版)</title>
		<link>http://eeepage.info/beginning-linux-programming/</link>
		<comments>http://eeepage.info/beginning-linux-programming/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 05:04:26 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[IT開發]]></category>
		<category><![CDATA[記事本]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[program]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2343</guid>
		<description><![CDATA[這本書的英文原文版在網路上可以下載 (自己google一下吧) 看了書本內容後 覺得這一本可以推薦給初學linux或是想更扎實linux基本功的人使用 不像一般的作業系統(OS)書本那樣理論, 這本書Linux程式設計教學手冊以linux作業系統的實例方式 讓讀者可以更快更精準的進入linux為平台的開發世界 據說原文版已經到第五版了 ... 英文簡介: introduce you to developing programs for Linux and other UIX-style &#8230; <a href="http://eeepage.info/beginning-linux-programming/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p><img src="https://lh3.googleusercontent.com/-A2j47yr3fHY/TwPcfV7-a3I/AAAAAAAADXY/DC_GtYscT3w/7011d1224746160-beginning-linux-programming-4th-edition-beginning-linux-programming-4th-edition%25255B1%25255D.jpg"><br />
這本書的英文原文版在網路上可以下載 (自己google一下吧)</p>
<p><span id="more-2343"></span></p>
<p>看了書本內容後<br />
覺得這一本可以推薦給初學linux或是想更扎實linux基本功的人使用<br />
不像一般的作業系統(OS)書本那樣理論, 這本書Linux程式設計教學手冊以linux作業系統的實例方式<br />
讓讀者可以更快更精準的進入linux為平台的開發世界</p>
<p>據說原文版已經到第五版了 ...</p>
<p><strong>英文簡介:</strong><br />
introduce you to developing programs for Linux and other UIX-style operating systems. It discusses thoroughly all you need to be a good Linux programmer. The book. written by N Matthew and R Stones. encompasses a gamut of topics including both the basics of compiling programs. linking to libraries. terminal input and output. to more advanced topics like writing applications for the GNOME and KDE. data storing using MySQL, debugging etc. It tells you how to make the most of the standard Linux development tools and how to build graphical user interfaces for the X Windows system. The authors introduce appropriate programming theories for each topic with many practical examples and illustrations.<br />
This is a good book for programmers and developers who want to enhance their skills in Linux to be able to create custom applications. </p>
<p><strong>目錄:</strong></p>
<blockquote><p>第 一 章 Linux介紹<br />
第 二 章 Shell程式設計<br />
第 三 章 檔案處理<br />
第 四 章 Linux的環境<br />
第 五 章 終端機（terminal）<br />
第 六 章 使用curses管理文字視窗<br />
第 七 章 資料管理<br />
第 八 章 MySQL<br />
第 九 章 開發工具<br />
第 十 章 除錯<br />
第十一章 處理程序（process）和信號（signal）<br />
第十二章 POSIX執行緒（thread）<br />
第十三章 處理程序間的通訊：管線（pipe）<br />
第十四章 號誌（semaphore）、共享記憶體（shared memory）、<br />
第十五章 訊息佇列（message queue）<br />
第十六章 網路程式設計：socket<br />
第十七章 使用GTK＋設計GNOME視窗程式<br />
第十八章 使用QT設計KDE視窗程式<br />
第十九章 標準化的Linux
</p></blockquote>
<p><strong>博客來的書本介紹:</strong></p>
<blockquote><p>　基於前三版的成功經驗，第四版仍然延續教學的方式，一步步地引領讀者，讓讀者可以迅速在Linux和Unix相關的作業系統下開發程式。作者本身是相當有經驗的Linux程式設計員，所以讓此書可以涵蓋廣泛的主題，讓讀者暸解Linux的資源，讓讀者可以迅速開發程式。</p>
<p>　　讀者將從基本的主題（編譯程式、聯結函式庫、處理終端機的輸出輸入），最後近入進階主題（設計GNOME和KDE的應用程式、使用MySQL儲存資料和除錯等）。在每個主題中，作者都會先介紹理論，隨即利用真實的程式範例，一步步的說明，引導讀者如何應用和實際開發程式。相信Linux的新鮮人也可以快速地開發出Linux的程式。</p>
<p>從本書您將學到什麼：</p>
<p>*使用標準的Linux C函式庫和其它工具。<br />
*編譯標準的Linux開發工具。<br />
*基本的系統呼叫（system calls）、檔案輸出與輸入、處理程序間通訊（interprocess communication）和shell設計。<br />
*使用GTK+或Qt工具，設計圖形化的使用者介面。<br />
*利用sockets，設計TCP/IP網路程式。<br />
*設計相容於不同Linux發行版本的程式。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/beginning-linux-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用 git cherry-pick 處理專案 push/pull request</title>
		<link>http://eeepage.info/git-cherry-pick/</link>
		<comments>http://eeepage.info/git-cherry-pick/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 05:57:45 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[記事本]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git cherry-pick]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2327</guid>
		<description><![CDATA[A-B-C-D-E-F              (master) ......................\ ........................G          (topic) 1: 先切出一個另外的branch (ex: topic) 2: &#8230; <a href="http://eeepage.info/git-cherry-pick/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>A-B-C-D-E-F              (master)<br />
......................\<br />
........................G          (topic)</p>
<p><span id="more-2327"></span></p>
<p>1: 先切出一個另外的branch (ex: topic)<br />
2: 在這個branch (ex: topic)上做修改與撰寫程式碼<br />
3: 在這個branch (ex: topic)上作: git add / git commit<br />
4: 切回master 作: git cherry-pick xxxxxxxxxx / git push</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<blockquote><p>
git cherry-pick 321d76f # 只合併特定其中一個 commit。如果要合併多個，可以加上 -n 指令就不會先幫你 commit，這樣可以多 pick幾個要合併的 commit，最後再 git commit 即可。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/git-cherry-pick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>電子電路: VCC,  VDD,  VSS 定義與區分</title>
		<link>http://eeepage.info/%e9%9b%bb%e5%ad%90%e9%9b%bb%e8%b7%af-vcc-vdd-vss-%e5%ae%9a%e7%be%a9%e8%88%87%e5%8d%80%e5%88%86/</link>
		<comments>http://eeepage.info/%e9%9b%bb%e5%ad%90%e9%9b%bb%e8%b7%af-vcc-vdd-vss-%e5%ae%9a%e7%be%a9%e8%88%87%e5%8d%80%e5%88%86/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 05:53:21 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[IT開發]]></category>
		<category><![CDATA[記事本]]></category>
		<category><![CDATA[vcc]]></category>
		<category><![CDATA[vdd]]></category>
		<category><![CDATA[vss]]></category>
		<category><![CDATA[電子電路]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2325</guid>
		<description><![CDATA[在電子電路中，常可以看到VCC、VDD和VSS三種不同的符號，它們有什麼區別呢？ 一、解釋 VCC：C=circuit 表示電路的意思, 即接入電路的電壓； VDD：D=device 表示器件的意思, 即器件內部的工作電壓； VSS：S=series 表示公共連接的意思，通常指電路公共接地端電壓。 二、說明 1、對於數字電路來說，VCC是電路的供電電壓,VDD是芯片的工作電壓（通常Vcc&#38;gt;Vdd），VSS是接地點。 2、有些IC既有VDD引腳又有VCC引腳，說明這種器件自身帶有電壓轉換功能。 3、在場效應管（或COMS器件）中，VDD為漏極，VSS為源極，VDD和VSS指的是元件引腳，而不表示供電電壓。]]></description>
			<content:encoded><![CDATA[<p>在電子電路中，常可以看到VCC、VDD和VSS三種不同的符號，它們有什麼區別呢？</p>
<p><span id="more-2325"></span></p>
<p>一、解釋</p>
<p>VCC：C=circuit 表示電路的意思, 即接入電路的電壓；</p>
<p>VDD：D=device 表示器件的意思, 即器件內部的工作電壓；</p>
<p>VSS：S=series 表示公共連接的意思，通常指電路公共接地端電壓。</p>
<p>二、說明</p>
<p>1、對於數字電路來說，VCC是電路的供電電壓,VDD是芯片的工作電壓（通常Vcc&amp;gt;Vdd），VSS是接地點。</p>
<p>2、有些IC既有VDD引腳又有VCC引腳，說明這種器件自身帶有電壓轉換功能。</p>
<p>3、在場效應管（或COMS器件）中，VDD為漏極，VSS為源極，VDD和VSS指的是元件引腳，而不表示供電電壓。</p>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/%e9%9b%bb%e5%ad%90%e9%9b%bb%e8%b7%af-vcc-vdd-vss-%e5%ae%9a%e7%be%a9%e8%88%87%e5%8d%80%e5%88%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>程式碼可以用tag方式: 將vim當作source insight 來使用</title>
		<link>http://eeepage.info/tag-vim-source-insight/</link>
		<comments>http://eeepage.info/tag-vim-source-insight/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 06:55:23 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[記事本]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sourceInsight]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2276</guid>
		<description><![CDATA[Trace source at vim 幾個步驟大綱: Introduce Install Setup Tag Your Codebase Text Editor 進階版 [Introduce ] •Source Insight –Good IDE &#8230; <a href="http://eeepage.info/tag-vim-source-insight/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>Trace source at vim<br />
<strong>幾個步驟大綱:</strong></p>
<ul>
<li>Introduce</li>
<li>Install</li>
<li>Setup</li>
<li>Tag Your Codebase</li>
<li>Text Editor</li>
<li>進階版</li>
</ul>
<p><span id="more-2276"></span></p>
<hr />
<strong>[Introduce ]</strong></p>
<div>
<div>
<div>•Source Insight</div>
<div>–Good IDE</div>
<div>–Good at Windows platform</div>
<div>–Bad Overload files</div>
<div>•But what if you ...</div>
<div>–Non-Windows platform (BSD, Linux, …)</div>
<div>–Command line interface (CLI)</div>
<div>–Dislike brute force search : find / grep</div>
<p><strong>[Tools ]</strong></p>
<div>
<div>
<div>•vim</div>
<div>•ctags</div>
<div>•taglist</div>
</div>
</div>
</div>
</div>
<p><strong>[Install ]</strong></p>
<div>
<div>•apt-get install vim</div>
<div>•apt-get install exuberant-ctags</div>
<div>•Download taglist</div>
<div>–<a href="http://vim-taglist.sourceforge.net/" target="_parent">http://vim-taglist.sourceforge.net/</a></div>
<blockquote><div>–Steps:</div>
<div>•下載後解壓縮該檔案<br />
# unzip taglist_45.zip</div>
<div>•將plugin及doc複製到家目錄的“.vim”目錄裏(~ /.vim/) ,如果不存在就建一個新的".vim"</div>
</div>
</blockquote>
<p><strong>[setup ]</strong></p>
<div>
<div>•Modify /etc/vim/vimrc</div>
<blockquote><div>–<em>map &lt;f7&gt; :Tlist&lt;CR&gt;</em></div>
</blockquote>
</div>
<p><strong>[Tag Your Codebase ]</strong></p>
<blockquote><p>ctags -R -h ".h.c.cpp.java" </p></blockquote>
<p><strong>[Text Editor ]</strong><br />
<img src="https://lh5.googleusercontent.com/-lwDraOHADOc/TvAw0SCPpHI/AAAAAAAADWI/7FWWQ6ih-dU/s600/tags-taglist.png" alt="" /></p>
<div>
<div>•Keys:</div>
<blockquote><div>–F7</div>
<div>•Enable / Disable ctags</div>
<div>–Ctrl + w + w</div>
<div>•Switch window</div>
<div>–Left side (Tag List):</div>
<div>•按Enter就會自動跳到相對應的函式或定義</div>
<div>–Right side:</div>
<div>•Ctrl + ] : 跳到游標所指function的implement 位置</div>
<div>•Ctrl + t : 返回到剛剛的位置</div>
</blockquote>
</div>
<p><strong>[進階版 ]</strong></p>
<div>
<div>•apt-get install cscope</div>
<div>•Download</div>
<div>–trinity.zip <a href="http://www.vim.org/scripts/script.php?script_id=2347" target="_parent">http://www.vim.org/scripts/script.php?script_id=2347</a></div>
<div>–srcexpl.vim <a href="http://www.vim.org/scripts/script.php?script_id=2179" target="_parent">http://www.vim.org/scripts/script.php?script_id=2179</a></div>
<div>–Unzip and put these plugin files to</div>
<div>•~ /.vim/plugin</div>
</div>
<p><img src="https://lh4.googleusercontent.com/--wJSTgqAt3A/TvAw0NDjpiI/AAAAAAAADWI/ILQUJ0tLguw/tags-taglist-plugin.png" alt="" /></p>
<div>
<div>•Modify /etc/vim/vimrc</div>
<blockquote><div>" Open and close all the three plugins on the same time</div>
<div>nmap &lt;F8&gt; :TrinityToggleAll&lt;CR&gt;</div>
<div>" Open and close the srcexpl.vim separately</div>
<div>nmap &lt;F9&gt; :TrinityToggleSourceExplorer&lt;CR&gt;</div>
<div></div>
<div>" Open and close the taglist.vim separately</div>
<div>nmap &lt;F10&gt; :TrinityToggleTagList&lt;CR&gt;</div>
<div></div>
<div>" Open and close the NERD_tree.vim separately</div>
<div>nmap &lt;F11&gt; :TrinityToggleNERDTree&lt;CR&gt;</div>
<div></div>
<div>set mouse=nv</div>
</blockquote>
</div>
<p><strong>[參考]:</strong></p>
<div>
<div>•Ctags:</div>
<div>–<a href="http://ctags.sourceforge.net/" target="_parent">http://ctags.sourceforge.net/</a></div>
<div>•Taglist:</div>
<div>–<a href="http://vim-taglist.sourceforge.net/" target="_parent">http://vim-taglist.sourceforge.net/</a></div>
<div>•Ubuntu安裝Vim Plugin ctags及taglist</div>
<div>–<a href="http://stenlyho.blogspot.com/2008/11/ubuntuvim-plugin-ctagstaglist.html" target="_parent">http://stenlyho.blogspot.com/2008/11/ubuntuvim-plugin-ctagstaglist.html</a></div>
<div>•Vim + Trinity + Source Explorer + Tag List + NERD_tree + ctags</div>
<div>–<a href="http://stenlyho.blogspot.com/2010/03/vim-trinity-source-explorer-tag-list.html" target="_parent">http://stenlyho.blogspot.com/2010/03/vim-trinity-source-explorer-tag-list.html</a></div>
<div>•take it easy:vim+trinity+tabbar</div>
<div>–<a href="http://easy72.blogspot.com/2009/05/vim-trinity-tabbar.html" target="_parent">http://easy72.blogspot.com/2009/05/vim-trinity-tabbar.html</a></div>
<div></div>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/tag-vim-source-insight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>為了apt-get修改linux route</title>
		<link>http://eeepage.info/apt-get-linux-route/</link>
		<comments>http://eeepage.info/apt-get-linux-route/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 03:20:59 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[IT開發]]></category>
		<category><![CDATA[記事本]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[route]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2271</guid>
		<description><![CDATA[由於我的公司網路會檔apt-get的下載與更新 讓我感到非常不方便, 甚至我不想要每次都要插拔網路線 第一種方法: 1: 拔除公司網路線 2: 連上手機當熱點的3G無線網路 這種方法缺點就是要手動拔掉網路, 會造成我samba斷線, 每次都要重連 第二種方法: 1: 修改linux的route table 2: 指令: 看route table route &#8230; <a href="http://eeepage.info/apt-get-linux-route/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>由於我的公司網路會檔apt-get的下載與更新<br />
讓我感到非常不方便, 甚至我不想要每次都要插拔網路線</p>
<p><span id="more-2271"></span></p>
<p><strong>第一種方法:</strong><br />
1: 拔除公司網路線<br />
2: 連上手機當熱點的3G無線網路</p>
<ul>
<li>這種方法缺點就是要手動拔掉網路, 會造成我samba斷線, 每次都要重連</li>
</ul>
<p><strong>第二種方法:</strong><br />
1: 修改linux的route table<br />
2: 指令:</p>
<ul>
<li>看route table</li>
<ul>
<li>route -n</li>
</ul>
<li>指定網域140.x.x.x 會透過無線wlan0上網, 記住要先搞清gateway IP address</li>
<ul>
<li>route add -net 140.0.0.0 netmask 255.0.0.0 gw xx.xx.xx.xx dev wlan0</li>
</ul>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/apt-get-linux-route/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iphone無法開機</title>
		<link>http://eeepage.info/iphone-issue/</link>
		<comments>http://eeepage.info/iphone-issue/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 06:52:31 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[記事本]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iphine]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2263</guid>
		<description><![CDATA[按什麼按鈕都不會動,沒反應 依照官網說明 若裝置還是沒有反應或無法啟動（或開機），請嘗試重置 => 同時按住睡眠/喚醒按鈕與主畫面按鈕不放並持續十秒以上。]]></description>
			<content:encoded><![CDATA[<p>按什麼按鈕都不會動,沒反應<br />
<strong>依照<a href="http://support.apple.com/kb/TS3281?viewlocale=zh_TW&#038;locale=zh_TW" target="_blank">官網</a>說明</strong></p>
<p><span id="more-2263"></span></p>
<p>若裝置還是沒有反應或無法啟動（或開機），請嘗試重置<br />
=> 同時按住<strong>睡眠/喚醒按鈕</strong>與<strong>主畫面按鈕</strong>不放並持續十秒以上。</p>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/iphone-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[轉貼] tar壓縮指令常用語法</title>
		<link>http://eeepage.info/tar/</link>
		<comments>http://eeepage.info/tar/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 08:25:13 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[記事本]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2255</guid>
		<description><![CDATA[tar是Linux底下常用到的打包、壓縮工具，它的參數相當多，這裡僅列出常用的壓縮及解壓縮參數。 參數： -c：建立壓縮檔案的參數(create 的意思)； -x：解開壓縮檔案的參數！ -z：是否同時具有gzip的屬性？亦即是否需要用 gzip 壓縮？ -v：壓縮的過程中顯示檔案！ -f：使用檔名，在 f 之後要立即接檔名！不能再加參數！ 範例一：將整個 /var/www 目錄下的檔案全部打包成為 /tmp/www.tar [root@linux ~]# tar -cvf &#8230; <a href="http://eeepage.info/tar/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>tar是Linux底下常用到的打包、壓縮工具，它的參數相當多，這裡僅列出常用的壓縮及解壓縮參數。</p>
<p><span id="more-2255"></span></p>
<p>參數：<br />
-c：建立壓縮檔案的參數(create 的意思)；<br />
-x：解開壓縮檔案的參數！<br />
-z：是否同時具有gzip的屬性？亦即是否需要用 gzip 壓縮？<br />
-v：壓縮的過程中顯示檔案！<br />
-f：使用檔名，在 f 之後要立即接檔名！不能再加參數！</p>
<p>範例一：將整個 /var/www 目錄下的檔案全部打包成為 /tmp/www.tar<br />
[root@linux ~]# tar -cvf /tmp/www.tar /var/www  ←僅打包，不壓縮！<br />
[root@linux ~]# tar -zcvf /tmp/www.tar.gz /var/www  ←打包後，以gzip壓縮！</p>
<p>在參數 f 之後的檔案檔名是自己取的，習慣上都用.tar 來作為辨識，如果加 z 參數，則以.tar.gz或.tgz來代表gzip壓縮過的tar file。</p>
<p>範例二：將 /tmp/www.tar.gz 檔案解壓縮在 /tmp/www 底下<br />
[root@linux ~]# cd /tmp/www<br />
[root@linux src]# tar -zxvf /tmp/www.tar.gz</p>
<p>在預設的情況下，我們可以將壓縮檔解開在任何目錄底下，以範例二而言，我先將工作目錄變換到 /tmp/www底下，並且解開 /tmp/www.tar.gz，則解開的目錄就會置於/tmp/www底下。</p>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/tar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git format-patch 可以限定個數</title>
		<link>http://eeepage.info/git-format-patch-num/</link>
		<comments>http://eeepage.info/git-format-patch-num/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 06:50:47 +0000</pubDate>
		<dc:creator>易春木</dc:creator>
				<category><![CDATA[記事本]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git format-patch]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://eeepage.info/?p=2241</guid>
		<description><![CDATA[git format-patch 預設會從某個commit一路依照commit作出patch檔案們 但是有可能你只想要產生該commit的patch 其實很簡單 後面加個-1就可以啦 git format-patch xxxxxxxxxxxxx -1 如果你要該commit往後的兩個commit的patches 就改成-2]]></description>
			<content:encoded><![CDATA[<p>git format-patch 預設會從某個commit一路依照commit作出patch檔案們<br />
但是有可能你只想要產生該commit的patch</p>
<p><span id="more-2241"></span></p>
<p>其實很簡單<br />
後面加個-1就可以啦<br />
git format-patch  xxxxxxxxxxxxx  -1</p>
<p>如果你要該commit往後的兩個commit的patches<br />
就改成-2</p>
]]></content:encoded>
			<wfw:commentRss>http://eeepage.info/git-format-patch-num/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

