<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7454538904211828655</id><updated>2024-11-01T03:47:15.365-07:00</updated><category term="免費自由軟體"/><category term="AJAX"/><category term="Asp.Net"/><category term="iOS SDK"/><category term="網頁設計教學"/><category term="Jquery"/><category term="family"/><category term="電子商務網站"/><category term="N-Tiers"/><category term="防毒軟體"/><category term="JAVA、Spring、MVC"/><category term="作品履歷"/><category term="資訊安全"/><title type='text'>程式藝術設計</title><subtitle type='html'>必雕 Coding 術＋Bug 藏鏡人 的程式log</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://enterprise-it.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-7314013453604431207</id><published>2015-06-04T20:47:00.001-07:00</published><updated>2015-06-04T20:59:04.486-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>swift 連結 sqlite how to example</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
整理一下網路上各家的文章，直接使用swift呼叫sqlite , 不用透過&amp;nbsp;&lt;a href=&quot;https://github.com/ccgus/fmdb&quot; target=&quot;_blank&quot;&gt;fmdb&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. 先使用 firefox 的擴充套件：SQLite Manager 建立 sqlite database file&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAZz2NSV0RRkdOh4YnFQFmDstOUEGPsnh8caZd4Vrs1xumC3v6S1i_LkcxBW4T29mNcpUUe020BD46auNadrAzhpxH2cX9-hL4r-pVEn4U_y5M_ZQuJgqIifDyCeFtcH3WbGcC3QOT1LQ0/s1600/0-0.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAZz2NSV0RRkdOh4YnFQFmDstOUEGPsnh8caZd4Vrs1xumC3v6S1i_LkcxBW4T29mNcpUUe020BD46auNadrAzhpxH2cX9-hL4r-pVEn4U_y5M_ZQuJgqIifDyCeFtcH3WbGcC3QOT1LQ0/s320/0-0.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJs0r0i2XuNT279aanqm1Hw4RIuK4vQkomm8hGwzHYe6dM5TRw-KNTReFDRUsIC1OPio8nz5A1TBIEJePh_udg9LFk8ZG5B8lh0km5i8MHw2BRHmBJNG2hbhGfwsb9IYZ9NWeztreFJMtE/s1600/0-1.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJs0r0i2XuNT279aanqm1Hw4RIuK4vQkomm8hGwzHYe6dM5TRw-KNTReFDRUsIC1OPio8nz5A1TBIEJePh_udg9LFk8ZG5B8lh0km5i8MHw2BRHmBJNG2hbhGfwsb9IYZ9NWeztreFJMtE/s320/0-1.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0zVPtUbjD719eUCyX3USmqXMBn3ZtcvP2c3CtKW7dfx5wvoIzon9O3TeWaMGo4p5AtuYKo2HkYgTnpPWbd2g5YyX_JOokn8unJgmtyQpSh-jhu_OcaVhyphenhypheniTihifTrJTahzc8FG4uZFU-X/s1600/0-2.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0zVPtUbjD719eUCyX3USmqXMBn3ZtcvP2c3CtKW7dfx5wvoIzon9O3TeWaMGo4p5AtuYKo2HkYgTnpPWbd2g5YyX_JOokn8unJgmtyQpSh-jhu_OcaVhyphenhypheniTihifTrJTahzc8FG4uZFU-X/s320/0-2.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 在xcode建立single view application , 並將剛剛建立的sqlite database file拖拉到&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; 專案中&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. 在xcode做下設定&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
建立bridg header file , 作為 swift 與 object-c 的連結橋樑&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDCYOvZrgLlRZReVU_Ilf5YQcxE5RmDUUtoFuuFRJkART8qbczIyrYFC5l4ISTFPO3gUL-rwaSOHU7zt3K4qoEFjHYpOQIOJjIMcQVwFh6w2zCUlHMRCcgHQCK3Ns1O3D-346rK-alr1or/s1600/0.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDCYOvZrgLlRZReVU_Ilf5YQcxE5RmDUUtoFuuFRJkART8qbczIyrYFC5l4ISTFPO3gUL-rwaSOHU7zt3K4qoEFjHYpOQIOJjIMcQVwFh6w2zCUlHMRCcgHQCK3Ns1O3D-346rK-alr1or/s320/0.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;建立檔案，與命名檔案&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6RJIGjKCaR9detgOOQ1lG-1QdKz2Vm7EHj_D0YwIligwFfDpPSdnuOAzhn8MtuLAOCT4sRh7DIknLOys0K14eOX-BFrJdcAsB8KeD0zTOvBIehSx_qMn3Yg_YJVJfxwuKoJ97ZpnQVQrR/s1600/1.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6RJIGjKCaR9detgOOQ1lG-1QdKz2Vm7EHj_D0YwIligwFfDpPSdnuOAzhn8MtuLAOCT4sRh7DIknLOys0K14eOX-BFrJdcAsB8KeD0zTOvBIehSx_qMn3Yg_YJVJfxwuKoJ97ZpnQVQrR/s320/1.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;inclode sqlite3.h&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivGnjfB-N1u1JBtRKyTRbudsLWM9yxtBQ8HTvG615YWo1AtiOgtFDxGp1ja4jKCTMb0PsbJhg2iyNdl5zKCH2XULZdhq3TsgwGw9Fl8JAvLti534Af_Ddf6D9EFghBApk7-LYJOxp52ht9/s1600/2.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivGnjfB-N1u1JBtRKyTRbudsLWM9yxtBQ8HTvG615YWo1AtiOgtFDxGp1ja4jKCTMb0PsbJhg2iyNdl5zKCH2XULZdhq3TsgwGw9Fl8JAvLti534Af_Ddf6D9EFghBApk7-LYJOxp52ht9/s320/2.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;設定BridgingHeader.h的路徑，此處的路徑輸入務必正確&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit0HZlWqvohl5KlwHdPcOo0lSFtYcPlIRdoqX_JaHCV7b_XfZHdgTz7loSCr0lgogR3Iia3OXnj_C_lSuguHHQrNNtwRYzSY847K_NAqzfdjqTypWJbJLiWaoE210lTYQrrjsJ-JtC-5aP/s1600/3.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit0HZlWqvohl5KlwHdPcOo0lSFtYcPlIRdoqX_JaHCV7b_XfZHdgTz7loSCr0lgogR3Iia3OXnj_C_lSuguHHQrNNtwRYzSY847K_NAqzfdjqTypWJbJLiWaoE210lTYQrrjsJ-JtC-5aP/s320/3.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_7dkoSsMd6r3D7BRGAC45vI1EQRAk3Je8QsGCMID2X1nVqMFcfzIhUN4VB3LImDZhTt2DkleS7bUuH-Z20Ft_x5S2Bpa9XjgHDndiovNTqIcS2dokxRP_bfgxnJh4DjfLJozAuhreu7QM/s1600/4.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_7dkoSsMd6r3D7BRGAC45vI1EQRAk3Je8QsGCMID2X1nVqMFcfzIhUN4VB3LImDZhTt2DkleS7bUuH-Z20Ft_x5S2Bpa9XjgHDndiovNTqIcS2dokxRP_bfgxnJh4DjfLJozAuhreu7QM/s320/4.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;設定 sqlite library&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjctmH05xKJUQoBJlh4Q-M9VcExptu7vvXr9ABA9gVQ8JDaQjZPxW118d-gITXFMZPh0YREVT9LAwOpsDgGfQNBAbdsA0ytA34GodMVrt8qd6VxvWvHEj0IgaXLZRGqHBueRmWF4Dxv9Oa_/s1600/5.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjctmH05xKJUQoBJlh4Q-M9VcExptu7vvXr9ABA9gVQ8JDaQjZPxW118d-gITXFMZPh0YREVT9LAwOpsDgGfQNBAbdsA0ytA34GodMVrt8qd6VxvWvHEj0IgaXLZRGqHBueRmWF4Dxv9Oa_/s320/5.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;檢查自己建立的sqlite database file是否已經被加入，&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
如果沒有被加入，會出現資料庫開啟的錯誤訊息&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzZh8Un-z90ah_VJNVh63EIC6pD35w-WOG-0uG8Wa_ZoOecIml5ItrGeNJsaAZ4UUQ12QttruGKJwOLqNIHcZR_vThyphenhyphen9iuOTvr9Ig-fczSUPRGVt9fmSM7vdGq0Cdp7e-YWj7xY0VirT0z/s1600/6.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzZh8Un-z90ah_VJNVh63EIC6pD35w-WOG-0uG8Wa_ZoOecIml5ItrGeNJsaAZ4UUQ12QttruGKJwOLqNIHcZR_vThyphenhyphen9iuOTvr9Ig-fczSUPRGVt9fmSM7vdGq0Cdp7e-YWj7xY0VirT0z/s320/6.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
輸入下列程式碼&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgzVU4kqjjhVMreTNGTXv55P-ZofW99z6Jq7xSXb_VhfIwC_OGZekTOSJUZDbcolOBdJ6sr5qdTzRabKh4gbKKim1Z7jeoMTmGJLlpIzMmgb2r1jeE4HHLr0a1edqh_N5HrMGWyeI7P70D/s1600/7.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgzVU4kqjjhVMreTNGTXv55P-ZofW99z6Jq7xSXb_VhfIwC_OGZekTOSJUZDbcolOBdJ6sr5qdTzRabKh4gbKKim1Z7jeoMTmGJLlpIzMmgb2r1jeE4HHLr0a1edqh_N5HrMGWyeI7P70D/s320/7.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;已經開啟sqlite database&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVTY9D55PcFNCqeXoMiOjDTP8UoPma-QMACdx8d5VEhgSRhBGgw6B4XNhbm3-4uGGRWDbqNuKJQCMqSthmAU8jLUSlmVHJTliTPjlmSEgSKiar-59PFu9R7ojvKgWVJf95noCCt0-aBtty/s1600/8.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVTY9D55PcFNCqeXoMiOjDTP8UoPma-QMACdx8d5VEhgSRhBGgw6B4XNhbm3-4uGGRWDbqNuKJQCMqSthmAU8jLUSlmVHJTliTPjlmSEgSKiar-59PFu9R7ojvKgWVJf95noCCt0-aBtty/s320/8.tiff&quot; width=&quot;278&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/sdk.js#xfbml=1&amp;version=v2.3&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;br /&gt;
&lt;div class=&quot;fb-comments&quot; data-colorscheme=&quot;light&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2015/06/swift-sqlite-how-to-example.html&quot; data-numposts=&quot;5&quot; data-width=&quot;500&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
  (function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,&#39;script&#39;,&#39;//www.google-analytics.com/analytics.js&#39;,&#39;ga&#39;);

  ga(&#39;create&#39;, &#39;UA-17562138-1&#39;, &#39;auto&#39;);
  ga(&#39;send&#39;, &#39;pageview&#39;);

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/7314013453604431207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/7314013453604431207'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2015/06/swift-sqlite-how-to-example.html' title='swift 連結 sqlite how to example'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAZz2NSV0RRkdOh4YnFQFmDstOUEGPsnh8caZd4Vrs1xumC3v6S1i_LkcxBW4T29mNcpUUe020BD46auNadrAzhpxH2cX9-hL4r-pVEn4U_y5M_ZQuJgqIifDyCeFtcH3WbGcC3QOT1LQ0/s72-c/0-0.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-4479359070437714536</id><published>2014-07-07T18:38:00.000-07:00</published><updated>2015-06-04T20:54:24.784-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="免費自由軟體"/><title type='text'>WYSIWYG Web App create online example</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
來觀摩一下國外超強所見即所得的 Web App 線上產生器，在輸入網站的網址後，自動產生行動裝置版的網頁，並抓取該網站相關的 fb , 照片，影片，地圖資訊....等，只能用非常厲害來形容這個作者了&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9zG661IECZluOdKz_B6Sh6RktTeq8E4R6fGEXQJKJWKHT7S1IdVB7TJv0pL1IPX3ByIpl5gubdhZBizDS2q0wiYZ5d2a2BbkvqADGEOz1xYn4dRDtMIQzoqcFbBYCyDd72vcrDFXjKYi9/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2014-07-08+09:50:13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9zG661IECZluOdKz_B6Sh6RktTeq8E4R6fGEXQJKJWKHT7S1IdVB7TJv0pL1IPX3ByIpl5gubdhZBizDS2q0wiYZ5d2a2BbkvqADGEOz1xYn4dRDtMIQzoqcFbBYCyDd72vcrDFXjKYi9/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2014-07-08+09:50:13.png&quot; height=&quot;191&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
影片範例&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/PrZUfDnDZEU?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/sdk.js#xfbml=1&amp;appId=226933124004441&amp;version=v2.0&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;br /&gt;
&lt;div class=&quot;fb-comments&quot; data-colorscheme=&quot;light&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2014/07/wysiwyg-web-app-create-online-example.html&quot; data-numposts=&quot;5&quot; data-width=&quot;500&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
  (function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,&#39;script&#39;,&#39;//www.google-analytics.com/analytics.js&#39;,&#39;ga&#39;);

  ga(&#39;create&#39;, &#39;UA-17562138-1&#39;, &#39;auto&#39;);
  ga(&#39;send&#39;, &#39;pageview&#39;);

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4479359070437714536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4479359070437714536'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2014/07/wysiwyg-web-app-create-online-example.html' title='WYSIWYG Web App create online example'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9zG661IECZluOdKz_B6Sh6RktTeq8E4R6fGEXQJKJWKHT7S1IdVB7TJv0pL1IPX3ByIpl5gubdhZBizDS2q0wiYZ5d2a2BbkvqADGEOz1xYn4dRDtMIQzoqcFbBYCyDd72vcrDFXjKYi9/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2014-07-08+09:50:13.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-4967543665032183079</id><published>2014-06-04T19:56:00.003-07:00</published><updated>2014-06-04T20:00:39.895-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>UIPageViewController easy sample code</title><content type='html'>重新整理一下這篇教學文件的code , 並且改成純 hot coding 版 (原文是使用 single view application + xib)&amp;nbsp;&lt;a href=&quot;http://www.appcoda.com/uipageviewcontroller-tutorial-intro/&quot; target=&quot;_blank&quot;&gt;How to Use UIPageViewController to Build Tutorial Screens&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. 建立一個ViewController for UIPageViewController , 並將這個controller當作是conainer , 用來顯示每個child page&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHcJpRYR_oqHoFr2Q1LL5b6eYFdHy8ux1d64XZoDKB0ofcaRWCp0LBSLerv5lsFJ6FW8KNTHlZdX4t0PJ8DbgaY4WsXGB9LbvmeXGSrGak4CASawFQinrFuCNQ1QnJhC2mrFrKaP-IkuOn/s1600/0.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHcJpRYR_oqHoFr2Q1LL5b6eYFdHy8ux1d64XZoDKB0ofcaRWCp0LBSLerv5lsFJ6FW8KNTHlZdX4t0PJ8DbgaY4WsXGB9LbvmeXGSrGak4CASawFQinrFuCNQ1QnJhC2mrFrKaP-IkuOn/s1600/0.tiff&quot; height=&quot;100&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp;2. 建立 UIPageViewController&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJYRmaBvbqRru6V8kI2DRyav4NByBoLYCQtayU694RyRMkLhO7eupAX6HBVZx5Rv0v12kaXC7DiYAnDG66WPzeLVDLFft1iikAk2_OSTKQGG3bTWacN6VE9uaWJicRM24frLggIbF0eCE/s1600/1.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJYRmaBvbqRru6V8kI2DRyav4NByBoLYCQtayU694RyRMkLhO7eupAX6HBVZx5Rv0v12kaXC7DiYAnDG66WPzeLVDLFft1iikAk2_OSTKQGG3bTWacN6VE9uaWJicRM24frLggIbF0eCE/s1600/1.tiff&quot; height=&quot;146&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. 建立一個自定function&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimISjeHhm_uOYaTsHpSHSnps0kLfeBHduxt7zznPY8JJV8s2Fehon2OhnmY4PiIdDt0WU43lx4SyDjxaQjPntssSO3ecLjqzsp6sP1kYGtb6BxMibuGzhbPazJPI_Kyjzj9OZ8y7X7-YA2/s1600/2.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimISjeHhm_uOYaTsHpSHSnps0kLfeBHduxt7zznPY8JJV8s2Fehon2OhnmY4PiIdDt0WU43lx4SyDjxaQjPntssSO3ecLjqzsp6sP1kYGtb6BxMibuGzhbPazJPI_Kyjzj9OZ8y7X7-YA2/s1600/2.tiff&quot; height=&quot;119&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
4. 宣告一個變數，作為參數傳遞用，接收 parent PageViewController 傳入的參數&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMRUdnn44jTeIlZs3ube4Vd69_HyiZ74ZMaxGw8UUTQx1IzlXTl9hkn0p0bM7olvRAZtjk_0E6ZZI6D2e7ivwa6MtwhINjq-x6mBbnx_I3E7YFYNAUWnB6PdNZO_qDULgJxMWyoHzYqrEE/s1600/3.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMRUdnn44jTeIlZs3ube4Vd69_HyiZ74ZMaxGw8UUTQx1IzlXTl9hkn0p0bM7olvRAZtjk_0E6ZZI6D2e7ivwa6MtwhINjq-x6mBbnx_I3E7YFYNAUWnB6PdNZO_qDULgJxMWyoHzYqrEE/s1600/3.tiff&quot; height=&quot;118&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5. 在child page 顯示目前滑動到第幾頁&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCfy-uDr7rp3E-141zi-nQgl331VXWp15D1rL1-w5eWo5Eo7i_jK-XVMLdeOMOYxxje3oAs75ffpRLTvY3zZVCvA9TI1lIej-7vowlbYswyfy9nCF8VbX9RJ_h4uwEU5it_yDROxpUY_iF/s1600/4.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCfy-uDr7rp3E-141zi-nQgl331VXWp15D1rL1-w5eWo5Eo7i_jK-XVMLdeOMOYxxje3oAs75ffpRLTvY3zZVCvA9TI1lIej-7vowlbYswyfy9nCF8VbX9RJ_h4uwEU5it_yDROxpUY_iF/s1600/4.tiff&quot; height=&quot;137&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
6. 執行結果&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGQ7ouTCUzYa-nGrwa0au-y_wGSMkT4Whn8nNaH6h-VxFrAC0oJGn8_mRZHoI48wuBkkQpgB0Y3u4OsbN5t4Usrogx0DapIMkKSBY0lAdRhWM5H2v-LjlN1yr7uUBxjZhI79PzKu2I1w-n/s1600/5.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGQ7ouTCUzYa-nGrwa0au-y_wGSMkT4Whn8nNaH6h-VxFrAC0oJGn8_mRZHoI48wuBkkQpgB0Y3u4OsbN5t4Usrogx0DapIMkKSBY0lAdRhWM5H2v-LjlN1yr7uUBxjZhI79PzKu2I1w-n/s1600/5.tiff&quot; height=&quot;320&quot; width=&quot;214&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/sdk.js#xfbml=1&amp;appId=452356224816618&amp;version=v2.0&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2014/06/uipageviewcontroller-easy-sample-code.html&quot; data-width=&quot;500&quot; data-numposts=&quot;5&quot; data-colorscheme=&quot;light&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4967543665032183079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4967543665032183079'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2014/06/uipageviewcontroller-easy-sample-code.html' title='UIPageViewController easy sample code'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHcJpRYR_oqHoFr2Q1LL5b6eYFdHy8ux1d64XZoDKB0ofcaRWCp0LBSLerv5lsFJ6FW8KNTHlZdX4t0PJ8DbgaY4WsXGB9LbvmeXGSrGak4CASawFQinrFuCNQ1QnJhC2mrFrKaP-IkuOn/s72-c/0.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-7326259674343899602</id><published>2014-04-06T23:20:00.003-07:00</published><updated>2014-04-06T23:34:25.993-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>iOS SDK 讀取 json 中文 sample</title><content type='html'>整理了一下google上 iOS SDK 前輩上的資料，彙整成容易上手的快速使用範例

&lt;br /&gt;
&lt;br /&gt;
1.建立json檔案，並且確認其格式是正確的&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHk79qS_ZleF8pxVaeMC8wM-9bHj6jE02iVLhGZcKCsWEvJPWfb35QChOQNkwv2Lv8oC6kzcUHNnFIXRKzHu0GdZnMQ2kkLXYDGFLzzQcAm6pDhkK4zTVoHxzfUIjiRM4CNZERe1yn_Snh/s1600/0.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHk79qS_ZleF8pxVaeMC8wM-9bHj6jE02iVLhGZcKCsWEvJPWfb35QChOQNkwv2Lv8oC6kzcUHNnFIXRKzHu0GdZnMQ2kkLXYDGFLzzQcAm6pDhkK4zTVoHxzfUIjiRM4CNZERe1yn_Snh/s320/0.tiff&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2.貼上下列程式碼即可&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3f9G1quNGNAu8PRTSG1Jm1aDaXIVgVB35Tb-yPPMOZh4mMLJOI_poYlzWhwkfYQcXU3DRkPtr_wloBJpD0OMGQ_GLcfl8gI0-ODv6aF_KYgjepYYub1iwEJhYd4J-SLIBnkpVK4sy4H_7/s1600/3.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3f9G1quNGNAu8PRTSG1Jm1aDaXIVgVB35Tb-yPPMOZh4mMLJOI_poYlzWhwkfYQcXU3DRkPtr_wloBJpD0OMGQ_GLcfl8gI0-ODv6aF_KYgjepYYub1iwEJhYd4J-SLIBnkpVK4sy4H_7/s1600/3.tiff&quot; height=&quot;187&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;br /&gt;
&lt;div class=&quot;fb-comments&quot; data-colorscheme=&quot;light&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2014/04/ios-sdk-json-sample.html&quot; data-numposts=&quot;5&quot; data-width=&quot;500&quot;&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/7326259674343899602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/7326259674343899602'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2014/04/ios-sdk-json-sample.html' title='iOS SDK 讀取 json 中文 sample'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHk79qS_ZleF8pxVaeMC8wM-9bHj6jE02iVLhGZcKCsWEvJPWfb35QChOQNkwv2Lv8oC6kzcUHNnFIXRKzHu0GdZnMQ2kkLXYDGFLzzQcAm6pDhkK4zTVoHxzfUIjiRM4CNZERe1yn_Snh/s72-c/0.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-8625716189687286269</id><published>2014-03-02T20:46:00.002-08:00</published><updated>2014-03-02T20:51:14.703-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="免費自由軟體"/><title type='text'>Youtube 影片 MP3 下載 好用免費工具 - download free tool</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. 開啓 FireFox , 選擇 「工具」-&amp;gt;「附加元件」-&amp;gt; 「安裝 Easy Youtube Downloader」&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLCUJAXM-d6UL8kesFN4rG22jykATm6Vw9w1XFKtBvB2HjXc67nCW0S3unkTdw_lHgBUINYUsBqOOhOMPhqfb9wCJYhg_VSiCizSAXAEYnyVeEpmWAj74kh0AGslW5YrAKVmGvK47oEBx4/s1600/2.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLCUJAXM-d6UL8kesFN4rG22jykATm6Vw9w1XFKtBvB2HjXc67nCW0S3unkTdw_lHgBUINYUsBqOOhOMPhqfb9wCJYhg_VSiCizSAXAEYnyVeEpmWAj74kh0AGslW5YrAKVmGvK47oEBx4/s320/2.tiff&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 開啓 Youtube 網頁，在播放影片時，就會出現一個綠色的小 Icon , 點選綠色小 Icon , 就可以下載各種影音格式&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn4YifMSUFs_E-6HcI_swFDnLJeLPtHby33S6u3G6AeXF-kx4Tz8stF5NmpsFfWsGNTpfBQzdRPQYdJUJCp4XnRr-_amTFmou1Aj2v1UErTwT4HdBvxG6kmkhWKvQdRN_yMHRurPGPJlOz/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn4YifMSUFs_E-6HcI_swFDnLJeLPtHby33S6u3G6AeXF-kx4Tz8stF5NmpsFfWsGNTpfBQzdRPQYdJUJCp4XnRr-_amTFmou1Aj2v1UErTwT4HdBvxG6kmkhWKvQdRN_yMHRurPGPJlOz/s1600/1.jpg&quot; height=&quot;320&quot; width=&quot;268&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2014/03/youtube-mp3-download-free-tool.html&quot; data-width=&quot;500&quot; data-numposts=&quot;5&quot; data-colorscheme=&quot;light&quot;&gt;&lt;/div&gt;
&lt;script&gt;
  (function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,&#39;script&#39;,&#39;//www.google-analytics.com/analytics.js&#39;,&#39;ga&#39;);

  ga(&#39;create&#39;, &#39;UA-17562138-1&#39;, &#39;enterprise-it.blogspot.com&#39;);
  ga(&#39;send&#39;, &#39;pageview&#39;);

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8625716189687286269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8625716189687286269'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2014/03/youtube-mp3-download-free-tool.html' title='Youtube 影片 MP3 下載 好用免費工具 - download free tool'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLCUJAXM-d6UL8kesFN4rG22jykATm6Vw9w1XFKtBvB2HjXc67nCW0S3unkTdw_lHgBUINYUsBqOOhOMPhqfb9wCJYhg_VSiCizSAXAEYnyVeEpmWAj74kh0AGslW5YrAKVmGvK47oEBx4/s72-c/2.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-6391003362453612885</id><published>2014-02-16T19:42:00.000-08:00</published><updated>2014-04-06T23:34:12.703-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>UIWebView NSURLConnection 程式範例 - UIWebView sample</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. 先建立一個空白專案，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 再建立一個空白Controller , 在AppDelegate.m宣告載入ViewController&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCyRTEk46SQ71uxxpE7KBTUn45_OnuaMhr1DPYu4lU3sHJ4U-Z4s7f2HaK86u07aEDupZKgkrPLL9If1q_37A0yPUZoiNRCxEgeXnY_SwjqmLLgNePuXDCzNt7VhCcjw7fk2wseumzsE2/s1600/01.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCyRTEk46SQ71uxxpE7KBTUn45_OnuaMhr1DPYu4lU3sHJ4U-Z4s7f2HaK86u07aEDupZKgkrPLL9If1q_37A0yPUZoiNRCxEgeXnY_SwjqmLLgNePuXDCzNt7VhCcjw7fk2wseumzsE2/s1600/01.tiff&quot; height=&quot;108&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. 在ViewController.h宣告需要用到的物件&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxTjNtpHjVtNzHfrHqNpMMd_SEW-Rm7Ox6Pfs78i6xivjhWOsm0zsdDhuJpg5PHKd8DeefzXReqsZpEo_FkXLlrFv9pPKXC_xO4MM-bSLfKWO1WAk_3T-6C0Zl7Bfl80rvF-sI_Ix3j0US/s1600/02.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxTjNtpHjVtNzHfrHqNpMMd_SEW-Rm7Ox6Pfs78i6xivjhWOsm0zsdDhuJpg5PHKd8DeefzXReqsZpEo_FkXLlrFv9pPKXC_xO4MM-bSLfKWO1WAk_3T-6C0Zl7Bfl80rvF-sI_Ix3j0US/s1600/02.tiff&quot; height=&quot;111&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. 使用非同步傳輸的方式來顯示網頁 , 宣告網頁連結及建立連結&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7ROcbtAOft4T3f0IOx60-03RX6eDhTiztcwXfs_cSmZcpumQkg-OYYYROMqY7Jg8aD2cgF5Jmu36bq8JYA4sjTtYaC8hgyTcl9SV148NHVN6XFHDWicvk2c9nyIhy6YpQaZPaAUw9ic7x/s1600/03.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7ROcbtAOft4T3f0IOx60-03RX6eDhTiztcwXfs_cSmZcpumQkg-OYYYROMqY7Jg8aD2cgF5Jmu36bq8JYA4sjTtYaC8hgyTcl9SV148NHVN6XFHDWicvk2c9nyIhy6YpQaZPaAUw9ic7x/s1600/03.tiff&quot; height=&quot;166&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. 在ViewController一開始時呼叫建立連結的function&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgil7gmHgn73tM8-7jpwYKWNx09qCN48S0lDWaxwSlXgVKIXEJdw8wPB8pRNaJku9mOxem9-i8yqzUBO29ldRrHvuLK5Oy-eQHwD9ymYxPFCFQFWJXIZ4hRl2qLBPrsMcFNRFLGQY0k0D9U/s1600/04.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgil7gmHgn73tM8-7jpwYKWNx09qCN48S0lDWaxwSlXgVKIXEJdw8wPB8pRNaJku9mOxem9-i8yqzUBO29ldRrHvuLK5Oy-eQHwD9ymYxPFCFQFWJXIZ4hRl2qLBPrsMcFNRFLGQY0k0D9U/s1600/04.tiff&quot; height=&quot;76&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. 然後再用填充的方式，填入 NSURLConnection 所提供的 function , 及其想要顯示的內容&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinBg7CdNs0cJmHlNN3b9-VUcNzj7c44CsEpMPgeru77LmbEa9YcyPnWZhPAkM6Z6f1Y-A_OMYDotUG3pA1ElnbD6VlSK5nA1ycFiuj3izKkXQjuWTxqNxZXhHkN1M7qwIR7-c_E4muwoSy/s1600/05.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinBg7CdNs0cJmHlNN3b9-VUcNzj7c44CsEpMPgeru77LmbEa9YcyPnWZhPAkM6Z6f1Y-A_OMYDotUG3pA1ElnbD6VlSK5nA1ycFiuj3izKkXQjuWTxqNxZXhHkN1M7qwIR7-c_E4muwoSy/s1600/05.tiff&quot; height=&quot;153&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. 來看看執行結果吧&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC8cIQ9ndl-OQfqBMXaOY1lA1Rsd1IvhTHLippgZOYQFKnOwdxQsEspFcBKZtipNwcfSMg9NNdo5B3wUAUreqJ3NzlBugSE06XHnQXLNhrnTD8Tup3ysNiNLuj0whCz1UrSTCoYbfOc_TL/s1600/06.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC8cIQ9ndl-OQfqBMXaOY1lA1Rsd1IvhTHLippgZOYQFKnOwdxQsEspFcBKZtipNwcfSMg9NNdo5B3wUAUreqJ3NzlBugSE06XHnQXLNhrnTD8Tup3ysNiNLuj0whCz1UrSTCoYbfOc_TL/s1600/06.tiff&quot; height=&quot;320&quot; width=&quot;209&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;div class=&quot;fb-comments&quot; data-colorscheme=&quot;light&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2014/02/uiwebview-nsurlconnection-uiwebview.html&quot; data-numposts=&quot;5&quot; data-width=&quot;500&quot;&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/6391003362453612885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/6391003362453612885'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2014/02/uiwebview-nsurlconnection-uiwebview.html' title='UIWebView NSURLConnection 程式範例 - UIWebView sample'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsCyRTEk46SQ71uxxpE7KBTUn45_OnuaMhr1DPYu4lU3sHJ4U-Z4s7f2HaK86u07aEDupZKgkrPLL9If1q_37A0yPUZoiNRCxEgeXnY_SwjqmLLgNePuXDCzNt7VhCcjw7fk2wseumzsE2/s72-c/01.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-8479461603487697602</id><published>2013-12-17T18:44:00.002-08:00</published><updated>2013-12-17T18:46:23.159-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>jPlayer HTML5 sample 如何跨平台不使用 flash 播放 mp3</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
html5 目前已經是前端網頁程式的主流，Adobe 也早就宣佈 flash 不再支援行動裝置，所以在設計上就必須考慮到 no flash 的替代方案。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
HTML5 已經有很多不同的&amp;nbsp;polyfill 替代方案，即在各家瀏覽器或平台如果不支援 HTML5 , 可以另一種形式來執行，不會因為某種瀏覽器不支援 HTML5 , 就無法執行網頁&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
要知道這個 HTML5 功能的支援項目，可以在&amp;nbsp;&lt;a href=&quot;http://www.w3schools.com/html/html5_audio.asp&quot; target=&quot;_blank&quot;&gt;http://www.w3schools.com/html/html5_audio.asp&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
查到完整資訊&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
這個 sample 以 jPlayer 為例&amp;nbsp;&lt;a href=&quot;http://jplayer.org/&quot; target=&quot;_blank&quot;&gt;http://jplayer.org/&lt;/a&gt;&amp;nbsp;, (也可以播放影片喔)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. 首先貼上下列的程式碼 , 因為這個範例是每個考題都有自己的 mp3 檔，所以寫成 function , 動態載入 jquery id &amp;amp; mp3 file name，因為 jPlayer 提供 flash player , 所以 flash player 的路徑必須設定正確，否則會找不到 player&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPe30ItYlokQjNhQDBtdG_x0_Ql9eYRVfnlrPAB-2ZIkNgq-6c53S6YbJkjjOsI-5HprCWI2Jt5JBwaMibMkcSVEHrGnAGyO98rr1ktXEQ_wgxeqESUhCMBVp1coEJWTob31gGEEs_j7L/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:36:46.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;209&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPe30ItYlokQjNhQDBtdG_x0_Ql9eYRVfnlrPAB-2ZIkNgq-6c53S6YbJkjjOsI-5HprCWI2Jt5JBwaMibMkcSVEHrGnAGyO98rr1ktXEQ_wgxeqESUhCMBVp1coEJWTob31gGEEs_j7L/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:36:46.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 再貼上 html code 就完成了&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiApMmDVRLmpTb4wZahnnPWGwrammxPKqru7tc6U8Weq8U_5DzwPKbYOTt3D9JU21znlwGfPJwtmY_iMMijC6eCV0rCkJMXCiNvzZuNjhTqUro9I4EojJVC7tc2M7-6guMxzeJFNgbzCwcX/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:37:14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiApMmDVRLmpTb4wZahnnPWGwrammxPKqru7tc6U8Weq8U_5DzwPKbYOTt3D9JU21znlwGfPJwtmY_iMMijC6eCV0rCkJMXCiNvzZuNjhTqUro9I4EojJVC7tc2M7-6guMxzeJFNgbzCwcX/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:37:14.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
在 IE 播放結果，因為 IE8 不支援 HTML5 Audio 播放，所以自動填入 flash player，可以按 F12 觀察 HTML Code , 可以發現網頁已經載入 flash&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6aSHtU55qASyax9378Ukqi_udykcLn49kn29I4veQCsxy2H1xx5kt5N7xgSqWKSC44wn4kmY5sHHoVuxpcFi2lSxhR8Qbh1U4yNKyr_Dwg-d3P-8qg2HX7Evz6xinyVQszykqsq3dMWJv/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:17:02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6aSHtU55qASyax9378Ukqi_udykcLn49kn29I4veQCsxy2H1xx5kt5N7xgSqWKSC44wn4kmY5sHHoVuxpcFi2lSxhR8Qbh1U4yNKyr_Dwg-d3P-8qg2HX7Evz6xinyVQszykqsq3dMWJv/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:17:02.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
FireFox 支援 HTML5 Audio ，所以直接播放mp3 , 按 F12 觀察 HTML code , 並沒有載入 flash , 而是自己寫的 html code&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNbK4VXFLnl7sUbSyLQ0_SS8ZXyOo1pzVA934XYcxcAMFOn4fLoJzCJd4TNcHmUv4u0x24XaNJfDlLxDKOHoLTKRJQV6NL-8oG71MwtlK7W7QYl7wRNIWaTjhU-Hzqz7gFbBTEjD8DdUy9/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:18:45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNbK4VXFLnl7sUbSyLQ0_SS8ZXyOo1pzVA934XYcxcAMFOn4fLoJzCJd4TNcHmUv4u0x24XaNJfDlLxDKOHoLTKRJQV6NL-8oG71MwtlK7W7QYl7wRNIWaTjhU-Hzqz7gFbBTEjD8DdUy9/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:18:45.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
在 iPhone 執行結果&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3DSHiVXJGz2lXHx2wyKOAZSIJEawDJNCz6tExDs33RBwZxPYI4f1037rwCleQPCTpIhJnYW-UWYaiocUT6fwmI6Mn2WXuf2wwD_YCLsGRD5W-5AT6pwNR1Zzekp7sftD710k_3WnGssZn/s1600/%E7%85%A7%E7%89%87.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3DSHiVXJGz2lXHx2wyKOAZSIJEawDJNCz6tExDs33RBwZxPYI4f1037rwCleQPCTpIhJnYW-UWYaiocUT6fwmI6Mn2WXuf2wwD_YCLsGRD5W-5AT6pwNR1Zzekp7sftD710k_3WnGssZn/s320/%E7%85%A7%E7%89%87.JPG&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/12/jplayer-html5-sample-flash-mp3.html&quot; data-width=&quot;500&quot; data-layout=&quot;standard&quot; data-action=&quot;like&quot; data-show-faces=&quot;true&quot; data-share=&quot;true&quot;&gt;&lt;/div&gt;

&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/12/jplayer-html5-sample-flash-mp3.html&quot; data-width=&quot;500&quot; data-numposts=&quot;5&quot; data-colorscheme=&quot;light&quot;&gt;&lt;/div&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8479461603487697602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8479461603487697602'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/12/jplayer-html5-sample-flash-mp3.html' title='jPlayer HTML5 sample 如何跨平台不使用 flash 播放 mp3'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggPe30ItYlokQjNhQDBtdG_x0_Ql9eYRVfnlrPAB-2ZIkNgq-6c53S6YbJkjjOsI-5HprCWI2Jt5JBwaMibMkcSVEHrGnAGyO98rr1ktXEQ_wgxeqESUhCMBVp1coEJWTob31gGEEs_j7L/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-18+10:36:46.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-4855660643010685992</id><published>2013-12-15T18:31:00.001-08:00</published><updated>2013-12-15T18:32:35.396-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><title type='text'>asp.net dynamic create datatable 1分鐘快速產生 DataTable</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
好吧，就這麼簡單了，宣告DataTable , 加入DataTable的column，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
一個DataTable會有多了column , 一個column會有多了row，所以我們寫個迴圈，依序加入數值，這樣就Ok了&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSZ5k8raxmSWn9dzqJhir8tX9SuD009oz2e54z8e5qxJXbpGT3sl4XjbK5M6GzGlD3_q-78umz75fIBoarMydWELIoPmsYzp00-IpzzcJtHsh6coKT4_a6g4kQvQahOMS6bzXVYmtw-sOS/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-16+10:22:06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSZ5k8raxmSWn9dzqJhir8tX9SuD009oz2e54z8e5qxJXbpGT3sl4XjbK5M6GzGlD3_q-78umz75fIBoarMydWELIoPmsYzp00-IpzzcJtHsh6coKT4_a6g4kQvQahOMS6bzXVYmtw-sOS/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-16+10:22:06.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4855660643010685992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4855660643010685992'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/12/aspnet-dynamic-create-datatable-1.html' title='asp.net dynamic create datatable 1分鐘快速產生 DataTable'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSZ5k8raxmSWn9dzqJhir8tX9SuD009oz2e54z8e5qxJXbpGT3sl4XjbK5M6GzGlD3_q-78umz75fIBoarMydWELIoPmsYzp00-IpzzcJtHsh6coKT4_a6g4kQvQahOMS6bzXVYmtw-sOS/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-16+10:22:06.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-6153052365578477555</id><published>2013-12-10T17:37:00.000-08:00</published><updated>2013-12-10T17:40:27.367-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="免費自由軟體"/><title type='text'>Flickr Picasa 相片 slider 如何在 iphone ipad Android 手機上播放 - embedded 鉗入網頁 </title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
我們先來看一下網頁slider畫面&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJP1kTIuVvJSSPD1ULVrzmzP197eVFqBQUGcCb_qK7S36PpoFHjO6llJ9mrIKQK1lcC40MY2BCFVWnRzmrjDG06twj9oYOp44RYJGKzLGJfTtql48vuyTYXQfXUNHiNAw96lG4tx3QaylX/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:34:55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJP1kTIuVvJSSPD1ULVrzmzP197eVFqBQUGcCb_qK7S36PpoFHjO6llJ9mrIKQK1lcC40MY2BCFVWnRzmrjDG06twj9oYOp44RYJGKzLGJfTtql48vuyTYXQfXUNHiNAw96lG4tx3QaylX/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:34:55.png&quot; width=&quot;319&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
1. 首先要在 Flickr 上申請一個帳號，然後上傳照片，然後記得一定要建立相片集才能建立相片的自動播放slider喔&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
1-1 點選相片集&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNkZke6LqJHOcFwNPPuXjq_jMqVKE4-FkupNMGQWK4NDAKizJZMaLCOKcah61Nzl0xt_h1NZacZbZE4x0nBasRpoMo2zhI0_mrqDrK11nAr-0xol-OPlAOtAsT_jaNf4owdUUxmW_0Qjpu/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:12:18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNkZke6LqJHOcFwNPPuXjq_jMqVKE4-FkupNMGQWK4NDAKizJZMaLCOKcah61Nzl0xt_h1NZacZbZE4x0nBasRpoMo2zhI0_mrqDrK11nAr-0xol-OPlAOtAsT_jaNf4owdUUxmW_0Qjpu/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:12:18.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;1-2 新增一個相片集&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gzDxYW6b2P69dq7mbehyh79yh8fw1ENWIAtvcRLaPwwE-xK22AV3f8nNBdscBlLmNcjqIXpWhppmtXUGqnHnqEq2X9QPUMoav0SXZV5YHT0FPkJl8Y7KTjSdKLPfb6c2piTs_PCH5c68/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:12:50.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gzDxYW6b2P69dq7mbehyh79yh8fw1ENWIAtvcRLaPwwE-xK22AV3f8nNBdscBlLmNcjqIXpWhppmtXUGqnHnqEq2X9QPUMoav0SXZV5YHT0FPkJl8Y7KTjSdKLPfb6c2piTs_PCH5c68/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:12:50.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;1-3 將照片點選後，拖拉進相片集&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpSRMNvZwJk-jGVdVfZHTKlDfR-0gIvE3vEcm3pZATuI0_df5LyK7dyOGuvOC9PVCDmQYYE-mSarotgRsICdaR4q250Nr8fDEwurQpGRA1NvpiMtkNGnNlUsqSS3s7KYknZHYHulFuvmm-/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:13:10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpSRMNvZwJk-jGVdVfZHTKlDfR-0gIvE3vEcm3pZATuI0_df5LyK7dyOGuvOC9PVCDmQYYE-mSarotgRsICdaR4q250Nr8fDEwurQpGRA1NvpiMtkNGnNlUsqSS3s7KYknZHYHulFuvmm-/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:13:10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
1-4 進入相片集後，務必記得複製相片集的網址&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKMcpHhqdT_7QPMhtsr_VoWM6vtFwGmTNjEtrK7u69GfuXbk-RiBiaYZeQs4nLr36DjikCRrAoB9Ysewapr05H33lbmP-815yJdz3WD5jXMfbSlC4TwjuVcxI1fYF2LZ99xsU8bi7O3skF/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:20:57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKMcpHhqdT_7QPMhtsr_VoWM6vtFwGmTNjEtrK7u69GfuXbk-RiBiaYZeQs4nLr36DjikCRrAoB9Ysewapr05H33lbmP-815yJdz3WD5jXMfbSlC4TwjuVcxI1fYF2LZ99xsU8bi7O3skF/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:20:57.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 您的相片集可以使用 flash photo slider :&amp;nbsp;&lt;a href=&quot;http://flickrslidr.com/&quot; target=&quot;_blank&quot;&gt;http://flickrslidr.com/&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
不過不支援 iphone &amp;amp; ipad 喔！！&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
如附圖，輸入相片集的網址，輸入slider的寬度，長度，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
按下 [create slideshow] 藍色按鍵，複製在 [code] 裡面的 html code ,&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
且可以看到預覽畫面，將複製的 embedded html code 放入您的網頁即可&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1fyfZ7xvDg9v9HQwPyHjTne8hqEmdRNKgTfSyk4tjt7-fRT3nOwkjAoGPmmNNR53eEeiJKA_JVpotsmSFvDw0iGYYWpsSsPFsyqob98_9cKo6FE9EyL2ikAt6o0V5sMc7pgf-xrw8idg0/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:26:00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1fyfZ7xvDg9v9HQwPyHjTne8hqEmdRNKgTfSyk4tjt7-fRT3nOwkjAoGPmmNNR53eEeiJKA_JVpotsmSFvDw0iGYYWpsSsPFsyqob98_9cKo6FE9EyL2ikAt6o0V5sMc7pgf-xrw8idg0/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:26:00.png&quot; width=&quot;215&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. 如果要在 iphone , ipad 上播放，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
可以使用 html5 photo slider :&amp;nbsp;&lt;a href=&quot;http://www.slidemypics.com/&quot; target=&quot;_blank&quot;&gt;http://www.slidemypics.com/&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
選擇您想要建立的社群網站，並建立連結，讓 SlideMyPics 可以存取照片，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
然後選擇slider尺寸，複製 embedder html code 到您的網頁即可&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-6hYIz4WJmV56lnwX1_mlclI_vQVHN-VLqb6LqZ3UzW99Xag1aPTn3YcCfpqetaI0QDdg-pvt19OxkAh3dCdN7OlIaEDB88Xu0lGr2Inuluemis-XVsazxEgBZz1UZGIxXisHeCSuW3Jh/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:29:18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-6hYIz4WJmV56lnwX1_mlclI_vQVHN-VLqb6LqZ3UzW99Xag1aPTn3YcCfpqetaI0QDdg-pvt19OxkAh3dCdN7OlIaEDB88Xu0lGr2Inuluemis-XVsazxEgBZz1UZGIxXisHeCSuW3Jh/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:29:18.png&quot; width=&quot;226&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcKeMeN60EGGwESuGyUWUzYuRn-EEnDB6DCUKxGeVsuyzkl9vIylKndYZuxFFfh8ohDNQiooMg_FcYcnCJeqXQqL33KovLbR3jhO_4qT3OrcSu8h02ezwhPpEs2u6cFSan4P26BB2MYCef/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:29:48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcKeMeN60EGGwESuGyUWUzYuRn-EEnDB6DCUKxGeVsuyzkl9vIylKndYZuxFFfh8ohDNQiooMg_FcYcnCJeqXQqL33KovLbR3jhO_4qT3OrcSu8h02ezwhPpEs2u6cFSan4P26BB2MYCef/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:29:48.png&quot; width=&quot;198&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/12/flickr-picasa-slider-iphone-ipad.html&quot; data-width=&quot;500&quot; data-layout=&quot;standard&quot; data-action=&quot;like&quot; data-show-faces=&quot;true&quot; data-share=&quot;true&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/12/flickr-picasa-slider-iphone-ipad.html&quot; data-width=&quot;500&quot; data-numposts=&quot;5&quot; data-colorscheme=&quot;light&quot;&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/6153052365578477555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/6153052365578477555'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/12/flickr-picasa-slider-iphone-ipad.html' title='Flickr Picasa 相片 slider 如何在 iphone ipad Android 手機上播放 - embedded 鉗入網頁 '/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJP1kTIuVvJSSPD1ULVrzmzP197eVFqBQUGcCb_qK7S36PpoFHjO6llJ9mrIKQK1lcC40MY2BCFVWnRzmrjDG06twj9oYOp44RYJGKzLGJfTtql48vuyTYXQfXUNHiNAw96lG4tx3QaylX/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-11+09:34:55.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-3842504911329354801</id><published>2013-12-10T08:32:00.001-08:00</published><updated>2013-12-12T22:23:31.844-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="family"/><title type='text'>妘妘</title><content type='html'>&lt;iframe width=&quot;520&quot; height=&quot;400&quot; frameborder=&quot;0&quot; src=&quot;http://files.slidemypics.com/app/js/iframe.html?bg_color=1f1f1f&amp;amp;hash=bd000d1a8aa885bc8f834abea1298442&amp;amp;r=0.06198317720554769&quot;&gt;&lt;/iframe&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/3842504911329354801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/3842504911329354801'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/12/blog-post.html' title='妘妘'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-7038114905486423781</id><published>2013-12-06T00:18:00.003-08:00</published><updated>2013-12-15T18:32:50.031-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>HTML5 Canvas animation 動畫程式 之 懶人寫法</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
這個範例採用非正統的懶人動畫寫法，因為小弟數學奇爛，所以沒有套用數學公式，直接變換 x ,y 的值來達到動畫的效果&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
先來看一下成果&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/6M9hUiC1sKA?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. 首先宣告 html5 canvas , 如附圖第8行~第9行，然後準備三張圖片，兩張做為連續播放使用(PNG photo file)，一張做為背景圖片，第19行到第26行宣告 canvas 及 繪出背景圖片&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNM-V1wqIAnYMHpon9iaZeMpwou7LeD05NcYQ02fH5Ql5sU10EXtM98j8Uoyu7ijFFOyJuA-NA_9IHHMVteMk7KZmFk_u9FY4HFzCDRy3QfN5Mh_jAWBTvaQuLkDvCYdACOvGc6JiBMo0a/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:57:52.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNM-V1wqIAnYMHpon9iaZeMpwou7LeD05NcYQ02fH5Ql5sU10EXtM98j8Uoyu7ijFFOyJuA-NA_9IHHMVteMk7KZmFk_u9FY4HFzCDRy3QfN5Mh_jAWBTvaQuLkDvCYdACOvGc6JiBMo0a/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:57:52.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhvzns5f-vYfmdaAKc7GKKrOM3LPqFct10QoVcLDdu_rUUyqMSg1cHtZea72DOeIHZJaNDHrIQGoz6EdLDPRdogIAYfdRoA_HXLEv7L6L_Ajdg2ylcV3iSmOEU5D5ZDoYhokYXFLY1tU4q/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+16:03:53.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;116&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhvzns5f-vYfmdaAKc7GKKrOM3LPqFct10QoVcLDdu_rUUyqMSg1cHtZea72DOeIHZJaNDHrIQGoz6EdLDPRdogIAYfdRoA_HXLEv7L6L_Ajdg2ylcV3iSmOEU5D5ZDoYhokYXFLY1tU4q/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+16:03:53.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 接著撰寫圖片切換 function ,&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
設定 timer , 每200 ms 切換一次圖片&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
第36～43行，設定一個變數 flag , 當 flag = 1 時，播放圖片1，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
當 flag = 2 時，播放圖片2 ,&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
第44～47行，繪製圖片及背景圖，請設定 canvas 的 source-atop , 讓切換的圖片及背景圖能同時出現&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
第50～64行，依自己的需求撰寫圖片移動路徑，即切換 x , y&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRWDSKxM2pgzXUJnDVE66AX6ZK3iF9j9qsePECswme-8Kj6ElZwT-aOexBNtLD8Ttk3bdyStu3idP3PnGbvHB2cg9riUrbzBlqOiEXBb3AhFqiNNisXn2jqpqfsuUMla_fD0IuW3Euhivz/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:58:24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRWDSKxM2pgzXUJnDVE66AX6ZK3iF9j9qsePECswme-8Kj6ElZwT-aOexBNtLD8Ttk3bdyStu3idP3PnGbvHB2cg9riUrbzBlqOiEXBb3AhFqiNNisXn2jqpqfsuUMla_fD0IuW3Euhivz/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:58:24.png&quot; width=&quot;272&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. 第79～84行，增加一個event listener , 當滑鼠按下時，可以觸發想要做的動作，這邊我們做變更圖片的動作&lt;br /&gt;
&lt;br /&gt;
第68～76行，繪製要變更的圖&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvIDrVVAfzm_IRng39sQe0rf_Xk8Pd-qelMAU-OXx7d15dN-z3W_1x-EMf23Yid1LQlnHx-RyN1bnMthkBZMJ2bt2_B48nMoh8ns2AHn06H9BayrPIAb_vB8zsK-gtwD8xTFxeDENtYJY6/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:58:48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvIDrVVAfzm_IRng39sQe0rf_Xk8Pd-qelMAU-OXx7d15dN-z3W_1x-EMf23Yid1LQlnHx-RyN1bnMthkBZMJ2bt2_B48nMoh8ns2AHn06H9BayrPIAb_vB8zsK-gtwD8xTFxeDENtYJY6/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:58:48.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/12/html5-canvas-animation.html&quot; data-layout=&quot;standard&quot; data-action=&quot;like&quot; data-show-faces=&quot;true&quot; data-share=&quot;true&quot;&gt;&lt;/div&gt;

&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/12/html5-canvas-animation.html&quot; data-width=&quot;400&quot; data-numposts=&quot;5&quot; data-colorscheme=&quot;light&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/7038114905486423781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/7038114905486423781'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/12/html5-canvas-animation.html' title='HTML5 Canvas animation 動畫程式 之 懶人寫法'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNM-V1wqIAnYMHpon9iaZeMpwou7LeD05NcYQ02fH5Ql5sU10EXtM98j8Uoyu7ijFFOyJuA-NA_9IHHMVteMk7KZmFk_u9FY4HFzCDRy3QfN5Mh_jAWBTvaQuLkDvCYdACOvGc6JiBMo0a/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-12-06+15:57:52.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-5277907156806450530</id><published>2013-08-06T00:09:00.000-07:00</published><updated>2013-12-15T18:33:03.621-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>Apple TV 及 iPad 的 使用說明 - iPad remote control Apple TV</title><content type='html'>1. 將 Apple TV 的電源線及HDMI線接上，HDMI 線有區分支援的電視螢幕尺寸喔，所以請確認家裡的電視螢幕尺寸，再選購 HDMI 線&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtv8vBsSZWEZ7JofLB_CZxHNeFk_zxwctu4LPQSTLXl5FgPGleECd04W5JCvdXB5lGMnPyQ9hMwW8RFyUok23vyuMJ-TXvYY7elXwUzfGrZd8YdEhnsBKGUnkG8Mvrs2KJeMAjeWuXtC3u/s1600/IMG_0029.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtv8vBsSZWEZ7JofLB_CZxHNeFk_zxwctu4LPQSTLXl5FgPGleECd04W5JCvdXB5lGMnPyQ9hMwW8RFyUok23vyuMJ-TXvYY7elXwUzfGrZd8YdEhnsBKGUnkG8Mvrs2KJeMAjeWuXtC3u/s320/IMG_0029.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. 將HDMI 線接上電視&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiee2SX3EAPYdvhZTOmyxLhY6HHN9gvWVrwHXlRDWzMWKuOQPk2L2d0pxRzXeMGywm7xwMd0p86D846FFQeIAKFdmtfuLFiVlbhC7Fhjr6RTnoc-xZSql49roya9rFSJr98AHxHZhImjMFX/s1600/IMG_0030.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiee2SX3EAPYdvhZTOmyxLhY6HHN9gvWVrwHXlRDWzMWKuOQPk2L2d0pxRzXeMGywm7xwMd0p86D846FFQeIAKFdmtfuLFiVlbhC7Fhjr6RTnoc-xZSql49roya9rFSJr98AHxHZhImjMFX/s320/IMG_0030.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Apple TV 的遙控器，輕薄短小，和ipad一樣指向 [設定]&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjRdlIh4wVyDaHLmYkDmnuNNVeFKzk8pJxg9pY2aP59vUum2qeIrQVlkndq72oR0LaJUbCTnRGjuvJTh0xW68MF6MgCo_uEhaGJEaj23tAJSUC3xybu6mo8yBC7zDJIcKb_iD9t6i0URrF/s1600/IMG_0032.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjRdlIh4wVyDaHLmYkDmnuNNVeFKzk8pJxg9pY2aP59vUum2qeIrQVlkndq72oR0LaJUbCTnRGjuvJTh0xW68MF6MgCo_uEhaGJEaj23tAJSUC3xybu6mo8yBC7zDJIcKb_iD9t6i0URrF/s320/IMG_0032.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. 顯示本機的資訊&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiowZNlc_snB3O334I102tw_5UDeWJ8FRoQ9jJSe5ralu5RcTw8xpNbbBxHpzTDIGX6cvI3eu_3ZENeZIzYsFMB-LrScgWkCyJdkXgYoU9LyW8fiCT7PFJzN6LQlfsC5dl71kcnwtugaSdE/s1600/IMG_0035.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiowZNlc_snB3O334I102tw_5UDeWJ8FRoQ9jJSe5ralu5RcTw8xpNbbBxHpzTDIGX6cvI3eu_3ZENeZIzYsFMB-LrScgWkCyJdkXgYoU9LyW8fiCT7PFJzN6LQlfsC5dl71kcnwtugaSdE/s320/IMG_0035.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. 選擇 Wi-Fi，讓 Apple TV 連上網路&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVZk-9F8oV1FBjMwG9h0WPu8ya5aUvVk8bQUKTBVTIkgb37kt0SvXx9Wn6B2TxsCJJOrvC9JWs0v0JAJSrgJe16-0AK2IzxJHMg6aP4-EPCIEyBhhKgR4vXn9Lq3R5uOcBplaJ06JT3JsJ/s1600/IMG_0036.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVZk-9F8oV1FBjMwG9h0WPu8ya5aUvVk8bQUKTBVTIkgb37kt0SvXx9Wn6B2TxsCJJOrvC9JWs0v0JAJSrgJe16-0AK2IzxJHMg6aP4-EPCIEyBhhKgR4vXn9Lq3R5uOcBplaJ06JT3JsJ/s320/IMG_0036.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. 在 iPad 安裝 [Remote]，這是一個讓 iPad 連上 Apple TV，用 iPad 手勢控制 Apple TV 的App，好處是解決 Apple TV 沒辦法輸入中文的問題，例如，在搜尋 Youtube 影片時，就非常好用&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA8TRmzEy-dWUG2MvtAXHAQnNlVyp7jQ2wfNEhTbGVQ6cQdNj6gIj79XGVFouQUqEEZ9nPcfWooqc5ZYeVJS-iYPHFKTlZ1uJfSzyULrK5qM7mSZnL5BQSYxdSZ2kFjVIbN8moJIcvkvdy/s1600/IMG_0037.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA8TRmzEy-dWUG2MvtAXHAQnNlVyp7jQ2wfNEhTbGVQ6cQdNj6gIj79XGVFouQUqEEZ9nPcfWooqc5ZYeVJS-iYPHFKTlZ1uJfSzyULrK5qM7mSZnL5BQSYxdSZ2kFjVIbN8moJIcvkvdy/s320/IMG_0037.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. 安裝完 Remote App後，選擇 [使用手勢]&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4gzsTZ2ynTb6roGVXeohaAfXStSwkNQ4oZ0F-eMvg-5GDT1w5xbQUhtDko8eb2JMgkO2a6ayGjA1Tn1ofGYLpT7F1-7K6TjvSDex5SkfFeeXBWQtWKV00hzJrVyTf4gdQze-XJu0c-RFL/s1600/IMG_0038.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4gzsTZ2ynTb6roGVXeohaAfXStSwkNQ4oZ0F-eMvg-5GDT1w5xbQUhtDko8eb2JMgkO2a6ayGjA1Tn1ofGYLpT7F1-7K6TjvSDex5SkfFeeXBWQtWKV00hzJrVyTf4gdQze-XJu0c-RFL/s320/IMG_0038.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. 這樣在 iPad 上滑動手勢，就可以同步選擇 Apple TV 上的 Menu 選項，也可以在搜尋時，輸入中文&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYnFNGgd4uH1LtvlN8ft4bbkL464BdkJ8Wh-B9dV7VMKN0E9SKNevBu2-pAcfoBF5DwNtwyQa22kxiJ4mskeA9KcgkjqivNn6LutZ1XdBRvIN7AYaM6LQob9UolOw5aFUpxertU7jMPw-l/s1600/IMG_0039.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYnFNGgd4uH1LtvlN8ft4bbkL464BdkJ8Wh-B9dV7VMKN0E9SKNevBu2-pAcfoBF5DwNtwyQa22kxiJ4mskeA9KcgkjqivNn6LutZ1XdBRvIN7AYaM6LQob9UolOw5aFUpxertU7jMPw-l/s320/IMG_0039.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9. 快速點選 iPad 的 Home 鍵兩下，可以看到 iPad 的 Air Play 功能&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8Oz8Ne8MCN171f-zySnRbCUXIpFRUDXO3h4AX1foTlcYSjNP_7_-N8hfWOif9FV4vPsFbDGi7p9ju9-zkVmvV8Eyi-iacU0WBncwZVv2-aWXTa3QpoRG-W16JG0tQGHtCAsGmBMNV5F2/s1600/IMG_0040.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC8Oz8Ne8MCN171f-zySnRbCUXIpFRUDXO3h4AX1foTlcYSjNP_7_-N8hfWOif9FV4vPsFbDGi7p9ju9-zkVmvV8Eyi-iacU0WBncwZVv2-aWXTa3QpoRG-W16JG0tQGHtCAsGmBMNV5F2/s320/IMG_0040.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. 設定 iPad 的 Air Play&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRpGvQuqcGcKO5uHhcvD-pt3M0mDXLQE7dmyJbZK8dmw5JvnTEz8GK7t0YixmIDqdHglIQ5cLd0rzR3ud8Af1KMwqoAJGyMM7MfAU2joTVLF4eXP0ydlZexEUCc7nMJPulJ9-HdrieQGsD/s1600/IMG_0042.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRpGvQuqcGcKO5uHhcvD-pt3M0mDXLQE7dmyJbZK8dmw5JvnTEz8GK7t0YixmIDqdHglIQ5cLd0rzR3ud8Af1KMwqoAJGyMM7MfAU2joTVLF4eXP0ydlZexEUCc7nMJPulJ9-HdrieQGsD/s320/IMG_0042.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. iPad 的畫面就可以同步在 Apple TV 上了&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNko3ZB82GzKn44FyI8njFKWWYlPxpzFG5lWbdnZC4sCaNQkUhwIBiT2hQBRarzdBpylTAb6xc73Pt0g0HLn1tQYgVT-6tMO_zvcgWWLy5h1eadoDMFC9mEw3h2FhgQ59g9yFQnWXgwgz5/s1600/IMG_0043.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNko3ZB82GzKn44FyI8njFKWWYlPxpzFG5lWbdnZC4sCaNQkUhwIBiT2hQBRarzdBpylTAb6xc73Pt0g0HLn1tQYgVT-6tMO_zvcgWWLy5h1eadoDMFC9mEw3h2FhgQ59g9yFQnWXgwgz5/s320/IMG_0043.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. 橫向看到的畫面比較大喔&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtAtqQgsKwQhYvfOrbICl2cQTHZnp9hDehX2_iiTKtpZB33ujy5gK7ZXdW7rKM-dLNztWuLCGA4_mxb43_UgL5TY_cOwlOBSliAoDnsZRM-JP8zhB7MNUl0hjT_tePzOZ_MSgsseKvj-HJ/s1600/IMG_0044.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtAtqQgsKwQhYvfOrbICl2cQTHZnp9hDehX2_iiTKtpZB33ujy5gK7ZXdW7rKM-dLNztWuLCGA4_mxb43_UgL5TY_cOwlOBSliAoDnsZRM-JP8zhB7MNUl0hjT_tePzOZ_MSgsseKvj-HJ/s320/IMG_0044.jpg&quot; /&gt;&lt;/a&gt;


&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));
&lt;/script&gt;
&lt;br /&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/08/apple-tv-ipad-ipad-remote-control-apple.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-17562138-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/5277907156806450530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/5277907156806450530'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/08/apple-tv-ipad-ipad-remote-control-apple.html' title='Apple TV 及 iPad 的 使用說明 - iPad remote control Apple TV'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtv8vBsSZWEZ7JofLB_CZxHNeFk_zxwctu4LPQSTLXl5FgPGleECd04W5JCvdXB5lGMnPyQ9hMwW8RFyUok23vyuMJ-TXvYY7elXwUzfGrZd8YdEhnsBKGUnkG8Mvrs2KJeMAjeWuXtC3u/s72-c/IMG_0029.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-753110604482899849</id><published>2013-07-11T03:59:00.000-07:00</published><updated>2013-07-11T04:01:21.340-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>iOS SDK HardCoding - 如何手工打造 iPhone APP - UISegmentedControl</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
這是一個手工打造&amp;nbsp;UISegmentedControl 的簡單 sample , 我們先來看看執行結果&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/eGwV43eyF3s?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
1. 在 AppDelegate.m 新增一個 interface , 並且實作，用來放置 顯示元件 及 觸發事件的 function , 先建立 3 個 function : 建制&amp;nbsp;Segment &amp;amp;&amp;nbsp;Segment button 按下去要觸發的事件&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixkkBVOd0W8jwnhhyphenhyphenV2s-RESj2LGtk0RXHVedQfQG703np5mpcq9Y5IyQs4OLvjXYeJS2ooesJRZLt6k6cgmKCjyJ02R2vKyYfk6jWpSLeFYAHwPLktinqp6jnZxmyaqFM-th3XnT7I5TI/s1600/1.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixkkBVOd0W8jwnhhyphenhyphenV2s-RESj2LGtk0RXHVedQfQG703np5mpcq9Y5IyQs4OLvjXYeJS2ooesJRZLt6k6cgmKCjyJ02R2vKyYfk6jWpSLeFYAHwPLktinqp6jnZxmyaqFM-th3XnT7I5TI/s320/1.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 在 loadview 時建立 相關要顯示的元件 , 並且將剛才寫好的觸發 function 與 要按的 button 做連結，這樣 button 按下去才會有作用喔&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM7AFG29Pn28qbz-1hywR5zlGKDriVD2FLohOCEvvDEHDZ7IgSdXt1qPrCdMggvwpnQXjJn16X65mQPmUOh5N7DYjG4gw1qINOM0DSVoWe5fKCLI4O7iN1qp6TTxr2S-uMd1R8VoE-kPzk/s1600/2.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM7AFG29Pn28qbz-1hywR5zlGKDriVD2FLohOCEvvDEHDZ7IgSdXt1qPrCdMggvwpnQXjJn16X65mQPmUOh5N7DYjG4gw1qINOM0DSVoWe5fKCLI4O7iN1qp6TTxr2S-uMd1R8VoE-kPzk/s320/2.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. 在 AppDelegate 啓動時，建立 viewController , 將 rootViewController 指定為 剛才建立的 viewController&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXKRiGOZt7W_CD78tHlztYh0XFHIQ5EOTZcNwOeVoC8VPleRmE6R6uC6-WWvs5wLQxs44GSX-6MuH_de_uAsdS3-KQucPTFqq5Sj_y8iA4TGEDv3CH1noZcm3hEMKuDIQy6VASJzJn1KSd/s1600/3.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXKRiGOZt7W_CD78tHlztYh0XFHIQ5EOTZcNwOeVoC8VPleRmE6R6uC6-WWvs5wLQxs44GSX-6MuH_de_uAsdS3-KQucPTFqq5Sj_y8iA4TGEDv3CH1noZcm3hEMKuDIQy6VASJzJn1KSd/s320/3.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;
&lt;div class=&quot;fb-comments&quot; data-width=&quot;470&quot; data-num-posts=&quot;10&quot; data-colorscheme=&quot;light&quot;&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/753110604482899849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/753110604482899849'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/07/ios-sdk-hardcoding-iphone-app.html' title='iOS SDK HardCoding - 如何手工打造 iPhone APP - UISegmentedControl'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixkkBVOd0W8jwnhhyphenhyphenV2s-RESj2LGtk0RXHVedQfQG703np5mpcq9Y5IyQs4OLvjXYeJS2ooesJRZLt6k6cgmKCjyJ02R2vKyYfk6jWpSLeFYAHwPLktinqp6jnZxmyaqFM-th3XnT7I5TI/s72-c/1.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-8397994126722038878</id><published>2013-06-07T22:15:00.000-07:00</published><updated>2013-06-09T01:26:44.814-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS SDK"/><title type='text'>iOS SDK HardCoding - 如何手工打造 iPhone APP - Basic篇</title><content type='html'>1.建立一個空白的專案&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVt4xRlQENjGzRH99LeZCcLqP0ycE_ObRJ55YuUls-ganr6xBWHsX5sv_y57F9ZYPpyd6ekEfONU_J5G_1p8XswEQPVp4Fe325Is66m2U-OCBPVTPR1hdsH5C6_489WfBbB2tvYF8aUIA-/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVt4xRlQENjGzRH99LeZCcLqP0ycE_ObRJ55YuUls-ganr6xBWHsX5sv_y57F9ZYPpyd6ekEfONU_J5G_1p8XswEQPVp4Fe325Is66m2U-OCBPVTPR1hdsH5C6_489WfBbB2tvYF8aUIA-/s320/01.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2.輸入專案名稱&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_maykK7mYZUaXJZ1L7KHKKw6wFXsiUhekkFYaxo0n8-q92GmFBRDKvb5VC60j_dmqOxeQKVaxOChgQOsoL3Qdk4y9cF8RGAj_krBguMfKvDEklfHPr0xhS5FOWu6XTk6TOUe_6rLIPDPE/s1600/02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_maykK7mYZUaXJZ1L7KHKKw6wFXsiUhekkFYaxo0n8-q92GmFBRDKvb5VC60j_dmqOxeQKVaxOChgQOsoL3Qdk4y9cF8RGAj_krBguMfKvDEklfHPr0xhS5FOWu6XTk6TOUe_6rLIPDPE/s320/02.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3.選擇專案儲存位置&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjup3WTO5uSly3sFWFbzbgU6MADsS5ABn3bicK4OwRxqo_WD6vg1fRyJDRPiVUjaKoeUJAKQFTB_H6W3HMc2f5KmRENIYBLTOIT_E1sAXddySZWdewNeDksWXxSye86QdPW60x1F76jp_CO/s1600/03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;303&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjup3WTO5uSly3sFWFbzbgU6MADsS5ABn3bicK4OwRxqo_WD6vg1fRyJDRPiVUjaKoeUJAKQFTB_H6W3HMc2f5KmRENIYBLTOIT_E1sAXddySZWdewNeDksWXxSye86QdPW60x1F76jp_CO/s320/03.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4.打開 .h file , 輸入程式，如附圖，並使用 UITextFieldDelegate , 讓在完成Text Edit後，能自動關閉螢幕鍵盤&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRssZvbOdUfV_-5v7bzjhjVGJyGv0LzaluddYsWKK2Ye5Y5uOa48n8dQ25tCdDmUXBd_4zi1C32Suq3eoK3tNDLhknMGgnQ0Sauye923KUoNWM0cprqGqHqOnw7SEHiHA1B_c5UXxgGewl/s1600/04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;139&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRssZvbOdUfV_-5v7bzjhjVGJyGv0LzaluddYsWKK2Ye5Y5uOa48n8dQ25tCdDmUXBd_4zi1C32Suq3eoK3tNDLhknMGgnQ0Sauye923KUoNWM0cprqGqHqOnw7SEHiHA1B_c5UXxgGewl/s320/04.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5.打開 .m file , 建立一個 static function , return UIViewController , 並在此function寫入想要產生的元件的 code , 如附圖&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO1NSIlvOR5rbBYQ3Tit5YRR5yk9Z_VeRHL2Rvp9V8MmuHBGqaX-MTvZl84R_AwbHZldfcH8eX0FtABLwZShvv-zU_mRP5FSwb-t1Aw6PDtGLkQk9ucMxCrp_Z0zJThFaj-6_pFuiqIqm4/s1600/05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;161&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO1NSIlvOR5rbBYQ3Tit5YRR5yk9Z_VeRHL2Rvp9V8MmuHBGqaX-MTvZl84R_AwbHZldfcH8eX0FtABLwZShvv-zU_mRP5FSwb-t1Aw6PDtGLkQk9ucMxCrp_Z0zJThFaj-6_pFuiqIqm4/s320/05.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
6.在預設的 ApplicationDelegate 的 didFinishLaunchingWithOptions event 呼叫剛剛寫的 static function&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZpJcdgijrOX1A4yGG871uENNwYD1BKqe7bD7JMTFOyL4IVdeYPKxV6c5D2ikgXeJBETB7SFGsQpJBg_ahnVp8Jk8q21awHN7370YBrPcrwQLAz1AEl-B_A0TXBbhbJdoIbDq6c2erxutU/s1600/06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;71&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZpJcdgijrOX1A4yGG871uENNwYD1BKqe7bD7JMTFOyL4IVdeYPKxV6c5D2ikgXeJBETB7SFGsQpJBg_ahnVp8Jk8q21awHN7370YBrPcrwQLAz1AEl-B_A0TXBbhbJdoIbDq6c2erxutU/s320/06.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
7.再實作 UITextFieldDelegate 的 function : textFieldShouldReturn , 控制完成Text Edit後，能自動關閉螢幕鍵盤&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2WFwZi0ge9a3Gv2GGtIfPzipoGkPXRU33w_URiW71ECHuj6ddTRwNSri_L4vReR1p3HLoedvb7Uz7MHfQs_CyjTqMPVy9kZ7w7CkcTdsNX9Egh_bXaWgiDL5h8sKtU0yve_ZfI-Wtc6mn/s1600/07.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2WFwZi0ge9a3Gv2GGtIfPzipoGkPXRU33w_URiW71ECHuj6ddTRwNSri_L4vReR1p3HLoedvb7Uz7MHfQs_CyjTqMPVy9kZ7w7CkcTdsNX9Egh_bXaWgiDL5h8sKtU0yve_ZfI-Wtc6mn/s320/07.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
8.來看一下執行結果吧&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/YKmvwADnpzM?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;br /&gt;
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2013/06/ios-sdk-hardcoding-iphone-app-basic.html&quot; data-send=&quot;true&quot; data-show-faces=&quot;true&quot; data-width=&quot;450&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8397994126722038878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8397994126722038878'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/06/ios-sdk-hardcoding-iphone-app-basic.html' title='iOS SDK HardCoding - 如何手工打造 iPhone APP - Basic篇'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVt4xRlQENjGzRH99LeZCcLqP0ycE_ObRJ55YuUls-ganr6xBWHsX5sv_y57F9ZYPpyd6ekEfONU_J5G_1p8XswEQPVp4Fe325Is66m2U-OCBPVTPR1hdsH5C6_489WfBbB2tvYF8aUIA-/s72-c/01.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-421286892436669503</id><published>2013-01-17T00:44:00.000-08:00</published><updated>2013-01-17T01:05:13.873-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="網頁設計教學"/><title type='text'>facebook的網址連結的預覽縮圖不見了??</title><content type='html'>Opps , 當您在使用 facebook Po 網頁連結時，發現網頁的預覽圖片不見了，應該怎麼處理呢？&lt;br /&gt;
別擔心，&lt;a href=&quot;https://developers.facebook.com/tools/debug&quot; target=&quot;_blank&quot;&gt;快用 facebook 貼心提供的 debug 工具&lt;/a&gt;&amp;nbsp;試試，&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV7XVBU-hUzL5MHQvCOZs0xXBhwQiiSaedLT4zb4IKo1purVu-HCaW9kblsVA_lz-6q2cS4L9nNo55ZQT1p0ZunZK3hYPheS1jWTTkqUczGNT9GhRQEnKihuijLfFfd5ZD4GIxpnYe_z1a/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-01-17+16:40:10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV7XVBU-hUzL5MHQvCOZs0xXBhwQiiSaedLT4zb4IKo1purVu-HCaW9kblsVA_lz-6q2cS4L9nNo55ZQT1p0ZunZK3hYPheS1jWTTkqUczGNT9GhRQEnKihuijLfFfd5ZD4GIxpnYe_z1a/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-01-17+16:40:10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
只要貼上您的網頁網址，然後按 &quot;偵錯&quot;，facebook debugger 就會告訴您，您的網頁到底是哪邊不符合 facebook 的規定了&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUYwUKagQTvABQXDnAWmmvI5iwDoaGP2Eoe4HHalVsdkHfvrS5QN1pNa9QMDdWLYJHM9B_7fJZgcc8mALMhnu1nAFNwGTzG7CEIUo8PhRqwdD-TjTjk1QcwuKmZ8p59IgMesqWuA3z0sfk/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-01-17+16:41:46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUYwUKagQTvABQXDnAWmmvI5iwDoaGP2Eoe4HHalVsdkHfvrS5QN1pNa9QMDdWLYJHM9B_7fJZgcc8mALMhnu1nAFNwGTzG7CEIUo8PhRqwdD-TjTjk1QcwuKmZ8p59IgMesqWuA3z0sfk/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-01-17+16:41:46.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
沒錯，就是這麼簡單&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/421286892436669503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/421286892436669503'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2013/01/facebook.html' title='facebook的網址連結的預覽縮圖不見了??'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV7XVBU-hUzL5MHQvCOZs0xXBhwQiiSaedLT4zb4IKo1purVu-HCaW9kblsVA_lz-6q2cS4L9nNo55ZQT1p0ZunZK3hYPheS1jWTTkqUczGNT9GhRQEnKihuijLfFfd5ZD4GIxpnYe_z1a/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2013-01-17+16:40:10.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-1480528588778373604</id><published>2012-12-31T01:45:00.001-08:00</published><updated>2012-12-31T01:47:30.368-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>HowTo - Jquery ajaxForm to Upload File &amp; 如何防止中文亂碼</title><content type='html'>這個範例我們會做到：&lt;br /&gt;
A. 使用 AjaxForm 上傳 檔案&lt;br /&gt;
B. 如何防止 jQuery 在 用 Ajax &amp;nbsp;傳輸中文參數時產生亂碼&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. 首先我們先準備一隻HTML File&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEjNAqoesGusiXI2c-XZI-XUS8zzfjeTu7MiGyDRwYtbxF59_IMt2Jo3mk3x-q7Ay_C5nbqFTpJ-J-padSLnSHHMQ9hMb5aATN57fzchtNjhmqi_xl4PCb04MsZLYADjX3zAN3woo9CVxs/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:24:36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;257&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEjNAqoesGusiXI2c-XZI-XUS8zzfjeTu7MiGyDRwYtbxF59_IMt2Jo3mk3x-q7Ay_C5nbqFTpJ-J-padSLnSHHMQ9hMb5aATN57fzchtNjhmqi_xl4PCb04MsZLYADjX3zAN3woo9CVxs/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:24:36.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 在HTML File 裡 key入 form action 的html code , 準備要用 AjaxForm 上傳檔案&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuIyxmi-ooo-3entDgDO0B6Q8dNdrKKMsXQobq864QbTxCe1qXN-V_BNkhFJwRexo3k0UlF_n4EYp0IyfLAmYCz9xyJOdEJ_ymMRnI-86NLRwwLE7yrolDANxJebCdCiGw4rmu1UQv6XBi/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:25:34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;38&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuIyxmi-ooo-3entDgDO0B6Q8dNdrKKMsXQobq864QbTxCe1qXN-V_BNkhFJwRexo3k0UlF_n4EYp0IyfLAmYCz9xyJOdEJ_ymMRnI-86NLRwwLE7yrolDANxJebCdCiGw4rmu1UQv6XBi/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:25:34.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. 先呼叫 AjaxForm 完成檔案的上傳，再呼叫 Ajax 將其他參數傳入資料庫，記得加上&amp;nbsp;encodeURIComponent 防止 IE 在傳輸中文參數時變成亂碼喔&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPaLuEUBHKh5DtqGRC3sa5q924MQU-_vZ_NnojpGlDrrjIgtcndf-v8QLV1LUEX_nv3LjIAiSSsAIpLCjNGN-LoPg50AEGIIU7tZyaU7IjyO0ofCYNsKEGFyQ42kxXlC6sTaxtDuECdCNW/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:32:01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPaLuEUBHKh5DtqGRC3sa5q924MQU-_vZ_NnojpGlDrrjIgtcndf-v8QLV1LUEX_nv3LjIAiSSsAIpLCjNGN-LoPg50AEGIIU7tZyaU7IjyO0ofCYNsKEGFyQ42kxXlC6sTaxtDuECdCNW/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:32:01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/12/howto-jquery-ajaxform-to-upload-file.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/1480528588778373604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/1480528588778373604'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/12/howto-jquery-ajaxform-to-upload-file.html' title='HowTo - Jquery ajaxForm to Upload File &amp; 如何防止中文亂碼'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEjNAqoesGusiXI2c-XZI-XUS8zzfjeTu7MiGyDRwYtbxF59_IMt2Jo3mk3x-q7Ay_C5nbqFTpJ-J-padSLnSHHMQ9hMb5aATN57fzchtNjhmqi_xl4PCb04MsZLYADjX3zAN3woo9CVxs/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:24:36.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-8098934890683874258</id><published>2012-12-31T01:17:00.002-08:00</published><updated>2012-12-31T01:19:41.943-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>JQuery AJAX call WebService - Part 2</title><content type='html'>&lt;a href=&quot;http://enterprise-it.blogspot.tw/2012/02/jquery-ajax-call-web-service.html&quot; target=&quot;_blank&quot;&gt;這是第一集的前情摘要&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. 先寫一隻web service , 來接收傳入的參數&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgujNXVM3Ij9guXf-DV8XWphpk-1qJcMIquPXaJCNDCA2y3B8cnDUzDH5DiirsJgM4fKWj2SMsWwHfIOpC51ct_gHYqkBYCRm6KxgM9BIHbZdTpFcRHOUwmmZnIgHmot8OyoSkd4Hz8TkqS/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:15:26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgujNXVM3Ij9guXf-DV8XWphpk-1qJcMIquPXaJCNDCA2y3B8cnDUzDH5DiirsJgM4fKWj2SMsWwHfIOpC51ct_gHYqkBYCRm6KxgM9BIHbZdTpFcRHOUwmmZnIgHmot8OyoSkd4Hz8TkqS/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:15:26.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 然後用 JQuery 傳入參數，沒錯，真的就是這麼簡單喔&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij8qjpuyLZtsfQ6XqIxMJh8QMR6xvGF6j-37iwinfzjV05U8pulB9kbcnI6eBIN3CwQf3qS7c879O4XHaVjVYT7SazUknzjq7s17o9UPtTgGP_X3ITGWHuH34oEKYa1-n1GrrHwX90mbsK/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:14:59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij8qjpuyLZtsfQ6XqIxMJh8QMR6xvGF6j-37iwinfzjV05U8pulB9kbcnI6eBIN3CwQf3qS7c879O4XHaVjVYT7SazUknzjq7s17o9UPtTgGP_X3ITGWHuH34oEKYa1-n1GrrHwX90mbsK/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:14:59.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/12/jquery-ajax-call-webservice-part-2.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8098934890683874258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/8098934890683874258'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/12/jquery-ajax-call-webservice-part-2.html' title='JQuery AJAX call WebService - Part 2'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgujNXVM3Ij9guXf-DV8XWphpk-1qJcMIquPXaJCNDCA2y3B8cnDUzDH5DiirsJgM4fKWj2SMsWwHfIOpC51ct_gHYqkBYCRm6KxgM9BIHbZdTpFcRHOUwmmZnIgHmot8OyoSkd4Hz8TkqS/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+17:15:26.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-6720776628307495963</id><published>2012-12-31T00:50:00.002-08:00</published><updated>2013-01-03T23:00:19.777-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="電子商務網站"/><title type='text'>如何告訴Yahoo / Bing您的網站已經在網路上了</title><content type='html'>&lt;div&gt;
還沒看過第一集的朋友，&lt;a href=&quot;http://enterprise-it.blogspot.tw/2012/12/google-sitemap.html&quot; target=&quot;_blank&quot;&gt;請先閱讀如何快速製作Stiemap網站地圖喔&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
因為 Yahoo 搜尋引擎已經和 Microsoft 的 Bing 合作，所以我們可以直接到 Bing 去登錄網站&lt;br /&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;(Yahoo已經改為要收費才能登錄網址喔 詳見&amp;nbsp;http://tw.dir.yahoo.com/step/generally.html)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. 首先告訴 Bing，您的網址&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLwSKmtgwkmloDB_4GPF2idN2lHj40zag7mJa-OfyFfGip1TchPLJNE3PNu0mwNoRCZrRvWTv4c1-n9k_3iiOO8Diz1qwPouvGneY4QzXL2L_Kz7qqJNvJXivnmHH31uref7JekqvyBmlc/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:39:51.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLwSKmtgwkmloDB_4GPF2idN2lHj40zag7mJa-OfyFfGip1TchPLJNE3PNu0mwNoRCZrRvWTv4c1-n9k_3iiOO8Diz1qwPouvGneY4QzXL2L_Kz7qqJNvJXivnmHH31uref7JekqvyBmlc/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:39:51.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 然後到 Bing 的網站管理工具，提交您的網站的Sitemap.xml&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSGiHjyxF4YtfPm_SghZggHTdam3bs6Tc8PkUfIsqsIlkcnVkVJln7y8pjovE5ObTXkUh5A64FEGKjzGI0u9qOzAFvAz7IUU9xqqtjQ1MlJRvkRSC7NYNAgzlgASvBRIox-7jbEMcxDAlN/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:39:19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSGiHjyxF4YtfPm_SghZggHTdam3bs6Tc8PkUfIsqsIlkcnVkVJln7y8pjovE5ObTXkUh5A64FEGKjzGI0u9qOzAFvAz7IUU9xqqtjQ1MlJRvkRSC7NYNAgzlgASvBRIox-7jbEMcxDAlN/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:39:19.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
是的，您沒看錯，就是這麼簡單的2個步驟就Ok囉&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;br /&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/12/yahoo-bing.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/6720776628307495963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/6720776628307495963'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/12/yahoo-bing.html' title='如何告訴Yahoo / Bing您的網站已經在網路上了'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLwSKmtgwkmloDB_4GPF2idN2lHj40zag7mJa-OfyFfGip1TchPLJNE3PNu0mwNoRCZrRvWTv4c1-n9k_3iiOO8Diz1qwPouvGneY4QzXL2L_Kz7qqJNvJXivnmHH31uref7JekqvyBmlc/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:39:51.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-9208943492749952292</id><published>2012-12-31T00:24:00.001-08:00</published><updated>2012-12-31T00:41:28.237-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="電子商務網站"/><title type='text'>如何告訴Google您的網站已經在網路上了 | 快速製作Sitemap網站地圖</title><content type='html'>網站優化 SEO 已經是現在網站製作人員非常重要的課題之一，很多業主都會問，我的網站做好了，可以在 Google 或 Yahoo 搜尋到嗎？&lt;br /&gt;
&lt;br /&gt;
首先，您必須先寫一個 Sitemap.xml , 看起來好像很複雜，別擔心，現在網路上都有很多免費好用的 Sitemap 產生器喔&lt;br /&gt;
&lt;br /&gt;
1. 到&amp;nbsp;&lt;a href=&quot;http://www.xml-sitemaps.com/&quot;&gt;http://www.xml-sitemaps.com/&lt;/a&gt;&amp;nbsp; 輸入您的網站網址及相關資訊&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6J7Cm8hCApAQn1zSfmvve3dEcxYw55mx6IC5zjtjMNAEu2l1_aRg7TYsXxTy6FJz1V5hIPWs0Pb2UKw08iiIxohEa8lSxTYWIHpgwvpq6SwQ_gRNGPuv0c3cR3sSbAKBuuHNv-4TiGWyH/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:11:13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6J7Cm8hCApAQn1zSfmvve3dEcxYw55mx6IC5zjtjMNAEu2l1_aRg7TYsXxTy6FJz1V5hIPWs0Pb2UKw08iiIxohEa8lSxTYWIHpgwvpq6SwQ_gRNGPuv0c3cR3sSbAKBuuHNv-4TiGWyH/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:11:13.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. 輸入完後，按 [Start] 鍵，就可以快快樂樂得到一組 Sitemap.xml 檔案囉&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3z8PuUHeuyvdFPMUZaKFFcR9tjHTmHCMbSYgLf6e0XhqXIPEIhVyqAbNW7VlHqSpygRpDRXBAyc1uc_NIJThsY5B4SsWAmryPg6YZEpxgKd9OuWR2KimA8YnhIN1RnY7Fy548-F-u5AbC/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:13:28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3z8PuUHeuyvdFPMUZaKFFcR9tjHTmHCMbSYgLf6e0XhqXIPEIhVyqAbNW7VlHqSpygRpDRXBAyc1uc_NIJThsY5B4SsWAmryPg6YZEpxgKd9OuWR2KimA8YnhIN1RnY7Fy548-F-u5AbC/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:13:28.png&quot; width=&quot;267&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3. 將網頁上列表的檔案下載下來，然後上傳到您的網站的根目錄下&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4. 先告訴 Google 您的網址&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6V0o3TFbVJp2KxssUyseaqj6ap768UlXrSaHcgHrQlfGOaMpyPivDFSjdsruUJu-ZAJY9U6NlWlSksxuz9DWfDlv6TJP1ssGUJoF6aJaw82Luf3htadxFcmgnWvUHC3FeqXR1psSuNHen/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:40:10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;124&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6V0o3TFbVJp2KxssUyseaqj6ap768UlXrSaHcgHrQlfGOaMpyPivDFSjdsruUJu-ZAJY9U6NlWlSksxuz9DWfDlv6TJP1ssGUJoF6aJaw82Luf3htadxFcmgnWvUHC3FeqXR1psSuNHen/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:40:10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5. 然後到 Google 提交 您的 sitemap.xml 網址就大功告成了&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRHhH0poCVQACsAL3QTOJIK_edHAa7KYR6rf6jvleBI956DRzEll1IYoyFrSKcuFCeQr_KDoWmV2UOd3qOhIiPj6tHJYMDczxvBJwtWfF7wPMMboKJQ2p2WHZJceEfV3PFNz2UDrqPqBDH/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:14:37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRHhH0poCVQACsAL3QTOJIK_edHAa7KYR6rf6jvleBI956DRzEll1IYoyFrSKcuFCeQr_KDoWmV2UOd3qOhIiPj6tHJYMDczxvBJwtWfF7wPMMboKJQ2p2WHZJceEfV3PFNz2UDrqPqBDH/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:14:37.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/12/google-sitemap.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/9208943492749952292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/9208943492749952292'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/12/google-sitemap.html' title='如何告訴Google您的網站已經在網路上了 | 快速製作Sitemap網站地圖'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6J7Cm8hCApAQn1zSfmvve3dEcxYw55mx6IC5zjtjMNAEu2l1_aRg7TYsXxTy6FJz1V5hIPWs0Pb2UKw08iiIxohEa8lSxTYWIHpgwvpq6SwQ_gRNGPuv0c3cR3sSbAKBuuHNv-4TiGWyH/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-12-31+16:11:13.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-3722607552953314845</id><published>2012-11-01T00:55:00.004-07:00</published><updated>2012-11-07T23:01:02.113-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>如何用 javascript 取得 facebook 的登入 login 帳號資訊</title><content type='html'>現在的網站及網路上的各種行銷活動很流行與 facebook 做結合，當然 facebook 的官網也會提供 API 讓程式設計師來使用，&lt;br /&gt;
&lt;br /&gt;
之前的文章提到：&lt;a href=&quot;http://enterprise-it.blogspot.tw/2010/08/aspnet-face-book.html&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: magenta;&quot;&gt;如何用 Asp.Net 取得 Face Book 的登入帳號資訊&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
但那畢竟是使用 third-party 的方式來使用 facebook api , third-party 有可能會因為沒有即時跟上 facebook api 版本 的異動而失效，或作者不再提供更新的風險，&lt;br /&gt;
建議最好還是使用官網提供的標準 API ,&lt;br /&gt;
&lt;br /&gt;
很不幸的，目前 facebook API 只提供 php , javascript , ios , android 的版本，那如果是使用其他程式語言，例如 asp.net , python...等的網站，要如何來應用呢？&lt;br /&gt;
&lt;br /&gt;
其實很簡單，我們可以使用 javascript 的 facebook API 來完成我們想要的功能&lt;br /&gt;
&lt;br /&gt;
1. 首先，先 include 官網的 javascript&lt;br /&gt;
script src=&quot;http://connect.facebook.net/en_US/all.js&quot;&lt;br /&gt;
&lt;br /&gt;
2. 在 html body 的 區段 下 寫入下列的 html code&lt;br /&gt;
&lt;br /&gt;
div id=&quot;fb-root&quot;


&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. &amp;nbsp;寫入下列的 javascript code , 並到&amp;nbsp;&lt;a href=&quot;https://developers.facebook.com/apps&quot;&gt;&lt;span style=&quot;color: magenta;&quot;&gt;&lt;b&gt;facebook官網申請應用程式APP ID&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;, 如下圖的範例 appId : &quot;4523&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXuvezWLr7wmWKf2aKPWpUJtDDUIXonWSJjo58n410Uv0cjr3CBBe1GQPhdIZuz9NKXtkw7OfQKEK6mO9BnsUJ2c8R6oDuM2leiTdwJmRQ8wkDH9jNSdzVHYlIoszNPekDxU2Yfgk3ckGv/s1600/01.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXuvezWLr7wmWKf2aKPWpUJtDDUIXonWSJjo58n410Uv0cjr3CBBe1GQPhdIZuz9NKXtkw7OfQKEK6mO9BnsUJ2c8R6oDuM2leiTdwJmRQ8wkDH9jNSdzVHYlIoszNPekDxU2Yfgk3ckGv/s320/01.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4. 貼上下面的 html code , 顯示 facebook 的登入按鈕&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyFxLr6_qAAFmt0PWmKlciHJMcyzXDlriSB9fCEii4FA6UxT9QhyphenhyphenuiWIGCzzGjtMr0PSr5c4zcnwBBC2b9deR3BmFr5PeYqP5UeCBmPiCyjdWp9G1fCyeqDGZU_uZTJMgypeTO-RpLkc__/s1600/%E6%9C%AA%E5%91%BD%E5%90%8D.tiff&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;18&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyFxLr6_qAAFmt0PWmKlciHJMcyzXDlriSB9fCEii4FA6UxT9QhyphenhyphenuiWIGCzzGjtMr0PSr5c4zcnwBBC2b9deR3BmFr5PeYqP5UeCBmPiCyjdWp9G1fCyeqDGZU_uZTJMgypeTO-RpLkc__/s320/%E6%9C%AA%E5%91%BD%E5%90%8D.tiff&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5. 將取得的 facebook ID 利用 javascript 傳入到自己的程式&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
如上圖的code ,&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
window.location = &quot;activity.aspx?user_id=&quot; + user_id;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
其中，user_id 就是 &amp;nbsp;透過 facebook api 抓到的 facebook user id , 就樣就可以完成 facebook 的 login 程式囉，來看一下執行結果~~&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/h32H23om97w?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fenterprise-it.blogspot.tw%2F2012%2F11%2Fjavascript-face-book-login.html&amp;amp;send=false&amp;amp;layout=standard&amp;amp;width=450&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=80&amp;amp;appId=226933124004441&quot; style=&quot;border: none; height: 80px; overflow: hidden; width: 450px;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;

&lt;br /&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/11/javascript-face-book-login.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/3722607552953314845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/3722607552953314845'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/11/javascript-face-book-login.html' title='如何用 javascript 取得 facebook 的登入 login 帳號資訊'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXuvezWLr7wmWKf2aKPWpUJtDDUIXonWSJjo58n410Uv0cjr3CBBe1GQPhdIZuz9NKXtkw7OfQKEK6mO9BnsUJ2c8R6oDuM2leiTdwJmRQ8wkDH9jNSdzVHYlIoszNPekDxU2Yfgk3ckGv/s72-c/01.tiff" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-3290798962034052402</id><published>2012-10-31T23:53:00.002-07:00</published><updated>2012-11-03T00:46:46.065-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><title type='text'>WYSIWYG Part 5 - 所見即所得 AJAX 程式應用</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/xT6AYWRvEmM?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
這個範例主要是Demo使用Jquery的AJAX , 在user輸入文字的同時，&lt;br /&gt;
在background 將T-shirt圖片與文字做結合，產生一張預覽的新圖片，&lt;br /&gt;
以非同步的方式立即顯示給 User ,&lt;br /&gt;
在輸入文字的同時，同步計算 user 輸入了幾個字，分別是中文或英文，&lt;br /&gt;
不同的字數或中文或英文，顯示不同的字型及大小。&lt;br /&gt;
&lt;br /&gt;
另外，這個範例較特殊的地方是：用 &lt;span style=&quot;background-color: yellow;&quot;&gt;Asp.net&lt;/span&gt; 程式去撰寫 T-shirt 圖文預覽功能，但是，卻可以結合原有網站的 &lt;span style=&quot;background-color: yellow;&quot;&gt;asp 的購物車功能&lt;/span&gt;，&lt;span style=&quot;background-color: yellow;&quot;&gt;Asp.net 與 asp 的 session 當然是不能共用喔&lt;/span&gt;，雖然都是 asp 開頭，但 IT 技術架構卻是差很大，不過小弟我還是用ajax的方式將不同程式架構做到無縫接軌，讓新舊系統能順利整合在一起。&lt;br /&gt;
&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fenterprise-it.blogspot.tw%2F2012%2F10%2Fjquery-ajax-demo.html&amp;amp;send=false&amp;amp;layout=standard&amp;amp;width=450&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=80&amp;amp;appId=226933124004441&quot; style=&quot;border: none; height: 80px; overflow: hidden; width: 450px;&quot;&gt;&lt;/iframe&gt;
&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/search/label/AJAX&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/3290798962034052402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/3290798962034052402'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/10/jquery-ajax-demo.html' title='WYSIWYG Part 5 - 所見即所得 AJAX 程式應用'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-2672877588290718600</id><published>2012-07-10T18:56:00.000-07:00</published><updated>2012-07-10T19:11:37.393-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><title type='text'>如何用Asp.Net執行ImageMagic之在圖片上寫入中文</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.imagemagick.org/&quot;&gt;ImageMagic&lt;/a&gt;&amp;nbsp;是很古老的OpenSource的圖片處理程式，免費，可在各種作業系統執行command line來進行圖片處理，例如：圖片格式互相轉換jpg , gif , png...等，圖片壓縮或放大，圖片影像效果處理，在圖片上畫圖或寫入文字片合成....等，功能齊全但很Stubid，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
雖然官網上有sample code，但一堆 隴長的說明真的讓我覺得：為什麼不掐頭去尾&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
講重點就好，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
其實我比較推薦要付費的&amp;nbsp;&lt;a href=&quot;http://www.aspjpeg.com/&quot;&gt;http://www.aspjpeg.com/&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href=&quot;http://www.neodynamic.com/&quot;&gt;http://www.neodynamic.com/&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
，大概只要100多美金，但付費軟體好處是：功能方便齊全，可以快速看完online help後就立即實做，也有完整的sample code，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
就像寫JAVA的Eclipse免費，但要付費的MyEclipse卻更方便好用是一樣的意思，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
話不多說，馬上就來看如何用 Asp.net 來呼叫 ImageMagic 的 command line 來執行圖片處理，以在大家最常用的在圖片上寫中文為例：&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
因為中文會當作unicode處理，如果直接套用官網的sample code，中文就會變成亂碼，所以在這邊我們只要直接在command line中指定支援UTF-8編碼的字型的實體路徑即可，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
程式原理是呼叫shellExecute來代替在 console mode 環境下執行command line，真的很Stubid，因為還要再多透過一層shellExecute還執行，如果是付費軟體，只要include DLL , 呼叫 function 就 Ok 囉，也不會有一大堆參數要考慮&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
記得程式一開始要&amp;nbsp;using System.Diagnostics;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
才能呼叫shellExecute，只要套入這幾行程式，所有 ImageMagic &amp;nbsp;的 command line 就可以直接當作String 丟進去處理囉&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBwaZ9OivdQjRu9hITkBKDjEb5DXMwU6APomINgYNc3PcsbrSByGT7O8HGTt74sRnxJlXDJwmi8QtIfNDSdaqCXl85QkAI9MOWw5NPtg3yBZv58Njg4PgzHy84yqEY7KcY61Xf5UlL5zrI/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-07-11+09:35:05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBwaZ9OivdQjRu9hITkBKDjEb5DXMwU6APomINgYNc3PcsbrSByGT7O8HGTt74sRnxJlXDJwmi8QtIfNDSdaqCXl85QkAI9MOWw5NPtg3yBZv58Njg4PgzHy84yqEY7KcY61Xf5UlL5zrI/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-07-11+09:35:05.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Asp.Net excute ImageMagic command line&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));
&lt;/script&gt;
&lt;br /&gt;
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/07/aspnetimagemagic.html&quot; data-send=&quot;true&quot; data-show-faces=&quot;true&quot; data-width=&quot;450&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/07/aspnetimagemagic.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/2672877588290718600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/2672877588290718600'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/07/aspnetimagemagic.html' title='如何用Asp.Net執行ImageMagic之在圖片上寫入中文'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBwaZ9OivdQjRu9hITkBKDjEb5DXMwU6APomINgYNc3PcsbrSByGT7O8HGTt74sRnxJlXDJwmi8QtIfNDSdaqCXl85QkAI9MOWw5NPtg3yBZv58Njg4PgzHy84yqEY7KcY61Xf5UlL5zrI/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-07-11+09:35:05.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-4987261964119938825</id><published>2012-07-01T05:42:00.000-07:00</published><updated>2013-12-23T22:45:45.697-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="family"/><title type='text'>妘妘一歲生日</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/fGyCcnmYD_c&quot; width=&quot;420&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-4PesOfYrwOk/T_BGbv-qaJI/AAAAAAAAAns/SJZM9wZxOzk/s545/9C53B61A-BCE6-4FF7-B591-0DD6C2F38F55.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-4PesOfYrwOk/T_BGbv-qaJI/AAAAAAAAAns/SJZM9wZxOzk/s320/9C53B61A-BCE6-4FF7-B591-0DD6C2F38F55.JPG&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-rTYrrUtTPm8/T_BGbr5UbyI/AAAAAAAAAns/h4t_IFcrRqI/s545/06954C87-6B79-481A-A33A-6AB71976914D.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-rTYrrUtTPm8/T_BGbr5UbyI/AAAAAAAAAns/h4t_IFcrRqI/s320/06954C87-6B79-481A-A33A-6AB71976914D.JPG&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-8WhbxYlBHQ4/T_BGbkeEY6I/AAAAAAAAAns/TF2_hK3oUKE/s545/65D7C8FC-DE11-4706-AD35-94FCD5D79557.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-8WhbxYlBHQ4/T_BGbkeEY6I/AAAAAAAAAns/TF2_hK3oUKE/s320/65D7C8FC-DE11-4706-AD35-94FCD5D79557.JPG&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-ttmvP8k34JM/T_BGblTo4bI/AAAAAAAAAns/ubUaK8yOhuc/s545/51CDEE78-C1F2-4483-AAEE-E96E78486BA3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-ttmvP8k34JM/T_BGblTo4bI/AAAAAAAAAns/ubUaK8yOhuc/s320/51CDEE78-C1F2-4483-AAEE-E96E78486BA3.JPG&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-_o7To4s37w0/T_BGbhtujGI/AAAAAAAAAns/IRdBTTlYKf8/s545/91E262AF-110B-4616-9D52-E33D5D76A17A.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-_o7To4s37w0/T_BGbhtujGI/AAAAAAAAAns/IRdBTTlYKf8/s320/91E262AF-110B-4616-9D52-E33D5D76A17A.JPG&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4987261964119938825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4987261964119938825'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/07/blog-post.html' title='妘妘一歲生日'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/fGyCcnmYD_c/default.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-5826672145820455501</id><published>2012-06-25T01:31:00.000-07:00</published><updated>2012-07-02T07:57:05.746-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="免費自由軟體"/><title type='text'>阿公阿嬤也會遠端遙控家中電腦喔</title><content type='html'>說到遠端大家一定都不陌生，最常用到的不外乎是&amp;nbsp;&lt;a href=&quot;http://www.realvnc.com/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;real vnc&lt;/b&gt;&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href=&quot;http://www.uvnc.com/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;ultra vnc&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
不過如果是要從公司遠端連線回家中的電腦，&lt;br /&gt;
有可能會被公司的防火牆擋住，這時候vnc就無法發揮作用，&lt;br /&gt;
您可以考慮架設 VPN&amp;nbsp;&lt;a href=&quot;http://www.cc.ntu.edu.tw/chinese/epaper/20070620_1004.htm&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;何謂VPN&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
但小弟我實在非常懶，所以我用&amp;nbsp;&lt;a href=&quot;http://www.teamviewer.com/zhTW/index.aspx&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;免費TeamViewer&lt;/b&gt;&lt;/a&gt;&amp;nbsp;, 這是一款免費，跨平台，跨防火牆的遠端遙控軟體，可以遠端傳送檔案即視訊會議 (有些進階功能需要付費喔)&lt;br /&gt;
還支援 iphone , ipad, android&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhicMCes3qM2mCrTog5nW5n1kFj3vTCVs6CZr42_Rz2Jm2u_gw_KQAoPklf9rEWcyoUeze_Uvj6MKpbikfBub47qiXsJAoKP_lTHkeLN3-BkFXDzwDPClNW-REToj_-9hyLm36ENtc0VasL/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%259C%2596%25E5%25AD%2598%25E7%2582%25BA+2012-06-25+16%253A04%253A48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhicMCes3qM2mCrTog5nW5n1kFj3vTCVs6CZr42_Rz2Jm2u_gw_KQAoPklf9rEWcyoUeze_Uvj6MKpbikfBub47qiXsJAoKP_lTHkeLN3-BkFXDzwDPClNW-REToj_-9hyLm36ENtc0VasL/s320/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%259C%2596%25E5%25AD%2598%25E7%2582%25BA+2012-06-25+16%253A04%253A48.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
啟動TeamViewer畫面&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
your ID : 您必須告訴遠端朋友您的ID，這樣遠端朋友在 Partner ID 輸入後，就可以連線&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Password：您必須告訴遠端的朋友您的密碼 (此為隨機產生)，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;遠端的朋友在輸入ID並連通後，就必須再輸入密碼&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Partner ID: 您要遙控的被控端電腦，如果您在公司要遙控家中的電腦，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;就請輸入家中電腦的 your ID &amp;amp; password，&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;(請注意，您家中的電腦必須先開機，&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;網路必須暢通，啟動TeamViewer，抄下家中電腦的ID &amp;amp; password，&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;到公司後，在公司電腦的Parnet ID選項輸入家中的ID即可 )&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkf76rHtG82rKGjPiUSFmLqGiq3EVHFP9AmDv2uVg5tkaM3y4dNiWxb2RX7zPrVrLMRiMEevNu0ZYwV0FLzIwTOY_afpuMh6fB02WRIl8kngKhft9LUKzza-o6urxOSbhEDhAwu4PPXAFU/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%259C%2596%25E5%25AD%2598%25E7%2582%25BA+2012-06-25+16%253A08%253A24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkf76rHtG82rKGjPiUSFmLqGiq3EVHFP9AmDv2uVg5tkaM3y4dNiWxb2RX7zPrVrLMRiMEevNu0ZYwV0FLzIwTOY_afpuMh6fB02WRIl8kngKhft9LUKzza-o6urxOSbhEDhAwu4PPXAFU/s320/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%259C%2596%25E5%25AD%2598%25E7%2582%25BA+2012-06-25+16%253A08%253A24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
TeamViewer 進階選項&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhagAVHVtxzYg2HQcCEjPC9vd7eVvJ31pofV3m9ZNwrH0u6YJjOodCasKeEUEKoUdlx2gVP4b2H2yf1pJQoFGL35f3oYoSH01kswcXz3yy2IMXiIA29SlAIYyeHxjSjMMchyphenhyphenbnHI4eEWE4C/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-25+16:09:41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhagAVHVtxzYg2HQcCEjPC9vd7eVvJ31pofV3m9ZNwrH0u6YJjOodCasKeEUEKoUdlx2gVP4b2H2yf1pJQoFGL35f3oYoSH01kswcXz3yy2IMXiIA29SlAIYyeHxjSjMMchyphenhyphenbnHI4eEWE4C/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-25+16:09:41.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
如果網路連線有proxy，則這裡必須輸入喔&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjInCLQdFYGbNblDQxmXtf5O7u3-oLO5ONw5VdoyWhC2y9sCyZs9H-gv1XH9rrP7n5G3O3SvYSPTeCXUp199eGVAB2IGhSs1rSBHx8GK2nVGdtSp2shFNMF296A5abWBJGpLQnl8BmhFd6Z/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-25+16:09:55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjInCLQdFYGbNblDQxmXtf5O7u3-oLO5ONw5VdoyWhC2y9sCyZs9H-gv1XH9rrP7n5G3O3SvYSPTeCXUp199eGVAB2IGhSs1rSBHx8GK2nVGdtSp2shFNMF296A5abWBJGpLQnl8BmhFd6Z/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-25+16:09:55.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;您也可以自訂密碼&lt;/span&gt;，下次連線時，輸入您的自訂密碼即可，不一定要用TeamViewer的隨機產生密碼喔&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMlMCkv8mpXBp81t-h_zPKQ4j5wFHh76B4XMmtLNBh6NdyJJfKEUq6OmXx8JHvXyyNmOE3ssD4Ykr3BnD_2ai0N04ha0I08pqjVFIe-wxI_C_3JdKyjOhGUTDXeisZH_VmSHJ_jT61zX_5/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-25+16:10:24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMlMCkv8mpXBp81t-h_zPKQ4j5wFHh76B4XMmtLNBh6NdyJJfKEUq6OmXx8JHvXyyNmOE3ssD4Ykr3BnD_2ai0N04ha0I08pqjVFIe-wxI_C_3JdKyjOhGUTDXeisZH_VmSHJ_jT61zX_5/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-25+16:10:24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
這裡可以選擇連線的Quality，既然是遠端連線，當然是以速度優先，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;然後勾選不要顯示被控端的桌面背景，這樣可以加快連線的速度&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=226933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));
&lt;/script&gt;
&lt;br /&gt;
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/06/blog-post.html&quot; data-send=&quot;true&quot; data-show-faces=&quot;true&quot; data-width=&quot;450&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/06/blog-post.html&quot; data-num-posts=&quot;2&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/5826672145820455501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/5826672145820455501'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/06/blog-post.html' title='阿公阿嬤也會遠端遙控家中電腦喔'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhicMCes3qM2mCrTog5nW5n1kFj3vTCVs6CZr42_Rz2Jm2u_gw_KQAoPklf9rEWcyoUeze_Uvj6MKpbikfBub47qiXsJAoKP_lTHkeLN3-BkFXDzwDPClNW-REToj_-9hyLm36ENtc0VasL/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%259C%2596%25E5%25AD%2598%25E7%2582%25BA+2012-06-25+16%253A04%253A48.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7454538904211828655.post-4826469488573516078</id><published>2012-06-19T03:14:00.000-07:00</published><updated>2012-06-20T19:43:13.410-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><title type='text'>快快樂樂使用 WebRequest &amp; WebResponse for Asp.net</title><content type='html'>這篇文章是介紹WebRequest &amp;amp; WebResponse，可以應用在程式自動的送出data給網頁，程式自動讀取網頁的內容，也就是我們常聽到的機器人代替人工去上網瀏覽網頁，或代替人工上網送出資料&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;1.載入&amp;nbsp;using System.Net;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;2.程式範例圖&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIf7TdC3yfiaZnZX2jBCapDfGLS13qHwufqLKTRYgdXvyvkO0kLR14yIqueIcXOPclEwgAMJW1a_W4N1pVl6R14wy-sKtLmILuVtiSzU-jzP4uIVrMmehof4x_bWebXZhqvLeebW-GhWL9/s1600/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-19+17:45:58.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIf7TdC3yfiaZnZX2jBCapDfGLS13qHwufqLKTRYgdXvyvkO0kLR14yIqueIcXOPclEwgAMJW1a_W4N1pVl6R14wy-sKtLmILuVtiSzU-jzP4uIVrMmehof4x_bWebXZhqvLeebW-GhWL9/s320/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-19+17:45:58.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
在這個web service中，傳入要自動執行的網頁的編碼型態，網址，要傳入的參數&lt;br /&gt;
編碼目前多為標準的utf-8 ,&lt;br /&gt;
request.method 可以為get or post ,&lt;br /&gt;
&lt;br /&gt;
Stream stream = request.GetRequestStream(); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&amp;nbsp;//建立 WebRequest 的&amp;nbsp;GetRequestStream()&lt;/span&gt;&lt;br /&gt;
stream.Write(data, 0, data.Length); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;//開始執行網頁，並植入data給網頁&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
執行完後，可用&lt;br /&gt;
WebResponse webResponse = request.GetResponse(); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;//讀取網頁內容&lt;/span&gt;&lt;br /&gt;
gs_retval = streamReader.ReadToEnd(); &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;//利用stream將讀到的網頁內容傳給String 變數&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;3. 如何呼叫web service&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
String = webService.set_n_get_web_request(&quot;utf-8&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;http://public/save_sce_class_photo.php&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;nsme=joseph&amp;amp;age=20);&lt;br /&gt;
&lt;br /&gt;
如果對方的網頁是一隻訂購或報名的網頁，&lt;i&gt;&lt;b&gt;那您就可以利用這種方法，用程式自動一直去做報名或訂購的動作，或者也可以讓程式自動去讀取其他網站的網頁資訊&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
當然現在很多網站都有提供防止機器人自動執行網頁的功能，例如要你輸入網頁畫面上隨機出現的英文或數字，輸入正確才可以報名或訂購&lt;br /&gt;
&lt;br /&gt;
所以現在比較常用的只有機器人 WebResponse 自動讀取網頁的功能了&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;fb-root&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = &quot;//connect.facebook.net/zh_TW/all.js#xfbml=1&amp;appId=26933124004441&quot;;
  fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));
&lt;/script&gt;
&lt;br /&gt;
&lt;div class=&quot;fb-like&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/06/webrequest-webresponse.html&quot; data-send=&quot;true&quot; data-show-faces=&quot;true&quot; data-width=&quot;450&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;fb-comments&quot; data-href=&quot;http://enterprise-it.blogspot.tw/2012/06/webrequest-webresponse.html&quot; data-num-posts=&quot;3&quot; data-width=&quot;470&quot;&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4826469488573516078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7454538904211828655/posts/default/4826469488573516078'/><link rel='alternate' type='text/html' href='http://enterprise-it.blogspot.com/2012/06/webrequest-webresponse.html' title='快快樂樂使用 WebRequest &amp; WebResponse for Asp.net'/><author><name>joseph</name><uri>http://www.blogger.com/profile/11434877797321556778</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIf7TdC3yfiaZnZX2jBCapDfGLS13qHwufqLKTRYgdXvyvkO0kLR14yIqueIcXOPclEwgAMJW1a_W4N1pVl6R14wy-sKtLmILuVtiSzU-jzP4uIVrMmehof4x_bWebXZhqvLeebW-GhWL9/s72-c/%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96%E5%AD%98%E7%82%BA+2012-06-19+17:45:58.png" height="72" width="72"/></entry></feed>