<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7248664223644307689</id><updated>2024-09-06T04:01:58.953+08:00</updated><category term="OMNeT++"/><category term="閱讀紀錄"/><category term="紀錄"/><category term="進度"/><category term="網路模擬"/><category term="NS-3"/><category term="Android"/><category term="Cygwin"/><category term="INET"/><category term="LINUX"/><category term="NS-2"/><category term="VirtualBox"/><category term="WSN"/><category term="WindowsXP"/><category term="鍍膜日記"/><category term="BMI"/><category term="C++"/><category term="CSMA-CA"/><category term="DAYZ"/><category term="ESD"/><category term="Logitech"/><category term="M280"/><category term="MATLAB"/><category term="MiXiM"/><category term="NISSAN"/><category term="NPN"/><category term="OFFICE2007"/><category term="R2010a"/><category term="TVS"/><category term="WINDOWS 7"/><category term="WORD"/><category term="WinPcap"/><category term="bypass"/><category term="decoupling"/><category term="flash"/><category term="flooding"/><category term="gossiping"/><category term="inetmanet"/><category term="make"/><category term="player"/><category term="youtube"/><category term="串流"/><category term="二極體"/><category term="圖片"/><category term="小技巧"/><category term="影音"/><category term="從錯誤中學習"/><category term="抽筋"/><category term="日出高原和風烏龍麵"/><category term="板橋"/><category term="滑鼠"/><category term="烏龍麵"/><category term="筆記"/><category term="網路"/><category term="編譯"/><category term="肌內效"/><category term="觀後感"/><category term="鏡頭"/><category term="開關"/><category term="電容"/><category term="高師傅"/><title type='text'>Allen Juan&#39;s Space</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>阿正</name><uri>http://www.blogger.com/profile/16911766219887987865</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8AjlCCbDsAHX8VSGr7HuRMXq--gyqWXKUBQ_A_B4pCd_o84JChx-AWjr3sYLwRmLGlHq7n9ndb2vmIDp5Bj7zwH-c801BYVkaulct2rpoOkmTZ-3bM1Y_OxS4IKyMdE/s220/2011-06-04+10.09.25.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>48</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-7644728041121149177</id><published>2015-09-07T15:16:00.000+08:00</published><updated>2015-09-07T15:18:20.850+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="抽筋"/><category scheme="http://www.blogger.com/atom/ns#" term="肌內效"/><title type='text'>[運動]預防小腿抽筋</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
因上週參與高強度的比賽(排球)，但鑑於之前的經驗以及最近運動比較少，&lt;br /&gt;
擔心打沒幾球就抽筋了，於是趕快詢問我一個有上過肌內效貼紮課程的球友&lt;br /&gt;
於是就得到了預防的貼法，他稱呼為&quot;離心貼法&quot;，照著圖上貼附的位置貼，&lt;br /&gt;
基本上就是要包覆到肌肉。當天比賽下來，真的有效，以往打到最後都會瀕臨&lt;br /&gt;
要抽不抽的窘境，算是保護身體的方式。&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-aHQww4uy2Qs/Ve04hibS2yI/AAAAAAAABSc/b1AZvrJfcJ8/s1600/IMG_7937.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-aHQww4uy2Qs/Ve04hibS2yI/AAAAAAAABSc/b1AZvrJfcJ8/s320/IMG_7937.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/--Cvmjm9j73k/Ve04hn8qCgI/AAAAAAAABSY/iMboWDt4R58/s1600/IMG_7938.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/--Cvmjm9j73k/Ve04hn8qCgI/AAAAAAAABSY/iMboWDt4R58/s320/IMG_7938.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-oqkLONgdJls/Ve04h2QXYaI/AAAAAAAABSg/hvmNhLahYoo/s1600/IMG_7939.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-oqkLONgdJls/Ve04h2QXYaI/AAAAAAAABSg/hvmNhLahYoo/s320/IMG_7939.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-lRE6zoExB6k/Ve04iFpnqBI/AAAAAAAABSo/d903sKnROf4/s1600/IMG_7940.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-lRE6zoExB6k/Ve04iFpnqBI/AAAAAAAABSo/d903sKnROf4/s320/IMG_7940.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/7644728041121149177/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/09/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/7644728041121149177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/7644728041121149177'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/09/blog-post.html' title='[運動]預防小腿抽筋'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-aHQww4uy2Qs/Ve04hibS2yI/AAAAAAAABSc/b1AZvrJfcJ8/s72-c/IMG_7937.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-2749630536087003193</id><published>2015-07-07T10:07:00.001+08:00</published><updated>2015-07-07T10:07:23.270+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ESD"/><category scheme="http://www.blogger.com/atom/ns#" term="TVS"/><category scheme="http://www.blogger.com/atom/ns#" term="二極體"/><title type='text'>什麼是TVS？</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TVS為暫態電壓抑制器；而TVS二極體是一種十分有效的保護元件，與其它元件相較有其獨特的優勢，但在應用時應當針對不同的保護對象來選用元件，因為不同的連接埠可能受到的靜電衝擊有所不同，不同元件要求的保護程度也有不同。要注意相應的參數鑒別以及各個生產商的不同設計，同時還要進行合理的PCB佈局。&lt;br /&gt;
&lt;br /&gt;
資料來源：&lt;a href=&quot;http://www.eettaiwan.com/SEARCH/ART/TVS.HTM&quot;&gt;EET電子工程專輯&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/2749630536087003193/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/07/tvs.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/2749630536087003193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/2749630536087003193'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/07/tvs.html' title='什麼是TVS？'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-5699621157560551630</id><published>2015-06-08T15:01:00.001+08:00</published><updated>2015-06-08T15:05:44.592+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DAYZ"/><category scheme="http://www.blogger.com/atom/ns#" term="NISSAN"/><title type='text'>[沖繩]日產租車NISSAN DAYZ</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
上週去沖繩玩，這次有租一天的車子，選的是NISSAN的600CC輕量車DAYZ&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-8HSxEFYIM5c/VXU8Hz6kVPI/AAAAAAAABRg/xwt5ghx9c20/s1600/129566029751afea9589707.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://2.bp.blogspot.com/-8HSxEFYIM5c/VXU8Hz6kVPI/AAAAAAAABRg/xwt5ghx9c20/s320/129566029751afea9589707.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;網路所抓取的圖片，與本次旅遊無關&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-g1Yj5tXUGIc/VXU8H1IBInI/AAAAAAAABRc/T_0tmkeF_0c/s1600/autech_nissan_dayz_rider_4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://1.bp.blogspot.com/-g1Yj5tXUGIc/VXU8H1IBInI/AAAAAAAABRc/T_0tmkeF_0c/s320/autech_nissan_dayz_rider_4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 12.8000001907349px;&quot;&gt;網路所抓取的圖片，與本次旅遊無關&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Qps6t9gDO5s/VXU8H49EChI/AAAAAAAABRY/sUiy1nA82CY/s1600/nissan-dayz-roox-04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;http://1.bp.blogspot.com/-Qps6t9gDO5s/VXU8H49EChI/AAAAAAAABRY/sUiy1nA82CY/s320/nissan-dayz-roox-04.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 12.8000001907349px;&quot;&gt;網路所抓取的圖片，與本次旅遊無關&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
只租了一天，顧著玩忘了和車子拍照了，沖繩的車子很多造型都長這樣，&lt;br /&gt;
方方的，非常的可愛，且坐起來也非常的舒服，尤其身材較高的人，坐起&lt;br /&gt;
來也非常的舒適，然後導航只要知道map code就能帶你到目的地，這對於&lt;br /&gt;
來旅遊的觀光客非常的方便！畢竟不是每個人都熟悉日文，這只要輸入數&lt;br /&gt;
字就可以了。&lt;br /&gt;
總結，這台開起來很舒適又輕鬆啊!~</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/5699621157560551630/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/06/nissan-dayz.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/5699621157560551630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/5699621157560551630'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/06/nissan-dayz.html' title='[沖繩]日產租車NISSAN DAYZ'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-8HSxEFYIM5c/VXU8Hz6kVPI/AAAAAAAABRg/xwt5ghx9c20/s72-c/129566029751afea9589707.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-9191642428640173657</id><published>2015-06-08T09:39:00.001+08:00</published><updated>2015-06-08T09:39:31.715+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Logitech"/><category scheme="http://www.blogger.com/atom/ns#" term="M280"/><category scheme="http://www.blogger.com/atom/ns#" term="滑鼠"/><title type='text'>Logitech M280</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-ehuSKsBejIM/VXTx1RkZxaI/AAAAAAAABRI/tnkCnCzllM0/s1600/IMG_7765.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;http://3.bp.blogspot.com/-ehuSKsBejIM/VXTx1RkZxaI/AAAAAAAABRI/tnkCnCzllM0/s320/IMG_7765.JPG&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Logitech M280&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
我的新滑鼠，輕巧好用。</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/9191642428640173657/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/06/logitech-m280.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/9191642428640173657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/9191642428640173657'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/06/logitech-m280.html' title='Logitech M280'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-ehuSKsBejIM/VXTx1RkZxaI/AAAAAAAABRI/tnkCnCzllM0/s72-c/IMG_7765.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-575021229463835762</id><published>2015-06-03T10:24:00.001+08:00</published><updated>2015-06-03T10:24:11.569+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="日出高原和風烏龍麵"/><category scheme="http://www.blogger.com/atom/ns#" term="板橋"/><category scheme="http://www.blogger.com/atom/ns#" term="烏龍麵"/><category scheme="http://www.blogger.com/atom/ns#" term="高師傅"/><title type='text'>[美食]板橋 日出高原和風烏龍麵專賣店(高師傅)</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-sspVQGm8mRA/VW5fdlnSBjI/AAAAAAAABQE/o3ACC6sZCDs/s1600/IMG_7348.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-sspVQGm8mRA/VW5fdlnSBjI/AAAAAAAABQE/o3ACC6sZCDs/s320/IMG_7348.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;最近剛搬到這附近，下班前思考著晚餐要吃什麼，正巧批踢踢上看到板友PO文說這家店CP值很高，本人對於CP值高的就很有興趣，GOOGLE了一下，板友稱這間為高師傅海鮮麵，網路查了一下，似乎應該叫做「日出高原和風烏龍麵」，且原本店是在中和的樣子，評價也蠻不錯的，且現在買炒麵有送「簡單的湯」，下班立馬驅車前往，沒有大扛棒，眼睛要張大點，但還是很快就找到了，點了板友說味道比較夠的豬肉沙茶炒麵(附湯)，老闆說：麵幫你加多一點。這對於離鄉在外地的工作的我真是讓人開心的話，畢竟北部的伙食費用很高啊！然後再看著老闆一邊炒麵一邊在煮附的湯，用料看得真開心，有豬肉(大概火鍋片2片左右)、香菇、鳥蛋、蝦子、丸子和魷魚(一片)，簡單不簡單啊！&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-kOIpfZThwW8/VW5kBaxwX4I/AAAAAAAABQQ/uOmWzp6vJVE/s1600/IMG_7349.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-kOIpfZThwW8/VW5kBaxwX4I/AAAAAAAABQQ/uOmWzp6vJVE/s320/IMG_7349.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;豬肉沙茶炒麵&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-YxOZFCp6g-Y/VW5kBWvoW-I/AAAAAAAABQU/WZ1CJjRxo70/s1600/IMG_7351.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-YxOZFCp6g-Y/VW5kBWvoW-I/AAAAAAAABQU/WZ1CJjRxo70/s320/IMG_7351.JPG&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;簡單的湯&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
這樣60元！真是太划算了！好吃！&lt;br /&gt;
店的位置其實就是裕民街夜市的入口不遠處，經過可以來買回去吃(店裡沒什麼位置，大部分都是外帶回去)。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
相關資訊:&lt;br /&gt;
日出高原和風烏龍麵專賣店&lt;br /&gt;
地址:新北市板橋區裕民街5號(近四維路)&lt;br /&gt;
電話:0960598037&lt;br /&gt;
營業時間:PM 16:00~PM 10:00(週一~五)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PM 12:00~PM 14:00, PM 16:00~PM 10:00(週六、日)</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/575021229463835762/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/06/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/575021229463835762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/575021229463835762'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/06/blog-post.html' title='[美食]板橋 日出高原和風烏龍麵專賣店(高師傅)'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-sspVQGm8mRA/VW5fdlnSBjI/AAAAAAAABQE/o3ACC6sZCDs/s72-c/IMG_7348.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-3507360211425272270</id><published>2015-05-12T18:13:00.002+08:00</published><updated>2015-06-08T09:41:17.330+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bypass"/><category scheme="http://www.blogger.com/atom/ns#" term="decoupling"/><category scheme="http://www.blogger.com/atom/ns#" term="電容"/><title type='text'>退藕(decoupling)電容與旁路(bypass)電容的區別</title><content type='html'>&lt;a href=&quot;http://blog.xuite.net/auster.lai/twblog/214289790-%E9%80%80%E8%97%95%E9%9B%BB%E5%AE%B9%E8%88%87%E6%97%81%E8%B7%AF%E9%9B%BB%E5%AE%B9%E7%9A%84%E5%8D%80%E5%88%A5&quot;&gt;本文引用自此&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;首先解釋以下，什麼是去耦，去耦即去除芯片電源管腳上的噪聲,該噪聲是芯片本身工作產生的。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;濾波電容－用在電源整流電路中，用來濾除交流成分。使輸出的直流更平滑。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;去耦電容－用在放大電路中不需要交流的地方，用來消除自激，使放大器穩定工作。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;旁路電容_用在有電阻連接時，接在電阻兩端使交流信號順利通過。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;去耦電容作用：去除在器件切換時從高頻器件進入到配電網絡中的RF能量。去耦電容還可以為器件供局部化的DC電壓源，它在減少跨板浪湧電流方面特別有用。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;旁路電容作用：從元件或電纜中轉移出不想要的共模RF能量。這主要是通過產生AC旁路消除無意的能量進入敏感的部分，另外還可以提供基帶濾波功能（帶寬受限）。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;我們經常可以看到，在電源和地之間連接著去耦電容，它有三個方面的作用：一是作為本集成電路的蓄能電容；二是濾除該器件產生的高頻噪聲，切斷其通過供電迴路進行傳播的通路；三是防止電源攜帶的噪聲對電路構成乾擾。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;在電子電路中，去耦電容和旁路電容都是起到抗干擾的作用，電容所處的位置不同，稱呼就不一樣了。對於同一個電路來說，旁路（bypass）電容是把輸入信 號中的高頻噪聲作為濾除對象，把前級攜帶的高頻雜波濾除，而去耦（decoupling）電容也稱退耦電容，是把輸出信號的干擾作為濾除對象。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;高頻旁路電容一般比較小，根據諧振頻率一般是0.1u，0.01u等；&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;而去耦合電容一般比較大，是10u或者更大，依據電路中分佈參數，以及驅動電流的變化大小來確定。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;數字電路中典型的去耦電容值是0.1mF。這個電容的分佈電感的典型值是5mH。 0.1mF的去耦電容有5mH的分佈電感，它的並行共振頻率大約在7MHz左右，也就是說，對於10MHz以下的噪聲有較好的去耦效果，對40MHz以上 的噪聲幾乎不起作用。 1mF、10mF的電容，並行共振頻率在20MHz以上，去除高頻噪聲的效果要好一些。每10片左右集成電路要加一片充放電電容，或1個蓄能電容，可選 10mF左右。最好不用電解電容，電解電容是兩層薄膜捲起來的，這種捲起來的結構在高頻時表現為電感。要使用鉭電容或聚碳酸酯電容。去耦電容的選用並不嚴 格，可按C=&quot;1&quot;/F，即10MHz取0.1mF，100MHz取0.01mF。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;備註：電容兌換:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;1F＝1，000，000uF&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;1uF=1,000nF&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 20px;&quot;&gt;1nF=1000pF&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/3507360211425272270/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/05/decouplingbypass.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/3507360211425272270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/3507360211425272270'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/05/decouplingbypass.html' title='退藕(decoupling)電容與旁路(bypass)電容的區別'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-9043365063336236217</id><published>2015-05-12T09:04:00.001+08:00</published><updated>2015-05-12T09:06:07.485+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPN"/><category scheme="http://www.blogger.com/atom/ns#" term="開關"/><title type='text'>近接開關的接法</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;PLC&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;輸入接點怎麼接&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;!? &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 13.5pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;近接開關&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Arial, sans-serif; font-size: 11pt;&quot;&gt;PLC&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: 新細明體, serif; font-size: 11pt;&quot;&gt;輸入接點怎麼接&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Arial, sans-serif; font-size: 11pt;&quot;&gt;!? PLC&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: 新細明體, serif; font-size: 11pt;&quot;&gt;內部電路說明&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://vkinngworld.blogspot.tw/2013/05/plc.html&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #6699cc; font-family: Arial, sans-serif; font-size: 11pt; text-decoration: none;&quot;&gt;http://vkinngworld.blogspot.tw/2013/05/plc.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Arial, sans-serif; font-size: 11.5pt;&quot;&gt;PLC&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: 新細明體, serif; font-size: 11.5pt;&quot;&gt;輸入接點怎麼接&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: Arial, sans-serif; font-size: 11.5pt;&quot;&gt;!? &lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #333333; font-family: 新細明體, serif; font-size: 11.5pt;&quot;&gt;微動開關&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://vkinngworld.blogspot.tw/2013/05/plc_8.html&quot;&gt;&lt;span style=&quot;color: #6699cc; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt; text-decoration: none; text-underline: none;&quot;&gt;http://vkinngworld.blogspot.tw/2013/05/plc_8.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;接來要來說的就是近接開關的接法，也是比較常使用的元件之一。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;下圖是外觀，形狀很多種，不管我們只要了解到電路，就可以去使用它。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;background: white; color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;近接開關內部電路示意，買產品，幾乎都會附，不必擔心沒資料。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-bidi-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background: white; mso-cellspacing: 0cm; mso-padding-alt: 3.0pt 3.0pt 3.0pt 3.0pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: 3.0pt 3.0pt 3.0pt 3.0pt;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-LmGc6j1757Q/VVFRPlztlCI/AAAAAAAABPI/VcZra-rapns/s1600/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;http://2.bp.blogspot.com/-LmGc6j1757Q/VVFRPlztlCI/AAAAAAAABPI/VcZra-rapns/s320/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: 3.0pt 3.0pt 3.0pt 3.0pt;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 9.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;近接開關內部電路&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;1-NPN&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;把內部電路區分幾個部份來說明：&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;1.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;紅框內部為近接開關的線路，所以會有&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;條電線要接，棕&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;=&amp;nbsp;+V&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;，藍&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;=0V&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;，黑&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;輸出&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;2.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;藍框就代表外部的裝置，也可以接其他裝置來觸發，但我們就是要接&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;PLC&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;的輸入接點。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;3.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;綠框&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;電晶體&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;，就等於控制了輸出的信號，及信號的準位&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(PNP&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;、&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;NPN)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;4.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;黃色線就是電流的走向。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-bT4Z7WabUdg/VVFRWixXVQI/AAAAAAAABPQ/zm2M-NoTIRw/s1600/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;http://1.bp.blogspot.com/-bT4Z7WabUdg/VVFRWixXVQI/AAAAAAAABPQ/zm2M-NoTIRw/s320/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF3.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;當綠框&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;電晶體&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;)OFF&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;時，黃色線&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;電流&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;就無法流通，所以&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;OUT= &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;浮接、沒電壓&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;不是&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;0V)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;當綠框&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;電晶體&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;)ON&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;時，黃色線&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;電流&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;就會流通，所以&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;OUT= OV=&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;黑線，棕、黑之間就有&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;24V&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;的電壓差。&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;所以得到，&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;OFF&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;時黑&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;=&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;浮接、無電壓，&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; ON=0V &amp;nbsp; ===&amp;gt;&amp;gt; &amp;nbsp;PLC &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;輸入點就是&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;NPN&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 11.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;的接法。&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background: white; mso-cellspacing: 0cm; mso-padding-alt: 3.0pt 3.0pt 3.0pt 3.0pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: 3.0pt 3.0pt 3.0pt 3.0pt;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-ysjx3EEsgtc/VVFRajIzppI/AAAAAAAABPY/e1dU0i5XRtY/s1600/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF4WAY.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;http://3.bp.blogspot.com/-ysjx3EEsgtc/VVFRajIzppI/AAAAAAAABPY/e1dU0i5XRtY/s320/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF4WAY.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;padding: 3.0pt 3.0pt 3.0pt 3.0pt;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; mso-pagination: widow-orphan; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 9.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;線式&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 9.0pt; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-font-kerning: 0pt; mso-hansi-font-family: Arial;&quot;&gt;近接開關&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 9.0pt; mso-fareast-font-family: 新細明體; mso-font-kerning: 0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/9043365063336236217/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2015/05/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/9043365063336236217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/9043365063336236217'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2015/05/blog-post.html' title='近接開關的接法'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-LmGc6j1757Q/VVFRPlztlCI/AAAAAAAABPI/VcZra-rapns/s72-c/%E8%BF%91%E6%8E%A5%E7%B7%9A%E8%B7%AF.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-4553953548240737218</id><published>2013-10-27T00:26:00.001+08:00</published><updated>2013-10-27T00:26:04.622+08:00</updated><title type='text'>從手指頭分析你的愛情</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Helvetica, Arial, &#39;LiHei Pro&#39;, PMingLiU, sans-serif; font-size: 16px; line-height: 32px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://mind101.pixnet.net/blog/post/85341412-%E5%BE%9E%E6%89%8B%E6%8C%87%E9%A0%AD%E5%88%86%E6%9E%90%E4%BD%A0%E7%9A%84%E6%84%9B%E6%83%85&quot;&gt;此文引用自此&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Helvetica, Arial, &#39;LiHei Pro&#39;, PMingLiU, sans-serif; font-size: 16px; line-height: 32px; margin-bottom: 1em; padding: 0px;&quot;&gt;
如果你五個手指都割傷了，但你只有一個OK蹦，你會先貼哪個手指？&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Helvetica, Arial, &#39;LiHei Pro&#39;, PMingLiU, sans-serif; font-size: 16px; line-height: 32px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
A 大拇指&lt;br /&gt;
B 食指&lt;br /&gt;
C 中指&lt;br /&gt;
D 無名指&lt;br /&gt;
E 小拇指&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Helvetica, Arial, &#39;LiHei Pro&#39;, PMingLiU, sans-serif; font-size: 16px; line-height: 32px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Helvetica, Arial, &#39;LiHei Pro&#39;, PMingLiU, sans-serif; font-size: 16px; line-height: 32px; margin-bottom: 1em; padding: 0px;&quot;&gt;
A&lt;br /&gt;
你是個幸運的人，因為個性比較豁達、單純，你能夠看開很多事情。這樣的你，一定會有人用一輩子去愛你，反而是最有機會得到真愛的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
B&lt;br /&gt;
你是個情感細膩、敏感的人，你的快樂和悲傷，都被緊緊套在愛情上。如果你遇見了喜歡的人，會用不計一切去愛他。祝福你，一定要幸福！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C&lt;br /&gt;
你是一個天真爛漫的孩子，心裡有很多幻想，你會喜歡上很多的人、也會愛上很多人。奉勸你好好把握，不要輕易放手，否則錯過以後會很後悔、很痛喔。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
D&lt;br /&gt;
你是一個缺乏安全感的孩子，對事情抱著懷疑的心理，不敢輕易去接受愛。一旦對方不再溫暖，你就會更恐懼，迅速退回到自己的領地。這樣的你，讓人心疼。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
E&lt;br /&gt;
你個性很倔強，有點不可理喻，這正是你特別的地方，所以一直以來，會有許多人喜歡你。但愛情只有兩個人，多一個很擠的，一定要很快作出選擇，不然會有很多人受傷喔。&lt;/div&gt;
&lt;div class=&quot;fb-comments fb_iframe_widget&quot; data-href=&quot;http://mind101.pixnet.net/blog/post/85341412-%e5%be%9e%e6%89%8b%e6%8c%87%e9%a0%ad%e5%88%86%e6%9e%90%e4%bd%a0%e7%9a%84%e6%84%9b%e6%83%85&quot; data-num-posts=&quot;5&quot; data-width=&quot;500&quot; fb-xfbml-state=&quot;rendered&quot; style=&quot;background-color: white; display: inline-block; font-family: Helvetica, Arial, &#39;LiHei Pro&#39;, PMingLiU, sans-serif; font-size: 16px; line-height: 32px; margin: 0px; padding: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;display: inline-block; height: 260px; position: relative; text-align: justify; width: 500px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/4553953548240737218/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2013/10/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/4553953548240737218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/4553953548240737218'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2013/10/blog-post.html' title='從手指頭分析你的愛情'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-8681395185805770717</id><published>2012-11-24T00:11:00.000+08:00</published><updated>2012-11-24T00:11:33.428+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="鏡頭"/><title type='text'>眩光 (Flare)</title><content type='html'>&lt;span style=&quot;background-color: white; color: #444444; font-family: Arial, 新細明體, mingliu; font-size: 18px; font-weight: bold; line-height: 19.200000762939453px;&quot;&gt;眩光 (Flare)&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, 新細明體, mingliu; font-size: 12px; line-height: 19.200000762939453px;&quot; /&gt;
&lt;div class=&quot;content&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, 新細明體, mingliu; font-size: 12px; line-height: 19.200000762939453px;&quot;&gt;
&lt;div style=&quot;color: #555555; font-size: 13px; line-height: 1.8em;&quot;&gt;
亦稱為「鬼影」。是在相機和其他光學儀器內，由於鏡片表面、鏡筒內壁或機械零件表面反射而產生的非成像光線。&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-size: 13px; line-height: 1.8em;&quot;&gt;
而射入 CCD（或傳統相機的菲林）的眩光，會令影像全部或局部亮度增加，反差度降低，而產生灰霧，使畫面變得平淡而欠缺質感。有時更會發生二次或多次反射，使影像變得更加模糊。&lt;/div&gt;
&lt;div style=&quot;color: #555555; font-size: 13px; line-height: 1.8em;&quot;&gt;
值得注意的，當在背光的環境下拍攝時，由於有很大部分的光線會直接射進鏡頭內，眩光的影響將更為顯著。&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/8681395185805770717/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2012/11/flare.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8681395185805770717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8681395185805770717'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2012/11/flare.html' title='眩光 (Flare)'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-8957515933080162081</id><published>2012-05-12T20:55:00.000+08:00</published><updated>2012-05-12T20:57:03.836+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="player"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube"/><category scheme="http://www.blogger.com/atom/ns#" term="串流"/><category scheme="http://www.blogger.com/atom/ns#" term="影音"/><category scheme="http://www.blogger.com/atom/ns#" term="網路"/><title type='text'>無痛解決看Youtube影片變成 2層</title><content type='html'>&lt;a href=&quot;http://tw.myblog.yahoo.com/monkey_014148/article?mid=-2&amp;amp;next=50860&amp;amp;l=a&amp;amp;fid=21&quot;&gt;參考網頁連結&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
最近發現我用youtube等的網路串流影音時，影片就會變成如以下的情況&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-jfKU_daag2w/T65cldWF73I/AAAAAAAABF4/e1CmprJBepo/s1600/ng.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;http://3.bp.blogspot.com/-jfKU_daag2w/T65cldWF73I/AAAAAAAABF4/e1CmprJBepo/s400/ng.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
這樣的情況一直困擾了我好幾天，因為想不出原因，也試圖移除播放的flash player&lt;br /&gt;
&lt;br /&gt;
然後重新再安裝，結果一點用也沒有，後來才發現大家也有這樣的問題，也因此&lt;br /&gt;
&lt;br /&gt;
我找到解決的方法囉!&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
在影片畫面上點右鍵，點選設定，然後取消硬體加速，如下圖所示&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-A4gPdxh7htg/T65dUc9EzMI/AAAAAAAABGA/gRrgjVO8CLc/s1600/ng-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;http://1.bp.blogspot.com/-A4gPdxh7htg/T65dUc9EzMI/AAAAAAAABGA/gRrgjVO8CLc/s400/ng-1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接著就可以心滿意足地看到畫面變正常了，開心。&lt;br /&gt;
&lt;br /&gt;
This page is created by wcjuan, all rights reserved</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/8957515933080162081/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2012/05/youtube-2.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8957515933080162081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8957515933080162081'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2012/05/youtube-2.html' title='無痛解決看Youtube影片變成 2層'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-jfKU_daag2w/T65cldWF73I/AAAAAAAABF4/e1CmprJBepo/s72-c/ng.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-970064477557835910</id><published>2012-04-27T00:18:00.001+08:00</published><updated>2012-04-27T00:18:42.337+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="鍍膜日記"/><title type='text'>鍍膜流程</title><content type='html'>以SGC-22SA-IAD為例&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;啟動之後，開始抽真空，由
&lt;span style=&quot;font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;RP(Rotary Pump)迴轉幫浦&lt;/span&gt;&amp;nbsp;以及
&lt;span style=&quot;font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;MBP(Mechanical Booster Pump)機械輔助幫浦&lt;/span&gt;&amp;nbsp;先啟動，此範圍為粗略真空，而鍍膜需要到高度真空，此為低於1.0E-1 Pa以下，而&lt;span style=&quot;font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;DP(Diffusion Pump)擴散幫浦也是要到高度真空才會開啟，這部分輔助DP的為冷凝版，它會降溫到150K左右，目的是將氣體分子凝結轉換成液狀讓DP將它抽出。直到抽到所需的氣壓才開始進行鍍膜。(這三個幫浦原理請自行搜尋)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
然後此鍍膜中用來蒸鍍的材料為Ti3O5和SiO2，Ti3O5我們會將它變成TiO2，而SiO2則變成SiO&lt;br /&gt;
在開始鍍膜開始前，會先有預熔的準備動作，熔Ti3O5，然後再來會有clean的階段，做真空清潔，離子槍試點。這些動作都是需要氣壓達指定氣壓才會開始動作。首先電子槍發射電子束，經磁場(電子束帶有電荷)導引做一個180度的電子束打在Ti3O5或SiO2上面做蒸鍍，而為了讓Ti3O5能轉換成TiO2則需要APC通入氣體O2；離子槍(陽極)則是打出中子束來加速蒸鍍，此鍍膜方法稱作離子助鍍，而離子槍需要MFC通入Ar和O2，Ar是用來穩定離子槍上通鎢絲的電流，O2則會打一個O上去，另一個O讓他在艙內隨意移動。待鍍膜完成，因冷凝板的溫度是150K，若馬上打開，會結凍，所以需要先將其升溫，提升氣壓到和外面相同才開啟艙門。&lt;br /&gt;
&lt;br /&gt;
這是一個簡易的大概流程。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
關於折射率，玻璃的為1.5X，Ti3O5的膜為2.X，SiO2的膜為1.3X，因次觀看螢幕顯示結果圖時，可以發現若一開始是先蒸鍍Ti3O5則波形是往上，SiO2則往下，這是由於折射率的關係。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
感應片為偵測蒸鍍速率，若有些起伏則可能為蒸鍍材料的因素，以SiO2來說，鬆散一點可以讓蒸鍍過程較為順利，若是壓得很緊則會讓蒸鍍過程不順利，速率會變得較起伏不定，當然速率也要看是不是EB的POWER影響的結果。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
更換陽極步驟：&lt;br /&gt;
先準備水桶(接水)，然後陽極工具箱(要有新的陽極片、礙子以及布和酒精)&lt;br /&gt;
&lt;br /&gt;
先將水管管路的IG-IN關掉，然後關掉IG-OUT，接著轉開氣體開關(順時鐘)，然後打開IG-IN那邊的空氣閥門，水會噴出管子(記得抓緊)，這步驟為放水，到此即為完成一步驟。&lt;br /&gt;
&lt;br /&gt;
再來就是將陽極照順序卸下，然後拿到噴砂室噴砂(拿回來時記得要檢查有無卡砂)，接水管的地方會有O ring，是黑色的小橡膠圈圈，是水管擋水的，要小心不要弄掉，不然陽極會變水池，裝回去就跟拆的順序相反即可，最後要小心不能讓水管的兩根不能碰到旁邊的任何金屬，會因為短路而IG ERROR，測量的方法為將下方接電極的橘色粗線先拆下來，然後用三用電表一短接陽極線，另一端測量不應該短路的地方，確認無誤後即可。&lt;br /&gt;
&lt;br /&gt;
再來則是試點的動作，在高度真空狀態下，開啟MFC的Ar和O2，然後試點陽極，確認可以成功點燃，且穩定，即為完成陽極更換。&lt;br /&gt;
&lt;br /&gt;
最後補充，陽極清理時要將底座拔下看看下方的電極是否有碳化；還要注意用銅刷刷過之後不要讓銅刷毛卡在任何的地方造成短路。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
為什麼需要在高度真空下鍍膜，推測應為如此可以避免氣體分子的碰撞，以及真空的清潔效果。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
補鍍方法：&lt;br /&gt;
在機器上原本是自動，若是有切到手動的部分，則需要手動補鍍。&lt;br /&gt;
&lt;br /&gt;
以下是大概描述方法&lt;br /&gt;
&lt;br /&gt;
第1和3層有光學校正(如是補鍍這兩層，則需要進到程式將此校正關閉且另存temp檔，然後待會用temp檔燒錄)，第2、3、5、6層為有Peak的層&lt;br /&gt;
&lt;br /&gt;
每層該有的數值，第幾層、波長、start level、set value、stop level，而有peak層的則多了peak&lt;br /&gt;
&lt;br /&gt;
補鍍很重要的就是計算補鍍層的stop level，且手動將其層停止。&lt;br /&gt;
&lt;br /&gt;
無peal層的算法是直接將start level+set value=stop level。&lt;br /&gt;
&lt;br /&gt;
有peak層的算法是peak+-(peak-start level)*set value%，此式所得即為stop level。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
常出現的error為IG ERROR、EB ERROR、光學監控問題(例如起始值超過起始範圍)&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
下回想了解的是如何做鏡片的QC&lt;br /&gt;
This page is created by wcjuan, all rights reserved</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/970064477557835910/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2012/04/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/970064477557835910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/970064477557835910'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2012/04/blog-post.html' title='鍍膜流程'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-1979061454254813992</id><published>2012-04-25T00:27:00.000+08:00</published><updated>2012-04-27T00:18:51.293+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="鍍膜日記"/><title type='text'>SGC-22SA-IAD</title><content type='html'>Regen 再生&lt;br /&gt;
&lt;br /&gt;
Chamber 房間&lt;br /&gt;
&lt;br /&gt;
DEGAS TEMP&lt;br /&gt;
&lt;br /&gt;
FILAMENT 燈絲&lt;br /&gt;
&lt;br /&gt;
EMISSION CURRENT 發射電流&lt;br /&gt;
&lt;br /&gt;
ANODE 陽極&lt;br /&gt;
&lt;br /&gt;
NEUTRALIZER 中和劑&lt;br /&gt;
&lt;br /&gt;
VENT 洩真空&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
百帕=毫巴&lt;br /&gt;
&lt;br /&gt;
粗略真空(Rough Vacuum, RV)&lt;br /&gt;
壓力範圍：1.0E+3~1毫巴，氣流為黏滯流&lt;br /&gt;
&lt;br /&gt;
中度真空(Medium Vacuum, MV)&lt;br /&gt;
1~1.0E-3毫巴，過度流&lt;br /&gt;
&lt;br /&gt;
高真空(High Vacuum, HV)&lt;br /&gt;
1.0E-3~1.0E-7毫巴，分子流&lt;br /&gt;
&lt;br /&gt;
超高真空(Ultra High Vacuum, UHV)&lt;br /&gt;
1.0E-7以下，分子流&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
真空鍍膜所需設備：&lt;br /&gt;
1.高真空系統&lt;br /&gt;
2.輝光放電系統&lt;br /&gt;
3.蒸鍍源&lt;br /&gt;
4.基板溫度控制器&lt;br /&gt;
5.膜厚監視器(水晶監視器)&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
RP(Rotary Pump)迴轉幫浦&lt;br /&gt;
MBP(Mechanical Booster Pump)機械輔助幫浦&lt;br /&gt;
DP(Diffusion Pump)擴散幫浦&lt;br /&gt;
MV(Main Valve)主閥門&lt;br /&gt;
RV(Rough Valve)粗抽閥門&lt;br /&gt;
SRV(Slow Rough Valve)慢速粗抽閥門&lt;br /&gt;
FV(Fore Valve)前閥門&lt;br /&gt;
VV(Vent valve)破真空閥門&lt;br /&gt;
SVV(Slow Vent Valve)慢速破真空閥門&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
睏了，明天待續...&lt;br /&gt;
&lt;br /&gt;
This page is created by wcjuan, all rights reserved</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/1979061454254813992/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2012/04/sgc-22sa-iad.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1979061454254813992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1979061454254813992'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2012/04/sgc-22sa-iad.html' title='SGC-22SA-IAD'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-5965658339007759653</id><published>2011-12-18T23:03:00.001+08:00</published><updated>2011-12-18T23:04:23.272+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>自動補完功能</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
工具列 Windows -&amp;gt; Preferences -&amp;gt; Java -&amp;gt; Editor -&amp;gt; Content Assist&lt;br /&gt;
&lt;br /&gt;
勾選 &quot;Enable auto-activation&quot;&lt;br /&gt;
&lt;br /&gt;
Auto activation delay 為提示出現的延遲時間，可以設為 0 &lt;br /&gt;
&lt;br /&gt;
Auto activation triggers for Java 為遇到何種字元會自動啟動提示，預設只有 dot，請改為&lt;br /&gt;
&lt;br /&gt;
.abcdefghijklmnopqrstuvwxyz(,</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/5965658339007759653/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/12/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/5965658339007759653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/5965658339007759653'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/12/blog-post.html' title='自動補完功能'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-7489560707623667099</id><published>2011-12-04T00:27:00.001+08:00</published><updated>2011-12-04T00:30:26.388+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><title type='text'>20111130 C++練習</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;下面是練習的程式&lt;br /&gt;
&lt;br /&gt;
是照著書上打的，可是沒辦法編譯&lt;br /&gt;
 &lt;br /&gt;
 顯示說沒有宣告numeric_limits&lt;br /&gt;
&lt;br /&gt;
為什麼呢？&lt;br /&gt;
&lt;br /&gt;
書上範例並沒有宣告啊&lt;br /&gt;
&lt;br /&gt;
我以為這是標頭檔裡面早就有的，會是什麼問題呢？&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;--&lt;br /&gt;
#include&amp;lt;iostream&amp;gt;&lt;br /&gt;#include&amp;lt;climits&amp;gt;&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main(){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //int 整數的最大值與最小值&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; &quot;&amp;gt; 最大整數 int \t\t\t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;int&amp;gt;::max()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; &quot;\n&amp;gt; 最小整數 int \t\t\t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;int&amp;gt;::min();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //unsigned int 無號整數的最小值與最大值&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; &quot;\n\n&amp;gt; 最大無號整數 unsigned int \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;unsigned int&amp;gt;::max()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; &quot;\n&amp;gt; 最小無號整數 unsigned int \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;unsigned int&amp;gt;::min();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //long long int 長長整數的最小值與最大值&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; &quot;\n\n&amp;gt; 最大長長整數 long long int \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;long long int&amp;gt;::max()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; &quot;\n&amp;gt; 最小長長整數 long long int \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;long long int&amp;gt;::min();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //float 單精準確度浮點數的最小值與最大值&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; &quot;\n\n&amp;gt; 最大單精準確度浮點數 float \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;float&amp;gt;::max()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; &quot;\n&amp;gt; 最小單精準確度浮點數 float \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;float&amp;gt;::min();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //double 雙精準確度浮點數的最小值與最大值&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout&amp;lt;&amp;lt; &quot;\n\n&amp;gt; 最大雙精準確度浮點數 double \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;double&amp;gt;::max()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; &quot;\n&amp;gt; 最小雙精準確度浮點數 double \t: &quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; numeric_limits&amp;lt;double&amp;gt;::min();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; system(&quot;pause&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;}&lt;br /&gt;
--</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/7489560707623667099/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/12/20111130-c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/7489560707623667099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/7489560707623667099'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/12/20111130-c.html' title='20111130 C++練習'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-5968682280137380542</id><published>2011-11-04T17:51:00.002+08:00</published><updated>2011-11-16T11:18:31.629+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="BMI"/><title type='text'>20111104 BMI Android App v1.0</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-oV6zoaSJsGE/TrO1ki9AsuI/AAAAAAAAAaM/Je-Em39VeL0/s1600/BMI.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-oV6zoaSJsGE/TrO1ki9AsuI/AAAAAAAAAaM/Je-Em39VeL0/s400/BMI.png&quot; width=&quot;266&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;BMI主頁java&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
public class Bmi extends Activity {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // 宣告一個常數型別&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; protected static final int MENU_ABOUT = Menu.FIRST;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; protected static final int MENU_QUIT = Menu.FIRST + 1;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean onCreateOptionsMenu(Menu menu) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; menu.add(0, MENU_ABOUT, 0, &quot;關於...&quot;).setIcon(&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; android.R.drawable.ic_menu_help);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; menu.add(0, MENU_QUIT, 0, &quot;結束&quot;).setIcon(&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; android.R.drawable.ic_menu_close_clear_cancel);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return super.onCreateOptionsMenu(menu);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // 處理選項動作&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean onOptionsItemSelected(MenuItem item) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; switch (item.getItemId()) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case MENU_ABOUT:&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; openOptionsDialog();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case MENU_QUIT:&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; finish();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return super.onOptionsItemSelected(item);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /** Called when the activity is first created. */&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.main);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; findViews();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setListensers();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private Button button_calc;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private EditText field_height;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private EditText field_weight;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void findViews() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; button_calc = (Button) findViewById(R.string.submit);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; field_height = (EditText) findViewById(R.string.height);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; field_weight = (EditText) findViewById(R.string.weight);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Listen for button clicks&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void setListensers() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; button_calc.setOnClickListener(calcBMI);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // 傳值到report page&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private Button.OnClickListener calcBMI = new Button.OnClickListener() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View v) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;if&quot;判斷式判斷EditText是否有值，String不能用&quot;!= null&quot;，equal(&quot;&quot;)表示null&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if ((!(field_height.getText().toString().equals(&quot;&quot;)))&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; (!(field_weight.getText().toString().equals(&quot;&quot;)))) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // 轉換到 report page&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Intent intent = new Intent();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; intent.setClass(Bmi.this, Report.class);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Bundle bundle = new Bundle();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bundle.putString(&quot;KEY_HEIGHT&quot;, field_height.getText()&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .toString());&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bundle.putString(&quot;KEY_WEIGHT&quot;, field_weight.getText()&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .toString());&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; intent.putExtras(bundle);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; startActivity(intent);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else if ((field_height.getText().toString().equals(&quot;&quot;))&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; || (field_weight.getText().toString().equals(&quot;&quot;))) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Toast.makeText(Bmi.this, &quot;資料不完整&quot;, Toast.LENGTH_LONG).show();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // 對話框&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void openOptionsDialog() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; new AlertDialog.Builder(Bmi.this)&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .setTitle(R.string.about_title)&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .setMessage(R.string.about_msg)&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .setPositiveButton(R.string.ok_label,&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; new DialogInterface.OnClickListener() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DialogInterface dialoginterface, int i) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .setNegativeButton(R.string.homepage_label,&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; new DialogInterface.OnClickListener() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DialogInterface dialoginterface, int i) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // 開啟網路連結到網頁&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Uri uri = Uri&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .parse(getString(R.string.homepage_uri));&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Intent intent = new Intent(Intent.ACTION_VIEW,&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; uri);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; startActivity(intent);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }).show();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;b&gt;BMI的Report頁面&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
public class Report extends Activity {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /** Called when the activity is first created. */&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.report);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; findViews();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; showResults();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setListensers();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private Button button_back;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private TextView view_result;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private TextView view_suggest;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void findViews() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; button_back = (Button) findViewById(R.id.report_back);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; view_result = (TextView) findViewById(R.id.result);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; view_suggest = (TextView) findViewById(R.id.suggest);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Listen for button clicks&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void setListensers() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; button_back.setOnClickListener(backMain);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; 返回計算BMI的主頁&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private Button.OnClickListener backMain = new Button.OnClickListener() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View v) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // 關閉這個Activity&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Report.this.finish();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; 顯示結果&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void showResults() {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DecimalFormat nf = new DecimalFormat(&quot;0.00&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Bundle bundle = this.getIntent().getExtras();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; double height = Double.parseDouble(bundle.getString(&quot;KEY_HEIGHT&quot;)) / 100;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; double weight = Double.parseDouble(bundle.getString(&quot;KEY_WEIGHT&quot;));&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; double BMI = weight / (height * height);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; view_result.setText(getString(R.string.result) + nf.format(BMI));&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // 給予健康建議&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (BMI &amp;gt; 25) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; showNotification(BMI);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; view_suggest.setText(R.string.advice_heavy);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (BMI &amp;lt; 20) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; view_suggest.setText(R.string.advice_light);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; view_suggest.setText(R.string.advice_average);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; 顯示在上方的訊息提醒&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private void showNotification(double BMI) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NotificationManager barManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Notification barMsg = new Notification(&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // R.drawable.icon&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; android.R.drawable.stat_sys_warning, &quot;歐歐！你怎麼胖成這樣！&quot;,&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.currentTimeMillis());&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PendingIntent contentIntent = PendingIntent.getActivity(this, 0,&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; new Intent(this, Bmi.class), PendingIntent.FLAG_UPDATE_CURRENT);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; barMsg.setLatestEventInfo(Report.this, &quot;你的 BMI 值過高！&quot;, &quot;通知監督人&quot;,&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; contentIntent);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; barManager.notify(0, barMsg);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/5968682280137380542/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/11/20111104-bmi-android-app-v10.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/5968682280137380542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/5968682280137380542'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/11/20111104-bmi-android-app-v10.html' title='20111104 BMI Android App v1.0'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-oV6zoaSJsGE/TrO1ki9AsuI/AAAAAAAAAaM/Je-Em39VeL0/s72-c/BMI.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-1064900658755949427</id><published>2011-11-03T16:52:00.001+08:00</published><updated>2011-11-16T11:18:50.576+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>20111103 音樂按鈕的Android App</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
結果如以下連結&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.appinventorbeta.com/learn/setup/hellopurr/hellopurrphonepart1.html&quot;&gt;貓咪音效&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
主要是利用&lt;br /&gt;
&lt;br /&gt;
1.ImageButton&lt;br /&gt;
2. MediaPlayer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
public class MediaDemo extends Activity {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /**宣告一個全域變數mp*/&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private MediaPlayer mp;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /** Called when the activity is first created. */&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.main);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 宣告一個圖像按鈕；MediaPlayer初始化&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ImageButton ButPlay = (ImageButton) findViewById(R.id.imageButton1);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mp = MediaPlayer.create(MediaDemo.this,R.raw.ooh);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ButPlay.setOnClickListener(play);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 宣告一個結束按鈕&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Button Exitmp = (Button)findViewById(R.id.button1);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Exitmp.setOnClickListener(stopmp);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private OnClickListener play = new OnClickListener(){&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View v){&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(mp.isPlaying()){&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mp.stop();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 因為mp.stop()會直接把MediaPlayer整個關掉，因此要重新給它初始化&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mp = MediaPlayer.create(MediaDemo.this,R.raw.ooh);&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mp.start();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private&amp;nbsp; OnClickListener stopmp = new OnClickListener(){&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View v){&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; MediaPlay是在背景播放的，所以離開app必須連MediaPlayer也要關掉&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mp.stop();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; MediaDemo.this.finish();&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
--</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/1064900658755949427/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/11/20111103-android-app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1064900658755949427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1064900658755949427'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/11/20111103-android-app.html' title='20111103 音樂按鈕的Android App'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-9031510770892704637</id><published>2011-10-24T22:42:00.000+08:00</published><updated>2011-10-24T22:42:08.254+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="觀後感"/><title type='text'>猩球崛起</title><content type='html'>This page is created by wcjuan, all rights reserved&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-Aid2N5nmDlI/TqUWEo_-9pI/AAAAAAAAAUA/xo8KBj5Ejxk/s1600/rise_of_the_planet_of_the_apes_by_xjamo-d412sbn.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;http://3.bp.blogspot.com/-Aid2N5nmDlI/TqUWEo_-9pI/AAAAAAAAAUA/xo8KBj5Ejxk/s400/rise_of_the_planet_of_the_apes_by_xjamo-d412sbn.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
大家可能都以為當這些被關起來的猩猩們，經過被人類當玩具一樣耍和虐待&lt;br /&gt;
&lt;br /&gt;
之後，一夕之間智慧突飛猛進，逃出大鐵籠之後將可能是一場大屠殺，結果&lt;br /&gt;
&lt;br /&gt;
並沒有。牠們往森林的途中，只有擋開阻擋牠們的人，卻沒有刻意地要傷害&lt;br /&gt;
&lt;br /&gt;
任何一個人。而大金剛為凱薩擋住直升機掃射的那幕，真的太感人了，與片&lt;br /&gt;
&lt;br /&gt;
中的那些大老闆來相比，到底誰才是高等生物。我們不斷地想要開發科技，&lt;br /&gt;
&lt;br /&gt;
然後被大自然反撲了才再反省，一直周而復始，昨天跟朋友聊到，對於台灣&lt;br /&gt;
 &lt;br /&gt;
 的大環境，追求利益總是壓過環境生態的保育，總是等到即將失去才想到要&lt;br /&gt;
&lt;br /&gt;
保存保育，許多外國人喜歡來台灣的地方是一些未開發，美麗的地方，但是&lt;br /&gt;
&lt;br /&gt;
我們的商人，只要看到有利可圖就不管三七二十一地胡亂開發，而政府監督&lt;br /&gt;
&lt;br /&gt;
機關也不克盡職責，做好監督的身分，原本的寶島，還有多少的寶被留下，&lt;br /&gt;
&lt;br /&gt;
又有多少是一直再失去。糟糕，好像扯得有點遠。拉回來一下，片中猩猩被&lt;br /&gt;
 &lt;br /&gt;
 關在疾管局時，畫了一個窗戶，想著主人能來帶牠回家，最後牠知道牠是必&lt;br /&gt;
&lt;br /&gt;
須和牠的同伴一起生活的，當凱薩說出「NO!」的時候，大家都傻了，猩猩&lt;br /&gt;
 &lt;br /&gt;
 開始說話了，然後最後牠告訴了主角「&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;凱薩回家了」，沒有對於人類的仇恨&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;，只是回到牠們該回去的地方。最後的結局讓人有很多的想像，可以是「決&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;戰猩球」的前傳，也可以像是「全境擴散」一樣，而猩猩卻沒有因為那種藥&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;而產生抗體繼而死亡，是不是又可以從猩猩身上得到解藥，給人好多想像。&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/9031510770892704637/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/10/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/9031510770892704637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/9031510770892704637'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/10/blog-post.html' title='猩球崛起'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-Aid2N5nmDlI/TqUWEo_-9pI/AAAAAAAAAUA/xo8KBj5Ejxk/s72-c/rise_of_the_planet_of_the_apes_by_xjamo-d412sbn.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-1446497028316873676</id><published>2011-10-21T21:58:00.000+08:00</published><updated>2011-10-21T21:58:53.118+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="make"/><category scheme="http://www.blogger.com/atom/ns#" term="編譯"/><title type='text'>Make</title><content type='html'>&lt;a href=&quot;http://zh.wikipedia.org/wiki/Make&quot;&gt;本文引用自此&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;make&lt;/b&gt;是一個自動轉化檔案形式的工具，轉換的標的稱為「target」；與此同&lt;br /&gt;
&lt;br /&gt;
時，它也檢查檔案的依賴關聯，如果需要的話，它會呼叫一些外部軟體來完&lt;br /&gt;
&lt;br /&gt;
成任務。它的依賴關聯檢查系統非常簡單，主要根據依賴檔案的修改時間進&lt;br /&gt;
&lt;br /&gt;
行判斷。大多數情況下，它被用來&lt;a class=&quot;mw-redirect&quot; href=&quot;http://zh.wikipedia.org/wiki/%E7%BC%96%E8%AF%91&quot; title=&quot;編譯&quot;&gt;編譯&lt;/a&gt;&lt;a href=&quot;http://zh.wikipedia.org/wiki/%E6%BA%90%E4%BB%A3%E7%A0%81&quot; title=&quot;原始碼&quot;&gt;原始碼&lt;/a&gt;，生成&lt;a href=&quot;http://zh.wikipedia.org/wiki/%E7%9B%AE%E6%A0%87%E4%BB%A3%E7%A0%81&quot; title=&quot;目的碼&quot;&gt;結果代碼&lt;/a&gt;，然後把結果&lt;br /&gt;
&lt;br /&gt;
代碼連線起來生成&lt;a class=&quot;mw-redirect&quot; href=&quot;http://zh.wikipedia.org/wiki/%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%96%87%E4%BB%B6&quot; title=&quot;執行檔&quot;&gt;執行檔&lt;/a&gt;或者&lt;a class=&quot;mw-redirect&quot; href=&quot;http://zh.wikipedia.org/wiki/%E5%BA%93%E6%96%87%E4%BB%B6&quot; title=&quot;庫檔案&quot;&gt;庫檔案&lt;/a&gt;。它使用叫做「makefile」的檔案來確&lt;br /&gt;
&lt;br /&gt;
定一個target檔案的依賴關聯，然後把生成這個target的相關命令傳給shell去&lt;br /&gt;
&lt;br /&gt;
執行。&lt;br /&gt;
&lt;br /&gt;
下面這個網站也很棒 &lt;br /&gt;
&lt;a href=&quot;http://wiki.ubuntu.org.cn/index.php?title=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E5%86%99Makefile:MakeFile%E4%BB%8B%E7%BB%8D&amp;amp;variant=zh-hant#make.E6.98.AF.E5.A6.82.E4.BD.95.E5.B7.A5.E4.BD.9C.E7.9A.84&quot;&gt;make是如何工作的 &lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/1446497028316873676/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/10/make.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1446497028316873676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1446497028316873676'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/10/make.html' title='Make'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-8137333959285510438</id><published>2011-10-14T23:03:00.003+08:00</published><updated>2011-10-21T22:46:47.519+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MiXiM"/><category scheme="http://www.blogger.com/atom/ns#" term="OMNeT++"/><category scheme="http://www.blogger.com/atom/ns#" term="網路模擬"/><title type='text'>2011.10.14 換個模組來用用</title><content type='html'>弄了半天的inetmanet，結果怎麼也弄不成自己想要的網路環境&lt;br /&gt;
&lt;br /&gt;
裏頭操作還挺複雜的&lt;br /&gt;
&lt;br /&gt;
尤其inetmanet裡面東西太多，導致很難湊齊自己所需的&lt;br /&gt;
&lt;br /&gt;
然後又有一堆警告和臭蟲&lt;br /&gt;
&lt;br /&gt;
所以猜想可能是自己選錯模組來用&lt;br /&gt;
&lt;br /&gt;
然後就仔細再看一下官網上面所提供的模組&lt;br /&gt;
&lt;br /&gt;
然後選了MiXiM來用&lt;br /&gt;
&lt;br /&gt;
這套裏頭包含了：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
     &lt;a href=&quot;http://www.cs.uni-paderborn.de/en/fachgebiete/research-group-computer-networks/projects/chsim.html&quot;&gt;ChSim&lt;/a&gt;
     by &lt;a href=&quot;http://www.uni-paderborn.de/&quot;&gt;Universitaet Paderborn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
     &lt;a href=&quot;http://www.consensus.tudelft.nl/software.html&quot;&gt;Mac Simulator&lt;/a&gt;
     by &lt;a href=&quot;http://www.pds.ewi.tudelft.nl/&quot;&gt;Technische Universiteit Delft&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
     &lt;a href=&quot;http://mobility-fw.sourceforge.net/&quot;&gt;Mobility Framework&lt;/a&gt;
     by &lt;a href=&quot;http://www.tkn.tu-berlin.de/&quot;&gt;Technische Universitaet Berlin, Telecommunication Networks Group&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
     &lt;a href=&quot;http://www.consensus.tudelft.nl/software.html&quot;&gt;Positif Framework&lt;/a&gt;
     by &lt;a href=&quot;http://www.pds.ewi.tudelft.nl/&quot;&gt;Technische Universiteit Delft&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Build Project完之後出現了三個警告&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-sGHoKTTHHT0/TphJ4m9n4BI/AAAAAAAAASc/uvG07LkeC0Y/s1600/warnings.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;http://2.bp.blogspot.com/-sGHoKTTHHT0/TphJ4m9n4BI/AAAAAAAAASc/uvG07LkeC0Y/s400/warnings.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
前兩個是沒有初始化，最後一個是沒被使用的變數!?&lt;br /&gt;
&lt;br /&gt;
Run baseNetwork來看看&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-plKPsb1Eza8/TphL9cb_cLI/AAAAAAAAASk/p_bKRX3I0W8/s1600/runBaseNetwork.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;http://3.bp.blogspot.com/-plKPsb1Eza8/TphL9cb_cLI/AAAAAAAAASk/p_bKRX3I0W8/s400/runBaseNetwork.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
看起來好像是沒什麼問題的樣子囉！^_^&lt;br /&gt;
&lt;br /&gt;
看起來東西也不像inetmanet裡面一堆亂七八糟，一堆測試中&lt;br /&gt;
&lt;br /&gt;
似乎也比較穩定&lt;br /&gt;
&lt;br /&gt;
最新一版是2011.6.7出的！&lt;br /&gt;
&lt;br /&gt;
預期進度：setup一個802.11 DCF的感測網路，&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 移動模式是random waypoint...等(paper上的內容)</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/8137333959285510438/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111014.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8137333959285510438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8137333959285510438'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111014.html' title='2011.10.14 換個模組來用用'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-sGHoKTTHHT0/TphJ4m9n4BI/AAAAAAAAASc/uvG07LkeC0Y/s72-c/warnings.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-105812964660064207</id><published>2011-10-07T23:33:00.002+08:00</published><updated>2011-11-16T11:19:42.307+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="inetmanet"/><category scheme="http://www.blogger.com/atom/ns#" term="OMNeT++"/><title type='text'>2011.10.07 inetmanet安裝操作流程</title><content type='html'>因為這個套件裏頭有我們可以利用的模組，&lt;br /&gt;
&lt;br /&gt;
所以將它安裝到OMNeT++上面，安裝流程&lt;br /&gt;
&lt;br /&gt;
如下：&lt;br /&gt;
&lt;br /&gt;
1.先到&lt;a href=&quot;http://inet.omnetpp.org/&quot;&gt;INET Framework網頁&lt;/a&gt;下載inetmanet，&lt;br /&gt;
&lt;br /&gt;
而安裝這個套件也是為什麼我要安裝4.0版&lt;br /&gt;
&lt;br /&gt;
本的原因。&lt;br /&gt;
&lt;br /&gt;
2.然後解壓縮放到omnetpp-4.0/samples資料&lt;br /&gt;
&lt;br /&gt;
夾裡面&lt;br /&gt;
&lt;br /&gt;
3.開啟mingwenv，出現命令提示字元，鍵入&lt;br /&gt;
&lt;br /&gt;
指令：&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
$ make makefiles&lt;/div&gt;
&lt;br /&gt;
(等待一小段時間)&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
$ make&lt;/div&gt;
&lt;br /&gt;
(等待很長一段時間)&lt;br /&gt;
&lt;br /&gt;
大致上這樣就編譯完成啦！&lt;br /&gt;
&lt;br /&gt;
4.開啟OMNeT++ IDE，&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;File -&amp;gt; Import -&amp;gt;Existing Projects into Workspace&lt;br /&gt;
&lt;br /&gt;
然後選擇inetmanet資料夾，記住，不要打勾&lt;br /&gt;
&lt;br /&gt;
「Copy projects into workspace」，&lt;br /&gt;
&lt;br /&gt;
然後這樣應該就可以使用了。</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/105812964660064207/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111007-inetmanet.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/105812964660064207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/105812964660064207'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111007-inetmanet.html' title='2011.10.07 inetmanet安裝操作流程'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-8501213860826666570</id><published>2011-10-07T23:18:00.002+08:00</published><updated>2011-10-20T17:04:24.126+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="OMNeT++"/><title type='text'>2011.10.07 OMNeT++ 一個簡單的範例</title><content type='html'>這個範例是根據&lt;a href=&quot;http://omnest.com/webdemo/ide&quot;&gt;http://omnest.com/webdemo/ide&lt;/a&gt;上所做的。&lt;br /&gt;
&lt;br /&gt;
OMNeT++的版本是4.0。以下是我的操作過程。&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
新建一個OMNeT++ Project，取名為「demo」。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-Gwj5OydPVbw/To7ypK7xrFI/AAAAAAAAAII/xmRCx5IeqEM/s1600/NewOMNeT%252B%252BProject.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;http://3.bp.blogspot.com/-Gwj5OydPVbw/To7ypK7xrFI/AAAAAAAAAII/xmRCx5IeqEM/s400/NewOMNeT%252B%252BProject.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
這個範例，我們模擬一個排隊網路，此網路用到已經定義的queueinglib &lt;br /&gt;
&lt;br /&gt;
project裡面的模組，因此必須把它加到我們這個project的依賴關係裡面。&lt;br /&gt;
&lt;br /&gt;
所以，先打開這個項目，右鍵點擊queueinglib -&amp;gt; open project，然後編譯&lt;br /&gt;
&lt;br /&gt;
一下「Build Project」。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-CX_1cGymoxc/To704Jw7ikI/AAAAAAAAAIM/qNjjlzp7W38/s1600/queueinglibOpen.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;http://3.bp.blogspot.com/-CX_1cGymoxc/To704Jw7ikI/AAAAAAAAAIM/qNjjlzp7W38/s400/queueinglibOpen.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
然後右鍵點擊demo -&amp;gt; Properties -&amp;gt; Project References 把queueinglib打勾&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-xj_8HEZXmF0/To71YMMn_NI/AAAAAAAAAIQ/SZNP5e1Sl2g/s1600/ProjectReferences.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;343&quot; src=&quot;http://3.bp.blogspot.com/-xj_8HEZXmF0/To71YMMn_NI/AAAAAAAAAIQ/SZNP5e1Sl2g/s400/ProjectReferences.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
接著我們要為這個網路寫一個NED(Network Description File)文件，NED語言&lt;br /&gt;
&lt;br /&gt;
主要是用來描述模擬模型結構的，類似NS2環境下的TCL，都是用來描述網路&lt;br /&gt;
&lt;br /&gt;
結構。右鍵點擊demo -&amp;gt; New -&amp;gt; Network Description File(ned)，&lt;br /&gt;
&lt;br /&gt;
新建一個NED文件，命名為demo.ned，content選擇 A new network。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-6Xc4o-e68Gk/To73R2huskI/AAAAAAAAAIU/62QPu5sjcK8/s1600/NewNed.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-6Xc4o-e68Gk/To73R2huskI/AAAAAAAAAIU/62QPu5sjcK8/s400/NewNed.png&quot; width=&quot;368&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-U7qtVqrPMGI/To74HWPPCgI/AAAAAAAAAIY/PU_IGAgONgQ/s1600/DemoNed.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-U7qtVqrPMGI/To74HWPPCgI/AAAAAAAAAIY/PU_IGAgONgQ/s400/DemoNed.png&quot; width=&quot;313&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
點擊「Finish」後就出現NED文件的圖形化編輯介面。在這套模擬工具裡，&lt;br /&gt;
&lt;br /&gt;
我們可以用圖形化介面來進行網路環境的設置，也可以用原始碼來設置。&lt;br /&gt;
&lt;br /&gt;
我們要建立一個簡單的閉合排隊網路，包含一個來源節點，和三個排隊成環&lt;br /&gt;
&lt;br /&gt;
的排隊節點。在右側的Submodule裡面找到相對應的Queue和Source，拖到&lt;br /&gt;
&lt;br /&gt;
面板上即可，可以為這些節點重新命名，以便我們日後看到可以較快了解。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-UcvMn5uUedE/To77hFe3MFI/AAAAAAAAAIc/o2nwktNX8ac/s1600/Submodule.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;http://3.bp.blogspot.com/-UcvMn5uUedE/To77hFe3MFI/AAAAAAAAAIc/o2nwktNX8ac/s400/Submodule.png&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
然後我們把它們連接起來，用右上角的connection工具。 &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-gty05NAG6-U/To78L4G9lTI/AAAAAAAAAIg/17lRJEAYAZw/s1600/connection.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;http://1.bp.blogspot.com/-gty05NAG6-U/To78L4G9lTI/AAAAAAAAAIg/17lRJEAYAZw/s400/connection.png&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
queue2到queue3的連接我們用原始碼來完成。點擊編輯介面的source視窗。&lt;br /&gt;
&lt;br /&gt;
之前說的是環路排隊網路，因此最後一條應該是queue2的out連接queue3&lt;br /&gt;
&lt;br /&gt;
的in。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-P0hgw8aOjm8/To79mNSWivI/AAAAAAAAAIk/UmNSW_zY4YA/s1600/SourceConnect.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-P0hgw8aOjm8/To79mNSWivI/AAAAAAAAAIk/UmNSW_zY4YA/s1600/SourceConnect.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;http://2.bp.blogspot.com/-P0hgw8aOjm8/To79mNSWivI/AAAAAAAAAIk/UmNSW_zY4YA/s400/SourceConnect.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
切換回來就能夠看到已經連好的網路圖了。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;273&quot; src=&quot;http://1.bp.blogspot.com/-LObvQqwMaJE/To7-Giz9A-I/AAAAAAAAAIo/ebNjdqbZD7g/s320/DesignConnect.png&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
在運行範例之前，我們要先配置網路環境，OMNeT++的網路配置文件是&lt;br /&gt;
&lt;br /&gt;
omnetpp.ini文件，這個名稱是不能改的，切記。右鍵點擊demo新建一個&lt;br /&gt;
&lt;br /&gt;
omnetpp.ini文件，選擇Network為demo，「Finish」。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-d6DXe115bAw/To7_Lbx6k5I/AAAAAAAAAIs/EMLLK5wByow/s1600/omnetppini.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-d6DXe115bAw/To7_Lbx6k5I/AAAAAAAAAIs/EMLLK5wByow/s400/omnetppini.png&quot; width=&quot;340&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
進入ini文件配置介面，同樣的，我們可以在圖形化介面設定，也可以用原&lt;br /&gt;
&lt;br /&gt;
始碼來設定。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-Uusg1LMsU1U/To8AFuhL3pI/AAAAAAAAAIw/3PxX-ocLnMc/s1600/IniAdd.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;http://2.bp.blogspot.com/-Uusg1LMsU1U/To8AFuhL3pI/AAAAAAAAAIw/3PxX-ocLnMc/s400/IniAdd.png&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
要把沒有默認值的模型屬性進行定義。點擊右面的Add按鈕，就會顯示為定義&lt;/div&gt;
&lt;br /&gt;
的屬性。 &lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-FBveFzuLcT8/To8AuqAb6LI/AAAAAAAAAI0/OzjER0oPcLI/s1600/Addini.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-FBveFzuLcT8/To8AuqAb6LI/AAAAAAAAAI0/OzjER0oPcLI/s400/Addini.png&quot; width=&quot;372&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
我們先定義interArrivalTime和numJobs。只選這兩個，然後點「OK」。&lt;br /&gt;
&lt;br /&gt;
interArrivalTime設為「0」，意思是所有Job立即加到這個queueing network中。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我們計畫在兩種情形下進行測試，一種是初始jobs數30，一種是60。ini裡通過&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
語法${jobs=...}來實現這種設定。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-NTcUKMQKMh4/To8CHoyNABI/AAAAAAAAAI4/213mstmLzCc/s1600/numjobs.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;131&quot; src=&quot;http://1.bp.blogspot.com/-NTcUKMQKMh4/To8CHoyNABI/AAAAAAAAAI4/213mstmLzCc/s400/numjobs.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
然後我們設置所有queue的serviceTime屬性。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-_Wlur1sxEDU/To8CiK_2G9I/AAAAAAAAAI8/feu8wYsg-B0/s1600/servicetime.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-_Wlur1sxEDU/To8CiK_2G9I/AAAAAAAAAI8/feu8wYsg-B0/s400/servicetime.png&quot; width=&quot;368&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
本範例模型要嘗試不同對列的服務時間，是一個指數分布，且指數依次為&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
1, 2和3,因此我們設定serviceTime的指數運行參數為&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
exponential(${serviceMean=1..3 step 1}s)。(注意在{}外添加時間單位s)。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-Il9k4-KHxrw/To8D2NIu5hI/AAAAAAAAAJA/r1NTnAEdJ7E/s1600/exponential.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;130&quot; src=&quot;http://1.bp.blogspot.com/-Il9k4-KHxrw/To8D2NIu5hI/AAAAAAAAAJA/r1NTnAEdJ7E/s400/exponential.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
然後指定在模擬運行時每個模擬要運行多久。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-3Rv487ebyrg/To8E5lejXTI/AAAAAAAAAJE/W112ywma8EA/s1600/simutime.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;355&quot; src=&quot;http://3.bp.blogspot.com/-3Rv487ebyrg/To8E5lejXTI/AAAAAAAAAJE/W112ywma8EA/s400/simutime.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
切換到原始碼可以看到我們的設置結果。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-ISUjiIqYV18/To8Fd8mWlfI/AAAAAAAAAJI/ILArqtweEPU/s1600/inisource.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;127&quot; src=&quot;http://1.bp.blogspot.com/-ISUjiIqYV18/To8Fd8mWlfI/AAAAAAAAAJI/ILArqtweEPU/s400/inisource.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
現在，網路結構文件NED和網路配置文件ini都有了 ，下面我們來配置demo&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
在OMNeT++的IDE環境下運行的參數。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-GolCvr-Lt_I/To8F-GFbSAI/AAAAAAAAAJM/rb1Cd80rk24/s1600/runconfig.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;380&quot; src=&quot;http://3.bp.blogspot.com/-GolCvr-Lt_I/To8F-GFbSAI/AAAAAAAAAJM/rb1Cd80rk24/s400/runconfig.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
打開run configurations，新建一個new_configuration，修改如下所示位置。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
其中，.ini 文件必須選擇demo下的那個omnetpp.ini。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-3iOE8qTSnOw/To8HMi607FI/AAAAAAAAAJQ/sI_hm5KC8xY/s1600/democonfig.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;http://2.bp.blogspot.com/-3iOE8qTSnOw/To8HMi607FI/AAAAAAAAAJQ/sI_hm5KC8xY/s400/democonfig.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;確認沒問題後，點擊「run」。我們可以在下面的Console視窗下看到運行的&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;詳細情況。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-u7xhJrwoWRc/To8IE3MpYwI/AAAAAAAAAJU/r5_lz3kqFkM/s1600/demorun.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;http://1.bp.blogspot.com/-u7xhJrwoWRc/To8IE3MpYwI/AAAAAAAAAJU/r5_lz3kqFkM/s400/demorun.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
運行結束後。在專案視窗的demo文件夾下又多了一個文件夾result，裡面生成&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
了本次模擬的結果文件(蠻肥大的，79MB)。其中vec和sca文件是模擬的統計&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
信息，elog文件儲存了每個message的發送情況、文件信息等等，並且可以在&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
序列圖中圖形化。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-0wDQ5Tbvsak/To8JMQMuIJI/AAAAAAAAAJY/f5pk0-5fhTA/s1600/resuledocum.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-0wDQ5Tbvsak/To8JMQMuIJI/AAAAAAAAAJY/f5pk0-5fhTA/s400/resuledocum.png&quot; width=&quot;236&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我們下面來進行結果分析，首先要新建一個.anf的分析文件。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-5gnRjieRANM/To8JqCUU1pI/AAAAAAAAAJc/uV3qi_n2Z6M/s1600/NewAnf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;http://2.bp.blogspot.com/-5gnRjieRANM/To8JqCUU1pI/AAAAAAAAAJc/uV3qi_n2Z6M/s400/NewAnf.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-__0cWyVWkBk/To8J5D9W7MI/AAAAAAAAAJg/L6lSQ3fLFzE/s1600/demoAnf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-__0cWyVWkBk/To8J5D9W7MI/AAAAAAAAAJg/L6lSQ3fLFzE/s400/demoAnf.png&quot; width=&quot;373&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
「Finish」之後，把左側result文件夾裡面所有的.sca、.vec文件拖到 Input files&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
區域裡面。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-z7kb1aQP_1g/To8K80PBlCI/AAAAAAAAAJk/5zSgjo6nOHk/s1600/inputAnf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;http://1.bp.blogspot.com/-z7kb1aQP_1g/To8K80PBlCI/AAAAAAAAAJk/5zSgjo6nOHk/s400/inputAnf.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
每個模擬運行時，它都會收到一個唯一的run ID，包含了配置、運行編號、&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
數據/時間等信息。在data視窗裡面，第一個表(by file and run)顯示了某個文件&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
是運行哪個模擬產生的；第二個表(by run and file)顯示了某個模擬運行產生了&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
哪個文件。第三個表是邏輯運行關係。我們做個模擬運行都屬於一個實驗，叫&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;General─也就是ini文件的基本配置，該名稱可以在ini文件中更改。每個&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
experience裡面都包含若干個測量，通常是一個同樣的模擬模型使用不同參數&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
運行得到的。每次測量都可以用不同的seeds重複去做，從幾個replications中&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;得到可靠的統計結果。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-cNZZ5onw0CA/To8OwS8kpLI/AAAAAAAAAJo/9ZTjwTJ6x9w/s1600/dataresult.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;177&quot; src=&quot;http://4.bp.blogspot.com/-cNZZ5onw0CA/To8OwS8kpLI/AAAAAAAAAJo/9ZTjwTJ6x9w/s400/dataresult.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我們切換到Broswer Data視窗裡面 ，這個表格顯示.vec文件所記錄的所有模擬&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
的運行信息。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-XLPtrH7D9Y4/To8PWpcAAPI/AAAAAAAAAJs/Bq12qSmn5SM/s1600/vec.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;http://1.bp.blogspot.com/-XLPtrH7D9Y4/To8PWpcAAPI/AAAAAAAAAJs/Bq12qSmn5SM/s400/vec.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我們要看的是在運行時隊列的長度的變化，因此在右側name下拉選單選擇&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
length，表格包含的就是所有模擬的隊列長度變化。我們選擇run ID為4的模擬&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
結果。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-ZUWnOePt9jY/To8QO3p6f8I/AAAAAAAAAJw/7juU8TQOM8I/s1600/runID4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;75&quot; src=&quot;http://3.bp.blogspot.com/-ZUWnOePt9jY/To8QO3p6f8I/AAAAAAAAAJw/7juU8TQOM8I/s400/runID4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
這只有3條隊列變更的紀錄，我們來把他們繪製到一個圖表當中，全選這三條&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
數據，點擊工具欄上的Plot按鈕即可。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-eol6cXyqp-k/To8Q169wqoI/AAAAAAAAAJ0/c-AfCVWmCiU/s1600/Plot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;103&quot; src=&quot;http://1.bp.blogspot.com/-eol6cXyqp-k/To8Q169wqoI/AAAAAAAAAJ0/c-AfCVWmCiU/s400/Plot.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
生成的圖表如下所示。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-QtJL_Nc8w28/To8RXfQSyHI/AAAAAAAAAJ4/4s0ddkv7x20/s1600/chart.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;http://2.bp.blogspot.com/-QtJL_Nc8w28/To8RXfQSyHI/AAAAAAAAAJ4/4s0ddkv7x20/s400/chart.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
現在我們改變座標的大小，並改面畫圖的風格，改線為點。在圖上點右鍵選&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
chart -&amp;gt; Axes，設置x, y軸的範圍。 &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-tDXlFhajcBg/To8SAvTzSEI/AAAAAAAAAJ8/ZIddJpMOK0M/s1600/editchart.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;323&quot; src=&quot;http://2.bp.blogspot.com/-tDXlFhajcBg/To8SAvTzSEI/AAAAAAAAAJ8/ZIddJpMOK0M/s400/editchart.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
然後切換到 lines 頁面，將其中的line type改成Sample-Hold，Symbol type 改&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
成none。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-4ON5lkKawAE/To8SuZZ6w3I/AAAAAAAAAKA/MP9Mah4OetM/s1600/editlines.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;326&quot; src=&quot;http://4.bp.blogspot.com/-4ON5lkKawAE/To8SuZZ6w3I/AAAAAAAAAKA/MP9Mah4OetM/s400/editlines.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-Iv86odmkwME/To8UjMEkoYI/AAAAAAAAAKE/s4dFPig7zCg/s1600/linechart.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;http://2.bp.blogspot.com/-Iv86odmkwME/To8UjMEkoYI/AAAAAAAAAKE/s4dFPig7zCg/s400/linechart.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我們可以用「mean」函數來平滑曲線的圖表。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-O4pDKI91enY/To8VDiApFuI/AAAAAAAAAKI/Ctw9gcKRWbo/s1600/applymean.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-O4pDKI91enY/To8VDiApFuI/AAAAAAAAAKI/Ctw9gcKRWbo/s400/applymean.png&quot; width=&quot;295&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-nM6_keaGGX0/To8VHOe21uI/AAAAAAAAAKM/GSluDAfo6uc/s1600/meanchart.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;http://2.bp.blogspot.com/-nM6_keaGGX0/To8VHOe21uI/AAAAAAAAAKM/GSluDAfo6uc/s400/meanchart.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我們可以把這個圖表保存下來，下次運行這個demo模擬的時候，該圖表可以&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
自動重現。在圖表上點右鍵選convert to dataset...名字如圖所示。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-L5IZsh2Ksr4/To8V2qpXD4I/AAAAAAAAAKQ/ezjPxW-rVIs/s1600/dataset.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;http://1.bp.blogspot.com/-L5IZsh2Ksr4/To8V2qpXD4I/AAAAAAAAAKQ/ezjPxW-rVIs/s400/dataset.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-g_MCleAI7rU/To8W9tXGS1I/AAAAAAAAAKU/yvunrqGTmhY/s1600/datasetandchart.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;http://4.bp.blogspot.com/-g_MCleAI7rU/To8W9tXGS1I/AAAAAAAAAKU/yvunrqGTmhY/s400/datasetandchart.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
下面打開一個.elog文件，來看下序列圖sequence chart。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
在General-0.elog文件中，你可以看到最初的60個信息被推入一個隊列中。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-zYXeFH2t6Qs/To8X4dqpfrI/AAAAAAAAAKY/-qykZdWnSXI/s1600/seq.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;http://4.bp.blogspot.com/-zYXeFH2t6Qs/To8X4dqpfrI/AAAAAAAAAKY/-qykZdWnSXI/s400/seq.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;大概介紹到此。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
--&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
在 omnetpp-4.0/doc 資料夾內還有許多關於使用OMNeT++的手冊和教學，&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;可以多多利用。 &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/8501213860826666570/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111007-omnet.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8501213860826666570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/8501213860826666570'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111007-omnet.html' title='2011.10.07 OMNeT++ 一個簡單的範例'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-Gwj5OydPVbw/To7ypK7xrFI/AAAAAAAAAII/xmRCx5IeqEM/s72-c/NewOMNeT%252B%252BProject.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-2466734766446854297</id><published>2011-10-05T10:47:00.000+08:00</published><updated>2011-10-05T10:47:12.439+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="OMNeT++"/><title type='text'>2011.10.05 OMNeT++ 模擬時間</title><content type='html'>有個疑問，看到模擬畫面顯示T時間顯示意思是simulation time of next event()&lt;br /&gt;
&lt;br /&gt;但是我有設定running until simulation time 50000 s&lt;br /&gt;
&lt;br /&gt;但是早上看到畫面T才跑到6X s&lt;br /&gt;
&lt;br /&gt;然後資料檔案已經塞爆我的C槽&lt;br /&gt;&lt;br /&gt;想問有無高手知道這樣到底是什麼情況&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/2466734766446854297/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111005-omnet.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/2466734766446854297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/2466734766446854297'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/10/20111005-omnet.html' title='2011.10.05 OMNeT++ 模擬時間'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-7884230114980174945</id><published>2011-09-14T21:36:00.000+08:00</published><updated>2011-11-16T11:20:24.051+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="INET"/><category scheme="http://www.blogger.com/atom/ns#" term="OMNeT++"/><category scheme="http://www.blogger.com/atom/ns#" term="WinPcap"/><title type='text'>2011.09.14 WinPcap</title><content type='html'>看了一個外國人寫的部落格&lt;br /&gt;
&lt;br /&gt;
是關於&quot;&lt;a href=&quot;http://ytbau.blogspot.com/2011/05/omnet-and-manet-aodv-dsr-etc-using.html&quot;&gt;OMNeT++ and MANET(aodv, dsr, etc) using INETMANET Framework&lt;/a&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
裡頭有說到可能會用到WinPcap&lt;br /&gt;
&lt;br /&gt;
所以照著他的方法把WinPcap抓下來&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Download and extract WinPcap 4.1.2 Developer&#39;s Pack from&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
http://www.winpcap.org/devel.htm.&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Copy all files from D:\WinpcapDeveloperPack_4_1_2\WpdPack\Include to&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
C:\omnetpp-4.1-rc2-src-windows\mingw\include and&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
C:\omnetpp-4.1-rc2-src-windows\mingw\lib\gcc\mingw32\4.5.0\include.&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Copy all files from D:\WinpcapDeveloperPack_4_1_2\WpdPack\Lib to&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
C:\omnetpp-4.1-rc2-src-windows\mingw\lib and &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
C:\omnetpp-4.1-rc2-src-windows\mingw\lib\gcc\mingw32\4.5.0.&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Make a copy of D:\WinpcapDeveloperPack_4_1_2\WpdPack\Lib\wpcap.lib.&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Name the new copy as pcap.lib. &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Copy to C:\omnetpp-4.1-rc2-src-windows\mingw\lib\pcap.lib.&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Make a copy of D:\WinpcapDeveloperPack_4_1_2\WpdPack\Lib\libwpcap.a.&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Name the new copy as libpcap.a. &lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Copy to C:\omnetpp-4.1-rc2-src-windows\mingw\lib\libpcap.lib&lt;/div&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
不過我也照著他的方式&lt;br /&gt;
&lt;br /&gt;
把inetmanet抓下來放進samples&lt;br /&gt;
&lt;br /&gt;
用OMNeT++ IDE 編譯&lt;br /&gt;
&lt;br /&gt;
結果不如預期&lt;br /&gt;
&lt;br /&gt;
有3個錯誤&lt;br /&gt;
&lt;br /&gt;
38個警告&lt;br /&gt;
&lt;br /&gt;
有一個 &lt;span style=&quot;background-color: #cccccc;&quot;&gt;&#39;u_short&#39; does not a name type&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
這....我不知道該怎麼解啊QQ&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
不過INET的警告都不見了!&lt;br /&gt;
&lt;br /&gt;
真奇妙。</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/7884230114980174945/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/09/20110914-winpcap.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/7884230114980174945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/7884230114980174945'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/09/20110914-winpcap.html' title='2011.09.14 WinPcap'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-1481525904938460296</id><published>2011-09-14T20:26:00.000+08:00</published><updated>2011-09-14T20:26:05.753+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="INET"/><category scheme="http://www.blogger.com/atom/ns#" term="OMNeT++"/><title type='text'>2011.09.14 記事</title><content type='html'>之前終於好不容易雖然搞不定NS-3&lt;br /&gt;
&lt;br /&gt;不過OMNeT++也算是順利安裝了&lt;br /&gt;&lt;br /&gt;然後發現還有INET Framework&lt;br /&gt;&lt;br /&gt;是寫好的Module，不過有些還是在測試當中&lt;br /&gt;&lt;br /&gt;就想說既然有已經寫好的可以利用何樂不為&lt;br /&gt;
&lt;br /&gt;然後就載了兩個檔，一個是INET，另一個是INETMANET&lt;br /&gt;&lt;br /&gt;後者似乎是針對MANET的&lt;br /&gt;&lt;br /&gt;想說可能可以用喔&lt;br /&gt;&lt;br /&gt;結果裝在OMNeT++ 上INET雖然出了一點error&lt;br /&gt;&lt;br /&gt;看起來是少了header，補上之後就沒問題了，只剩下5個warnings&lt;br /&gt;&lt;br /&gt;應該是還能運作。&lt;br /&gt;&lt;br /&gt;而另一個INETMANET就棘手了&lt;br /&gt;&lt;br /&gt;編譯中就出現7個錯誤，將近100個warnings.....@@&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
可以知道7個錯誤是從IDE介面看到的&lt;br /&gt;
&lt;br /&gt;
從MINGW看到的部份&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-xgJhjKlHa_c/TnCY8zefgpI/AAAAAAAAADw/w7VXjkt71BE/s1600/inetmaneterroe.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;http://3.bp.blogspot.com/-xgJhjKlHa_c/TnCY8zefgpI/AAAAAAAAADw/w7VXjkt71BE/s400/inetmaneterroe.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
所以暫時就先不用INETMANET&lt;br /&gt;&lt;br /&gt;再來要著手設計網路的布建以及實驗。&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/1481525904938460296/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/09/20110914.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1481525904938460296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1481525904938460296'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/09/20110914.html' title='2011.09.14 記事'/><author><name>阿正</name><uri>http://www.blogger.com/profile/12907363353455044037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-xgJhjKlHa_c/TnCY8zefgpI/AAAAAAAAADw/w7VXjkt71BE/s72-c/inetmaneterroe.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7248664223644307689.post-1031574779051852446</id><published>2011-09-08T19:25:00.001+08:00</published><updated>2011-11-16T11:21:33.370+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINUX"/><category scheme="http://www.blogger.com/atom/ns#" term="NS-3"/><category scheme="http://www.blogger.com/atom/ns#" term="網路模擬"/><category scheme="http://www.blogger.com/atom/ns#" term="進度"/><title type='text'>2011.09.08 NS-3 安裝 on Linux</title><content type='html'>之前有提到說，因為在Windows XP安裝上有問題&lt;br /&gt;
&lt;br /&gt;
所以這次改用Linux來安裝&lt;br /&gt;
&lt;br /&gt;
主要是利用VirtualBox這套VM來做Linux的系統安裝&lt;br /&gt;
&lt;br /&gt;
Linux是開放的，所以在網路上下載下來很方便&lt;br /&gt;
&lt;br /&gt;
我使用Ubuntu來做Linux的系統&lt;br /&gt;
&lt;br /&gt;
最近出了11.04版，畫面很炫，但是聽說好吃電&lt;br /&gt;
&lt;br /&gt;
竟然只能撐十幾分鐘筆電就沒電了，建議改回傳統介面應該就不會有這樣誇張的問題&lt;br /&gt;
&lt;br /&gt;
這是題外話，轉回正題&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;先安裝了&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;Mercurial&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;sudo apt-get install mercurial meld&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;(sudo是表示用root權限來操作，安裝軟體則是apt-get install 軟體名稱)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;--&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;再安裝&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;python&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;

&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;tar zxvf Python-2.7.2.tgz&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;

&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;cd Python-2.7.2&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;

&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./configure&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;

&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;make&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;

&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;make install&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;再來下載&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;NS-3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;到&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;NS-3&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;網站下載&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;ns-allinone-3.12.1.tar.bz2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;輸入指令&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;buzip2 ns-allinone-3.12.1.tar.bz2&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;tar zvf ns-allinone-3.12.1.tar&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;cd ns-allinone-3.12.1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;cd ns-3.12.1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;檢查相依的工具&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;d debug configure&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;編譯&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;測試&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf check&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;ns-3-tutorial.pdf&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;新細明體&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;教學裡的操作&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;d optimized &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-examples &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-tests
configure&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;d debug &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-examples &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-tests
configure&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf --d debug &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-sudo &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-examples &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;--&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;enable-tests configure&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;這每個build的過程都要等好久，真不方便。 &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;u&gt;unit tests of the ns-3 distribution&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./test.py –c core&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsX_ffVLLv5mxSoQ_F1zAqmUMEPmMrovy2jrXXfP5zfwodpz7fp0_t3JOJYlDLoNg65GRCuesSwqjL6swHpFA5whry16izgDtm3uMLWuucXKShSrFTKb5FW7t6MPkk6RwZnE3IhnqNdnbW/s1600/image1%25E6%258B%25B7%25E8%25B2%259D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;327&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsX_ffVLLv5mxSoQ_F1zAqmUMEPmMrovy2jrXXfP5zfwodpz7fp0_t3JOJYlDLoNg65GRCuesSwqjL6swHpFA5whry16izgDtm3uMLWuucXKShSrFTKb5FW7t6MPkk6RwZnE3IhnqNdnbW/s400/image1%25E6%258B%25B7%25E8%25B2%259D.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;./test,py -c core&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;這結果跟教程裡&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;看起來是一樣的，94 of 94 tests passed，看起來很不錯&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Cygwin 裡的&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;0&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; of 0 tests passed真是太糟糕了，&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;這個結果讓我開心了一下，因為其實有在另一台筆電灌Linux系統來安裝NS-3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;但是結果都一直出問題，讓我一直很苦惱。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;照例跑一個hello的專案來測試&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf --run hello-simulator&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil0GZToce89uIfMN1HCcYB0nLDFdyGOzLIUUbC56QU3K_6HllqKqz7tkQmBoMO_xwR9Q_PI_g8xQtZmfPyaaJsiOVepbhOj7TWmVI9P30OsY4hiqZGj4-RQquc1YwTAwTdVP5FV1TQVkVJ/s1600/image2%25E6%258B%25B7%25E8%25B2%259D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;77&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil0GZToce89uIfMN1HCcYB0nLDFdyGOzLIUUbC56QU3K_6HllqKqz7tkQmBoMO_xwR9Q_PI_g8xQtZmfPyaaJsiOVepbhOj7TWmVI9P30OsY4hiqZGj4-RQquc1YwTAwTdVP5FV1TQVkVJ/s400/image2%25E6%258B%25B7%25E8%25B2%259D.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;hello-simulator&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;在抓另外一隻程式做測試&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;

&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;./waf --run udp-echo&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #cccccc;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;ls -l&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAx8bDvWpEfmcbqVh_K3OjNGDMLfKlFXyTXNe2r-uTanDGCwPbWWADW37GIn3Q2x488-9KJAl2ehAQb2zLBfWVEtevvT0RwxPSLGFYyC1veSvpK_txVc5QxT74j8YtFBeMC8TEufrfTxAj/s1600/image3%25E6%258B%25B7%25E8%25B2%259D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAx8bDvWpEfmcbqVh_K3OjNGDMLfKlFXyTXNe2r-uTanDGCwPbWWADW37GIn3Q2x488-9KJAl2ehAQb2zLBfWVEtevvT0RwxPSLGFYyC1veSvpK_txVc5QxT74j8YtFBeMC8TEufrfTxAj/s400/image3%25E6%258B%25B7%25E8%25B2%259D.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;udp-echo&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;原本想說看來就用OMNeT++來做我的網路模擬工具用吧！&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;結果沒想到NS-3在Linux的安裝最後也殺出重圍，完成初階段的安裝測試。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;到底哪一個好用，其實也還不知道，先都在兩套工具上都試著做802.11的實驗&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;看哪一個做起來比較順手就用哪套好了。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;待續。&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://allenjuan.blogspot.com/feeds/1031574779051852446/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://allenjuan.blogspot.com/2011/09/20110908-ns-3-on-linux.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1031574779051852446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7248664223644307689/posts/default/1031574779051852446'/><link rel='alternate' type='text/html' href='http://allenjuan.blogspot.com/2011/09/20110908-ns-3-on-linux.html' title='2011.09.08 NS-3 安裝 on Linux'/><author><name>阿正</name><uri>http://www.blogger.com/profile/16911766219887987865</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8AjlCCbDsAHX8VSGr7HuRMXq--gyqWXKUBQ_A_B4pCd_o84JChx-AWjr3sYLwRmLGlHq7n9ndb2vmIDp5Bj7zwH-c801BYVkaulct2rpoOkmTZ-3bM1Y_OxS4IKyMdE/s220/2011-06-04+10.09.25.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsX_ffVLLv5mxSoQ_F1zAqmUMEPmMrovy2jrXXfP5zfwodpz7fp0_t3JOJYlDLoNg65GRCuesSwqjL6swHpFA5whry16izgDtm3uMLWuucXKShSrFTKb5FW7t6MPkk6RwZnE3IhnqNdnbW/s72-c/image1%25E6%258B%25B7%25E8%25B2%259D.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>