tag:blogger.com,1999:blog-22902735722508201012024-03-13T09:29:09.778+08:00Jack玩樂誌紀錄Jack在電腦上各種程式語言犯錯的經驗與心得Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.comBlogger58125tag:blogger.com,1999:blog-2290273572250820101.post-28897944947642787382021-08-12T23:45:00.000+08:002021-08-12T23:45:03.259+08:00[推薦] 免費的MacOS 滑鼠鍵盤錄製軟體Keysmith<p> https://www.keysmith.app/</p><p>不說了,用爆</p>Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-74279359567364646342021-07-17T02:35:00.002+08:002021-07-17T02:39:47.835+08:00The walking dead 第一季 第二季漢化<p> 有夠難找...備份一下</p><p><br /></p><p>第一季:</p><p><a href="https://mega.nz/file/1YYCFDpa#99TuZ3inyeSPVwmvL5u-M2cOAeR_FwgBSXfB_EteoC4">https://mega.nz/file/1YYCFDpa#99TuZ3inyeSPVwmvL5u-M2cOAeR_FwgBSXfB_EteoC4</a></p><p><a href="https://drive.google.com/file/d/1KbX-PQ7wslpuXXDbsRPMwDaIwn7KRdko/view?usp=sharing">https://drive.google.com/file/d/1KbX-PQ7wslpuXXDbsRPMwDaIwn7KRdko/view?usp=sharing</a></p><p>第二季:</p><p><a href="https://mega.nz/file/tFQgmRCY#pUjZ98bw5PNBbTrp4rvlV4ZD3-yZnmmDNbk8b7tbflc">https://mega.nz/file/tFQgmRCY#pUjZ98bw5PNBbTrp4rvlV4ZD3-yZnmmDNbk8b7tbflc</a></p><p><a href="https://drive.google.com/file/d/12Ngcm6y_FDRrw3QhtR44xA7rKT7eYVR0/view?usp=sharing">https://drive.google.com/file/d/12Ngcm6y_FDRrw3QhtR44xA7rKT7eYVR0/view?usp=sharing</a></p><p><br /></p><p>使用方法:</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-F8lW6EaUmO0sNmTe43WDerHyxMhGknMemWyYpINC-5kPENecxgsTwMJgdK9rNFLWOtPpuoHUvpZTEHEPkd4VdeIg2SNSgwORiS10Q0Ox9y73WrQJRJtgjUGc6qioUstTFZlqdQDKHMw/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="215" data-original-width="413" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-F8lW6EaUmO0sNmTe43WDerHyxMhGknMemWyYpINC-5kPENecxgsTwMJgdK9rNFLWOtPpuoHUvpZTEHEPkd4VdeIg2SNSgwORiS10Q0Ox9y73WrQJRJtgjUGc6qioUstTFZlqdQDKHMw/" width="320" /></a></div><br />從Steam打開安裝資料夾,漢化執行檔丟進去執行<p></p><p>安裝完記得刪掉額外安裝的360安全衛士跟一堆額外軟體</p><p><br /></p><p>感謝3DMGame</p><p>來源:</p><p><a href="https://forum.gamer.com.tw/C.php?bsn=20282&snA=399">https://forum.gamer.com.tw/C.php?bsn=20282&snA=399</a></p><p><br /></p>Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-73064353822658505382020-03-15T01:07:00.000+08:002020-03-15T01:08:18.678+08:00[教學] 在Windows 10 上跑 Origin RA2<div>
If file is not found, you can leave a message below.</div>
<div>
如果檔案失效了,歡迎留言給我</div>
<ol>
<li>Download <a href="https://drive.google.com/open?id=1dUi9DRdCI0gguFzzbdIXvo_WqUiwuFj3" target="_blank">cnc-ultimate-collection-launchers.zip</a> (下載這個檔案並執行)</li>
<li>Extract and execute C&C Ultimate Collection Launchers Setup.exe</li>
<li>Download <a href="https://drive.google.com/open?id=1PssEv1YMtnqsyQVFrH0l01VkpclqGJKP" target="_blank">DDWrapper</a> (下載這個檔案,解壓縮到Origin RA2的資料夾)</li>
<li>Extract to </li>
<ul>
<li>C:\Program Files (x86)\Origin Games\Command and Conquer Red Alert II </li>
</ul>
<li>Open <b>aqirt.cfg</b> and change following parameter 0 to 1 (在RA2資料夾裡面修改<b>aqirt.cfg</b>)</li>
<ul>
<li>RealDDrawPath = AUTO</li>
<li><span style="color: blue;">BltMirror = 1</span></li>
<li><span style="color: blue;">BltNoTearing = 1</span></li>
<li><span style="color: blue;">ColorFix = 1</span></li>
<li><span style="color: blue;">DisableHighDpiScaling = 1</span></li>
<li>FakeVsync = 0</li>
<li>FakeVsyncInterval = 0</li>
<li><span style="color: blue;">ForceBltNoTearing = 1</span></li>
<li><span style="color: blue;">ForceDirectDrawEmulation = 1</span></li>
<li><span style="color: blue;">NoVideoMemory = 1</span></li>
<li><span style="color: blue;">SingleProcAffinity = 1</span></li>
<li>ShowFPS = 0</li>
</ul>
<li>Change following exe compatibility to winXP SP3 (將底下exe改成如下設置)</li>
<ol>
<li>RA2.exe</li>
<li>RA2MD.exe</li>
<li>game.exe</li>
<li>gamemd.exe</li>
</ol>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSYeCHwL4q_Lc5MZvm9g4weCaiWx31yGMkMf8_s_6XCayxAx23JckY9VbaSIVul_vc-5iJ4gtP5byzYN5Mknuif0PVdnoeIFGz3M-wjbmccvDX-SRftiOJ3KIFDsMwgWAinJoPaAyb17o/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="492" data-original-width="416" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSYeCHwL4q_Lc5MZvm9g4weCaiWx31yGMkMf8_s_6XCayxAx23JckY9VbaSIVul_vc-5iJ4gtP5byzYN5Mknuif0PVdnoeIFGz3M-wjbmccvDX-SRftiOJ3KIFDsMwgWAinJoPaAyb17o/s640/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" width="540" /></a></div>
<ol>
<li><br /></li>
</ol>
</ol>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-86522048508999783182020-03-05T20:11:00.002+08:002020-03-27T19:51:37.098+08:00[教學] 2020如何申請信用卡自動轉帳付款授權書 免掛號費 (圖文教學)<div>
<ul>
<li><span style="font-size: large;">如果你的銀行是<span style="color: blue;">花旗銀行</span>或者<span style="color: blue;">元大銀行</span></span></li>
<ul>
<li><span style="font-size: large;">很抱歉,他們沒有提供免費回郵,必須付掛號費寄出才行喔</span></li>
</ul>
<li><span style="font-size: large;"><span style="color: blue;">花旗銀行</span>只要每申請一張信用卡,就要填一次申請書! (超麻煩...</span></li>
<li><span style="font-size: large;"><b><span style="color: red;">其他銀行只要填一次</span></b>,不管之後申請幾張信用卡,都是用此帳戶扣款</span></li>
<li><span style="font-size: large;">投郵筒,不要拿去郵局櫃檯,他們會<b><span style="color: red;">拒收</span></b></span></li>
</ul>
</div>
<div>
<br /></div>
<div>
<span style="font-size: large;">正式開始:</span></div>
<div>
<ol>
<li><span style="font-size: large;">列印申請書,各大銀行申請書網址,底下為2020年的連結,之後可能會失效:<a name='more'></a></span></li>
<ul>
<li><a href="https://www.ctbcbank.com/content/dam/twrbo/pdf/creditcard/applyform/cc_autopay_auth.pdf" target="_blank"><span style="font-size: large;">中國信託</span></a></li>
<li><a href="https://www.fubon.com/banking/document/form/TW/121024.pdf" target="_blank"><span style="font-size: large;">富邦銀行</span></a></li>
<li><a href="https://card.hncb.com.tw/wps/wcm/connect/e2c7d6c0-ac5b-4c43-b2aa-6c25ca0b895a/autopay.pdf?MOD=AJPERES&CONVERT_TO=url&CACHEID=ROOTWORKSPACE-e2c7d6c0-ac5b-4c43-b2aa-6c25ca0b895a-lyw8l7x" target="_blank"><span style="font-size: large;">華南銀行</span></a></li>
<li><a href="https://www.tcb-bank.com.tw/creditcard/discount_news/Documents/%E4%BF%A1%E7%94%A8%E5%8D%A1%E8%A1%A8%E6%A0%BC%E4%B8%8B%E8%BC%89/%E8%87%AA%E5%8B%95%E8%BD%89%E5%B8%B3%E6%89%A3%E6%AC%BE%E4%BF%A1%E7%94%A8%E5%8D%A1%E6%8E%88%E6%AC%8A%E6%9B%B8_108V.PDF" target="_blank"><span style="font-size: large;">合作金庫</span></a></li>
<li><a href="https://www.tcb-bank.com.tw/creditcard/discount_news/Documents/%E4%BF%A1%E7%94%A8%E5%8D%A1%E8%A1%A8%E6%A0%BC%E4%B8%8B%E8%BC%89/%E8%87%AA%E5%8B%95%E8%BD%89%E5%B8%B3%E6%89%A3%E6%AC%BE%E4%BF%A1%E7%94%A8%E5%8D%A1%E6%8E%88%E6%AC%8A%E6%9B%B8_108V.PDF" target="_blank"><span style="font-size: large;">玉山銀行</span></a></li>
<li><a href="https://www.cathaybk.com.tw/cathaybk/-/media/61e4f10af58f4f1893888c30d7902ad1.pdf?la=en&hash=39E55B435ED224734286028E7B47EE75D89D82BF" target="_blank"><span style="font-size: large;">國泰世華</span></a></li>
<li><a href="https://bank.sinopac.com/MMA8/DocDownload/COM001.pdf" target="_blank"><span style="font-size: large;">永豐銀行</span></a></li>
<li><a href="https://card.firstbank.com.tw/card/chn/doc/fb_credit/fb_credit_download_20141030_4315/724_A4.pdf" target="_blank"><span style="font-size: large;">第一銀行</span></a></li>
<li><a href="https://www.citibank.com.tw/global_docs/chi/ap/bankcard_authorizationform.pdf" target="_blank"><span style="font-size: large;">花旗銀行</span></a></li>
<li><a href="https://www.yuantabank.com.tw/bank/download/list.do?download_type=1&unit_id=1" target="_blank"><span style="font-size: large;">元大銀行</span></a></li>
</ul>
</ol>
<span style="font-size: large;"><span style="font-size: large;"><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSWiRImVuS0TyeiBwhGtfvc0EAFC35RnTaY-a_1oAuOjQ5iL6G-neyzLC3-3KyxMKfaRy5rNOkVcKDc1o6VGZTnKe0zUDdOl39n5nzj1S39R2dHbVt1rHOPIpIl7Pbvf6MwjzDOHUJcBY/s640/P_20200305_192315_vHDR_Auto.jpg" style="margin-left: auto; margin-right: auto;" width="480" /></td></tr>
<tr><td class="tr-caption" style="font-size: 12.8px;"><span style="font-size: large; text-align: start;">填寫授權書,如果原本有用其他扣繳方式則勾選 "變更" </span></td></tr>
</tbody></table>
</span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSWiRImVuS0TyeiBwhGtfvc0EAFC35RnTaY-a_1oAuOjQ5iL6G-neyzLC3-3KyxMKfaRy5rNOkVcKDc1o6VGZTnKe0zUDdOl39n5nzj1S39R2dHbVt1rHOPIpIl7Pbvf6MwjzDOHUJcBY/s1600/P_20200305_192315_vHDR_Auto.jpg" imageanchor="1" style="font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;"></a><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt5qDSysjaiNdGy1wPa-do2CnDpN9R6FL-Cz80bqr-NlBooAs3SqCSq74zLk0ECUxcsc1NhV4juzk7_19m2kF0funTk5W6WArnNsvTdlBLBQ7ckJri0NJRnJ_oKLvnryNzsJ5Q2sax7GI/s1600/P_20200305_192357_vHDR_Auto.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt5qDSysjaiNdGy1wPa-do2CnDpN9R6FL-Cz80bqr-NlBooAs3SqCSq74zLk0ECUxcsc1NhV4juzk7_19m2kF0funTk5W6WArnNsvTdlBLBQ7ckJri0NJRnJ_oKLvnryNzsJ5Q2sax7GI/s640/P_20200305_192357_vHDR_Auto.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large; text-align: start;">開始摺信封袋,</span><span style="font-size: large; text-align: start;">將信封袋摺成三等份,通常有虛線輔助</span></td></tr>
</tbody></table>
</span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWpMekBkm5rGtOLfboPF3NaCqrW4-qvubmD91FXcQ9DHnodMb3dw9jXirl_0VJmphENDXO-EGEs4redDeXD72H0V8Dw7vaKMQKlI5yuQ2TEVlh7w1DRX6-CqkLWEQgwdfT9SzbbVxfG2M/s1600/P_20200305_192447_vHDR_Auto.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWpMekBkm5rGtOLfboPF3NaCqrW4-qvubmD91FXcQ9DHnodMb3dw9jXirl_0VJmphENDXO-EGEs4redDeXD72H0V8Dw7vaKMQKlI5yuQ2TEVlh7w1DRX6-CqkLWEQgwdfT9SzbbVxfG2M/s640/P_20200305_192447_vHDR_Auto.jpg" width="480" /></a></td></tr>
<tr><td class="tr-caption"><span style="font-size: large; text-align: left;">先將紅色兩邊黏起來,可從上方放入申請書</span></td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJsmKFecNQOYZ_uJtwEh4oZtW0nVGUiyWw4eTco57YmKdfKA1Q2E4t9iyGwv1tv0705RIpcfdMOyuYtL1DZi06AXGDn8AMrjIDHv9VgwkfUMQb56yjecVON1qe9YWrN_SJNXGQ-YimOtg/s640/P_20200305_192522_vHDR_Auto.jpg" style="margin-left: auto; margin-right: auto;" width="480" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large; text-align: start;">放入申請書,並在紅色部分塗上口紅膠或雙面膠</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJsmKFecNQOYZ_uJtwEh4oZtW0nVGUiyWw4eTco57YmKdfKA1Q2E4t9iyGwv1tv0705RIpcfdMOyuYtL1DZi06AXGDn8AMrjIDHv9VgwkfUMQb56yjecVON1qe9YWrN_SJNXGQ-YimOtg/s1600/P_20200305_192522_vHDR_Auto.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"></span></a></div>
<br />
<ol>
</ol>
</div>
<div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSw23k4JNR8dtv_QWsEoxcsN5Fsub19XZYhNniqfMoFOiNKVlbPrc7gw9EoEZxkhhjfqiLp0GnZ2I9CAvrFBDYZghER9p2z2_jUCCRpqps2OGh-ZnGaSFQESJenm-2p1mMgK9mOrKI32k/s640/P_20200305_192455_vHDR_Auto.jpg" style="margin-left: auto; margin-right: auto;" width="480" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large; text-align: start;">密封</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSw23k4JNR8dtv_QWsEoxcsN5Fsub19XZYhNniqfMoFOiNKVlbPrc7gw9EoEZxkhhjfqiLp0GnZ2I9CAvrFBDYZghER9p2z2_jUCCRpqps2OGh-ZnGaSFQESJenm-2p1mMgK9mOrKI32k/s1600/P_20200305_192455_vHDR_Auto.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"></span></a></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" data-original-height="1600" data-original-width="1200" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjTv3GBoT_G1mGh6j9GKkDidBh0UIwRy8lB0O1qGDB1P2dGVsPpWcIzEr3fgZlYXVcQc-wZMH75YCXDBFrzb9VrCICdcOYTt9SPy3XqOrZ0s7RrTpXBEV0BBPwhsarpfUwCN3qfDbBJgI/s640/P_20200305_192600_vHDR_Auto.jpg" style="margin-left: auto; margin-right: auto;" width="480" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div class="separator" style="clear: both; font-size: medium;">
<span style="font-size: large;">大功告成!</span></div>
<div class="separator" style="clear: both; font-size: medium;">
<span style="font-size: large;">接著只要投入路邊郵局信箱就好囉!</span></div>
<div class="separator" style="clear: both; font-size: medium;">
<span style="font-size: large;"><br /></span></div>
<div class="separator" style="clear: both; font-size: medium;">
<span style="font-size: large;">收到簡訊囉!</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3MLzWa3lL5VeEXTfPg4GduKg4-vx2tq_3sdSA1IHQ6faw0Ro39TCtabPd_yrJSy70AbF3n-M7zaoTe5M794Fpds43kEJLlOthXGmmew1aI8h6V4AExQF6kXCKq2BdNSAv7QXVlyxPICw/s1600/91238767_553219071987353_5933871179147247616_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="303" data-original-width="1080" height="178" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3MLzWa3lL5VeEXTfPg4GduKg4-vx2tq_3sdSA1IHQ6faw0Ro39TCtabPd_yrJSy70AbF3n-M7zaoTe5M794Fpds43kEJLlOthXGmmew1aI8h6V4AExQF6kXCKq2BdNSAv7QXVlyxPICw/s640/91238767_553219071987353_5933871179147247616_n.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; font-size: medium;">
<br /></div>
</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-84251969559895195122020-02-24T19:13:00.001+08:002020-02-24T19:15:27.800+08:00[筆記] 在nginx同時裝laravel 跟wordpress 原本以為很簡單設定location就好,沒想到一直回傳404<br />
<div>
<br /></div>
<div>
<span style="font-size: large;">laravel </span></div>
<div>
<ul>
<li>path: /var/www/html/<b>blog </b></li>
<li>web address: www.example.com</li>
</ul>
</div>
<div>
<br /></div>
<div>
<span style="font-size: large;">wordpress</span></div>
<div>
<ul>
<li>path: /var/www/html/<b>wordpress</b></li>
<li>web address: www.example.com/<b>wordpress</b></li>
</ul>
</div>
<div>
<br /></div>
<div>
<div>
<span style="font-size: x-small;">server {</span></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="font-size: x-small;"> # Add index.php to the list if you are using PHP</span></div>
<div>
<span style="font-size: x-small;"> index index.html index.htm index.nginx-debian.html index.php;</span></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="font-size: x-small;"> server_name doki-friends.com www.doki-friends.com;</span></div>
<div>
<span style="font-size: x-small;"> root /var/www/html/blog/public;</span></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="font-size: x-small;"> location / {</span></div>
<div>
<span style="font-size: x-small;"> root /var/www/html/blog/public;</span></div>
<div>
<span style="font-size: x-small;"> try_files $uri $uri/ /index.php?$query_string;</span></div>
<div>
<span style="font-size: x-small;"> }</span></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> location ^~ /<span style="color: blue;"><b>wordpress </b></span>{</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> alias /var/www/html/<span style="color: blue;"><b>wordpress</b></span>;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> try_files $uri $uri/ <span style="color: blue;"><b>@wordpress</b></span>;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> location ~ \.php$ {</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> fastcgi_pass unix:/run/php/php7.2-fpm.sock;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> fastcgi_index index.php;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> fastcgi_param SCRIPT_FILENAME $request_filename;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> include fastcgi_params;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> }</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> }</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"><br /></span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> location <b style="color: blue;">@</b><b style="color: blue;">wordpress</b>{</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> rewrite /<b style="color: blue;">wordpress</b>/(.*)$ /<b style="color: blue;">wordpress</b>/index.php?/$1 last;</span></div>
<div>
<span style="background-color: yellow; font-size: x-small;"> }</span></div>
</div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<div>
<span style="font-size: x-small;"> # pass PHP scripts to FastCGI server</span></div>
<div>
<span style="font-size: x-small;"> #</span></div>
<div>
<span style="font-size: x-small;"> location ~ \.php$ {</span></div>
<div>
<span style="font-size: x-small;"> include snippets/fastcgi-php.conf;</span></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="font-size: x-small;"> # With php-fpm (or other unix sockets):</span></div>
<div>
<span style="font-size: x-small;"> fastcgi_pass unix:/run/php/php7.2-fpm.sock;</span></div>
<div>
<span style="font-size: x-small;"> }</span></div>
</div>
<div>
<span style="font-size: x-small;">}</span></div>
<div>
<br /></div>
<div>
詳細連結: <a href="https://segmentfault.com/a/1190000017890331">https://segmentfault.com/a/1190000017890331</a></div>
<div>
<br /></div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-68296718730150292792020-01-08T00:39:00.000+08:002020-01-08T00:39:51.412+08:00[教學] Blogger內的Adsense廣告沒有顯示?最近發現加入Blogger的廣告竟然不會顯示,才發現連Blogger廣告也要通過審核才行了,照著以下步驟即可<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5lGTsnHipBHFrauUBxXutJFxr6fdhu_NbO2pwPqgoHFnAtSC5jhpdMlcILZ-xJnBy6FKGxvqKR2XGbSE4_5frpbhgNOc6aT_wjMEX-raS8qAimibGbrUEhlVdLUSgbx0DQ3GleDAgEoc/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="548" data-original-width="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5lGTsnHipBHFrauUBxXutJFxr6fdhu_NbO2pwPqgoHFnAtSC5jhpdMlcILZ-xJnBy6FKGxvqKR2XGbSE4_5frpbhgNOc6aT_wjMEX-raS8qAimibGbrUEhlVdLUSgbx0DQ3GleDAgEoc/s1600/1.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">點選"收益"/Click "Earnings" </td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWKvvJG8odFi72MvZqpGpaauFOhtgRPB1m4pPiqp4xrE0mt2j-gl6NdK06P6iHPICIfL0nvrSBLg8uTwpEjQWREDMYFUgQkBHju9KT3RydhyphenhyphendmjJXKExnxZfYIgFmz8qY7cnHwKDbsrfo/s1600/2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="768" data-original-width="1019" height="482" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWKvvJG8odFi72MvZqpGpaauFOhtgRPB1m4pPiqp4xrE0mt2j-gl6NdK06P6iHPICIfL0nvrSBLg8uTwpEjQWREDMYFUgQkBHju9KT3RydhyphenhyphendmjJXKExnxZfYIgFmz8qY7cnHwKDbsrfo/s640/2.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">點選切換AdSense帳戶/ Click change AdSense account</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI-cgn5tSYsKnLSmrW7J97EC7CgIITJ4k1BbjU8DJijQT0iDHjI9XTDPN8G6J6ccc5PsB1YjGISgcNR0_fSnzOrKoUPm-R76z0dmJn8eNeY4Ist2H-Bgnvb0-X1cVH6lve9ssgW4g60gU/s1600/3.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="289" data-original-width="449" height="256" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI-cgn5tSYsKnLSmrW7J97EC7CgIITJ4k1BbjU8DJijQT0iDHjI9XTDPN8G6J6ccc5PsB1YjGISgcNR0_fSnzOrKoUPm-R76z0dmJn8eNeY4Ist2H-Bgnvb0-X1cVH6lve9ssgW4g60gU/s400/3.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">選擇你的Gmail 帳戶/ Select your gmail account</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYLmrUZ9NIAObKmH65nprbmfPS4HRgGMYDpU7oNdYavk_V-eqXPoAChPt7-w77FEk75nl7zi3V0yh18JP5OGSB_KOrFiwPEFHN_0_hDHSvnWsqV5cRr2-lJmVPJgVRWTxGuR6UsTaLKqw/s1600/4.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="536" data-original-width="556" height="385" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYLmrUZ9NIAObKmH65nprbmfPS4HRgGMYDpU7oNdYavk_V-eqXPoAChPt7-w77FEk75nl7zi3V0yh18JP5OGSB_KOrFiwPEFHN_0_hDHSvnWsqV5cRr2-lJmVPJgVRWTxGuR6UsTaLKqw/s400/4.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">點選接受連結 / Click accept link </td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><span style="font-size: 12.8px;"><img border="0" data-original-height="419" data-original-width="969" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6gR-4pVShDXb9ak4ZtJw9pySTlJgX48ebHjr3IYKPLRibiKGnFZPmShirF6GBtNHTDvIZH6LcqNbHz-z_k3-l_YtkgaxkqQvk07wYO2wBuGLPkN9ksGZ4qsXyXYex4UYMMVQN81ood64/s640/5.png" style="margin-left: auto; margin-right: auto;" width="640" /></span></td></tr>
<tr><td class="tr-caption" style="text-align: center;"></td></tr>
</tbody></table>
<div class="" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6gR-4pVShDXb9ak4ZtJw9pySTlJgX48ebHjr3IYKPLRibiKGnFZPmShirF6GBtNHTDvIZH6LcqNbHz-z_k3-l_YtkgaxkqQvk07wYO2wBuGLPkN9ksGZ4qsXyXYex4UYMMVQN81ood64/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a>點選轉向 / Click redirect<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6gR-4pVShDXb9ak4ZtJw9pySTlJgX48ebHjr3IYKPLRibiKGnFZPmShirF6GBtNHTDvIZH6LcqNbHz-z_k3-l_YtkgaxkqQvk07wYO2wBuGLPkN9ksGZ4qsXyXYex4UYMMVQN81ood64/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvy6vcnM0N8KbnH6CUELgpUw0Vt12xGNu7KNHSaC076bzAjBbRNDawuxsCHK2ecmUl0Sv2sBrKUg1bsCNSAPV63nrDz9ep0uyQJ6WzJTxtcHEx1sY3u1OcbXjqR8gwzTHCL_vMiYDHwmg/s1600/6.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="204" data-original-width="322" height="404" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvy6vcnM0N8KbnH6CUELgpUw0Vt12xGNu7KNHSaC076bzAjBbRNDawuxsCHK2ecmUl0Sv2sBrKUg1bsCNSAPV63nrDz9ep0uyQJ6WzJTxtcHEx1sY3u1OcbXjqR8gwzTHCL_vMiYDHwmg/s640/6.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">點選繼續 / Click continue<br /></td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3nzc3fSZ23_iA7urv1BT7mHjhJbG9cMuQBLbrU1-msKbgAstzcNZUZtjg5oyXbrt5lpuDRUWZX3x4JIe_DCBYgklPBgUCDucBd10Op7zDhJMkv2BhWSnuuprpCdgmPcBF5xlLW6SlKQs/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="360" data-original-width="820" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3nzc3fSZ23_iA7urv1BT7mHjhJbG9cMuQBLbrU1-msKbgAstzcNZUZtjg5oyXbrt5lpuDRUWZX3x4JIe_DCBYgklPBgUCDucBd10Op7zDhJMkv2BhWSnuuprpCdgmPcBF5xlLW6SlKQs/s640/1.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: 12.8px;">你可以在Adsense上的網站底下看到你的網站正在被審查中</span><br style="font-size: 12.8px;" /><span style="font-size: 12.8px;">You can see your blogger is under review</span></td></tr>
</tbody></table>
</div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-25956551428813022542019-11-26T14:28:00.002+08:002019-11-26T14:28:52.711+08:00[教學] line 電腦版認證 收不到解法:<br />
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wy29pHO9tuLQ2BjA9Yib8a_7QaMkBI1qHWAOjMBG77Bh14D3Ts_p8ASD0TRDlHC5ftYY_2KFirkk0OiIFrRTRcDmQwv222314gxMVbNRm6cbH1_loysFcTUx_4_aPlNVbl0H7WqFmNI/s1600/77082211_428630841113472_9015657514225631232_n.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="915" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wy29pHO9tuLQ2BjA9Yib8a_7QaMkBI1qHWAOjMBG77Bh14D3Ts_p8ASD0TRDlHC5ftYY_2KFirkk0OiIFrRTRcDmQwv222314gxMVbNRm6cbH1_loysFcTUx_4_aPlNVbl0H7WqFmNI/s640/77082211_428630841113472_9015657514225631232_n.jpg" width="366" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large;">點選右上角設定</span></td></tr>
</tbody></table>
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBwZCh0ULqQ0N9pN2X5HwcNT4r5ALW8WKzRSqSvZHwgGxdTTugIqjevuuGADFNKaXxILfQYwkkHA2NetQ27_bZcfO2S607R7IKFhZJAbvvBVUzNqxeLHsW_jassBDHbwxf_9u4y7FiFTU/s1600/77052674_446221239423560_7552823036534063104_n.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="739" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBwZCh0ULqQ0N9pN2X5HwcNT4r5ALW8WKzRSqSvZHwgGxdTTugIqjevuuGADFNKaXxILfQYwkkHA2NetQ27_bZcfO2S607R7IKFhZJAbvvBVUzNqxeLHsW_jassBDHbwxf_9u4y7FiFTU/s640/77052674_446221239423560_7552823036534063104_n.jpg" width="294" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large;">點選隱私設定</span></td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiYEtiI6NrAuqUd40r7eD4mK4k7_atMqPfH2eUBrGcnXAR6uaGCL8lKI8z1A486-qPnGLNhylPHgN4rlKXobyw4jh1ommwHrQ3DggxptsQrNXqM1GHAAHk83k6PJXFJDO6sHyq9U2mbfU/s1600/78226491_507383376792864_2760527454262001664_n.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="739" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiYEtiI6NrAuqUd40r7eD4mK4k7_atMqPfH2eUBrGcnXAR6uaGCL8lKI8z1A486-qPnGLNhylPHgN4rlKXobyw4jh1ommwHrQ3DggxptsQrNXqM1GHAAHk83k6PJXFJDO6sHyq9U2mbfU/s640/78226491_507383376792864_2760527454262001664_n.jpg" width="294" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-size: large;">開打Letter Sealing再關掉(Check and uncheck again)</span></td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: start;">來源:</span><a href="https://help.line.me/line/win/?contentId=50001523" style="text-align: start;">https://help.line.me/line/win/?contentId=50001523</a></div>
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-15511939163444822272019-09-21T01:49:00.000+08:002019-11-07T23:23:49.113+08:00[筆記] 免費使用Oracle cloud vps並打開port 80端口<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Oracle 最近宣布提供個人終身免費VPS,但是我在架設網站的過程中遇到了一些困難,nginx怎麼連都連不上去,就寫下來分享一下<br />
<br />
直接進到Oracle Cloud Infrastructure裡面,照著圖片點選<br />
<br />
<span style="font-size: large;">Click instance</span><br />
<span style="font-size: large;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn1CbCy4Ljt7GNM90CWDHDqCGwcISLyz-TdasL5sMJ3bWnw3jQR6T2whuAY6JuDhdW5Is1SGlCXTzWCHAdiWFl-kk9PC9hVlvt5G61c9tBdxk1Ua-cDP7S-lQVjWvitzAtDgXAV1zc3SY/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"><img border="0" data-original-height="280" data-original-width="1600" height="107" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn1CbCy4Ljt7GNM90CWDHDqCGwcISLyz-TdasL5sMJ3bWnw3jQR6T2whuAY6JuDhdW5Is1SGlCXTzWCHAdiWFl-kk9PC9hVlvt5G61c9tBdxk1Ua-cDP7S-lQVjWvitzAtDgXAV1zc3SY/s640/1.png" width="640" /></span></a></div>
<span style="font-size: large;"><br /></span>
<span style="font-size: large;">Click Virtual Cloud Network</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhcd3OG36b87HAa1BxeTnfe_Cn_jxufUsJ6IUti9DevPJxJo_Qskxs6hwfMGBFt3xKQAq4MdQLPB25emPKKYGJpNNQOkndlrLehB0D_dOUAdbeWmGf_ilOqSEXJ4zCqomZdZ1tCK8qSpk/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="font-size: medium; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" data-original-height="247" data-original-width="443" height="178" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhcd3OG36b87HAa1BxeTnfe_Cn_jxufUsJ6IUti9DevPJxJo_Qskxs6hwfMGBFt3xKQAq4MdQLPB25emPKKYGJpNNQOkndlrLehB0D_dOUAdbeWmGf_ilOqSEXJ4zCqomZdZ1tCK8qSpk/s320/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" width="320" /></a></div>
<span style="font-size: large;"></span><br />
<div class="separator" style="clear: both; text-align: left;">
<span style="font-size: large;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPP_hVAHODsn8GikmnsAr4FgCtPz-DLA1EeoWGOWyzq5DzyDsPQIGxQ9blLzYYww9zYEfgAkkoTTaT0gOTmdUJY9dxNqG0kh2NVi1snMIiL1T_j9oAAOf7DgdhRZiUbbIbwsy0Rz3r7FM/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"></span></a></div>
<div style="text-align: center;">
<span style="font-size: large;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: large;">Click subnet</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1I3RYFkW9WmBME4vfnTIWj9W3qIizBF-ryGKdTuhQezqlyn-soAvmS_Hqckl7JfD4X12_1DO_jUATpq80HRJ_erVF1yI1A0s5OO9gpfRFhtyI5lZe10L3csVG9x9n-UaQgrLnCQMYPXI/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"><img border="0" data-original-height="196" data-original-width="1596" height="76" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1I3RYFkW9WmBME4vfnTIWj9W3qIizBF-ryGKdTuhQezqlyn-soAvmS_Hqckl7JfD4X12_1DO_jUATpq80HRJ_erVF1yI1A0s5OO9gpfRFhtyI5lZe10L3csVG9x9n-UaQgrLnCQMYPXI/s640/3.png" width="640" /></span></a></div>
<div style="text-align: center;">
<span style="font-size: large;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: large;">Click default security list</span></div>
<div style="text-align: center;">
<span style="font-size: large;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgylBJQtsBl7RULBcr5luEUb1PxzXUJk9ea67sqLkfDtkuisAtzNqIk1ila6079aQ3pY-9jfj_pXgNemSThh1NwYcAtDy44aDbjffpHkUf8BSJCkcEuWT8AzXtwroIu3Yv2fpuZZl7CURA/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"><img border="0" data-original-height="295" data-original-width="1600" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgylBJQtsBl7RULBcr5luEUb1PxzXUJk9ea67sqLkfDtkuisAtzNqIk1ila6079aQ3pY-9jfj_pXgNemSThh1NwYcAtDy44aDbjffpHkUf8BSJCkcEuWT8AzXtwroIu3Yv2fpuZZl7CURA/s640/4.png" width="640" /></span></a></div>
<div style="text-align: center;">
<span style="font-size: large;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: large;">Remove all rules and add a ingress rule like this</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEb1wM9OvmIFS2cZwl4Gb95wQzqXQo4WMWM5UxPuKi_7U9ajXcE6NmUbrvFcmnJg6-Ng94H-yb-0kSbWZV6O1akRcwpniqxi6aznoxFNCkdW5GBXS22hdrvVbQ9OmEqli-sOJH5oXUxi4/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"><img border="0" data-original-height="487" data-original-width="967" height="322" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEb1wM9OvmIFS2cZwl4Gb95wQzqXQo4WMWM5UxPuKi_7U9ajXcE6NmUbrvFcmnJg6-Ng94H-yb-0kSbWZV6O1akRcwpniqxi6aznoxFNCkdW5GBXS22hdrvVbQ9OmEqli-sOJH5oXUxi4/s640/5.png" width="640" /></span></a></div>
<div style="text-align: center;">
<span style="font-size: large;"><br /></span></div>
<div style="text-align: center;">
<span style="font-size: large;">Remove all rules and add a Egress rule like this</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVfeXdbbGFu3VyBW3TCUc-hSUO24jBthAfeoPZ2tjutMtl2XUPppmDskrherKUWFFN0aNEFxbBghhiQQfPHgyzAHxSbdFXcq2esxRGQ8q2HSQHLtDQg5dVHO__9ircg2vrV-Qi4sNsNEk/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="491" data-original-width="957" height="328" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVfeXdbbGFu3VyBW3TCUc-hSUO24jBthAfeoPZ2tjutMtl2XUPppmDskrherKUWFFN0aNEFxbBghhiQQfPHgyzAHxSbdFXcq2esxRGQ8q2HSQHLtDQg5dVHO__9ircg2vrV-Qi4sNsNEk/s640/6.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
這樣還不行!!因為oracle的ubunt有內建ip table,我們把iptables刪除<br />
<br />
ssh進去後輸入<br />
sudo apt remove iptables<br />
<br />
啟用root登入 Enable root login<br />
<br />
<ol>
<li><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;">sudo passwd root</code></li>
<li>sudo nano /etc/ssh/sshd_config</li>
<ul>
<li>PermitRootLogin prohibit-password -> PermitRootLogin <span style="color: red;">yes</span></li>
<li>PasswordAuthentication no -> PasswordAuthentication <span style="color: red;">yes</span></li>
</ul>
<li>sudo service ssh restart</li>
</ol>
<br />
<br />
<div>
<br /></div>
<div>
這樣就設定完成了</div>
<div>
<br /></div>
<div>
接著安裝nginx請參考這篇</div>
<div>
<a href="https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04">https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04</a></div>
<div>
<br />
另外,提醒一下要注意免費額度400是否有在扣款,Instance shape必須是<span style="background-color: #fcfcfc; color: #222222; font-family: , "blinkmacsystemfont" , "segoe ui" , "roboto" , , "ubuntu" , "cantarell" , "helvetica neue" , sans-serif; font-size: 14px;">VM.Standard.E2.1.Micro</span>才是免費的</div>
<div>
<br />
<span style="background-color: #fcfcfc; color: #222222; font-family: , "blinkmacsystemfont" , "segoe ui" , "roboto" , , "ubuntu" , "cantarell" , "helvetica neue" , sans-serif; font-size: 14px;">VM.Standard.E2.1---> </span><span style="background-color: #fcfcfc; font-family: , "blinkmacsystemfont" , "segoe ui" , "roboto" , , "ubuntu" , "cantarell" , "helvetica neue" , sans-serif; font-size: 14px;"><span style="color: red;"><b>Paid</b></span></span><br />
<span style="background-color: #fcfcfc; color: #222222; font-family: , "blinkmacsystemfont" , "segoe ui" , "roboto" , , "ubuntu" , "cantarell" , "helvetica neue" , sans-serif; font-size: 14px;">VM.Standard.E2.1.Micro ---> Free</span></div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com3tag:blogger.com,1999:blog-2290273572250820101.post-56084728039524047082018-10-20T00:40:00.003+08:002018-10-20T00:42:05.973+08:00[教學] Install go & gin on ubuntu 18.04照著官方教學在Ubuntu上有夠難安裝,自己紀錄一下最快的安裝方法<br />
<div>
<br /></div>
<blockquote class="tr_bq">
<span style="font-size: large;">sudo apt install golang-go<br />sudo apt install govendor</span></blockquote>
<br />
That's it!<br />
接著就可以繼續照著gin的教學走下去<br />
<br />
<a href="https://github.com/gin-gonic/gin#installation">https://github.com/gin-gonic/gin#installation</a>Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-24530097567894468922018-09-03T07:58:00.002+08:002018-09-03T07:58:34.969+08:00[筆記] 隱藏Facebook的案讚表情 Hide reactions for facebook<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em;">
<img src="https://lh3.googleusercontent.com/rTCrEbBeo7RSSyL-nsHhMXAzU7TJp5QRSA6hG-JuToGJQ2ovdedSt7RHK4GfifcjPSpBoPz3OEs=w640-h400-e365" /></div>
<br />
<br />
就是有點不舒服,一篇爛廣告文底下還有愛心表情,一定是廠商自己按的,直接用這個外掛隱藏起來,剩下按讚,舒服多了<br />
<br />
<a href="https://chrome.google.com/webstore/detail/hide-reactions-for-facebo/lcaijjlnhkjilbeeafabmlpgpmonnadc">https://chrome.google.com/webstore/detail/hide-reactions-for-facebo/lcaijjlnhkjilbeeafabmlpgpmonnadc</a><br />
<br />
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-17910427942191220122018-08-04T19:04:00.002+08:002018-08-04T19:04:28.606+08:00[筆記] 無法在outlook 2016 使用gmail收信看這裡直接解:<a href="http://office365.miniasp.com/post/Office-365-%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B%E7%B3%BB%E5%88%97-%E5%9C%A8Outlook-2016%E4%B8%8A%E8%A8%AD%E5%AE%9AGmail%E4%BF%A1%E7%AE%B1" target="_blank"> http://office365.miniasp.com/post/Office-365-%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B%E7%B3%BB%E5%88%97-%E5%9C%A8Outlook-2016%E4%B8%8A%E8%A8%AD%E5%AE%9AGmail%E4%BF%A1%E7%AE%B1</a>Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-30492279704826035782018-02-07T02:32:00.001+08:002018-02-07T02:32:08.865+08:00[教學] 批次更改google drive建立副本後的檔名廢話不多說,研究也不超過一小時,直接圖解<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhekyVFbHu9mDialgq8R9mZOHrL4sss8whQbNlW4PShCY6UN_E0DxvL4wWFb0zo-2z6WSE66If6nTUu4nwbXREULTbwj1LxFFhSORP_CVakvBPbjW-VveN7AFvQLoX5gAqmhA13dS7GRi4/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="350" data-original-width="495" height="226" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhekyVFbHu9mDialgq8R9mZOHrL4sss8whQbNlW4PShCY6UN_E0DxvL4wWFb0zo-2z6WSE66If6nTUu4nwbXREULTbwj1LxFFhSORP_CVakvBPbjW-VveN7AFvQLoX5gAqmhA13dS7GRi4/s320/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D2.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
這裡下載</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://github.com/asadman1523/Change-google-drive-copy-filename">https://github.com/asadman1523/Change-google-drive-copy-filename</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-57675685855697768852018-01-13T02:11:00.000+08:002018-01-13T02:11:28.872+08:00[筆記] 在Windows 8.1上安裝CPU Ryzen 5 1600的驅動程式<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em;">
<br /></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em;">
<img height="223" src="https://www.amd.com/system/files/11471-amd-logo-1260x709.jpg" width="400" /></div>
<br />
<div style="margin-left: 1em; margin-right: 1em;">
</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
廢話不多說,先靠北個微軟擋住新CPU在windows10以下的所有更新,還跳出個不相容的畫面<br />
<img height="411" src="https://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=5a4f76f3-4280-4026-a325-b511648c1f2c" style="text-align: center;" width="640" /><br />
解法在這邊,安裝後windows update就可以跑了<br />
<a href="https://github.com/zeffy/wufuc">https://github.com/zeffy/wufuc</a><br />
<br />
超級靠北,Google了好久都沒找到解法,裝置管理員上一堆無法辨識的裝置<br />
<br />
解法: <a href="http://support.amd.com/en-us/download">http://support.amd.com/en-us/download</a><br />
<br />
到上面的網址去找CPU型號,Ryzen 5 1600是AM4系列,結果沒有Win8.1的版本可以下載!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmY44H_8JhZTotydfZoahRjh4Nv9M_BPMsAq0Z58Vpx6Yf-sSRhUq1dYRLL7MU0ATFOkCsMcQOwmnbaeNgD4oZU0bHT9Z6FbsTDpQNIiu7eAl2o2ZzOd2KY7rci8T4mGzOYjtuxVD4WQc/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="523" data-original-width="380" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmY44H_8JhZTotydfZoahRjh4Nv9M_BPMsAq0Z58Vpx6Yf-sSRhUq1dYRLL7MU0ATFOkCsMcQOwmnbaeNgD4oZU0bHT9Z6FbsTDpQNIiu7eAl2o2ZzOd2KY7rci8T4mGzOYjtuxVD4WQc/s640/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" width="464" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
直接選windows 10 64bit吧,然後下載下來執行的時候又會出現</div>
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqO6TKpH537JFk-0i-NPRluJicNtHMQoyeoCINc1UyZcIEWkDY3IKeRgbAZ4-TLVZ2B51jhdDnNVlqDHsxAHB9gEgSUIOevD2mw3yfN58E-LHeBcw0z5FENqGNqQ7o-_DmqtaJZQ0qVew/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" data-original-height="400" data-original-width="900" height="283" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqO6TKpH537JFk-0i-NPRluJicNtHMQoyeoCINc1UyZcIEWkDY3IKeRgbAZ4-TLVZ2B51jhdDnNVlqDHsxAHB9gEgSUIOevD2mw3yfN58E-LHeBcw0z5FENqGNqQ7o-_DmqtaJZQ0qVew/s640/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" width="640" /></a><br />
<br />
沒關係,直接去裝置管理員更新驅動<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7kThVNnyjDJuAeHzz08SfJu58uREql9AsvEbfDluBO4wV7ekj4BOqLHrGKLL_adaTcQHMV5T0aSaGGjra5iNh6_pr5idnaNwuKEP-a_zmKH3NSh-3cIVx8F_2GZfwWnbRurggh_DMJr8/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="464" data-original-width="628" height="472" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7kThVNnyjDJuAeHzz08SfJu58uREql9AsvEbfDluBO4wV7ekj4BOqLHrGKLL_adaTcQHMV5T0aSaGGjra5iNh6_pr5idnaNwuKEP-a_zmKH3NSh-3cIVx8F_2GZfwWnbRurggh_DMJr8/s640/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" width="640" /></a></div>
<br />
預設是 C:\AMD\AMD-Chipset-Drivers<br />
<br />
靠北!! 可以更新,就這樣。<br />
<br />
驅動明明可以更新,執行的軟體卻不給更新,微軟+AMD 我去你的 幹!<br />
<br />
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-48476614875616575842017-02-21T11:16:00.002+08:002020-03-04T15:23:14.452+08:00[教學] 同時連上公司的內網與外網<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAaZw-jkic3aRB7r0Bm97u0ilT8CGRPEcGafMqxjxyhZLbpboHIJkpFUquaF1cDU41SpQC3xv6Z-VlLEtK0BHifBnntZ4_NZ6zU6DzcqYf4ITmwLR_QCCcglCfweE12_bpInrZ71vQhhI/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="238" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAaZw-jkic3aRB7r0Bm97u0ilT8CGRPEcGafMqxjxyhZLbpboHIJkpFUquaF1cDU41SpQC3xv6Z-VlLEtK0BHifBnntZ4_NZ6zU6DzcqYf4ITmwLR_QCCcglCfweE12_bpInrZ71vQhhI/s400/2.png" width="400" /></a></div>
<br />
<br />
此篇教學給公司會擋住外網(ptt、google服務),必須頻繁切換網卡的人使用<br />
<br />
前提是必須有<b>兩張網卡</b>,通常是<b>USB無線網卡</b>連外網,<b>有線網路</b>連內網<br />
<a href="https://drive.google.com/file/d/0B6iC55nrTbdENGQ3R3J3b0VoUUk/view?usp=sharing" target="_blank"><br /></a>
<a href="https://drive.google.com/open?id=0B6iC55nrTbdEbjRqX3ZFVFZZa2s" target="_blank">懶人包檔案下載</a><br />
<br />
<a name='more'></a>前置設定,<br />
<br />
<ul>
<li>確認內網可以連線</li>
<li>將USB網卡設定好,連至外網</li>
<li>此時你的電腦會有兩組 IP ,一個外網的,一個內網的</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTBhqaOxF6tufO2eM1txQe_8uT-dAdWbaWpVyAG1B3LQCN8yWgeMI1aogKlX3KsiP-LDsVzopCrFO-6WG2LqsQvmCI1sjtHZF1gfj4XxDe7-EWHDvCxxovrdKFiXn2bnLmdge_S2Y7W2A/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTBhqaOxF6tufO2eM1txQe_8uT-dAdWbaWpVyAG1B3LQCN8yWgeMI1aogKlX3KsiP-LDsVzopCrFO-6WG2LqsQvmCI1sjtHZF1gfj4XxDe7-EWHDvCxxovrdKFiXn2bnLmdge_S2Y7W2A/s1600/4.png" /></a></div>
<br />
1.使用ForceBindIp 軟體,強制chrome用指定的IP上網<br />
安裝 <a href="https://r1ch.net/projects/forcebindip" target="_blank">ForceBindIp</a> <a href="https://r1ch.net/assets/forcebindip/ForceBindIP-1.31-Setup.exe" target="_blank">(點我下載)</a> ,安裝時會要求先裝其他微軟的library<br />
2.打開Command Line,輸入 route print<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO88fQQYq_2iJSAsJ8imYTE7m8X3KHkv8BPm8lWKwrWvh5Ea2aeGPeaTJ3Wbr1KTzRmFV2LV3p82Z7C082z0K84fMSzE6TBr9Nofa6WsHv-uv7g223lh4INdXw8rvMqktW4I67sedxqak/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO88fQQYq_2iJSAsJ8imYTE7m8X3KHkv8BPm8lWKwrWvh5Ea2aeGPeaTJ3Wbr1KTzRmFV2LV3p82Z7C082z0K84fMSzE6TBr9Nofa6WsHv-uv7g223lh4INdXw8rvMqktW4I67sedxqak/s400/1.png" width="400" /></a></div>
可以看到兩個閘道<br />
<br />
<ul>
<li><b><span style="color: blue;"> 10.78.20.1</span></b><span style="color: blue;"> </span>是內網IP</li>
<li><b><span style="color: blue;"> 192.168.32.9</span></b>是WiFi網卡,AP分配的虛擬IP (不用管是不是虛擬,可以連外網就對了)</li>
</ul>
<br />
3.打開懶人包的Pcman.bat,會看到下面的文字<br />
::----------------------------------------------------------------------------------------------------------<br />
for /f "tokens=1-2 delims=:" %%a in ('ipconfig^|find "IPv4" ^|find "<b><span style="color: blue;">192</span></b>"') do set ip=%%b<br />
set ip=%ip:~1%<br />
<br />
cd C:\Program Files (x86)\ForceBindIP<br />
ForceBindIP.exe %ip% <span style="color: red;"><b>C:\Program Files (x86)\Google\Chrome\Application\chrome.exe</b></span><br />
<span style="color: red;"><span style="color: black;">::----------------------------------------------------------------------------------------------------------</span></span><span style="color: blue;"> </span><br />
<span style="color: blue;"><br /></span>
<b><span style="color: blue;">藍色改為Wifi網卡IP位址的關鍵字,"192"或者"192.168"都可以</span></b><br />
<b><span style="color: red;">紅色改為要綁定的應用程式路徑</span></b><br />
<span style="color: red;"><b>chrome:</b></span><br />
<span style="color: red;"><b>C:\Program Files (x86)\Google\Chrome\Application\chrome.exe</b></span><br />
<b><span style="color: red;"><br /></span></b>
<br />
點選桌面的 Pcman.bat ,即可使用指定的網路連線<br />
<br />
P.S<br />
<br />
使用Google Chrome就算關閉還是會在背景執行,要連上外網的話,記得完全關閉Chrome<br />
<br />
取消這個選項<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUIYzN2YHuaUo9CNzfZhpui_Pn8oecjTFziCiwQRUwBPoABGYRcZqldAmSfj4CDzUDlehv0ticprjmu3mAPyeeBdkeu0sLelLaX2vD4E9Ujr1JRdiz3wFczc5CQXwvbCoiZ1U62iMryM/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="215" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUIYzN2YHuaUo9CNzfZhpui_Pn8oecjTFziCiwQRUwBPoABGYRcZqldAmSfj4CDzUDlehv0ticprjmu3mAPyeeBdkeu0sLelLaX2vD4E9Ujr1JRdiz3wFczc5CQXwvbCoiZ1U62iMryM/s400/3.png" width="400" /></a></div>
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-32788251260833347702017-01-12T13:47:00.000+08:002017-01-12T15:45:40.127+08:00[教學] Android Studio 2.2.3 跑 OpenCV 3.0 Sample<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT_RniK3-f9GhV5dwdBKNQpDUEELb6M4b_fi3MaZH82yQRUDG9l7RxwERMpf8NQdUNW4WbXaDMpPHB4M-2uGCo2pbTDF-Ck1EHSHWXhmTYbOvXKvYtGXK2m1ubV3qVBgejWBRe1b-JBMg/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT_RniK3-f9GhV5dwdBKNQpDUEELb6M4b_fi3MaZH82yQRUDG9l7RxwERMpf8NQdUNW4WbXaDMpPHB4M-2uGCo2pbTDF-Ck1EHSHWXhmTYbOvXKvYtGXK2m1ubV3qVBgejWBRe1b-JBMg/s200/12.png" width="200" /></a>&<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVCyqv1K4r_mHZ36ZRdOspJAaVrzJLnEJ6gPAO7hv-Je3Dk96lLVx832kn1zjUjtcwvXcdu7xuMO__LG9PmoHX39MtTtAJY0NO36BZD7VYXMs-zHvYPEoVYwfj0HE3tFI2u-c-70YJW48/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="176" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVCyqv1K4r_mHZ36ZRdOspJAaVrzJLnEJ6gPAO7hv-Je3Dk96lLVx832kn1zjUjtcwvXcdu7xuMO__LG9PmoHX39MtTtAJY0NO36BZD7VYXMs-zHvYPEoVYwfj0HE3tFI2u-c-70YJW48/s200/13.png" width="200" /></a></div>
<br />
如題,FaceDetection這個專案需要用到JNI,網路上教學一堆阿哩阿砸,很多都是<a href="https://developer.android.com/studio/index.html" target="_blank">Android </a><br />
<br />
<a href="https://developer.android.com/studio/index.html" target="_blank">Studio</a>測試版本的作法,現在已經出到2.2.3穩定版了,做法簡單很多(不過我還是用不出來,<br />
<br />
靠同事幫忙指導才成功的)。<br />
<br />
測試過的版本: OpenCV 3.0 Sample、OpenCV 3.2 Sample<br />
<br />
<a name='more'></a><br />
<br />
前置作業:<br />
<br />
<ol>
<li>更新Android Studio至最新版</li>
<li>打開SDK Manager安裝以下SDK Tools</li>
</ol>
<br />
<br />
<ul><ul>
<li>CMAKE</li>
<li>LLDB</li>
<li>NDK</li>
</ul>
</ul>
如圖:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxTyLJT1VQjT7cspoKj7rl5zvF2qz45ibm0l_A6bcY9rNrxk4oGP9HKgiG-TtiGS-9wJgBA_vB_GxSsyyJILe7o-TlQrSzDisrNC6d6obpTljELGNxOiqMYwJp1DEf_1DfXOfSFN-YZqs/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxTyLJT1VQjT7cspoKj7rl5zvF2qz45ibm0l_A6bcY9rNrxk4oGP9HKgiG-TtiGS-9wJgBA_vB_GxSsyyJILe7o-TlQrSzDisrNC6d6obpTljELGNxOiqMYwJp1DEf_1DfXOfSFN-YZqs/s400/2.png" width="400" /></a></div>
<br />
<br />
下載<a href="http://opencv.org/downloads.html" target="_blank">OpenCV for Android</a>、解壓縮至C:\<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik5aeh58dcjwOgLGzZLk9y9aedKvjrMwFtnKHsX_xpmU5S7HwJIuAyGnu-dklKPuNz5LHRXrzoldO5T_HBYRitaiLfD4yWWMS1FyDo2NSiR2qBdotmFCDFJQ6k8Os5ftYthPYVUm-GuJ4/s1600/1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="202" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik5aeh58dcjwOgLGzZLk9y9aedKvjrMwFtnKHsX_xpmU5S7HwJIuAyGnu-dklKPuNz5LHRXrzoldO5T_HBYRitaiLfD4yWWMS1FyDo2NSiR2qBdotmFCDFJQ6k8Os5ftYthPYVUm-GuJ4/s400/1.PNG" width="400" /></a></div>
<br />
<br />
打開Android Studio選擇Import project (Eclipse ADT, Gradle , etc.)<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTTuTqtJrJDiUhPVuI9YBcY7KpBwxc18sYH5NuzuOG42YoBA8xmmCurMgw_R8J3WuuPpjXHk5fHkKgazoWx9nF-lYuJOREpn6KAcEpqEk5XI8M-cS4BBqHOpm35yPJRmdRccGBF1JCII8/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="241" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTTuTqtJrJDiUhPVuI9YBcY7KpBwxc18sYH5NuzuOG42YoBA8xmmCurMgw_R8J3WuuPpjXHk5fHkKgazoWx9nF-lYuJOREpn6KAcEpqEk5XI8M-cS4BBqHOpm35yPJRmdRccGBF1JCII8/s400/3.png" width="400" /></a></div>
<br />
<br />
選擇剛剛解壓縮的C:\OpenCV-android-sdk\samples底下的FaceDetection Project<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisOl7_D7EOnyNfKvHLBVqp1YMg6rKutZ-xgqP6yuxL68Qf1SiteJnfG7sFZShCcb-ay9Bk0w8bGheBLRQQ2LM8_G8ShY29VXtoKvbadZjhwrhWx5ZBvb57SO7N_AmnzLyUjaWA8lSQZjo/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisOl7_D7EOnyNfKvHLBVqp1YMg6rKutZ-xgqP6yuxL68Qf1SiteJnfG7sFZShCcb-ay9Bk0w8bGheBLRQQ2LM8_G8ShY29VXtoKvbadZjhwrhWx5ZBvb57SO7N_AmnzLyUjaWA8lSQZjo/s400/5.png" width="330" /></a></div>
<br />
<br />
直接Next<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYW5KJh3i8zFuwhKD7ePQ-aCFfR0OhBUhWwRuea7Zl3O8EFngs18PKbx_e5NWK0j1JRKXUQOGm2lsaDs05xr5F6fT3LA_VoXmlzoZo77p0mCCwzLpJ1w52Bgro29w6M2A0DB5ZGJ4xTHk/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="365" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYW5KJh3i8zFuwhKD7ePQ-aCFfR0OhBUhWwRuea7Zl3O8EFngs18PKbx_e5NWK0j1JRKXUQOGm2lsaDs05xr5F6fT3LA_VoXmlzoZo77p0mCCwzLpJ1w52Bgro29w6M2A0DB5ZGJ4xTHk/s400/6.png" width="400" /></a></div>
<br />
<br />
直接Finish<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzb_MQMPxwC7uuWdHG7jH0ubIwsbARhyPUPD4oddnzpKt52QddZEALYdXh7H1JZ2GSvoHMtv2B77qgevpbuqjIW_obbXe1dH-s6q17IKC4Wpqll4iOht_0LVrt7q8In96mzK5KxRmEe3g/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="365" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzb_MQMPxwC7uuWdHG7jH0ubIwsbARhyPUPD4oddnzpKt52QddZEALYdXh7H1JZ2GSvoHMtv2B77qgevpbuqjIW_obbXe1dH-s6q17IKC4Wpqll4iOht_0LVrt7q8In96mzK5KxRmEe3g/s400/7.png" width="400" /></a></div>
<br />
<br />
打開FacceDetection的build.gradle<br />
<ol>
<li>將compileSdkVersion、buildToolsVersion、minSdkVersion、targetSdkVersion改成創新Android專案時的預設值</li>
<li>並在buildTypes block下方加上</li>
</ol>
<br />
<blockquote class="tr_bq">
externalNativeBuild {<br />
ndkBuild {<br />
path 'src/main/jni/Android.mk'<br />
}<br />
}</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0wtzQo3-V6V-VrYdw8b5bYbndA0ZrPyOJnHfALFuldVe6xw6JVflX7L79buVUnrq_WiEMV5J_0_rwy33TfM0iH5Af8J_WFfFFWK70-0R2ttlVQJcJ7hNd32IHk8FJVlKzlxV_T39e0Tg/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="297" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0wtzQo3-V6V-VrYdw8b5bYbndA0ZrPyOJnHfALFuldVe6xw6JVflX7L79buVUnrq_WiEMV5J_0_rwy33TfM0iH5Af8J_WFfFFWK70-0R2ttlVQJcJ7hNd32IHk8FJVlKzlxV_T39e0Tg/s400/8.png" width="400" /></a></div>
<br />
<br />
換成Project視角,打開src/main的資料夾<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnNeV5xY8yKywoFZo0NitmbOZK7nCJGsBTtTfjrZs_lBNSDsvsP-63MazOlFfJXfX-hIZN4V1prW5BZTFVi47UbEuPtpTqyzIVJIH2Pdhimd9tMC-YXMsfucqRMdCuRoxnZf_x0hggxo0/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnNeV5xY8yKywoFZo0NitmbOZK7nCJGsBTtTfjrZs_lBNSDsvsP-63MazOlFfJXfX-hIZN4V1prW5BZTFVi47UbEuPtpTqyzIVJIH2Pdhimd9tMC-YXMsfucqRMdCuRoxnZf_x0hggxo0/s400/9.png" width="315" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
將C:\OpenCV-android-sdk\sdk\native底下的libs複製過去<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3PVrDKr3rhSX2oIrz6ze2AItMKRWFZdT8xHHxTOpxu1v70wE96gpwCG9A1zibtsywWPuAzfIDJvxRuRCVxo-Z1sCTMygbdNa4r4DyBpc6_OyFixGJuzRdyjCJTCWU6SpzgfFDm8A-pkw/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="117" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3PVrDKr3rhSX2oIrz6ze2AItMKRWFZdT8xHHxTOpxu1v70wE96gpwCG9A1zibtsywWPuAzfIDJvxRuRCVxo-Z1sCTMygbdNa4r4DyBpc6_OyFixGJuzRdyjCJTCWU6SpzgfFDm8A-pkw/s400/10.png" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
編輯src/main/jni底下的Android.mk<br />
<br />
將底下兩行註解拿掉並設定為on<br />
<blockquote class="tr_bq">
OPENCV_CAMERA_MODULES:=on<br />
OPENCV_INSTALL_MODULES:=on</blockquote>
<br />
將<br />
<blockquote class="tr_bq">
include ../../sdk/native/jni/OpenCV.mk</blockquote>
改為<br />
<blockquote class="tr_bq">
include C:/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk</blockquote>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGTrjQUNBk3IRHugi1wbx0m_GMM15UVWFr9g6c7Hnx2Wf_LojVbJytj6Udo4v1TfsLju_YYiTOdv1mhGiE3U3KS6JgGXdZ7iP5Ahv1sFM1ekZlQF3nRnOstuvHPk5PI-Q_-ICk97a9X7s/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGTrjQUNBk3IRHugi1wbx0m_GMM15UVWFr9g6c7Hnx2Wf_LojVbJytj6Udo4v1TfsLju_YYiTOdv1mhGiE3U3KS6JgGXdZ7iP5Ahv1sFM1ekZlQF3nRnOstuvHPk5PI-Q_-ICk97a9X7s/s320/11.png" width="320" /></a></div>
<br />
Build & Run on your phone<br />
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-41091048257324813512016-11-19T01:43:00.002+08:002016-11-19T01:43:57.657+08:00[筆記] MQTT安裝教學版本有點舊,目前用Ubuntu14.04安裝都會遇到困難,筆記一下<br />
<br />
<br />
<ol>
<li> PHP MYSQL APACHE自己安裝好,跟這篇沒關係</li>
<li>加入source</li>
</ol>
<div>
<blockquote class="tr_bq">
<ul style="color: #525252; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;">
<li style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa</li>
</ul>
<ul style="color: #525252; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;">
<li style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">sudo apt-get update </li>
</ul>
</blockquote>
<blockquote class="tr_bq">
<ul style="color: #525252; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;">
<li>sudo apt-get install libmosquitto-dev</li>
<li>sudo apt-get install php5-dev</li>
</ul>
</blockquote>
<br />
剩下的跟著做就好<br />
https://github.com/mgdm/Mosquitto-PHP#installation<br />
<br />
我記得要安裝php5-dev才有phpize<br />
<br />
<br />
</div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-65737146963754558632016-10-06T05:09:00.002+08:002016-10-06T05:09:18.586+08:00[筆記] 設定WDS Client,讓AP接收無線訊號轉成有線訊號引用來源:<a href="http://jjs6216tw.blogspot.tw/2012/07/1210wds.html">http://jjs6216tw.blogspot.tw/2012/07/1210wds.html</a><br />
<br />
<br />
重點:別去點WDS的設定頁面<br />
<br />
直接把AP模式改成Client,填上目標要接受的SSID,設定DHCP為預設,結束。Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-35581183904526437552016-10-01T15:34:00.002+08:002016-10-01T15:34:55.028+08:00[筆記] 在Parallels Desktop 10 上的 Ubuntu 15.10 安裝Parallels Tools<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVF54igsK8kxbgZF74jfGXkprQO5NheRAr30qjTkUJBm3lequEPJVblG3yaYgS_4lInNrOXczRSylWnMQWGy1unWoCFuMXkg310pZUutSX-moQHQDGUBOzpb2x__ivxMgJEMd9RJX8Ek4/s1600/1_parallels_logo_RGB.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="101" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVF54igsK8kxbgZF74jfGXkprQO5NheRAr30qjTkUJBm3lequEPJVblG3yaYgS_4lInNrOXczRSylWnMQWGy1unWoCFuMXkg310pZUutSX-moQHQDGUBOzpb2x__ivxMgJEMd9RJX8Ek4/s320/1_parallels_logo_RGB.jpg" width="320" /></a></div>
<br />
參考來源: <a href="https://journal.dedasys.com/2015/10/26/parallels-with-ubuntu-15-10/">https://journal.dedasys.com/2015/10/26/parallels-with-ubuntu-15-10/</a><br />
參考來源: <a href="http://www.linuxdiyf.com/linux/18808.html">http://www.linuxdiyf.com/linux/18808.html</a><br />
<br />
抱怨一下,Parallels Desktop對新版的Ubuntu支援真的很鳥,除非花$50鎂去更新Parallels 11以上,否則安裝新版的作業系統都會有相容性問題。 --抱怨完畢<br />
<br />
以下是在Parallel Desktop 10安裝Ubuntu 15.10後,繼續安裝Parallels Tools失敗的解決方法,不附圖文,文字敘述<br />
<br />
1.將Parallels Tools光碟的檔案全部複製出來,到新的資料夾 pd<br />
2.將kmods/ 底下的prl_mod.tar 置換成新的 <a href="https://drive.google.com/file/d/0B6iC55nrTbdEUUZ6VmZvUnlTUDA/view?usp=sharing" target="_blank">prl_mod.tar (點我下載)</a><br />
3.將kmods/ tools/ installer/ 三個資料夾屬性改為777<br />
<br />
chmod -R 777 ./kmods<br />
chmod -R 777 ./tools<br />
chmod -R 777 ./installer<br />
<br />
4.在根目錄執行install<br />
cd pd/<br />
chmod +x ./install<br />
sudo ./install<br />
<br />
接著就會有GUI跑出來,照著安裝即可。<br />
<br />
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-42984414774991925422016-06-21T22:49:00.000+08:002016-06-23T14:29:33.834+08:00[教學] 實作Google Firebase的Notification 使用Objective-C<div class="" data-block="true" data-editor="cp0s7" data-offset-key="7ojir-0-0" style="background-color: white;">
<div class="_1mf _1mj" data-offset-key="7ojir-0-0" style="direction: ltr; position: relative;">
<div style="color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; line-height: 18px; white-space: pre-wrap;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBpUFcbGJ7GPkEsyhBl2-mud5OQBf4Lux5iKQ7U7P7pUX2bfgwqDl3Zp3STdOE9nxvUcP1Fis24S7hE35TAddrGvYhvGJAMDnABpa9rnchG30z-H_o020xoTgZowaxYbuULgT7KeCahFQ/s1600/image00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBpUFcbGJ7GPkEsyhBl2-mud5OQBf4Lux5iKQ7U7P7pUX2bfgwqDl3Zp3STdOE9nxvUcP1Fis24S7hE35TAddrGvYhvGJAMDnABpa9rnchG30z-H_o020xoTgZowaxYbuULgT7KeCahFQ/s320/image00.png" width="320" /></a></div>
</div>
</div>
<div class="_1mf _1mj" data-offset-key="7ojir-0-0" style="direction: ltr; position: relative;">
<ul>
<li><span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif; font-size: 15px; line-height: 18px; white-space: pre-wrap;">Firebase是今年Google在開發者大會發表的App分析工具,也把推播整合了進去,以下示範實作推播,程式碼部分直接用Github上的範例專案</span></li>
<li><a href="https://github.com/firebase/quickstart-ios" style="font-family: helvetica, arial, sans-serif; font-size: 15px; line-height: 18px; white-space: pre-wrap;">https://github.com/firebase/quickstart-ios</a></li>
<li><span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif; font-size: 15px; line-height: 18px; white-space: pre-wrap;">說穿了就是在Apple的APNS中間夾了一層Google做的interface,讓開發者不用弄一些伺服器那邊的麻煩手續</span></li>
<li><span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif; font-size: 15px; line-height: 18px; white-space: pre-wrap;">圖片多,請注意網路流量。</span></li>
</ul>
<ul>
</ul>
</div>
<div class="_1mf _1mj" data-offset-key="7ojir-0-0" style="color: #1d2129; direction: ltr; font-family: helvetica, arial, sans-serif; font-size: 15px; line-height: 18px; position: relative; white-space: pre-wrap;">
<span data-offset-key="7ojir-0-0"></span><br />
<a name='more'></a></div>
<div class="_1mf _1mj" data-offset-key="7ojir-0-0" style="color: #1d2129; direction: ltr; font-family: helvetica, arial, sans-serif; font-size: 15px; line-height: 18px; position: relative; white-space: pre-wrap;">
<span data-offset-key="7ojir-0-0">1.建立新專案</span></div>
</div>
<br />
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="d8nhu-0-0" style="background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; line-height: 18px; white-space: pre-wrap;">
</div>
<br />
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXPhvV1cT7XZczEsfkrqWZg4OhQIdpXE0TW06be_YIoGBWUNL-fFKVNp4vMV3ct5b5x1DXXjZeo0pmXaomkYYOIqRbMRQWm-AXQb2lTrc24tvFTOoVKkwPmIzXR77T9vORLCHwGl19SvI/s1600/f1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="451" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXPhvV1cT7XZczEsfkrqWZg4OhQIdpXE0TW06be_YIoGBWUNL-fFKVNp4vMV3ct5b5x1DXXjZeo0pmXaomkYYOIqRbMRQWm-AXQb2lTrc24tvFTOoVKkwPmIzXR77T9vORLCHwGl19SvI/s640/f1.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
將專案的Bundle ID記下來</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsN_-ruZP-2t5h26VcQhNQunG3XUlATRZbuJNGUU2FKFl63fjG6UUt3ewF-NtVSYlopanP50UFFqHy7rHaMqrYyNUo5V38cuOdXwg25NscQZm7ScRy4TRYApqY5iA4CDIlLeibT_sHi48/s1600/f8.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="353" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsN_-ruZP-2t5h26VcQhNQunG3XUlATRZbuJNGUU2FKFl63fjG6UUt3ewF-NtVSYlopanP50UFFqHy7rHaMqrYyNUo5V38cuOdXwg25NscQZm7ScRy4TRYApqY5iA4CDIlLeibT_sHi48/s640/f8.PNG" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">新增說明文字</td></tr>
</tbody></table>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="6en8m-0-0" style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<div class="_1mf _1mj" data-offset-key="6en8m-0-0" style="direction: ltr; position: relative;">
<span data-offset-key="6en8m-0-0">2.使用terminal的cocopods初始化專案,不會使用cocopods的,在此不教學喔!</span></div>
</div>
<blockquote class="tr_bq">
<span style="color: blue;">cd FirebasePusher/<br />pod init</span></blockquote>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
</div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="2qus1-0-0" style="-webkit-text-stroke-width: 0px; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: start; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
</div>
<div style="-webkit-text-stroke-width: 0px; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
</div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="fkvk8-0-0" style="-webkit-text-stroke-width: 0px; background-color: white; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px;">
<div class="_1mf _1mj" data-offset-key="fkvk8-0-0" style="color: #1d2129; direction: ltr; position: relative;">
<span data-offset-key="fkvk8-0-0">在專案根目錄打開PodFile,填入</span></div>
<blockquote class="tr_bq" style="direction: ltr; position: relative;">
<span style="color: blue;">pod 'Firebase'<br />pod 'Firebase/Messaging'</span></blockquote>
</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdgCspQotX525KdN6KzC0cCwGIVmi3mrGptJq2HJzBBi1Sqi8awQAucFuZK1SrT8mjKrEpRLNtesW7ir4RlMHr3oakE98ZmMgSplQblxtdqGX8XmhC4FFFlKfekKTp1Nchi3WwnyCiseM/s1600/f3.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="344" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdgCspQotX525KdN6KzC0cCwGIVmi3mrGptJq2HJzBBi1Sqi8awQAucFuZK1SrT8mjKrEpRLNtesW7ir4RlMHr3oakE98ZmMgSplQblxtdqGX8XmhC4FFFlKfekKTp1Nchi3WwnyCiseM/s640/f3.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
使用terminal安裝Firebase</div>
<blockquote class="tr_bq" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<span style="color: blue;">pod install</span></blockquote>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib8E5NRUgSRKz85-Ta7obIYaUSv_LJqRmaO5fpXv-ItJf-s5t1FUJtYhEf6dPKJNzLrTgG49sWnau_utg42HYq9IGiESU0dc2QL1x1fNXg8ZL1X3U_Hj4OIFOh_0YMXM71yglz0qbn57I/s1600/f4.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="387" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib8E5NRUgSRKz85-Ta7obIYaUSv_LJqRmaO5fpXv-ItJf-s5t1FUJtYhEf6dPKJNzLrTgG49sWnau_utg42HYq9IGiESU0dc2QL1x1fNXg8ZL1X3U_Hj4OIFOh_0YMXM71yglz0qbn57I/s640/f4.PNG" width="640" /></a></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
3.在Firebase網站,建立新專案</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrm9LM9xJ87wkjBx-BcP_mRKgyfc9CtdHuzwZr5vAFewmKX5XbKP8ZOIeTWu3ZgBPlOkvnXmcJiiAwUH4QTw6RpU0Re45P2dowacs4pSYA9Pk3P8IT11YvTVz-C_ZT1y70cmCRPyKxE-w/s1600/f5.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="321" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrm9LM9xJ87wkjBx-BcP_mRKgyfc9CtdHuzwZr5vAFewmKX5XbKP8ZOIeTWu3ZgBPlOkvnXmcJiiAwUH4QTw6RpU0Re45P2dowacs4pSYA9Pk3P8IT11YvTVz-C_ZT1y70cmCRPyKxE-w/s640/f5.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIbc7gULiONrCin_mt4yXAVPgoJj0w4VHz4G7bEdXGV7f2wEH0OLEvX3k1kFSCUO4k5FyNwzfL7XmKQT8H3uHXwUFi-TgPytjCj4B5KxASpQjppGgEkSdcViOE-mIZyTFMlGZtGPCXPwc/s1600/f6.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="561" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIbc7gULiONrCin_mt4yXAVPgoJj0w4VHz4G7bEdXGV7f2wEH0OLEvX3k1kFSCUO4k5FyNwzfL7XmKQT8H3uHXwUFi-TgPytjCj4B5KxASpQjppGgEkSdcViOE-mIZyTFMlGZtGPCXPwc/s640/f6.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
選擇中間,加入iOS SDK</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDtNv7-nsrjvErOH123D0Souc09RLgnObilCxuhaNK2chUThzBiSzxfj9t6s6MFC7ApGKDCTYJuLov76KCTWcIN2tX477z8yKp0wnP-MXRQoM-wQWP4DW4xrLghKfCijnvZCTLnElrAbk/s1600/f7.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="328" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDtNv7-nsrjvErOH123D0Souc09RLgnObilCxuhaNK2chUThzBiSzxfj9t6s6MFC7ApGKDCTYJuLov76KCTWcIN2tX477z8yKp0wnP-MXRQoM-wQWP4DW4xrLghKfCijnvZCTLnElrAbk/s640/f7.PNG" width="640" /></a></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj63wsnHre01-14iEtj7E0La5w8I0vEcrmIjWjX5ZR4mKBk6rOHCCPEok17FX5qCwoadBoz3gTh8WbVUOyfPt89Xh4ngWsWtq2Zk_2oCd5GHUKj06TZy-_4jiRTFuSVBff0p2g5MB-1tFs/s1600/f9.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj63wsnHre01-14iEtj7E0La5w8I0vEcrmIjWjX5ZR4mKBk6rOHCCPEok17FX5qCwoadBoz3gTh8WbVUOyfPt89Xh4ngWsWtq2Zk_2oCd5GHUKj06TZy-_4jiRTFuSVBff0p2g5MB-1tFs/s640/f9.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
8.將下載下來的plist丟進Xcode</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSyUeADPdrBGfUuVPvUD0C4rBr0fNoYyfvHZLqBATcN-HeVLLk1SlaHDRrfTmKC6Pkzf7nhyw_OqlQVG3iYqoShWKHllNzWXBDFITyA-n2Byx9P1hc6d4DnAOL6GZ1LF1vXOY55nsQUCM/s1600/f10.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="406" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSyUeADPdrBGfUuVPvUD0C4rBr0fNoYyfvHZLqBATcN-HeVLLk1SlaHDRrfTmKC6Pkzf7nhyw_OqlQVG3iYqoShWKHllNzWXBDFITyA-n2Byx9P1hc6d4DnAOL6GZ1LF1vXOY55nsQUCM/s640/f10.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi86crmlg_LXy1MDewB5P3n2in44rz0L81xNcufuQrW_wheiALJDYuMXo8H2IKKKGsdzwjfryTHTNiPSphYDP0CBbE_JRg2UPUbRkKHPsFpu_vW5Ytf6U6f6BxWkRR2OVYrHpQHIbSWEcg/s1600/f11.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="380" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi86crmlg_LXy1MDewB5P3n2in44rz0L81xNcufuQrW_wheiALJDYuMXo8H2IKKKGsdzwjfryTHTNiPSphYDP0CBbE_JRg2UPUbRkKHPsFpu_vW5Ytf6U6f6BxWkRR2OVYrHpQHIbSWEcg/s640/f11.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
記得選Copy items if needed</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbjlFW4CiU5LfD2noZKpMSXKKIK1WTxJEfd4Q2knkmRWODRGuBoEFriCQgK7GeA8rmlGwxrbVgiJ3ldGsaFoRVua6Td0evIolwCn4oEfa26PZ1szcWJ6uZjQkVjdFpTtwijesoMOHjKgk/s1600/f12.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbjlFW4CiU5LfD2noZKpMSXKKIK1WTxJEfd4Q2knkmRWODRGuBoEFriCQgK7GeA8rmlGwxrbVgiJ3ldGsaFoRVua6Td0evIolwCn4oEfa26PZ1szcWJ6uZjQkVjdFpTtwijesoMOHjKgk/s640/f12.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
4.接下來製作"推播憑證授權要求",打開鑰匙圈存取</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA_Dtha-mJRlu08XJmyidC1EevCSkWubN76wrtKogOlDIyKqg5QICA8AVEaPwpOhRf1tta4zoFinSqhuruhlWxCp1WZL7R8oavw6cqhMSYdFPOAXonYPKp479l5_LVpNoczh2V_R02mAs/s1600/f13.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="242" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA_Dtha-mJRlu08XJmyidC1EevCSkWubN76wrtKogOlDIyKqg5QICA8AVEaPwpOhRf1tta4zoFinSqhuruhlWxCp1WZL7R8oavw6cqhMSYdFPOAXonYPKp479l5_LVpNoczh2V_R02mAs/s640/f13.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
填入你的Email與名字,記得選"儲存到磁碟"</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaY943JCZQo48h5cHXXJ1l9CsBNrPoWvimN4xT7t6yFcvpcrKKkZQwyNEcSCR9oF0vIro16udLGcrbKXxqEnj6wKVfG4c5nSEdjxVVud4_P0vGYCkAW_rAtTV01xtvSXkv2Ur_IUvMsSg/s1600/f14.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="450" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaY943JCZQo48h5cHXXJ1l9CsBNrPoWvimN4xT7t6yFcvpcrKKkZQwyNEcSCR9oF0vIro16udLGcrbKXxqEnj6wKVfG4c5nSEdjxVVud4_P0vGYCkAW_rAtTV01xtvSXkv2Ur_IUvMsSg/s640/f14.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
將憑證儲存到桌面</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2GVQF2U7bf1R1m7-wsLbkwv1KOyYAU_79smVcOx7cNwkgXwA942jrd_5zogQxoVqFXsaTvVx04z50LxrSnT4uRqD5AKA6vIEQoSv0cpC3BZrzzRrmrahNvsR0DUs1HNA_zidn57V54Q8/s1600/f15.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2GVQF2U7bf1R1m7-wsLbkwv1KOyYAU_79smVcOx7cNwkgXwA942jrd_5zogQxoVqFXsaTvVx04z50LxrSnT4uRqD5AKA6vIEQoSv0cpC3BZrzzRrmrahNvsR0DUs1HNA_zidn57V54Q8/s640/f15.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
5.在Apple Developer新增App ID</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjKw0yyYNbxD_7iOz-s7V8dtBcg2Wv3kUlZRtvcfV_oEMP2WwqzB_A1DML7F1nkjTf91vWa-to33OBElvSjbQ8pPUDs0jf5dAo04DKEU00aUy6Ds4pHRfL6_yKVd5DA3QTSr2p1al9NaU/s1600/f16.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="336" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjKw0yyYNbxD_7iOz-s7V8dtBcg2Wv3kUlZRtvcfV_oEMP2WwqzB_A1DML7F1nkjTf91vWa-to33OBElvSjbQ8pPUDs0jf5dAo04DKEU00aUy6Ds4pHRfL6_yKVd5DA3QTSr2p1al9NaU/s640/f16.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
填入App 名稱</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX_mbmAkS9psXWe0W2BSCUwopQcDZZgIAXtNx7KFOAceLxQYCmHNc3Jk9jTjlZyWuiBo95hoePAya6WEkgWWYbwi_Lwtto4QJEX3PB4fUNHEAYLzchVffgypeXU8V6vvGqvd_8llKdUNY/s1600/f17.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="624" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX_mbmAkS9psXWe0W2BSCUwopQcDZZgIAXtNx7KFOAceLxQYCmHNc3Jk9jTjlZyWuiBo95hoePAya6WEkgWWYbwi_Lwtto4QJEX3PB4fUNHEAYLzchVffgypeXU8V6vvGqvd_8llKdUNY/s640/f17.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
填入剛剛記下來的Bundle ID</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAi2alIcl6hrdQ9KVaYnD1VmGZfVizP6i7sgNEe8GkhtNvTEtLe6fscT_zPTS_QbETGcwwLumbK-bp1_SaxeKD6ckj3DFkNdIqn0H13lVvhRega5anur1M-Tx2ETcHviQijq4OUPnkQQ/s1600/f18.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="298" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAi2alIcl6hrdQ9KVaYnD1VmGZfVizP6i7sgNEe8GkhtNvTEtLe6fscT_zPTS_QbETGcwwLumbK-bp1_SaxeKD6ckj3DFkNdIqn0H13lVvhRega5anur1M-Tx2ETcHviQijq4OUPnkQQ/s640/f18.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
記得勾選Push Notifications,按下Continue</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCt_IJERBjVKkXJr40FPeFh4stfF4dyZ7f5BqnBMVAfTNn5pQu99r-JqAinjH4JVXZbsUK3pXpHt8vqavfH7GNTucpqZetKVWRkIT6lhyak7LjMSR45HWk0rztfQFz7Pk4hzCvXkShO6I/s1600/f19.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="460" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCt_IJERBjVKkXJr40FPeFh4stfF4dyZ7f5BqnBMVAfTNn5pQu99r-JqAinjH4JVXZbsUK3pXpHt8vqavfH7GNTucpqZetKVWRkIT6lhyak7LjMSR45HWk0rztfQFz7Pk4hzCvXkShO6I/s640/f19.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
注意Push Notifications現在是Configurable的狀態,按下Register</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsZmc9gEOeQQIqbV5hE2mAPdcOhfcc4Arhcm1ecWIRYxOlWhrAqSrcG42Q20nEqqoran56XEk-1jWIuUTFrBj1bfKUOBxpmrlysbPZCSHF9oWS_ag0yrUcsQZVIddUdBl_C3fnfXkJB2g/s1600/f20.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="470" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsZmc9gEOeQQIqbV5hE2mAPdcOhfcc4Arhcm1ecWIRYxOlWhrAqSrcG42Q20nEqqoran56XEk-1jWIuUTFrBj1bfKUOBxpmrlysbPZCSHF9oWS_ag0yrUcsQZVIddUdBl_C3fnfXkJB2g/s640/f20.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
6.在Certificates的Development新增憑證</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0KixIsSXU4Zfct5RYu6GWvEwGBlXcgV-9yYgbegP4eQN5VmScpDOtB7LRvOiDzR0Tz3mEz7FMQeVRiPBB2wshbsDSX2KNsSsqdPr2P0rPHz7FvltqBgchKUZw-ZOOgTHj726eb9HYEsI/s1600/f21.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0KixIsSXU4Zfct5RYu6GWvEwGBlXcgV-9yYgbegP4eQN5VmScpDOtB7LRvOiDzR0Tz3mEz7FMQeVRiPBB2wshbsDSX2KNsSsqdPr2P0rPHz7FvltqBgchKUZw-ZOOgTHj726eb9HYEsI/s640/f21.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl3jOspeyEEKKsU0BgOlDNmBIeS_4MNTVpIZhzZBTVCcnfeBKYymXCl6x1CHC7eK1Zj5cM5etqAjuU-3a8v0AphdrbJ7IN-eqqdXsW4R0eDPg66t4YydyeKRgPeA0MJLmidx-V7ZzVvVI/s1600/f22.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="102" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl3jOspeyEEKKsU0BgOlDNmBIeS_4MNTVpIZhzZBTVCcnfeBKYymXCl6x1CHC7eK1Zj5cM5etqAjuU-3a8v0AphdrbJ7IN-eqqdXsW4R0eDPg66t4YydyeKRgPeA0MJLmidx-V7ZzVvVI/s320/f22.PNG" width="320" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
選擇剛剛加入的App ID</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyPoJdpE7XV6QnRiBr-eYvZT06CGmuS1p302SPa_-mRR1usgL12-Xd56_cXh3N2gqQkmuVB-FjuZ6NP4eIK3JucWdmzSfHKQaBlY_KgXzv0HwZKiNBC1i81VsAT0b0qAYAOqfr1Mi9CCs/s1600/f23.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="420" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyPoJdpE7XV6QnRiBr-eYvZT06CGmuS1p302SPa_-mRR1usgL12-Xd56_cXh3N2gqQkmuVB-FjuZ6NP4eIK3JucWdmzSfHKQaBlY_KgXzv0HwZKiNBC1i81VsAT0b0qAYAOqfr1Mi9CCs/s640/f23.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
上傳剛剛從鑰匙圈製作的"推播憑證授權要求"</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgapm8KzKcsVU3Xk4_9mjVQJDL-ZiEG4f3YCByHTklKsW3r0IrpqEfAQuNMUN9DucBF12bmAi30wUASgGTnkvr_7BdbKfP-9fR19YulujASIZdqHBirpRmHEWQMBMlRwDMZP_CxtsD-_yQ/s1600/f24.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="406" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgapm8KzKcsVU3Xk4_9mjVQJDL-ZiEG4f3YCByHTklKsW3r0IrpqEfAQuNMUN9DucBF12bmAi30wUASgGTnkvr_7BdbKfP-9fR19YulujASIZdqHBirpRmHEWQMBMlRwDMZP_CxtsD-_yQ/s640/f24.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
下載憑證,並點兩下安裝</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbgWC9QwXY9tO8NUsYBhJZmeRvYZpUiFjsAmtqD9DSmWFVVd49Hf5kKP2ZR300csRuA3BCEUqEahPtYRsdhkwH_ODCg-0lw63CJ8DodyobGI8CEw8MBK2JqBelT6NLCxaq64RtpodYC98/s1600/f25.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbgWC9QwXY9tO8NUsYBhJZmeRvYZpUiFjsAmtqD9DSmWFVVd49Hf5kKP2ZR300csRuA3BCEUqEahPtYRsdhkwH_ODCg-0lw63CJ8DodyobGI8CEw8MBK2JqBelT6NLCxaq64RtpodYC98/s640/f25.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
在鑰匙圈裡可以看到安裝的憑證,匯出專用密鑰</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiutpsGHTKv40IL_j9Mb03n2_GRHO-4LWn3sUKj2UeP_k63331aoy5kQ86meZJTXdQuAlTE6WRK_ckiR5m9aH-dHj2fYfVlXWsT7frzJo_0kJ0JCASuYhzlBdnKHbi2ERsf3lEQGPrYDbA/s1600/f26.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="388" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiutpsGHTKv40IL_j9Mb03n2_GRHO-4LWn3sUKj2UeP_k63331aoy5kQ86meZJTXdQuAlTE6WRK_ckiR5m9aH-dHj2fYfVlXWsT7frzJo_0kJ0JCASuYhzlBdnKHbi2ERsf3lEQGPrYDbA/s640/f26.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
匯出時會要求設定密碼,填入定義的密碼</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw5EFbUXfyfS-uagPY_yJ4xHOD8iPH-O3FsJwcfIqRYK3EVIuU5Sav1_eIkWSCWqkssCxeH_xPTwRhT3rnxf0-SNzB_5lqBHzhFjJ3LgBpu-j8XRTdDSsnPbCqEiJBeWTeQrdtK-W70z0/s1600/f27.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="398" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw5EFbUXfyfS-uagPY_yJ4xHOD8iPH-O3FsJwcfIqRYK3EVIuU5Sav1_eIkWSCWqkssCxeH_xPTwRhT3rnxf0-SNzB_5lqBHzhFjJ3LgBpu-j8XRTdDSsnPbCqEiJBeWTeQrdtK-W70z0/s640/f27.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
7.到Apple Developer的Provisioning Profiles新增開發憑證</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyPVBTo3japq-t3IctmcrB4cREbCZ_5GSJsRJxM8JGKNzdX8ntGYg4oO7MzmYAsDfKZQUSN_ukmeDdI590LyOlBDoYivj50_LFk3J_vg-j1gPpYS0aarUgRlxhqwD_xfqv5JHDQzw-Z4/s1600/f28.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyPVBTo3japq-t3IctmcrB4cREbCZ_5GSJsRJxM8JGKNzdX8ntGYg4oO7MzmYAsDfKZQUSN_ukmeDdI590LyOlBDoYivj50_LFk3J_vg-j1gPpYS0aarUgRlxhqwD_xfqv5JHDQzw-Z4/s1600/f28.PNG" /></a></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
點選右上角新增憑證</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPkcYveQ0LxdYknH3e0-4VT8ZCnjULiGDGQ4jkaE795eM7im_PYCxvN7PsnOp4NCUGMw0C1uqIPIKVTbPM4OszbEgEZ3PKAPNl7jaJCrNSOznDfSxQroUWxZtHV86sR1iyIQnoWzrwPZg/s1600/f29.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPkcYveQ0LxdYknH3e0-4VT8ZCnjULiGDGQ4jkaE795eM7im_PYCxvN7PsnOp4NCUGMw0C1uqIPIKVTbPM4OszbEgEZ3PKAPNl7jaJCrNSOznDfSxQroUWxZtHV86sR1iyIQnoWzrwPZg/s640/f29.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
選擇iOS App Development</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZl2MU_7S2Dmz1Q18Rd1dlwp_idSw1rXhmiWAar5ZqdCVnuYdJg0So1Kt8O649c01XWoOcETqvhCAqV_sS0BSGe3okG86U64rr6sZ54-wKLDgBD0TGIi6XyMMhQW6FG8Lb3o31unrtuHY/s1600/f30.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="412" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZl2MU_7S2Dmz1Q18Rd1dlwp_idSw1rXhmiWAar5ZqdCVnuYdJg0So1Kt8O649c01XWoOcETqvhCAqV_sS0BSGe3okG86U64rr6sZ54-wKLDgBD0TGIi6XyMMhQW6FG8Lb3o31unrtuHY/s640/f30.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
選擇剛剛新增的App ID</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitFz2AETlZgYD4BulBLHnA-JMqDA6CjLuioipfvh6h7B-_B1IHfLVzHdYtsRzVuKtWwF_ZjsaDIJuQDo0abwokSF_bOMqy_QSFq3qup6nwcf1e6YAoJbIjpLsvLqoh4sjpBXQFFxSASjU/s1600/f31.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="534" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitFz2AETlZgYD4BulBLHnA-JMqDA6CjLuioipfvh6h7B-_B1IHfLVzHdYtsRzVuKtWwF_ZjsaDIJuQDo0abwokSF_bOMqy_QSFq3qup6nwcf1e6YAoJbIjpLsvLqoh4sjpBXQFFxSASjU/s640/f31.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
選擇開發人員憑證</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBQe0IZ0leJkikrx3PK05pFuVKYmWMAAGy_XMiGBsD3hBjy52jnp1eQvoPQsWllsFMCm5AAyp0YtZTyzGA06uPueCGdgbe3Y-vV95K_clAfUBPyqLdsTzUXsZ1qrJGxL6BfouwZ5xPmtM/s1600/f32.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="486" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBQe0IZ0leJkikrx3PK05pFuVKYmWMAAGy_XMiGBsD3hBjy52jnp1eQvoPQsWllsFMCm5AAyp0YtZTyzGA06uPueCGdgbe3Y-vV95K_clAfUBPyqLdsTzUXsZ1qrJGxL6BfouwZ5xPmtM/s640/f32.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
選擇開發裝置</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdICoqXeBzbP-NB8XiOad-VmamjXRjZb5VpqUInBZHMUAs8abFfbZ1Zys9RrsqdhOThRAOhI_NAhTzp1bcIDY_uVkZLjV1N89gdSfUGgNjW5lwraGfOXeZ_uahq9vEF-e_YOxcQpfZy8w/s1600/f34.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="484" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdICoqXeBzbP-NB8XiOad-VmamjXRjZb5VpqUInBZHMUAs8abFfbZ1Zys9RrsqdhOThRAOhI_NAhTzp1bcIDY_uVkZLjV1N89gdSfUGgNjW5lwraGfOXeZ_uahq9vEF-e_YOxcQpfZy8w/s640/f34.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
為此開發憑證命名</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfVUs2sMVFOY3M-VJAs-84gwV0s3cYqH3MegT56_KZ3HupOwtLRMWZ1PuXAIi-ViPTGxarTf1DHKJp78A1EH5298PNP4DrZn7dBAGj0pUfGBWThVoOpOdY8Sy_Mg72ndUd0C9lWN5X8og/s1600/f35.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="568" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfVUs2sMVFOY3M-VJAs-84gwV0s3cYqH3MegT56_KZ3HupOwtLRMWZ1PuXAIi-ViPTGxarTf1DHKJp78A1EH5298PNP4DrZn7dBAGj0pUfGBWThVoOpOdY8Sy_Mg72ndUd0C9lWN5X8og/s640/f35.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
下載此憑證並點兩下安裝</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuNx7cYRE8wnicfxF1NaiQk04cBGlQFn2ueS-x6G8u_ULLRMMccybT4zofifshAL_CQCU6JHxTHzm_0c7dAPTkEcsgamggjENJsxGVw_g2ay7S5g-pQrHYBtYizHTUnbmY0YBPfzpRHNU/s1600/f36.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="272" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuNx7cYRE8wnicfxF1NaiQk04cBGlQFn2ueS-x6G8u_ULLRMMccybT4zofifshAL_CQCU6JHxTHzm_0c7dAPTkEcsgamggjENJsxGVw_g2ay7S5g-pQrHYBtYizHTUnbmY0YBPfzpRHNU/s640/f36.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
8.到Firebase網站的專案底下,匯入憑證</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0WTBlOm42tukxqyXvTTfezSA8Wl-sLMfsXrcg5j3ZoPXHfY468f6T0S5TmMRoCRz8nqmSm3nuaoRwGEbDkiYfVeRR3DcjhrT4S1Zg23irErrToVo_an_bLecCJ_r4334dWUtzGDNqtjQ/s1600/f37.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="382" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0WTBlOm42tukxqyXvTTfezSA8Wl-sLMfsXrcg5j3ZoPXHfY468f6T0S5TmMRoCRz8nqmSm3nuaoRwGEbDkiYfVeRR3DcjhrT4S1Zg23irErrToVo_an_bLecCJ_r4334dWUtzGDNqtjQ/s640/f37.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL-u7ubRfxu570Kp8B5aznPzv00xIQjhCrCs7aM2GYh-KIiZUaNVWFBZ0dzrBOK0vAurwPTKqTHBDlHAXfaylSDi7FYJjLXDRjkXDouH8TOsKEx-G3TzmpafVTFvigwnRD8UhQ61KCDRs/s1600/f38.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="168" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL-u7ubRfxu570Kp8B5aznPzv00xIQjhCrCs7aM2GYh-KIiZUaNVWFBZ0dzrBOK0vAurwPTKqTHBDlHAXfaylSDi7FYJjLXDRjkXDouH8TOsKEx-G3TzmpafVTFvigwnRD8UhQ61KCDRs/s640/f38.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
上傳剛剛匯出的密鑰,記得打上剛剛定義的密碼</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4dMKZZ7DdOcJvRJcl_zq8QK1175O2k2HJWARANg_-Xk0YloKoBSK4f4AGPiuZ7pSWc8CaGlk3foQ121kvmPQ5B7rOEHsVwcyTstzfH-gK7eRxHk_2rwXrlK_flGNH4FS0sOtm7ebWzQo/s1600/f39.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="148" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4dMKZZ7DdOcJvRJcl_zq8QK1175O2k2HJWARANg_-Xk0YloKoBSK4f4AGPiuZ7pSWc8CaGlk3foQ121kvmPQ5B7rOEHsVwcyTstzfH-gK7eRxHk_2rwXrlK_flGNH4FS0sOtm7ebWzQo/s640/f39.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiPA9LQOfr22uxTkvmyDRqxre_c3Pm0BvxFVmEthtVMTtBfBc42ShUBwo-QimksOe_oLq7gmXlDh8E4YDsWsmTm2WftbY7isA_1ZxX022C_Mg6wwAnwqCe9jJHG1eh0pan3PCUW2Ulj3s/s1600/f40.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiPA9LQOfr22uxTkvmyDRqxre_c3Pm0BvxFVmEthtVMTtBfBc42ShUBwo-QimksOe_oLq7gmXlDh8E4YDsWsmTm2WftbY7isA_1ZxX022C_Mg6wwAnwqCe9jJHG1eh0pan3PCUW2Ulj3s/s640/f40.PNG" width="616" /></a></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
9.到Xcode中寫程式囉,可以參考一下網址的程式碼,直接複製貼上</div>
<div class="separator" style="background-color: white; clear: both; text-align: left;">
<span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;"><span style="font-size: 15px; line-height: 18px; white-space: pre-wrap;"><a href="https://github.com/firebase/quickstart-ios/blob/master/messaging/FCM/AppDelegate.m">https://github.com/firebase/quickstart-ios/blob/master/messaging/FCM/AppDelegate.m</a></span></span></div>
<div class="separator" style="background-color: white; clear: both; text-align: left;">
<span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;"><br /></span></div>
<div class="separator" style="background-color: white; clear: both; text-align: left;">
<span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;">或者照我做</span></div>
<div class="separator" style="background-color: white; clear: both; text-align: left;">
<span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;"><br /></span></div>
<div class="separator" style="background-color: white; clear: both; text-align: left;">
<span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;">在</span><span style="background-color: transparent;"><span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;">AppDelegate.m最上方引入Firebase</span></span></div>
<div class="separator" style="background-color: white; clear: both; text-align: left;">
<span style="background-color: transparent;"><span style="color: #1d2129; font-family: "helvetica" , "arial" , sans-serif;"><br /></span></span></div>
<blockquote class="tr_bq" style="background-color: white; clear: both; text-align: left;">
<span style="color: blue;">@import Firebase;<br />@import FirebaseMessaging;</span></blockquote>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
</div>
<ul>
<li>在didFinishLaunchingWithOptions的函式填入</li>
</ul>
<br />
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<br /></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;">// Register for remote notifications</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_7_1) {</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> // iOS 7.1 or earlier</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> UIRemoteNotificationType allNotificationTypes =</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> (UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge);</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> [application registerForRemoteNotificationTypes:allNotificationTypes];</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> } else {</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> // iOS 8 or later</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> // [END_EXCLUDE]</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> UIUserNotificationType allNotificationTypes =</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> UIUserNotificationSettings *settings =</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> [UIUserNotificationSettings settingsForTypes:allNotificationTypes categories:nil];</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> [[UIApplication sharedApplication] registerUserNotificationSettings:settings];</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> [[UIApplication sharedApplication] registerForRemoteNotifications];</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> }</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><br /></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> // [START configure_firebase]</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> [FIRApp configure];</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> // [END configure_firebase]</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><br /></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> // Add observer for InstanceID token refresh callback.</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tokenRefreshNotification:)</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"> name:kFIRInstanceIDTokenRefreshNotification object:nil];</span></div>
<br />
<span style="color: blue;">//2016/06/23 以下不用做</span><br />
<ul>
<li><strike>在空白處新增一個函式 </strike></li>
</ul>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike>// [START connect_to_fcm]</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike>- (void)connectToFcm {</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> [[FIRMessaging messaging] connectWithCompletion:^(NSError * _Nullable error) {</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> if (error != nil) {</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> NSLog(@"Unable to connect to FCM. %@", error);</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> } else {</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> NSLog(@"Connected to FCM.");</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> }</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike> }];</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike>}</strike></span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<span style="color: blue;"><strike>// [END connect_to_fcm]</strike></span></div>
<ul>
<li><strike>在 applicationDidBecomeActive填入</strike></li>
</ul>
<span style="color: blue;"><strike>[self connectToFcm];</strike></span><br />
<span style="color: blue;"><strike><br /></strike></span>
<span style="color: blue;">//</span><span style="color: blue;">2016/06/23</span><span style="color: blue;"> </span><span style="color: blue;">以上不用做</span></div>
<div class="" data-block="true" data-editor="cp0s7" data-offset-key="8i4fm-0-0" style="orphans: auto; text-align: start; text-indent: 0px; widows: 1;">
<br />
10.建置專案並安裝至手機上,對詢問推播按允許<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgbPrEQLqJd6rRuIDmxT12d_Y2Gtn5AHvH6e7EzCnK4wkhkm5wcltxYc9ngLL6JMT7OZShTp4p2j47D-RskzbH9emNKxgGrqBoCSvpWApCZTj3iJSrs2-TCQxut4fOmZiAFeQAS8fZ5FQ/s1600/f42.png" imageanchor="1" style="font-family: helvetica, arial, sans-serif; font-size: 15px; line-height: 18px; margin-left: 1em; margin-right: 1em; text-align: center; white-space: pre-wrap;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgbPrEQLqJd6rRuIDmxT12d_Y2Gtn5AHvH6e7EzCnK4wkhkm5wcltxYc9ngLL6JMT7OZShTp4p2j47D-RskzbH9emNKxgGrqBoCSvpWApCZTj3iJSrs2-TCQxut4fOmZiAFeQAS8fZ5FQ/s640/f42.png" width="360" /></a></div>
<br />
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
11.到Firebase的網站專案左側Notifications新增一則訊息,並送出</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<br /></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-align: center; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ0duK77P-jXjvMBhifuxKkalE9ppiePDvmikTIuP7kwT5-5DvHWyg9croSbcMsTy1n0aDfmgkc3APTeW8JfYTDYXoy0J7PXrGNbZYXM4Ay2xkZ7WJdiaZPZYEScCP_1g2HzJflHG6HmU/s1600/f41.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="286" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ0duK77P-jXjvMBhifuxKkalE9ppiePDvmikTIuP7kwT5-5DvHWyg9croSbcMsTy1n0aDfmgkc3APTeW8JfYTDYXoy0J7PXrGNbZYXM4Ay2xkZ7WJdiaZPZYEScCP_1g2HzJflHG6HmU/s640/f41.PNG" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
12.成功!</div>
<div class="_1mf _1mj" data-offset-key="8i4fm-0-0" style="-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; direction: ltr; font-family: helvetica, arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; position: relative; text-align: left; text-transform: none; white-space: pre-wrap; word-spacing: 0px;">
<span data-offset-key="8i4fm-0-0"><span data-text="true"></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<span data-offset-key="8i4fm-0-0"><span data-text="true"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKsAGNx_pltZZVau1urPobYIJJvnCt5epbpnGzBPrjTJeEk0WYmspRGXWlI7hC3idzbBiMs87KidIwjuynNVobfH1VsYa2Unh_-695X_U0oBXgQLYsjtzIEbo_9aQsWZxfS1dkcUFHC7g/s1600/2016-06-21+20.57.03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKsAGNx_pltZZVau1urPobYIJJvnCt5epbpnGzBPrjTJeEk0WYmspRGXWlI7hC3idzbBiMs87KidIwjuynNVobfH1VsYa2Unh_-695X_U0oBXgQLYsjtzIEbo_9aQsWZxfS1dkcUFHC7g/s640/2016-06-21+20.57.03.png" width="360" /></a></span></span></div>
<span data-offset-key="8i4fm-0-0"><span data-text="true">
</span></span></div>
</div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-44921719877279344972016-05-22T23:47:00.000+08:002016-10-21T04:35:57.830+08:00[教學] Prox-t Beta 讓Twich不會轉圈圈lag的chrome外掛<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVYD9I004pMM3aadZn7dymtYpZw0YY0BoeFRRzgYkl6m0dfRcCBFf17J-eTKgbkehvoD1kII8t-l28el9XepXhKer_8MS9Xinxs5F5Nei5BeyBYhDU0btAx0-kHosqSgZjsIP169fWyN4/s1600/twitch.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVYD9I004pMM3aadZn7dymtYpZw0YY0BoeFRRzgYkl6m0dfRcCBFf17J-eTKgbkehvoD1kII8t-l28el9XepXhKer_8MS9Xinxs5F5Nei5BeyBYhDU0btAx0-kHosqSgZjsIP169fWyN4/s320/twitch.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
2016/10/21<br />
<h3 style="clear: both; text-align: center;">
目前此外掛已下架,我也沒備份到安裝檔,在此提供其他方法</h3>
<h3 style="clear: both;">
<ol>
<li>如果會lag先試著把dns設定成<span style="color: red;">8.8.8.8</span>與<span style="color: red;">8.8.4.4</span></li>
<li>參考此篇,<a href="http://jack120707.blogspot.tw/2013/11/proxy.html">用中華電信proxy</a></li>
</ol>
<div>
--</div>
</h3>
家裡是使用中華電信,由於觀看Twitch頻道常常Lag開始轉圈圈,不爽之下直接由光纖20M升光纖100M!<br />
<br />
結果還是一樣跑個10秒就lag一次 (靠北,我去你的中華電信)<br />
<br />
大概持續了一年,今天!!!!就在今天!!!!!!!!!!!!! 找到解法<br />
<br />
有人做了可以更改Twitch 伺服器的chrome外掛,超好用,也不知道為什麼沒有人再討論<br />
<br />
<b><span style="color: red;">注意: 此軟體與作者無關,若此外掛有任何侵害使用者行為,概不負責喔!!</span></b><br />
<br />
<a name='more'></a><h3 style="clear: both; text-align: center;">
<strike>點此下載Chrome外掛</strike></h3>
<br />
這個外掛叫做<u>Prox-t Beta</u>,能切換Twitch在各地的資料中心,不用再被中華電信指定很lag的伺服器<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSykiiqq8cCRDZzwEQr7-oIKlFHHxU877W-xQYKAj3OB9Vnedo5zMGNiNqTIrqm0WbQPvau8Oej7omJ9ffIZVhWUJqIAmyhAFluOTvXrWMSLrAx_vgPNpYQZmUbTFBknMBsvIEZL1DMrY/s1600/%25E6%2593%25B7%25E5%258F%2596.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="285" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSykiiqq8cCRDZzwEQr7-oIKlFHHxU877W-xQYKAj3OB9Vnedo5zMGNiNqTIrqm0WbQPvau8Oej7omJ9ffIZVhWUJqIAmyhAFluOTvXrWMSLrAx_vgPNpYQZmUbTFBknMBsvIEZL1DMrY/s400/%25E6%2593%25B7%25E5%258F%2596.PNG" width="400" /></a></div>
<br />
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
點選"加到 CHROME"</div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuMrMKTpHaN6qSfUULI8ROBUtapdrtJuUSaMgRyYddurkaYBe9FzJbWn0KBS3kWAG4wyKZBTF5-Mk1mmMXnscpoJx95-hvJqP0jeBlRLKXWGMn6A8g7uyrACmkXDGmnlmxUUk71EWcOQc/s1600/%25E6%2593%25B7%25E5%258F%25962.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuMrMKTpHaN6qSfUULI8ROBUtapdrtJuUSaMgRyYddurkaYBe9FzJbWn0KBS3kWAG4wyKZBTF5-Mk1mmMXnscpoJx95-hvJqP0jeBlRLKXWGMn6A8g7uyrACmkXDGmnlmxUUk71EWcOQc/s320/%25E6%2593%25B7%25E5%258F%25962.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
點選"新增擴充功能"</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPom-2vrId6mWWnrT5a6Sqn6xnfhpKGROWEgJ6csSFDwQmbBwjjpxXINckktLLtqVSc8o9Gs-ti4G5HoJ9JoOpnd09UKu2fJueM4qhs2KotO2JxGcvuo7QnJesOTODjtV4MBinikhgSBQ/s1600/%25E6%2593%25B7%25E5%258F%25963.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPom-2vrId6mWWnrT5a6Sqn6xnfhpKGROWEgJ6csSFDwQmbBwjjpxXINckktLLtqVSc8o9Gs-ti4G5HoJ9JoOpnd09UKu2fJueM4qhs2KotO2JxGcvuo7QnJesOTODjtV4MBinikhgSBQ/s1600/%25E6%2593%25B7%25E5%258F%25963.PNG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
當不在Twitch網站時,icon是灰色的,點擊也沒用</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8i6Vxea-Jy9uer0e7jT2dtrTKrqK-CmRsLUASjcHO9AsEul3QWdPoiE53GPbXReUsILYpBU-AUljd03jSvAvA0IJkGLK6cqdWSyUt2H1BhJbCin9Jjhc6bx06mtS2iAvNagQyWHhbyQc/s1600/%25E6%2593%25B7%25E5%258F%25964.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8i6Vxea-Jy9uer0e7jT2dtrTKrqK-CmRsLUASjcHO9AsEul3QWdPoiE53GPbXReUsILYpBU-AUljd03jSvAvA0IJkGLK6cqdWSyUt2H1BhJbCin9Jjhc6bx06mtS2iAvNagQyWHhbyQc/s1600/%25E6%2593%25B7%25E5%258F%25964.PNG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
隨便瀏覽一個Twitch網站,icon就會變成紅色</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnH3rORpfiHIxC3LGoecBaareVtWxnsP7wP3H0dDbCIq_ayfNe-lQ6BZuglxAVbSyRjw8xZtvhBzsNdK-aiQFA0V6POAXjvSP8kqRxWMub7gsmKsK27ZBKRU2Al9izv_NhMo3lbBT2M6E/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnH3rORpfiHIxC3LGoecBaareVtWxnsP7wP3H0dDbCIq_ayfNe-lQ6BZuglxAVbSyRjw8xZtvhBzsNdK-aiQFA0V6POAXjvSP8kqRxWMub7gsmKsK27ZBKRU2Al9izv_NhMo3lbBT2M6E/s320/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
點開之後就可以選擇伺服器,在這裡選離台灣較近的雪梨,按下Enable</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMhB5R2qq8d81cTXNvm96d2sdJJLqp1MoUzFXQMhweSd7st4nbwrCTUBivBnwNQDykHELyGulF-WJEszyHJ7KzJrDE5mED0VySWWFnUNGovnw4SlHNGa-BmUpdME0nkQxKcnvCZhBaoA8/s1600/%25E6%2593%25B7%25E5%258F%25962.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMhB5R2qq8d81cTXNvm96d2sdJJLqp1MoUzFXQMhweSd7st4nbwrCTUBivBnwNQDykHELyGulF-WJEszyHJ7KzJrDE5mED0VySWWFnUNGovnw4SlHNGa-BmUpdME0nkQxKcnvCZhBaoA8/s320/%25E6%2593%25B7%25E5%258F%25962.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
接著Twitch Player就會重新Cache,就不會Lag囉!!</div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-67512169124410751362016-05-12T12:09:00.002+08:002016-05-12T12:23:18.647+08:00[教學] 學生可以在Github上擁有無限的private repositories<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em;">
<img alt="GitHub" class="partner-logo" data-no-retina="" height="133" src="https://dwa5x7aod66zk.cloudfront.net/assets/pack/logo-github-fe55a081ff239877f791f5882f9c3cddc371653c88d9b06f504ea10f453996ed.jpg" width="400" /><br />
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
今天的好消息,以前Github的學生資格擁有2-3個私有private repositories,今天他們宣布將學生的private repositories調整至無限量!<br />
<br />
個人資格<br />
$7 / month <br />
公司資格<br />
$9/user/month<br />
$25/month for your first five users</div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
這代表你可以在Github放置多個private repositories而不受3個限制,導致一些專案必須下架或者改成public repositories。</div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<br />
全文<br />
<a href="https://github.com/blog/2164-unlimited-private-repos?utm_source=announcement&utm_medium=email&utm_campaign=ww-stuper-20160511">https://github.com/blog/2164-unlimited-private-repos?utm_source=announcement&utm_medium=email&utm_campaign=ww-stuper-20160511</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1vac_yfrkr5bkSvB3Z-lHJ2A2VBUyM1ZevepigCON4mTFPtsUTGyOMTPPFSO17qOVVVfCihewXM3efVre4cbvGo7uB8o-i1sDnhdGa38ifSgJ81uiMozqY-fQNAJeDme9bCJJtAMY4YQ/s1600/%25E6%2593%25B7%25E5%258F%2596.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1vac_yfrkr5bkSvB3Z-lHJ2A2VBUyM1ZevepigCON4mTFPtsUTGyOMTPPFSO17qOVVVfCihewXM3efVre4cbvGo7uB8o-i1sDnhdGa38ifSgJ81uiMozqY-fQNAJeDme9bCJJtAMY4YQ/s640/%25E6%2593%25B7%25E5%258F%2596.PNG" width="568" /></a></div>
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
還沒申請的同學趕快到此申請 </div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<a href="https://education.github.com/pack">https://education.github.com/pack</a></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<br /></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
啟用教學</div>
<div style="margin-left: 1em; margin-right: 1em; text-align: left;">
<a href="https://free.com.tw/github-student-developer-pack/">https://free.com.tw/github-student-developer-pack/</a></div>
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-72861862094567374622016-04-21T17:56:00.001+08:002016-04-21T17:56:48.354+08:00[筆記] iOS apns 產生憑證<img alt="A remote notification from a provider to a client application" height="106" src="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Art/remote_notif_simple_2x.png" width="640" /><br />
官方文件超難懂,最後是靠著<a href="http://stackoverflow.com/">stackoverflow</a>解決的<br />
<br />
如果有人能告訴我官方文件怎麼讀就能做出來,我會感激不盡<br />
<br />
在這裡筆記一下在憑證方面遇到的困難<br />
<br />
<a name='more'></a><br />
<br />
前面就不贅述了,各位自行google,最後Provider需要有個憑證,連同憑證一起對apns送訊息,才能成功<br />
<br />
憑證怎麼申請 <a href="http://stackoverflow.com/questions/16055756/how-can-i-generate-pem-file-for-push-notifications-in-iphone">點此</a><br />
<br />
php server直接用github的 <a href="https://github.com/immobiliare/ApnsPHP">點此</a>,下載之後解開把ApnsPHP的資料夾放到server上,挑一個sample_push.php就可以使用了<br />
<br />
心得,官方看不到這麼詳細的步驟,也沒說怎麼產生.pem等,<a href="http://stackoverflow.com/">stackoverflow</a>才有...<br />
<br />
<br />
<br />
<br />Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-35500234560859536932016-04-19T03:59:00.001+08:002016-05-29T13:03:28.985+08:00[筆記] iOS UITableView reloadData not working在storyboard擺了一個TableView,結果程式碼裡面reloadData一直錯誤,搞了兩天,最後發現程式碼裡面根本不用這行<br />
<br />
<br />
<blockquote class="tr_bq">
<span class="s1"> </span><span class="s2">self</span><span class="s1">.</span><span class="s3">tableView</span><span class="s1"> = [[</span><span class="s4">UITableView</span><span class="s1"> </span><span class="s5">alloc</span><span class="s1">] </span><span class="s5">initWithFrame</span><span class="s1">:</span><span class="s2">self</span><span class="s1">.</span><span class="s3">tableView</span><span class="s1">.</span><span class="s4">frame</span><span class="s1"> </span><span class="s5">style</span><span class="s1">:</span><span class="s5">UITableViewStyleGrouped</span><span class="s1">];</span></blockquote>
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
<span class="s1">不用init阿阿阿阿阿 幹!</span></div>
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
I put the UITableView in storyboard. The problem is that I can not update data when I call [self.tableView reloadData]. It spent me two days to solve the problem. Take this code away</div>
<blockquote class="tr_bq">
<span class="s1"> </span><span class="s2">self</span><span class="s1">.</span><span class="s3">tableView</span><span class="s1"> = [[</span><span class="s4">UITableView</span><span class="s1"> </span><span class="s5">alloc</span><span class="s1">] </span><span class="s5">initWithFrame</span><span class="s1">:</span><span class="s2">self</span><span class="s1">.</span><span class="s3">tableView</span><span class="s1">.</span><span class="s4">frame</span><span class="s1"> </span><span class="s5">style</span><span class="s1">:</span><span class="s5">UITableViewStyleGrouped</span><span class="s1">];</span></blockquote>
Fuck! I don't need to init my tableView in code or it will reference newer instance.<br />
<br />
另外<br />
<br />
<br />
<blockquote class="tr_bq">
<span class="s1">+ (</span><span class="s2">UIColor</span><span class="s1"> *)colorWithRed:(</span><span class="s2">CGFloat</span><span class="s1">)red green:(</span><span class="s2">CGFloat</span><span class="s1">)green blue:(</span><span class="s2">CGFloat</span><span class="s1">)blue alpha:(</span><span class="s2">CGFloat</span><span class="s1">)alpha;</span></blockquote>
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
每個值都要除以255阿阿阿阿阿阿,不然永遠是白色</div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-14560078239342646942016-04-02T04:24:00.004+08:002016-04-08T03:06:17.232+08:00[筆記] Render CameraDepthTexture On Screen<div class="separator tr_bq" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZRYy52FfnzqvbXX3nnkb37ctdtxF0NdFD7cY-BnU6dSzBk6fH8akHZVEaG1Y_vvvZxnGiY1E0JApwfWuSBo_tNU1YjWFnqGNubD4kPkWRBSv12fb51dckvlE05aV2bcLJq5Gw_LwaMXU/s1600/QQQ.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZRYy52FfnzqvbXX3nnkb37ctdtxF0NdFD7cY-BnU6dSzBk6fH8akHZVEaG1Y_vvvZxnGiY1E0JApwfWuSBo_tNU1YjWFnqGNubD4kPkWRBSv12fb51dckvlE05aV2bcLJq5Gw_LwaMXU/s320/QQQ.PNG" width="320" /></a></div>
<br />
<br />
在Unity上渲染出Depth與Normal圖,網路上可用的資源實在有夠舊的,連官方範例都無法使用<br />
<br />
參考此篇<br />
<a href="http://williamchyr.com/2013/11/unity-shaders-depth-and-normal-textures-part-3/comment-page-1/#comment-202908">http://williamchyr.com/2013/11/unity-shaders-depth-and-normal-textures-part-3/comment-page-1/#comment-202908</a><br />
<br />
修改一些段落變成Unity5可用的<br />
<br />
<a name='more'></a><br />
<br />
Script--<br />
<span style="color: red;"> float4 depth = float4(depthValue);</span><br />
改成<br />
<span style="color: blue;"> float4 depth = float4(depthValue,depthValue,depthValue,1.0);</span><br />
<br />
Shader--<br />
<span style="color: red;">camera.depthTextureMode = DepthTextureMode.DepthNormals;</span><br />
改成<br />
<span style="color: blue;">GetComponent().depthTextureMode = DepthTextureMode.DepthNormals; </span><br />
<span style="color: blue;">o.scrPos.y = 1 - o.scrPos.y; //刪除此行</span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
<span style="color: blue;">Fixed Code 直接可以套用</span><br />
RenderCamera.cs<br />
<br />
<blockquote>
using UnityEngine;<br />
using System.Collections;<br />
[ExecuteInEditMode]<br />
public class RenderCamera : MonoBehaviour {<br />
bool showNormalColors = true;<br />
public Material mat;<br />
void Start()<br />
{<br />
GetComponent<Camera>().depthTextureMode = DepthTextureMode.DepthNormals;<br />
}<br />
// Update is called once per frame<br />
void Update()<br />
{<br />
if (Input.GetKeyDown(KeyCode.E))<br />
{<br />
showNormalColors = !showNormalColors;<br />
}<br />
if (showNormalColors)<br />
{<br />
mat.SetFloat("_showNormalColors", 1.0f);<br />
}<br />
else<br />
{<br />
mat.SetFloat("_showNormalColors", 0.0f);<br />
}<br />
}<br />
void OnRenderImage(RenderTexture source, RenderTexture destination)<br />
{<br />
Graphics.Blit(source, destination, mat);<br />
//mat is the material which contains the shader<br />
//we are passing the destination RenderTexture to<br />
}<br />
}</blockquote>
<br />
<div>
DepthNormalShader.shader</div>
<div>
<blockquote>
Shader "Custom/DepthNormalShader" {<br />
Properties {<br />
_MainTex ("", 2D) = "white" {}<br />
_HighlightDirection ("Highlight Direction", Vector) = (1, 0,0)<br />
}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>SubShader {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Tags { "RenderType"="Opaque" }<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Pass{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>CGPROGRAM<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>#pragma vertex vert<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>#pragma fragment frag<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>#include "UnityCG.cginc"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>sampler2D _CameraDepthNormalsTexture;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>float _StartingTime;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>float _showNormalColors = 1; //when this is 1, show normal values as colors. when 0, show depth values as colors.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>struct v2f {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> float4 pos : SV_POSITION;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> float4 scrPos: TEXCOORD1;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>};<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>//Our Vertex Shader<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>v2f vert (appdata_base v){<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> v2f o;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> o.pos = mul (UNITY_MATRIX_MVP, v.vertex);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> o.scrPos=ComputeScreenPos(o.pos);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> return o;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>sampler2D _MainTex;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>float4 _HighlightDirection;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>//Our Fragment Shader<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>half4 frag (v2f i) : COLOR{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>float3 normalValues;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>float depthValue;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>//extract depth value and normal values<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>DecodeDepthNormal(tex2D(_CameraDepthNormalsTexture, i.scrPos.xy), depthValue, normalValues);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>if (_showNormalColors == 1){<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> float4 normalColor = float4(normalValues, 1);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> return normalColor;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>} else {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> float4 depth = float4(depthValue,depthValue,depthValue,1.0);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> return depth;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>ENDCG<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>FallBack "Diffuse"<br />
}</blockquote>
</div>
<div>
<br /></div>
Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0tag:blogger.com,1999:blog-2290273572250820101.post-57927793179473636142015-10-13T00:39:00.001+08:002015-10-13T00:39:26.653+08:00[筆記] 在Windows 10 玩 RA2 尤里的復仇https://www.youtube.com/watch?v=a-wGOsVqUTs<br />
<br />
參考這部影片,不過有些設定要改<br />
<br />
.ini的Video標籤內容改成<br />
<span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">[Video]</span><br style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">AllowHiResModes=yes</span><br style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">AllowVRAMSidebar=yes</span><br style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">VideoBackBuffer=no</span><br style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">ScreenWidth=800</span><br style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">ScreenHeight=600</span><br style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;" /><span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;">StretchMovies=no</span><br />
<span style="background-color: white; color: #333333; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px;"><br /></span>
<span style="background-color: white; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px; white-space: pre-wrap;">aqrit.cfg的設定</span><br />
<span style="background-color: white; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px; white-space: pre-wrap;">ForceDirectDrawEmulation = 1</span><br />
<span style="background-color: white; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px; white-space: pre-wrap;"><br /></span>
<span style="background-color: white; font-family: Roboto, arial, sans-serif; font-size: 13px; line-height: 17px; white-space: pre-wrap;">其他 = 0</span>Jackhttp://www.blogger.com/profile/15997213382546695067noreply@blogger.com0