<?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-6707279719901209815</id><updated>2024-08-28T18:35:26.773+08:00</updated><category term="2 學校相關"/><category term="2.1 C語言"/><category term="2.7linux"/><category term="5 網際網路相關"/><category term="2.0 微處理機"/><category term="2.6網路程式設計"/><category term="6 影音分享"/><category term="2.5 Arduino"/><category term="1 個人滴咕"/><category term="1.4 文章分享"/><category term="5.4 軟體推薦"/><category term="5.3 網路應用"/><category term="2.3 C#"/><category term="5.2 部落格美化"/><category term="5.7 android"/><category term="1.2 作品成果"/><category term="2.8 Android"/><category term="4 免費資源"/><category term="4.4 好玩有趣"/><category term="2.4 OpenGL"/><category term="2.9JAVA"/><category term="5.1 好站推薦"/><category term="5.6 IOS"/><category term="6.1 魔術表演"/><category term="6.2 電影"/><category term="2.2 VB"/><category term="3 美食雜記"/><category term="3.1雲嘉南美食"/><category term="4.1 文書工具"/><category term="4.5 音樂音效"/><category term="5.5 開箱文"/><title type='text'>阿添BLOG小站</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>197</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-4456533154153168833</id><published>2014-12-31T15:21:00.002+08:00</published><updated>2015-01-05T12:53:08.103+08:00</updated><title type='text'>如何在Ubuntu 14.04上安裝和配置Apache</title><summary type="text">做個纪录

1. 命令行安装Apache
&amp;nbsp; 打開&quot;終端窗口&quot; (Ctrl+Alt+T)
&amp;nbsp; 輸入&quot;sudo apt-get install apache2&quot;

2. 預設的網站根目錄的路徑
&amp;nbsp;Apache安裝完成後，預設的網站根目錄是&quot;/var/www/html&quot;，在終端窗口中輸入&quot;l
&amp;nbsp;在瀏覽器中輸入&quot;http://127.0.0.1&quot;,就可以打開該頁面,
&amp;nbsp;或是在瀏覽器中輸入&quot;http://localhost&quot;一樣可以打開該頁面 。

3. Apache的第一個配置文件apache2.conf的路徑
&amp;nbsp;在終端窗口中輸入&quot;ls /etc/apache2&quot;
有一個&quot;apache2.conf&quot;的配置文件。

4. Apache的第二個配置文件000-default.conf的路徑
&amp;nbsp;在終端窗口中輸入&quot;ls /etc/</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/4456533154153168833/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2014/12/ubuntu-1404apache.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/4456533154153168833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/4456533154153168833'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2014/12/ubuntu-1404apache.html' title='如何在Ubuntu 14.04上安裝和配置Apache'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-5289853051507195285</id><published>2014-09-08T20:36:00.004+08:00</published><updated>2014-09-24T22:37:50.761+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.3 C#"/><title type='text'>103年度 國中教育會考 排名計算 程式</title><summary type="text">看了這一篇 &quot;國中教育會考成績資料統計分析&quot;才知道，原來現在國中升學考試成績的計算方式怎麼那麼的麻煩....於是就臨時寫了一支程式來幫忙計算，臨時做的請各位別太苛求。


下載點: 點此連結
版本:1.0.0.5
版本功能:

排名計算


多模擬考分頁統計(不知道可以到幾個分頁)


全選案下ctrl+C可以複製內容


自定義排名


點選標題欄位可以做排列


如果有需要在程式上直接編輯操作或者輸入對題數就可以算出級分...等功能在連繫我。

