<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>追風箏的小孩</title>
	<atom:link href="http://m955.com/wp/feed" rel="self" type="application/rss+xml" />
	<link>http://m955.com/wp</link>
	<description></description>
	<lastBuildDate>Thu, 03 Nov 2011 14:47:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[WP] Fatal error: Allowed memory size of 33554432 bytes exhausted 一些解決方案</title>
		<link>http://m955.com/wp/archives/276</link>
		<comments>http://m955.com/wp/archives/276#comments</comments>
		<pubDate>Thu, 03 Nov 2011 14:47:32 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[架站]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/276</guid>
		<description><![CDATA[會出現這個問題，通常是 php.ini 內的記憶體設的過小，經過搜尋，有一些解決方案如下：
http://cc.80sbar.com/wordpress-3-1-fatal-error-allowed-memory-size-of-33554432-bytes-exhausted-solution.html... ]]></description>
			<content:encoded><![CDATA[<p>會出現這個問題，通常是 php.ini 內的記憶體設的過小，經過搜尋，有一些解決方案如下：</p>
<p><a href="http://cc.80sbar.com/wordpress-3-1-fatal-error-allowed-memory-size-of-33554432-bytes-exhausted-solution.html" target="_blank">http://cc.80sbar.com/wordpress-3-1-fatal-error-allowed-memory-size-of-33554432-bytes-exhausted-solution.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/276/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>主機移轉至G型主機</title>
		<link>http://m955.com/wp/archives/275</link>
		<comments>http://m955.com/wp/archives/275#comments</comments>
		<pubDate>Thu, 03 Nov 2011 13:51:53 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[亂講]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/275</guid>
		<description><![CDATA[今天主機移轉至G型主機，這是部落格架設以來第一次搬家，本來擔心移轉過程會出現問題，不過一切還蠻順利的！... ]]></description>
			<content:encoded><![CDATA[<p>今天主機移轉至G型主機，這是部落格架設以來第一次搬家，本來擔心移轉過程會出現問題，不過一切還蠻順利的！</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/275/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>日本311地震與台灣921地震之間的大盤指數比較</title>
		<link>http://m955.com/wp/archives/267</link>
		<comments>http://m955.com/wp/archives/267#comments</comments>
		<pubDate>Thu, 17 Mar 2011 16:38:51 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/267</guid>
		<description><![CDATA[2011年3月11日（星期五）日本發生芮氏規模9.0的大地震，不過地震發生時亞洲股市大多已經收盤，所以未能反應，而實際情況也未明朗化，不過星期一（3月14日）開盤大家都挫在等，然而台灣加... ]]></description>
			<content:encoded><![CDATA[<p>2011年3月11日（星期五）日本發生芮氏規模9.0的大地震，不過地震發生時亞洲股市大多已經收盤，所以未能反應，而實際情況也未明朗化，不過星期一（3月14日）開盤大家都挫在等，然而台灣加權卻只意思意思的只下跌了47.8點，還以為風暴已經過去，大家都可以安心睡覺了，誰知這只是剛開始而已。</p>
<p>星期二（3月15日）一開盤下跌100多點，我以為只是延續跌勢，而且也不算多，所以就出門了，誰知道一到客戶家，打開電視，竟然一度下跌400多點，生意也別談了，大家都拿起電話，撥給營業員吼叫。</p>
<p>場景轉換到工地（3月17日），只看到師傅中午休息時拿起智慧型手機看盤，我問說：「進場買了沒？」，他說：「沒，趁昨天有漲一些，全賣光了！」，看來這次大家都有給他嚇到。</p>
<p>來看看咱們921時的加權指數表現</p>
<p> <b><font color="#0000ff">1999年9月21日集集大地震</font></b><br />
<table id="table_style" border="1" cellspacing="0" cellpadding="2" width="500">
<tbody>
<tr>
<td valign="top" width="99">日期</td>
<td valign="top" width="97">加權指數</td>
<td valign="top" width="88">漲跌幅</td>
<td valign="top" width="216">備註</td>
</tr>
<tr>
<td valign="top" width="99">1999/09/20</td>
<td valign="top" width="97">7,972.14</td>
<td valign="top" width="88">&#160;</td>
<td valign="top" width="216">計算基期</td>
</tr>
<tr>
<td valign="top" width="99">1999/09/27</td>
<td valign="top" width="97">7,759.93</td>
<td valign="top" width="88">-2.73%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1999/09/28</td>
<td valign="top" width="97">7,577.85</td>
<td valign="top" width="88">-5.20%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1999/09/29</td>
<td valign="top" width="97">7,615.45</td>
<td valign="top" width="88">-4.68%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1999/09/30</td>
<td valign="top" width="97">7,598.79</td>
<td valign="top" width="88">-4.91%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1999/12/21</td>
<td valign="top" width="97">7,934.26</td>
<td valign="top" width="88">-0.48%</td>
<td valign="top" width="216">3個月後</td>
</tr>
<tr>
<td valign="top" width="99">2000/03/21</td>
<td valign="top" width="97">9,004.48</td>
<td valign="top" width="88">11.46%</td>
<td valign="top" width="216">6個月後，阿扁當選</td>
</tr>
<tr>
<td valign="top" width="99">2000/06/21</td>
<td valign="top" width="97">8,637.60</td>
<td valign="top" width="88">7.70%</td>
<td valign="top" width="216">9個月後</td>
</tr>
<tr>
<td valign="top" width="99">2000/09/21</td>
<td valign="top" width="97">6,920.90</td>
<td valign="top" width="88">-15.19%</td>
<td valign="top" width="216">12個月後</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p>2000年3月18日舉辦總統大選，同年4月13日爆發網路泡沫，道瓊跌628點，為事件導火線，加權指數在隔年2001年9月3日創下了3411.68的低點，接著走了快兩年的空頭，大家都把矛頭指向阿扁，2000年這次經濟危機其實是全球性的，當時誰來當總統，結局都是一樣。</p>
<p>&#160;</p>
<p>接著來看看1995年版神大地震時當時日經指數的變化</p>
<p> <b><font color="#0000ff">1995年1月17日版神大地震</font></b><br />
<table id="table_style" border="1" cellspacing="0" cellpadding="2" width="502">
<tbody>
<tr>
<td valign="top" width="99">日期</td>
<td valign="top" width="97">加權指數</td>
<td valign="top" width="88">漲跌幅</td>
<td valign="top" width="216">備註</td>
</tr>
<tr>
<td valign="top" width="99">1995/01/17</td>
<td valign="top" width="97">19241.3</td>
<td valign="top" width="88">&#160;</td>
<td valign="top" width="216">計算基期</td>
</tr>
<tr>
<td valign="top" width="99">1995/01/23</td>
<td valign="top" width="97">17785.5</td>
<td valign="top" width="88">-8.19%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1995/01/24</td>
<td valign="top" width="97">18060.7</td>
<td valign="top" width="88">-6.54%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1995/01/25</td>
<td valign="top" width="97">18159.5</td>
<td valign="top" width="88">-5.96%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1995/01/26</td>
<td valign="top" width="97">18070.8</td>
<td valign="top" width="88">-6.48%</td>
<td valign="top" width="216">&#160;</td>
</tr>
<tr>
<td valign="top" width="99">1995/04/21</td>
<td valign="top" width="97">16968.2</td>
<td valign="top" width="88">-13.40%</td>
<td valign="top" width="216">3個月後</td>
</tr>
<tr>
<td valign="top" width="99">1995/07/21</td>
<td valign="top" width="97">16589.1</td>
<td valign="top" width="88">-15.99%</td>
<td valign="top" width="216">6個月後，落底</td>
</tr>
<tr>
<td valign="top" width="99">1995/10/23</td>
<td valign="top" width="97">8,637.60</td>
<td valign="top" width="88">-5.98%</td>
<td valign="top" width="216">9個月後</td>
</tr>
<tr>
<td valign="top" width="99">1995/12/21</td>
<td valign="top" width="97">6,920.90</td>
<td valign="top" width="88">2.10%</td>
<td valign="top" width="216">12個月後</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p>1995年1月17日版神大地震，官方統計有6434人死亡，43792人受傷，房屋受創而必須住到組合屋的有32萬人，日經指數於6個月後觸底，接著開使反彈到1996年6月26日達最高點22666.80點，漲幅為37％。</p>
<p>隨後1997年爆發亞洲金融風暴，2000年網路泡沫，從此日本進入失落的十年，至今2011年再也沒觸及22666的歷史高點。</p>
<p>&#160;</p>
<p>接著來看看1995年版神大地震時當時日經指數、台灣加權與美國道瓊的指數變化</p>
<p><a href="http://farm6.static.flickr.com/5131/5534247135_0732d156d9_b.jpg" target="_blank" rel="lightbox"><img src="http://farm6.static.flickr.com/5131/5534247135_0732d156d9.jpg" /></a> </p>
<p>當時台灣和日本的連結性很強，所以當日本因地震重挫時，台灣也好不到哪裡去，日本於地震發生後半年觸底，不過台灣卻盤了快一年才觸底，反觀道瓊指數卻向吃了威而剛一樣，一路向上跑。</p>
<p>而今天日本同樣又發生大地震，但是台灣和日本的連結性卻沒有當年這麼強，所以大概應該算是個短期利空，先觀察個一個月再說，還是勿躁進，不過還是得看反應爐到底會不會爆，如果爆了可就不是1000點可以解決的。</p>
<p>原物料大概會因為日本的重建需求而變的更變本加厲，美國FED再不升息，通膨的壓力可就越來越大了。</p>
<p>以上觀點純屬個人觀點。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/267/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我有罪...</title>
		<link>http://m955.com/wp/archives/264</link>
		<comments>http://m955.com/wp/archives/264#comments</comments>
		<pubDate>Thu, 17 Mar 2011 13:30:18 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[亂講]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/264</guid>
		<description><![CDATA[我有罪，因為我開車經過檳榔攤，會轉頭過去看檳榔西施&#8230;
我有罪，因為我一年沒有買股票&#8230;
我有罪，因為我兩年沒有寫部落格&#8230;
再經歷過2008年金融海嘯後，我的身心俱疲，已經無... ]]></description>
			<content:encoded><![CDATA[<p>我有罪，因為我開車經過檳榔攤，會轉頭過去看檳榔西施&#8230;</p>
<p>我有罪，因為我一年沒有買股票&#8230;</p>
<p>我有罪，因為我兩年沒有寫部落格&#8230;</p>
<p>再經歷過2008年金融海嘯後，我的身心俱疲，已經無法在網路上大放厥詞，我要為我的過去的言論向大家道歉，如果你有參考我的文章買股票而套牢，那請您自己負責，因為我到現在才弄清楚，原來我是一個嫩逼。</p>
<p>以上言論謹代表個人意見！</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/264/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows 內建的影片合併功能</title>
		<link>http://m955.com/wp/archives/260</link>
		<comments>http://m955.com/wp/archives/260#comments</comments>
		<pubDate>Fri, 12 Nov 2010 12:50:44 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/260</guid>
		<description><![CDATA[打開cmd，DOS視窗，所謂命令提示列視窗，別說你不知道！！
在影片所在目錄，輸入以下命令
回車，完成！！
copy /b 001.avi+002.avi 003.avi... ]]></description>
			<content:encoded><![CDATA[<p>打開cmd，DOS視窗，所謂命令提示列視窗，別說你不知道！！</p>
<p>在影片所在目錄，輸入以下命令</p>
<p>回車，完成！！</p>
<p>copy /b 001.avi+002.avi 003.avi</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/260/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>融資斷頭價位的計算</title>
		<link>http://m955.com/wp/archives/259</link>
		<comments>http://m955.com/wp/archives/259#comments</comments>
		<pubDate>Thu, 01 Jul 2010 09:49:07 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/259</guid>
		<description><![CDATA[常在書籍上看到「等待融資斷頭時，就可以慢慢分批買進」，但是到底所謂「融資斷頭」價位是要如何計算呢？
通常我們在融資時，會看到規則上面寫所謂「融資維持率」，只要你低於這個維... ]]></description>
			<content:encoded><![CDATA[<p>常在書籍上看到「等待融資斷頭時，就可以慢慢分批買進」，但是到底所謂「融資斷頭」價位是要如何計算呢？</p>
<p>通常我們在融資時，會看到規則上面寫所謂「融資維持率」，只要你低於這個維持率，券商就會寄催繳單叫你補錢，繳不出錢的，券商就會把你的持股賣出，它才不管你套多少，只想收你利息錢。</p>
<p>不過我看不懂「融資維持率」，我相信很多人看不懂也在使用融資買股，個人建議能不用融資，就盡量別用。</p>
<p> <span id="more-259"></span>
<p>「融資維持率」公式如下：</p>
<p><img src="http://farm5.static.flickr.com/4119/4751714574_b971b57ba8_b.jpg" /> </p>
<p>簡單來說，比如說你融資買進一張100塊的股票，融資成數6成</p>
<p>那你的維持率=100 * 1000 / 60000 = 167%   <br />X / 60000 = 120%，X = 72塊</p>
<p>所以當你的股價低於72塊就需要補擔品金，不補的話，就會被斷頭。</p>
<p>所以，快速的算法是，你融資的股票價錢 * 0.72，就是會被斷頭的價錢</p>
<p>比如說，你融資買50塊的股票，在 50 * 0.72 = 36塊時會被斷頭。</p>
<p>文章參考於：<a href="http://tw.myblog.yahoo.com/jw!oK9tZceCFQNXvuvgM5.r4fgC0css/article?mid=732&amp;sc=1" target="_blank">圓夢</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/259/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[Vista事件簿 01] KMPlayer 或 Media Player Classic 播放影片變黑白</title>
		<link>http://m955.com/wp/archives/249</link>
		<comments>http://m955.com/wp/archives/249#comments</comments>
		<pubDate>Fri, 21 Aug 2009 10:40:20 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[Vista事件簿]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/249</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 話說因為買了一台新筆電，所以必須強迫升級到 Vista，離開了熟悉的 XP，踏入看似燦爛的 Vista 世界，竟開啟了一段奇妙的旅程，我將其遇到的事物，寫成這「Vis... ]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 話說因為買了一台新筆電，所以必須強迫升級到 Vista，離開了熟悉的 XP，踏入看似燦爛的 Vista 世界，竟開啟了一段奇妙的旅程，我將其遇到的事物，寫成這「Vista事件簿」，希望可以幫助到跟我一樣在 Vista 迷航的人。</p>
<p>「事件01：KMPlayer 或 Media Player Classic 播放影片變黑白」</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 現在大多數的人都是用 KMPlayer 或 Media Player Classic 搭配 K-Lite Codec Pack 解碼包來播放影片，以上搭配在影音界堪稱「無敵影音播放組」，而小弟我當然也不例外，在 XP 時代我使用「無敵影音播放組」快樂的看著我的毛片，已經有四年之久，於是乎當我踏進 Vista 的世界裡的時候，我感到徬徨無助，於是乎我呼叫「無敵影音播放組」，來慰藉我無助的心靈。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 當我安裝好 KMPlayer + Media Player Classic + K-Lite Codec Pack ，播放影片一看，竟然變成以下德行：</p>
<p><a href="http://farm4.static.flickr.com/3418/3841620061_7738fac1fc_o.jpg" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3418/3841620061_133545c25c_m.jpg" /></a>&#160; <br />（現在要在電腦裡找到有穿衣服的護士，真的很難）</p>
<p> <span id="more-249"></span>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 沒錯，都變成黑白的，這叫我情何以堪啊，當下我的人生隨著畫面瞬間變成黑白，於是乎我開始展開「拯救播放器大作戰」，KMPlayer 從免安裝版本，灌到安裝版本，在重安裝版本，換回免安裝版本，還是於事無補。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 那從 K-Lite Codec Pack 下手好了，一路重 1.46 版灌到最新 5.05 版，幾乎網路上找的到的版本都灌過一次了，結果還是黑白。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 那來重灌 Vista 好了，天殺的，你知道灌好一次 Vista，還要 Update，安裝程式軟體，還要優化，需要花費多少時間嗎？我灌到晚上 3 點半，隔天還要起來上班的心情，真的生不如死，被整了 2 天，結果呢？還是黑白。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 開始 Google，之前就有找過，不過沒有找到相關的解答，這次再找也是抱持著姑且試試的心態，如果找不到的話，就換替代的播放器好了，結果！！！讓我在百度上一個小角落裡找到瞭解決方法。當下試試，竟然變彩色了，天！當下真的有感動到。</p>
<p><a href="http://farm4.static.flickr.com/3422/3842413314_e34ff1d0a0_o.jpg" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3422/3842413314_c101859130_m.jpg" /></a> </p>
<p>&#160;</p>
<p>======================== 來點分隔線吧 ========================</p>
<p><font color="#0000ff" size="5"><strong>[子事件01] 解決 KMPlayer 播放黑白的方法：</strong></font></p>
<p>右鍵 &#8594; 視訊(進階) &#8594; 品質(3GHz)</p>
<p><a href="http://farm4.static.flickr.com/3487/3841620279_f27e9bd17a_o.jpg" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3487/3841620279_76f0fd1dba_m.jpg" /></a> </p>
<p>沒錯！就是這麼簡單！</p>
<p>&#160;</p>
<p>======================== 來點分隔線吧 ========================</p>
<p><font color="#0000ff" size="5"><strong>[子事件02] 解決 Media Player Classic 播放黑白的方法：</strong></font></p>
<p>選項&#160; 輸出&#160; 點選舊式成像</p>
<p><a href="http://farm3.static.flickr.com/2509/3842413690_2b2179546e_o.jpg" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2509/3842413690_a0b7f77bdc_m.jpg" /></a> </p>
<p>效果前後對照：</p>
<p><a href="http://farm3.static.flickr.com/2624/3842413482_38d64ac73d_o.jpg" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2624/3842413482_44b1cf40d7_m.jpg" /></a>&#160;&#160; <a href="http://farm3.static.flickr.com/2623/3841620917_7d6e77e89c_o.jpg" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2623/3841620917_a171767659_m.jpg" /></a> </p>
<p>&#160;</p>
<p>以上獻給無助的兄弟們吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/249/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>今天考丙級軟體設計...</title>
		<link>http://m955.com/wp/archives/248</link>
		<comments>http://m955.com/wp/archives/248#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:00:40 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[亂講]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/248</guid>
		<description><![CDATA[好吧！我承認我槓龜了，今天算白跑一趟，已經是小心再小心了，搜尋以前考過的經驗談，考試前寫下每個題組的重點，不過還是徒勞無功。
原因是：「我根本就買錯書了」，同樣是 CC123 出版... ]]></description>
			<content:encoded><![CDATA[<p>好吧！我承認我槓龜了，今天算白跑一趟，已經是小心再小心了，搜尋以前考過的經驗談，考試前寫下每個題組的重點，不過還是徒勞無功。</p>
<p>原因是：「我根本就買錯書了」，同樣是 CC123 出版的，不過有分 2006 版，及 2008 版，新版本有修正以前出現的 BUG，不過我沒買，所以我不知道。</p>
<p>舉例來說，舊版在題庫方面有是非、選擇兩種，不過今天我到考場才知道，原來軟設的學科已經去掉是非，改成選擇題 80 題，幸好學科還有過，不然真是欲哭無淚，白白浪費這麼多時間。</p>
<p>再買本 2008 版，重新來過吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/248/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows Installer CleanUp 公用程式，解決軟體無法安裝的問題</title>
		<link>http://m955.com/wp/archives/246</link>
		<comments>http://m955.com/wp/archives/246#comments</comments>
		<pubDate>Sun, 02 Aug 2009 11:00:13 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/246</guid>
		<description><![CDATA[最近遇到了 MSN 無法安裝的問題，出現如下訊息：
1.您的電腦已經有較新 Windows Live Messenger 版本&#8230;.
 
2.Windows Live Messenger 安裝失敗，錯誤碼是: &#8216;1603&#8242;。
找了很久都找不出原因，而新增... ]]></description>
			<content:encoded><![CDATA[<p>最近遇到了 MSN 無法安裝的問題，出現如下訊息：</p>
<p><strong><font color="#0000ff">1.您的電腦已經有較新 Windows Live Messenger 版本&#8230;.</font></strong></p>
<p><img src="http://farm4.static.flickr.com/3485/3780046565_b36e7f2dfd_o.png" /> </p>
<p><strong><font color="#0000ff">2.Windows Live Messenger 安裝失敗，錯誤碼是: &#8216;1603&#8242;。</font></strong></p>
<p>找了很久都找不出原因，而新增移除內，也沒有新版的 MSN，所以就這樣一直無法安裝 MSN，後來突然想到，我之前有抓過 MSN9 免安裝版，但是無法執行所以我就刪除它了，應該是這個問題，造成我無法安裝 MSN。</p>
<p>但是我也沒沒辦法移除 MSN9 的安裝訊息，因為在 新增/移除 內沒有選項可供移除，後來 Google 了一下，發現微軟有出 <a href="http://support.microsoft.com/kb/290301/zh-tw" target="_blank">Windows Installer CleanUp</a> 公用程式，可以移除系統內的幽靈程式，使用方法很簡單，選擇您要移除的項目，按下 Remove 按鈕即可。</p>
<p>系統執行畫面如下：</p>
<p><img src="http://farm3.static.flickr.com/2424/3780871474_131ee701c3_o.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/246/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用 ZedGraph 製作統計圖</title>
		<link>http://m955.com/wp/archives/237</link>
		<comments>http://m955.com/wp/archives/237#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:23:30 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[圖表]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/237</guid>
		<description><![CDATA[這幾天研究了 ZedGraph，發現它是一套很好用的畫圖表工具，練習做了一個統計圖，大家參考看看！

PLAIN TEXT
C#:




//記得要加入參考


using ZedGraph;


&#160;


//資料來源&#160; &#160; &#160; &#160; 


privat... ]]></description>
			<content:encoded><![CDATA[<p>這幾天研究了 ZedGraph，發現它是一套很好用的畫圖表工具，練習做了一個統計圖，大家參考看看！</p>
<p><a href="http://farm4.static.flickr.com/3529/3744942595_3e8b5a6bcb_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3529/3744942595_226b42dbe7.jpg"></a></p>
<div class="igBar"><span id="lcsharp-2"><a href="#" onclick="javascript:showPlainTxt('csharp-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-2">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//記得要加入參考</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">using</span> ZedGraph;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//資料來源&nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">private</span> DataTable getDT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DataTable dt = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> DataTable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"學號"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.String"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"姓名"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.String"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"國文"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.Int32"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"英文"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.Int32"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"數學"</span>, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Type</span>.<span style="color: #0000FF;">GetType</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"System.Int32"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510001"</span>, <span style="color: #808080;">"崔昱翰"</span>, <span style="color: #FF0000;color:#800000;">85</span>, <span style="color: #FF0000;color:#800000;">66</span>, <span style="color: #FF0000;color:#800000;">71</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510002"</span>, <span style="color: #808080;">"王詩光"</span>, <span style="color: #FF0000;color:#800000;">65</span>, <span style="color: #FF0000;color:#800000;">92</span>, <span style="color: #FF0000;color:#800000;">88</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510003"</span>, <span style="color: #808080;">"劉育白"</span>, <span style="color: #FF0000;color:#800000;">52</span>, <span style="color: #FF0000;color:#800000;">66</span>, <span style="color: #FF0000;color:#800000;">63</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510004"</span>, <span style="color: #808080;">"許威宇"</span>, <span style="color: #FF0000;color:#800000;">98</span>, <span style="color: #FF0000;color:#800000;">70</span>, <span style="color: #FF0000;color:#800000;">61</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510005"</span>, <span style="color: #808080;">"李佩珊"</span>, <span style="color: #FF0000;color:#800000;">81</span>, <span style="color: #FF0000;color:#800000;">63</span>, <span style="color: #FF0000;color:#800000;">76</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"B9510006"</span>, <span style="color: #808080;">"潘紹興"</span>, <span style="color: #FF0000;color:#800000;">91</span>, <span style="color: #FF0000;color:#800000;">77</span>, <span style="color: #FF0000;color:#800000;">76</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">return</span> dt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//學生成績</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> StudentChart1<span style="color: #000000;">&#40;</span>ZedGraphControl zgc<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Google網域搜尋：Fill site:http://zedgraph.sourceforge.net/documentation</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; GraphPane myPane = zgc.<span style="color: #0000FF;">GraphPane</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DataTable dt = getDT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Set the title and axis labels</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">Title</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"學生成績量化表"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">Title</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"學生姓名"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">YAxis</span>.<span style="color: #0000FF;">Title</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"分數"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PointPairList list1 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> PointPairList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PointPairList list2 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> PointPairList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; PointPairList list3 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> PointPairList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Random rand = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Random<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Generate random data for three curves</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i = <span style="color: #FF0000;color:#800000;">0</span>; i &lt;dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Count</span>; i++<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> x = <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">double</span><span style="color: #000000;">&#41;</span>i;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> y1_chian = Convert.<span style="color: #0000FF;">ToDouble</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"國文"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> y2_eng = Convert.<span style="color: #0000FF;">ToDouble</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"英文"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">double</span> y3_math = Convert.<span style="color: #0000FF;">ToDouble</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"數學"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; list1.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>x, y1_chian<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; list2.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>x, y2_eng<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; list3.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>x, y3_math<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// create the curves</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// BarItem.Bar.Fill(Color) 填入單一顏色</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// BarItem.Bar.Fill(Color, Color, Color, 90) 填入漸層顏色，第4參數是旋轉角度</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem myCurve1 = myPane.<span style="color: #0000FF;">AddBar</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"國文"</span>, list1, Color.<span style="color: #0000FF;">Red</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myCurve1.<span style="color: #0000FF;">Bar</span>.<span style="color: #0000FF;">Fill</span> = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Fill<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">255</span>, <span style="color: #FF0000;color:#800000;">238</span>, <span style="color: #FF0000;color:#800000;">221</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem myCurve2 = myPane.<span style="color: #0000FF;">AddBar</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"英文"</span>, list2, Color.<span style="color: #0000FF;">Blue</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myCurve2.<span style="color: #0000FF;">Bar</span>.<span style="color: #0000FF;">Fill</span> = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Fill<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">221</span>, <span style="color: #FF0000;color:#800000;">255</span>, <span style="color: #FF0000;color:#800000;">238</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem myCurve3 = myPane.<span style="color: #0000FF;">AddBar</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"數學"</span>, list3, Color.<span style="color: #0000FF;">Green</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myCurve3.<span style="color: #0000FF;">Bar</span>.<span style="color: #0000FF;">Fill</span> = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> Fill<span style="color: #000000;">&#40;</span>Color.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">238</span>, <span style="color: #FF0000;color:#800000;">221</span>, <span style="color: #FF0000;color:#800000;">255</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Fill the axis background with a color gradient</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// 背景色</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// myPane.Chart.Fill = new Fill(Color.White, Color.FromArgb(255, 255, 166), 45.0F);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">MajorTic</span>.<span style="color: #0000FF;">IsBetweenLabels</span> = <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//加入X LabelText</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> labels = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> <span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;color:#800000;">6</span><span style="color: #000000;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i = <span style="color: #FF0000;color:#800000;">0</span>; i &lt;dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Count</span>; i++<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; labels<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> = Convert.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">"姓名"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">Scale</span>.<span style="color: #0000FF;">TextLabels</span> = labels; <span style="color: #008080; font-style: italic;">//X軸的說明文字</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">Type</span> = AxisType.<span style="color: #0000FF;">Text</span>;&nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//X軸類型</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//重新計算目前數據範圍</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; zgc.<span style="color: #0000FF;">AxisChange</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// expand the range of the Y axis slightly to accommodate the labels</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// myPane.YAxis.Scale.Max += myPane.YAxis.Scale.MajorStep;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// YAxis最大值</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">YAxis</span>.<span style="color: #0000FF;">Scale</span>.<span style="color: #0000FF;">Max</span> = <span style="color: #FF0000;color:#800000;">110</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Create TextObj's to provide labels for each bar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// 在bar上顯示數值</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; BarItem.<span style="color: #0000FF;">CreateBarLabels</span><span style="color: #000000;">&#40;</span>myPane, <span style="color: #0600FF;">false</span>, <span style="color: #808080;">"f0"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//顯示格點</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">YAxis</span>.<span style="color: #0000FF;">MajorGrid</span>.<span style="color: #0000FF;">IsVisible</span> = <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; myPane.<span style="color: #0000FF;">XAxis</span>.<span style="color: #0000FF;">MajorGrid</span>.<span style="color: #0000FF;">IsVisible</span> = <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/237/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>.Net 第三方繪圖控件 dotnetCharting 和 ZedGraph 比較，</title>
		<link>http://m955.com/wp/archives/235</link>
		<comments>http://m955.com/wp/archives/235#comments</comments>
		<pubDate>Tue, 21 Jul 2009 09:10:50 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[圖表]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/235</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 最近參考了幾個統計圖表控件包，OpenSource 的有 ZedGraph，Nplot 等，但是相比之下還是 ZedGraph 強大，方便一些，其他的感覺還是半成品。

&#160;&#160;&#160;&#160;&#160;&#... ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近參考了幾個統計圖表控件包，OpenSource 的有 <a href="http://zedgraph.org/" target="_blank">ZedGraph</a>，<a href="http://netcontrols.org/nplot/" target="_blank">Nplot</a> 等，但是相比之下還是 ZedGraph 強大，方便一些，其他的感覺還是半成品。
<p><img src="http://farm3.static.flickr.com/2630/3742414956_6a73bc31b8_o.png">
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 收費的套件就多了，只要是商業的報表開發工具都有統計圖表的功能，水晶報表，ActiveReport，Reporting Service，不過要方便，功能單一的還是 <a href="http://www.dotnetcharting.com/" target="_blank">dotnetCharting</a>。下面主要從 winform 使用上說說 ZedGraph 和 dotnetCharting。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 從效果上說 dotnetCharting 確實沒的說，水晶式效果很是炫目，這應該是其最大的賣點。為了便於開發者學習，帶了各種效果的示例代碼。DotnetCharting 在產生統計圖的時候需要設置一個臨時目錄，用來保存產生的統計圖的圖片，dotnetCharting 的圖表效果好，很大程度上是因為它生成了圖片，然後將其顯示在界面上。當然，作為代價，它犧牲了性能。同時，它不支持縮放，雖然你可以通過更改坐標軸的刻度來實現這個功能，但是性能上就差了很多。
<p>如果你對性能要求不高，<a href="http://www.dotnetcharting.com/" target="_blank">dotnetCharting</a> 是非常好的選擇。
<p><img src="http://farm3.static.flickr.com/2601/3742415058_e51fc0c355.jpg">
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ZedGraph 最大的賣點在哪裡？應該是OpenSource，你可以修改代碼以適應自己的需求，例如：ZedGraph 在畫線型圖的時候，線條沒有使用抗鋸齒，你只要修改 Line類的 Default 結構中的預設設置就可以了。和 dotnetCharting 相比，ZedGraph 的效果要差一些，不過，要是自己調整的好，也還不錯，但是 ZedGraph 的優勢不在這裡。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 由於 ZedGraph 是使用 GDI+ 直接在 Canvas 上進行描畫，所以，性能得到了保證，如果你改變坐標軸的刻度，和 dotnetCharing 相比，ZedGraph 的反應速度是很快的。基於此，ZedGraph 提供了很重要的縮放和拖動功能，你可以通過鼠標滾輪進行方法，縮小圖表，可以通過鼠標中鍵來拖動，非常方便。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 對於類似股市的實時走勢，CPU 使用率等實時變化的數據，使用 ZedGraph 也可以很方便地作到。ZedGraph 在基於 PointPairList 作畫，所以你只要在 PointPairList 這個集合中添加新的數據，然後進行重畫就可以實現了，對於性能，上面說了，由於是直接使用 GDI+，性能是比較好的，我測過 400 個點是沒問題的。所以，ZedGraph 對於實時要求比較強的需求也是可以應對的。
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 總結的來說，dotnetCHARTING 產出的圖表效果好，但是性能方面較差，對實時要求強的需求不適應。ZedGraph 開放原始碼，效果比起 dotnetCHARTING 差，但是性能好，能適應有實時要求的數據。
<p>本文章轉貼於：<a title="http://blog.csai.cn/user1/17072/archives/2009/37706.html" href="http://blog.csai.cn/user1/17072/archives/2009/37706.html" target="_blank">http://blog.csai.cn/user1/17072/archives/2009/37706.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/235/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CrystalDiskInfo 快速瞭解硬碟的情形</title>
		<link>http://m955.com/wp/archives/232</link>
		<comments>http://m955.com/wp/archives/232#comments</comments>
		<pubDate>Mon, 20 Jul 2009 16:38:20 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[綠色軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/232</guid>
		<description><![CDATA[ 
這是一套綠色軟體，開放原始碼，免安裝，支援中文系統，CrystalDiskInfo 有助於我們瞭解目前電腦中工作的硬碟，健康情形如何，其實最主要我還是看「使用時間」的多少，來判定硬碟的狀況... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm4.static.flickr.com/3464/3738913845_7e0aa1a27b_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3464/3738913845_230fb196b7.jpg"></a> </p>
<p>這是一套綠色軟體，開放原始碼，免安裝，支援中文系統，CrystalDiskInfo 有助於我們瞭解目前電腦中工作的硬碟，健康情形如何，其實最主要我還是看「使用時間」的多少，來判定硬碟的狀況如何！</p>
<p>下載：<a href="http://doiop.com/lhn95f" target="_blank">CrystalDiskInfo 2.1.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/232/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate32 超強本地端檔案搜尋軟體</title>
		<link>http://m955.com/wp/archives/230</link>
		<comments>http://m955.com/wp/archives/230#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:47:29 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[綠色軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/230</guid>
		<description><![CDATA[如果你有使用過 Linux 上的 Locate 搜尋功能，一定對此超快的檔案搜尋感到記憶深刻，Locate 的運作原理是在本機上建立一個索引檔，在找檔案的時候，參考此索引檔，所以才會很快，不過也有一... ]]></description>
			<content:encoded><![CDATA[<p>如果你有使用過 Linux 上的 <a href="http://linux.vbird.org/linux_basic/0220filemanager.php#locate" target="_blank">Locate</a> 搜尋功能，一定對此超快的檔案搜尋感到記憶深刻，Locate 的運作原理是在本機上建立一個索引檔，在找檔案的時候，參考此索引檔，所以才會很快，不過也有一個缺點，索引檔必須常更新，已確保找出來的檔案是正確的，在 Linux 上我們必須藉助 Script 、或排程來達成自動更新的效果。</p>
<p>現在Win32上也有類似的搜尋軟體，Locate32 它的原理，也是建立索引檔來搜尋，內見排程功能，可以設定自動更新。建議每天至少更新一次。</p>
<p>我們可以丟掉 Windows 內建的搜尋了。</p>
<p>官方下載：<a title="http://locate32.net/index.php" href="http://locate32.net/index.php" target="_blank">http://locate32.net/index.php</a></p>
<p>中文化下載：<a title="http://portable.easylife.tw/397" href="http://portable.easylife.tw/397" target="_blank">http://portable.easylife.tw/397</a></p>
<p><img src="http://farm3.static.flickr.com/2634/3725996961_84bdc9e6a1_o.png"></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/230/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Virtual Floppy Drive（虛擬軟碟機）</title>
		<link>http://m955.com/wp/archives/221</link>
		<comments>http://m955.com/wp/archives/221#comments</comments>
		<pubDate>Thu, 16 Jul 2009 08:39:36 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>
		<category><![CDATA[綠色軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=221</guid>
		<description><![CDATA[雖然軟碟機已經逐漸在PC上消失，但是在某些場合還是必須要用到，例如我最近遇到的問題，我報名丙級軟體設計，簡章附的資料必須在軟碟機中執行，搞的我一個頭兩個大，去買一個也不是，... ]]></description>
			<content:encoded><![CDATA[<p>雖然軟碟機已經逐漸在PC上消失，但是在某些場合還是必須要用到，例如我最近遇到的問題，我報名丙級軟體設計，簡章附的資料必須在軟碟機中執行，搞的我一個頭兩個大，去買一個也不是，不用軟碟練習也不是。</p>
<p>幸好找到這一個 Virtual Floppy Drive（VFD虛擬軟碟機），可以在電腦上模擬一個A：磁碟機，可讀可寫，方便的很。</p>
<p>官方下載：<a title="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" href="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" target="_blank">http://chitchat.at.infoseek.co.jp/vmware/vfd.html</a></p>
<p>一、解開壓縮後執行，先切換到 Driver 頁面，在 Driver File 選擇目錄下的 vfd.sys，然後選擇 Install 安裝，接著點選 Start，虛擬裝置就開始運行了。</p>
<p align="left">&nbsp;<a href="http://farm3.static.flickr.com/2454/3726390726_e223714f98_o.png" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2454/3726390726_4901e61c5b_m.jpg"></a></p>
<p>&nbsp;</p>
<p>二、接著切換到 Driver0 頁面，點選上方的 Driver Letter 的 Change 按鈕，選擇裝置的代號，一般預設為 A 槽，按下 OK 選擇完成後，就可以在「我的電腦」裡，看見 3.5軟碟機(A:) 出現了。</p>
<p align="left"><img src="http://farm3.static.flickr.com/2537/3726391132_997e3062ff_o.png">&nbsp;&nbsp; <img src="http://farm4.static.flickr.com/3467/3725585323_524709f24f_o.png"> </p>
<p>&nbsp;</p>
<p>三、建立磁碟機的映像檔，同樣在 Driver0 頁面，點選下方 Open/Create 按鈕，在開啟的新視窗中，點選 Create 按鈕，建立映像檔，這時候進入「3.5軟碟機(A:)」中，就可以存取檔案了。</p>
<p align="left"><a href="http://farm3.static.flickr.com/2628/3725585123_2eb82c10b9_o.png" target="_blank" rel="lightbox"><img src="http://farm3.static.flickr.com/2628/3725585123_5770ee5242_m.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/221/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>連結資料庫四大步驟（以 ASP.NET 為例）</title>
		<link>http://m955.com/wp/archives/219</link>
		<comments>http://m955.com/wp/archives/219#comments</comments>
		<pubDate>Mon, 22 Jun 2009 13:54:33 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=219</guid>
		<description><![CDATA[其實 WinForm 跟 WebForm 在連結資料庫方面其實差不了太多。
PLAIN TEXT
C#:




protected void Page_Load&#40;object sender, EventArgs e&#41;


&#123;


&#160; &#160; //第一：連結SQL資料庫


&#160; &#160; string connstr = @"Data Sou... ]]></description>
			<content:encoded><![CDATA[<p>其實 WinForm 跟 WebForm 在連結資料庫方面其實差不了太多。</p>
<div class="igBar"><span id="lcsharp-4"><a href="#" onclick="javascript:showPlainTxt('csharp-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-4">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第一：連結SQL資料庫</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #FF0000;">string</span> connstr = <span style="color: #808080;">@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\test_Data.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; SqlConnection conn = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> SqlConnection<span style="color: #000000;">&#40;</span>connstr<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; conn.<span style="color: #0000FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第二：執行SQL指令</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #FF0000;">string</span> sqlstr = <span style="color: #808080;">"select * from test"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; SqlCommand cmd = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> SqlCommand<span style="color: #000000;">&#40;</span>sqlstr,conn<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; SqlDataReader dr = cmd.<span style="color: #0000FF;">ExecuteReader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第三：印出資料</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">while</span> <span style="color: #000000;">&#40;</span>dr.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"文章編號："</span> + dr<span style="color: #000000;">&#91;</span><span style="color: #808080;">"id"</span><span style="color: #000000;">&#93;</span> + <span style="color: #808080;">"&lt;br&gt;"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"日　　期："</span> + dr<span style="color: #000000;">&#91;</span><span style="color: #808080;">"test_time"</span><span style="color: #000000;">&#93;</span> + <span style="color: #808080;">"&lt;br&gt;"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"文章標題："</span> + dr<span style="color: #000000;">&#91;</span><span style="color: #808080;">"title"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"&lt;hr&gt;"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//第四：關閉連線</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cmd.<span style="color: #0000FF;">Cancel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dr.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; conn.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; conn.<span style="color: #0000FF;">Dispose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>文章參考於：<a href="http://findbook.tw/book/9789862042380/basic" target="_blank">ASP.NET專題實務-適用C# 作者：周棟祥</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/219/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>驗證 ASP.NET Web 網頁中的使用者輸入</title>
		<link>http://m955.com/wp/archives/210</link>
		<comments>http://m955.com/wp/archives/210#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:04:58 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=210</guid>
		<description><![CDATA[工具：RequiredFieldValidator
驗證：必要輸入項
說明：確保使用者不會略過輸入項目。如需詳細資訊，請參閱 HOW TO：驗證 ASP.NET 伺服器控制項的必要項目。
工具：CompareValidator
驗證：與某個值的比... ]]></description>
			<content:encoded><![CDATA[<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.requiredfieldvalidator.aspx" target="_blank">RequiredFieldValidator</a><br />
驗證：必要輸入項<br />
說明：確保使用者不會略過輸入項目。<a href="http://msdn.microsoft.com/zh-tw/library/e78xxk8k.aspx" target="_blank">如需詳細資訊，請參閱 HOW TO：驗證 ASP.NET 伺服器控制項的必要項目。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.comparevalidator.aspx" target="_blank">CompareValidator</a><br />
驗證：與某個值的比較<br />
說明：使用比較運算子 (例如小於、等於、大於)，將使用者輸入的值與常數值、另一個控制項的值，或特定資料型別做比較。<a href="http://msdn.microsoft.com/zh-tw/library/ad548tzy.aspx" target="_blank">如需詳細資訊，請參閱 HOW TO：比對特定值驗證 ASP.NET 伺服器控制項和 HOW TO：比對資料型別驗證 ASP.NET 伺服器控制項。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.rangevalidator.aspx" target="_blank">RangeValidator</a><br />
驗證：範圍檢查<br />
說明：檢查使用者的輸入是否介於指定的上下限之間。您可以檢查成對的數字、英文字母字元和日期內的範圍。如需詳細資訊，<a href="http://msdn.microsoft.com/zh-tw/library/bk58fdzx.aspx" target="_blank">請參閱 HOW TO：比對範圍值驗證 ASP.NET 伺服器控制項。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.regularexpressionvalidator.aspx" target="_blank">RegularExpressionValidator</a><br />
驗證：樣式比對<br />
說明：檢查輸入是否符合規則運算式 (Regular Expression) 所定義的樣式。這類的驗證可讓您檢查字元 (例如電子郵件地址、電話號碼、郵遞區號等項目中的字元) 的預期順序。<a href="http://msdn.microsoft.com/zh-tw/library/6xh899wy.aspx" target="_blank">如需詳細資訊，請參閱 HOW TO：比對模式驗證 ASP.NET 伺服器控制項。</a></p>
<p>工具：<a href="http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.customvalidator.aspx" target="_blank">CustomValidator</a><br />
驗證：使用者定義<br />
說明：使用您自己撰寫的邏輯驗證使用者的輸入。這類驗證可讓您檢查執行階段時衍生的值。如需詳細資訊，<a href="http://msdn.microsoft.com/zh-tw/library/f5db6z8k.aspx" target="_blank">請參閱 HOW TO：使用 ASP.NET 伺服器控制項的自訂函式驗證</a>和 <a href="http://msdn.microsoft.com/zh-tw/library/s5z00s5e.aspx" target="_blank">HOW TO：比對資料庫值驗證 ASP.NET 伺服器控制項。</a></p>
<p><a href="http://msdn.microsoft.com/zh-tw/library/bwd43d0x.aspx" target="_blank"><br />
MSDN</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/210/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 VS2005 工具列中增加 AJAX 擴充功能</title>
		<link>http://m955.com/wp/archives/203</link>
		<comments>http://m955.com/wp/archives/203#comments</comments>
		<pubDate>Sat, 20 Jun 2009 17:17:20 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=203</guid>
		<description><![CDATA[
　　在 VS20085 工具列中，AJAX 擴充功能這個選項是內建的，不過在 VS2005 中並沒有，現在坊間的書籍大多以 VS2008 為主，會常用到 AJAX 功能，不過如果不更換版本，在 VS2005 中也可以安裝 AJAX 擴... ]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://farm3.static.flickr.com/2244/3644497936_c8bb9ba096_o.png" class="alignnone" width="165" height="138" /></p>
<p>　　在 VS20085 工具列中，AJAX 擴充功能這個選項是內建的，不過在 VS2005 中並沒有，現在坊間的書籍大多以 VS2008 為主，會常用到 AJAX 功能，不過如果不更換版本，在 VS2005 中也可以安裝 AJAX 擴充功能。你必須下載以下檔案（約1MB多）安裝完成後，AJAX 擴充功能就會出現了。</p>
<p>下載檔案：<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&#038;displaylang=en" target="_blank"><br />
ASP.NET AJAX 1.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/203/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[寫程式] 藝術？還是快速開發？</title>
		<link>http://m955.com/wp/archives/201</link>
		<comments>http://m955.com/wp/archives/201#comments</comments>
		<pubDate>Sat, 20 Jun 2009 09:19:22 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=201</guid>
		<description><![CDATA[　　用 Visual Studio 久了會發現一個問題，就是會越來越依賴這個開發工具，因為它什麼都幫你處理好了，程式指令永遠只記得前面三個字母，因為VS有指令自動補齊，連接資料庫有精靈幫忙，管... ]]></description>
			<content:encoded><![CDATA[<p>　　用 Visual Studio 久了會發現一個問題，就是會越來越依賴這個開發工具，因為它什麼都幫你處理好了，程式指令永遠只記得前面三個字母，因為VS有指令自動補齊，連接資料庫有精靈幫忙，管你是 MSSQL 還是 Access，全部按一按搞定，還順便幫你把 Insert、Update、Select、Delete…等 SQL 四大溝通指令寫好了，程式就這麼在拖拉、設定之間開發完成，有的甚至不用寫任何一行指令。</p>
<p>　　以前我很排斥用精靈方式來寫程式，堅持一字一句 Key 出來，不過我發現這會花費很多時間，舉個例子來說好了，寫一個簡單的通訊錄，不包括建資料庫的時間，用傳統手 Key 方式，我大概要花上半天的時間，因為我要拉控制項、設定控制項名稱、寫資料庫連接、資料繫結、資料配接器的 Insert、Update、Select、Delete 四個屬性質、設定 BindSource 導覽列…等，寫完天都黑了。</p>
<p>　　不過如果換成精靈模式寫，大概只要30分鐘就可以搞定，在產出力方面，精靈模式大勝，不過在程式靈活度、和可讀性來說，還是傳統手 Key 方式略勝一籌。</p>
<p>　　站在公司的立場，當然希望程式設計師的產出力越多越好，有些小地方還是用拖拉的就好，藝術這種東西不能當飯吃，VS是一個很邪惡的東西，因為他讓新手認為寫程式是一件很簡單的東西，讓老手離不開它。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/201/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C# string.Format輸出格式</title>
		<link>http://m955.com/wp/archives/176</link>
		<comments>http://m955.com/wp/archives/176#comments</comments>
		<pubDate>Fri, 19 Jun 2009 03:46:49 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=176</guid>
		<description><![CDATA[PLAIN TEXT
C#:




前面補0的數字字串


String.Format&#40;"{0:0000}", 157&#41;; // 輸出 0157


&#160;


前後都補0的數字字串


String.Format&#40;"{0:0000.0000}", 157.42&#41;; // 輸出 0157.4200


&#160;


每3位數&#40;千&#41;加逗... ]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcsharp-7"><a href="#" onclick="javascript:showPlainTxt('csharp-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-7">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">前面補<span style="color: #FF0000;color:#800000;">0</span>的數字字串</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:0000}"</span>, <span style="color: #FF0000;color:#800000;">157</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 0157</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">前後都補<span style="color: #FF0000;color:#800000;">0</span>的數字字串</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:0000.0000}"</span>, <span style="color: #FF0000;color:#800000;">157</span>.<span style="color: #FF0000;color:#800000;">42</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 0157.4200</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">每<span style="color: #FF0000;color:#800000;">3</span>位數<span style="color: #000000;">&#40;</span>千<span style="color: #000000;">&#41;</span>加逗號</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:0,0}"</span>, <span style="color: #FF0000;color:#800000;">38560</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 38,560</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">格式化電話號碼</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:(###) ###-####}"</span>, <span style="color: #FF0000;color:#800000;">8005551212</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 輸出 (800) 555-1212</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">金額的表示</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:$#,##0.00;($#,##0.00);Zero}"</span>, <span style="color: #FF0000;color:#800000;">0</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 這個會顯示 Zero</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:$#,##0.00;($#,##0.00);Zero}"</span>, <span style="color: #FF0000;color:#800000;">1243</span>.<span style="color: #FF0000;color:#800000;">50</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// 這個會顯示 $1,243.50 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>依照上面格式範例 ~ 套用到我的報表要呈現的欄位 ~ 如以下 ~</p>
<div class="igBar"><span id="lcsharp-8"><a href="#" onclick="javascript:showPlainTxt('csharp-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-8">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> DataGrid_ItemDataBound<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">WebControls</span>.<span style="color: #0000FF;">DataGridItemEventArgs</span> e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">Item</span>.<span style="color: #0000FF;">ItemIndex</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != <span style="color: #808080;">"-1"</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; e.<span style="color: #0000FF;">Item</span>.<span style="color: #0000FF;">Cells</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;color:#800000;">0</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span> = <span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"{0:#,0.0}"</span>,<span style="color: #FF0000;">double</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">Item</span>.<span style="color: #0000FF;">Cells</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;color:#800000;">3</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>參考資料來源：<br />
http://blog.stevex.net/index.php/string-formatting-in-csharp/</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/176/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASP.NET 出現訊息「伺服器應用程式無法使用」解決方法</title>
		<link>http://m955.com/wp/archives/190</link>
		<comments>http://m955.com/wp/archives/190#comments</comments>
		<pubDate>Thu, 18 Jun 2009 15:14:10 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=190</guid>
		<description><![CDATA[伺服器應用程式無法使用
您嘗試在此 Web 伺服器上存取的 Web 應用程式目前無法使用。
請按 Web 瀏覽器中的 [重新整理] 按鈕，再試一次。
系統管理員注意:
Web 伺服器的應用程式事件記錄檔中的
... ]]></description>
			<content:encoded><![CDATA[<p>伺服器應用程式無法使用<br />
您嘗試在此 Web 伺服器上存取的 Web 應用程式目前無法使用。<br />
請按 Web 瀏覽器中的 [重新整理] 按鈕，再試一次。</p>
<p>系統管理員注意:<br />
Web 伺服器的應用程式事件記錄檔中的<br />
錯誤訊息詳細說明了這項特定要求失敗原因。<br />
請檢閱這個記錄項目，查看造成錯誤的原因為何。</p>
<p>終於找到<br />
方法解決了~"~</p>
<p>http://blog.xuite.net/giin/blog/13640747</p>
<p>請直接到<br />
[開始]→[執行]→輸入<br />
[　C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\aspnet_regiis.exe -i　] 就行了</p>
<p>最後確認一下預設的IIS執行環境</p>
<p>IIS→預設網站→內容→ASP.NET→確認　版本2.0.50727</p>
<p>應該就OK了!! </p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/190/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>強制關閉處理程序的工具(NTSD)</title>
		<link>http://m955.com/wp/archives/189</link>
		<comments>http://m955.com/wp/archives/189#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:29:53 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/189</guid>
		<description><![CDATA[如果發現有執行程式關不掉   木馬、病毒、當掉的程式皆可使用
按開始-&#62;執行-&#62;輸入 cmd -&#62; 按enter
c:&#62;ntsd -c q -p &#60;&#60;程序識別碼&#62;&#62;
Q.程序識別碼那裡來??

按開始-&#62;執行-&#62;... ]]></description>
			<content:encoded><![CDATA[<p>如果發現有執行程式關不掉   <br />木馬、病毒、當掉的程式皆可使用</p>
<p>按開始-&gt;執行-&gt;輸入 cmd -&gt; 按enter</p>
<p>c:&gt;ntsd -c q -p &lt;&lt;程序識別碼&gt;&gt;</p>
<p>Q.程序識別碼那裡來??</p>
<ol>
<li>按開始-&gt;執行-&gt;輸入taskmgr.exe -&gt; 按enter</li>
<li>檢視-&gt;選擇欄位-&gt; 勾選PID(程序識別碼)-&gt;按確定</li>
<li>然後就能看見PID。</li>
</ol>
<p>適用系統：   <br />windows 2000、window xp(NT系列的應該都可以用)。</p>
<p>windows xp 有其他類似的工具 tasklist和tskill   <br />tasklist：列出所有程序名稱及其他資訊。    <br />tskill：終止程序, tskill &lt;&lt;程序名稱&gt;&gt;。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/189/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>聽趨勢說話(1)</title>
		<link>http://m955.com/wp/archives/188</link>
		<comments>http://m955.com/wp/archives/188#comments</comments>
		<pubDate>Sun, 05 Apr 2009 17:28:31 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/188</guid>
		<description><![CDATA[錢的個性

錢喜歡物以類聚。
錢很害羞。
錢喜歡跟同類在一起，才有安全感。
錢不喜歡獨處。
錢很勢利，喜歡富人，不喜歡窮人。
愛聚集，且喜歡招朋引伴，安全或危險不重要。
聚的越多，... ]]></description>
			<content:encoded><![CDATA[<p>錢的個性</p>
<ol>
<li>錢喜歡物以類聚。</li>
<li>錢很害羞。</li>
<li>錢喜歡跟同類在一起，才有安全感。</li>
<li>錢不喜歡獨處。</li>
<li>錢很勢利，喜歡富人，不喜歡窮人。</li>
<li>愛聚集，且喜歡招朋引伴，安全或危險不重要。</li>
<li>聚的越多，聲勢越大，吸引力越大。</li>
</ol>
<p>操作心法</p>
<ol>
<li>股票沒有量，不會漲，也不會跌。</li>
<li>量一定要大於6日均量，才算大量。</li>
<li>量大三日，必有蹊蹺。</li>
<li>底部量大三日（越大越好），配合價揚，可買。</li>
<li>高價不漲（含跌價），放大量，宜出。</li>
<li>底部放量後，量縮小，價不破可買進。</li>
<li>高價放量，價不創新高，量收小，出股票。</li>
<li>價盤，量走弱，不玩。</li>
<li>以一年的 K 線圖，和成交量來判斷。</li>
<li>大盤的勢，大於個股的勢，不可逆大盤的勢。</li>
</ol>
<p>停損</p>
<ol>
<li>三天不賺砍股票。</li>
<li>損失10％砍股票。</li>
<li>已經損失了10％，不必等3天就砍。</li>
<li>不可手軟。</li>
<li>設停損，不設停利。</li>
<li>股價上揚，到達滿足點，回檔賣出，也是停損的形式，永遠要賣在已經走弱的價之後，唯有這樣才能知道，股價能把你帶到什麼價位去，而不是賣在後悔的股價裡。</li>
<li>寧願停損十次，不願套牢一次。</li>
<li>停損有時後是大勢所迫，而不是個股的失誤。</li>
<li>不要怕錯，能改才能生存。</li>
<li>商人無祖國，投資無忠誠。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/188/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# 如何取得兩個 DateTime 日期之間相差的天數</title>
		<link>http://m955.com/wp/archives/186</link>
		<comments>http://m955.com/wp/archives/186#comments</comments>
		<pubDate>Wed, 04 Feb 2009 14:09:48 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=186</guid>
		<description><![CDATA[PLAIN TEXT
C#:




DateTime dt1 = new DateTime&#40;2008, 12, 31&#41;;


DateTime dt2 = new DateTime&#40;2009, 2, 13&#41;;


TimeSpan s = new TimeSpan&#40;dt2.Ticks - dt1.Ticks&#41;;


MessageBox.Show&#40;Convert.ToString&#40;s.Days&#41;&#41;;


&#160;


... ]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lcsharp-10"><a href="#" onclick="javascript:showPlainTxt('csharp-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-10">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">DateTime dt1 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> DateTime<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">2008</span>, <span style="color: #FF0000;color:#800000;">12</span>, <span style="color: #FF0000;color:#800000;">31</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">DateTime dt2 = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> DateTime<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">2009</span>, <span style="color: #FF0000;color:#800000;">2</span>, <span style="color: #FF0000;color:#800000;">13</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">TimeSpan s = <a href="http://www.google.com/search?q=new+msdn.microsoft.com" target="_blank"><span style="color: #008000;">new</span></a> TimeSpan<span style="color: #000000;">&#40;</span>dt2.<span style="color: #0000FF;">Ticks</span> - dt1.<span style="color: #0000FF;">Ticks</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>Convert.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span>s.<span style="color: #0000FF;">Days</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">//回傳44天，相反則為負值 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>　</p>
<p>參考網址：<br />
<a href="http://blog.miniasp.com/post/2008/01/Find-the-difference-between-two-DateTime.aspx" target="_blank">C# 如何取得兩個 DateTime 日期之間的天數</a><br />
<a href="http://msdn.microsoft.com/zh-tw/library/system.timespan.aspx" target="_blank">TimeSpan MSDN</a></p>
<p>　</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/186/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>列舉 (enum) 資料型別</title>
		<link>http://m955.com/wp/archives/184</link>
		<comments>http://m955.com/wp/archives/184#comments</comments>
		<pubDate>Mon, 02 Feb 2009 14:55:16 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=184</guid>
		<description><![CDATA[　　enum 是一種用來宣告列舉型別 (Enumeration Type) 的關鍵字，是一組列舉清單項目的具名常數所構成的特殊型別，emun 主要目的在提高程式的可讀性，及易維護性，使用 enum 有以下幾點需要注意... ]]></description>
			<content:encoded><![CDATA[<p>　　enum 是一種用來宣告列舉型別 (Enumeration Type) 的關鍵字，是一組列舉清單項目的具名常數所構成的特殊型別，emun 主要目的在提高程式的可讀性，及易維護性，使用 enum 有以下幾點需要注意：</p>
<ol>
<li>enum 不能使用於方法 (Method) 內宣告。</li>
<li>資料型別必須是 byte,sbyte,short,ushort,int,uint,long 或 ulong。</li>
<li>預設資料型別為 int。</li>
<li>float 與 double 不可為 enum 的資料型別。</li>
</ol>
<p>關於列舉的宣告方式如下：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] enum [列舉名稱] : [資料型別]<br />
{<br />
　　[成員1],<br />
　　[成員2],<br />
　　...<br />
　　[成員n]<br />
}
  </td>
</tr>
</table>
<p>　</p>
<p>關列舉範例程式如下：</p>
<div class="igBar"><span id="lcsharp-12"><a href="#" onclick="javascript:showPlainTxt('csharp-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-12">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">public</span> <span style="color: #FF0000;">enum</span> student : <span style="color: #FF0000;">short</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 周杰倫 = <span style="color: #FF0000;color:#800000;">1</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 方文山 = <span style="color: #FF0000;color:#800000;">2</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 蔡依林 = <span style="color: #FF0000;color:#800000;">3</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 王立宏 = <span style="color: #FF0000;color:#800000;">4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//將combox的文字數字轉換成短整數</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">short</span> num = <span style="color: #FF0000;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>cbox.<span style="color: #0000FF;">Text</span> != <span style="color: #808080;">""</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num = <span style="color: #FF0000;">short</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>cbox.<span style="color: #0000FF;">Text</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">switch</span> <span style="color: #000000;">&#40;</span>num<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.周杰倫:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"周杰倫"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.蔡依林:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"蔡依林"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.方文山:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"方文山"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">case</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">short</span><span style="color: #000000;">&#41;</span> student.王立宏:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"王立宏"</span>, <span style="color: #808080;">"明星"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">default</span>:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"所選取數值不在範圍中"</span>,<span style="color: #808080;">"注意"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">break</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><img src="http://farm4.static.flickr.com/3457/3246977289_e5f24e103a_o.png"></img></p>
<p><img src="http://farm4.static.flickr.com/3103/3246977333_71ce6b1b13_o.png"></img></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/184/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>結構 (struct) 資料型別</title>
		<link>http://m955.com/wp/archives/183</link>
		<comments>http://m955.com/wp/archives/183#comments</comments>
		<pubDate>Sat, 31 Jan 2009 17:38:46 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=183</guid>
		<description><![CDATA[struct 是一種用來宣告結構的關鍵字，在結構中包含相關變數，可以將結構視為變數群組，以學生資料 (student) 來說，若要設計其結構，應該包含幾個相關變數，如：學號(num)，姓名(name)、電話(te... ]]></description>
			<content:encoded><![CDATA[<p>struct 是一種用來宣告結構的關鍵字，在結構中包含相關變數，可以將結構視為變數群組，以學生資料 (student) 來說，若要設計其結構，應該包含幾個相關變數，如：學號(num)，姓名(name)、電話(tel)、手機(mobile)、地址(address)等，底下介紹結構的宣告及叫用方式：</p>
<p>結構 (struct) 宣告方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] struct [結構名稱]<br />
{<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　...<br />
}
  </td>
</tr>
</table>
<p>　</p>
<p>結構 (struct) 叫用方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[結構名稱] [變數名稱];
  </td>
</tr>
</table>
<p>　</p>
<p>語法範例：</p>
<div class="igBar"><span id="lcsharp-14"><a href="#" onclick="javascript:showPlainTxt('csharp-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-14">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">public</span> <span style="color: #FF0000;">struct</span> Student</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Num;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Name;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Tel;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Mobile;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Address;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> btnAdd_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//宣告結構</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Student std;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//指定成員變數</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Num</span> = txtNum.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Name</span> = txtName.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Tel</span> = txtTel.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Mobile</span> = txtMobile.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std.<span style="color: #0000FF;">Address</span> = txtAddress.<span style="color: #0000FF;">Text</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">String</span> msg = <span style="color: #808080;">""</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"學號："</span> + std.<span style="color: #0000FF;">Num</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"姓名："</span> + std.<span style="color: #0000FF;">Name</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"電話："</span> + std.<span style="color: #0000FF;">Tel</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"手機："</span> + std.<span style="color: #0000FF;">Mobile</span> + <span style="color: #808080;">"<span style="color: #008080; font-weight: bold;">\n</span>"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg = msg + <span style="color: #808080;">"地址："</span> + std.<span style="color: #0000FF;">Address</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>msg, <span style="color: #808080;">"學生基本資料"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><img src="http://farm4.static.flickr.com/3257/3241098181_89a0bfb401_o.png" alt="" /> </p>
<p><img src="http://farm4.static.flickr.com/3079/3241943046_c7b3fbe888_o.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/183/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>列舉、結構、類別的比較表</title>
		<link>http://m955.com/wp/archives/182</link>
		<comments>http://m955.com/wp/archives/182#comments</comments>
		<pubDate>Sat, 31 Jan 2009 16:12:57 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://m955.com/wp/?p=182</guid>
		<description><![CDATA[


enum
struct
class


中文意義
列舉
結構
類別


成員資料型別
受限制、而且只能為整數型別
不受限制
不受限制


叫用方法
直接輸入列舉名稱
宣告結構變數
宣告類別變數


使用 static 修飾詞
否
... ]]></description>
			<content:encoded><![CDATA[<table id="table_style" border="1">
<tr>
<td bgcolor="#dddddd"></td>
<td bgcolor="#dddddd">enum</td>
<td bgcolor="#dddddd">struct</td>
<td bgcolor="#dddddd">class</td>
</tr>
<tr>
<td bgcolor="#dddddd">中文意義</td>
<td>列舉</td>
<td>結構</td>
<td>類別</td>
</tr>
<tr>
<td bgcolor="#dddddd">成員資料型別</td>
<td>受限制、而且只能為整數型別</td>
<td>不受限制</td>
<td>不受限制</td>
</tr>
<tr>
<td bgcolor="#dddddd">叫用方法</td>
<td>直接輸入列舉名稱</td>
<td>宣告結構變數</td>
<td>宣告類別變數</td>
</tr>
<tr>
<td bgcolor="#dddddd">使用 static 修飾詞</td>
<td>否</td>
<td>否</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">包含事件及方法</td>
<td>否</td>
<td>可</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">介面實作</td>
<td>否</td>
<td>可</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">結構函式</td>
<td>否</td>
<td>可</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">型別系統</td>
<td>Value Type</td>
<td>Value Type</td>
<td>Reference Type</td>
</tr>
<tr>
<td bgcolor="#dddddd">預設傳遞參數方式</td>
<td>Call by Value</td>
<td>Call by Value</td>
<td>Call by Reference</td>
</tr>
<tr>
<td bgcolor="#dddddd">實體存放記憶體在Stack或Heap</td>
<td>Stack</td>
<td>Stack</td>
<td>Heap</td>
</tr>
<tr>
<td bgcolor="#dddddd">欄位初始設定式</td>
<td>否</td>
<td>否</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">指派成員內容值</td>
<td>可以，只能整數</td>
<td>否</td>
<td>可</td>
</tr>
<tr>
<td bgcolor="#dddddd">功能</td>
<td>簡單</td>
<td>普通</td>
<td>較強</td>
</tr>
</table>
<p>　</p>
<p>結構 (struct) 宣告方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] struct [結構名稱]<br />
{<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　[存取修飾詞] [資料型別] [變數名稱];<br />
　　...<br />
}
  </td>
</tr>
</table>
<p>　</p>
<p>列舉 (enum) 宣告方式：</p>
<table id="table_code" border="1">
<tr>
<td>
[存取修飾詞] enum [列舉名稱] : [資料型別]<br />
{<br />
　　[成員1],<br />
　　[成員2],<br />
　　...<br />
　　[成員n]<br />
}
  </td>
</tr>
</table>
<p>　</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/182/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[價量關係] 9種常見模式</title>
		<link>http://m955.com/wp/archives/181</link>
		<comments>http://m955.com/wp/archives/181#comments</comments>
		<pubDate>Sun, 28 Dec 2008 13:52:18 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>
		<category><![CDATA[價量關係]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/181</guid>
		<description><![CDATA[
量增價揚：成交量增加，股價上揚，代表該股買氣很強，後勢仍有上漲空間。
量縮價揚：成交量減少，股價仍繼續上漲，表示買氣不足，後勢有下跌壓力。
量平價揚：成交量持平，股價仍繼... ]]></description>
			<content:encoded><![CDATA[<ol>
<li>量增價揚：成交量增加，股價上揚，代表該股買氣很強，後勢仍有上漲空間。</li>
<li>量縮價揚：成交量減少，股價仍繼續上漲，表示買氣不足，後勢有下跌壓力。</li>
<li>量平價揚：成交量持平，股價仍繼續上漲，表示買氣出現停滯，趨勢可能出現反轉向下。</li>
<li>量增價平：成交量放大，股價卻維持不動，若在低檔區表示主力正在進貨，若已下跌一段時間可能止跌回穩。</li>
<li>量縮價平：成交量萎縮，股價為持不動，若股價已經上漲一段時間，代表高點可能出現，若下跌一段時間，代表底部逐漸成形。</li>
<li>量評價平：成交量與股價維持平行，此時觀望為宜。</li>
<li>量增價跌：成交量增加，股價卻下跌，若在跌，初期可能持續再跌，若已經下跌一段時間，表示可能主力開始進貨。</li>
<li>量縮價跌：成交量減少，股價卻下跌，若股價剛跌可能續跌，若再跌一段時間，則觀察底部可能即將出現。</li>
<li>量平價跌：成交量持平，股價仍下跌，後勢可能出現盤整或盤跌。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/181/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[三點突破法] 1301台塑，40大關是否挺得住？</title>
		<link>http://m955.com/wp/archives/180</link>
		<comments>http://m955.com/wp/archives/180#comments</comments>
		<pubDate>Thu, 25 Dec 2008 09:55:39 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[理財]]></category>
		<category><![CDATA[三點突破]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/180</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 如果你正準備大筆資金，等待台塑破40元買入，我勸你應該還是等等，為什麼？根據三點突破法來看， 41.75 是目前第 6 個低點，所以說明天收週線，價格必須高... ]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 如果你正準備大筆資金，等待台塑破40元買入，我勸你應該還是等等，為什麼？根據三點突破法來看， 41.75 是目前第 6 個低點，所以說明天收週線，價格必須高於第 3 個低點 47.9，才能打破下跌的趨勢。就實質面來看，真的很難，所以還是為維持下跌趨勢繼續進行。破 40 的機會很高。</p>
<p><span id="more-180"></span></p>
<p><img src="http://farm4.static.flickr.com/3243/3135229580_80db749e14_o.png" /> </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 至於會跌到哪裡？我不喜歡預測價位，明天的事只有神才知道，順勢而為，是三點突破工具的精神，如果第 7 個低點出現，我會考慮進場放空。</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 原油從 140 狂跌到 40 左右，讓台塑的生意很難做，這也是這一波下跌的主因，從營收面來看，不難看出一些端倪。</p>
<p><a href="http://farm4.static.flickr.com/3108/3134407859_2453d57137_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3108/3134407859_1ab1ac39e3.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/180/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[客戶管理程式開發] 雛形</title>
		<link>http://m955.com/wp/archives/179</link>
		<comments>http://m955.com/wp/archives/179#comments</comments>
		<pubDate>Wed, 24 Dec 2008 17:08:26 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/179</guid>
		<description><![CDATA[ 
前些日子有做到到客戶關係管理的簡報，突然有的開發的動機，本程式採用 C# 撰寫，目前正在開發階段，未來不排除朝開放原始碼方向，大家集思廣益，功能方面目前還在思考當中，基本上... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm4.static.flickr.com/3127/3133682180_3e5ea71a6c_o.png" target="_blank" rel="lightbox"><img src="http://farm4.static.flickr.com/3127/3133682180_01d1be6731.jpg" /></a> </p>
<p>前些日子有做到到客戶關係管理的簡報，突然有的開發的動機，本程式採用 C# 撰寫，目前正在開發階段，未來不排除朝開放原始碼方向，大家集思廣益，功能方面目前還在思考當中，基本上該有的功能應該都會有。</p>
<p>今天完成了基本的介面，以及資料繫結的項目，放個照片上來，讓大家有個印象。</p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/179/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Access 常用時間日期函數</title>
		<link>http://m955.com/wp/archives/178</link>
		<comments>http://m955.com/wp/archives/178#comments</comments>
		<pubDate>Wed, 24 Dec 2008 16:47:41 +0000</pubDate>
		<dc:creator>blue955</dc:creator>
				<category><![CDATA[程式]]></category>
		<category><![CDATA[Access]]></category>

		<guid isPermaLink="false">http://m955.com/wp/archives/178</guid>
		<description><![CDATA[以下是日期函數用法，提供你方式，你自己可以做到的： 
Year()函數：取得日期資料內的年份值   Year(#2003/03/01#)，顯示結果2003

Month()函數：取得日期資料內的月份值   Month(#2003/03/01#)，顯示結果0... ]]></description>
			<content:encoded><![CDATA[<p>以下是日期函數用法，提供你方式，你自己可以做到的： </p>
<p>Year()函數：取得日期資料內的年份值   <br />Year(#2003/03/01#)，顯示結果2003</p>
<p><span id="more-178"></span></p>
<p>Month()函數：取得日期資料內的月份值   <br />Month(#2003/03/01#)，顯示結果03 </p>
<p>Day()函數：取得日期資料內的日期值   <br />Day(#2003/03/01#)，顯示結果01 </p>
<p>Format()函數：顯示今天的日期為今年的第幾週   <br />Format(Now().ww)，其中ww為1~53週期數值 </p>
<p>DatePart()函數：取得日期資料內的西元年份值   <br />DatePart('yyyy',[訂貨日期])，顯示訂貨日期欄位的西元年份 </p>
<p>DatePart()函數：取得日期資料內的月份值   <br />DatePart('m',[訂貨日期])，顯示訂貨日期欄位的月份(個位數月份顯示一位數)    <br />Format(DatePart('m',[訂貨日期]),'00')，顯示訂貨日期欄位的月份(月份顯示兩位數) </p>
<p>DateAdd()函數：取得日期資料內的年份值   <br />DateAdd('y',-5.[訂貨日期])，顯示訂貨日期欄位往前5天的資料記錄 </p>
<p>DateDiff()函數：取得日期資料內的日期值   <br />DateDiff('d',[訂貨日期].[出貨日期])，顯示訂貨日期與出貨日期兩欄位之間的相差天數 </p>
<p>設定查詢的日期為上星期一及上星期六之間的函數   <br />between DateAdd('d', 0 - (Weekday(Date) + 5), Date) and DateAdd('d', 0 - Weekday(Date), Date) </p>
<p>其他參考：<a href="http://support.microsoft.com/kb/210604/zh-tw" target="_blank">http://support.microsoft.com/kb/210604/zh-tw</a></p>
]]></content:encoded>
			<wfw:commentRss>http://m955.com/wp/archives/178/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

