<?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-6669564109387951396</id><updated>2025-12-28T03:50:50.126+08:00</updated><category term="ASP.NET"/><category term="C#"/><category term="jQuery"/><category term="SQL Server"/><category term="CSS"/><category term="JavaScript"/><category term="HTML"/><category term="生活"/><category term="ExtJS"/><category term="遊戲"/><category term="ActionScript"/><category term="書上學來的"/><category term="食記"/><category term="Dragonvale"/><category term="jQueryPlugin"/><category term="Zend Framework"/><category term="好的文章"/><category term="心情分享"/><category term="jQuery UI"/><category term="勵志文章"/><category term="胡思亂想"/><category term="軟體工具"/><category term="UML"/><category term="iPad APP"/><category term="瞇瞇的趴趴造"/><category term="Entity Framework"/><category term="Travian"/><category term="政治亂談"/><category term="Linq"/><category term="MVC"/><category term="XSLT"/><category term="工作"/><category term="投資理財"/><category term="烹飪"/><category term="軟體工程"/><category term="Oracle"/><category term="QRCode"/><category term="VS2010"/><category term="學習相關"/><title type='text'>被遺忘的瞇瞇</title><subtitle type='html'>好的事情，我怕忘記，所以我記錄。&#xa;壞的事情，我要記取教訓，所以我記錄。&#xa;平凡的事情，會有深刻的體會。所以我記錄。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>216</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-5535622310064550541</id><published>2013-09-05T21:52:00.000+08:00</published><updated>2013-09-05T21:53:26.287+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>kiwiberry 迷你奇異果or奇異果梅</title><content type='html'> &lt;p class=&#39;bloggerplus_text_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;內容物是奇異果，外皮是棗子的新奇水果團購9顆116元，真不便宜&lt;/p&gt;&lt;p class=&#39;bloggerplus_image_section&#39;&gt;&lt;div class=&#39;bloggerplus_image_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;&lt;img src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMuP7-FKFM8OmWH-NzjLQC_muRRW7-nDwFauhlaDhuUZeU8NAWQ1FZJ4f6GpokKaCbAnM3DFzuwWMg_siGjWLlqAR0hSfH0oeb6-UN5Y3MFwqBN2WKzEZ27_2MwzBawu0sTEfvSQhcM9BY/&#39;&gt;&lt;/div&gt;&lt;/p&gt;&lt;p class=&#39;bloggerplus_image_section&#39;&gt;&lt;div class=&#39;bloggerplus_image_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;&lt;img src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghAOHEHsaIBf1rCAr-dn8BbCfdFEeIbGBUa76kLvKB-NVvCYyZMdGTbEMN1t50ISTHnTh8QOvmmWGC0J8XufdqM_56WcHG8KZcHaiNuNyQKgiUiW5EJxRQEdmziUiWXBRjWRzKWTyGhabg/&#39;&gt;&lt;/div&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/5535622310064550541/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/5535622310064550541?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/5535622310064550541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/5535622310064550541'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2013/09/kiwiberry-or.html' title='kiwiberry 迷你奇異果or奇異果梅'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMuP7-FKFM8OmWH-NzjLQC_muRRW7-nDwFauhlaDhuUZeU8NAWQ1FZJ4f6GpokKaCbAnM3DFzuwWMg_siGjWLlqAR0hSfH0oeb6-UN5Y3MFwqBN2WKzEZ27_2MwzBawu0sTEfvSQhcM9BY/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-1488950026667982936</id><published>2013-03-26T14:08:00.001+08:00</published><updated>2013-03-26T14:08:54.360+08:00</updated><title type='text'>我搬家囉，http://sheauren.idv.tw/wordpress/</title><content type='html'> &lt;p class=&#39;bloggerplus_text_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;資料會搬過去，這邊就收工囉&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/1488950026667982936/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/1488950026667982936?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1488950026667982936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1488950026667982936'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2013/03/httpsheaurenidvtwwordpress.html' title='我搬家囉，http://sheauren.idv.tw/wordpress/'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-1399395276462314354</id><published>2013-02-27T11:43:00.001+08:00</published><updated>2013-02-27T11:43:49.832+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>kiwiberry 迷你奇異果or奇異果梅</title><content type='html'> &lt;p class=&#39;bloggerplus_text_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;內容物是奇異果，外皮是棗子的新奇水果團購9顆116元，真不便宜&lt;/p&gt;&lt;p class=&#39;bloggerplus_image_section&#39;&gt;&lt;div class=&#39;bloggerplus_image_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;&lt;img src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMuP7-FKFM8OmWH-NzjLQC_muRRW7-nDwFauhlaDhuUZeU8NAWQ1FZJ4f6GpokKaCbAnM3DFzuwWMg_siGjWLlqAR0hSfH0oeb6-UN5Y3MFwqBN2WKzEZ27_2MwzBawu0sTEfvSQhcM9BY/&#39;&gt;&lt;/div&gt;&lt;/p&gt;&lt;p class=&#39;bloggerplus_image_section&#39;&gt;&lt;div class=&#39;bloggerplus_image_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;&lt;img src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghAOHEHsaIBf1rCAr-dn8BbCfdFEeIbGBUa76kLvKB-NVvCYyZMdGTbEMN1t50ISTHnTh8QOvmmWGC0J8XufdqM_56WcHG8KZcHaiNuNyQKgiUiW5EJxRQEdmziUiWXBRjWRzKWTyGhabg/&#39;&gt;&lt;/div&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/1399395276462314354/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/1399395276462314354?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1399395276462314354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1399395276462314354'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2013/02/kiwiberry-or.html' title='kiwiberry 迷你奇異果or奇異果梅'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMuP7-FKFM8OmWH-NzjLQC_muRRW7-nDwFauhlaDhuUZeU8NAWQ1FZJ4f6GpokKaCbAnM3DFzuwWMg_siGjWLlqAR0hSfH0oeb6-UN5Y3MFwqBN2WKzEZ27_2MwzBawu0sTEfvSQhcM9BY/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-6863888209827129628</id><published>2012-11-30T20:03:00.001+08:00</published><updated>2012-11-30T20:03:35.214+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>zf動態Layout</title><content type='html'>&lt;p&gt;&lt;strong&gt;bootstrap.php 新增pluginClass處理動態Layout&lt;/strong&gt;&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt; &lt;p&gt;&amp;lt;?php &lt;br&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Zend_Layout::startMvc( &lt;br&gt;&lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array( &lt;br&gt;&lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;layoutPath&#39; =&amp;gt; &#39;/application/views/layouts/scripts&#39;, &lt;br&gt;&lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;layout&#39; =&amp;gt; &#39;layout&#39;, &lt;br&gt;&lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;pluginClass&#39; =&amp;gt; &#39;GPMS_Util_Layout&#39; &lt;br&gt;&lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &lt;br&gt;&lt;/font&gt;&lt;font color=&quot;#ff0000&quot;&gt;); &lt;/font&gt; &lt;p&gt;class Bootstrap extends Zend_Application_Bootstrap_Bootstrap &lt;br&gt;{ &lt;br&gt;}&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;strong&gt;自訂動態Layout Class，預設導到portal.phtml，其他by module切割&lt;/strong&gt;&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;459&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;457&quot;&gt; &lt;p&gt;&amp;lt;?php &lt;br&gt;class GPMS_Util_Layout extends Zend_Layout_Controller_Plugin_Layout &lt;br&gt;{ &lt;br&gt;&amp;nbsp; public function preDispatch(Zend_Controller_Request_Abstract $request) &lt;br&gt;&amp;nbsp; { &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch ($request-&amp;gt;getModuleName()) { &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &#39;default&#39;: &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; $this-&amp;gt;_moduleChange(&#39;portal&#39;); &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br&gt;&amp;nbsp; } &lt;br&gt;&amp;nbsp; protected function _moduleChange($moduleName) { &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;getLayout()-&amp;gt;setLayout($moduleName); &lt;br&gt;&amp;nbsp; }&lt;br&gt;}&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/6863888209827129628/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/6863888209827129628?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/6863888209827129628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/6863888209827129628'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/zflayout.html' title='zf動態Layout'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-287642006021987345</id><published>2012-11-30T19:55:00.001+08:00</published><updated>2012-11-30T19:55:47.189+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>ZF套用library規則</title><content type='html'>&lt;p&gt;&lt;strong&gt;Naming Rule決定位置&lt;/strong&gt; &lt;p&gt;class &lt;font style=&quot;background-color: #ffff00&quot;&gt;Zend_Db_Table_Abstract&lt;/font&gt; 置放於：&lt;font style=&quot;background-color: #ffff00&quot;&gt;library\Zend\Db\Table\Abstract.php&lt;/font&gt; &lt;p&gt;&lt;strong&gt;Application.ini要適當調整來自動載入library&lt;/strong&gt;&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;498&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;496&quot;&gt; &lt;p&gt;[production]  &lt;p&gt;phpSettings.display_startup_errors = 0  &lt;p&gt;phpSettings.display_errors = 0  &lt;p&gt;includePaths.library = APPLICATION_PATH &quot;/../library&quot;  &lt;p&gt;bootstrap.path = APPLICATION_PATH &quot;/Bootstrap.php&quot;  &lt;p&gt;bootstrap.class = &quot;Bootstrap&quot;  &lt;p&gt;appnamespace = &quot;Application&quot;  &lt;p&gt;resources.frontController.controllerDirectory = APPLICATION_PATH &quot;/controllers&quot;  &lt;p&gt;resources.frontController.params.displayExceptions = 0  &lt;p&gt;resources.layout.layoutPath = APPLICATION_PATH &quot;/layouts/scripts/&quot;  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;autoloadernamespaces.util = &quot;Util_&quot; // 新增自動載入的Library Util&lt;/font&gt;  &lt;p&gt;[staging : production]&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;strong&gt;自訂Class測試，置放於Library/Util/SessionHelper.php：&lt;/strong&gt;&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt; &lt;p&gt;&amp;lt;?php  &lt;p&gt;class Util_SessionHelper // 在Library的Util目錄下建立SessionHelper.php {  &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function getLongonId(){  &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &quot;sheauren&quot;;  &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;p&gt;}  &lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;&lt;strong&gt;使用方式：&lt;/strong&gt;&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt; &lt;p&gt;&amp;lt;?php  &lt;p&gt;$SessionHelper=new Util_SessionHelper();  &lt;p&gt;echo $SessionHelper-&amp;gt;getLongonId();  &lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/287642006021987345/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/287642006021987345?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/287642006021987345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/287642006021987345'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/zflibrary.html' title='ZF套用library規則'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-2158815265659732265</id><published>2012-11-30T19:49:00.001+08:00</published><updated>2012-11-30T19:49:32.019+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>ZF目錄說明</title><content type='html'>&lt;ol&gt; &lt;li&gt;quickstart (專案名稱產生的目錄) &lt;li&gt;|-- application (App位置) &lt;li&gt;|&amp;nbsp;&amp;nbsp; |-- Bootstrap.php &lt;li&gt;|&amp;nbsp;&amp;nbsp; |-- configs (設定檔) &lt;li&gt;|&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; `-- application.ini &lt;li&gt;|&amp;nbsp;&amp;nbsp; |-- controllers &lt;li&gt;|&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; |-- ErrorController.php &lt;li&gt;|&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; `-- IndexController.php &lt;li&gt;|&amp;nbsp;&amp;nbsp; |-- models (模組化分類，底下會有自己的Controllers/Modules/Views) &lt;li&gt;|&amp;nbsp;&amp;nbsp; `-- views &lt;li&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-- helpers &lt;li&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; `-- scripts &lt;li&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-- error &lt;li&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; `-- error.phtml &lt;li&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; `-- index &lt;li&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; `-- index.phtml &lt;li&gt;|-- library (第三方函式庫、自製函式庫，預設zend library也是放這) &lt;li&gt;|-- public (公開資料位置，網站Root) &lt;li&gt;|&amp;nbsp;&amp;nbsp; |-- .htaccess &lt;li&gt;|&amp;nbsp;&amp;nbsp; `-- index.php &lt;li&gt;`-- tests (測試資料,PHPUnit) &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-- application &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; `-- bootstrap.php &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-- library &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; `-- bootstrap.php &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `-- phpunit.xml&lt;/li&gt;&lt;/ol&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/2158815265659732265/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/2158815265659732265?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2158815265659732265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2158815265659732265'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/zf.html' title='ZF目錄說明'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-9194928663358084412</id><published>2012-11-30T19:48:00.001+08:00</published><updated>2012-11-30T19:48:15.501+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>zf 常用command整理</title><content type='html'>&lt;p&gt;&lt;strong&gt;建立專案：&lt;/strong&gt; &lt;p&gt;zf create project projectName &lt;p&gt;執行後會產生整個專案所需的目錄 &lt;p&gt;&lt;strong&gt;啟用Layout功能(套用樣板)：&lt;/strong&gt; &lt;p&gt;zf enable layout &lt;p&gt;產生Application/Layouts目錄，並且產生基本樣板檔案layouts/scripts/layout.phtml &lt;p&gt;&lt;strong&gt;新增Module：&lt;/strong&gt; &lt;p&gt;zf module moduleName &lt;p&gt;執行後會於Application下產生該Module的目錄 &lt;p&gt;&lt;strong&gt;新增Module&#39;s Controller：&lt;/strong&gt; &lt;p&gt;zf create controller controlName moduleName &lt;p&gt;執行後會於該Module下產生該Controller檔案 &lt;p&gt;&lt;strong&gt;新增Control&#39;s View：&lt;/strong&gt; &lt;p&gt;zf create view viewName controlName moduleName &lt;p&gt;執行後會於該Controller下對映之View目錄產生該View檔案 &lt;p&gt;&lt;strong&gt;新增Control&#39;s Action：&lt;/strong&gt; &lt;p&gt;zf create action actionName controlName moduleName &lt;p&gt;執行後會於該Controller下產生該Action &lt;p&gt;&lt;strong&gt;新增Model：&lt;/strong&gt; &lt;p&gt;zf create model modelName moduleName &lt;p&gt;執行後於該Module目錄下產生該Model檔案 &lt;p&gt;&lt;strong&gt;資料庫設定：&lt;/strong&gt; &lt;p&gt;zf configure db-adapter &quot;adapter=PDO_MYSQL&amp;amp;host=localhost&amp;amp;username=root&amp;amp;password=pwd&amp;amp;dbname=projectName&amp;amp;charset=utf8&quot; development; &lt;p&gt;於系統設定檔設定此資料庫連線 &lt;p&gt;&lt;strong&gt;新增DbTable：&lt;/strong&gt; &lt;p&gt;zf create db-table modelName tableName &lt;p&gt;於Model中新增此tableName的class  &lt;p&gt;zf create db-table modelName tableName force-overwrite &lt;p&gt;強制覆蓋方式建立 &lt;p&gt;&lt;strong&gt;產生整個DB的DbTable語法如下：&lt;/strong&gt; &lt;p&gt;zf create db-table.from-database &lt;p&gt;如果發生錯誤： &lt;p&gt;Fatal error: Cannot redeclare class Zend_Loader in C:\Program Files\Zend\Apache2 &lt;p&gt;\htdocs\AMIS\library\Zend\Loader.php on line 31 &lt;p&gt;請將application.ini的includePaths.library = APPLICATION_PATH &quot;/../library&quot;用分號註解掉就會正常&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/9194928663358084412/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/9194928663358084412?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/9194928663358084412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/9194928663358084412'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/zf-command.html' title='zf 常用command整理'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-4055064390449054748</id><published>2012-11-30T19:46:00.001+08:00</published><updated>2012-11-30T19:46:16.347+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>將zf project放於Directory下，不另外設定VirtualHost</title><content type='html'>&lt;ul&gt; &lt;li&gt;Project置放於Apache htdocs下&lt;br&gt;&lt;/li&gt; &lt;li&gt;於Project下新增檔案：.htaccess&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;該檔案結構如下：&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt; &lt;p&gt;RewriteEngine on  &lt;p&gt;RewriteRule (.*) ./public/$1&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;ul&gt; &lt;li&gt;http.conf的Directory改成下面設定：&lt;/li&gt;&lt;/ul&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt; &lt;p&gt;&amp;lt;Directory &quot;C:\Program Files\Zend\Apache2/htdocs&quot;&amp;gt;  &lt;p&gt;Options Indexes FollowSymLinks  &lt;p&gt;AllowOverride &lt;font color=&quot;#ff0000&quot;&gt;All&lt;/font&gt;  &lt;p&gt;Order allow,deny  &lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;Allow&lt;/font&gt; from all  &lt;p&gt;&amp;lt;/Directory&amp;gt;&lt;br&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;ul&gt; &lt;li&gt;重新啟動Apache&lt;/li&gt;&lt;/ul&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/4055064390449054748/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/4055064390449054748?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/4055064390449054748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/4055064390449054748'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/zf-projectdirectoryvirtualhost.html' title='將zf project放於Directory下，不另外設定VirtualHost'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-2920733058975714550</id><published>2012-11-30T19:42:00.001+08:00</published><updated>2012-11-30T19:42:55.250+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>設定VirtualHost給zf project</title><content type='html'>&lt;ul&gt; &lt;li&gt;於httpd.conf定義新的VirtualHost - 直接當Root時&lt;/li&gt; &lt;p&gt;&amp;lt;VirtualHost *:81&amp;gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerName localhost &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentRoot &quot;C:\Program Files\Zend\Apache2\htdocs\ProjectName\public&quot; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetEnv APPLICATION_ENV &quot;development&quot;  &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory &quot;C:\Program Files\Zend\Apache2\htdocs\ProjectName\public&quot;&amp;gt; &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DirectoryIndex index.php &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride All &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all &lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt; &lt;p&gt;&amp;lt;/VirtualHost&amp;gt; &lt;p&gt;&amp;nbsp; &lt;li&gt;定義新的Port記得需要額外Listen該Port&lt;/li&gt; &lt;p&gt;Listen 81 &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/ul&gt; &lt;ul&gt; &lt;li&gt;設定好記得重新啟動apache&lt;/li&gt;&lt;/ul&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/2920733058975714550/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/2920733058975714550?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2920733058975714550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2920733058975714550'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/virtualhostzf-project.html' title='設定VirtualHost給zf project'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-3065324492806093595</id><published>2012-11-30T18:01:00.001+08:00</published><updated>2012-11-30T19:39:27.663+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Zend Framework"/><title type='text'>XP安裝ZendServer-CE</title><content type='html'>&lt;ol&gt; &lt;p&gt;最簡單安裝方式，抓CE Server(社群版)，如：ZendServer-CE-php-5.3.14-5.6.0-SP2-Windows_x86.exe，下載該執行執行執行就好，不過個人推薦它可以選擇裝在IIS上面或Apahce上面，建議用Apache，畢竟通通用Opensource的東西比較好整合，M$的還是自家整合比較單純。  &lt;li&gt;XP現在都有的安裝警告  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image001&quot; border=&quot;0&quot; alt=&quot;clip_image001&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg64KYBjVEoZNNh_KXtl2ZffNRIuC8lBAHF5QdBQNsiVWL0XTHGBTRexmfA16DTfCzgWUtXY2ZYO5ThwyHgKi_aSDiBzXqxvNMp5p-0_jORerLaconlZMFooodpomc9mh6tJ8T6cBgMsWk/?imgmax=800&quot; width=&quot;504&quot; height=&quot;362&quot;&gt;&lt;/p&gt; &lt;li&gt;Installation讀取畫面  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image002&quot; border=&quot;0&quot; alt=&quot;clip_image002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZLhF89vtUybg0S0x8sF6n2FRqLSMn5KLb7lpAeRxy3mYrQpFvRtLZZA8_v0GQ3sa9FU3F0JWn3ZHZUlvRCR_qDExbbVMCH7tdN1YVxC6EOLxwRO9UD1IZtvcPV7PV559nSv0gEG207uo/?imgmax=800&quot; width=&quot;504&quot; height=&quot;295&quot;&gt;&lt;/p&gt; &lt;li&gt;這次安裝版本是Zend Server Community Edition 5.6  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image003&quot; border=&quot;0&quot; alt=&quot;clip_image003&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlzEx-_Y0nevO8th-KqukjJohGbSWxZKKT9IVFxZHhQb_XZKYCe3RBdygVcGfmUeUnjB5PRYvy6En8_Bx6bDsO-kBqFJnlZ4cJVbfgCrnpXu7oN0UKo15da9lceMWMvUOJc8ucfcDoJg0/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;License Agreement  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image004&quot; border=&quot;0&quot; alt=&quot;clip_image004&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPB1A-UtYOCI2_lgx1NIZqbCgBdWfP7q9NrgLTJKRQxG0SJhlnQez6gW0s1-GardiFAHVltmYRzeZNYvmSazfJ9_Aqu29ztj8ZAJ3P0xWirJ-hdVKLy7NfmwToRRho1kFR3DLaUASCIOU/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;安裝類型，我習慣用Custom看一下大致裝了什麼  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image005&quot; border=&quot;0&quot; alt=&quot;clip_image005&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxH-86YdSXxqarsJVESff1x-l9q41dtsWmC9JcLr4-6ThyxdRAuCSIwcpW-bYbaKrPO-KZsYIzg5uR-kWmwrePoyJJOl4fhW3ZDcbomvdviUETs38gKafk-udjub1S54L4E_jhTABBI9M/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;第一次可以不調整安裝內容，如果需要加裝phpMyAdmin/MySQL Server也可以勾起來，不過我個人建議沒友直接聯繫的情況，分開裝比較單純  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image006&quot; border=&quot;0&quot; alt=&quot;clip_image006&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfVJADPawjpXSgwQDVSGlJojaX3UEM_vjK_K8njIXJuJB_AohpVD7jvgwavXwt82aOQZY-D-9LArDK1lV_RHlYXT6VdDYUuKDKlmAfpG2qMvq43ZgwwYmrzW-Li-XYG6h1mO0Fpoc9XqQ/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;Zend Server安裝之Web Server挑選，這邊我選擇Install an Apache 2.2.22 Web Server，它同時幫我們裝Apache Httpd Server  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image007&quot; border=&quot;0&quot; alt=&quot;clip_image007&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEOhf9N0j9qz5JpxR8CL4wyOidktX0pVRRgjgE3jTDdrMeh-aeG5WTwZLEMEBFijzVunYO2S37F57N_9WOa3bY83x3JDFuUKx5x6owbUVxrDTqMtZQqcezoicafTXmX-nT2G3wfJcQgso/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;預設80 Port已經被IIS搶走了，所以我把Web Server Port改成8080，不過後面的Occupied還是持續顯示沒有立即更新  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image008&quot; border=&quot;0&quot; alt=&quot;clip_image008&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu1SyTWq8Anqu6ru2L8vsWBvs3pDRSRLIGRpTJcViC5p29_cQd9gpFTh1BgeMJXNog52e45dQKF6eMA1OEtHZM9TVvXNelXZabwUIG3jePiWP6eNJOxIAiKx-QO65chsfk8uY639tI7iI/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;列入此次要安裝的清單  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image009&quot; border=&quot;0&quot; alt=&quot;clip_image009&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlh4NLGAkn6q-HQirjGlSe4VMDruMl_qcnzNkyWwlvB6noUnJf_tZQo6YujRCLHXT2htSGY-TISWKg6z7WZImFZ-JGfualNEVMkYvkyZ0TMJJZEfIIUqf7Y5rvr4KvwHm-lXjNYMfBMQY/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;持續安裝  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image010&quot; border=&quot;0&quot; alt=&quot;clip_image010&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNmKlx_cLHH2jVF5VAx60oDuM8bO0cWVH2ukVQOSUDS5MtXmXjEYyGs7xwLFFRlkQ1qcD_7IaUwNhHK0QQigMA1UYqcgBQUNRfcxRLrhqsK12_nbU3lsA88rV281y1lgNdb7POvyIzmZc/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;安裝完成，預設直接啟動Zend Server  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image011&quot; border=&quot;0&quot; alt=&quot;clip_image011&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvUB7IZgsgq8aTHeaERUtGnL76KWBlRXCCBf7P-qxQZ_eMqMGWkSQQtFlmxW6t_mDVsGNLNEQ8AVf39KXMTAnvpABQ_rrSc7XWCSAZrsI6vJWyOH4WOXtcyElWFny4xj_C-welZnmpxys/?imgmax=800&quot; width=&quot;504&quot; height=&quot;383&quot;&gt;&lt;/p&gt; &lt;li&gt;此時右下角常駐圖示會多兩個圖示，分別代表：　　Zend Server、　　Apache Server  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image012&quot; border=&quot;0&quot; alt=&quot;clip_image012&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXjkj39jRQ5i-jrgE_dixIa0h_MtPuU47V4yctuqfG5G_q1itJSjU1YbNMl2_k26kcyTCVzCB17NEZtP346oS7gMBZXThDt98xwMtBAo6IEb9zTwlCdj846yH9zK4gfTVZvmij3zaRlgc/?imgmax=800&quot; width=&quot;228&quot; height=&quot;36&quot;&gt;&lt;/p&gt; &lt;li&gt;很不幸的預設執行的Zend Server是掛點的  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image013&quot; border=&quot;0&quot; alt=&quot;clip_image013&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBm7o3yaIXrSi4wP4JwH7Ox6zpkgNpV77YfVC-kHPkKWWSC6d-VrI1Jg8Hm6gIH8FQyvnqBRTjtrB-XIJokIjCKwp7ZwTMo7U_nnBD1vkWr0BinsUccF3vbFoFdWU5I0ZWtF474Wrsvjo/?imgmax=800&quot; width=&quot;504&quot; height=&quot;216&quot;&gt;&lt;/p&gt; &lt;li&gt;查看Apache Error.log  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image014&quot; border=&quot;0&quot; alt=&quot;clip_image014&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIovQt7_dywSss8EBLbExdkbMEnszNoAZawvuYwyYS7WRg_McVuLjuyc3sXPT4FZH_u_4CYjaYsYirm4WZel3B1qF019WsWvRoY5sXnW-xq90a1xThRCLi8CDR5h-eSkHX55pTO42LJ8M/?imgmax=800&quot; width=&quot;504&quot; height=&quot;231&quot;&gt;&lt;/p&gt; &lt;li&gt;Error.log顯示 Zend Enabler沒辦法讀取，XML Parse錯誤  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image015&quot; border=&quot;0&quot; alt=&quot;clip_image015&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhXQ9lFPMRmlCsId_gjHLFcAjyLO7d6T7kG03zda161_cPWOVYqVRPnTLadvrGJYtIKZbxu7rT3Ds_pq1sWi4L6xiXa4JtKbJjxHvf6215sGYZZRpZe4RVckN-IKXtT_2YvrkHPRH9LyM/?imgmax=800&quot; width=&quot;504&quot; height=&quot;322&quot;&gt;&lt;/p&gt; &lt;li&gt;於Zend Server/Etc目錄下檢查ZendEnablerConf.xml檔  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image016&quot; border=&quot;0&quot; alt=&quot;clip_image016&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5_LL37_xXIodn8T2WKPvoegRJPGtsxySmywir8XwFAS5hQ_YpqFT55Aka68Nav7eZG3PW-2YLbnCtiQPhbRON-DB55_M4iTLBpJ9TeZd5WYhk18KVrXeLIPtjRKiC7sHG3GrSYFaxFCM/?imgmax=800&quot; width=&quot;504&quot; height=&quot;270&quot;&gt;&lt;/p&gt; &lt;li&gt;用Notepad++開啟後，編碼有錯誤的問題  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image017&quot; border=&quot;0&quot; alt=&quot;clip_image017&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipTfQrn09AX4ClCw8E7fEUfzRPnbyfApyhteXXSI81fi4_F7KariTWgztyhfPGfzgws6XjsRzkdQsAagPlLJCo_x4qMmswXHPgtaK-KTgmO1vzwa-nu_BTc-kxv9XJEO2L-t0NxrxYttE/?imgmax=800&quot; width=&quot;504&quot; height=&quot;168&quot;&gt;&lt;/p&gt; &lt;li&gt;直接將第一行砍掉，另存成UTF-8編碼  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image018&quot; border=&quot;0&quot; alt=&quot;clip_image018&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbmJKuXnbkzcnX1bmXN_sjoGBzW2LQBRE3olJA1b_cC7rDGywmH6x5sFb9dSwG5uCftcwyZXDD8PwmjpOOuHQkgT04bplWHQugckEpQ3Ms1JLZBU12PKvc-Fe4rN2u3VHcpOM88_1oEZc/?imgmax=800&quot; width=&quot;504&quot; height=&quot;176&quot;&gt;&lt;/p&gt; &lt;li&gt;重新執行Apache  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image019&quot; border=&quot;0&quot; alt=&quot;clip_image019&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3uKfTsQcv1jbj0g7B_Fjr50d4IU74rG-0O85OuPibDGGnNlAgtJ4uKh-8OsVV27O9Uq4kbD0tMzR5oEsrWl2fI6WrvCW-KOqx0DjvdKFUm4ugiV1caw9YXQeizjSV9qA-xgsheg11Hw/?imgmax=800&quot; width=&quot;504&quot; height=&quot;168&quot;&gt;&lt;/p&gt; &lt;li&gt;重新執行Zend Server  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image020&quot; border=&quot;0&quot; alt=&quot;clip_image020&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuCBGK_xiRQw7MV1TKq8o2NV62VYjb5w79IUjCcUAnW9Z1oSDvAyERs6ZGm3i7mWH4l07-I1H1f9G5BdhsDILRFRbVCaUReAHW1qI0lnuJlEv6-FdFInTvtLwAVJru7_bevvsujRHVSEI/?imgmax=800&quot; width=&quot;504&quot; height=&quot;150&quot;&gt;&lt;/p&gt; &lt;li&gt;終於看到正常的Zend Server第一次執行畫面  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image021&quot; border=&quot;0&quot; alt=&quot;clip_image021&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Ffrqs4e9_GUcRqPPXQBxVgJv4O4OreOXxXchRa130EitEUY4DmA_cZafQQdvKR6Ztw247nhIXwUk5f-uMVs50CmUTmsTZ7WaW2e6Pb7rGk_8OFresiK7GeFalbQeN7vVyMhE5ENlBiM/?imgmax=800&quot; width=&quot;504&quot; height=&quot;259&quot;&gt;&lt;/p&gt; &lt;li&gt;設定Server password  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image022&quot; border=&quot;0&quot; alt=&quot;clip_image022&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU57vZgN3iDOAEKDPCcckCx2ElF4mPtqoW6eFh5z9qsQwaWqUw17UiBBOjwuF7T_wACwFU24ydciJh3M05LPcJ3LQ6mAya0LLuMiq2hhQoeXopioHTHq74lvnF1m63ZSBF5ETxVbHrCdE/?imgmax=800&quot; width=&quot;504&quot; height=&quot;256&quot;&gt;&lt;/p&gt; &lt;li&gt;初次設定完畢  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image023&quot; border=&quot;0&quot; alt=&quot;clip_image023&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj_2RpaJsIG8ivN4npGwhiiPxbU-S_-qjrkTWXvbhDvrnsONxsnEZJ7psxRGZlWBmmbQQiDvozFmIdFuh-aQxw9w_XY3aDp2TUc1y0h0WSDJAOEO630CXoFbW6w_ZlgY4NGfbHfnOjCM0/?imgmax=800&quot; width=&quot;504&quot; height=&quot;257&quot;&gt;&lt;/p&gt; &lt;li&gt;平常Zend Server畫面  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image024&quot; border=&quot;0&quot; alt=&quot;clip_image024&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6-iHhA8Aa4b_Qbia1GytkZohuucmAo0DLNudhdh4yD7Z0WVimMeDGqq5Cd6AnQCwF7S9sCrE2mhdhJ8cI9EguwQ7dDQyG9nkFWt3o4nv9IvB1C4iy0Na6424-owCY9-2zq-JAGVDRxLw/?imgmax=800&quot; width=&quot;504&quot; height=&quot;256&quot;&gt;&lt;/p&gt; &lt;li&gt;測試command功能，執行cmd  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image025&quot; border=&quot;0&quot; alt=&quot;clip_image025&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQmXznM-bE7SBQyAxgntif-Fm6FHTMnnMG5zI4bvVGLr3ds8so7MqZAbpBos6bCggPQcQml73oK0DV5qal2ci4OJcQNj053X44DDd_vBbLEpEA5gwQpTH87dSUUj0HvkuvrX8RWDeB4Zg/?imgmax=800&quot; width=&quot;504&quot; height=&quot;256&quot;&gt;&lt;/p&gt; &lt;li&gt;於Command模式下，執行zf  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image026&quot; border=&quot;0&quot; alt=&quot;clip_image026&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtU7feahaShbXk7Fy6uViIfJXvDjgtmtEv46NfVsk2VnjUY-OsHxylLffmhRU_CXSVI63tMB4MGveSP7V0S9JzOTMBXyi8mh9_b4jWLavlU-QeyXW0DKViynBTzl_exfaSu93QBuCXw8U/?imgmax=800&quot; width=&quot;504&quot; height=&quot;331&quot;&gt;&lt;/p&gt; &lt;li&gt;出現zf指令提示，大功告成!  &lt;p&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;clip_image027&quot; border=&quot;0&quot; alt=&quot;clip_image027&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDlj4c759M-qxYu6ONNTI854LoitdGc-m9IiRPnvnOXu4nEeyRnwGVhAO4yQp0a4vGDZYneLeK83hosHENJSM6Aq3jq6j6b1a1to1lR2EKc5eNabFnPKXvJzcFApgkbifQQsSiPnDYHQU/?imgmax=800&quot; width=&quot;504&quot; height=&quot;331&quot;&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/3065324492806093595/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/3065324492806093595?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/3065324492806093595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/3065324492806093595'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/11/xpzendserver-ce.html' title='XP安裝ZendServer-CE'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg64KYBjVEoZNNh_KXtl2ZffNRIuC8lBAHF5QdBQNsiVWL0XTHGBTRexmfA16DTfCzgWUtXY2ZYO5ThwyHgKi_aSDiBzXqxvNMp5p-0_jORerLaconlZMFooodpomc9mh6tJ8T6cBgMsWk/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-2964489999681229179</id><published>2012-09-05T12:54:00.001+08:00</published><updated>2012-09-05T12:54:32.328+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>短短的年多竹北高鐵人潮的變化</title><content type='html'> &lt;p class=&#39;bloggerplus_text_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;&lt;div style=&#39;font-size:large&#39;&gt;因為老婆工作在台北的關係，去年二月就搬到竹北高鐵旁租房子，每天在接送老婆去搭車。剛開始下班時間過去機車停車區有1／3個空位任我跳選擇，經過一年多的時間而已，現在不臨停紅線拼運氣已經沒位置可以暫停了。&lt;br&gt;&lt;br&gt;不過人多排隊的禮儀就越來越糟糕了，我老婆每天早上可以看到一排包包卡自由座位車箱的排隊，高鐵自己的站務人員不處理的情況下，這風氣慢慢應該會形成竹北高鐵的文化吧。&lt;br&gt;&lt;/div&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/2964489999681229179/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/2964489999681229179?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2964489999681229179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2964489999681229179'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/09/blog-post_5.html' title='短短的年多竹北高鐵人潮的變化'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-1632117905842292682</id><published>2012-09-04T07:46:00.001+08:00</published><updated>2012-09-04T08:01:55.490+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><category scheme="http://www.blogger.com/atom/ns#" term="胡思亂想"/><title type='text'>怎麼檢查廁所有沒有掃乾淨？</title><content type='html'> &lt;p class=&#39;bloggerplus_text_section&#39; align=&#39;left&#39; style=&#39;clear:both;&#39;&gt;&lt;font size=&#39;6&#39; &gt;看看馬桶的坐墊背面有沒掃乾淨就知道了！&lt;br&gt;因為那邊是最容易髒，而且又看不到的地方。&lt;br&gt;如果那邊有注意到掃乾淨，那表示掃的有細心！&lt;/font&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/1632117905842292682/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/1632117905842292682?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1632117905842292682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1632117905842292682'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/09/blog-post.html' title='怎麼檢查廁所有沒有掃乾淨？'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-782580238995213212</id><published>2012-09-02T10:59:00.003+08:00</published><updated>2012-09-02T10:59:26.868+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>ASP.NET MVC Action Result</title><content type='html'>&lt;ol style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;ContentResult - 回傳自訂內容&lt;/li&gt;
&lt;li&gt;EmptyResult - 不回傳&lt;/li&gt;
&lt;li&gt;FileResult - 回傳File&lt;/li&gt;
&lt;li&gt;HttpStatusCodeResult - 回傳HttpStatus&lt;/li&gt;
&lt;li&gt;JavaScriptResult - 回傳Javascript&lt;/li&gt;
&lt;li&gt;JsonResult - 回傳JSON字串&lt;/li&gt;
&lt;li&gt;RedirectResult - 轉址&lt;/li&gt;
&lt;li&gt;RedirectToRouteResult - 重新Route&lt;/li&gt;
&lt;li&gt;ViewResultBase - 回傳View&lt;/li&gt;
&lt;li&gt;PartialViewResult - 回傳頁面部分資料&lt;/li&gt;
&lt;li&gt;View() - 回傳預設View&lt;/li&gt;
&lt;li&gt;View(data) - 回傳預設View並帶入資料&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/782580238995213212/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/782580238995213212?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/782580238995213212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/782580238995213212'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/09/aspnet-mvc-action-result.html' title='ASP.NET MVC Action Result'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-6667408952882521860</id><published>2012-09-02T10:58:00.002+08:00</published><updated>2012-09-02T10:58:42.574+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>ASP.NET MVC 快速入門</title><content type='html'>&lt;h2 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
ASP.NET Model-View-Control的作業方式：&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/MVC.png&quot; /&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;View – 負責顯示畫面設計，並且顯示Control所提供的資訊，如果不需要畫面的資訊(如：XML,JSON String)，Controller可以直接回傳，不需另外設計View。&lt;/li&gt;
&lt;li&gt;Controller – 負責畫面與商業邏輯之間的串接，依據User Request URL，ASP.NET會依據Route Rule分配給對應的Controller的指定Method處理，該Method可以依據輸入的參數與HttpGet/HttpPost行為，來決定是否呼叫Model進行Business運作，以及決定套用哪個View來進行顯示。&lt;/li&gt;
&lt;li&gt;Model – 負責商業邏輯處理的資料集(Model)與服務(Services)，UI上資料填入Model後會由Controller呼叫相對應的Services並回傳資料提供給Controller進行View的串接。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
MVC作業方式的優劣：&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
優點：&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;適合單元測試，Model/View/Controller的功能切割明確，彼此的相依性低，容易分工作業與單獨測試&lt;/li&gt;
&lt;li&gt;網頁設計回歸傳統Html Design，與ASP.NET相依性較低，移植系統較傳統ASP.NET Web Form複雜度降低&lt;/li&gt;
&lt;li&gt;無法採與傳統ASP.NET Web Form 以Postback方式處理UI互動，減少畫面閃爍與ViewState資料保存的現象，降低網頁Size。&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
缺點：&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;小功能強迫切割會造成過於繁瑣，且當View/Controller/Model彼此相依資料複雜時，彼此傳遞的資料格式會十分複雜與繁瑣。&lt;/li&gt;
&lt;li&gt;UI互動依賴傳統Javascript設計，Javascript撰寫會較為複雜，無法如ASP.NET Web Form可以拉到後端處理。&lt;/li&gt;
&lt;li&gt;無法使用ASP.NET Web Form的元件(DataGrid、GridView)，類似功能的開發效率會降低，須以傳統網頁設計的方式實作。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
ASP.NET MVC目錄規則：&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/ASPNET%20MVC%20Location.png&quot; /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
以登入畫面為例：&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/ASPNET%20MVC%20EXAMPLE.png&quot; /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
範例中需實作項目共有：&lt;/h3&gt;
&lt;ol style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;View – LogOn.aspx&lt;/li&gt;
&lt;li&gt;Control – AccountController.cs&lt;/li&gt;
&lt;li&gt;Model – LogonModel.cs&lt;/li&gt;
&lt;li&gt;Services – AccountServices.cs&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
以VS2010實做上述功能順序如下(我的習慣順序)：&lt;/h3&gt;
&lt;ol style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;新增AccountController.cs (View的新增依賴Controller，所以先新增Controller)&lt;/li&gt;
&lt;li&gt;AcounntController內新增Logon Method&lt;/li&gt;
&lt;li&gt;由Logon Method產生View (LogOn.aspx)&lt;/li&gt;
&lt;li&gt;自行於Model目錄下新增Model相關cs：LogonModel.cs/AccountServices.cs (Model在View Design前新增比較方便)&lt;/li&gt;
&lt;li&gt;將View的Model從預設Dynamic改為LogonModel&lt;/li&gt;
&lt;li&gt;設計View UI讓HTML元件與Model資料的綁定&lt;/li&gt;
&lt;li&gt;LogonMethod於HttpGet時的輸入參數改為LogonModel.cs&lt;/li&gt;
&lt;li&gt;實作AccountServices.ValidateUser邏輯&amp;nbsp;&lt;/li&gt;
&lt;li&gt;實作AccountController.Logon邏輯&lt;/li&gt;
&lt;li&gt;完成&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
上述順序實作順序之畫面：&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
1.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;新增AccountController.cs (View的新增依賴Controller，所以先新增Controller)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/Create%20Controller%201.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
於Controller目錄下Add-&amp;gt;Controller&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/Create%20Controller%202.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
Controller Name取名為Account，後面Controller為必需名稱，是否直接新增Create/Update/Delete/Details Method這次先不需要)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/Create%20Controller%203.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
2.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AcounntController內新增Logon Method&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/Controller%20N%20ew%20Method.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
AccountController.cs內預設只有Index Method，分別設計兩個同名LogOn Method Method提供HttpGet/HttpPost兩種狀態分開處理，此時UserModel尚未定義。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
3.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;由Logon Method產生View (LogOn.aspx)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/New%20View%201.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
在Method上按右鍵會有[Add View …]選項，點選後會自動產生對應的View於Controller目錄下。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/New%20View%202.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
此次未採用MasterPage，因此Select master page必須取消勾選。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/New%20View%203.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
[Add]後，於Views/Account下，產生LogOn.aspx的View。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
4.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;自行於Model目錄下新增Model相關cs：LogOnModel.cs/AccountServices.cs (Model在View Design前新增比較方便)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/Model.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
LogonModel.cs，自訂欄位UserName/Password&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/Services.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
AccountServices.cs，提供ValidateUser Method&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
5.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;將View的Model從預設Dynamic改為LogonModel&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/View%20Modify.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
原本View的資料參數為dynamic&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/View%20Modfiy2.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
調整為自訂的Model物件&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
6.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;設計View UI讓HTML元件與Model資料的綁定&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/View%20Design.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
依照ASP.NET MVC Binding語法設計UI，MVC 3.0有Razor語法，上面為原本的基本語法&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
7.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;LogonMethod於HttpGet時的輸入參數改為LogonModel.cs&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/ControllerMethod.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
此為LogOn Submit後訊息處理窗口。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
8.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;實作AccountServices.ValidateUser邏輯&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/ServiceMethod.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
可延伸與後端資料庫做整合。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
9.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;實作AccountController.Logon邏輯&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/ControllerMethodImplement.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
依據輸入內容呼叫登入檢查並依據結果只配對應View&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
10.&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;完成&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/UI1.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
預設畫面&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/UI2.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
登入完成&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/UI3.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
登入失敗&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; font-family: pmingliu, serif !important;&quot;&gt;
ASP.NET MVC結合三層式架構(USL/BLL/DAL)&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/MVCAND3TIER.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
展示層由原本View+Control實現，Model由TO取代，Services由BLL取代，並直接呼叫DAL處理。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://sites.google.com/site/sheaurencsharp/topic/mvc/MVCAND3TIER%20PROJ.png&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
專案Sample，Web內無Model目錄，Controller直接呼叫BLL&lt;/div&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/6667408952882521860/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/6667408952882521860?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/6667408952882521860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/6667408952882521860'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/09/aspnet-mvc.html' title='ASP.NET MVC 快速入門'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-6911986065791987876</id><published>2012-07-13T13:26:00.001+08:00</published><updated>2012-07-16T20:54:51.358+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>文人相輕，醫生也是文人？</title><content type='html'>&lt;div align=&quot;left&quot; class=&quot;bloggerplus_text_section&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;我老婆的手臂前陣子不明原因造成平行抬起來會痛，看了五六次中醫去推拿，推拿完一開始有比較舒緩，不過病情還是持續嚴重，所以就改去看西醫。&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;bloggerplus_text_section&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;在網路上查到推薦的新竹骨科診就去看診，有醫生看完X光片説明病情並告知因為肩膀先天骨頭長的比較尖，比一般長平的容易發生此問題『螺旋袖 夾擊陣候群』，建議用核磁共振確認目前骨頭是否有磨損到韌帶，此類型肩膀會舉不起來通常是年紀大或者職業病，網路上查的結果也跟我老婆職業上經常性的作業有關係，因此造成骨科關結發炎，以後年紀大嚴重可能需要開刀或者舉不起來。也因為如此就開轉診單給我們，醫生推薦的醫院都不是新竹的，想說現在診查就現轉新竹的。&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;bloggerplus_text_section&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;大醫院等待總是比較久，當天回家立刻掛號隔天也等到晚上九點多才看到醫生，現跟醫生説明轉診原因與診所醫生建議就毀了，『你的骨頭，我看不出有什麼問題』，『那個醫生不是骨科的吧』，『那個醫生是做復建的？』，『消炎藥吃一吃就好了』，等了3小時多，看診兩分鐘，一半的時間在聽這位大醫院的醫生瞧不起診所醫生給的建議，我還把原本的藥給她看，結果重覆又開了消炎藥，問護士為什麼又開消炎藥，畢竟轉診來只是確認是否需要後續治療，結果就是她連有在昨天診所吃藥也沒聽進去，整個看診只在否定診所醫生的建議...瞧不起別的醫生也不應該把病人當犧牲品。&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/6911986065791987876/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/6911986065791987876?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/6911986065791987876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/6911986065791987876'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/07/blog-post.html' title='文人相輕，醫生也是文人？'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-638310049614805314</id><published>2012-05-31T20:06:00.001+08:00</published><updated>2012-05-31T20:06:28.513+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>全家福照片</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;451&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5P78AWF5gRjKqY44uQku3UmeN_j0QwRj3tqX9A-rq1LBTuVUdPPwZYTbWsS0w_9kn_2d5pZ3zaIi6BaR47TxoOTAbsNFCIxN5SEurHBahDVoM5wOfGO1gjD_ZZJ-aeJNdDSDIfMqMovgH/s640/20120114%E6%9C%A8%E6%9F%B5%E5%8B%95%E7%89%A9%E5%9C%92(%E4%BF%AE%E6%94%B9%E5%BE%8C).JPG&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/638310049614805314/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/638310049614805314?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/638310049614805314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/638310049614805314'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/blog-post_31.html' title='全家福照片'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5P78AWF5gRjKqY44uQku3UmeN_j0QwRj3tqX9A-rq1LBTuVUdPPwZYTbWsS0w_9kn_2d5pZ3zaIi6BaR47TxoOTAbsNFCIxN5SEurHBahDVoM5wOfGO1gjD_ZZJ-aeJNdDSDIfMqMovgH/s72-c/20120114%E6%9C%A8%E6%9F%B5%E5%8B%95%E7%89%A9%E5%9C%92(%E4%BF%AE%E6%94%B9%E5%BE%8C).JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-2722404594311336381</id><published>2012-05-28T19:37:00.000+08:00</published><updated>2012-05-28T19:37:14.299+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPad APP"/><title type='text'>iPad iOS5.1.1 JB簡單說明</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;JB tool Absinthe 2.0.1 for iOS 5.1.1&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;下載網址：&lt;/span&gt;  &lt;br /&gt;
&lt;a href=&quot;http://apkipacracked.com/tag/download-absinthe-v2-0-1-for-windows-xpvistawin7/&quot;&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;http://apkipacracked.com/tag/download-absinthe-v2-0-1-for-windows-xpvistawin7/&lt;/span&gt;&lt;/a&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;支援JB的裝置，不在裡面記得放棄：&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPhone 3GS&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPhone 4 CDMA&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPhone 4s&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 1&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 2 Wifi&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 2 GSM&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 2 CDMA&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 2 Wifi, R2&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 3 Wifi&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 3 CDMA&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPad 3 Global&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPod 3G&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;iPood 4G&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;Apple TV 2&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
解壓縮長這樣子：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5cstGV4zNS0Qwa4v1Sn1EAWSDmInKISchXazb313mSbSxnxoev8CwSDcaZSeWWHtqifX88-V1thpMNpiLdIzKSijlYMWh04qi5HDUUfBg-wYK8qa5XdIqxEUM5Ys5ehprROuLIZEudcb6/s1600/2012-05-28_193031.png&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;JB步驟：&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;1. iOS版本不是5.1.1的記得先升級&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;2. 用iTune備份資料(漫長的備份)，之後iTune可以先關掉&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;3. 將iphone/ipad資料清除： 設定-&amp;gt;一般-&amp;gt;重置-&amp;gt;清除所有內容和設定&lt;/span&gt;  &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZdFLyapI52lfoHnJmyK4EjRHkraLUU8yadajnntVZVd287FvbUSOO4NR3_PBoJwquX89f6n3rIfTfrSjzbwI2tCZacVG7aegCShDhB_A03paTwNhC1C-tWxs5soOFwFDPGyG3aMokMRTe/s640/IMG_0133.JPG&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBbIiEchM1ceabyTjpCbw-HSjKlE6WPw6oFaoAkzWuQNji9rV8Y-AuVeg-lt8Ud6N2njxp-Xn__m4YB2pswHZtSj_56kYWqlpvfBdU54dEYbac61fM7nIO2qf_YVTn3N9uyNDjvsN-7zkO/s640/IMG_0134.JPG&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;4. 恢復出廠值先不要復原資料，用USB連接電腦&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;5. 執行Absinthe 2.0.1，點選Jailbreak，放著讓她跑到結束(iphone/ipad中間會重開機)&lt;/span&gt;  &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpaN65ZMkjkMh4VimDfDLAwfVRubBd0qQr6E4DAuePNjb1j-tpLVanbIG3Ec4zUiBjg3DpoqaXmN7VDguE4gW7XenIc3mUqTi7i64mtqF1fqwzMcfbsMyg_1CNmwQFtB6uJs0zjXAaGsuK/s1600/2012-05-28_193100.png&quot; /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;6. 確定JB完成，iphone/ipad桌面出現Cydia圖示就完成了&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;7. 用iTune進行資料恢復(漫長的恢復)&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;8. JB完成。&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;JB是希望安裝未認證軟體的人，請於Cydia內新增有App  Sync For iOS 5.0+的軟體。&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;1. 第一中文源： &lt;/span&gt;&lt;a href=&quot;http://apt.178.com/&quot;&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;http://apt.178.com&lt;/span&gt;&lt;/a&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;2. 51iPA補丁源： &lt;/span&gt;&lt;a href=&quot;http://cydia.51.ipa.com/&quot;&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;http://cydia.51.ipa.com&lt;/span&gt;&lt;/a&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;3. 巴士網： &lt;/span&gt;&lt;a href=&quot;http://iphone.tgbus.com/cydia/&quot;&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;http://iphone.tgbus.com/cydia/&lt;/span&gt;&lt;/a&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;JB是希望內購功能破解的，請於Cydia內新增IAP  Cracker軟體。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/2722404594311336381/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/2722404594311336381?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2722404594311336381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/2722404594311336381'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/ipad-ios511-jb.html' title='iPad iOS5.1.1 JB簡單說明'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5cstGV4zNS0Qwa4v1Sn1EAWSDmInKISchXazb313mSbSxnxoev8CwSDcaZSeWWHtqifX88-V1thpMNpiLdIzKSijlYMWh04qi5HDUUfBg-wYK8qa5XdIqxEUM5Ys5ehprROuLIZEudcb6/s72-c/2012-05-28_193031.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-1627999819299311495</id><published>2012-05-21T19:52:00.001+08:00</published><updated>2012-05-21T19:52:36.519+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="好的文章"/><title type='text'>美國人帶孩子的17個絕招</title><content type='html'>&lt;div style=&quot;text-indent: 0px;&quot;&gt;
Facebook看到有人分享的&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招一：如何讓小寶寶不哭&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
愛哭的BABY都是爸媽教出來的。才出生的小BABY聽不懂話，他們靠條件反射來做判斷。中國的家長一聽到孩子哭就抱起來。JANE GU醫生反復告誡我：孩子一哭就放下來，不哭才抱起來，正好反過來。這樣一來，再小的孩子都能明白，不哭的時候才有得抱，這招極靈。放下愛哭的孩子開始訓練，看著時鐘，不要抱讓她哭，準備等10分鐘再抱。第一次可以設定5分鐘，以後一次比一次時間拉長，我的妞妞第一次就沒有熬到5分鐘，大約3分半的時候就停了，我已經心疼得肝腸寸斷自己都快哭了，一定要忍住了。讓孩子知道哭聲是叫不來媽媽的。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
訓練“不哭的孩子”要排除4個哭的其他原因：尿了、病了、餓了，困了。上帝保佑，我家兩個孩子都不會無理由哭，偶爾哭一下當作運動也是極少數，妞妞和妙妙100%是快樂的寶寶，躺在床上都咯咯笑出聲的孩子。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招二：如何讓剛出生的小寶寶一覺睡到天亮&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
美國醫生再三批評我：你不是好媽媽，隔壁的孩子一睡到天亮，隔壁的媽媽是好媽媽，你不是！每次去看家庭醫生我都挨批評，原因是我晚上要餵奶1-2次，抱怨養孩子很累很辛苦。醫生告訴我一個觀念：人類晚上不需要進食！我傻乎乎問，為什麼呢？醫生沒辦法，只好大聲說：因為我們是人類！我印象極深，妞爸早就笑彎腰了。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
很顯然，我擔心BABY晚上會餓根本是多餘的，10-12小時的連續睡眠，對孩子來說比吃奶重要100倍！我們被老大妞妞折磨很慘，晚上吃一頓奶的壞習慣一直延續到快2歲。養老二的時候按照醫生說的，徹底讓我和老公解脫出來，從剛出生到一個禮拜我家妙妙被訓練距離5個小時才吃奶，2個禮拜之後，孩子就能睡天亮了。晚上不需要吃奶！！！（三個感嘆號是請媽媽們切記的意思）&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招三：讓寶寶自己靜靜入睡，不要搖晃&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
醫生說，一個快樂的BABY會睡在床上唱歌的（不是真唱，是嬰兒咿咿呀呀）！嬰兒的大部分時光都需要在床上度過，這裡請爸爸媽媽們記住，床是不會動的！所以，抱起嬰兒的時候不要搖晃，不要來回走動，更不要這樣哄孩子睡覺，輕輕放在床上讓他自己睡就好。再說一次，床是不會動的。爸爸媽媽你們沒有權利剝奪孩子躺在床上享受快樂的權利。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
還有一點一定要注意的就是，興奮的家長不要用力和孩子“瘋鬧”，孩子的大腦在嬰兒時期還是膠狀的果凍狀態，很容易受傷。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招四：趴著睡養美女&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
個人經驗，孩子趴著睡覺比仰著睡得安穩，才出生的孩子心臟朝下，幾乎不會一驚一驚的狀態，模仿子宮被包裹的狀態。另一個最大的好處是改變亞洲人的大餅臉，5天之內的嬰兒需要1個小時幫忙翻臉，5天之後，我家妞就會自己左右轉向自如了。妞是標準的小臉，和生出來的時候大方臉好像變了一個孩子，呵呵，得意。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
老二妙妙的臉沒有刻意這樣做，那時候妞妞需要人照顧，沒有精力1個小時翻頭的精力了，很可惜。這個機會只有在出生到3個月之內有效，大了就沒用了。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招五：寶寶的抵抗力比你強十倍&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
爸爸媽媽穿2件，寶寶絕不能穿2件半，只能比你穿的少，不能比你穿的多。我家兩個孩子都十分強壯，冷熱其實很好控制，偶爾看到兒童醫院發燒的孩子被花被子棉襖裹著一層一層的，可憐啊，孩子不會說話，都是家長害的。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招六：拒絕抗生素！&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
感冒發燒是孩子成長的過程，是增強抵抗力的過程。我家寶寶發燒了最常用的就是用冰敷，用有拉鍊的保鮮袋裝冰塊，用乾淨毛巾裹了冰敷在全身，30分鐘一定退燒。燒厲害了配點美林或泰諾。如果是著涼了感冒沒有發燒，就讓孩子吊著鼻涕沒有事，幾天就好。不要相信任何藥能治療感冒。到目前為止，除了去年的手足口被醫院騙進去那一次之外，我家2個孩子從來沒有掛過鹽水和注射過抗生素。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
在美國，是那種要死的病才注射抗生素的，在中國注射室的景觀，嚇壞了妞妞的爸爸，那個景象讓人發毛他說。一排一排的吊針，打手打頭打腳的小孩子們在媽媽爸爸爺爺奶奶的陪護下掛鹽水。集中營莫過如此，很恐怖。花錢不說，更可怕的是體內的細菌大戰存留的各種毒越來越多，週期性的需要掛鹽水來壓下去，常常聽到媽媽們說，有一點症狀馬上掛水壓下去，十分得意。我為她們的無知十分惋惜。我的孩子越來越健壯，從不生病，病了也幾天自己好，基本不治療。鄰居的孩子半夜跑醫院，累的人仰馬翻樂此不疲，從這點看我是好媽媽。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招七：天天洗澡，用清水，少用沐浴露&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
我的2個寶寶健康的另外一個原因是天天洗澡，天天洗澡是必要的。記得我生完孩子出來，準備聽我媽媽的教誨躺著不動，打算熬到第二天才洗澡，護士驚訝地拉我起來洗澡“不管你什麼傳統，把汗水和細菌都洗掉才會健康”。我被誤會成個髒媽媽被拖去洗澡，當然要說明的是我生兩個都是順產。產婦如此,何況小孩子？&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
孩子每天運動量大，臭汗奶腥味便便尿尿什麼味道都有，一定要洗澡，不能隔天才洗。這也是健康不生病的重要原因，他們不會著涼的，抵抗力比成人強十倍。醫生交代：寶寶洗澡儘量用清水，再名牌的嬰兒產品都不如清水好，不要用任何沐浴露、洗髮水，清水最最好！醫生說儘量不用，一定要用的話一個星期用一次沐浴露就好，我家是三天用一次（我覺得一周太長了，心理作用）。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招八：沒有奶不夠吃的媽媽，只有不想餵奶的媽媽&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
能吃到2歲半是天下最幸福的寶寶。JANE GU醫生說，沒有奶不夠吃的媽媽，只有不想餵奶的媽媽，孩子的食量多大，媽媽的奶就有多少，生雙胞胎的媽媽的奶同樣夠兩個孩子吃。這一點我很失敗，儘管GU醫生用筆劃了一個圓圈，她告訴我，你的孩子吃多少，你就能生產多少，你覺得奶不夠，加奶粉進去，奶就會真的不夠，最後就沒了，事實證明我後來真的越來越少直到沒了。孩子不會說話，她吃飽沒有很難知道，媽媽覺得奶少了就放棄母奶，就補奶粉，其實是告訴自己的身體，我只能生產這麼多了。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
要相信自己能當頭稱職的奶牛。如果再生一個，一定要證明一下。生完小孩第三天就去醫院參加“餵奶班”，幾個媽媽帶嬰兒圍成一圈，有黑媽媽白媽媽和亞洲媽媽，餵奶課用的是那種很舒服的沙發，腳下有墊腳的專用凳子。醫生們將孩子脫光，包括尿布，然後稱BABY的重量精確到小數點後面2位數。然後讓我們抱孩子餵奶，不准穿衣服只穿尿布。醫生一對一教媽媽們如何讓孩子一口就咬准乳頭，如何保護乳頭，一次一次訓練，期間有別的媽媽來用免費提供的吸奶機下奶，用塑膠袋裝回家。我剛開始的害羞和尷尬慢慢沒有了，呵呵，我在家完全不知道妞妞吃了多少，這下好了，一堂課下來，馬上稱孩子份量，我妞妞吃了不少，好像是那天的第二名，前後資料證明，我有奶。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招九：寶寶吃奶睡著怎麼辦？&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
BABY被媽媽抱著舒服又安全，沒吃飽就睡著了，醒了又吃兩口，折磨媽媽，寶寶也吃不飽睡不好，害人害己。訓練班裡學到最有用的一招，如何弄醒孩子讓他們專心吃奶，就是脫衣服！脫得就剩尿布，醫生告訴我，放心吧，你抱著她有媽媽的體溫，這體溫能保證嬰兒不會著涼，溫度剛剛好，BABY有一點涼意，他們會用心進餐（她說的真是進餐，呵呵）。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
放心吧，這些看起來弱不禁風的小東西，從媽媽母體帶出來的抵抗力比成人強10倍，餵奶的產婦也不容易病，這就是繁殖的力量。（當然室內的溫度是有一定溫暖的，國內無空調寒冷地區的人不要對照模仿誤會）&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十：母奶是最好的“抗生素”&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
妞妞大概10來天的時候，一隻眼睛發炎化膿了，我和妞爸嚇得抱到醫院，還是急診，兒科的男醫生問，你餵奶還是奶粉，我說母奶。他說擠點出來放進孩子眼睛，BABY就會好。What? 我排隊等急診老半天就這麼打發我回家了。於是如法炮製，母奶當藥，幾天後妞妞果然見好，是否母奶的原因還是不清不楚，美國醫生忽悠得或許有點道理吧。總之母奶是好東西。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十一：你會換尿布嗎？&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
廢話，養孩子的誰不會換尿布呢？不一定哦。你是否有被孩子噴到尿或臭便便的時候呢？一天洗5次床單是我的最高記錄。換尿布的時候，每次來的新阿姨都要重新教一遍，竅門就是把乾淨尿布放在臭尿布下麵，再打開尿布，擦乾淨抽出來，這樣即使孩子正好那時候又便又尿，你的床單保住了。習慣這麼做以後，永遠沒有意外發生。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十二：你會拍嗝嗎？&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
姿勢1：趴在肩膀上輕拍孩子後背，這種是傳統姿勢，很多時候不太容易拍出來嗝。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
姿勢2：讓孩子側坐在腿上，左手托著孩子的脖子，撐起下巴，右手拍後背，這樣效率極高，通常十幾下就拍出嗝了。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
臨睡的最後一頓奶，一定要喂飽足了，拍完嗝繼續喂，我家妙妙2禮拜就睡整晚就是用這招，拍完嗝還可以再喂2-3次，直到她真的不吃了，小嘴巴往外推奶瓶的狀態，妙妙就能睡到天亮。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十三：早點吃五穀雜糧&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
4個月吃米粉再大點跟大人一起吃東西，孩子長大不太會偏食，早點吃和成人一樣的食物對孩子有好處。6顆牙的時候，JANE GU醫生說，她已經可以用這幾顆牙齒吃很多東西了，什麼都可以喂，沒有不能吃的。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十四：別破壞寶寶的專注力&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
再小的寶寶玩玩具或看電視或看圖畫書的時候，請家裡的阿姨或者任何人都別打斷她們。即使是吃飯的時間到了，晚一點也沒有關系。培養孩子的專注力就等於培養她們長大了能注意力集中做任何事情。我家妞妞專注力很好，她喜歡的事，比如拼圖，一個下午幾個鐘頭不抬頭，沒有人叫她，除了尿尿之外。最怕那種大呼小叫逗孩子的長輩們，自以為聰明，邊看電視邊問問題。閉嘴，請安靜。給孩子一個專注的環境吧。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十五：慢慢走路，小聲說話&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
身體力行很重要，大人怎樣的孩子都會學。難得遇到上海一位陸老師，教孩子慢慢走路，輕聲說話，人家聽得到就好了，別那麼大聲。回了家鄉，社區的幼稚園老師教孩子們扯起嗓門唱歌，我在一旁看，心想完了，培養了半天的小淑女被漢派文化同化了，哈哈，如今的妞妞熱乾麵一樣的個性十足，整個兒一辣妹。大環境很厲害，幾乎沒有不被同化的可能。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十六：只要沒有生命危險，鼓勵寶寶試試看，摸摸看&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
中國父母禮節有餘，膽子太小。“別動，危險，站起來地上髒，別摸，會刺到。。。。不許這樣，不許那樣”美國父母最常說的卻是“Try it! ”試試看，摸摸看。鼓勵寶寶，只要沒有生命危險，不要阻止孩子用他們的小手嘗試和認識世界。大不了衣服弄髒，地上滾來滾去的寶寶時光很短，飯粒菜湯翻了一地，大不了掃一下。他們會早學會吃飯甚至用筷子，玩水大不了感冒，玩沙子大不了進鞋子難受難清潔。總之有很多阻礙孩子快樂的條條框框，促使我們的小天使們越來越快地變成成人，變成聽話和懂事的孩子。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
快樂第一重要，衣服髒了不重要，只要沒有生命危險，不要阻止你的孩子。&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
絕招十七：也是最重要的一招，一天只能批評兩次！&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-indent: 0px;&quot;&gt;
父母也不可以隨便批評寶寶，一天只能批評兩次，兩次用完了就等明天的配額吧。美國老師這麼慎重交代的。於是，寶寶外婆說：“你的孩子一天10次都不夠，2次的話我10分鐘就用完了，這太難了。我大笑。在嬰兒的時期，批評有用嗎？當拉個便便也被阿姨批評“寶寶又幹壞事了”時，我會反問阿姨，你有哪天不拉屎嗎？&lt;/div&gt;
&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/1627999819299311495/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/1627999819299311495?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1627999819299311495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1627999819299311495'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/17.html' title='美國人帶孩子的17個絕招'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-5135106321650776679</id><published>2012-05-18T17:46:00.002+08:00</published><updated>2012-05-18T17:46:15.718+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Linq"/><title type='text'>LINQ簡介</title><content type='html'>&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
簡單說明LINQ： 一套以IEmuerable介面定義一系列擴充方法(Extend Methods)，並與C#整合的一種Search技術。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
在C#的Search資料可以採用Lambda或LINQ：&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: pmingliu, serif !important; font-size: 16px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;TOC-1.-Lambda-Sample-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp; 1. Lambda Sample：&lt;/h4&gt;
&lt;pre style=&quot;background-color: white; font-size: 16px;&quot;&gt;List&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt; Datas&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;List&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;a1&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;a2&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;b1&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;b3&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
IEmumerable&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt; Result&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;Datas&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;Where&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;Data&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;Data&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;StartWith&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; font-family: pmingliu, serif !important; font-size: 16px;&quot;&gt;
&lt;a href=&quot;&quot; name=&quot;TOC-2.-LINQ-Sample-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp; 2. LINQ Sample：&lt;/h4&gt;
&lt;pre style=&quot;background-color: white; font-size: 16px;&quot;&gt;IEmumerable&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt; Result&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;
    from Data &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;in&lt;/span&gt; Datas
    where Data&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;StartWith&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    select Data&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
