<?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-1306152811995014736</id><updated>2024-09-05T10:45:02.247+08:00</updated><category term="欣爺消遣-高爾夫球"/><category term="程式開發-Android"/><category term="欣爺消遣-衝浪"/><category term="雲端-Azure-WAF"/><category term="蘋果-MAC OS-APP分享"/><category term="VMWare-HOL"/><category term="微軟相關-System Center-SCCM"/><category term="微軟相關-授權-KMS"/><category term="程式開發-Blogger"/><category term="蘋果-MAC OS-小技巧"/><category term="雲端-Azure-購買方面"/><title type='text'>欣爺搖頭店</title><subtitle type='html'>搖滾、魔幻、新體驗！</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-8248570134520021421</id><published>2019-01-26T10:43:00.000+08:00</published><updated>2019-01-26T11:42:32.724+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雲端-Azure-WAF"/><title type='text'>使用 Azure Log Analytics 建立監控分析 Azure WAF 儀表板</title><content type='html'>架設完成 Azure WAF 服務之後，要如何知道運作狀況？&lt;br /&gt;
預設在Azure WAF的計量中有提供效能方面的資訊&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLUvGfHqQzAKKITOVrxI9_Ni3061yWcDPG951inHP2FHdGkCZNnmXn_pZw0gysIdVesVA2ouaTvLGZxa4CDh5UdmqMPlkDVMOx3WWKQgYQEk2Bu5RytupHMsEnK8jY6NDLgdjW9GkX6B7D/s1600/2019-01-25_170453.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;664&quot; data-original-width=&quot;1186&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLUvGfHqQzAKKITOVrxI9_Ni3061yWcDPG951inHP2FHdGkCZNnmXn_pZw0gysIdVesVA2ouaTvLGZxa4CDh5UdmqMPlkDVMOx3WWKQgYQEk2Bu5RytupHMsEnK8jY6NDLgdjW9GkX6B7D/s640/2019-01-25_170453.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
可以在圖中的 Metric 下拉式選單中檢視各項效能資訊，相信這樣仍然有所不足對吧？&lt;br /&gt;
例如，要如何得知是否有資安攻擊？是否有不正常流量狀況？或者其中進一步的資訊...&lt;br /&gt;
首先， Azure WAF 提供了以下三種 Log:&lt;br /&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Segoe WP&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Tahoma, Arial, sans-serif; font-size: 16px; margin: 16px 0px 16px 38px; outline: none; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit; list-style: disc outside none;&quot;&gt;&lt;span data-ttu-id=&quot;a2b90-146&quot; style=&quot;box-sizing: inherit;&quot; translation=&quot;ApplicationGatewayAccessLog&quot;&gt;ApplicationGatewayAccessLog&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit; list-style: disc outside none; outline: none;&quot;&gt;&lt;span data-ttu-id=&quot;a2b90-147&quot; style=&quot;box-sizing: inherit; outline: none;&quot; translation=&quot;ApplicationGatewayPerformanceLog&quot;&gt;ApplicationGatewayPerformanceLog&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit; list-style: disc outside none;&quot;&gt;&lt;span data-ttu-id=&quot;a2b90-148&quot; style=&quot;box-sizing: inherit;&quot; translation=&quot;ApplicationGatewayFirewallLog&quot;&gt;ApplicationGatewayFirewallLog&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
但是呢？這三種Log要存放在哪裡？存放的地方要自己準備喔，當然最方便的就是放在Azure Storage裡面了，所以首先第一步，就是要準備一個 Azure Storage，新增一個儲存體帳戶，過程不贅述了，參考下圖：&lt;br /&gt;
帳戶種類選擇「Storage(一般用途 v1)」即可，其他選項依需求選擇。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTuuICJ6XfeowkhbLNd9x5h2yY-RAOLQ0ugWQpQx82plcDyQDieMxitjrlQhY8_SKfG-MVraNji2kba5sjcf_Uw2KHZoOwWVT_VgAbI0TN5o-E78BYh83rFA3oLk9_qWNUlKOpAKoKeHgM/s1600/2019-01-25_173414.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;667&quot; data-original-width=&quot;749&quot; height=&quot;568&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTuuICJ6XfeowkhbLNd9x5h2yY-RAOLQ0ugWQpQx82plcDyQDieMxitjrlQhY8_SKfG-MVraNji2kba5sjcf_Uw2KHZoOwWVT_VgAbI0TN5o-E78BYh83rFA3oLk9_qWNUlKOpAKoKeHgM/s640/2019-01-25_173414.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
準備好了儲存空間，接下來就要設定啟用 WAF&amp;nbsp; Log 紀錄和存放位置，來到 WAF 的設定畫面，選擇「診斷紀錄檔」新增一筆設定&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4srI04NArDDFZ-EgaO807Osji8h8glr4o1a6uQ2hdmB9noqgASL2I2QxN_uEjhTwrgfUuZV0KPYf_k-WqzQtEf_Wuy4dzMOKa-Euzq72-60NmW0VOuZbHKvz0zcw-eYa2D2kZwgO_Kah0/s1600/2019-01-26_093705.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;805&quot; data-original-width=&quot;1600&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4srI04NArDDFZ-EgaO807Osji8h8glr4o1a6uQ2hdmB9noqgASL2I2QxN_uEjhTwrgfUuZV0KPYf_k-WqzQtEf_Wuy4dzMOKa-Euzq72-60NmW0VOuZbHKvz0zcw-eYa2D2kZwgO_Kah0/s640/2019-01-26_093705.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
首先取好設定名稱，接著設定儲存體帳戶，先勾選「封存至儲存體帳戶」，選擇之前新增的 Storage...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4K2IFhzK0glZOF_v1JGDhObxKYpkBDVOYa7VrhKXGhT0VaG-v0PiSt0r_rtbrIFuaa4PkV3yw8MhP89f5KO08MFndffhH3RJMs1iGhb9gRUAd6N50Q5HyCpSLUj5Nz6cAFNRvLSrDoPl/s1600/2019-01-26_094307.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;796&quot; data-original-width=&quot;1437&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4K2IFhzK0glZOF_v1JGDhObxKYpkBDVOYa7VrhKXGhT0VaG-v0PiSt0r_rtbrIFuaa4PkV3yw8MhP89f5KO08MFndffhH3RJMs1iGhb9gRUAd6N50Q5HyCpSLUj5Nz6cAFNRvLSrDoPl/s640/2019-01-26_094307.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接下來勾選「傳送至 Log Analytics」，接著新增一個工作區，設定完相關資訊後，最後是訂價層，就是收費模式....是的， Log Analytics 是要付費的！&lt;br /&gt;
收費方式參考：&lt;a href=&quot;https://azure.microsoft.com/zh-tw/pricing/details/monitor/&quot; target=&quot;_blank&quot;&gt;Log Analytics 收費模式&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV9aF_89-0dqZXz0mZ7kXfSbZG11jvJ3-olSAKR_z4VQJy_938TYbCuksThJ9jSWcY0ytUnIttMSejTK3O3XXkRC5lTxhjNow3U_jiG8UV7UiKIdSqOK0WuoRnaMZLc3xRdpTodtkydCeA/s1600/2019-01-26_094157.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;802&quot; data-original-width=&quot;1499&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV9aF_89-0dqZXz0mZ7kXfSbZG11jvJ3-olSAKR_z4VQJy_938TYbCuksThJ9jSWcY0ytUnIttMSejTK3O3XXkRC5lTxhjNow3U_jiG8UV7UiKIdSqOK0WuoRnaMZLc3xRdpTodtkydCeA/s640/2019-01-26_094157.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接下來就是選擇勾選要存哪個事件，以及保留天數，一般建議留存三個月...&lt;br /&gt;
另外是 Metric 效能資料，這就看是否有需求要另外收集效能資訊分析...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy8IQ4bJTI6qQzG1qtOCOS65vOAgGRkPKaeaaY4DsGb1ZPrag4tkRp99Ge2vGrVagx79wjmaoQwES7gqZCs24iyVLR8vHbMtKe65-5WApFwowm3k6v_xVLOPAxQz6juxkMPUUVVZZYXLrg/s1600/2019-01-26_095930.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;773&quot; data-original-width=&quot;716&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy8IQ4bJTI6qQzG1qtOCOS65vOAgGRkPKaeaaY4DsGb1ZPrag4tkRp99Ge2vGrVagx79wjmaoQwES7gqZCs24iyVLR8vHbMtKe65-5WApFwowm3k6v_xVLOPAxQz6juxkMPUUVVZZYXLrg/s640/2019-01-26_095930.jpg&quot; width=&quot;592&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
以上步驟就已經完成收集 WAF Log的作業了，接下來就是資料分析的作業了，在之前的設定過程中已經新增了 Log Analytics 的工作區，如果熟悉搜尋語言可以自行設定資料分析的公式，又或者直接使用 Azure 預設提供的監控範本(在Azure Log Analytics的名詞是解決方案)，設定方式如下圖：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMuHntcgw5XLh6mhPiNbjbXkTgrMOlVGCS2CyI7Hz3L9nIpdBlKM0RdGf1QxxHuLU2ptUr2KFzN1N561g25ITFfYioevklOENcfGQ51u0C06blfqx3m-s0gBjA6SzODvmM1xHIb2fat50Y/s1600/2019-01-26_101938.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;796&quot; data-original-width=&quot;933&quot; height=&quot;546&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMuHntcgw5XLh6mhPiNbjbXkTgrMOlVGCS2CyI7Hz3L9nIpdBlKM0RdGf1QxxHuLU2ptUr2KFzN1N561g25ITFfYioevklOENcfGQ51u0C06blfqx3m-s0gBjA6SzODvmM1xHIb2fat50Y/s640/2019-01-26_101938.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Azure Log Analytics 提供了許多非常多的範本，這個情境選擇「Azure 應用程式閘道分析」並建立...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsjk4YJuBCXQhRGzjXkh-j6vZK446ZqkNoTh3CeITbbbsFZR19__KAJyDV0QT6pt7ULZczTUKPlZCrwfiIo_sFuQ6RsINVP5FtpaJ9wZWXYoopbpP2WW0IbOkEUaLZjon8ZGZ6uidvqlds/s1600/2019-01-26_102812.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1109&quot; height=&quot;442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsjk4YJuBCXQhRGzjXkh-j6vZK446ZqkNoTh3CeITbbbsFZR19__KAJyDV0QT6pt7ULZczTUKPlZCrwfiIo_sFuQ6RsINVP5FtpaJ9wZWXYoopbpP2WW0IbOkEUaLZjon8ZGZ6uidvqlds/s640/2019-01-26_102812.jpg&quot; width=&quot;640&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;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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFC-OnpsDWsV1CpAGf3jf08Y3dbLKeDg28-JSjdP_Z9QYtrk5Ry9JGvempNuEBHZxb6fw1lFuy7BaBHw7oGL1XJVqhvKzkOfnBmMaexcHxAM_33ZL_76QE3czpD9VLDd2imISorZJoKRZl/s1600/2019-01-26_102934.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;775&quot; data-original-width=&quot;870&quot; height=&quot;570&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFC-OnpsDWsV1CpAGf3jf08Y3dbLKeDg28-JSjdP_Z9QYtrk5Ry9JGvempNuEBHZxb6fw1lFuy7BaBHw7oGL1XJVqhvKzkOfnBmMaexcHxAM_33ZL_76QE3czpD9VLDd2imISorZJoKRZl/s640/2019-01-26_102934.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
例如 WAF 存取事件、防火牆事件等等...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi62-AR8QNNw385nOUo8IgsVYPCguWQzjzdMgROy3Sw1d_ssFerC4syxg3vjujX_FMn_-IEb-sJO9HyTxJPW4AFAcqGnhTPH2GmdBIXSWYYM6lBMY-ObAIn9dxG2-CzAwIeIQ2qRE0epwIH/s1600/2019-01-26_103151.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;769&quot; data-original-width=&quot;1600&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi62-AR8QNNw385nOUo8IgsVYPCguWQzjzdMgROy3Sw1d_ssFerC4syxg3vjujX_FMn_-IEb-sJO9HyTxJPW4AFAcqGnhTPH2GmdBIXSWYYM6lBMY-ObAIn9dxG2-CzAwIeIQ2qRE0epwIH/s640/2019-01-26_103151.jpg&quot; width=&quot;640&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;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcZ8PDU_hycuWA0IBMkzbiHpDioepL8x5V8tm2agEIgLv0I_b1KpCm37cKjHpYKSz37LdMeA23HX-X6kB7A3e3YS6Y0G-1Y0FrIGMmYW5LAViFPp61ean9-Uc3v2pwc2DIV-bxocwjAzH/s1600/2019-01-26_103315.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;786&quot; data-original-width=&quot;1600&quot; height=&quot;314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcZ8PDU_hycuWA0IBMkzbiHpDioepL8x5V8tm2agEIgLv0I_b1KpCm37cKjHpYKSz37LdMeA23HX-X6kB7A3e3YS6Y0G-1Y0FrIGMmYW5LAViFPp61ean9-Uc3v2pwc2DIV-bxocwjAzH/s640/2019-01-26_103315.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDK62KPo4gCLQYfRhbBIG9pxgWZX6d1orQE7kjzeikCn4_63DTGmf7DZzunlKY46mOUadlfdO_zorjuF2niMrta7iLJEW1rmoEo1Cs75__dG9zViM0qRK5cyPgRbApW2YhOKuvqC-lYTsk/s1600/2019-01-26_103646.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;657&quot; data-original-width=&quot;865&quot; height=&quot;486&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDK62KPo4gCLQYfRhbBIG9pxgWZX6d1orQE7kjzeikCn4_63DTGmf7DZzunlKY46mOUadlfdO_zorjuF2niMrta7iLJEW1rmoEo1Cs75__dG9zViM0qRK5cyPgRbApW2YhOKuvqC-lYTsk/s640/2019-01-26_103646.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接下來在Azure Portal首頁的儀表板，就可以看到了&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS_kTG4F2NjvbuoNO-govTCNwPwhghZu9bxFnIpZmB1C8FJnLim6NjtSNo5T8bq-mjm4OKJ179MWsHKI0TI3b0B36Ua-YLmK4hpENPpJ5q-BqwQL4Q-mz8W7AFe8MazEnVgqj62LRI0OeN/s1600/2019-01-26_103804.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;606&quot; data-original-width=&quot;957&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS_kTG4F2NjvbuoNO-govTCNwPwhghZu9bxFnIpZmB1C8FJnLim6NjtSNo5T8bq-mjm4OKJ179MWsHKI0TI3b0B36Ua-YLmK4hpENPpJ5q-BqwQL4Q-mz8W7AFe8MazEnVgqj62LRI0OeN/s640/2019-01-26_103804.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
OK，關於使用Azure Log Analytics 監控分析 Azure WAF 的方法介紹到這邊囉~</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/8248570134520021421/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/8248570134520021421' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/8248570134520021421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/8248570134520021421'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2019/01/azure-log-analytics-azure-waf.html' title='使用 Azure Log Analytics 建立監控分析 Azure WAF 儀表板'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEiLUvGfHqQzAKKITOVrxI9_Ni3061yWcDPG951inHP2FHdGkCZNnmXn_pZw0gysIdVesVA2ouaTvLGZxa4CDh5UdmqMPlkDVMOx3WWKQgYQEk2Bu5RytupHMsEnK8jY6NDLgdjW9GkX6B7D/s72-c/2019-01-25_170453.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-5057696727565569494</id><published>2019-01-25T16:37:00.000+08:00</published><updated>2019-01-26T11:42:42.853+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雲端-Azure-WAF"/><title type='text'>在 Azure WAF上設定將網址 http 自動導向 https</title><content type='html'>在 Azure WAF 設定 redirect 是很簡單的事，關於 Azure WAF 的資訊您可以參考以下文章：&lt;br /&gt;
&lt;a href=&quot;https://reterfreeman.blogspot.com/2019/01/azure-waf-web.html&quot; target=&quot;_blank&quot;&gt;在 Azure 啟用 WAF保護 Web服務&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
要實作將網址 http 自動轉向 https，首先一樣先從做前端的「接聽程式」開始，先到WAF設定畫面的「接聽程式」先新增一筆「基本」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigwq41aneiJFUUT7HmJWrA8gx3mr4L_DIt7CIdkKGSlT03bBcXNggbssV3H8Eavz9RY5BmHKmC-92QgiWG3UInGFySrGtYT2xuXfwQzBB8rmp96MDm00zhsnR62dIYgfQlU6mPhy7NwEWn/s1600/2019-01-25_161455.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;658&quot; data-original-width=&quot;1175&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigwq41aneiJFUUT7HmJWrA8gx3mr4L_DIt7CIdkKGSlT03bBcXNggbssV3H8Eavz9RY5BmHKmC-92QgiWG3UInGFySrGtYT2xuXfwQzBB8rmp96MDm00zhsnR62dIYgfQlU6mPhy7NwEWn/s640/2019-01-25_161455.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
新增的接聽程式，重點在於設定要接聽的是 Port 80，設定埠號名稱、埠號以及通訊協定&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGHujtYXxf9dom31AfgwzrePdEmtOX67ssXMHq1wBBqeAv8jI2URw0x96TY0SfWlLpQH2nK2Ywn7POjF5RwwBwDhT18AplyllFyTu-CVvSWa-5oqI7es5aDYWOB8etfbOam8gyXDOKnJDx/s1600/2019-01-25_162439.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;601&quot; data-original-width=&quot;574&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGHujtYXxf9dom31AfgwzrePdEmtOX67ssXMHq1wBBqeAv8jI2URw0x96TY0SfWlLpQH2nK2Ywn7POjF5RwwBwDhT18AplyllFyTu-CVvSWa-5oqI7es5aDYWOB8etfbOam8gyXDOKnJDx/s640/2019-01-25_162439.jpg&quot; width=&quot;610&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
這樣就總共有兩筆「接聽程式」了，一個是接聽 Port 443，另一個是接聽 Port 80&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkvBk8Zgp41uQ7lMXV1vLY1jg9FiTj2c78B9BuD5ZGM_IUbaWNQFRyBb94_ki-AygaRekOC4yIGqUfHHCDr7q0CCwZL6w6MwsgrKsic_p3XKMacbAtYsWEp4y1h832mvfPcwFzkiStZwMn/s1600/2019-01-25_161848.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;639&quot; data-original-width=&quot;1169&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkvBk8Zgp41uQ7lMXV1vLY1jg9FiTj2c78B9BuD5ZGM_IUbaWNQFRyBb94_ki-AygaRekOC4yIGqUfHHCDr7q0CCwZL6w6MwsgrKsic_p3XKMacbAtYsWEp4y1h832mvfPcwFzkiStZwMn/s640/2019-01-25_161848.jpg&quot; width=&quot;640&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;/div&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIPFrLI7mIlFBqPOmYdkzWtHL1cHJruj2axn3wPImsyIGDym514u5Spr0-zH_eybd3hKZnzpObp2iMPITWUzK5h-igZKEtkjNBgp1hQuV4GPl6xla850FcyZA525IgvEJGQ908B_wUDE90/s1600/2019-01-25_161951.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;646&quot; data-original-width=&quot;1204&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIPFrLI7mIlFBqPOmYdkzWtHL1cHJruj2axn3wPImsyIGDym514u5Spr0-zH_eybd3hKZnzpObp2iMPITWUzK5h-igZKEtkjNBgp1hQuV4GPl6xla850FcyZA525IgvEJGQ908B_wUDE90/s640/2019-01-25_161951.jpg&quot; width=&quot;640&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;br /&gt;
&amp;nbsp;在新增規則的內容，首先設定規則名稱、還有接聽程式(就是一開始設定的接聽 Port 80那一條)，然後勾選最關鍵的「設定重新導向」，會出現重新導向類型，這個地方請思考實際需求選擇適合的類型，重新導向目標選擇「接聽程式」，所以目標接聽程式就是原本 Port 443的接聽程式，其他地方保持預設，完成後就大功告成了。&lt;br /&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;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEPn1QlXaAt24G4tt-KL7i8VkHiBvFISXNeQ_W8dfavZyorpZRgX79drZoHJfsbXsvJKmZCZmTZvmXCQvuaILexD_G1uV4kfIek8TawCv2b1FlIxlyNVqilNHsATw0IgvjhJCSsrsyJImd/s1600/2019-01-25_163034.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;526&quot; data-original-width=&quot;579&quot; height=&quot;580&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEPn1QlXaAt24G4tt-KL7i8VkHiBvFISXNeQ_W8dfavZyorpZRgX79drZoHJfsbXsvJKmZCZmTZvmXCQvuaILexD_G1uV4kfIek8TawCv2b1FlIxlyNVqilNHsATw0IgvjhJCSsrsyJImd/s640/2019-01-25_163034.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
接下來就可以測試囉，常識打 http開頭的網址，是否會自動轉向 https？</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/5057696727565569494/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/5057696727565569494' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/5057696727565569494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/5057696727565569494'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2019/01/azure-waf-http-https.html' title='在 Azure WAF上設定將網址 http 自動導向 https'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEigwq41aneiJFUUT7HmJWrA8gx3mr4L_DIt7CIdkKGSlT03bBcXNggbssV3H8Eavz9RY5BmHKmC-92QgiWG3UInGFySrGtYT2xuXfwQzBB8rmp96MDm00zhsnR62dIYgfQlU6mPhy7NwEWn/s72-c/2019-01-25_161455.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-7248073843544975149</id><published>2019-01-25T15:59:00.003+08:00</published><updated>2019-01-26T11:42:52.917+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雲端-Azure-WAF"/><title type='text'>在 Azure 啟用 WAF保護 Web服務</title><content type='html'>來談談 WAF (Web Application Firewall)吧，不知道啥麼是WAF的話下列網址可以自行研究一下：&lt;br /&gt;
&lt;a href=&quot;https://www.techbang.com/posts/1826-waf-web-host-bridge-is-falling-down&quot; target=&quot;_blank&quot;&gt;WAF：網站主機的金鐘罩鐵布衫&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
因此對外的Web重要服務，通常都需要架設WAF來保護，即使移轉到雲端也是一樣，所以本篇文章說明，在微軟的Azure雲端平台，如何啟用WAF保護Web服務。&lt;br /&gt;
&lt;br /&gt;
微軟官方文章已經寫了非常清楚，關於概念功能，也有教程，可以先參考一下：&lt;br /&gt;
&lt;a href=&quot;https://docs.microsoft.com/zh-tw/azure/application-gateway/overview&quot; target=&quot;_blank&quot;&gt;https://docs.microsoft.com/zh-tw/azure/application-gateway/overview&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Azure 的 WAF，內建於 Azure Application Gateway 這支功能之中，選擇部屬Azure Application Gateway就可以選擇 WAF模式和應用程式閘道模式。&lt;br /&gt;
&lt;br /&gt;
本篇文章已描述 WAF 為主：&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;Azure Application Gateway&quot; height=&quot;249&quot; src=&quot;https://docs.microsoft.com/zh-tw/azure/application-gateway/media/overview/figure1-720.png&quot; title=&quot;Azure Application Gateway 功能架構圖&quot; width=&quot;640&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
有幾個重要元件可以從上圖了解：&lt;br /&gt;
1. Application Gateway Frontend IP : 直接面對來自於網際網路流量的最前端 IP&lt;br /&gt;
2. HTTP/HTTPS Listener (接聽程式)：要監聽來自於網際網路流量的哪一個 Port&lt;br /&gt;
3. HTTP Setting：前端的接聽程式，要對應後端實際的網頁伺服器的哪個 Port&lt;br /&gt;
4. Rule：定義前端要用哪幾個接聽程式？後端用哪幾個 HTTP Setting？實際要保護的是哪幾台Web服務？&lt;br /&gt;
5. Backend Pool：實際要接受保護的網頁伺服器&lt;br /&gt;
&lt;br /&gt;
各個重要角色都清楚了，就可以開始實作了：&lt;br /&gt;
首先，假設我的網站架設在Azure上(舉例網址為：https://www.sinya.com/)，需要啟用WAF來保護，由於是走 HTTPS 因此還要注意憑證的操作。&lt;br /&gt;
另外，我在DNS有一筆 www 的 A紀錄指向網頁伺服器的 IP，&lt;b&gt;當WAF 建置完成之後，就要將DNS改成指向WAF，如此Web就正是受到WAF保護了&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
接下來開始實作了：&lt;br /&gt;
1. 新增一個Azure Application Gateway服務：&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 在步驟一，先設定基本組態資料，除了「定價層」要選擇 WAF，其他選擇預設就好&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEDpcdjo5KqxMQH8vcN01Flf6ZGCaHDrmjumXdREIqUJ597vanUlSfDDnd0CKWpUBfuaZVsXnTenMq9q4xW-C8JMfWET1_4JD4i6qUCcsONjvvDGJjZqmhYRP1uoL_nyh3wRZCz7EHXfhB/s1600/2019-01-25_111715.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;718&quot; data-original-width=&quot;943&quot; height=&quot;486&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEDpcdjo5KqxMQH8vcN01Flf6ZGCaHDrmjumXdREIqUJ597vanUlSfDDnd0CKWpUBfuaZVsXnTenMq9q4xW-C8JMfWET1_4JD4i6qUCcsONjvvDGJjZqmhYRP1uoL_nyh3wRZCz7EHXfhB/s640/2019-01-25_111715.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
第二步驟，設定WAF的網路組態，以及設定公用IP，其中最重要的是「接聽程式」的設定，因為要保護 HTTPS網站，因此需要先上傳 PFX 檔案，由於接聽程式要代表網頁伺服器本身承受來自網際網路的流量，因此需要含私鑰的PFX檔案，這個PFX檔案，就需要從 網頁伺服器本身匯出 (參考：&lt;a href=&quot;https://docops.ca.com/ca-apm/10/tw/ssl-214081193.html&quot; target=&quot;_blank&quot;&gt;匯入和管理 SSL 私密金鑰&lt;/a&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihL0HHQ5NFidhl9nRyxFgRC5gR_rLpUfebSypmMcWFkonknEgPIpreK9vFsMXgNpkdxh4He5wLsNW0XsFFTxX0WLsYeZ1sId1P1VflPBJMVCPN6AbjqJL55QeabgFjP23viPUqoORdAZZj/s1600/2019-01-25_123600.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;691&quot; data-original-width=&quot;630&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihL0HHQ5NFidhl9nRyxFgRC5gR_rLpUfebSypmMcWFkonknEgPIpreK9vFsMXgNpkdxh4He5wLsNW0XsFFTxX0WLsYeZ1sId1P1VflPBJMVCPN6AbjqJL55QeabgFjP23viPUqoORdAZZj/s640/2019-01-25_123600.jpg&quot; width=&quot;582&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy_pP-WpTP3YDBQVgdJiN3VCwdw550-NM0GdEzgrwi_ueXq3uFDJpx-AhjjtWhm9o8_XNDv3pkSjbo0Z-_pE9RmQ4UlLz8821RhIPnqEBEK2cgMUgzEwtTzssUFM7TJgrthbDZ0JDRgrC2/s1600/2019-01-25_123654.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;691&quot; data-original-width=&quot;629&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy_pP-WpTP3YDBQVgdJiN3VCwdw550-NM0GdEzgrwi_ueXq3uFDJpx-AhjjtWhm9o8_XNDv3pkSjbo0Z-_pE9RmQ4UlLz8821RhIPnqEBEK2cgMUgzEwtTzssUFM7TJgrthbDZ0JDRgrC2/s640/2019-01-25_123654.jpg&quot; width=&quot;582&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
建置完成之後，前往 WAF 的設定畫面，如下圖&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI2Xi4b27PoOcrJ7MACctd1Cdiw-Naf02MTOzMXgkojtIMurIZJyMlbgG3zouFvUyrGLpZRZhPrVgV-DqJAU8rQsKQGdT11zVlCOYpYLxm5aE_MwfUh_b8HIj4QhLIlKm2crwNC0tQ3pHG/s1600/2019-01-25_142524.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;820&quot; data-original-width=&quot;1589&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI2Xi4b27PoOcrJ7MACctd1Cdiw-Naf02MTOzMXgkojtIMurIZJyMlbgG3zouFvUyrGLpZRZhPrVgV-DqJAU8rQsKQGdT11zVlCOYpYLxm5aE_MwfUh_b8HIj4QhLIlKm2crwNC0tQ3pHG/s640/2019-01-25_142524.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
首先，可以在圖中右上方紅框處得知 WAF 的公用 IP，以及FQDN資訊，這就是當完成之後要更改 DNS 紀錄用的，左邊紅框處，是剛才設定過程中已經設定完成的接聽程式，進去看一下內容，因隱私我遮蔽了一些項目，假設下圖中那一項接聽程式(_Port443)是剛才設定的，我們可進一步觀察細部設定：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8U6UJ4ts3GwzR2JFI68Q9XQOL_SXu608f_0EHbh2qJVWrkLaOqxxhI6U9G5oGb6DVzlCltAnzdWvkKpG-sP8GYJ-Q2QeKOUL8ZiN5-89Qf7dwjqeD2UPX2VVAGW6O4jRog-SBfHKPeG_m/s1600/2019-01-25_144920.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;654&quot; data-original-width=&quot;1071&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8U6UJ4ts3GwzR2JFI68Q9XQOL_SXu608f_0EHbh2qJVWrkLaOqxxhI6U9G5oGb6DVzlCltAnzdWvkKpG-sP8GYJ-Q2QeKOUL8ZiN5-89Qf7dwjqeD2UPX2VVAGW6O4jRog-SBfHKPeG_m/s640/2019-01-25_144920.jpg&quot; width=&quot;640&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;br /&gt;
下圖是接聽程式的設定內容，例如前端公用IP、接聽的網路埠號、主機名稱、憑證等等...&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjludWYtMW6YXOZnXYxlyBxFWYDVelLKLfvpqpownLyYkloM5w9r-cMndv3rq0fRw-rxaDR2egO-wehyphenhyphensEd3upTJSnQl2SL4575tr-UF5c0pw6b7xvjPztfbM8XfOPS7d7PCjhAsDjwGnjk/s1600/2019-01-25_145603.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;663&quot; data-original-width=&quot;576&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjludWYtMW6YXOZnXYxlyBxFWYDVelLKLfvpqpownLyYkloM5w9r-cMndv3rq0fRw-rxaDR2egO-wehyphenhyphensEd3upTJSnQl2SL4575tr-UF5c0pw6b7xvjPztfbM8XfOPS7d7PCjhAsDjwGnjk/s640/2019-01-25_145603.jpg&quot; width=&quot;556&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
接下來，要新增一個 HTTP 設定：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicXuO0vC_AVBmnMdf-6MYohTvZqzxa1DGVgVXuzgfr_LCCBimiX0o6CDbuL3kqbl9Dw7b2ZJW1O_B0C5-1GfDo56XJaj1tr0Hc6sSfECF56HTU_vgXqskr3t1m6GRnv7raCORMEc2wwD0m/s1600/2019-01-25_150226.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;655&quot; data-original-width=&quot;1042&quot; height=&quot;402&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicXuO0vC_AVBmnMdf-6MYohTvZqzxa1DGVgVXuzgfr_LCCBimiX0o6CDbuL3kqbl9Dw7b2ZJW1O_B0C5-1GfDo56XJaj1tr0Hc6sSfECF56HTU_vgXqskr3t1m6GRnv7raCORMEc2wwD0m/s640/2019-01-25_150226.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
在HTTP設定中，要設定後端網頁伺服器的要接聽的通訊協定，由於我的網頁伺服器有設定SSL憑證，因此選擇 HTTPS，同時上傳 cer 憑證檔案 (可以從IE瀏覽器開啟SSL網頁時匯出cer檔案)...&lt;br /&gt;
另外一個狀況：&lt;i&gt;如果網頁伺服器並沒有掛 SSL 憑證，但是希望 WAF 可以掛SSL憑證，原本網頁伺服器還是走 Port 80，這樣情境也是可以的！&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;就是前端的「接聽程式」走 HTTPS，這邊的 HTTP設定走 HTTP 即可喔！&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsvsAm-Z62GUc7RH_O2u3a5EZgz4bV2flfaE7JJSN3Bi30BP3EJCsME9acsJ9kLGy3920gzBxqPMJkdBW839fZVueowTOovu86pu1Nh_3wD330WsMJYJKrJ-enNOqpwHp_b6lVn6BSCLzR/s1600/2019-01-25_150507.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;657&quot; data-original-width=&quot;563&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsvsAm-Z62GUc7RH_O2u3a5EZgz4bV2flfaE7JJSN3Bi30BP3EJCsME9acsJ9kLGy3920gzBxqPMJkdBW839fZVueowTOovu86pu1Nh_3wD330WsMJYJKrJ-enNOqpwHp_b6lVn6BSCLzR/s640/2019-01-25_150507.jpg&quot; width=&quot;548&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接下來設定「後端集區」指定實際的網頁伺服器，設定後端集區的名稱、輸入網頁伺服器的 IP 或者 FQDN，按下新增就好了&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaNDLqcKJpjm78qiVqNjNl_q4P46huoxzBD6FlZbFs7ThDF0Kd3mN1wl2fFHwJ9gyRiHT2sMpxT0khAZc7xvGSeskPHH8yCrX_iUB8uC2WaJxl7Wbmr0l5ihdotc4q2NvfDD7mT7ygugiH/s1600/2019-01-25_151519.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;695&quot; data-original-width=&quot;1204&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaNDLqcKJpjm78qiVqNjNl_q4P46huoxzBD6FlZbFs7ThDF0Kd3mN1wl2fFHwJ9gyRiHT2sMpxT0khAZc7xvGSeskPHH8yCrX_iUB8uC2WaJxl7Wbmr0l5ihdotc4q2NvfDD7mT7ygugiH/s640/2019-01-25_151519.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接下來設定「規則」指定規則名稱、前端接聽程式、後端HTTP設定和後端集區，這樣就行了！&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk8NFMWbYHAtk-Nvevbw7Omj2pZSrRwpCjN0vCnpUinO6eh4lC3RbmXLtAQjQ1XvRDe1Tfrh1pqP8EQdEeyfodcQHjBpyxmaKzpK1sWTKzUHv8j7Bf5yL4BamN8RjcbdQq6xBthjOA22Ob/s1600/2019-01-25_151921.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;649&quot; data-original-width=&quot;933&quot; height=&quot;444&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk8NFMWbYHAtk-Nvevbw7Omj2pZSrRwpCjN0vCnpUinO6eh4lC3RbmXLtAQjQ1XvRDe1Tfrh1pqP8EQdEeyfodcQHjBpyxmaKzpK1sWTKzUHv8j7Bf5yL4BamN8RjcbdQq6xBthjOA22Ob/s640/2019-01-25_151921.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3XBp5uTF-7TZ1syrw2gDgHWUaKY0BshgNAYSpQxLXLsmEJc4H-rE0Gs3nTGCVTltOBCy5xksiE0xnM9lTjcikn7DtiLvUGcCEHrJu3kghgEKgUYB0gFmQNx5CTrddTmfV1sbfGriaYwu4/s1600/2019-01-25_152157.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;667&quot; data-original-width=&quot;568&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3XBp5uTF-7TZ1syrw2gDgHWUaKY0BshgNAYSpQxLXLsmEJc4H-rE0Gs3nTGCVTltOBCy5xksiE0xnM9lTjcikn7DtiLvUGcCEHrJu3kghgEKgUYB0gFmQNx5CTrddTmfV1sbfGriaYwu4/s640/2019-01-25_152157.jpg&quot; width=&quot;544&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
這樣 WAF 就會依造這條規則，將接聽的網路埠號、街到後端的HTTP設定，進而將資料送到後端集區的網頁伺服器了~目前為止大致設定差不多了，但是還有一個設定要完成，就是「健康狀態探查」如此才能確認WAF服務是否OK...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0cUY1qcrzekQFdokyNzRLqdS2dYujGQR1Jwyc95QcLI82-OGkjQR2BtvOJ8EZpjgX0_oskSXzJKr0tScq7FsvBydBwrtbLjPql35oW5N24dZRq8JVer2SqErWOoJNUn0uU6G2sZuDXYho/s1600/2019-01-25_153351.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;655&quot; data-original-width=&quot;1182&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0cUY1qcrzekQFdokyNzRLqdS2dYujGQR1Jwyc95QcLI82-OGkjQR2BtvOJ8EZpjgX0_oskSXzJKr0tScq7FsvBydBwrtbLjPql35oW5N24dZRq8JVer2SqErWOoJNUn0uU6G2sZuDXYho/s640/2019-01-25_153351.jpg&quot; width=&quot;640&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW2BJQtR4JDwK9FYDum-r3fXFO5mkz-EGkmZr3t-IoWA3tRlmnDX2PedhvT7i5-Ak3WxL9pr-zoZcGgLebFas8_ect_eticlx6NstZuC6uNSa2Sc9RlGogdeiC616ldgBIiUD0dA4bedAZ/s1600/2019-01-25_153537.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;667&quot; data-original-width=&quot;566&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW2BJQtR4JDwK9FYDum-r3fXFO5mkz-EGkmZr3t-IoWA3tRlmnDX2PedhvT7i5-Ak3WxL9pr-zoZcGgLebFas8_ect_eticlx6NstZuC6uNSa2Sc9RlGogdeiC616ldgBIiUD0dA4bedAZ/s640/2019-01-25_153537.jpg&quot; width=&quot;542&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
接下來要回到「HTTP設定」找到之前設定完成的 HTTP設定，直接拉到最下方勾選&quot;自訂探查&quot;項目，會出現下拉式選單，選擇剛才建立的&quot;健康狀態探查&quot;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAiBZbz25GoyISwI1LMqgKOvDtPHoZy8EuIcRiMt9Z88pKtUjQuXIfvRGm-CTxDbsDlfDEna15iC7g_y0JpY8aWrr4l9reO82dRhZ7JwNKLp0gDs9lstrncGon2f_uA0Kjxh7YLfh_lMej/s1600/2019-01-25_153931.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;697&quot; data-original-width=&quot;567&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAiBZbz25GoyISwI1LMqgKOvDtPHoZy8EuIcRiMt9Z88pKtUjQuXIfvRGm-CTxDbsDlfDEna15iC7g_y0JpY8aWrr4l9reO82dRhZ7JwNKLp0gDs9lstrncGon2f_uA0Kjxh7YLfh_lMej/s640/2019-01-25_153931.jpg&quot; width=&quot;520&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
接下來就先確認WAF機制是否有正常的運作了，找到有愛心符號的「後端健康狀態」只要看到狀況良好的綠色符號，就代表大功告成了，至目前為止WAF設定便完成了。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5OmzyJWVEr0OtGzpIfsxbZtFEU8Aea9qdebkpZV-pOJjoPcw3dykguSwFDppgkU6rGwSlhKsYAAmVK8H_3QWDFVSkWYNbnwdIyoeVV3YLV8bQ1W7u5VMYwGHj4SHLW3Iy7vAcZh5HWrQK/s1600/2019-01-25_154518.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;612&quot; data-original-width=&quot;981&quot; height=&quot;398&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5OmzyJWVEr0OtGzpIfsxbZtFEU8Aea9qdebkpZV-pOJjoPcw3dykguSwFDppgkU6rGwSlhKsYAAmVK8H_3QWDFVSkWYNbnwdIyoeVV3YLV8bQ1W7u5VMYwGHj4SHLW3Iy7vAcZh5HWrQK/s640/2019-01-25_154518.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
建議各位，儘量測試網站各項功能，看是否WAF有影響到網站功能造成異常，如果測試都沒有問題，就可以到DNS將網站的 A 紀錄改成 WAF 的囉，首先將原本網站的 A 紀錄刪掉，新增一筆網站的 CNAME 紀錄，我這邊用 Azure DNS 來舉例：輸入對應的網站FQDN, 和輸入 WAF的CNAME資訊&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOkptxljA0NECvVpuY2H7UwOVKOWkv-fSuMIhACAD3myFyWliDb4v9NGvKTbD4vlwa5MYFVLQWkXIxXQSOKai80LuNg1x2GO9STb7ddlTDfsvP9b87yUMS7YmMH5ZcvmXyqGL3IequsuX0/s1600/2019-01-25_155415.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;411&quot; data-original-width=&quot;581&quot; height=&quot;452&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOkptxljA0NECvVpuY2H7UwOVKOWkv-fSuMIhACAD3myFyWliDb4v9NGvKTbD4vlwa5MYFVLQWkXIxXQSOKai80LuNg1x2GO9STb7ddlTDfsvP9b87yUMS7YmMH5ZcvmXyqGL3IequsuX0/s640/2019-01-25_155415.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
WAF 的 CNAME 資訊在何處？藏在概觀的畫面上，公用IP 後面括號中一串亂碼後面帶 cloudapp.net的字串就是了...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJwaQ4HnoaF96ju7LJQEk0DCaFSHY6eqeZsYPdM-5dmhmJlbDHN5TmlKpHQBIDvmKhOLrqrw_AzcvsT3TnG3AHsfKXL2JRN_gk2xFYdXA6bHpmozxeoVnoEgInZF4VI5EM75fWf4dUNzv2/s1600/2019-01-25_155111.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;340&quot; data-original-width=&quot;1186&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJwaQ4HnoaF96ju7LJQEk0DCaFSHY6eqeZsYPdM-5dmhmJlbDHN5TmlKpHQBIDvmKhOLrqrw_AzcvsT3TnG3AHsfKXL2JRN_gk2xFYdXA6bHpmozxeoVnoEgInZF4VI5EM75fWf4dUNzv2/s640/2019-01-25_155111.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
待 DNS 生效之後 Ping 看看，接下來確認網頁開啟正常之後，就大功告成囉...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVhF8iJvvnRqLj9SiEkJZy3cMmXN5TEeE4Vj7dtZh8HhOjj-9UCcli0NV1jWdj3v0RQ3gTWSRLQzDgnKVLwHHPpBe5cXTPHGyXs4zkniIqlyfnD1aHchyphenhyphenb3FEgvBPcGhzkh9QBT-33RaLS/s1600/2019-01-25_155753.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;242&quot; data-original-width=&quot;920&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVhF8iJvvnRqLj9SiEkJZy3cMmXN5TEeE4Vj7dtZh8HhOjj-9UCcli0NV1jWdj3v0RQ3gTWSRLQzDgnKVLwHHPpBe5cXTPHGyXs4zkniIqlyfnD1aHchyphenhyphenb3FEgvBPcGhzkh9QBT-33RaLS/s640/2019-01-25_155753.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/7248073843544975149/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/7248073843544975149' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7248073843544975149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7248073843544975149'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2019/01/azure-waf-web.html' title='在 Azure 啟用 WAF保護 Web服務'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEhEDpcdjo5KqxMQH8vcN01Flf6ZGCaHDrmjumXdREIqUJ597vanUlSfDDnd0CKWpUBfuaZVsXnTenMq9q4xW-C8JMfWET1_4JD4i6qUCcsONjvvDGJjZqmhYRP1uoL_nyh3wRZCz7EHXfhB/s72-c/2019-01-25_111715.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-4557605984230278669</id><published>2017-11-19T23:35:00.000+08:00</published><updated>2017-11-19T23:35:08.662+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VMWare-HOL"/><title type='text'>練功好所在：VMWare Hands on Lab</title><content type='html'>11/16 在台北國際會議中心熱鬧登場的 VMWare vForum，無疑是個火力展示的大舞台，許許多多的相關廠商也趁著機會展示自家的產品或解決方案，報名這次的VMWare大拜拜，大會也準備了專屬APP提供參加者，藉此了解大會所有相關資料、也可以提供下載，攤位資訊、課程資訊等等，相當便利！&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO72dmXQ0tQjOW73-oc-RUY-bDyo-Y7am_njZq4snDs0QEWEeHSc2gQGA-6WXIUhe_WG_2TMF5CXwXKpUM5plK66WmPsZxb4e5ZSx9xgUfXSI0VCuZgXzCjpwOqs0GjtxCP6WFftnK2v_v/s1600/IMG_6028.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;360&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO72dmXQ0tQjOW73-oc-RUY-bDyo-Y7am_njZq4snDs0QEWEeHSc2gQGA-6WXIUhe_WG_2TMF5CXwXKpUM5plK66WmPsZxb4e5ZSx9xgUfXSI0VCuZgXzCjpwOqs0GjtxCP6WFftnK2v_v/s640/IMG_6028.PNG&quot; width=&quot;360&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: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;當然對於 IT Pro 或者 VMWare 資深玩家們，更關心的是&amp;nbsp; VMWare 有哪些新玩意？會場當天也展示了 Hands on labs, 讓玩家們可以親手感受 VMWare 產品建置操作等功能，對於玩家來說，這點才是最重要的亮點啦，那麼本文開始就介紹一下，要如何才能玩這個 Labs 環境呢？&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;首先，請登入 VMWare Hands on Labs 網站：&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;a href=&quot;http://labs.hol.vmware.com/HOL/catalogs/catalog/681&quot; target=&quot;_blank&quot;&gt;http://labs.hol.vmware.com/HOL/catalogs/catalog/681&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
或者 Google 搜尋 HOL, 第一個就是了..&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;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicA3j0WAs9Aqu4Yc0_wug49pbcyp7WLzCKME5RKYyGO-OzdcM6BlZm7_qBjLoeZp9c-oEiH_Skew7jrTnWCbJWq-MftDrwKlNKTOBiZki2NgshRlUAB19I0lIgWUOxuegcfJMqqfYaOBrl/s1600/2017-11-19_224518.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;750&quot; data-original-width=&quot;1600&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicA3j0WAs9Aqu4Yc0_wug49pbcyp7WLzCKME5RKYyGO-OzdcM6BlZm7_qBjLoeZp9c-oEiH_Skew7jrTnWCbJWq-MftDrwKlNKTOBiZki2NgshRlUAB19I0lIgWUOxuegcfJMqqfYaOBrl/s640/2017-11-19_224518.jpg&quot; width=&quot;640&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: center;&quot;&gt;
如果之前有帳號就直接登入，沒有的話下方選項 Register 註冊一個新帳號吧&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXbwITKi9UmFpcK3pbQzyhWMog7sk6YNbzIT4ZX6IxFq7HO_MWmp6pEogLtmugc9fDvBh3awamHRn8r3trApYGOz9zcamIlx9lYQ1J3jCfGwyLNs_KnxSSw34TFHqgf8ZjcXbdRoUSLtZK/s1600/2017-11-19_224613.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;558&quot; data-original-width=&quot;825&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXbwITKi9UmFpcK3pbQzyhWMog7sk6YNbzIT4ZX6IxFq7HO_MWmp6pEogLtmugc9fDvBh3awamHRn8r3trApYGOz9zcamIlx9lYQ1J3jCfGwyLNs_KnxSSw34TFHqgf8ZjcXbdRoUSLtZK/s320/2017-11-19_224613.jpg&quot; width=&quot;320&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: center;&quot;&gt;
登入後就可以開始玩想要的實驗了，有些實驗有中文化，左邊實驗清單中可以找到支援語言方類的實驗，例如繁體中文有兩個實驗可以選，接下來點選&quot;註冊&quot;，就可以開啟實驗&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHvNYZRJa3WWKOkPacNxSPuH7x-XkP9sszJnHCfPcGsJ5GUVrDmGBULRcpwRsefrwbj6Psd0inQL-Naw_5TlCueZOf2iSmQP7hstTE3q2hMWiU0VpQH0Z4KwDimYpbYMzowlxUMw4VHdY_/s1600/2017-11-19_225345.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;750&quot; data-original-width=&quot;1600&quot; height=&quot;299&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHvNYZRJa3WWKOkPacNxSPuH7x-XkP9sszJnHCfPcGsJ5GUVrDmGBULRcpwRsefrwbj6Psd0inQL-Naw_5TlCueZOf2iSmQP7hstTE3q2hMWiU0VpQH0Z4KwDimYpbYMzowlxUMw4VHdY_/s640/2017-11-19_225345.jpg&quot; width=&quot;640&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: center;&quot;&gt;
建議先了解一下這個實驗的內容，寫得很詳細，按下&quot;啟動此實驗&quot;就可以開始進行&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiFJB6c8e5a4kW9cvEt0mIA_87-G4dWTT_oODMagDSm0EKrm2l-WF27rDfx2rF0FYBdrxOhA282hsg4vDESc5aFv43O1JliqD-GLo13ZCG0b-OmtPxeHPZVaz1L0J8MkG02N8xk-4ZvUuZ/s1600/2017-11-19_225455.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;750&quot; data-original-width=&quot;1600&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiFJB6c8e5a4kW9cvEt0mIA_87-G4dWTT_oODMagDSm0EKrm2l-WF27rDfx2rF0FYBdrxOhA282hsg4vDESc5aFv43O1JliqD-GLo13ZCG0b-OmtPxeHPZVaz1L0J8MkG02N8xk-4ZvUuZ/s640/2017-11-19_225455.jpg&quot; width=&quot;640&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: 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_TES9-E0mhJ8tD9jQUZBf7ooR6i2SrWmwSt6b-rUy2fo18YvVPHa0iP8xvghSkJ1osxB13dzl0y5YsXD2tvjRU9-Zrhh96D85cnx-MkTfxunlBCIwleQ2HR9Xxsrx6_ET6TLju7QuY7o3/s1600/2017-11-19_225520.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;750&quot; data-original-width=&quot;1600&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_TES9-E0mhJ8tD9jQUZBf7ooR6i2SrWmwSt6b-rUy2fo18YvVPHa0iP8xvghSkJ1osxB13dzl0y5YsXD2tvjRU9-Zrhh96D85cnx-MkTfxunlBCIwleQ2HR9Xxsrx6_ET6TLju7QuY7o3/s640/2017-11-19_225520.jpg&quot; width=&quot;640&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: 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6oJdZSl3zqXit6Qr8VkQwv3aDjWl_jgLCmYlw676eYsJZqKOqWrp7ioVHNcn4XwZYMt7YJmJsZgRyyQlTFe9cMvfWbaLNvYW4ZUrPpI3z-KtPsJ535jADdNik9KgSfBCz5nF8QM4QQw83/s1600/2017-11-19_230127.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;825&quot; data-original-width=&quot;838&quot; height=&quot;630&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6oJdZSl3zqXit6Qr8VkQwv3aDjWl_jgLCmYlw676eYsJZqKOqWrp7ioVHNcn4XwZYMt7YJmJsZgRyyQlTFe9cMvfWbaLNvYW4ZUrPpI3z-KtPsJ535jADdNik9KgSfBCz5nF8QM4QQw83/s640/2017-11-19_230127.jpg&quot; width=&quot;640&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: 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCgKeufk2V0HBEFM2Xfu2pjg4lHN6lCmHJpihGSK_pYyuInp5w9e_qizzr9w_dERbh8TewwvjKx3bqvorKKwv1UUEjXIFQZ_4Tk3AvWtQcqXfxxThFbmYj4EJyKf8nbdOXOxK1kEVhbp75/s1600/sss.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;446&quot; data-original-width=&quot;929&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCgKeufk2V0HBEFM2Xfu2pjg4lHN6lCmHJpihGSK_pYyuInp5w9e_qizzr9w_dERbh8TewwvjKx3bqvorKKwv1UUEjXIFQZ_4Tk3AvWtQcqXfxxThFbmYj4EJyKf8nbdOXOxK1kEVhbp75/s640/sss.jpg&quot; width=&quot;640&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 style=&quot;text-align: justify;&quot;&gt;
透過這個平台，可以好好磨練自己在VMWare產品操作、建置的功力，每個實驗都有時間限制，也就是說，時間結束之後就會關閉這個環境，例如本次時間只有一個小時半，所以欣爺必須挑戰自己的熟悉度，在指定的時間內完成這個實驗，是不是很有挑戰性呢？&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/4557605984230278669/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/4557605984230278669' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4557605984230278669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4557605984230278669'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/11/vmware-hands-on-lab.html' title='練功好所在：VMWare Hands on Lab'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEhO72dmXQ0tQjOW73-oc-RUY-bDyo-Y7am_njZq4snDs0QEWEeHSc2gQGA-6WXIUhe_WG_2TMF5CXwXKpUM5plK66WmPsZxb4e5ZSx9xgUfXSI0VCuZgXzCjpwOqs0GjtxCP6WFftnK2v_v/s72-c/IMG_6028.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-714469285998261619</id><published>2017-11-16T00:13:00.002+08:00</published><updated>2019-01-26T11:45:41.631+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="微軟相關-授權-KMS"/><title type='text'>KMS Server 無法計算授權數量的原因</title><content type='html'>OK, 當採購大量微軟產品的 IT 人員應該不陌生，要讓Windows或者Office獲得啟動授權，就必須要在企業內部網路準備 KMS (Key Management Service) 伺服器，讓用戶端電腦每180天連回 KMS 主機維持授權啟用狀態。因為KMS設計上就是為了方便啟用大量電腦的軟體授權，因此有基本門檻限制，官方說明：&lt;br /&gt;
&lt;a href=&quot;https://www.microsoft.com/en-us/licensing/existing-customer/FAQ-product-activation.aspx&quot; target=&quot;_blank&quot;&gt;https://www.microsoft.com/en-us/licensing/existing-customer/FAQ-product-activation.aspx&lt;/a&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTqnEfIBcn9PRdJhrfMFxEol5fhmoddOGOWPjO813iUX05E_dPF4RXAkENysmYE-6932tsujColHBs8djtCKYe44OP-7A9oSq94p3_C-VNmnFoE1xRaJTiWEmmZtkPi-uI2Kf4L67UYaGR/s1600/2017-11-15_231525.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;462&quot; data-original-width=&quot;1446&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTqnEfIBcn9PRdJhrfMFxEol5fhmoddOGOWPjO813iUX05E_dPF4RXAkENysmYE-6932tsujColHBs8djtCKYe44OP-7A9oSq94p3_C-VNmnFoE1xRaJTiWEmmZtkPi-uI2Kf4L67UYaGR/s640/2017-11-15_231525.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
意思是就是內部網路必須至少要有五套Office向KMS提出啟動要求才會生效。&lt;br /&gt;
&lt;br /&gt;
故事開始：&lt;br /&gt;
最近處理了一個有趣的 KMS Server 案例，客戶反應他們的 KMS 伺服器無法計數授權數量，對方 7pupu 的抱怨 Office 2013 都已經安裝七、八套了，KMS還沒啥麼反應！&lt;br /&gt;
客戶也提供了 KMS 的畫面：&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMTcJJPv0NYw9Nx8v3aleZsm3AWAmPHHjN8zYmhtuUNvo8BNd0ZxN-oOMHZ1VNWNtC_dBJhSANeEU9S80zACYhT8Z-Cm-i175ustpk-GOaszrEDl-HQbB2Di22nPcy1p7Lo8xM8o06aS89/s1600/2017-11-15_233153.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;140&quot; data-original-width=&quot;353&quot; height=&quot;126&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMTcJJPv0NYw9Nx8v3aleZsm3AWAmPHHjN8zYmhtuUNvo8BNd0ZxN-oOMHZ1VNWNtC_dBJhSANeEU9S80zACYhT8Z-Cm-i175ustpk-GOaszrEDl-HQbB2Di22nPcy1p7Lo8xM8o06aS89/s320/2017-11-15_233153.jpg&quot; width=&quot;320&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;br /&gt;
接下來的畫面也看到Error Code: 0xC004F038，Google一下這個Error Code內容，也是描述授權數量不足五個所以無法啟動，對於疑難排除沒有啥參考價值...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEircr1ZmCJPlz-uiMYwe7d001bflAKGCCaOp7kaIHWEkWRGpsKSQi3uJ_wCksxFdG0WwWLpJEj3-KxXhzQNnyWL-992yDHDbzbECt3ofTovV5TG2bPs3gzh7F3ToubxyuF4bPSGkTY6UWyY/s1600/2017-11-15_233237.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;271&quot; data-original-width=&quot;961&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEircr1ZmCJPlz-uiMYwe7d001bflAKGCCaOp7kaIHWEkWRGpsKSQi3uJ_wCksxFdG0WwWLpJEj3-KxXhzQNnyWL-992yDHDbzbECt3ofTovV5TG2bPs3gzh7F3ToubxyuF4bPSGkTY6UWyY/s640/2017-11-15_233237.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
在傷腦筋的過程中，無意見詢問一下客戶 Office 2013 的安裝方式，客戶就說了，身為資深的IT人員，一台一台電腦慢慢安裝 Office 2013 的方式一點都不 Pro，當然是用 Ghost 映像檔方式又快又方便啦！&lt;br /&gt;
&lt;br /&gt;
聽到這裡，欣爺眉頭一皺，發覺案情並不單純，立馬查詢一下，果然知道問題點在哪了。&lt;br /&gt;
首先，要先說明一下 KMS 是依據甚麼來判斷 Office 的啟動數量呢？當然不是Office 的安裝數量那麼單純，而是會判斷 Office 的 CMID (Client Machine ID)，每一套 Office 的 CMID 都是獨一無二的，因此客戶將裝好的 Office 電腦製作成映像檔後，佈署到了七八台電腦，對於 KMS 主機來講，等於沒有發現任何 Office，因為這七八台電腦的 Office 的 CMID 都是一模一樣的！而這組 CMID 早已經被啟動了，所以這就是 KMS 無法計數啟動數量，這七八台電腦沒辦法順利啟動的原因。&lt;br /&gt;
&lt;br /&gt;
首先，要怎麼確認那些電腦的 Office CMID 是重複的？可以透過命令提示列，在 Office 2013 的路徑底下(\%Program Files%\Microsoft Office\Office15)，執行cscript ospp.vbs /dcmid指令查看Office的CMID。&lt;br /&gt;
PS: 安裝32位元的，就是在 %Program File(x86)%，OK?&lt;br /&gt;
PS: 如果安裝的是 Office 2016呢？那就是 Office16，OK?&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz_A6Ii92GifDQonddjMRw4zeeh3bHqV1UvvKu2FHPXVVI3m1fttNG6eP4S8BgjXzvjG2c5ZrKWgevtyhYKDWGNJJgE1VWwclgurFH1vHyujMLXUGC6q5DdQnfXPGW4H-9_jKuH1jnloYV/s1600/2017-11-16_000708.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;232&quot; data-original-width=&quot;911&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz_A6Ii92GifDQonddjMRw4zeeh3bHqV1UvvKu2FHPXVVI3m1fttNG6eP4S8BgjXzvjG2c5ZrKWgevtyhYKDWGNJJgE1VWwclgurFH1vHyujMLXUGC6q5DdQnfXPGW4H-9_jKuH1jnloYV/s640/2017-11-16_000708.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
那麼接下來，找到重複的 Office CMID 電腦，只要在命令提示列相同資料夾位置，輸入：&lt;br /&gt;
&lt;strong style=&quot;color: #2a2a2a; font-family: &amp;quot;Microsoft JhengHei UI&amp;quot;, &amp;quot;Microsoft JhengHei&amp;quot;, PMingLiU, MingLiU, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;ospprearm.exe&lt;/strong&gt;&lt;br /&gt;
畫面會出現「Microsoft Office 重設授權狀態成功」&lt;br /&gt;
這樣就表示CMID重設成功了，當然KMS也就可以正常計數了&lt;br /&gt;
&lt;br /&gt;
當然，重要的是，習慣用映像檔來重灌電腦的 IT Pro，除了基本的 Sysprep 要做之外，記得 Office 也要重設一下 CMID 喔！</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/714469285998261619/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/714469285998261619' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/714469285998261619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/714469285998261619'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/11/kms-server.html' title='KMS Server 無法計算授權數量的原因'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEgTqnEfIBcn9PRdJhrfMFxEol5fhmoddOGOWPjO813iUX05E_dPF4RXAkENysmYE-6932tsujColHBs8djtCKYe44OP-7A9oSq94p3_C-VNmnFoE1xRaJTiWEmmZtkPi-uI2Kf4L67UYaGR/s72-c/2017-11-15_231525.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-4707101862339520423</id><published>2017-11-08T00:11:00.000+08:00</published><updated>2019-01-26T11:43:05.824+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="雲端-Azure-購買方面"/><title type='text'>如何取得 Visual Studio 訂閱的 Azure 每月 NT$4,600 免費額度？</title><content type='html'>是的，微軟的雲端服務 Azure 提供每個月免費額度給你花，要怎麼得到呢？&lt;br /&gt;
&lt;br /&gt;
首先，您必須要到具備&lt;b&gt;微軟合作夥伴金級、銀級資格&lt;/b&gt;的公司上班！&lt;br /&gt;
如果不是，還有其他方法取得 Azure 免費額度嗎？&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ3yXjACqWoCnKr6yW4sTB__nNR_hUjEgPrtT0XFdA4M3mFiD2s19itpgsstvDDq8Xk5St-2NMyGAkFrlcfdHWlcahetdybBVPkOuRVR3dR2p4m0ejEiSvdK7KtTKpESbZsXCC-JHAN36f/s1600/messageImage_1509611451893.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;639&quot; data-original-width=&quot;1145&quot; height=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ3yXjACqWoCnKr6yW4sTB__nNR_hUjEgPrtT0XFdA4M3mFiD2s19itpgsstvDDq8Xk5St-2NMyGAkFrlcfdHWlcahetdybBVPkOuRVR3dR2p4m0ejEiSvdK7KtTKpESbZsXCC-JHAN36f/s640/messageImage_1509611451893.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&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;span style=&quot;background-color: #eeeeee;&quot;&gt;PS: 圖中的金額應該是會隨著匯率價差有所變動，我自己實際上只有獲得4,600的額度&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
另外的方式就是誘拐您家老闆購買 Visual Studio 訂閱，當然要Enterprise等級訂閱才有免費 NT$4,600 額度可以花。&lt;br /&gt;
&lt;br /&gt;
今天這篇文章，主要是介紹在具備微軟合作夥伴金級、銀級的資格，如何獲得Azure每個月NT$4,600的額度：&lt;br /&gt;
&lt;br /&gt;
1. 首先，您必須先準備 Microsoft 帳戶(沒有？自己去註冊一個)，在貴司管理員身分登入合作夥伴網站&amp;nbsp;&lt;a href=&quot;http://partners.microsoft.com/&quot; target=&quot;_blank&quot;&gt;partners.microsoft.com&lt;/a&gt;&amp;nbsp;發送關聯邀請信件給你的 Microsoft 帳戶信箱，收到的信像這樣：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEVqME7luXB3KLXT-45CnwB6b_hzb6ZWNobVzLaWMuHCnU_KT2cCeG1xCHJgouKfr-Y-IdhYKN7xBVf7UqKwKKqx5hsaNB1Hgs8paQ6NZX-2LTXl2yq6jeujedKQfIK7m5xz4whcr_qKwF/s1600/2017-11-07_231643.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;609&quot; data-original-width=&quot;1064&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEVqME7luXB3KLXT-45CnwB6b_hzb6ZWNobVzLaWMuHCnU_KT2cCeG1xCHJgouKfr-Y-IdhYKN7xBVf7UqKwKKqx5hsaNB1Hgs8paQ6NZX-2LTXl2yq6jeujedKQfIK7m5xz4whcr_qKwF/s640/2017-11-07_231643.jpg&quot; width=&quot;640&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;
2. 在合作夥伴網站上，更新自己的連絡資訊，此時很重要喔，就是電子郵件的欄位，這個欄位的用意呢，不是聯絡用途，而是決定往後存取&lt;b&gt;微軟合作夥伴資源的帳號！&lt;/b&gt;&lt;b&gt;微軟合作夥伴資源的帳號！&lt;/b&gt;&lt;b&gt;微軟合作夥伴資源的帳號！(很重要所以說三次)&lt;/b&gt;&lt;br /&gt;
為什麼欣爺如此強調呢？這邊的邏輯一直是個謎，理論上既然是用 Microsoft 帳戶和公司做關聯，那麼我們會直覺地認為是用Microsoft帳戶去存取 Azure 對吧？錯!!!&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2bbQu-WNC6DFf1FohusWaftv8ysAOmOZq38cQyk08H1Uq0A7NWH1QnL9IMdc7ZAjr2Pty2N1U-VjM3WO2l1SYJmOKTei-su8qpSBm-87c_LW4zjahHzzx9lraAxkn9oAMxLxUCWkElnXY/s1600/2017-11-07_232318.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;527&quot; data-original-width=&quot;838&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2bbQu-WNC6DFf1FohusWaftv8ysAOmOZq38cQyk08H1Uq0A7NWH1QnL9IMdc7ZAjr2Pty2N1U-VjM3WO2l1SYJmOKTei-su8qpSBm-87c_LW4zjahHzzx9lraAxkn9oAMxLxUCWkElnXY/s400/2017-11-07_232318.jpg&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;
所以假設你想用Microsoft帳戶登入Azure, 這欄位&lt;span style=&quot;text-align: left;&quot;&gt;就輸入 Microsoft帳戶的Email吧！&lt;/span&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;
3. 接下來，還是要請管理員指派 Visual Studio 訂閱給你，在合作夥伴網站中管理人員關聯畫面中，在&lt;b&gt;權限&lt;/b&gt;項目中的點選&lt;b&gt;MSDN訂閱 &lt;/b&gt;(是的...還是舊名稱沒有改)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNZg7_-mraQ0JWfd_wYv_xVbQetx7BtG2njdJRjhNrPp7Xdt_56pgWIDAENugYGr7Kh7ivF7XJA7RC_nWuBsaJpfQN1hZXZHF9dbbVDXMhmosAyWUsDg5s6Nw11wpcyZIu_3zj8lWl7_ci/s1600/2017-11-07_233527.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;215&quot; data-original-width=&quot;1069&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNZg7_-mraQ0JWfd_wYv_xVbQetx7BtG2njdJRjhNrPp7Xdt_56pgWIDAENugYGr7Kh7ivF7XJA7RC_nWuBsaJpfQN1hZXZHF9dbbVDXMhmosAyWUsDg5s6Nw11wpcyZIu_3zj8lWl7_ci/s640/2017-11-07_233527.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4. 出現的表格中，找到你的關聯 Microsoft 帳戶，確認 Enterprise 欄位有打勾&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb6CawASsLG8tBR09nf3RqoltrGhqDM-NfsVl1VH7s3gabRUhsrRrq_82HzLqO2fWygI6UGG5_2pqweIVpSX2owsLAS7Hn4dPCAIwp0cIHbgfCNqjJc21Q8fqZB2vg4HyKG3m1OOcVq4mm/s1600/2017-11-07_233557.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;142&quot; data-original-width=&quot;1531&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb6CawASsLG8tBR09nf3RqoltrGhqDM-NfsVl1VH7s3gabRUhsrRrq_82HzLqO2fWygI6UGG5_2pqweIVpSX2owsLAS7Hn4dPCAIwp0cIHbgfCNqjJc21Q8fqZB2vg4HyKG3m1OOcVq4mm/s640/2017-11-07_233557.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5. 這樣指派 Visual Studio 訂閱的動作就完成了，預設您的 Microsoft 帳戶生效需要等待24小時，隔天上班，就用第 2 步驟登記的 Email 登入My Visual Studio 網站&lt;a href=&quot;http://my.visualstudio.com/&quot; target=&quot;_blank&quot;&gt;my.visualstudio.com&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
出現下列圖示就代表你已經得到了 Visual Studio 訂閱啦！(如果跟下圖不一樣怎麼辦？所以要跟管理員打好關係很重要，之前的動作再確認一次，或者找微軟客服幫忙確認吧！)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW5uTgoWF75pFrJ4BiXcxWftZem0cpSYFK5bcALqqv38A5BNjfk4RaNjQ6UTEnwSP6zmU-hi4CojrUJkorwmtNyorepMuUN-fiw2Psz2AL-TIsv_gcpiRJkVhKqjX1t6Xu6OTCs3OJ4fQU/s1600/2017-11-07_234533.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;402&quot; data-original-width=&quot;908&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW5uTgoWF75pFrJ4BiXcxWftZem0cpSYFK5bcALqqv38A5BNjfk4RaNjQ6UTEnwSP6zmU-hi4CojrUJkorwmtNyorepMuUN-fiw2Psz2AL-TIsv_gcpiRJkVhKqjX1t6Xu6OTCs3OJ4fQU/s640/2017-11-07_234533.jpg&quot; width=&quot;640&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;
6. 接下來重頭戲，啟用 Azure！網頁下方很容易可以找到，那個啟用就給他大力按下去&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY8yvApNe-6uhvVgYFClSf5sv1SUAUs_OG4fpS7eyys4jlhtrVlojTvAeomto1SuNLM4wWvRasU4YdGwTlx9_nQ6zLvLeGnrE5g9ba_w0QAysh98jZad1bOINZ8qJzDxCEuA3RUQFzMWPH/s1600/2017-11-07_234554.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;465&quot; data-original-width=&quot;918&quot; height=&quot;323&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY8yvApNe-6uhvVgYFClSf5sv1SUAUs_OG4fpS7eyys4jlhtrVlojTvAeomto1SuNLM4wWvRasU4YdGwTlx9_nQ6zLvLeGnrE5g9ba_w0QAysh98jZad1bOINZ8qJzDxCEuA3RUQFzMWPH/s640/2017-11-07_234554.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
7. 接下來會導到 Azure 網站註冊畫面，簡單輸入自己的姓名資訊，經過手機號碼驗證，很快就可以完成註冊，進入 Azure 儀錶板了，註冊過程我就懶得抓圖了，整個完成建立 Azure 環境大約需要十~十五分鐘左右，您可以進入Azure儀表板中看看訂閱帳戶已經顯示為 Visual Studio Enterprise (MPN)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2T7s7p-3GbiFElIs7DtXVLhpy2A7zlbStukA8zzF-J483XcRpNHPxjdortobE8C_bwhPnksv-P-OCM1esxpkZZCbE8IbWLQg3i2yk7C1wm-jmJB1CtE0qKQWXPN79KP3u0La8UgGIvGxB/s1600/2017-11-07_234916.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;755&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2T7s7p-3GbiFElIs7DtXVLhpy2A7zlbStukA8zzF-J483XcRpNHPxjdortobE8C_bwhPnksv-P-OCM1esxpkZZCbE8IbWLQg3i2yk7C1wm-jmJB1CtE0qKQWXPN79KP3u0La8UgGIvGxB/s640/2017-11-07_234916.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
8. 出現對話視窗告知錢已經入帳囉~打完收工！ 接下來，固定每個月有 NT$4,600可以花囉！&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgROicpJZUvXetjkG52rvUY9ROHg9PY19VyNMpWmAD_PiGfPZciBHPa0V-oSZnpNE8z_cPXfm6LKtW5NZkRIWd205Md2ctxI-LmGaiiMxsvz-9tE1y0UqUGzeSSPfYk9kobn6JBmdQOEnh-/s1600/2017-11-07_234758.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;374&quot; data-original-width=&quot;859&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgROicpJZUvXetjkG52rvUY9ROHg9PY19VyNMpWmAD_PiGfPZciBHPa0V-oSZnpNE8z_cPXfm6LKtW5NZkRIWd205Md2ctxI-LmGaiiMxsvz-9tE1y0UqUGzeSSPfYk9kobn6JBmdQOEnh-/s640/2017-11-07_234758.jpg&quot; width=&quot;640&quot; /&gt;&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;
9. 那麼這個錢甚麼時候入帳呢？就是每個月的今天，例如今天是11/8，那麼往後每個月的8日就是入帳日，前一天就是結帳日，在 Azure 上的消費就會在當天扣款，隨時都可以在Azure儀錶板上了解消費的明細：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho7pvdUvMu9mztaKVRlRy73bDUsvveffGyocR0bHEVLbtGBzjcpeJpIafLxoCFhT5xt7K4S8_KGUr9A_xOFZTD9drHn4PF9riHuuODntd_RcLb1vxDaEn673x8Lbk40dvqzzG0FBFpjhTb/s1600/2017-11-08_000555.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;740&quot; data-original-width=&quot;1600&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho7pvdUvMu9mztaKVRlRy73bDUsvveffGyocR0bHEVLbtGBzjcpeJpIafLxoCFhT5xt7K4S8_KGUr9A_xOFZTD9drHn4PF9riHuuODntd_RcLb1vxDaEn673x8Lbk40dvqzzG0FBFpjhTb/s640/2017-11-08_000555.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&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;
&lt;br /&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;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&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;b&gt;&lt;br /&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/4707101862339520423/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/4707101862339520423' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4707101862339520423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4707101862339520423'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/11/visual-studio-azure-nt4600.html' title='如何取得 Visual Studio 訂閱的 Azure 每月 NT$4,600 免費額度？'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEgQ3yXjACqWoCnKr6yW4sTB__nNR_hUjEgPrtT0XFdA4M3mFiD2s19itpgsstvDDq8Xk5St-2NMyGAkFrlcfdHWlcahetdybBVPkOuRVR3dR2p4m0ejEiSvdK7KtTKpESbZsXCC-JHAN36f/s72-c/messageImage_1509611451893.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-2578824949802777307</id><published>2017-11-06T23:49:00.001+08:00</published><updated>2019-01-26T11:45:53.243+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="微軟相關-System Center-SCCM"/><title type='text'>SCCM 建立特定 AD 網域的 OU 或者特定網段裝置集合方式</title><content type='html'>分享一下 SCCM 實際管理技巧，SCCM安裝完成之後，透過Discovery會在預設的集合&amp;lt;所有電腦&amp;gt;中找到環境內所有的機器，從管理面向來說是不太方便的，尤其是在環境大一點的企業，上百台的個人電腦環境是很常見的，在茫茫的電腦清單中找到要管理的電腦，真的是很傷眼，如果可以依造AD的OU或者特定網段來分類電腦，這樣不是很方便嗎？&lt;br /&gt;
&lt;br /&gt;
在此分享如何自訂集合的方法，方便各位SCCM管理者更方便的使用SCCM這套強大的系統：&lt;br /&gt;
&lt;br /&gt;
補充：如何安裝SCCM，各位可以參考這位高手的文章：&lt;a href=&quot;https://satosi0209.wordpress.com/2013/08/06/%E7%B0%A1%E8%BF%B0-sccm-2012-sp1-%E5%AE%89%E8%A3%9D/&quot; target=&quot;_blank&quot;&gt;東尼小子IT筆記&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
通常AD管理者，大部分會用企業部門來設計OU，因此接下來的例子，我會利用AD裡的特定OU，來建立集合：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. 首先，請如下圖操作，建立一個新的集合：&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-h-7OwjrUXYni-t8aAAvNti7whKHQ8SOsI2WoGVstnzDfZsNVHx2tMkKoYqPFog71YUtT_J_DAN-ty62SVRX1ZwxSmvHIMkCTnUe2VCIdCPyAJ8yi_yAlJDAFR1BFJVJjxQppMp2pKG68/s1600/000.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;440&quot; data-original-width=&quot;522&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-h-7OwjrUXYni-t8aAAvNti7whKHQ8SOsI2WoGVstnzDfZsNVHx2tMkKoYqPFog71YUtT_J_DAN-ty62SVRX1ZwxSmvHIMkCTnUe2VCIdCPyAJ8yi_yAlJDAFR1BFJVJjxQppMp2pKG68/s400/000.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 在出現的建立裝置集合精靈畫面，輸入&lt;b&gt;名稱&lt;/b&gt;和&lt;b&gt;註解(看你啦...)&lt;/b&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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVj7EdRg_OhAxkLAavF89tao9sR0ltWk4slYeqFV_aUHaoR-ouR7chfrWTkfUSPjmX4xt7NG6Jdkvb5-X_rHAp02vcdQzz9fUy8LSFhCj4Jm29iJ-NT2V5svX-F7U3ocmqpaHJgx_kgxNj/s1600/001.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;731&quot; data-original-width=&quot;711&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVj7EdRg_OhAxkLAavF89tao9sR0ltWk4slYeqFV_aUHaoR-ouR7chfrWTkfUSPjmX4xt7NG6Jdkvb5-X_rHAp02vcdQzz9fUy8LSFhCj4Jm29iJ-NT2V5svX-F7U3ocmqpaHJgx_kgxNj/s400/001.jpg&quot; width=&quot;388&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;
3. 如下圖中，選擇&lt;b&gt;新增規則&lt;/b&gt;下拉選單中的&lt;b&gt;查詢規則&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4JlFSbrIlI6Rx8cPwelcFwcUsiHTKOrwwTLQ_Drx45vkzo-LRmzkiGHiKb7TP2r-y-1bIo1oC0BluXRqwstKr7CxneROOrlRj5lBuD6AK-iJ1EHFNFwbvVvS9fxZ6mGvQ2BKN9aqtQJD5/s1600/002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;731&quot; data-original-width=&quot;710&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4JlFSbrIlI6Rx8cPwelcFwcUsiHTKOrwwTLQ_Drx45vkzo-LRmzkiGHiKb7TP2r-y-1bIo1oC0BluXRqwstKr7CxneROOrlRj5lBuD6AK-iJ1EHFNFwbvVvS9fxZ6mGvQ2BKN9aqtQJD5/s400/002.jpg&quot; width=&quot;386&quot; /&gt;&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;
4. 出現&lt;b&gt;查詢規則&lt;/b&gt;內容視窗，點選&lt;b&gt;編輯查詢陳述式&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUaUCOLODJ8P8CluuQwLF9l2jv0En_RYnuKS6NHP3U4qFUmAl4olDmuwJ3T3oaxDZzhRMneFPSnGhdNuwpS5OnpEjKN16QIBrnuFd3heCDpqdo6Vzp-pB-ooSdoPPu_ASz8BNKhXcUs2EI/s1600/003.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;562&quot; data-original-width=&quot;416&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUaUCOLODJ8P8CluuQwLF9l2jv0En_RYnuKS6NHP3U4qFUmAl4olDmuwJ3T3oaxDZzhRMneFPSnGhdNuwpS5OnpEjKN16QIBrnuFd3heCDpqdo6Vzp-pB-ooSdoPPu_ASz8BNKhXcUs2EI/s640/003.jpg&quot; width=&quot;472&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;
5. 點選&lt;b&gt;準則&lt;/b&gt;，下方&lt;b&gt;黃色的亮晶晶(?)&lt;/b&gt;圖示點下去&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5kNabkvc1yedFv-ZEnaEJR-UK38Hy4tsvtByHZ8NWTGI2brJIOWl3soQOrI79D1Av4JIw-37n9X-HvVgotWyCu9b5tQKvXMrZ0ZXXpjjRVc2MpQ1WYfnX8UaL30Pj6EP5_lALZeE3hVSQ/s1600/004.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;559&quot; data-original-width=&quot;411&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5kNabkvc1yedFv-ZEnaEJR-UK38Hy4tsvtByHZ8NWTGI2brJIOWl3soQOrI79D1Av4JIw-37n9X-HvVgotWyCu9b5tQKvXMrZ0ZXXpjjRVc2MpQ1WYfnX8UaL30Pj6EP5_lALZeE3hVSQ/s640/004.jpg&quot; width=&quot;468&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;
6. 出現的&lt;b&gt;準則內容&lt;/b&gt;視窗，有幾點說明如下：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwQNBVQ9ezAlc8jmC4Lbs6deNMLDUxCQxMQm3QFdFYPHeGhaSNJI_1EMMr9XkK82liJjd5BhCBP_Jsy2hXJKl0cWfhhpAloT40eztqw63ucrHf3BeNabzqrkFJEB46V4dFwntG9ZsQG5cC/s1600/005.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;565&quot; data-original-width=&quot;411&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwQNBVQ9ezAlc8jmC4Lbs6deNMLDUxCQxMQm3QFdFYPHeGhaSNJI_1EMMr9XkK82liJjd5BhCBP_Jsy2hXJKl0cWfhhpAloT40eztqw63ucrHf3BeNabzqrkFJEB46V4dFwntG9ZsQG5cC/s640/005.jpg&quot; width=&quot;464&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;準則類型&lt;/b&gt;：這個例子是很明確的OU名稱，類型選擇&lt;b&gt;簡單值&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;位置&lt;/b&gt;：看到中間的&lt;b&gt;選取&lt;/b&gt;按鈕嗎？沒錯就是從裡面挑選吧，選擇&lt;b&gt;系統資源 - 系統 OU 名稱&lt;/b&gt;&lt;/li&gt;
像這樣：&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWkciASyuc9JVlf1dZWYD1ugAaGmH3BnCYNRmczAfkzBhZ8TsTcdmu1gKqc7W5xI13YhrbDEl9TMs7BxOKVmaWKulI5WzMKzA5ulQ_xYC2t1Pt8DkQ08gLvaTck7OgZq0C3Zq_ocAwGDic/s1600/006.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;289&quot; data-original-width=&quot;389&quot; height=&quot;296&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWkciASyuc9JVlf1dZWYD1ugAaGmH3BnCYNRmczAfkzBhZ8TsTcdmu1gKqc7W5xI13YhrbDEl9TMs7BxOKVmaWKulI5WzMKzA5ulQ_xYC2t1Pt8DkQ08gLvaTck7OgZq0C3Zq_ocAwGDic/s400/006.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;運算子：&lt;/b&gt;選擇&lt;b&gt;等於&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;類型：&lt;/b&gt;有看到&lt;b&gt;值&lt;/b&gt;這個按鈕嗎？點進去選擇找到你要建立的OU吧&lt;/li&gt;
&lt;/ul&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;
7.&amp;nbsp; 這些設定就緒之後呢，就像下圖這樣，按下&lt;b&gt;確定&lt;/b&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: 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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXbBkGtvgqCz3ofaY-cVtM44fevV-yaU6j2K2X_rxitIuF7XPfdIMFcNalxZFJ_Sd6OfdSychEx_6w71xOVuyJtGPAy6Vd8tj3XKO72EqqR6c1BuTKXsmiuqxYfyFikravcVkJ3H98G3G/s1600/007.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;562&quot; data-original-width=&quot;408&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXbBkGtvgqCz3ofaY-cVtM44fevV-yaU6j2K2X_rxitIuF7XPfdIMFcNalxZFJ_Sd6OfdSychEx_6w71xOVuyJtGPAy6Vd8tj3XKO72EqqR6c1BuTKXsmiuqxYfyFikravcVkJ3H98G3G/s640/007.jpg&quot; width=&quot;464&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;
8. 這會就回到第5步驟&lt;b&gt;查詢陳述式內容&lt;/b&gt;視窗了，就可以看到剛剛建立的查詢式了，按下確定冠必視窗，回到&lt;b&gt;建立裝置集合精靈&lt;/b&gt;畫面之後，在按&lt;b&gt;下一步&lt;/b&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: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivi5F7BlZDL2-rE9CcEZi96aa9TZdWoBFCsISKvXz2PmowAhCtd9xHo82i_itYrKOKkJLdiUJF84slLPt8n6pGvfYPXNpksF9T8ZTaVSaDDuIDN4hThicCOSfFz16yua3sQWVnd2M9HAYj/s1600/008.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;726&quot; data-original-width=&quot;708&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivi5F7BlZDL2-rE9CcEZi96aa9TZdWoBFCsISKvXz2PmowAhCtd9xHo82i_itYrKOKkJLdiUJF84slLPt8n6pGvfYPXNpksF9T8ZTaVSaDDuIDN4hThicCOSfFz16yua3sQWVnd2M9HAYj/s400/008.jpg&quot; width=&quot;390&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;
9. 按下&lt;b&gt;關閉&lt;/b&gt;紐，打完收工&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGGdETjLwBVJscwRLL3RmU6C1yhTa3zubyBgrTQdnTWE6tP-S6J5ASsRYYPosbg7eOuekvPLfHlcp_CcjvDysZVKLdGrCoLdnvxI8FQGIiiUNFXduuyH0xk7xpm43PXmorTEhCzlR0sZ6Q/s1600/009.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;730&quot; data-original-width=&quot;709&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGGdETjLwBVJscwRLL3RmU6C1yhTa3zubyBgrTQdnTWE6tP-S6J5ASsRYYPosbg7eOuekvPLfHlcp_CcjvDysZVKLdGrCoLdnvxI8FQGIiiUNFXduuyH0xk7xpm43PXmorTEhCzlR0sZ6Q/s400/009.jpg&quot; width=&quot;387&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;
10. 新建立的集合剛開始當然是空的，給它一點時間，就會把這個OU內的電腦都整理進來囉！&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;
同理，我們也可以使用查詢陳述式的功能，另外建立一個特定網段的OU，就像這樣，各位可以參考上述的步驟另外建立一個特定網段的裝置集合：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqPidRt4-sSjNMy5fCkoWiK2Tzkp2yzmqLB8yUJNn4AaJiEuaqZ4clzxYb2bukZLzq6Iwoi0I8ItHmtVJXQFh2grFnjdh9FAhF6DzJfMaWW7PLGjWMkUjzWAYT-TJXyUD0bBUsl31vCl73/s1600/010.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;562&quot; data-original-width=&quot;415&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqPidRt4-sSjNMy5fCkoWiK2Tzkp2yzmqLB8yUJNn4AaJiEuaqZ4clzxYb2bukZLzq6Iwoi0I8ItHmtVJXQFh2grFnjdh9FAhF6DzJfMaWW7PLGjWMkUjzWAYT-TJXyUD0bBUsl31vCl73/s640/010.jpg&quot; width=&quot;472&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: center;&quot;&gt;
有研究精神的人，想了解一下陳述式內容，只要在&lt;b&gt;查詢陳述式內容&lt;/b&gt;視窗中，點選在中間清單中剛剛建立好的陳述式之後，再點選最下方的&lt;b&gt;顯示查詢語言&lt;/b&gt;，如下圖&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidzeiejTRDCmU7BEV556qZWgOLgJFBb9VtNE9Hi6fEvInonOj9oLzE0r8qs-cpcFN8YgTj4faRErjFzLs7pRGmk48zkfr1VZZARrhEsI0446sCT9UOEjWZEGRDR4SOFCtZrUDpo_QCMupb/s1600/011.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;559&quot; data-original-width=&quot;413&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidzeiejTRDCmU7BEV556qZWgOLgJFBb9VtNE9Hi6fEvInonOj9oLzE0r8qs-cpcFN8YgTj4faRErjFzLs7pRGmk48zkfr1VZZARrhEsI0446sCT9UOEjWZEGRDR4SOFCtZrUDpo_QCMupb/s640/011.jpg&quot; width=&quot;470&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: center;&quot;&gt;
可以參考官方網站的查詢式說明：&lt;a href=&quot;https://docs.microsoft.com/zh-tw/sccm/core/servers/manage/create-queries#BKMK_Example&quot; target=&quot;_blank&quot;&gt;https://docs.microsoft.com/zh-tw/sccm/core/servers/manage/create-queries#BKMK_Example&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: center;&quot;&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: 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;br /&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: 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;br /&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/2578824949802777307/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/2578824949802777307' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/2578824949802777307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/2578824949802777307'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/11/sccm-ad-ou.html' title='SCCM 建立特定 AD 網域的 OU 或者特定網段裝置集合方式'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEh-h-7OwjrUXYni-t8aAAvNti7whKHQ8SOsI2WoGVstnzDfZsNVHx2tMkKoYqPFog71YUtT_J_DAN-ty62SVRX1ZwxSmvHIMkCTnUe2VCIdCPyAJ8yi_yAlJDAFR1BFJVJjxQppMp2pKG68/s72-c/000.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-358449033332833655</id><published>2017-11-05T23:19:00.000+08:00</published><updated>2017-11-05T23:20:18.853+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發-Blogger"/><title type='text'>如何在 Blogger 顯示樹狀式文章分類？</title><content type='html'>Blogger 預設文章分類，就是靠標籤，每篇文章標註標籤，達到文章分類目的。&lt;br /&gt;
但是文章數量一多，種類分類也越多，這樣標籤頂多只有一層分類，顯然是不夠用了。&lt;br /&gt;
&lt;br /&gt;
欣爺此時看到這一篇：&lt;br /&gt;
&lt;a href=&quot;http://www.wfublog.com/2016/05/blogger-tree-label-v2.html&quot;&gt;Blogger 文章分類﹍樹狀標籤 V2.0 -- 安裝懶人包&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
有高手自行開發程式並且分享程式碼，讓各位修改自己的Blogger顯示版面，呈現出樹狀結透的文章分類，基本上也是利用Blogger本身標籤的方式，只是透過程式再次分類。&lt;br /&gt;
&lt;br /&gt;
如何修改方式，就請自行參考這位高手的文章囉~&lt;br /&gt;
PS: 補充一點，文章中的修改HTML教學，實際上Blogger的HTML程式碼修改位置已經變動了，如下圖：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSWxCge8kz-g4NZGTxQpxV_yMLKUSQwLr4bTrCU3xsT8-YSG-f6tBScYeJuc2MlHddbeuCPg2J3p5eCVwwbz8ly0Zw-q1UTHrySZ89aOVkAG3-5DL_mkDQiQpK4kIUv5LwkAVX05d_P5Ub/s1600/2017-11-05_231714.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;704&quot; data-original-width=&quot;938&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSWxCge8kz-g4NZGTxQpxV_yMLKUSQwLr4bTrCU3xsT8-YSG-f6tBScYeJuc2MlHddbeuCPg2J3p5eCVwwbz8ly0Zw-q1UTHrySZ89aOVkAG3-5DL_mkDQiQpK4kIUv5LwkAVX05d_P5Ub/s400/2017-11-05_231714.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/358449033332833655/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/358449033332833655' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/358449033332833655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/358449033332833655'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/11/blogger.html' title='如何在 Blogger 顯示樹狀式文章分類？'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEgSWxCge8kz-g4NZGTxQpxV_yMLKUSQwLr4bTrCU3xsT8-YSG-f6tBScYeJuc2MlHddbeuCPg2J3p5eCVwwbz8ly0Zw-q1UTHrySZ89aOVkAG3-5DL_mkDQiQpK4kIUv5LwkAVX05d_P5Ub/s72-c/2017-11-05_231714.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-222447461188862566</id><published>2017-06-04T22:06:00.000+08:00</published><updated>2017-11-05T22:40:18.646+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-高爾夫球"/><title type='text'>清邁高爾夫球之旅</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/grf9rB7mOPM/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;350&quot; src=&quot;https://www.youtube.com/embed/grf9rB7mOPM?feature=player_embedded&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
上一次去清邁差不多七八年前了吧，距離上一次下場打球也五年前的事了..&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
老哥也很夭壽骨，我一下飛機，就馬上去打一場18洞...&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
當然差點貢獻了不少滷蛋給球場了。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
剪輯影片的好處，就是不用文章寫得落落長~哈！&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/222447461188862566/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/222447461188862566' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/222447461188862566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/222447461188862566'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/06/blog-post.html' title='清邁高爾夫球之旅'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/grf9rB7mOPM/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-300873657639812384</id><published>2017-05-22T22:04:00.000+08:00</published><updated>2017-11-05T22:40:40.111+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-高爾夫球"/><title type='text'>出發清邁前的惡補</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/5fsUcHqhu2w/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;350&quot; src=&quot;https://www.youtube.com/embed/5fsUcHqhu2w?feature=player_embedded&quot; width=&quot;480&quot;&gt;&lt;/iframe&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: center;&quot;&gt;
因為衝浪關係買了GoPro，發現應用方式拿來拍自己揮桿姿勢還不錯呢！&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
即將出發清邁狂打小白球，趕快惡補一下..&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/300873657639812384/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/300873657639812384' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/300873657639812384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/300873657639812384'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/05/blog-post.html' title='出發清邁前的惡補'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/5fsUcHqhu2w/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-5258900404868351201</id><published>2017-03-11T22:14:00.000+08:00</published><updated>2017-11-05T22:41:01.463+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-衝浪"/><title type='text'>奮戰一小時，就為了這道浪！</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/8aVMxNFVB_o/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;350&quot; src=&quot;https://www.youtube.com/embed/8aVMxNFVB_o?feature=player_embedded&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
這天福隆浪大又亂，只我和朋友兩個人下，最終靠著我的9&#39;2&quot;板長優勢，順利滑出OutSite，&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
朋友始終出不去也放棄岸上看我表演...&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
但是浪型很難挑，只下兩道浪而已...&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
不過最後一道Size真不小！&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
很難得啦，不囉嗦，看影片！&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/5258900404868351201/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/5258900404868351201' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/5258900404868351201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/5258900404868351201'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/03/blog-post.html' title='奮戰一小時，就為了這道浪！'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/8aVMxNFVB_o/default.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>228台灣新北市貢寮區福隆海水浴場</georss:featurename><georss:point>25.0219984 121.94315830000005</georss:point><georss:box>24.9932239 121.90281780000005 25.050772900000002 121.98349880000005</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-4394811986695609799</id><published>2017-02-18T22:17:00.000+08:00</published><updated>2017-11-05T22:41:14.631+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-衝浪"/><title type='text'>北台灣受到鋒面奇襲時，衝浪何處去？</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/G30fWfhN3w0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;350&quot; src=&quot;https://www.youtube.com/embed/G30fWfhN3w0?feature=player_embedded&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
台灣冬天鋒面通常北台灣風大，生活在北台灣的浪人，此時衝浪的後花園只剩烏石港南堤了&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
比較可以閃風，當然人也不少~&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/4394811986695609799/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/4394811986695609799' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4394811986695609799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4394811986695609799'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/02/blog-post.html' title='北台灣受到鋒面奇襲時，衝浪何處去？'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/G30fWfhN3w0/default.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>261台灣宜蘭縣頭城鎮港口路15-7號</georss:featurename><georss:point>24.864364897839909 121.83773214550774</georss:point><georss:box>24.849957897839911 121.81756214550775 24.878771897839908 121.85790214550774</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-5217425764271757505</id><published>2017-01-01T22:20:00.000+08:00</published><updated>2017-11-05T22:41:28.293+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-衝浪"/><title type='text'>2017 新年快樂！</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/GMYwUwvHeH0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;350&quot; src=&quot;https://www.youtube.com/embed/GMYwUwvHeH0?feature=player_embedded&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
近年的習慣，就是在新年的第一天衝浪！&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Happy New Year 2017!!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/5217425764271757505/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/5217425764271757505' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/5217425764271757505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/5217425764271757505'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2017/01/2017.html' title='2017 新年快樂！'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/GMYwUwvHeH0/default.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>207台灣新北市萬里區消波堤</georss:featurename><georss:point>25.20985439811496 121.66169105624999</georss:point><georss:box>25.09490689811496 121.50032955625 25.324801898114959 121.82305255624999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-8876996773907987060</id><published>2013-12-21T19:21:00.000+08:00</published><updated>2017-11-05T22:50:25.990+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="蘋果-MAC OS-APP分享"/><title type='text'>如何讓 iPhone、iPad 使用不支援 AirPrint 的印表機列印？</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
簡易步驟：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. 下載並安裝 handyprint 軟體&lt;br /&gt;
下載：&lt;a href=&quot;http://www.netputing.com/applications/handyprint-v5&quot;&gt;http://www.netputing.com/applications/handyprint-v5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. 印表機要設定共享&lt;br /&gt;
&lt;br /&gt;
3. 開啟 Handyprint 開關設定, iPad or iPhone 就可以列印了&lt;br /&gt;
&lt;br /&gt;
詳細安裝操作，請參考下篇文章，來自＊&lt;br /&gt;
&lt;a href=&quot;http://rancilio2000.blogspot.tw/2013/05/airprint-handy-print-airprint-activator.html#.UrV13nmi5t5&quot;&gt;YY部落: airprint 安裝：handy print (原來叫 airprint activator）&lt;/a&gt;&lt;br /&gt;
&lt;div id=&quot;wrchoverdiv&quot; style=&quot;display: none;&quot;&gt;
&lt;div id=&quot;wrccontainer&quot;&gt;
&lt;div id=&quot;wrcheader&quot;&gt;
&lt;div id=&quot;wrctitle&quot;&gt;
WebRep&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;wrchorizontal&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;wrccurrentvote&quot;&gt;
currentVote&lt;/div&gt;
&lt;div class=&quot;wrchorizontal&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;wrcrating&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;wrcratingtext&quot;&gt;
noRating&lt;/div&gt;
&lt;div id=&quot;wrcweighttext&quot;&gt;
noWeight&lt;/div&gt;
&lt;div id=&quot;wrcflags&quot;&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_shopping&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_social&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_news&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_it&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_corporate&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_pornography&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_violence&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_gambling&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_drugs&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;wrcicon&quot; id=&quot;wrcicon_illegal&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;wrchorizontal&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/8876996773907987060/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/8876996773907987060' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/8876996773907987060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/8876996773907987060'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2013/12/iphoneipad-airprint.html' title='如何讓 iPhone、iPad 使用不支援 AirPrint 的印表機列印？'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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-1306152811995014736.post-8675578446557566825</id><published>2013-08-23T09:56:00.002+08:00</published><updated>2017-11-05T22:50:57.939+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="蘋果-MAC OS-小技巧"/><title type='text'>MAC OS 回到應用程式視窗最上方快速鍵</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL-Og4MRJWXLP6UT31H26GyELrpOPVRBfhAYFrFowczeI91wq_wwopX7XwxmF2u1LHd-SpKHoiTUWevZR8_QpkhfOKrhp7D12jlOpSCYZzcO8ZsPntz6nwMWBlG-7praDy-6GoXU6eaPmJ/s1600/silver-apple-logo-apple-picture.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL-Og4MRJWXLP6UT31H26GyELrpOPVRBfhAYFrFowczeI91wq_wwopX7XwxmF2u1LHd-SpKHoiTUWevZR8_QpkhfOKrhp7D12jlOpSCYZzcO8ZsPntz6nwMWBlG-7praDy-6GoXU6eaPmJ/s200/silver-apple-logo-apple-picture.jpg&quot; width=&quot;171&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
當在使用任何應用程式，例如：Safari 瀏覽網頁，&lt;br /&gt;
當畫面一直往下卷，想要回到網頁最上面，除了慢慢地卷上去外，&lt;br /&gt;
&lt;br /&gt;
對啦，使用快速鍵啦...&lt;br /&gt;
&lt;br /&gt;
iOS 的話：就是摸一下最上方的系統 Bar&lt;br /&gt;
&lt;br /&gt;
Mac OS 的話：就是 command + ↑或者是&amp;nbsp;fn&amp;nbsp;+ ←&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
反過來，最下方就是換成 command + ↓或者是&amp;nbsp;fn&amp;nbsp;+ →&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
另外補充：若是在打字的時候，command +&amp;nbsp;← 或者 fn&amp;nbsp;+&amp;nbsp;←&amp;nbsp;就像是 Home 鍵一樣，會到左邊第一個字，反之 command +&amp;nbsp;→ 或者 fn + →，就是跳到右邊最後一個字。</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/8675578446557566825/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/8675578446557566825' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/8675578446557566825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/8675578446557566825'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2013/08/mac-os.html' title='MAC OS 回到應用程式視窗最上方快速鍵'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEhL-Og4MRJWXLP6UT31H26GyELrpOPVRBfhAYFrFowczeI91wq_wwopX7XwxmF2u1LHd-SpKHoiTUWevZR8_QpkhfOKrhp7D12jlOpSCYZzcO8ZsPntz6nwMWBlG-7praDy-6GoXU6eaPmJ/s72-c/silver-apple-logo-apple-picture.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-36548491999515030</id><published>2013-08-07T23:49:00.004+08:00</published><updated>2017-11-05T22:51:23.159+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="蘋果-MAC OS-APP分享"/><title type='text'>MAC OS X 外接式硬碟無法寫入檔案解決方法</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8FEF9amjlAvo2bL6F-w0QOIBueMQBtaHGmIA3iqT0OKdMGxm0BgcmFznDvHcsDRRdiukzqtyDhdhA7bcFlnsOoOSTriaYy4KgZ5J0wFsgpX_KLvnRE-jLDTTaO7LIN9UgDHBPzy3UUg/s1600/silver-apple-logo-apple-picture.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8FEF9amjlAvo2bL6F-w0QOIBueMQBtaHGmIA3iqT0OKdMGxm0BgcmFznDvHcsDRRdiukzqtyDhdhA7bcFlnsOoOSTriaYy4KgZ5J0wFsgpX_KLvnRE-jLDTTaO7LIN9UgDHBPzy3UUg/s200/silver-apple-logo-apple-picture.jpg&quot; width=&quot;170&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
為了學習開發 iOS APP，買了 MAC Mini 回家玩，&lt;br /&gt;
用了近兩個月後，發現很多 Windows 可以跑的軟體，MAC OS 也沒有問題！&lt;br /&gt;
&lt;br /&gt;
因此，PC也跟的兩個月沒開過機了。&lt;br /&gt;
&lt;br /&gt;
唯一比較困擾的一點，&lt;br /&gt;
就是外接式硬碟，沒辦法寫入檔案的問題。&lt;br /&gt;
當下Google了許多方法，&lt;br /&gt;
我覺得最有效率的就是 Fuse&amp;nbsp;+ NTFS 3G的方案了，&lt;br /&gt;
這個方案不需要在寫入檔案時額外執行軟體，&lt;br /&gt;
只要安裝了，就可以直接寫入檔案不需要做任何動作。&lt;br /&gt;
&lt;br /&gt;
唯一的缺點，就是寫入速度稍微慢一點（個人是感覺沒差啦）&lt;br /&gt;
&lt;br /&gt;
詳細地ＳＯＰ我是引用“玩物尚誌”這位前輩的文章，文章網址為：&lt;br /&gt;
&lt;a href=&quot;http://blog.lyhdev.com/2012/12/mac-os-x-ntfs-osxfuse-ntfs-3g.html&quot;&gt;http://blog.lyhdev.com/2012/12/mac-os-x-ntfs-osxfuse-ntfs-3g.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px;&quot;&gt;
以下為引用的文章內文：（以下藍色字體部分版權由“玩物尚誌”作者所有）&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;升級到 Mac OS X Mountain Lion 之後，如果要支援外接硬碟 NTFS 格式的讀寫（預設只能讀不能寫），可以依序安裝以下三套軟體（都是免費版）！&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OSXFUSE&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://osxfuse.github.com/&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://osxfuse.github.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;請注意以下的設定步驟一定要將「MacFUSE Compatibility Layer」選項打勾，否則可能會出現錯誤訊息：&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , serif; font-size: 13px; line-height: 20.799999237060547px;&quot;&gt;dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , serif; font-size: 13px; line-height: 20.799999237060547px;&quot;&gt;Reference from /usr/localbin/ntfs-3g&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;georgia&amp;quot; , serif; font-size: 13px; line-height: 20.799999237060547px;&quot;&gt;Reason: image not found&lt;/span&gt;&lt;/span&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;-webkit-box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; border: 1px solid rgb(228, 228, 228); box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; color: #666666; margin-left: auto; margin-right: auto; padding: 5px; position: relative; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1BoI-RYwlBdO0iaiP5tADPUzdlAYVVQXjFSzuMC7we4hzDQH_7cFnMTz4yiplErU63vKWudAk2eeFVAe_es_OkImu4ilwtMlZL9QNHiHwWUyT5KaXBjU_9S9nfles7FQ4ocCBDQgzG0oM/s1600/Screen+Shot+2012-12-29+at+%E4%B8%8B%E5%8D%886.15.06.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #195073; margin-left: auto; margin-right: auto; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;481&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1BoI-RYwlBdO0iaiP5tADPUzdlAYVVQXjFSzuMC7we4hzDQH_7cFnMTz4yiplErU63vKWudAk2eeFVAe_es_OkImu4ilwtMlZL9QNHiHwWUyT5KaXBjU_9S9nfles7FQ4ocCBDQgzG0oM/s640/Screen+Shot+2012-12-29+at+%E4%B8%8B%E5%8D%886.15.06.png&quot; style=&quot;-webkit-box-shadow: rgba(0, 0, 0, 0.0980392) 0px 0px 0px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; box-shadow: rgba(0, 0, 0, 0.0980392) 0px 0px 0px; padding: 0px; position: relative;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 12px;&quot;&gt;MacFUSE Compatibility Layer 一定要&quot;&lt;b&gt;打勾&lt;/b&gt;&quot;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;NTFS-3G for Mac OS X&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;a href=&quot;http://macntfs-3g.blogspot.tw/2010/10/ntfs-3g-for-mac-os-x-2010102.html&quot; rel=&quot;nofollow&quot; style=&quot;background-color: white; color: #195073; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://macntfs-3g.blogspot.tw/2010/10/ntfs-3g-for-mac-os-x-2010102.html&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 15px; line-height: 27px;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;NTFS-3G 的修正檔 fuse_wait&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://github.com/bfleischer/fuse_wait/downloads&quot; rel=&quot;nofollow&quot; style=&quot;color: #195073; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;https://github.com/bfleischer/fuse_wait/downloads&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/36548491999515030/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/36548491999515030' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/36548491999515030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/36548491999515030'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2013/08/mac-os-x.html' title='MAC OS X 外接式硬碟無法寫入檔案解決方法'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEh8FEF9amjlAvo2bL6F-w0QOIBueMQBtaHGmIA3iqT0OKdMGxm0BgcmFznDvHcsDRRdiukzqtyDhdhA7bcFlnsOoOSTriaYy4KgZ5J0wFsgpX_KLvnRE-jLDTTaO7LIN9UgDHBPzy3UUg/s72-c/silver-apple-logo-apple-picture.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-95522923357713271</id><published>2012-08-30T13:05:00.000+08:00</published><updated>2017-11-05T22:53:07.109+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發-Android"/><title type='text'>Android APP 秀出開場圖檔後自動轉載到別的Activity</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPZjIN9NAb6rEgCHIDf21A60-X2o1GSYp8P7cEzTg502XYomvMHFmQ_yRryxokLLIRoPbVMM5-ejyg32Dy0-sxSlBw89juTQl_na5f714kxoXiwVnJ8D9LHVt-vmDS9UJKoNqeq4_61J-p/s1600/android-robot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPZjIN9NAb6rEgCHIDf21A60-X2o1GSYp8P7cEzTg502XYomvMHFmQ_yRryxokLLIRoPbVMM5-ejyg32Dy0-sxSlBw89juTQl_na5f714kxoXiwVnJ8D9LHVt-vmDS9UJKoNqeq4_61J-p/s1600/android-robot.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 在開發Android APP的同時，尤其是彰顯企業形象的用途，如果在APP開啟後，先顯示企業形象的美工圖檔後，再自動啟動APP軟體，這樣的效果肯定是為APP企業行銷上是有加分作用的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 那麼首先我的作法是，先製作好美工圖檔的Layout版面，例如 main.xml，利用 ImageView 配置美工圖檔，如下圖所示：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMtjkXvMzK3HdcPPRFjQZ6xmEIY5KgzSh2hsnIjBRQXdnBg6HmjtZEIX0jVLHK-4ei4YTIx0Qtk8Z_N9k-a90oeKe_P4wf32ZJtyFqZk-9TTD4vZmEGdP9i2DcNeVz0FDRY7fRrnCCAB-D/s1600/2012-08-30_120823.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMtjkXvMzK3HdcPPRFjQZ6xmEIY5KgzSh2hsnIjBRQXdnBg6HmjtZEIX0jVLHK-4ei4YTIx0Qtk8Z_N9k-a90oeKe_P4wf32ZJtyFqZk-9TTD4vZmEGdP9i2DcNeVz0FDRY7fRrnCCAB-D/s320/2012-08-30_120823.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Layout xml 碼如下：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; android:layout_width=&quot;fill_parent&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; android:layout_height=&quot;fill_parent&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; android:orientation=&quot;vertical&quot; android:layout_gravity=&quot;center_vertical&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;RelativeLayout android:id=&quot;@+id/relativeLayout1&quot; android:layout_gravity=&quot;center&quot; android:gravity=&quot;center&quot; android:layout_height=&quot;fill_parent&quot; android:layout_width=&quot;fill_parent&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;TableLayout android:id=&quot;@+id/tableLayout1&quot; android:layout_height=&quot;fill_parent&quot; android:layout_width=&quot;fill_parent&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ImageView android:id=&quot;@+id/imageView1&quot; android:src=&quot;@drawable/logo&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot;&amp;gt;&amp;lt;/ImageView&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/TableLayout&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/RelativeLayout&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;lt;/LinearLayout&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div&gt;
接下來就是要在Java裡面控制這個Activity出現幾秒後，自動轉載到另一個目標Activity，並且強制結束目前的Activity別讓它再度出現...&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
main.java 碼如下：&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;public class main extends Activity {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; /** Called when the activity is first created. */&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; @Override&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; public void onCreate(Bundle savedInstanceState) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.onCreate(savedInstanceState);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setContentView(R.layout.main);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Handler().postDelayed(new Runnable(){ &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void run() { &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Intent i = new Intent(main.this, index.class); //設定目標要啟動的Activity&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; main.this.startActivity(i);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; main.this.finish(); //結束目前的 Activity，讓它別再出現&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }, 1000); &amp;nbsp;//設定秒數，ex:目前設定一秒&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/95522923357713271/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/95522923357713271' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/95522923357713271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/95522923357713271'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2012/08/android-app-activity.html' title='Android APP 秀出開場圖檔後自動轉載到別的Activity'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEgPZjIN9NAb6rEgCHIDf21A60-X2o1GSYp8P7cEzTg502XYomvMHFmQ_yRryxokLLIRoPbVMM5-ejyg32Dy0-sxSlBw89juTQl_na5f714kxoXiwVnJ8D9LHVt-vmDS9UJKoNqeq4_61J-p/s72-c/android-robot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-4601126968927452435</id><published>2012-06-24T17:04:00.005+08:00</published><updated>2017-11-05T22:52:44.933+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發-Android"/><title type='text'>選擇相簿裡的照片後，傳到另一個畫面</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s1600/android-robot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s200/android-robot.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 在欣爺目前希望做的功能中，其中一項是要從手機相簿中選擇一張照片，利用 setAction(Intent.ACTION_GET_CONTENT); 去做，然後在後來的 startActivityForResult 中再利用 getDataString() 取得圖片資料...&lt;br /&gt;
&lt;br /&gt;
但是，傳到另一個Activity執行一些圖片處裡的動作，因此這部分要如何做呢？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
跨 Activity，當然必須要使用到 Intent.putExtras() &amp;amp; get.Extras 這個方法了&lt;br /&gt;
傳送一些數值、或者字串的話，就是把它塞入 Bundle 裡面再塞進 Intent.putExtras....&lt;br /&gt;
但是要傳送圖片?! 該如何做？&lt;br /&gt;
&lt;br /&gt;
通常圖片顯示，是使用 Bitmap 方法，讓圖片在 ImageView上面呈現&lt;br /&gt;
但是如果要跨 Activity 將圖片傳到另一個畫面的 ImageView上面呈現!?&lt;br /&gt;
該怎麼做呢？這讓我傷腦筋了一陣子....&lt;br /&gt;
也Google了一陣子，嘗試了許多網路上蒐集的方法，但皆不盡理想&lt;br /&gt;
(PS: 其實應該是欣爺 Java 底子太差，還部會融會貫通的緣故吧...)&lt;br /&gt;
&lt;br /&gt;
後來總算想到了 URI 方法，將圖片丟到 URI ，轉成字串再傳送就好，豁然開朗啊...&lt;br /&gt;
程式碼如下：&lt;br /&gt;
首先是發送端：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;Uri uri = Uri.parse(data.getDataString&lt;span style=&quot;color: #38761d;&quot;&gt;());//將擷取的圖片資料塞入URI&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;Intent intent = new Intent(this, AnotherActivity.class); &lt;span style=&quot;color: #38761d;&quot;&gt;//指定目的端的Activity&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;intent.putExtras(&quot;&lt;span style=&quot;color: blue;&quot;&gt;URI&lt;/span&gt;&quot;, uri.toString());&lt;span style=&quot;color: #38761d;&quot;&gt;//將URI轉成String塞入intent&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;startActivity(intent);&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
接收端的部分：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;String photoUri = getIntent.getStringExtra(&quot;&lt;span style=&quot;color: blue;&quot;&gt;URI&lt;/span&gt;&quot;); &lt;span style=&quot;color: #38761d;&quot;&gt;//接收傳來的Sting, 就是圖片啦..這樣就OK了&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;ImageView imageView = imageView.setImageURI(Uri.parse(photoUri)); &lt;span style=&quot;color: #38761d;&quot;&gt;//指定image view來源&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/4601126968927452435/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/4601126968927452435' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4601126968927452435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/4601126968927452435'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2012/06/blog-post_24.html' title='選擇相簿裡的照片後，傳到另一個畫面'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s72-c/android-robot.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-6237468666401705522</id><published>2012-06-23T15:26:00.001+08:00</published><updated>2017-11-05T22:45:22.120+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-高爾夫球"/><title type='text'>發生這種事就真的需要一個擁抱...</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; src=&quot;https://www.youtube.com/embed/-5IvOgiWEwE?fs=1&quot; width=&quot;459&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
是的，越是到達終點，越是不能大意....&lt;br /&gt;
不然那感覺真的很糟!!</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/6237468666401705522/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/6237468666401705522' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/6237468666401705522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/6237468666401705522'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2012/06/blog-post_23.html' title='發生這種事就真的需要一個擁抱...'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/-5IvOgiWEwE/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-7408347944218874611</id><published>2012-06-23T14:54:00.001+08:00</published><updated>2017-11-05T22:45:00.012+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="欣爺消遣-高爾夫球"/><title type='text'>打球就像人生，記得笑一個...</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;344&quot; src=&quot;https://www.youtube.com/embed/idcmAzTNbFw?fs=1&quot; width=&quot;459&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
去年清邁，在 Green Valley Golf Club 從下午三點開球，打到晚上.....&lt;br /&gt;
舟車勞頓手軟腳軟狀況下就像這個樣子.....不是沖天炮就是抓青蛙...&lt;br /&gt;
&lt;br /&gt;
不過這就是高爾夫啊....笑一笑就好~~&lt;br /&gt;
人生也不過如此，偶爾也是常有出槌的時候，笑一個!!</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/7408347944218874611/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/7408347944218874611' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7408347944218874611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7408347944218874611'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2012/06/blog-post.html' title='打球就像人生，記得笑一個...'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/idcmAzTNbFw/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-7095160236005317684</id><published>2012-06-22T23:38:00.001+08:00</published><updated>2017-11-05T22:52:24.722+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發-Android"/><title type='text'>打造具備自動對焦、閃光燈、儲存照片的 Android 程式</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s1600/android-robot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s200/android-robot.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 經過無盡的搜尋資料，參考國內外的程式高手們分享的程式碼，我總算融會貫通後，成功地寫出來完整功能的相機程式了....&lt;br /&gt;
&lt;br /&gt;
可能有人會質疑：利用 Intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE) ;&lt;br /&gt;
直接呼叫內建的相機功能就好啦，各種功能樣樣齊全呢！&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;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3VHOt3sTEbT8RQ-p9CGbyQCxN8Da47B9dSbvPCQL-Xs_prchmnqCV5iBIx1UPdVErnB_1Okwt6BkwqEjbosv0pxyKVT8lmtWr9DIiltOB5_p_SsCxoBYFL_yRuercOq06mf_hUthIFA5/s1600/2012-06-20_230042.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;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb3VHOt3sTEbT8RQ-p9CGbyQCxN8Da47B9dSbvPCQL-Xs_prchmnqCV5iBIx1UPdVErnB_1Okwt6BkwqEjbosv0pxyKVT8lmtWr9DIiltOB5_p_SsCxoBYFL_yRuercOq06mf_hUthIFA5/s320/2012-06-20_230042.jpg&quot; width=&quot;204&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;是的，那只能要自己去 Layout 、自己寫camera方法去呼叫相機了，先從Layout開始說明：&lt;span style=&quot;background-color: white;&quot;&gt;要如何將圖檔放在相機預覽畫面上呢？答案就是&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;通常我們要放相機預覽畫面，必須要使用 SurfaceView，所以只要再SurfaceView的Background屬性中指定圖檔就可以了。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqd6lPzZaiIW0g7Px8IjbcV4F4KSzRI__p6MH3LBPiE8bsri9POTE0HIDjtgTWb2nKw2kRXCUKZYyrLvuXjNo4mZ7JAuhSOVliwMdKXTlDCzaU0_1l45tkzOV5opphT3kooxkQ-K8wKvjQ/s1600/2012-06-20_230819.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqd6lPzZaiIW0g7Px8IjbcV4F4KSzRI__p6MH3LBPiE8bsri9POTE0HIDjtgTWb2nKw2kRXCUKZYyrLvuXjNo4mZ7JAuhSOVliwMdKXTlDCzaU0_1l45tkzOV5opphT3kooxkQ-K8wKvjQ/s320/2012-06-20_230819.jpg&quot; width=&quot;320&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;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 另外，Android的拍照、錄影，都是預設橫式的，但是我需要的是直式的拍照啊？這部分我也嘗試了很久，例如使用 camera.setDisplayOrientation(90); 嘗試將顯示畫面選轉90度，但是實際手機預覽畫面卻明顯失真、比例都扁掉了...所以最終，我就將直式的Layout更改成橫式的就好囉，對程式而言是標準的橫式，但是人拿起手機拍照就像是直式拍照囉：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMox9m_wRkJ-8LaQfDVNzQV-AkCYmeVWaURp1HuxWLmv_fATcucn2-QewbAZDYRwytnxwHkKK16fkmtwzz1jW-mNA_LNqiLcIuu6iZSFRyzMJBIjIoYXXZZI_p8Obl2zKj_jt3gycPZYsI/s1600/2012-06-20_231533.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMox9m_wRkJ-8LaQfDVNzQV-AkCYmeVWaURp1HuxWLmv_fATcucn2-QewbAZDYRwytnxwHkKK16fkmtwzz1jW-mNA_LNqiLcIuu6iZSFRyzMJBIjIoYXXZZI_p8Obl2zKj_jt3gycPZYsI/s320/2012-06-20_231533.jpg&quot; width=&quot;320&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;
另外一個大缺點，就是儲存後的照片也是橫式的，所以想要轉成直式的照片，就需要利用程式在照片存檔之前先選轉乘90度再儲存，如此一來，實際手機畫面看到的就是直式的照片，所以拍照的部分，除了是要指定拍照後為JPEG檔案，品質參數以及拍完照後的儲存方式，使用獨立的副程式處理：&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: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private final class TakePictureCallback implements PictureCallback {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;@Override&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public void onPictureTaken(byte[] data, Camera camera) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;try {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0,data.length);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Matrix matrix = new Matrix(); &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;matrix.setRotate(90); &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;bitmap = Bitmap.createBitmap(bitmap, 0, 0, &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//將相片旋轉90度後回存&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;bitmap.getWidth(),&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;bitmap.getHeight(),matrix, true); &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;background-color: #cccccc; white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;String Path = createFilePath();&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//載入儲存路徑&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc; color: #38761d;&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; //createFilePath() 為處理儲存檔案、儲存路徑的副程式&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;FileOutputStream outStream = new FileOutputStream(Path);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;bitmap.compress(CompressFormat.JPEG, 100, outStream);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;outStream.close();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.stopPreview();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.startPreview();//開始預覽&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;} catch (Exception e) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Log.e(TAG, e.toString());&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
以下是處理檔案的副程式：&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private String createFilePath() {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;File dir = Environment.getExternalStorageDirectory();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;File appDir = new File(dir, &quot;GSC/downline&quot;);&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;//指定資料夾&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(!appDir.exists()) appDir.mkdir();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;String name = System.currentTimeMillis() + &quot;.jpg&quot;;&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;//檔案以系統時間來命名&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return new File(appDir, name).getAbsolutePath();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 自動對焦功能，我希望在拍照前可以進行自動對焦，因此，我將自動對焦部分包成一個副程式，副程式當中才去呼叫拍照的程式，因此拍照前都會先自動對焦了，因此我在處理&quot;拍照按鈕&quot;的部分，呼叫的是autoFoucs這支副程式，而不是TalkPictureCallback，在autoFoucs裡面才呼叫TalkPictureCallback：&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Camera.AutoFocusCallback autoFocus = new Camera.AutoFocusCallback() {&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;@Override&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public void onAutoFocus(boolean success, Camera camera)&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{// TODO Auto-generated method stub&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(success){&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.takePicture(null, null, new TakePictureCallback());&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;//TakePictureCallback()是另外處理拍照的副程式&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}else{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Toast.makeText(camera_downline.this, R.string.focusError, Toast.LENGTH_LONG).show();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;};&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;background-color: white; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 當然，相機最主要的程式碼，包含一剛開始在開始構圖預覽、轉換、結束以及相關重要的參數如下：&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;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private SurfaceHolder.Callback surfaceholdercallback = new SurfaceHolder.Callback(){&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;@Override&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public void surfaceChanged(SurfaceHolder holder, int format, int width,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;int height) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;@Override&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public void surfaceCreated(SurfaceHolder holder) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;try{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(camera==null){&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;camera = Camera.open();&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}else{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;Toast.makeText(camera_downline.this, &quot;相機正在使用中&quot;, 1).show();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;WindowManager wm = (WindowManager) &amp;nbsp;getSystemService(Context.WINDOW_SERVICE);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Display display = wm.getDefaultDisplay();&lt;span style=&quot;color: #38761d;&quot;&gt;//設定這變數為預設的螢幕大小&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters = camera.getParameters();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.setPreviewSize(display.getWidth(), display.getHeight());&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;//設置預覽照片的大小&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.setPreviewFrameRate(3);&lt;span style=&quot;color: #38761d;&quot;&gt;//每秒三張&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.setPictureFormat(PixelFormat.JPEG);&lt;span style=&quot;color: #38761d;&quot;&gt;//照片的輸出格式&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.set(&quot;jpeg-quality&quot;, 85);&lt;span style=&quot;color: #38761d;&quot;&gt;//照片質量&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.setPictureSize(display.getWidth(), display.getHeight());&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;//設置照片的Size, 這邊也可以指定Pixel: Ex: 768, 1024&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.setParameters(parameters);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.setPreviewDisplay(surfaceview.getHolder());&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;//透過Surface View顯示預覽畫面&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.startPreview();&lt;span style=&quot;color: #38761d;&quot;&gt;//開始預覽&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;preview = true;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}catch(IOException e){&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;e.printStackTrace();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;@Override&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public void surfaceDestroyed(SurfaceHolder holder) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;// TODO Auto-generated method stub&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if (camera != null) {&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if (preview)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;camera.stopPreview();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.release();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;};&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
閃光燈的部分，放在按鈕裡面處裡就可以了，可以使用ToggleButton來去開啟或者關閉，因為我的ToggleButton是用自己設計的底圖，因此希望按下去的時候可以更換另外一個底圖，以下是 flash按鈕的程式碼：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;flash.setOnClickListener(new OnClickListener(){&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//定義返回按鍵後動作&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;public void onClick(View arg0){&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if (flash.isChecked()){&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;flash.setBackgroundDrawable(&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;getResources().getDrawable(R.drawable.record_flesh_on));&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span style=&quot;color: #38761d;&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;//點選後更換底圖&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.setFlashMode(Parameters.FLASH_MODE_ON);&lt;span style=&quot;color: #38761d;&quot;&gt;//開啟閃光燈&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.setParameters(parameters);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Toast.makeText(camera_downline.this, R.string.fleshOn, 1).show(); &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}else {&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flash.setBackgroundDrawable(&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;getResources().getDrawable(R.drawable.record_flesh_off));&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;//點選後更換底圖&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;parameters.setFlashMode(Parameters.FLASH_MODE_OFF);&amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;關閉閃光燈&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;camera.setParameters(parameters);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Toast.makeText(camera_downline.this, R.string.fleshOff, 1).show(); &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;});&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
整體的程式碼大概就是如此了，另外，通常拍照的時候，希望是全螢幕、沒有軟體抬頭、或者保持螢幕開啟，可以在onCreate程式開頭加上以下這段程式碼：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;background-color: white; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;public void onCreate(Bundle savedInstanceState){&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;super.onCreate(savedInstanceState);&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Window window = getWindow();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;requestWindowFeature(Window.FEATURE_NO_TITLE);&lt;span style=&quot;color: #38761d;&quot;&gt;//取消軟體抬頭&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;WindowManager.LayoutParams.FLAG_FULLSCREEN);&lt;span style=&quot;color: #38761d;&quot;&gt;//全螢幕&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span 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; &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; &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;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;//螢幕保持開啟&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
以上，如果有甚麼更好方式，歡迎與我討論...&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/7095160236005317684/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/7095160236005317684' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7095160236005317684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7095160236005317684'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2012/06/android.html' title='打造具備自動對焦、閃光燈、儲存照片的 Android 程式'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s72-c/android-robot.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1306152811995014736.post-7279435588065144312</id><published>2012-06-01T15:26:00.000+08:00</published><updated>2017-11-05T22:52:00.853+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發-Android"/><title type='text'>ToggleButton 的進階用法</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s1600/android-robot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s200/android-robot.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
是這樣的，我希望做一個錄影按鈕的效果：&lt;br /&gt;
1. 按下去之後，按鈕呈現紅燈亮的畫面，並開始進行錄影的動作&lt;br /&gt;
2. 再按一次，按鈕呈現紅燈熄滅的畫面，並停止錄影的動作&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
因此，ToggleButton 是最理想的選擇，&lt;br /&gt;
首先，在 Layout 部分：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint&quot; style=&quot;background-color: #eeeeee; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; text-align: left; vertical-align: baseline; width: auto;&quot;&gt;&lt;ol&gt;
&lt;li&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ToggleButton&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;@+id/按鈕的ID&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;layout_width&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;30px&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;layout_height&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;30px&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;textOn&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;textOff&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;layout_alignParentLeft&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;layout_marginLeft&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;5px&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;layout_marginTop&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;5px&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; android&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;@drawable/locate_me&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
接下來是Java部分：&lt;br /&gt;
當然之前要先作定義按鈕的動作，然後在onClick事件中描述...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint&quot; style=&quot;background-color: #eeeeee; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; text-align: left; vertical-align: baseline; width: auto;&quot;&gt;&lt;ol&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;定義按鈕的ID&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;setOnClickListener&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;OnClickListener&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; onClick&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;View&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; v&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;code style=&quot;background-color: transparent; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;定義按鈕的ID&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;isChecked&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;())&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;                定義按鈕的ID&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;setBackgroundDrawable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;getResources&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;getDrawable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;drawable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.底圖檔名一&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;));&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;            }&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px currentcolor; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;code style=&quot;background-color: transparent; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px currentColor; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;定義按鈕的ID&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;setBackgroundDrawable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;getResources&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;getDrawable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;drawable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.底圖檔名二&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;));&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px currentColor; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;});&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://reterfreeman.blogspot.com/feeds/7279435588065144312/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1306152811995014736/7279435588065144312' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7279435588065144312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1306152811995014736/posts/default/7279435588065144312'/><link rel='alternate' type='text/html' href='http://reterfreeman.blogspot.com/2012/06/togglebutton.html' title='ToggleButton 的進階用法'/><author><name>欣爺</name><uri>http://www.blogger.com/profile/12049380946609101607</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/AVvXsEjKy4_uNP6XACJ84KhKNc3hUv9vqNMcqocGh4s-IEWW2nh-XJpRgEb0xyMW6Wt32Hzp2kJXYHPaeYe0zDovQQE2TS6LpbJi6xhq_0Awt7gshHXdET2Sk2PIqOC2Htu1poqoU6noE5PpNhgk/s72-c/android-robot.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>