<?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-8107596892375994503</id><updated>2024-11-01T14:25:15.130+08:00</updated><category term="程式開發"/><category term="PaperCraft"/><category term="雜記"/><category term="資料庫"/><category term="iphone"/><category term="Java"/><category term="模型"/><category term="papercraft express news"/><category term="Microsoft"/><category term="學習心得"/><category term="鋼彈"/><category term="Oracle"/><category term="變形金剛"/><category term="Gundam"/><category term="Software"/><category term="圖像和圖示"/><category term="Angry Birds"/><category term="C#"/><category term="DB2"/><category term="MySQL"/><category term="貓型鋼彈"/><category term="Android"/><category term="CentOS"/><category term="Perl"/><category term="PostgreSQL"/><category term="SQL"/><category term="excel"/><category term="Objective-C"/><category term="PHP"/><category term="SQLite"/><category term="功夫熊貓"/><category term="卡通"/><category term="機器人"/><category term="Linux"/><category term="Web"/><category term="三國鋼彈"/><category term="動物"/><category term="景點"/><category term="ASP.NET"/><category term="SQL Server"/><category term="VS2005"/><category term="Windows 8"/><category term="繩藝"/><category term="馬力歐"/><category term="JSP"/><category term="Shell Script"/><category term="人物"/><category term="手帳"/><category term="手環"/><category term="鬆弛熊"/><category term="Smarty"/><category term="Windows Scripting Host"/><category term="app"/><category term="eclipse"/><category term="putty"/><category term="struts 2"/><category term="海賊王"/><category term="Bash"/><category term="HTML"/><category term="IIS"/><category term="PMP"/><category term="Subversion"/><category term="TortoiseSVN"/><category term="Visual Web Developer 2010 Express"/><category term="WebPI"/><category term="Websphere"/><category term="css"/><category term="notepad++"/><category term="ssh"/><category term="wxWidgets"/><category term="國家考試"/><category term="生活資訊"/><title type='text'>Free學習札記</title><subtitle type='html'>Happy coding.&lt;br&gt;&#xa;The secret to creativity is knowing how to hide your sources.— Albert Einstein&lt;br&gt;&#xa;Good artists copy, great artists steal. – Pablo Picasso</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>454</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-6079429393118259760</id><published>2018-06-16T14:58:00.000+08:00</published><updated>2018-06-16T14:58:11.134+08:00</updated><title type='text'>在Bootstrap使用img-responsive center-block讓圖片置中</title><content type='html'>&lt;img src=&quot;#&quot; class=&quot;img-responsive center-block&quot; /&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/6079429393118259760/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2018/06/bootstrapimg-responsive-center-block.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/6079429393118259760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/6079429393118259760'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2018/06/bootstrapimg-responsive-center-block.html' title='在Bootstrap使用img-responsive center-block讓圖片置中'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-2545196712049857678</id><published>2018-05-13T14:14:00.003+08:00</published><updated>2018-05-13T14:14:56.666+08:00</updated><title type='text'>複製excel表格至web mail，無法顯示完整表格</title><content type='html'>每次要複製excel表格至web mail，無法顯示完整表格，只剩下純文字資料，但無意間卻發現了一個現象，如果先將excel表格轉貼到word，再從word將表格複製在貼上web mail，卻發現表格格式還在，可能字型和間距會跑掉，但至少還可以看到完整表格樣子。</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/2545196712049857678/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2018/05/excelweb-mail.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2545196712049857678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2545196712049857678'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2018/05/excelweb-mail.html' title='複製excel表格至web mail，無法顯示完整表格'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-1275598612385830795</id><published>2017-10-30T15:45:00.000+08:00</published><updated>2017-10-30T15:45:34.135+08:00</updated><title type='text'>開發APP用Native語言還是Hybrid好？</title><content type='html'>&lt;div&gt;&lt;small&gt;這是個爭議的問題，通常各自有擁護者，各有自己的立場，無解。&lt;br /&gt;
&lt;br /&gt;
撇開各自喜好，先來說明目前三種常見的手機開發模式：Web APP、Hybrid APP及Native APP。&lt;br /&gt;
&lt;/small&gt;&lt;br /&gt;
&lt;/div&gt;&lt;hr style=&quot;border-top: 1px dotted blue;&quot;&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;
&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;WebAPP&quot;&gt;&lt;/a&gt;&lt;medium&gt;Web APP&lt;medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;small&gt;Web APP是支援平台最多的一種做法，因為每個行動平台一定都有瀏覽器，以Web的形式來開發App是最直接且入門門檻相對較低的做法。但是因為瀏覽器的諸多限制，有很多裝置上的功能（如：拍照、存取通訊錄或相簿）並無法使用，且無法上架到App Store或Google Play，這限制了其應用範圍。&lt;br /&gt;
如果只是單純的資訊傳遞，不需要太多與手機的整合性功能，開發行動裝置專用的Mobile Web App或Responsive Web App將能夠橫跨最多的平台。只是要做到暢的用戶體驗，開發者對於HTML5、CSS3的技術掌握必須在水準之上，才能對於各種瀏覽器環境有一定的掌握。&lt;/small&gt; &lt;/div&gt;&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;NativeAPP&quot;&gt;&lt;/a&gt;&lt;medium&gt;Native APP&lt;/medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;small&gt;各平台手機的原生應用程式，必須要學習多種平台的開發語言，付出相對較大的學習成本，其最大的優勢是可以操作手機內建軟硬體資訊、提供最良好的UI用戶體驗。&lt;/small&gt; &lt;/div&gt;&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;HybridAPP&quot;&gt;&lt;/a&gt;&lt;medium&gt;Hybrid APP&lt;/medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;small&gt;市場上同時擁有多種平台開發技術的人才短缺，倘若可以使用Web的跨平台開發方式，那滿滿的Web前端工程師就是現有的資源。因此有混合開發模式Hybrid APP出現，使用Web為開發基礎再透過各平台APP平台的SDK建置後，打包成APP，可上架至App Store或Google Play。&lt;br /&gt;
Cordova、PhoneGap、Ionic等框架，提供了其強大的JavaScript API介面，讓APP能夠存取手機的功能，打開這盒子後，讓一切變得有無限可能。&lt;/small&gt; &lt;/div&gt;&lt;p&gt;&lt;div&gt;&lt;medium&gt;&lt;strong&gt;該選哪一種？&lt;/strong&gt;&lt;medium&gt;&lt;br /&gt;
在決定採用哪一種開發模式之前，有許多因素需要考慮，諸如：要在哪一種平台開發？有無利用手機特有性能？圖形要求高不高？&lt;br /&gt;
&lt;br /&gt;
Native APP針對特定的操作系統開發，用的也是特定操作系統的開發套件(SDK)，如 Apple iOS。因此它的性能和工具一向比Hybrid APP優越。&lt;br /&gt;
&lt;br /&gt;
Hybrid APP難道沒出頭的機會，那也不一定，很多APP採用Cordova、PhoneGap、Ionic等框架開發而成，單碼跨平台是它的優點(最後還是要透過框架編譯成各平台APP)，但直接使用網頁來制作使用者界面，這是它的優點、同時也是缺點。因為這表示開發者無法直接使用原生的使用者介面，看起來不像該平台的App，要花時間模擬調整到和原生界面相同的視覺效果和流程度。且顯示的部分還得經過瀏覽器引擎，也有跨瀏覽器的相容問題要處理，在整體的功能與流暢度方面，尚難以和Native App相提並論。&lt;br /&gt;
不過如果只是單純的資訊呈現，對流暢度和功能的要求較低，Hybrid App還是其生存空間，但性能設計會是主要的重點。&lt;br /&gt;
&lt;br /&gt;
用戶介面設計是一個影響APP性能的重要因素，如果圖形多、漸層、影子效果、仿真度高，就會消耗很多裝置資源，當你以60fps運行，大概需要17 milliseconds per frame去執行程式碼和更新用戶界面。這樣的時間根本不能提供流暢的運行，還很可能會令Frame出現問題，因此隱定性也是Hybrid APP設計該考慮的重點，所以設計前先問問自己，這些資源耗量大的設計真的是必要的嗎？&lt;br /&gt;
&lt;br /&gt;
說真的，Hybrid的開發是非常吸引人，因為能夠採用你熟悉的網頁技術來建造你的APP，但也是一個陷阱，不要把Hybrid APP當成獨立網頁來設計，如果APP體驗不夠原生化，則有可能被App Store拒絕的風險，多研究Native平台和SDK的設計，可以套用在Hybrid APP的開發上。&lt;br /&gt;
&lt;br /&gt;
如果只是單純的顯示動態網頁內容，或許根本不需要動用到Hybrid APP框架，將網頁放置到伺服器上，Native APP建立個WebView調用網址顯示，快速又方便維護。&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMKUJSwifHLuWciF7EJhCN_H2sWBkJFla30atfWKUWDj8WJ0K-2F5qNctwOT-BR65EVyazeFkh4PeBcvAUA-62JhL_njXGIU5Ek1cOy8xAhCvcFft3kn2B5w7EEtx1EFkFM3tu3S5e4mGm/s1600/Native_Hybrid_Web.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMKUJSwifHLuWciF7EJhCN_H2sWBkJFla30atfWKUWDj8WJ0K-2F5qNctwOT-BR65EVyazeFkh4PeBcvAUA-62JhL_njXGIU5Ek1cOy8xAhCvcFft3kn2B5w7EEtx1EFkFM3tu3S5e4mGm/s400/Native_Hybrid_Web.png&quot; width=&quot;400&quot; height=&quot;244&quot; data-original-width=&quot;723&quot; data-original-height=&quot;441&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/1275598612385830795/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2017/10/appnativehybrid.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/1275598612385830795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/1275598612385830795'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2017/10/appnativehybrid.html' title='開發APP用Native語言還是Hybrid好？'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMKUJSwifHLuWciF7EJhCN_H2sWBkJFla30atfWKUWDj8WJ0K-2F5qNctwOT-BR65EVyazeFkh4PeBcvAUA-62JhL_njXGIU5Ek1cOy8xAhCvcFft3kn2B5w7EEtx1EFkFM3tu3S5e4mGm/s72-c/Native_Hybrid_Web.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-3740499667900003952</id><published>2017-06-21T11:18:00.000+08:00</published><updated>2017-06-21T11:18:55.183+08:00</updated><title type='text'>查詢iOS及Android各版本的市占率</title><content type='html'>&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;
常會遇到要查詢iOS及Android各版本的市占率，相關網址如下：&lt;br /&gt;
&lt;a href=&quot;https://developer.apple.com/support/app-store/&quot; target=&quot;_blank&quot;&gt;前往官網查詢iOS各版本市佔率&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://developer.android.com/about/dashboards/index.html&quot; target=&quot;_blank&quot;&gt;前往官網查詢Android各版本市佔率&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/3740499667900003952/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2017/06/iosandroid.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/3740499667900003952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/3740499667900003952'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2017/06/iosandroid.html' title='查詢iOS及Android各版本的市占率'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-3927255485880574258</id><published>2017-05-31T16:23:00.000+08:00</published><updated>2017-05-31T16:23:55.644+08:00</updated><title type='text'>透過Eclipse產生javadoc</title><content type='html'>&lt;div&gt;&lt;small&gt; 通常有寫註解就不錯了，一般專案會特別產生出javadoc少之又少，偶爾有需要，中途又遇到個錯誤，就順手紀錄一下。 &lt;/small&gt; &lt;/div&gt;&lt;hr style=&quot;border-top: 1px dotted blue;&quot;&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;
&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;Perl:foreword&quot;&gt;&lt;/a&gt;&lt;medium&gt;行前準備&lt;medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;small&gt; 準備好以下工具： &lt;/small&gt; &lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;small&gt;JDK&lt;/small&gt;&lt;/li&gt;
&lt;li&gt;&lt;small&gt;Eclipse&lt;/small&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;Perl:history&quot;&gt;&lt;/a&gt;&lt;medium&gt;一步一步來產生javadoc&lt;/medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;ul&gt;&lt;li&gt;&lt;small&gt;打開Eclipse，點選要產出javadoc的專案後，選擇Project -&gt; Generate Javadoc。&lt;/small&gt;&lt;/li&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwvyrrtTkTsNYKgT4q-_9qNDFTN39rwFaRFzjDA4PLdT1F2kV_16MsdXHbeoRtHMl_D3ByoSU706eQDDDVCmFqMcypf-rAGMRZ1_P7ZOp7W2zAUc-9l5hwPo6r5EUg79ecYu1Vkkqb5ry2/s1600/eclipse02.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwvyrrtTkTsNYKgT4q-_9qNDFTN39rwFaRFzjDA4PLdT1F2kV_16MsdXHbeoRtHMl_D3ByoSU706eQDDDVCmFqMcypf-rAGMRZ1_P7ZOp7W2zAUc-9l5hwPo6r5EUg79ecYu1Vkkqb5ry2/s400/eclipse02.png&quot; width=&quot;336&quot; height=&quot;400&quot; data-original-width=&quot;511&quot; data-original-height=&quot;609&quot; /&gt;&lt;/a&gt;
&lt;li&gt;&lt;small&gt;這頁面可設定JDK和產出位置，基本上用預設值就可以了，按Next，來到下一個頁面。&lt;/small&gt;&lt;/li&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9OTIUS37kSMs08DJkg8KGRVBXuZXKcahgeySoZh4WuD8cEGetVdQL2zkgYYUHEAsdzU3NVIfmxdZiTiFFNxgTbysxgvOa6qnpagp1fh_RAGa6kUBPo6esnvMIN6Aadd6N8Qtnx5c62-nP/s1600/eclipse03.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9OTIUS37kSMs08DJkg8KGRVBXuZXKcahgeySoZh4WuD8cEGetVdQL2zkgYYUHEAsdzU3NVIfmxdZiTiFFNxgTbysxgvOa6qnpagp1fh_RAGa6kUBPo6esnvMIN6Aadd6N8Qtnx5c62-nP/s400/eclipse03.png&quot; width=&quot;336&quot; height=&quot;400&quot; data-original-width=&quot;511&quot; data-original-height=&quot;609&quot; /&gt;&lt;/a&gt;
&lt;li&gt;&lt;small&gt;基本上用預設值就可以了，，按Next，來到下一個頁面。&lt;/small&gt;&lt;/li&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb0KDb038kXf2vHvGxGyOC21rz5sRZwSqIYEsNnHC9Vn08scAfMIyfjWICSZO7_dxvj5mVZQ-Pm52vunnCCkxTHCqne4LwJ3BpFYpi-QVrt0ZhPP4F4rnf3_O51ZFpJJqgivumyMVLgjEL/s1600/eclipse04.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb0KDb038kXf2vHvGxGyOC21rz5sRZwSqIYEsNnHC9Vn08scAfMIyfjWICSZO7_dxvj5mVZQ-Pm52vunnCCkxTHCqne4LwJ3BpFYpi-QVrt0ZhPP4F4rnf3_O51ZFpJJqgivumyMVLgjEL/s400/eclipse04.png&quot; width=&quot;336&quot; height=&quot;400&quot; data-original-width=&quot;511&quot; data-original-height=&quot;609&quot; /&gt;&lt;/a&gt;
&lt;li&gt;&lt;small&gt;這頁面有個要特別注意的低方，基本上現在專案邊碼都採用UTF-8，但Windows上Eclipse預設採用M950，請輸入 -charset UTF-8 -encoding UTF-8 ，不然會發生錯誤，無法產出Javadoc。請按Finish產出Javadoc。&lt;/small&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/3927255485880574258/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2017/05/eclipsejavadoc.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/3927255485880574258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/3927255485880574258'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2017/05/eclipsejavadoc.html' title='透過Eclipse產生javadoc'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwvyrrtTkTsNYKgT4q-_9qNDFTN39rwFaRFzjDA4PLdT1F2kV_16MsdXHbeoRtHMl_D3ByoSU706eQDDDVCmFqMcypf-rAGMRZ1_P7ZOp7W2zAUc-9l5hwPo6r5EUg79ecYu1Vkkqb5ry2/s72-c/eclipse02.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-2494424802930740479</id><published>2016-12-27T18:17:00.003+08:00</published><updated>2016-12-27T18:17:44.234+08:00</updated><title type='text'>Use Postman to test push notification(GCM)</title><content type='html'>&lt;div&gt;&lt;small&gt;簡易記錄一下如何透過Postman來測試驗證Android推播訊息&lt;/small&gt; &lt;/div&gt;&lt;hr style=&quot;border-top: 1px dotted blue;&quot;&gt;&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;
&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;Perl:foreword&quot;&gt;&lt;/a&gt;&lt;medium&gt;前言&lt;medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;small&gt;推播問題多，透過Postman能快速自我驗證，釐清問題&lt;/small&gt; &lt;/div&gt;&lt;dl&gt;&lt;dt&gt;&lt;a name=&quot;Perl:history&quot;&gt;&lt;/a&gt;&lt;medium&gt;測試步驟&lt;/medium&gt;&lt;/dt&gt;
&lt;/dl&gt;&lt;ol&gt;&lt;li&gt;&lt;small&gt;首先請安裝Postman。Postman: a Google chrome extension.&lt;/small&gt;&lt;/li&gt;
&lt;li&gt;&lt;small&gt;Postman設定&lt;/li&gt;
Request Type:&lt;strong&gt;POST&lt;/strong&gt;&lt;br&gt;
URL:&lt;strong&gt;https://android.googleapis.com/gcm/send&lt;/strong&gt;&lt;br&gt;
Header&lt;br&gt;
&amp;nbsp;&amp;nbsp;Authorization  : &lt;strong&gt;key=your key&lt;/strong&gt; //Google API KEY&lt;br&gt;
&amp;nbsp;&amp;nbsp;Content-Type : &lt;strong&gt;application/json&lt;/strong&gt;&lt;br&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaVK8SbVZO0Bm4w8zuiE-q9a4y90RAGKJCOD5v_7SyIBcRRDHsoE3j7Mobba7dur9DqozHrLYLpzzmdak3TDxIwoDWJ8g5sYOMMvAs9VEHa0gS-9pyNUnlBT-mCCqidmoTx4EyOGO4tbhyphenhyphen/s1600/postman01.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaVK8SbVZO0Bm4w8zuiE-q9a4y90RAGKJCOD5v_7SyIBcRRDHsoE3j7Mobba7dur9DqozHrLYLpzzmdak3TDxIwoDWJ8g5sYOMMvAs9VEHa0gS-9pyNUnlBT-mCCqidmoTx4EyOGO4tbhyphenhyphen/s320/postman01.png&quot; width=&quot;320&quot; height=&quot;54&quot; /&gt;&lt;/a&gt;
Body&lt;br&gt;
JSON (raw) : 請照自己的發送格式&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;to&quot;:&quot;token&quot;,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;data&quot;: {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;message&quot; : &quot;Test測試&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;}&lt;br&gt;
}&lt;br&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_weFHx4oSozeyFvRu19lQIChht3N6IIbNCo6UeWr0aoLd4_OOWYaqaQWqoqBtVSWC-PHDnX1qFeOobxXfabsxQ0KmjPo9a1_8xMFJEHO0weMM-pFAYwypeuZSeqOrwvZV7bBtOccsMdJa/s1600/postman02.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_weFHx4oSozeyFvRu19lQIChht3N6IIbNCo6UeWr0aoLd4_OOWYaqaQWqoqBtVSWC-PHDnX1qFeOobxXfabsxQ0KmjPo9a1_8xMFJEHO0weMM-pFAYwypeuZSeqOrwvZV7bBtOccsMdJa/s320/postman02.png&quot; width=&quot;320&quot; height=&quot;114&quot; /&gt;&lt;/a&gt;
&lt;li&gt;&lt;small&gt;確認回應訊息，當success的值大於0，表示成功發送幾個&lt;/small&gt;&lt;/li&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie7J2exEcHwLJHyCcxy9gh_BYsZHUhfU3tuAMkUrPB09TQJVAEyhrxV89i74TbjCrNEsNKSd5yziwZZmLwZiR8uOTZZ_EUmyHTPBy7WJEzRFAN6ZQy5D-jSAHfHjIwbU8mJx-wVn6THlM4/s1600/postman03.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie7J2exEcHwLJHyCcxy9gh_BYsZHUhfU3tuAMkUrPB09TQJVAEyhrxV89i74TbjCrNEsNKSd5yziwZZmLwZiR8uOTZZ_EUmyHTPBy7WJEzRFAN6ZQy5D-jSAHfHjIwbU8mJx-wVn6THlM4/s320/postman03.png&quot; width=&quot;320&quot; height=&quot;104&quot; /&gt;&lt;/a&gt;
&lt;/ol&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/2494424802930740479/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2016/12/use-postman-to-test-push-notificationgcm.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2494424802930740479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2494424802930740479'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2016/12/use-postman-to-test-push-notificationgcm.html' title='Use Postman to test push notification(GCM)'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaVK8SbVZO0Bm4w8zuiE-q9a4y90RAGKJCOD5v_7SyIBcRRDHsoE3j7Mobba7dur9DqozHrLYLpzzmdak3TDxIwoDWJ8g5sYOMMvAs9VEHa0gS-9pyNUnlBT-mCCqidmoTx4EyOGO4tbhyphenhyphen/s72-c/postman01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-609629586172204763</id><published>2016-01-07T17:29:00.000+08:00</published><updated>2016-01-07T17:29:10.410+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><title type='text'>Eclipse 專案編碼格式</title><content type='html'>Eclipse 預設的文字編碼是M950，每次在新增專案後，都要去專案的Properties修改成UTF-8，透過下列設定，以後新專案都會是UTF-8編碼了。&lt;br /&gt;
透過Eclipse的偏好設定 Window &gt; Preferences&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9j_m5xO99BVZJHGEY8YpqinY82aPEKcMLkWgEKDTl1EKgfMU25LXvtsrktzsqCE78gyJleCUJxBZtwfBbzpMoOIdw96K76rGvLk7uo71H9pIUth80jvk2dmug8zC5hM4NpyLBEypulpNV/s1600/11.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9j_m5xO99BVZJHGEY8YpqinY82aPEKcMLkWgEKDTl1EKgfMU25LXvtsrktzsqCE78gyJleCUJxBZtwfBbzpMoOIdw96K76rGvLk7uo71H9pIUth80jvk2dmug8zC5hM4NpyLBEypulpNV/s320/11.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
General &gt; Workspace &gt; Text file encoding &gt; 點選UTF-8 &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqBY1RN_1SB-1efzuJWu8F_dHVrG3iVxhp6iZ8cF_q8p4zptua5mh0kBof0xHCyWOB9rkQ3l16GD21ZCb_jgdh_-mjji3bCxS-FQQk_hcpDHGd8Xz9pp1oNKMC-J9YfC-IW1Hq3Xw95JSH/s1600/10.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqBY1RN_1SB-1efzuJWu8F_dHVrG3iVxhp6iZ8cF_q8p4zptua5mh0kBof0xHCyWOB9rkQ3l16GD21ZCb_jgdh_-mjji3bCxS-FQQk_hcpDHGd8Xz9pp1oNKMC-J9YfC-IW1Hq3Xw95JSH/s320/10.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
最後記得Apply就行了</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/609629586172204763/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2016/01/eclipse.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/609629586172204763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/609629586172204763'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2016/01/eclipse.html' title='Eclipse 專案編碼格式'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9j_m5xO99BVZJHGEY8YpqinY82aPEKcMLkWgEKDTl1EKgfMU25LXvtsrktzsqCE78gyJleCUJxBZtwfBbzpMoOIdw96K76rGvLk7uo71H9pIUth80jvk2dmug8zC5hM4NpyLBEypulpNV/s72-c/11.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-8140160653567707037</id><published>2015-09-01T00:21:00.000+08:00</published><updated>2015-09-01T00:21:00.909+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PaperCraft"/><title type='text'>[紙模]歪腰郵筒</title><content type='html'>好久沒空做紙模，看到這簡單的，就來休閒一下，順便讓印表機動一下，太久沒印都塞住了。&lt;br /&gt;
沒想到一個颱風，加上台灣人一窩蜂的性格，讓這郵筒出名了，還成為觀光景點，真的有夠...&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoaD7UnV2MTWlg0bOWhOMrII3QQs9KMPJZnMO86cwF_raZcYFoTa3dLcLjuc9wHtx_sl2eNqZenFfsCbt-3I3iLgEobaw_UiHZDdVd_mQRvUib9EpS1w14Fka09MQLnmWcbHL4txNlTSnK/s1600/IMG_20150831_235426.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoaD7UnV2MTWlg0bOWhOMrII3QQs9KMPJZnMO86cwF_raZcYFoTa3dLcLjuc9wHtx_sl2eNqZenFfsCbt-3I3iLgEobaw_UiHZDdVd_mQRvUib9EpS1w14Fka09MQLnmWcbHL4txNlTSnK/s400/IMG_20150831_235426.jpg&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE_LdRitLEIMDS25nQWiwmNAAhdbboWEUw8Me4srxmTSUP4hyphenhyphenpSlwrFeLz-gsQJ2Y4P-w9X4f_YlzKdfAwrHmr0mtwz5TW44vX0yp7aCyG5hd-1Y3VDEV65lbaqIQczZpwgjGu3e2kmqpU/s1600/IMG_20150831_235521.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE_LdRitLEIMDS25nQWiwmNAAhdbboWEUw8Me4srxmTSUP4hyphenhyphenpSlwrFeLz-gsQJ2Y4P-w9X4f_YlzKdfAwrHmr0mtwz5TW44vX0yp7aCyG5hd-1Y3VDEV65lbaqIQczZpwgjGu3e2kmqpU/s400/IMG_20150831_235521.jpg&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhif4Uh4SPZxdElywNFhIcKw5hP2kwPLMYUF9XVWl3D5e5vxULdK6blw20i9e6vdt7K5Z-G7rfXW6fjtiZzSnqulgCcmrBNbd4SFY12PYiAMgN6nJ7pHuxx-gsDskGNIXuzSGoVtf7gx-YE/s1600/IMG_20150831_235512.jpg&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhif4Uh4SPZxdElywNFhIcKw5hP2kwPLMYUF9XVWl3D5e5vxULdK6blw20i9e6vdt7K5Z-G7rfXW6fjtiZzSnqulgCcmrBNbd4SFY12PYiAMgN6nJ7pHuxx-gsDskGNIXuzSGoVtf7gx-YE/s400/IMG_20150831_235512.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/8140160653567707037/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2015/09/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/8140160653567707037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/8140160653567707037'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2015/09/blog-post.html' title='[紙模]歪腰郵筒'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoaD7UnV2MTWlg0bOWhOMrII3QQs9KMPJZnMO86cwF_raZcYFoTa3dLcLjuc9wHtx_sl2eNqZenFfsCbt-3I3iLgEobaw_UiHZDdVd_mQRvUib9EpS1w14Fka09MQLnmWcbHL4txNlTSnK/s72-c/IMG_20150831_235426.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-8251834405498457057</id><published>2015-08-23T19:33:00.002+08:00</published><updated>2015-08-23T19:33:42.902+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="學習心得"/><title type='text'>如何在Mac電腦格式化SD卡</title><content type='html'>要如何在Mac電腦格式化SD卡&lt;br /&gt;
透過Finder/應用程式/工具程式/磁碟工具程式打開操作介面，顯示如下圖：&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI-sEtXMNU-MOnlmodo8n8f3crgB4jJq5Cnopx63hqRpBC4B9BK0pTjEl82xzR7oqWvaTM-V3LN23xBTPPGlEvYmWbohDhCshbs6xon_1rZaLarNLghgDIL71AJyaIySQsxgH3SAlwFyI7/s1600/diskutil.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI-sEtXMNU-MOnlmodo8n8f3crgB4jJq5Cnopx63hqRpBC4B9BK0pTjEl82xzR7oqWvaTM-V3LN23xBTPPGlEvYmWbohDhCshbs6xon_1rZaLarNLghgDIL71AJyaIySQsxgH3SAlwFyI7/s400/diskutil.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
再選擇SD卡磁碟/清除/選擇要格式化的格式[ex: MS-DOS(FAT)]/然後按清除，即可將SD格式化。</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/8251834405498457057/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2015/08/macsd.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/8251834405498457057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/8251834405498457057'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2015/08/macsd.html' title='如何在Mac電腦格式化SD卡'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI-sEtXMNU-MOnlmodo8n8f3crgB4jJq5Cnopx63hqRpBC4B9BK0pTjEl82xzR7oqWvaTM-V3LN23xBTPPGlEvYmWbohDhCshbs6xon_1rZaLarNLghgDIL71AJyaIySQsxgH3SAlwFyI7/s72-c/diskutil.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-5249500904967800615</id><published>2014-12-29T15:28:00.000+08:00</published><updated>2014-12-29T15:28:56.272+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><category scheme="http://www.blogger.com/atom/ns#" term="資料庫"/><title type='text'>How to execute a MySQL command from a shell script?</title><content type='html'>反正常遇到，不如寫下做個紀錄，以後直接複製貼上。&lt;br /&gt;
&lt;br /&gt;
整個重點在於-p和密碼中間有沒有空格。當有空格時，mysql是使用互動式，要你填入密碼；如果沒有空格，mysql就直接使用-p後面的字串來登入。&lt;br /&gt;
指令：&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;$ mysql -h Server_name -u your_account -pPassword database_name &lt; file.sql
&lt;/pre&gt;
&lt;p/&gt;若-p和密碼中間有空格，會出現下列情況：
&lt;pre class=&quot;codeblock&quot;&gt;$ mysql -h Server_name -u your_account -p Password database_name &lt; file.sql
Enter password: &lt;you type it in here&gt;
ERROR 1049 (42000): Unknown database &#39;Password&#39;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/5249500904967800615/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/how-to-execute-mysql-command-from-shell.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/5249500904967800615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/5249500904967800615'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/how-to-execute-mysql-command-from-shell.html' title='How to execute a MySQL command from a shell script?'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-4559114183624444656</id><published>2014-12-12T14:44:00.000+08:00</published><updated>2014-12-12T14:44:55.486+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Subversion"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>如何正確匯出Subversion 控制的專案[並刪除 Subversion 專用的隱藏目錄]</title><content type='html'>&lt;a href=&quot;http://subversion.tigris.org/&quot; target=&quot;_blank&quot;&gt;Subversion&lt;/a&gt;是許多人推薦的版本控制軟體，應該是我不太會用，所以我快被&lt;a href=&quot;http://subversion.tigris.org/&quot; target=&quot;_blank&quot;&gt;Subversion&lt;/a&gt;搞到抓狂，雖然很靈活，非強制鎖定，看來似乎不錯，但是多人協同作業，只要有人忘了步驟，程式就會莫名變來變去，原版已經寫完的東西，有時就會被蓋掉不見了 @@&lt;br /&gt;
&lt;br /&gt;
最後我決定把版本控制和我在開發的環境錯開，免得一直重複重樣的問題。至於要怎麼把已經掛到Subversion匯出，其實還蠻簡單的，匯出時要先用滑鼠右鍵「拖曳」該目錄到本目錄或其他目錄，然後放開後才會出現 SVN Export to here 與 SVN Export all to here 功能，這兩個差別在於：&lt;br /&gt;
SVN Export to here: 將該目錄最新版本匯出&lt;br /&gt;
SVN Export all to here: 將該目錄中所有檔案匯出&lt;br /&gt;
&lt;br /&gt;
另外還查到另一種作法，就是把&lt;a href=&quot;http://subversion.tigris.org/&quot; target=&quot;_blank&quot;&gt;Subversion&lt;/a&gt;的工作副本(Working Copy)目錄裡都會有隱藏的目錄 .svn 或 _svn，裡面儲存了關於此目錄中所有檔案的版本資訊與變更狀態等這些資訊全部刪除，網路流傳一段用註冊檔的方式來處理刪除的動作&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@=&quot;Delete SVN Folders&quot;

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@=&quot;cmd.exe /k \&quot;TITLE Removing SVN Folders in %1 &amp;&amp; FOR /r \&quot;%1\&quot; %%f IN (.svn _svn) DO RD /s /q \&quot;%%f\&quot; \&quot;&quot;
&lt;/pre&gt;&lt;br /&gt;
只要將上面語法儲存成.reg檔，點擊註冊完成後，以後就可以在想要刪除&lt;a href=&quot;http://subversion.tigris.org/&quot; target=&quot;_blank&quot;&gt;Subversion&lt;/a&gt;版本控制的目錄按右鍵，選擇Delete SVN Folders，就可以快速地將&lt;a href=&quot;http://subversion.tigris.org/&quot; target=&quot;_blank&quot;&gt;Subversion&lt;/a&gt;版本控制資訊全刪掉，只是越方便，風險就越高，不小心按到就爽了。&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/4559114183624444656/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/subversion-subversion.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/4559114183624444656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/4559114183624444656'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/subversion-subversion.html' title='如何正確匯出Subversion 控制的專案[並刪除 Subversion 專用的隱藏目錄]'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-5205344433818056173</id><published>2014-12-12T09:53:00.001+08:00</published><updated>2014-12-12T09:53:54.058+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>How to startup eclipse use specifing JVM</title><content type='html'>討厭的Oracle java更新，每次更新後，都會在環境變數加上它的java目錄，這舉動就會造成我機器上的eclipse無法啟動會出現下面錯誤。&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1xO1NeIbvtEHdyeSCsmiKkF6d-KwZkUcml7NhkpMQj0UhdoAqynKzKslthpkV3BcKJSKCJTu3aT8nVr9i9hMpsZHAcC-P5VzpeGib2445oTWvX7y89JGywW1gQk1vdwDqadBEHRnJ93c/s1600/eclipse.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1xO1NeIbvtEHdyeSCsmiKkF6d-KwZkUcml7NhkpMQj0UhdoAqynKzKslthpkV3BcKJSKCJTu3aT8nVr9i9hMpsZHAcC-P5VzpeGib2445oTWvX7y89JGywW1gQk1vdwDqadBEHRnJ93c/s400/eclipse.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
為了一勞永逸，只好在把之前用過的&lt;a href=&quot;http://mark-freefox.blogspot.tw/2012/10/eclipse-jre.html&quot; target=&quot;_blank&quot;&gt; 方式 &lt;/a&gt;再拿出來使用，在eclipse 直接設定 vm。&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;-vm
c:\jre\bin\javaw.exe
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/5205344433818056173/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/how-to-startup-eclipse-use-specifing-jvm.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/5205344433818056173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/5205344433818056173'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/how-to-startup-eclipse-use-specifing-jvm.html' title='How to startup eclipse use specifing JVM'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1xO1NeIbvtEHdyeSCsmiKkF6d-KwZkUcml7NhkpMQj0UhdoAqynKzKslthpkV3BcKJSKCJTu3aT8nVr9i9hMpsZHAcC-P5VzpeGib2445oTWvX7y89JGywW1gQk1vdwDqadBEHRnJ93c/s72-c/eclipse.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-2784529795063388657</id><published>2014-12-11T16:10:00.002+08:00</published><updated>2014-12-11T16:10:35.934+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TortoiseSVN"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>How to Fix Missing TortoiseSVN File Status Icons in Windows</title><content type='html'>同樣的軟體為什麼別人用都好好的，在我的機器上就是有一些小問題。&lt;br /&gt;
TortoiseSVN是蠻多人用來控制版本的軟體，當版本一致時，在檔案總管應該會有個綠色的打勾來顯示，簡單明瞭，BUT......&lt;br /&gt;
這綠色的打勾圖示就這樣上演失蹤記，千呼萬喚都不出現。&lt;br /&gt;
經過一番的搜尋後，原來問題點在於 windows 對於這種 Overlay Icons 的數目是有限制的，以前 32 bit 的最大數目為 15，現在 64 bit 最大數目為 11，但是像  SkyDriver, Dropbox..這類的程式都會新增屬於它們的 Overlay Icons，所以裝的軟體越多，ICON也就越多。&lt;br /&gt;
解決的方式就是打開 regedit.exe ，找到&lt;br /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ShellIconOverlayIdentifiers&lt;br /&gt;
&lt;br /&gt;
然後把不想要的刪除，確保 TortoiseSVN 的項目能排到前11個裡面，修改完後記得重開機，開機完後，應該就可以在檔案總管內看到那個綠色的打勾圖示了。 </content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/2784529795063388657/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/how-to-fix-missing-tortoisesvn-file.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2784529795063388657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2784529795063388657'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/12/how-to-fix-missing-tortoisesvn-file.html' title='How to Fix Missing TortoiseSVN File Status Icons in Windows'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-4293198561716267651</id><published>2014-10-16T11:56:00.001+08:00</published><updated>2014-10-16T11:56:25.754+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>[CentOS] CentOS 7 啟動服務方式的改變</title><content type='html'>新裝完 CentOS 7 後，遇到了兩個新改變，一是以前啟動服務的方式已經無法使用，另一個是防火牆iptables不見了，似乎用了另外的方式來管理防火牆。&lt;br /&gt;
底下先說明啟動服務的方式異動。&lt;br /&gt;
&lt;br /&gt;
舊的方法一：&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;/etc/init.d/servicename restart&lt;/pre&gt;&lt;br /&gt;
舊的方法二：&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;serice servicename restart&lt;/pre&gt;&lt;br /&gt;
新的方式要透過 systemctl&lt;br /&gt;
常用指令:&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;systemctl start|stop|restart|is-active|status|enable|disable servicename.service&lt;/pre&gt;start：啟動服務&lt;br /&gt;
stop：停止服務&lt;br /&gt;
restart：重啟服務&lt;br /&gt;
is-active：查看服務是否有效的&lt;br /&gt;
status：查看服務狀態&lt;br /&gt;
enable：將服務設定成系統啟動時自動啟動服務&lt;br /&gt;
disable：將服務設定成系統啟動時不啟動服務&lt;br /&gt;
&lt;br /&gt;
另外以前的reboot, halt, poweroff似乎也變成&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;systemctl halt
systemctl reboot
systemctl poweroff
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/4293198561716267651/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/10/centos-centos-7.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/4293198561716267651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/4293198561716267651'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/10/centos-centos-7.html' title='[CentOS] CentOS 7 啟動服務方式的改變'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-6028569759770925925</id><published>2014-09-29T12:12:00.000+08:00</published><updated>2014-12-03T09:51:55.041+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bash"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>Fix ShellShock : bash vulnerabilities CVE-2014-6271 and CVE-2014-7169</title><content type='html'>前兩天收到一個 bash 漏洞警示，提醒要趕快更新 bash ，來解決透過環境變數的代碼注入攻擊。新的 bash 版本，確保命令結束後面，無法再執行一個 bash 函數。&lt;br /&gt;
&lt;br /&gt;
測試方式:&lt;br /&gt;
&lt;pre class=&#39;codeblock&#39;&gt;env x=&#39;() { :;}; echo vulnerable&#39; bash -c &quot;echo this is a test&quot;
&lt;/pre&gt;&lt;br /&gt;
如果畫面上顯示&lt;br /&gt;
vulnerable&lt;br /&gt;
this is a test&lt;br /&gt;
&lt;br /&gt;
這表示，您的作業系統需要更新 bash 。&lt;br /&gt;
更新方式:&lt;br /&gt;
1. CentOS, RedHat, Fedora&lt;br /&gt;
&lt;pre class=&#39;codeblock&#39;&gt;yum -y update bash
&lt;/pre&gt;&lt;br /&gt;
2. Debian, Ubuntu&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;sudo apt-get update &amp;&amp; sudo apt-get install --only-upgrade bash
&lt;/pre&gt;&lt;br /&gt;
更新完後，請重新測試，如畫面顯示如下&lt;br /&gt;
bash: warning: x: ignoring function definition attempt&lt;br /&gt;
bash: error importing function definition for `x&#39;&lt;br /&gt;
this is a test&lt;br /&gt;
&lt;br /&gt;
即表示漏洞以修補完成。&lt;br /&gt;
&lt;br /&gt;
參考來源： &lt;a href=&quot;https://shellshocker.net/&quot; target=&quot;_blank&quot;&gt;shellshocker.net&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/6028569759770925925/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/fix-shellshock-bash-vulnerabilities-cve.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/6028569759770925925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/6028569759770925925'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/fix-shellshock-bash-vulnerabilities-cve.html' title='Fix ShellShock : bash vulnerabilities CVE-2014-6271 and CVE-2014-7169'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-941750668294052197</id><published>2014-09-03T16:37:00.000+08:00</published><updated>2014-09-03T16:37:14.117+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>用 Window resizer 模擬不同解析度的視窗尺寸來調整網頁</title><content type='html'>最近常常遇到，網頁排版在筆記型電腦上顯示是完整的，但是用投影機投射影像後，畫面就跑掉了，只好把筆記型電腦的解析度調低來排版，只是每次解析度調來調去也挺煩的，只好尋找有沒有解決的方式，意外發現Window Resizer這個Google Chrome的擴充套件，可以用來模擬各種不同解析度的視窗尺寸，就裝來試試看。&lt;br /&gt;
&lt;span class=&quot;fullpost&quot;&gt;&lt;br /&gt;
安裝:&lt;br /&gt;
1. Tools -&amp;gt; Extensions 進入擴充套件葉面&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivQghYNI2qrWQ6HnH5V7fe9IJzXyuW-WLYBYlGGya0Ef163Yk8MPD6K1ZZH55IQ-MonZWqzGN3WT81Sv2TY5PW2nypDwTIhEKGL8N8b17KfL8-KNGoLUfQI7HPiGa5ZqRrQ_J0NB8NnYbf/s1600/01.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivQghYNI2qrWQ6HnH5V7fe9IJzXyuW-WLYBYlGGya0Ef163Yk8MPD6K1ZZH55IQ-MonZWqzGN3WT81Sv2TY5PW2nypDwTIhEKGL8N8b17KfL8-KNGoLUfQI7HPiGa5ZqRrQ_J0NB8NnYbf/s400/01.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2. 直接搜尋 Window Resizer ，找到後，按 +Free ，直接安裝&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfof78pAb00E_tfBL4Gc4HEmVnyOpDocu8arLYzvhu7xfiZgs-Fap7q4DwtgMVr8MbwbxCLZwJKBamg9VB2XbPhhQmBGvZz1AolFlRjq8CxOqyvfwxCRykxjQHufEc2pwFcZ3tuZN4MXCc/s1600/02.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfof78pAb00E_tfBL4Gc4HEmVnyOpDocu8arLYzvhu7xfiZgs-Fap7q4DwtgMVr8MbwbxCLZwJKBamg9VB2XbPhhQmBGvZz1AolFlRjq8CxOqyvfwxCRykxjQHufEc2pwFcZ3tuZN4MXCc/s400/02.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3. 確認頁面，按 Add 繼續&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj-cKbKs8pYj0Hucn7mxyHJ3Ewy3e0iZYNJ9uTiuKCkjPTPFHWe_2m9vrvdtQ3k5QeQgwW_uG0-Vmyt5FcOcWJWZ0mBCLGvbrdWN4qLZO5D97OHaZ662WPJtMyTaqChtlvz2SQE2I8M1LF/s1600/03.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj-cKbKs8pYj0Hucn7mxyHJ3Ewy3e0iZYNJ9uTiuKCkjPTPFHWe_2m9vrvdtQ3k5QeQgwW_uG0-Vmyt5FcOcWJWZ0mBCLGvbrdWN4qLZO5D97OHaZ662WPJtMyTaqChtlvz2SQE2I8M1LF/s400/03.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
4. 顯示安裝完成&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyQKdvqZSUpUo9MFodO3MUDUAMSkp52t_j7qGFrKKcFmlJg2t6q2oQmRAXRNBPyOkESHMgaOiR8ehCqFM9E0ypBNED3PAhyphenhyphenVwMiZp4vraLGYQ-pGw_boho99l9NdIUHSNN5lxAm54qi3xa/s1600/04.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyQKdvqZSUpUo9MFodO3MUDUAMSkp52t_j7qGFrKKcFmlJg2t6q2oQmRAXRNBPyOkESHMgaOiR8ehCqFM9E0ypBNED3PAhyphenhyphenVwMiZp4vraLGYQ-pGw_boho99l9NdIUHSNN5lxAm54qi3xa/s400/04.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
5. 安裝完成後，瀏覽器的右上角會多個按鈕，後續就可以透過此按鈕來選擇不同解析度來模擬個視窗尺寸&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLGL1K5KNHhymmtbURDfQTgb43LEmdKcab07iQF-jnvx1R0WI9s2TcBIvzjku6Nk6Dw5rWLiI4JSHrkRYUg0iKCgAfLxnOg7LuIShtnbP4BuvoFBWOcVm8Wq4MgukkCgtwjphjy3cDp-O9/s1600/05.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLGL1K5KNHhymmtbURDfQTgb43LEmdKcab07iQF-jnvx1R0WI9s2TcBIvzjku6Nk6Dw5rWLiI4JSHrkRYUg0iKCgAfLxnOg7LuIShtnbP4BuvoFBWOcVm8Wq4MgukkCgtwjphjy3cDp-O9/s400/05.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioBIe4cTIbHk6WJvW12vUJFdVf1DA49u9OLBl-LbIzAHo1g1esNLxOEQP7mak_49BwqgjvXovXQpKO3IGJO-zcjhB99LUbobw3H6JyH6KGEUqpWgiaYznnF4UNybZlvALYL2MglxIo03Wn/s1600/06.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioBIe4cTIbHk6WJvW12vUJFdVf1DA49u9OLBl-LbIzAHo1g1esNLxOEQP7mak_49BwqgjvXovXQpKO3IGJO-zcjhB99LUbobw3H6JyH6KGEUqpWgiaYznnF4UNybZlvALYL2MglxIo03Wn/s400/06.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
試用後，感覺蠻方便的，唯一的缺點，解析度改變後，有可能會按不到頁面最下方的按鈕，此時只要切換回原尺寸即可，畢竟調整排版而已，功能各解析度都可以試。&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/941750668294052197/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/window-resizer.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/941750668294052197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/941750668294052197'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/window-resizer.html' title='用 Window resizer 模擬不同解析度的視窗尺寸來調整網頁'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivQghYNI2qrWQ6HnH5V7fe9IJzXyuW-WLYBYlGGya0Ef163Yk8MPD6K1ZZH55IQ-MonZWqzGN3WT81Sv2TY5PW2nypDwTIhEKGL8N8b17KfL8-KNGoLUfQI7HPiGa5ZqRrQ_J0NB8NnYbf/s72-c/01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-6666495814262523727</id><published>2014-09-02T15:31:00.000+08:00</published><updated>2014-09-02T15:36:31.338+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="putty"/><title type='text'>How to automatically log console output with putty?</title><content type='html'>You can set up like this:&lt;br /&gt;
1. start putty.exe&lt;br /&gt;
2. Go to Session -&amp;gt; Logging&lt;br /&gt;
3. Select &quot;Printable output&quot;&lt;br /&gt;
4. Choose the folder, where you want the log file to be placed&lt;br /&gt;
5. Append a file name like &amp;H_&amp;Y&amp;M&amp;D_&amp;T.log (&amp;H: host, &amp;Y: year, &amp;M: month, &amp;D: day, &amp;T: time)&lt;br /&gt;
6. Save the profile as default setting (Session -&amp;gt; Default Setting -&amp;gt; Save)&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqzxUzztuDlV1JwyyFpJa0Gp2HauHx-mxY-5y0KX0GI3UMg-aasJuHw9TQLM7nz9g6Cz8Fi6qMvtAIszdbN8ApE5u7N8t0HXs91FR6hyphenhyphenPnCn-YBDwZ9vvTPijad_D-a83X-wo-XBxsz0bQ/s1600/putty01.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqzxUzztuDlV1JwyyFpJa0Gp2HauHx-mxY-5y0KX0GI3UMg-aasJuHw9TQLM7nz9g6Cz8Fi6qMvtAIszdbN8ApE5u7N8t0HXs91FR6hyphenhyphenPnCn-YBDwZ9vvTPijad_D-a83X-wo-XBxsz0bQ/s400/putty01.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLMd9L16asF4Um1p44pYa6lpGuyIQFr7320QiBly98cz1xv80SCO0dkwN-cgf5QvaG_Reb_0nAsuTHJW8dumF8K5DF9xEAhTxk2lZ0ITCHVa7xG4bLTkJSl7i7bH8i5QTxo5vCJqaSw0ux/s1600/putty02.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLMd9L16asF4Um1p44pYa6lpGuyIQFr7320QiBly98cz1xv80SCO0dkwN-cgf5QvaG_Reb_0nAsuTHJW8dumF8K5DF9xEAhTxk2lZ0ITCHVa7xG4bLTkJSl7i7bH8i5QTxo5vCJqaSw0ux/s400/putty02.png&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/6666495814262523727/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/how-to-automatically-log-console-output.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/6666495814262523727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/6666495814262523727'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/how-to-automatically-log-console-output.html' title='How to automatically log console output with putty?'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqzxUzztuDlV1JwyyFpJa0Gp2HauHx-mxY-5y0KX0GI3UMg-aasJuHw9TQLM7nz9g6Cz8Fi6qMvtAIszdbN8ApE5u7N8t0HXs91FR6hyphenhyphenPnCn-YBDwZ9vvTPijad_D-a83X-wo-XBxsz0bQ/s72-c/putty01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-1585920095406050128</id><published>2014-09-02T15:19:00.000+08:00</published><updated>2014-09-02T15:19:49.762+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="putty"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Scripting Host"/><title type='text'>How to automatically login Putty with password?</title><content type='html'>使用版本: Putty.exe version 0.63&lt;br /&gt;
測試成功的指令為:&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;putty.exe -ssh host -l user -pw password
&lt;/pre&gt;NOTE:如果沒使用ssh，直接把-ssh拿掉就行了。&lt;br /&gt;
&lt;br /&gt;
寫成windows bat file:&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;start putty.exe -ssh host -l user -pw password
&lt;/pre&gt;NOTE: 沒加入 start ，會開啟一個 DOS 視窗，一個 PUTTY 視窗。</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/1585920095406050128/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/how-to-automatically-login-putty-with.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/1585920095406050128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/1585920095406050128'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/09/how-to-automatically-login-putty-with.html' title='How to automatically login Putty with password?'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-7402046539846257316</id><published>2014-08-29T12:03:00.000+08:00</published><updated>2014-08-29T16:05:50.363+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>[blogger]利用 Google Code Prettify 顯示程式碼</title><content type='html'>另一個在網頁顯示程式碼的方式，透過 Google Code Prettify ，程式碼顯示變成簡單又美觀。&lt;br/&gt;
&lt;br/&gt;
主要參考官網的 &lt;a href=&quot;https://code.google.com/p/google-code-prettify/wiki/GettingStarted&quot; target=&quot;_blank&quot;&gt; Getting Started &lt;/a&gt;這篇文章，只要載入必要的 CSS 和 javascript ，就會自動尋找 &amp;lt;pre&amp;gt;, &amp;lt;code&amp;gt;, &amp;ltxmp&amp;gt; ，處理美化程式碼。&lt;br/&gt;
&lt;br/&gt;
Blogger 透過[版面配置]/[新增小工具]/[Html/JavaScript]，加入底下程式碼。&lt;br/&gt;
&lt;div class=&quot;codeblock&quot;&gt;&amp;lt;script src=&quot;https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;&lt;br/&gt;
還可以指定參數加入 skin 或 lang (skin=sunburst&amp;lang=js)，支援的外觀可以在 &lt;a href=&quot;http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html&quot; target=&quot;_blank&quot;&gt; Gallery of themes for code prettify &lt;/a&gt;找到。&lt;br/&gt;
&lt;br/&gt;
&lt;font color=&quot;red&quot;&gt;NOTE：&lt;/font&gt;在 script 標籤中指定語言會套用到所有的網頁，因此 Google Code Prettify 也支援利用 class 屬性 lang-* 的方式，來指明程式語言。&lt;br/&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
&amp;lt;pre class=&quot;prettyprint lang-java&quot;&amp;gt;
public class HelloWorld {

    public static void main (String[] args) {
        System.out.println(&quot;Hello, world!&quot;);
    }
}
&amp;lt;pre&amp;gt;
&lt;/pre&gt;&lt;br/&gt;
或採用 html5 ，在 code 標籤以 language-* 的 class 屬性，指明程式語言。&lt;br/&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
&amp;lt;pre class=&quot;prettyprint&quot;&amp;gt;&amp;lt;code class=&quot;language-java&quot;&amp;gt;
public class HelloWorld {

    public static void main (String[] args) {
        System.out.println(&quot;Hello, world!&quot;);
    }
}
&amp;lt;/code&amp;gt;&amp;lt;pre&amp;gt;
&lt;/pre&gt;&lt;br/&gt;
如要顯示行號，要在 class 加上 linenums:no ，no表示要從第幾行開始，可不指定。
&lt;pre class=&quot;codeblock&quot;&gt;
&amp;lt;pre class=&quot;prettyprint linenums:168&quot;&amp;gt;
&lt;/pre&gt;&lt;br/&gt;
和 CSS BLOCK 搭配&lt;br/&gt;
&lt;pre class=&quot;codeblock prettyprint lang-java&quot;&gt;
public class HelloWorld {

    public static void main (String[] args) {
        System.out.println(&quot;Hello, world!&quot;);
    }
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/7402046539846257316/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/08/google-code-prettify.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/7402046539846257316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/7402046539846257316'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/08/google-code-prettify.html' title='[blogger]利用 Google Code Prettify 顯示程式碼'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-8172968847268521651</id><published>2014-08-29T11:24:00.000+08:00</published><updated>2014-08-29T16:04:56.460+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>[Blogger]在網頁用 CSS BLOCK 來顯示程式碼</title><content type='html'>以前在 blogger 利用其修改範本的功能，針對顯示程式碼的部分，做了一些改進，後來都是顯示的蠻好的，不知道何時開始，改變的設定似乎無效了，造成顯示都會跑掉，只好搜尋有無新的改進方式，來改善這問題。&lt;br/&gt;
&lt;br/&gt;
底下是新找到的方式，紀錄一下，免得忘記了。&lt;br/&gt;
1. 利用「新增小工具」的功能，選擇 HTML/JavaScript ，然後插入底下程式碼，就可以避免直接修改 HTML 範本&lt;br/&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
&amp;lt;style&amp;gt;
.post .mycode {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 10pt;
overflow:auto;
background: #f0f0f0 url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAASwCAYAAAAt7rCDAAAABHNCSVQICAgIfAhkiAAAAQJJREFUeJzt0kEKhDAMBdA4zFmbM+W0upqFOhXrDILwsimFR5pfMrXW5jhZr7PwRlxVX8//jNHrGhExjXzdu9c5IiIz+7iqVmB7Hwp4OMa2nhhwN/PRGEMBh3Zjt6KfpzPztxW9MSAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzB8HS+J9kUTvzEDMwAAAABJRU5ErkJggg==) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:800px;
line-height: 1.2em;
}
&amp;lt;/style&amp;gt;
&lt;/pre&gt;&lt;br/&gt;
其中的 mycode 就是class name，用來搭配pre或div使用。&lt;br/&gt;
如下面這段程式&lt;br/&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
&amp;lt;pre class=&#39;mycode&#39;&amp;gt;
public class HelloWorld {

    public static void main (String[] args) {
        System.out.println(&quot;Hello, world!&quot;);
    }
}
&amp;lt;/pre&amp;gt;
&lt;/pre&gt;&lt;br/&gt;
顯示的效果為:&lt;br/&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
public class HelloWorld {

    public static void main (String[] args) {
        System.out.println(&quot;Hello, world!&quot;);
    }
}
&lt;/pre&gt;
&lt;br/&gt;
&lt;font color=&quot;red&quot;&gt;NOTE:&lt;/font&gt;程式碼中有 &amp;lt; 或 &amp;gt; 會影響到網頁顯示，可透過 &lt;a href=&quot;http://www.opinionatedgeek.com/DotNet/Tools/HTMLEncode/Encode.aspx&quot; target=&quot;_blank&quot;&gt;HTMLEncode&lt;/a&gt; 這網站來進行轉換。</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/8172968847268521651/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/08/css-block.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/8172968847268521651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/8172968847268521651'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/08/css-block.html' title='[Blogger]在網頁用 CSS BLOCK 來顯示程式碼'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-2787959365662130661</id><published>2014-08-19T17:12:00.000+08:00</published><updated>2014-08-29T12:44:17.959+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><title type='text'>[Html]How to display alt text for an image in chrome</title><content type='html'>今天在寫文件和html簡單頁面時，發現在chrome的圖片有用alt來顯示訊息，卻顯示不出來，拜讀估狗大神，發現似乎是 &lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=5566&quot;&gt;webkit bug&lt;/a&gt; ，底下是我試出的解決方式，須新增3個attribute: height, width, title，這樣就可以正確顯示訊息。&lt;br/&gt;
&lt;br/&gt;
原本:&lt;br/&gt;
&amp;lt;img src=&quot;xxx.png&quot; alt=&quot;test&quot; /&amp;gt;&lt;br/&gt;
&lt;br/&gt;
修改後:&lt;br/&gt;
&amp;lt;img height=&quot;90&quot; width=&quot;90&quot; src=&quot;xxx.png&quot; alt=&quot;test&quot; title=&quot;test&quot; /&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/2787959365662130661/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/08/htmlhow-to-display-alt-text-for-image.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2787959365662130661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2787959365662130661'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/08/htmlhow-to-display-alt-text-for-image.html' title='[Html]How to display alt text for an image in chrome'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-686775873723611568</id><published>2014-07-06T01:57:00.001+08:00</published><updated>2014-08-29T12:43:05.375+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="繩藝"/><title type='text'>五色線金剛結手環</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkuxBWN2rc4PBzjYWTyNl-b0tCiqOeNUg21Nc3qJ6-OU_zpAm4PN7esUJOYmTlrRpQFYSsn3L3mzsKmizoMzSMTKeX4DxcYFvZeNE8C5P5AH2Q92Fx_U8C8BNGF-Ne-MyFaNSnDUhp7nL-/s1600/IMG_5577.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkuxBWN2rc4PBzjYWTyNl-b0tCiqOeNUg21Nc3qJ6-OU_zpAm4PN7esUJOYmTlrRpQFYSsn3L3mzsKmizoMzSMTKeX4DxcYFvZeNE8C5P5AH2Q92Fx_U8C8BNGF-Ne-MyFaNSnDUhp7nL-/s400/IMG_5577.JPG&quot; /&gt;&lt;/a&gt;&lt;br/&gt;
&lt;span class=&quot;fullpost&quot;&gt;
好久沒編了，還好沒忘記。&lt;br/&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIXbb2-Xt7ABitEgisCxF29qYRm4uSLKj9dCJW_CguLSzEiOIcFQXr2SpPXaxCm77qAdF5eTqZt6Jc2OyMs4h2gGI8gB-YkzeEebjbQtBOCmpf3COyOPRwoWQo6wREoJhtb4XEBaxk6zhN/s1600/IMG_5576.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIXbb2-Xt7ABitEgisCxF29qYRm4uSLKj9dCJW_CguLSzEiOIcFQXr2SpPXaxCm77qAdF5eTqZt6Jc2OyMs4h2gGI8gB-YkzeEebjbQtBOCmpf3COyOPRwoWQo6wREoJhtb4XEBaxk6zhN/s400/IMG_5576.JPG&quot; /&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqWAAK9gG_CHNEs-f2Ll4Bvw77eXlzQVSJdjcMF-6EpALcWJp_J72ZbNM_hIYRXKkn59ZLq7kJZEr9CjT1jiH2VdIbddIn2pXwnxXy8RiB9RlYIZhGgNmgcKKWKSqMR7_x5Qra9ruYmv5y/s1600/IMG_5578.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqWAAK9gG_CHNEs-f2Ll4Bvw77eXlzQVSJdjcMF-6EpALcWJp_J72ZbNM_hIYRXKkn59ZLq7kJZEr9CjT1jiH2VdIbddIn2pXwnxXy8RiB9RlYIZhGgNmgcKKWKSqMR7_x5Qra9ruYmv5y/s400/IMG_5578.JPG&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/686775873723611568/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/07/blog-post_6.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/686775873723611568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/686775873723611568'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/07/blog-post_6.html' title='五色線金剛結手環'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkuxBWN2rc4PBzjYWTyNl-b0tCiqOeNUg21Nc3qJ6-OU_zpAm4PN7esUJOYmTlrRpQFYSsn3L3mzsKmizoMzSMTKeX4DxcYFvZeNE8C5P5AH2Q92Fx_U8C8BNGF-Ne-MyFaNSnDUhp7nL-/s72-c/IMG_5577.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-568841795940675251</id><published>2014-07-06T01:39:00.000+08:00</published><updated>2014-07-31T17:23:12.077+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PaperCraft"/><title type='text'>[紙模]歐亞水獺</title><content type='html'>I&#39;m from Kinmen. 歐亞水獺保護棲地大作戰。&lt;br/&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1Uy_iapi6IOknRb4MZeLFwyxNGN2BVinbnWzeWjESdreDsrMVoILmx_ddL2iNt9FA5J38skc275amuz-ucx6t8iDa5c3cMasMD84bvYCUHXGZSFq7WqskxfEouT5z20GwSvX7-0RO-pT4/s1600/IMG_5581.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1Uy_iapi6IOknRb4MZeLFwyxNGN2BVinbnWzeWjESdreDsrMVoILmx_ddL2iNt9FA5J38skc275amuz-ucx6t8iDa5c3cMasMD84bvYCUHXGZSFq7WqskxfEouT5z20GwSvX7-0RO-pT4/s400/IMG_5581.JPG&quot; /&gt;&lt;/a&gt;&lt;br/&gt;
&lt;span class=&quot;fullpost&quot;&gt;
看到這紙模就馬上下載來做做看。有幾個小缺點，頭部那樣的黏貼邊不是很好黏，身體的底部設計過小，容易皺皺彎曲，且會變成頭重腳輕，很容易倒，所以我把尾吧稍微捲一下好站穩。&lt;br/&gt;
整體設計的蠻可愛的。&lt;br/&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhantv6p4YpYptGIJ-LikYDADSwmfNRVM3AbeEK7iHj_gVX9vTl0K99rbPrmStbZIPceXLrS_eDTKk45xx-_TnwoYILucX734KBGOM1aMblEJrdkwGMCI0KZvqQ2xs60LXBW0wG-wg1hiNJ/s1600/IMG_5582.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhantv6p4YpYptGIJ-LikYDADSwmfNRVM3AbeEK7iHj_gVX9vTl0K99rbPrmStbZIPceXLrS_eDTKk45xx-_TnwoYILucX734KBGOM1aMblEJrdkwGMCI0KZvqQ2xs60LXBW0wG-wg1hiNJ/s400/IMG_5582.JPG&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFV4jZMbrsdhqSvHpt41csdC3ZgbPlsOqCKNHqRvWq9BRq6JVgleefH5Kl03GjIi2Qh1FDAGKdPQWkftcA0FwePDhwYssH8NITxd80cCl8Ba2-D-hyFwUMpL2pZV6-gWs2jPKreWaGQuSQ/s1600/IMG_5583.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFV4jZMbrsdhqSvHpt41csdC3ZgbPlsOqCKNHqRvWq9BRq6JVgleefH5Kl03GjIi2Qh1FDAGKdPQWkftcA0FwePDhwYssH8NITxd80cCl8Ba2-D-hyFwUMpL2pZV6-gWs2jPKreWaGQuSQ/s400/IMG_5583.JPG&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWv3lPIiuQa_wYJeaI34T7vyRcNAQwYlUGu-0C9AMEa4g-YAfG5B1E9vJWe5mYHen_ry10-74NL2fOG-ebULhx4KnwWGgYXGspvSuPyTaCSY9NuunhcBpUb-33QbtkCwF2VXC5wLaeNep7/s1600/IMG_5586.JPG&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWv3lPIiuQa_wYJeaI34T7vyRcNAQwYlUGu-0C9AMEa4g-YAfG5B1E9vJWe5mYHen_ry10-74NL2fOG-ebULhx4KnwWGgYXGspvSuPyTaCSY9NuunhcBpUb-33QbtkCwF2VXC5wLaeNep7/s400/IMG_5586.JPG&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/568841795940675251/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/07/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/568841795940675251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/568841795940675251'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/07/blog-post.html' title='[紙模]歐亞水獺'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1Uy_iapi6IOknRb4MZeLFwyxNGN2BVinbnWzeWjESdreDsrMVoILmx_ddL2iNt9FA5J38skc275amuz-ucx6t8iDa5c3cMasMD84bvYCUHXGZSFq7WqskxfEouT5z20GwSvX7-0RO-pT4/s72-c/IMG_5581.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-2336921396097461281</id><published>2014-04-29T13:26:00.001+08:00</published><updated>2014-04-29T13:42:40.834+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="notepad++"/><category scheme="http://www.blogger.com/atom/ns#" term="雜記"/><title type='text'>使用 NotePad++ 免安裝版本，並整合滑鼠右鍵選單</title><content type='html'>相信很多人都有這困擾， Windows 自帶的記事本開些大檔案很慢很容易卡住，用 Ultraedit 又是一筆費用，於是就上網找免費又好用的替代軟體，本來在 PSPAD 和 Notepad++ 兩者中抉擇，最後選用了 Notepad++ 。&lt;br/&gt;
&lt;br/&gt;
Notepad++ 此時最新的版本為 6.6.5 ，可至&lt;a href=&quot;http://notepad-plus-plus.org/news/notepad-6.5.5-release.html&quot; target=&quot;_blank&quot;&gt;官網&lt;/a&gt; 免費下載使用，我選擇的是 Notepad++ 7z package : Don&#39;t want to use installer? 7z format. 免安裝版本，解開即可使用，只是有個小缺點，用安裝的版本，預設有整合滑鼠右鍵選單(即點檔案按右鍵可點選&quot;使用 Notepad++ 開啟&quot;來打開檔案)，免安裝的版本就要自己增加這功能。&lt;br/&gt;
&lt;br/&gt;
在&lt;a href=&quot;http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Explorer_Context_Menu&quot; target=&quot;_blank&quot;&gt;官網討論區&lt;/a&gt;有提供相關說明及指令，底下是簡略的步驟:&lt;br/&gt;
1. 首先要下載 NppShell.dll(64位元用 NppShell64.dll)，可由&lt;a href=&quot; http://notepad-plus.sourceforge.net/commun/misc/NppShell.New.zip&quot;&gt;此處下載&lt;/a&gt;。下載後，將檔案解開放置 Notepad++ 的目錄內(壓縮檔裡面有兩個檔案請放置到 Notepad++.exe 同一目錄內)。&lt;br/&gt;
2. 執行指令 regsvr32 /s /i NppShell.dll (OS如果是64位元請使用 NppShell64.dll)後，會顯示如下面畫面&lt;br/&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh22yu3qXNtifytcaCGocbqJcl2pT0S3-zDx_byh8PLhLLUqMj0njNypCJldX-1Nw-GmHMX3RzSXxVQnimDl9mEpcGQC4v-X307gEk70le6rkRCNTbJutFy6wq9OKm3ebmhwvhVkvZtUkVL/s1600/notepad01.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh22yu3qXNtifytcaCGocbqJcl2pT0S3-zDx_byh8PLhLLUqMj0njNypCJldX-1Nw-GmHMX3RzSXxVQnimDl9mEpcGQC4v-X307gEk70le6rkRCNTbJutFy6wq9OKm3ebmhwvhVkvZtUkVL/s400/notepad01.png&quot; /&gt;&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
請確認勾選[Add context menu item]，也可以在[Menu text]輸入自己喜歡的說明，最後按[OK]即可完成設定。&lt;br/&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi611a0xTPOWui4sqze0AlyGDM5jadzbVFT0i1Kk5S13myAQcOxJHWTO8qA4Qe5KGJrVq6OwCIluaoTQkPc5G2NvDv13-bsVp-BSQDaXmenbs8mMEcTVZJ455XUTEgKzGxNWrFqhXqGxC8G/s1600/notepad02.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi611a0xTPOWui4sqze0AlyGDM5jadzbVFT0i1Kk5S13myAQcOxJHWTO8qA4Qe5KGJrVq6OwCIluaoTQkPc5G2NvDv13-bsVp-BSQDaXmenbs8mMEcTVZJ455XUTEgKzGxNWrFqhXqGxC8G/s400/notepad02.png&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/2336921396097461281/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/04/notepad.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2336921396097461281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2336921396097461281'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/04/notepad.html' title='使用 NotePad++ 免安裝版本，並整合滑鼠右鍵選單'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh22yu3qXNtifytcaCGocbqJcl2pT0S3-zDx_byh8PLhLLUqMj0njNypCJldX-1Nw-GmHMX3RzSXxVQnimDl9mEpcGQC4v-X307gEk70le6rkRCNTbJutFy6wq9OKm3ebmhwvhVkvZtUkVL/s72-c/notepad01.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8107596892375994503.post-2631944531479192358</id><published>2014-04-03T10:45:00.001+08:00</published><updated>2014-10-27T23:12:50.004+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="程式開發"/><category scheme="http://www.blogger.com/atom/ns#" term="資料庫"/><title type='text'>Characterset problem when inserting into mysql database from java</title><content type='html'>哈，又是編碼問題。本來用 WebSphere 和 DB2 的環境，資料新增至資料庫中文都沒問題，怎麼一換到 tomcat 和 MySQL 這組合就中文新增到資料庫時就變成了問號。&lt;br /&gt;
&lt;br /&gt;
最後試驗的結果，需在 connection string 加上 &lt;strong&gt;useUnicode=true&amp;characterEncoding=utf8&lt;/strong&gt; 這段設定，這樣中文新增到資料庫就會正常了，不會再是?字元。&lt;br /&gt;
&lt;br /&gt;
JDBC use like&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;String conString = &quot;jdbc:mysql://host/database?useUnicode=true&amp;characterEncoding=utf8&quot;;
&lt;/pre&gt;&lt;br /&gt;
DataSource resource url like&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;url=&quot;jdbc:mysql://host/database?useUnicode=true&amp;amp;amp;characterEncoding=utf8&quot;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mark-freefox.blogspot.com/feeds/2631944531479192358/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://mark-freefox.blogspot.com/2014/04/characterset-problem-when-inserting.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2631944531479192358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8107596892375994503/posts/default/2631944531479192358'/><link rel='alternate' type='text/html' href='http://mark-freefox.blogspot.com/2014/04/characterset-problem-when-inserting.html' title='Characterset problem when inserting into mysql database from java'/><author><name>Mark</name><uri>http://www.blogger.com/profile/15674077360515327653</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpr4ztmL6pgvrzsvwEnNoCPj4g-PU_Lk3YL0kP6iu0oxiGZoKc1-kdldjavLmYNBS4q63zO857yiNyTHzqmpJpRWXZ5XcZLTUYy_4qEvFtoqySswllHl34HQ_WpXxDdQ/s220/fox.jpg'/></author><thr:total>0</thr:total></entry></feed>