LINQ依據的Search對象分類：&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&amp;nbsp; &amp;nbsp; 1. Linq to Objects (Collection)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&amp;nbsp; &amp;nbsp; 2. Linq to XML (XPath)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&amp;nbsp; &amp;nbsp; 3. Linq to ADO.NET (SQL/DataSet)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&amp;nbsp; &amp;nbsp; 4. Linq to Entities&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
範例網站：&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;LINQ 101 Samples：&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/vstudio/aa336746/&quot; rel=&quot;nofollow&quot; style=&quot;background-color: white; color: #551a8b; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;http://msdn.microsoft.com/en-us/vstudio/aa336746/&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;動態Orderby：&lt;a href=&quot;http://byatool.com/general-coding/orderby-using-a-property-name/&quot; rel=&quot;nofollow&quot; style=&quot;color: #551a8b;&quot;&gt;http://byatool.com/general-coding/orderby-using-a-property-name/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/5135106321650776679/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/5135106321650776679?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/5135106321650776679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/5135106321650776679'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/linq.html' title='LINQ簡介'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-1058999564292848127</id><published>2012-05-18T17:45:00.003+08:00</published><updated>2012-05-18T17:45:29.163+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Linq"/><title type='text'>LINQ 語法介紹(Enumerable擴充方法)</title><content type='html'>&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
整理完發現官方也有類似的整理：&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/magazine/cc337893.aspx&quot; rel=&quot;nofollow&quot; style=&quot;color: #551a8b;&quot; target=&quot;_blank&quot;&gt;資料操作技巧：LINQ 的標準查詢運算子&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;篩選&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;OfType：取得集合內指定型態的資料。&lt;/li&gt;
&lt;li&gt;Where：取得符合運算結果的資料。&lt;/li&gt;
&lt;li&gt;Contains：取得包含指定值的資料。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;選取：&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;Select：取得指定物件或動態物件。&lt;/li&gt;
&lt;li&gt;SelectMany：將輸入為集合物件的LIST轉成單一集合物件。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;群組&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;GroupBy：以指定欄位進行群組化。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;排序&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;OrderBy：以指定項目排序 。&lt;/li&gt;
&lt;li&gt;OrderByDescending：以指定項目降冪排序。&lt;/li&gt;
&lt;li&gt;ThenBy：以OrderBy結果進行第二次以後進行排序。&lt;/li&gt;
&lt;li&gt;ThenByDescending：&amp;nbsp;&amp;nbsp;以OrderBy結果進行第二次以後 進行&amp;nbsp;降冪排序&amp;nbsp;。&lt;/li&gt;
&lt;li&gt;Reverse：將集合內容順序反轉。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;彙總：&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;Aggregate：用累加的方式套用再續列上。&lt;/li&gt;
&lt;li&gt;Average：計算序列數值的平均值。&lt;/li&gt;
&lt;li&gt;Count：計算序列的數量。&lt;/li&gt;
&lt;li&gt;LongCount：計算序列的數量，回傳int64型態數值。&lt;/li&gt;
&lt;li&gt;Max：取得序列內最大值。&lt;/li&gt;
&lt;li&gt;Min：取得序列內最小值。&lt;/li&gt;
&lt;li&gt;Sum：取得序列數值的總數。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;關聯&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;Join：將兩個序列項目進行關聯(類似SQL join)。&lt;/li&gt;
&lt;li&gt;GroupJoin：將兩個序列以主要序列為主進行關聯(類似SQL Left Join)。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;集合&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;Distinct：從 兩&amp;nbsp;序列中傳回獨特項目(去除重複項目)序列。&lt;/li&gt;
&lt;li&gt;Except：從 兩&amp;nbsp;序列中取得差異項目資料。&lt;/li&gt;
&lt;li&gt;Intersect：從兩序列中取得交集項目資料。&lt;/li&gt;
&lt;li&gt;Union：將兩序列產生集合資料。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;Create&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;DefaultEmpty：傳回型別資料，如果序列無資料則回傳空資料時的內容。&lt;/li&gt;
&lt;li&gt;Empty：傳回指定型別空資料時的內容。&lt;/li&gt;
&lt;li&gt;Range：取得序列中指定範圍內的資料。&lt;/li&gt;
&lt;li&gt;Repeat：產生重複內容的序列。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;計數&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;All：檢查序列內資料是否符合指定運算結果。&lt;/li&gt;
&lt;li&gt;Any：檢查序列內資料是否有一筆資料符合指定運算結果。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;切割&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;Skip：略過指定筆數資料。&lt;/li&gt;
&lt;li&gt;SkipWhile：略過不符合條件的資料。&lt;/li&gt;
&lt;li&gt;Take：只取得指定筆數的資料。&lt;/li&gt;
&lt;li&gt;TakeWhile：只取得符合條件的資料。&lt;/li&gt;
&lt;li&gt;First：取得第一筆資料。&lt;/li&gt;
&lt;li&gt;FirstOrDefault：取得第一筆資料，如果無資料時，回傳該型態空資料之預設值。&lt;/li&gt;
&lt;li&gt;Last：取得最後一筆資料。&lt;/li&gt;
&lt;li&gt;LastOrDefault：取得最後一筆資料，如果無資料時，回傳該型態空資料之預設值。&lt;/li&gt;
&lt;li&gt;ElementAt：取得指定位置資料。&lt;/li&gt;
&lt;li&gt;ElementAtOrDefault： 取得指定位置資料，如果無資料時，回傳該型態空資料之預設值。&lt;/li&gt;
&lt;li&gt;Single：取得序列中唯一的一筆資料，如果不是剛好一筆則exception。&lt;/li&gt;
&lt;li&gt;SingleOrDefault：取得序列中唯一一筆資料，如果超過一筆資料則Exception，無資料則回傳空資料之預設值。&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;轉換&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot; /&gt;&lt;ul style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;li&gt;ToArray：將序列轉 換為&amp;nbsp;T[]型態。&lt;/li&gt;
&lt;li&gt;ToList：將序列轉換為List&lt;t&gt;型態。&lt;/t&gt;&lt;/li&gt;
&lt;li&gt;ToDictionary：將序列轉換為Dictionary&lt;key,t&gt;型態。&lt;/key,t&gt;&lt;/li&gt;
&lt;li&gt;ToLookup： 將序列轉換為Lookup&lt;key,t&gt;型態。&lt;/key,t&gt;&lt;/li&gt;
&lt;li&gt;Cast：將序列內容轉換為指定型態。&lt;/li&gt;
&lt;li&gt;AsEnumerable：轉型為&amp;nbsp;IEnumerable&lt;t&gt;&lt;/t&gt;&lt;/li&gt;
&lt;li&gt;Zip(4.0新增)：依據指定運算是合併兩個序列資料行程新的序列。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;times new roman&#39;, serif;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/sheaurencsharp/topic/linq/linq-chang-yongmethods-jie-shao&quot; target=&quot;_blank&quot;&gt;出處&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/1058999564292848127/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/1058999564292848127?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1058999564292848127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/1058999564292848127'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/linq-enumerable.html' title='LINQ 語法介紹(Enumerable擴充方法)'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-8357517946054681578</id><published>2012-05-18T17:43:00.007+08:00</published><updated>2012-05-18T17:43:55.732+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>C# - Lambda運算</title><content type='html'>&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Lambda可以更簡潔的方式進階使用&lt;a href=&quot;https://sites.google.com/site/sheaurencsharp/01-ji-chu/04-delegate-wei-pai&quot; style=&quot;color: #551a8b;&quot; target=&quot;_blank&quot;&gt;delegate(委派)&lt;/a&gt;功能，是C#3.0之後提供的新功能。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Lambda以&quot;=&amp;gt;&quot;符號組成，語法如下：&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;(input) =&amp;gt; {expression}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: pmingliu, serif !important; font-size: 16px;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-delegate-Lambda-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;延伸delegate(委派)內的範例，以Lambda運算：&lt;/span&gt;&lt;/h4&gt;
&lt;pre style=&quot;background-color: white; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delegate&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; ShowMessage&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
ShowMessage FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&#39;Alert Message&#39;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
        
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;confirm&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;confirm(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&#39;Confirm Message&#39;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;

FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;customMessage&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;customMessage(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&#39;CustomMessage Message&#39;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; font-family: pmingliu, serif !important; font-size: 16px;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-delegate-Lambda-1&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;當delegate無輸入參數時，Lambda運算如下：&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delegate&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; HelloWorld&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
HelloWorld FuncRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;Console&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;WriteLine&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;Hello World!&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: pmingliu, serif !important; font-size: 16px;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-Input-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;當Input參數只有一個參數時，允許不使用()包住輸入參數：&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;pre&gt;ShowMessage FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&#39;Alert Message&#39;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: purple;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;a href=&quot;https://sites.google.com/site/sheaurencsharp/topic/lambda-yun-suan&quot; target=&quot;_blank&quot;&gt;出處&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/8357517946054681578/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/8357517946054681578?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/8357517946054681578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/8357517946054681578'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/c-lambda.html' title='C# - Lambda運算'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-8231392729081040739</id><published>2012-05-18T17:42:00.002+08:00</published><updated>2012-05-18T17:44:32.529+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>C# - delegate(委派)</title><content type='html'>&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: medium;&quot;&gt;delegate類似於C語言的Function Pointer，允許定義參考物件來動態指向實體Method，並以呼叫此參考來執行特定實體Method，後來也延伸出&lt;span style=&quot;color: blue;&quot;&gt;匿名委派&lt;/span&gt;的功能，實體Method不需事先定義，而動態指定delegate運作邏輯。&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;h4 style=&quot;font-family: pmingliu, serif !important;&quot;&gt;



&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-delegate-Method-Input-Output-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;定義delegate參考物件，需與預定指向之實體Method有相同的Input/Output參數型別：&lt;/h4&gt;
&lt;pre&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delegate&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; ShowMessage&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;h4 style=&quot;font-family: pmingliu, serif !important;&quot;&gt;



&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-n-Input-Output-Method-delegate-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;定義n個相同Input/Output參數的實體Method，提供delegate指派：&lt;/h4&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; Alert&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; Confirm&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;confirm&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;confirm(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt; CustomMessage&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;customMessage&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;customMessage(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;h4 style=&quot;font-family: pmingliu, serif !important;&quot;&gt;



&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-Method-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;指向實體Method&amp;amp;執行：&lt;/h4&gt;
&lt;div&gt;
&lt;pre&gt;ShowMessage FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; ShowMessage&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;Confirm&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;Alert Message&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; ShowMessage&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;Alert&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;Confirm Message&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; ShowMessage&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;CustomMessage&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FuncttionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;CustomMessage Message&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: pmingliu, serif !important; font-size: 16px;&quot;&gt;



&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=6669564109387951396&quot; name=&quot;TOC-Method-Delegate-Method-&quot; style=&quot;color: #4e7dbf;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;color: blue;&quot;&gt;匿名委派&lt;/span&gt;，不再事先定義實體Method，於Delegate宣告同時，指定參考Method的邏輯：&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;times new roman&#39;, serif; font-size: 16px;&quot;&gt;
&lt;pre&gt;ShowMessage FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delegate&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;alert(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;Alert Message&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;ShowMessage FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delegate&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;confirm&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;confirm(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;Confirm Message&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;ShowMessage FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;delegate&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;string&lt;/span&gt; message&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;ClientScript&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;RegisterClientScriptBlock&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;GetType&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;customMessage&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;customMessage(&#39;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;message&lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;
FunctionRef&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;CustomMessage Message&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://sites.google.com/site/sheaurencsharp/01-ji-chu/04-delegate-wei-pai&quot; target=&quot;_blank&quot;&gt;出處&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/8231392729081040739/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/8231392729081040739?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/8231392729081040739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/8231392729081040739'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/c-delegate.html' title='C# - delegate(委派)'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-189156455658785958</id><published>2012-05-11T20:46:00.000+08:00</published><updated>2012-05-11T20:46:05.581+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="勵志文章"/><title type='text'>馬太效應（Matthew Effect）</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: medium;&quot;&gt;馬太效應（Matthew Effect）&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: medium;&quot;&gt;聖經·馬太福音的預言：&quot;凡有的，還要加給他，叫他有餘；凡沒有的，連他所有的也要奪去。&quot;&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: medium;&quot;&gt;我個人覺得是一種良性循環與惡性循環的說明，好的會越來越好，差的會越來越差，&lt;/span&gt;  &lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: medium;&quot;&gt;適用範圍很廣，難怪會變成專有名詞。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/189156455658785958/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/189156455658785958?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/189156455658785958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/189156455658785958'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/matthew-effect.html' title='馬太效應（Matthew Effect）'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-3772505429914820322</id><published>2012-05-07T19:56:00.002+08:00</published><updated>2012-05-07T19:56:10.992+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="勵志文章"/><category scheme="http://www.blogger.com/atom/ns#" term="好的文章"/><title type='text'>天下雜誌：2012年，投資、求職的趨勢是什麼？</title><content type='html'>&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;&lt;b&gt;1. 幸福市場：&lt;/b&gt;居家生活(食品、觀光、餐飲、百貨)，5年成長46%&lt;wbr&gt;&lt;/wbr&gt;，食品爆發力最強。&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;&lt;b&gt;2. 綠能市場：&lt;/b&gt;節能減碳產品(光電(太陽能/LED)、運輸(&lt;wbr&gt;&lt;/wbr&gt;腳踏車)、衛生環境服務(資源回收))，5年成長43%。&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;&lt;b&gt;3. 健康市場：&lt;/b&gt;醫療保健、照護和健康保障(製藥、生物科技、&lt;wbr&gt;&lt;/wbr&gt;人壽保險)，5年成長35%，主要成長在壽險業。&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;&lt;b&gt;4. 行動市場：&lt;/b&gt;無空間限制的溝通(IC設計、通訊、光電(觸控))，&lt;wbr&gt;&lt;/wbr&gt;5年成長30%，觸控仍是發展重點。&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;以我習慣看長期穩定的投資標的來說：&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;食品、觀光、餐飲、百貨、運輸(腳踏車)、衛生環境服務(&lt;wbr&gt;&lt;/wbr&gt;資源回收)、製藥、壽險，&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;算是到我老了都還不會倒的產業別，&lt;wbr&gt;&lt;/wbr&gt;所以會從中去找適合的標的物來投資，&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: sans-serif;&quot;&gt;食品、餐飲這一年才爆發過，&lt;wbr&gt;&lt;/wbr&gt;所以以投資來說可能暫時不會列入優先考慮的標的物。&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;div style=&quot;color: darkslategrey; font-family: 新細明體; font-size: 18px; text-indent: 1em;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/3772505429914820322/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/3772505429914820322?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/3772505429914820322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/3772505429914820322'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/2012.html' title='天下雜誌：2012年，投資、求職的趨勢是什麼？'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6669564109387951396.post-5236769348184944492</id><published>2012-05-07T19:54:00.000+08:00</published><updated>2012-05-07T19:54:08.076+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="勵志文章"/><category scheme="http://www.blogger.com/atom/ns#" term="好的文章"/><title type='text'>天下雜誌：６招「討好」主管　讓他罵不到你</title><content type='html'>前陣子跟朋友談到職場的一些紛爭，在工作場合中都有被捅或者紛爭的經驗，我個人是覺得所謂的工作經驗就是去了解跟經歷過一些職場文化與學習如何在其中保護自己與避免傷害別人，天下雜誌這部分我覺得說得很簡潔扼要，而且入門容易。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;６招「討好」主管　讓他罵不到你：&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;說到做到，做不到就說做不到。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;永遠都不要有「驚喜」&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;對細節瞭若指掌&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;別害怕提出指正&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;把握時間長話短說&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;清楚你真正的工作內容&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;出處：&lt;a href=&quot;http://www.cw.com.tw/article/articleLogin.action?id=5032541&amp;amp;login=true&amp;amp;page=1&quot; target=&quot;_blank&quot;&gt;天下雜誌&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sheauren.blogspot.com/feeds/5236769348184944492/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6669564109387951396/5236769348184944492?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/5236769348184944492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6669564109387951396/posts/default/5236769348184944492'/><link rel='alternate' type='text/html' href='http://sheauren.blogspot.com/2012/05/blog-post_07.html' title='天下雜誌：６招「討好」主管　讓他罵不到你'/><author><name>瞇瞇(Ray)</name><uri>http://www.blogger.com/profile/02427894490258285441</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zLyrLTuh1TCadiAR_FnImA-XkCKgmY8fCfcT-2Gpr1LfZ9svhRJPykpxQXvi18SIuiJo5y8Nw-J7TewDiiamWwzlucl_xlUZR1h2Pj1-sJAmrOqyLFlUcPW9NsYJwA/s220/%E7%9B%B8%E6%9C%AC%E5%B0%81%E9%9D%A2-%E5%87%BA%E5%85%A9%E5%BC%B5.jpg'/></author><thr:total>0</thr:total></entry></feed>