排名方式:
總分 &amp;gt; 
科目(國&amp;gt;數&amp;gt;英&amp;gt;社&amp;gt;自)級分，其中(A=A+=A++&amp;gt;B=B+=B++&amp;gt;C) &amp;gt;
科目級分數量，其中(A++&amp;gt;A+&amp;gt;A&amp;gt;B++&amp;gt;B+&amp;gt;B&amp;gt;C)&amp;nbsp;&amp;gt; 
科目級分(國&amp;gt;數&amp;gt;英&amp;gt;社&amp;gt;自)(A++&amp;gt</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/5289853051507195285/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2014/09/103.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5289853051507195285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5289853051507195285'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2014/09/103.html' title='103年度 國中教育會考 排名計算 程式'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrX3Pgo0dQCATOjG9lr_Hv26eQ7qH2qT7P5uBFHRg6d_RxF28UPLXtNB0ISOcGvRPo4qS6f3cdlpx12lEU6BWvJVbSR-gDxPOykr91tjzqCzsUiFFdLJvMhN4pEVPwePhDg-FzBaN9KmIt/s72-c/0000.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-1338616983354057349</id><published>2013-11-15T01:13:00.002+08:00</published><updated>2013-11-15T01:21:47.921+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 學校相關"/><category scheme="http://www.blogger.com/atom/ns#" term="2.1 C語言"/><title type='text'>[verilog][c] CRC 循環冗餘校驗 實踐</title><summary type="text">最近幾位學弟妹在問verilog的作業(QAM 16、QAM256以及CRC)，順便也學習寫了一下

CRC的概述我這邊就不說明了，請參考WiKi&amp;nbsp;或者是這篇文章，在這邊只介紹程式碼。
(不過稍微注意一下維基百科裡面原理是對的，但下面舉的例子有點問題)


CRC 16 的 Verilog 程式碼(P(x) = x16+ x12+ x5+ x0)

module CRC_Unit(BITVAL, BITSTRB, CLEAR, CRC);
   input        BITVAL;                            // Next input bit
   input        BITSTRB;                           // Current bit valid (Clock)
   input        CLEAR;</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/1338616983354057349/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/11/verilogc-crc.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/1338616983354057349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/1338616983354057349'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/11/verilogc-crc.html' title='[verilog][c] CRC 循環冗餘校驗 實踐'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-275680232683349430</id><published>2013-11-14T19:18:00.002+08:00</published><updated>2013-11-14T19:35:00.729+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 學校相關"/><title type='text'>特殊質數數列</title><summary type="text">最近很喜歡數列，剛剛在看質數時發現幾個有趣的質數數列，在這邊分享給大家

數列1
33333331這個質數，是可以由左至右依序拿掉一位數，仍然是質數

33333331
3333331
333331
33331
3331
331
31
可惜的333333331(17×19607843) 並不是質數。

數列273939133這個質數是可以由右至左依序拿掉一位數，仍然是質數

73939133
7393913
739391
73939
7393
739
73
7
數列3

357686312646216567629137&amp;nbsp;這個質數，是可以由左至右依序拿掉一位數，仍然是質數

357686312646216567629137
57686312646216567629137
7686312646216567629137
686312646216567629137
</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/275680232683349430/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/11/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/275680232683349430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/275680232683349430'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/11/blog-post.html' title='特殊質數數列'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-1366533536332743528</id><published>2013-11-10T00:07:00.003+08:00</published><updated>2013-11-13T15:51:34.225+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.8 Android"/><title type='text'>Galaxy android 開發人員選項開啟</title><summary type="text">最近我妹拿了一隻Samsung Galaxy系列的手機，想說要裝點東西在上面，結果找不到開發人員選項 的問題..在這邊提供解決方法。

貌似android 4.X 板之後，不管是哪間廠商的手機開發人員選項都被隱藏了

1.首先 先至&quot;設定&quot; &amp;gt; &quot;更多&quot; &amp;gt;&amp;gt; &quot;關於設備&quot;









2.連續點擊&quot;版本號&quot;，它會出現倒數次數(一直點到它沒出現文字為止)



4.次數數完之後，回到上一頁就可以看到開發人員選項了。



如果要隱藏...，只要回復原廠設定即可(資料會不見唷~)

因為操作時沒有截圖，這邊的圖片引用至網路上~
</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/1366533536332743528/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/11/galaxy-android.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/1366533536332743528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/1366533536332743528'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/11/galaxy-android.html' title='Galaxy android 開發人員選項開啟'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRUa-oXRFJjbaG2WsHRq3D2lHu4VNq8STuXgMyGD-GAuBsNBHahK5fyBG8twj6lqFUnuIVhSoWVSiOAb9Ethyyxt4lR6FZwadpjKbsk8jVT6t1-VBvyARpaRYNE7ZQLV38ZuqiUauahc43/s72-c/20130829122503696_XWDPQEH3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-4405622684464442750</id><published>2013-10-15T13:55:00.004+08:00</published><updated>2013-10-15T13:57:28.469+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 學校相關"/><title type='text'>隨機信號分析課本與解答</title><summary type="text">以下解答僅供練習參考!
Probability, Statistics And Random Processes (3rd )








隨機信號課本PDF
點此連結

隨機信號課本解答(ch1~12)
點此連結

轉載請註明來源!</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/4405622684464442750/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/10/blog-post_15.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/4405622684464442750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/4405622684464442750'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/10/blog-post_15.html' title='隨機信號分析課本與解答'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_R1DjtlCa2tGOJXFyLNqEuty4_FVNZBqZixbM1nspCiQk6xPeekZKzIbtp23_kbogHoXfTtWikoJYKCykOPRV-ZXTsHncNVFqMzQ8biJ0_H7nnVEGvkFW4kLuKna94qpdTq5P2j9Po7if/s72-c/s3267893.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-6470017595608885328</id><published>2013-06-11T17:36:00.001+08:00</published><updated>2013-06-11T17:38:24.045+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 學校相關"/><category scheme="http://www.blogger.com/atom/ns#" term="2.9JAVA"/><title type='text'>eclipse使用SWT/Swing  Designer 作JAVA視窗程式開發</title><summary type="text">




eclipse 在開發JAVA swing 或者是AWT程式時，應該很多人都會遇到元件擺放的問題，這時候我們可以安裝SWTDesigner/Swing &amp;nbsp;Designer 來設計更漂亮的介面

安裝方式:
Help→Install New Software，work with:依照你的版本輸入下面的連結






Eclipse 3.7 (Indigo)
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7

Eclipse 3.6 (Helios)
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.6

Eclipse 3.5 (Galileo)
http://dl.google.com/eclipse/inst/d2wbpro/latest/3.5
連結來源:</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/6470017595608885328/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/eclipseswtswing-designer-java.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/6470017595608885328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/6470017595608885328'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/eclipseswtswing-designer-java.html' title='eclipse使用SWT/Swing  Designer 作JAVA視窗程式開發'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhss_xCKVEKPCLIBhaeCKgHxSbzi2IrybLI8m-Mkn_bEUEIJp2QTPTrR26WX6Las5d79AHeku9TSDQrysBwIALTBTbTUImRtr-saeMkQZiaCp4THyrAugu1aOoGiCQh2HU39gc41bkW1TAX/s72-c/userinterface.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-5739220067394263911</id><published>2013-06-09T19:09:00.000+08:00</published><updated>2013-06-10T01:02:14.248+08:00</updated><title type='text'>Matlab 驗證碼辨識系統</title><summary type="text">


網路上經常下載東西或者要登入帳號密碼時都會出現一組文字的驗證碼要求使用者輸入完畢後才可以登入下載，這時候我們可以嘗試著使用電腦幫我們做影像辨識，然後自動輸入這組文字，以下是程式碼暫時就不解是原理了。



當然以下這個程式只能辨識簡易的辨識系統或者辨識整篇文章...太複雜的圖片可能就沒辦法了











驗證碼辨識


13694



文章辨識




下載點:
載點1

程式碼:
%% Image binary /圖像二值化 
%將圖片背景雜訊刪除
pic = double(imread(&#39;2.jpeg&#39;)) ;
gray_pic = zeros(size(pic,1),size(pic,2));
for j=1:size(pic,1)
   for i= 1:size(pic,2)
       gray_pic(j,i) = round(mean(pic(j,i,</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/5739220067394263911/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/matlab.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5739220067394263911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5739220067394263911'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/matlab.html' title='Matlab 驗證碼辨識系統'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkjmoJtkcIbKSLHL8cadmZ5h0r6fzHdXZJtk0dpziW8zK1llfiN4FXtu2U0lPvzeJwAIiz3rovYRUtx2gPB77kBdUGFkj331FTbi-y918A0yi1-oUp2G3YmkDRHUfsFUcuAs8mUrEGWdgT/s72-c/000.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-3947743091956100845</id><published>2013-06-09T17:41:00.000+08:00</published><updated>2013-06-09T17:41:30.300+08:00</updated><title type='text'>用MATLAB做Arduino的GUI界面</title><summary type="text">Arduino與matlab結合，看來Arduino真的很強大





中文版
</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/3947743091956100845/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/matlabarduinogui.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3947743091956100845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3947743091956100845'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/matlabarduinogui.html' title='用MATLAB做Arduino的GUI界面'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://img.youtube.com/vi/RAkw-lnaZR0/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-2898051521308159044</id><published>2013-06-03T00:49:00.002+08:00</published><updated>2013-06-03T01:01:53.152+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.8 Android"/><title type='text'>解決匯入圖片至android模擬器中找不到的問題</title><summary type="text">
以前匯入圖片製Android模擬器中都可以正常顯示，最近在寫android的程式卻遇到把圖片上傳至模擬器中卻不能顯示(如影片前半段)

模擬器上傳圖片的方式可以如同影片中的操作，但建議可以練習一下打指令~下面稍為介紹一下怎麼使用指令上傳，然後再說明要怎麼解決無法查看圖片的這個問題。

上傳圖片

$ adb shell mount -o remount rw /sdcard


$ adb push images/ /sdcard/
push: images/1.png -&amp;gt; /mnt/sdcard/1.png

解決無法查看圖片方式
圖片匯入模擬器之後仍無法被系統偵測，無論是寫程式還是開內建的 Gallery app 。
這時候我們要執行模擬器內建軟體 Dev Tools &amp;gt; Media Provider &amp;nbsp;(或者為Media Scanner) 後，點選Scan</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/2898051521308159044/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/android.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/2898051521308159044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/2898051521308159044'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/android.html' title='解決匯入圖片至android模擬器中找不到的問題'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://img.youtube.com/vi/R5ZrCkyrRII/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-7433424158570027268</id><published>2013-06-02T20:45:00.001+08:00</published><updated>2013-06-04T14:09:10.178+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.1 C語言"/><title type='text'>[OpenCV] 人臉偵測 (Face Detection)</title><summary type="text">

點圖可放大


Paul Viola等人利用了三個演算法，來快速找到人臉。第一個是Integral Image，第二個是 AdaBoost，第三個是Cascade classifier。


Cascade Detection


詳細步驟可以參考&quot;Robust Real-Time Face Detection&quot; 這篇paper，或者可以看下面我整理的幾份文章
1.robust-real-time-face-detection 介紹
載點
2.robust-real-time-face-detection 投影片
載點


如果還沒安裝OPENCV，可以參考這篇文章。



程式碼最重要的地方為這個函式cvHaarDetectObjects



cvHaarDetectObjects(const CvArr* image, CvHaarClassifierCascade* </summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/7433424158570027268/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/opencv-face-detection.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/7433424158570027268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/7433424158570027268'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/opencv-face-detection.html' title='[OpenCV] 人臉偵測 (Face Detection)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcInIc8h6ERFfF0ONF5OSkakDGUpEEY1EH8dsxSa1UuHHEXKGvhTCuSJmUMwp5bCYX8bX0hEKzjqeNMnWPzYrJk3WS-BsqS5RALgA6jqRPMn4tgLDzGyn2hRjTC_6PyposFTLuHv0oDDKo/s72-c/02.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-3358672718728579561</id><published>2013-06-02T20:12:00.001+08:00</published><updated>2013-06-02T20:24:13.636+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.1 C語言"/><title type='text'> [OpenCV]在DEVC++中安裝openCV</title><summary type="text">




(1)下載 OpenCV
&amp;nbsp; &amp;nbsp;原版:
&amp;nbsp; &amp;nbsp;載點1 &amp;nbsp; 載點2&amp;nbsp;
&amp;nbsp; &amp;nbsp;程式碼修正版&amp;nbsp;
&amp;nbsp; &amp;nbsp;載點1&amp;nbsp;
(2)
如果您是下載原版 請安裝OpenCV2.0在C:\OpenCV2.0
如果您是下載修正版 請解壓縮在C:\OpenCV2.0
(3)在DEV 工具/編譯器選項/編譯器/編譯器設定組態
新增編譯器設定(綠色加號按鈕)並命名為&quot;OpenCV2.0″








(4)在連結器命令列中加入以下命令(前面框號記得打勾)

-llibcxcore200 -llibcv200 -llibcvaux200 -llibhighgui200 -llibml200



(5)在DEV 工具/編譯器選項/目錄/二進位檔 加入:
C:\OpenCV2.0\bin
C</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/3358672718728579561/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/devcopencv.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3358672718728579561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3358672718728579561'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/devcopencv.html' title=' [OpenCV]在DEVC++中安裝openCV'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYuJ9CkusYhz_Yps5K15AjQ_wwlbXhsNxR50EA75md6aWxLuJ5DX0lYFmNHWeLRP1LEzCLtJomySWd5THhyphenhyphen01j41-XEC1giUdbW77UPsfZkbjKUDQR6QI6h2v3ao6xPDox8dZl4VLSBvjp/s72-c/images.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-9092044026899039807</id><published>2013-06-02T13:36:00.000+08:00</published><updated>2013-06-21T13:27:06.572+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="5 網際網路相關"/><title type='text'>解決Win7 framework4.0 失敗錯誤 0xc8000222</title><summary type="text">




解決辦法


方法/步驟
1.用工作管理員執行cmd( 命令提示字元)


2.輸入 net stop WuAuServ




3.輸入 echo %windir%


4.應該會顯示C:\Windows
進到C碟windows目錄中&amp;nbsp;把SoftwareDistribution 文件隨便改名。


5.再命令提示字元內輸入入 net start WuAuServ
之後重新安Net framework4.0即可。


記得之後再把它改回來
</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/9092044026899039807/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/06/win7-framework40-0xc8000222.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/9092044026899039807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/9092044026899039807'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/06/win7-framework40-0xc8000222.html' title='解決Win7 framework4.0 失敗錯誤 0xc8000222'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje0ozQTjhyphenhyphentWStbqqxF9cQ3RMjLoxF-yQZxyIhlTTqYCTfi-PBCHpgmsLWmbQGkyMbpube_pgqovqapV2s_FRBD0s0mlfkm_h13lE8da18FD2Bx2EIJIDcFNIr5uOBzKNXVP3ut_slf8kF/s72-c/NETframework.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-1058877071166234913</id><published>2013-05-30T00:05:00.002+08:00</published><updated>2013-05-30T00:10:54.185+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.1 C語言"/><title type='text'>C語言製作音樂 -小蜜蜂</title><summary type="text">


其實寫程式並沒有那麼的無趣~
大家可以用C語言寫些歌曲出來XD

以下程式碼如果不能執行，應該是編碼問題~ 可以直接下載.C檔
載點一
載點二



#include&amp;lt;stdlib.h&amp;gt;
#include&amp;lt;windows.h&amp;gt;
int main()
{
     //音階頻率(依此類推，可以自己稍微調整一下) 
    //Do:523
    //Re:587
    //Mi:587
    //Fa:698 
    //So: 784 
    //La: 880 
    //Si: 988 
    //Do: 1060 
    //Re: 1185 
    //Mi: 1300 
    int row,col;
    int voice[16][4]={{700,600,600,0},{650,550,550,0},{</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/1058877071166234913/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/c_30.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/1058877071166234913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/1058877071166234913'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/c_30.html' title='C語言製作音樂 -小蜜蜂'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGMf9QuMSTqJqtVJg3BaEnHWERuOLkbY_WtEm_Lz_1gPQotFJq6Qk9n4PKdWQlWbddwgwh8SnAWygW0w1EmJB8ymvTeAWW5RCYmXpTP07Mq04Qac279n60QVgpefsvFn_PdU5vjQAdW8yp/s72-c/11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-6392968648999879340</id><published>2013-05-28T18:49:00.001+08:00</published><updated>2013-05-28T18:49:37.486+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 學校相關"/><title type='text'>JTable 加入下拉式選單(JComboBox)</title><summary type="text">





  TableColumn comboColumn1 = table.getColumn(&quot;target&quot;); //要新增下拉選單的那一列

           JComboBox combo1 = new JComboBox();
           combo1.addItem(&quot;ACCEPT&quot;);
           combo1.addItem(&quot;REJECT&quot;);
           comboColumn1.setCellEditor(new DefaultCellEditor(combo1)); //把這一列的CellEditor設成一個選擇框

</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/6392968648999879340/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/jtable-jcombobox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/6392968648999879340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/6392968648999879340'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/jtable-jcombobox.html' title='JTable 加入下拉式選單(JComboBox)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipg-QKaFrGTIZNGsiHDkbawbNVR7-2TrZP7Q_naVvzc-AhVEQ5DPnIhxUCxxObjz3QQsaBUOTVzVhbBoGtade8-Cgy7ZgNVQeL7xK8II8bSTEUO4FiC_k0MMb6CWRjunM203vvXgS_jmHO/s72-c/%E6%9C%AA%E5%91%BD%E5%90%8D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-5698060933864689186</id><published>2013-05-27T21:23:00.002+08:00</published><updated>2013-06-11T17:36:48.034+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2 學校相關"/><category scheme="http://www.blogger.com/atom/ns#" term="2.6網路程式設計"/><category scheme="http://www.blogger.com/atom/ns#" term="2.9JAVA"/><title type='text'>JAVA 網路程式-基本的Client &amp; Server 檔案傳送</title><summary type="text">因為有人來問我JAVA版的網路程式要怎麼寫，所以這邊就稍微解釋一下簡單的JAVA檔案傳送!

程式可以用來傳送文字檔、影片檔...等檔案，但是在網路不穩定時會出問題唷~
因為這只是簡單的範例程式，想要更進一步請參考檔案傳送與效能分析


server




client




客戶端 client
import java.io.*;
 
import java.net.*;
 
public class Client{
 
    public static void main(String[] args)throws Exception{
 
        //使用本地文件系統接受網絡數據並存為新文件
     String filename=&quot;newFile.mp4&quot;;
        int port=8080;

 
        // 通過Socket連接文件服務器
</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/5698060933864689186/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/java-client-server.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5698060933864689186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5698060933864689186'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/java-client-server.html' title='JAVA 網路程式-基本的Client &amp; Server 檔案傳送'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Oc6yW9v85Ojqdhhu5MTQ2ZKxGEls9vPg4MNYWlEYvXUt5SMzm7bjJcAyuERkiZEm25EymZiv7_Pp9c4t1nMzRLPbs4lqhZJRdp-GbCuYjl71mw04QQ0uZey2Stpdta-lomH2TecN_LmW/s72-c/2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-4360729424029300755</id><published>2013-05-21T22:19:00.001+08:00</published><updated>2013-05-21T22:21:47.209+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>ISOLinux 如何製作開機光碟</title><summary type="text">前面已經講過如何製作USBlinux

相關連結
[USB linux] 1.打造2MB 的 linux USB 隨身碟
[USB linux] 2.核心編譯
[USB linux] 3.建立ramdisk的root filesystem (initrd)
[USB linux] 4.建置busybox
[USB linux] 5.最後步驟建置boot loader


至於要如何把自己做的kernel做成開機光碟或者iso檔給別人下載呢?
在ISOLinux中告訴我們要這麼做

Make sure you have a recent enough version of mkisofs. I recommend mkisofs 1.13 (distributed with&amp;nbsp;cdrecord&amp;nbsp;1.9), but 1.12 might work as well (not </summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/4360729424029300755/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/isolinux.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/4360729424029300755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/4360729424029300755'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/isolinux.html' title='ISOLinux 如何製作開機光碟'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-3915015571946024158</id><published>2013-05-21T21:58:00.001+08:00</published><updated>2013-05-22T20:40:41.564+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>[USB linux] 5.最後步驟建置boot loader</title><summary type="text">boot loader的責任是接手BIOS的開機任務，負責找出kernel image的所在位置，載入kernel到記憶體中，傳給kernel image適當的參數，接著將執行權交給kernel，完成開機我們要先為隨身碟寫入boot loader，我們使用syslinuxsyslinux是一個Linux的boot loader，專為fat檔案系統設計的，一般的隨身碟通常為fat32，軟碟也適用&amp;nbsp;syslinux /dev/sdc1sdc1請更改為你的裝置名稱








如果你不確定你的隨身碟在哪一個裝置，可以用df指令看掛載點再來要編輯boot loader的設定檔vi syslinux.cfg內容如下：default linuxprompt 1timeout 10label linuxkernel bzImageappend initrd=initrd.img vga=</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/3915015571946024158/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/boot-loaderbioskernel-image.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3915015571946024158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3915015571946024158'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/boot-loaderbioskernel-image.html' title='[USB linux] 5.最後步驟建置boot loader'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4GvcUUTwNXfqjzVqzHsWIYKqRX9c39ZglVpaABo5JRNndVVRWgXmsGSayxeUQZMGjfwr379s8i3j2jpfJRAsifGfJ4e9bnxVktbPUr6ONLSraVQGlGmFHzOECys6dLq55asmpzOfu_pTj/s72-c/01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6707279719901209815.post-7362308353265924220</id><published>2013-05-21T21:48:00.003+08:00</published><updated>2013-05-22T20:41:52.815+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>[USB linux] 4.建置busybox</title><summary type="text">


Linux下常見的指令，都是由「程式」所組成，但是這些程式如果全部放進來，也會佔掉不少空間，因此有了busyboxbusybox包含了數十種Linux下常見的標準工具，例如ls, cp, cat, more....甚至包含了http server，但是全部加起來都只有幾百k的大小，是作為嵌入式系統工具庫更好的選擇。下面就來介紹該怎麼組態、編譯、安裝busybox回到我們的工作目錄，並解開busybox
&amp;nbsp;cd ~/build-usb-linux&amp;nbsp;tar -jxf busybox-1.13.2.tar.bz2&amp;nbsp;cd busybox-1.13.2先進行組態設定&amp;nbsp;make menuconfig先設定安裝目錄，將installation prefix設為剛剛所建立的ramdisk掛載點這邊不能使用&quot;~&quot;來作為家目錄，所以你必須填上完整的路徑。&amp;</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/7362308353265924220/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/usb-linux-4busybox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/7362308353265924220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/7362308353265924220'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/usb-linux-4busybox.html' title='[USB linux] 4.建置busybox'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-3968080303075153773</id><published>2013-05-21T21:47:00.000+08:00</published><updated>2013-05-21T22:01:58.809+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>[USB linux] 3.建立ramdisk的root filesystem (initrd)</title><summary type="text">接下來，要建立Linux的root filesystem，也就是打造整個Linux下面的檔案系統環境為什麼要放在ramdisk呢？一來速度快，二來ramdisk映像檔經過壓縮可以變得更小。缺點是檔案系統要更新的話很麻煩，要重新掛載映像檔、修改、卸載、壓縮。不過嵌入式系統的變更頻率不高，這樣做還是ok的。這個ramdisk叫做是initrd，initial ramdisk。首先，建立一個zero-filled的檔案，全設為0可以讓壓縮未用的空間更有效率。我們從/dev/zero處複製一共8192個block到ramdisk這個檔案中，每個block大小為1k，因此這個檔案為8MB&amp;nbsp;cd ~/build-usb-linux&amp;nbsp;dd if=/dev/zero of=ramdisk bs=1k count=8192接著，將他格式化成ext2的格式。&amp;nbsp;mkfs.ext2</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/3968080303075153773/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/usb-linux-3ramdiskroot-filesystem-initrd.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3968080303075153773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3968080303075153773'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/usb-linux-3ramdiskroot-filesystem-initrd.html' title='[USB linux] 3.建立ramdisk的root filesystem (initrd)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-618488458171023627</id><published>2013-05-21T21:41:00.000+08:00</published><updated>2013-05-21T22:03:12.792+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>[USB linux] 2.核心編譯</title><summary type="text">核心是Linux最重要的部份，也是最久的部分
直接來吧！回到我們的工作目錄，並解開核心原始檔&amp;nbsp;cd ~/build-usb-linux&amp;nbsp;tar -jxf linux-2.6.26.8.tar.bz2&amp;nbsp;cd&amp;nbsp;linux-2.6.26.8再來，進行組態設定&amp;nbsp;make menuconfig選單的操作方式，與怎麼選擇kernel的內部鳥哥的Linux私房菜&amp;nbsp;核心編譯&amp;nbsp;這邊暫時全部都使用默認選項，打開menuconfig直接&amp;nbsp;存檔離開即可，接著便可以開始編譯了
&amp;nbsp;make大概會跑個好幾十分鐘，如果你用虛擬機器的話，可能會更久Orz最後在kernel資料夾/arch/$(ARCH)/boot/目錄會產生bzImage，將他複製到隨身碟$(ARCH)請自行代換成你的cpu架構，可能是ARM、i386（較舊的核心）</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/618488458171023627/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/usb-linux-2.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/618488458171023627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/618488458171023627'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/usb-linux-2.html' title='[USB linux] 2.核心編譯'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-3774792736446903587</id><published>2013-05-21T20:21:00.002+08:00</published><updated>2013-06-03T23:19:06.960+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.1 C語言"/><category scheme="http://www.blogger.com/atom/ns#" term="2.6網路程式設計"/><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>檔案傳送與效能分析(4)-程式下載</title><summary type="text">雖然還沒開始看程式碼，但這邊我還是要先稍微說明一下我程式上的幾個問題點。

(寫在後面就沒人想看了(=...=)



1.由於在寫這份作業時得到重感冒...程式碼的部分寫得非常不好...，這邊很抱歉之後有空我會再改改。

2.不該使用nonblock因為會使效能變差

3.應該要設定SO_SENDTO，在這邊要注意一下select並不能完全的取代掉SO_SENDTO!問題點在於write的buffsize大小會出問題(傳送者大，接收者小時，有機會發生問題)

4.盡量少使用fwrite，盡量使用system calls 也就是write。

5.改使用UDP在傳送時，記得每個封包前面要加上Sequence number，以及最後要判斷data是否遭到串改(類似checksum)。

6.在嵌入式系統的設備上盡量使用udp，因為嵌入式系統的晶片如果用來處理tcp的話，在某些方面來說處理</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/3774792736446903587/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3774792736446903587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/3774792736446903587'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/4.html' title='檔案傳送與效能分析(4)-程式下載'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-5918908106695993327</id><published>2013-05-21T20:18:00.001+08:00</published><updated>2013-05-21T20:33:26.100+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.1 C語言"/><category scheme="http://www.blogger.com/atom/ns#" term="2.6網路程式設計"/><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>檔案傳送與效能分析(2)-基本的檔案傳送</title><summary type="text">因為有太多人不知道怎麼寫檔案傳送..(汗)
在這邊弄一個簡單的範例給各位，不過請別忘了將以下程式修改達到以下目的
------------------------------------------------

1. 將作業一改成用 select, 不需使用http, 只需傳一個大檔, 譬如 1G 的 zip 檔
2. 設計 client, 不需顯示UI, 只需存檔, 只需用 zip 驗證正確性
3. 請不要用 sendfile 來處理, 這是練習
4. 當1個client 連線, 仍夠正確傳完, 分析您的處理過程
5. 當1個client 連線, &amp;nbsp;但是您的網路頻寬有限, 仍夠正確傳完.
6. 當多個(2個以上)client 連線, 仍夠正確傳完
7. 當接收端 (client), 程式異常終止, 製造SIGPIPE, 參考 man 7 siganl, 與範例
8. 處理 </summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/5918908106695993327/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/2_21.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5918908106695993327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/5918908106695993327'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/2_21.html' title='檔案傳送與效能分析(2)-基本的檔案傳送'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-7258835176538434459</id><published>2013-05-21T20:01:00.001+08:00</published><updated>2013-05-21T20:29:09.144+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.6網路程式設計"/><category scheme="http://www.blogger.com/atom/ns#" term="2.7linux"/><title type='text'>檔案傳送與效能分析(3)-斷線分析</title><summary type="text">延續上一篇文章檔案傳送與效能分析(1)-實驗過程與結果

這篇要開始講解當程式發生問題時封包的狀態為何?以及一些斷線分析的範例程式碼。



斷線 RST封包問題


當伺服器 close一個連接時，若client端接著發數據。根據TCP協定的規定，會收到一個RST響應，client再往這個服務器發送數據時，系統會發出一個SIGPIPE信號給進程，告訴進程這個連接已經斷開了，不要再寫了。
&amp;nbsp; &amp;nbsp; 根據信號的默認處理規則SIGPIPE信號的默認執行動作是terminate(終止、退出),所以client會退出。若不想客戶端退出可以把SIGPIPE設為SIG_IGN

&amp;nbsp; &amp;nbsp; 如: &amp;nbsp;&amp;nbsp; signal(SIGPIPE,SIG_IGN);// &amp;nbsp; &amp;nbsp;這時SIGPIPE交給了系統處理。



&amp;nbsp;註:服務器</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/7258835176538434459/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/3.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/7258835176538434459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/7258835176538434459'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/3.html' title='檔案傳送與效能分析(3)-斷線分析'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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-6707279719901209815.post-8115237931907957796</id><published>2013-05-21T17:10:00.001+08:00</published><updated>2013-05-21T17:42:26.157+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2.8 Android"/><title type='text'>解決XP 無法安裝 android deiver </title><summary type="text">
今天發現到原來某些 adnroid 設備在XP環境中沒辦法順利的安裝USB驅動，於是找了一些解決辦法，在這邊做一下紀錄~!



1.首先先至裝置管理員中選擇androdi裝置&amp;gt;右鍵內容






2.&amp;nbsp;讀出機器本身的裝置識別碼(記得複製下來,後面會用到)


點圖可放大


3.打開android_winusb檔

(在android SDK目錄底下的\extras\google\usb_driver\ 中)

如果沒有這些資料夾，請先打開你的AVD然後選擇google USB driver做更新安裝!




4.因為電腦是XP 32位元,所以要將裝置識別碼加入到[Google.NTx86]底下,然後存檔離開
(不加入裝置識別碼,XP系統會顯示找不到適合的驅動) 問題點出在這邊@@




&amp;nbsp;接下來&quot;應該&quot;就可以正常的安裝驅動了!






法二


</summary><link rel='replies' type='application/atom+xml' href='http://ff320232.blogspot.com/feeds/8115237931907957796/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://ff320232.blogspot.com/2013/05/xp-android-deiver.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/8115237931907957796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6707279719901209815/posts/default/8115237931907957796'/><link rel='alternate' type='text/html' href='http://ff320232.blogspot.com/2013/05/xp-android-deiver.html' title='解決XP 無法安裝 android deiver '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/18043912430456458673</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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhig_A8aeXikGfbME2KLM9IIukFtdrwjExFM9UIs8PhEaeHCWsq_V4S9hh0wqb0qzPHGpfAXRIKWcdFLdeiSEUCO6SBf1mvCMm2Xwx0MMfcMOVZ2cnBlLU0sP5yPNlDqQAhbHXepoE-wD15/s72-c/01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>