<?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>Eric&#039;s Who Know &#187; Windows</title> <atom:link href="http://who-know.com/tag/windows/feed/" rel="self" type="application/rss+xml" /><link>http://who-know.com</link> <description>C&#039;est La Vie</description> <lastBuildDate>Mon, 17 May 2010 22:21:05 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Windows C++ IDE 教學 &#8211; C++ Socket Programming</title><link>http://who-know.com/windows-c-ide-c-socket-programming/</link> <comments>http://who-know.com/windows-c-ide-c-socket-programming/#comments</comments> <pubDate>Mon, 01 Feb 2010 10:42:48 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[C++ IDE]]></category> <category><![CDATA[Code::Blocks]]></category> <category><![CDATA[Socket]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[WinSock]]></category><guid isPermaLink="false">http://who-know.com/?p=94</guid> <description><![CDATA[01. 使用 Code::Blocks 寫 Socket Program 的設定
Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -lws2_3202. 使用 Dev C++ 寫 Socket Program 的設定
Tools -> Compiler Options -> 打勾 Add these commands to linker command line -> 加上 -lws2_3203. 使用 Microsoft Visual C++ 6.0 寫 Socket Program 的設定。// 以下方法擇一即可
a. 程式碼前面加上 #pragma [...]]]></description> <content:encoded><![CDATA[<p>01. 使用 <a href="http://www.codeblocks.org/" target="_blank">Code::Blocks</a> 寫 Socket Program 的設定</p><p>Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -lws2_32<span id="more-94"></span></p><p><a href="http://pic.who-know.com/CodeBlocks/001.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/001.png" alt="" width="480" height="430"/></a></p><p>02. 使用 <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Dev C++</a> 寫 Socket Program 的設定</p><p>Tools -> Compiler Options -> 打勾 Add these commands to linker command line -> 加上 -lws2_32</p><p><a href="http://pic.who-know.com/CodeBlocks/002.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/002.png" alt="" width="480" height="430"/></a></p><p>03. 使用 Microsoft Visual C++ 6.0 寫 Socket Program 的設定。// 以下方法擇一即可</p><p>a. 程式碼前面加上 #pragma comment(lib, "wsock32.lib")</p><p>b. Project -> Settings -> Link -> Object/library modules -> 最後加上 ws2_32.lib</p><p><a href="http://pic.who-know.com/CodeBlocks/003.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/003.png" alt="" width="480" height="340"/></a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/windows-c-ide-c-socket-programming/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Windows C++ IDE 教學 &#8211; Increase Stack Size</title><link>http://who-know.com/windows-c-ide-tutorial-how-to-increase-stack-size/</link> <comments>http://who-know.com/windows-c-ide-tutorial-how-to-increase-stack-size/#comments</comments> <pubDate>Sun, 31 Jan 2010 18:01:06 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[C++ IDE]]></category> <category><![CDATA[Code::Blocks]]></category> <category><![CDATA[Stack]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://who-know.com/?p=95</guid> <description><![CDATA[01. Code::Blocks 之 Increase Stack Size 的方法
Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -Wl,-stack,填需要的大小
// eg : -Wl,-stack,5000000002. Dev C++ 之 Increase Stack Size 的方法
Tools -> Compiler Options -> 打勾 Add these commands to linker command line -> 加上 -Wl,-stack,填需要的大小
// eg : -Wl,-stack,5000000003. Microsoft Visual C++ 6.0 之 Increase [...]]]></description> <content:encoded><![CDATA[<p>01. <a href="http://www.codeblocks.org/" target="_blank">Code::Blocks</a> 之 Increase Stack Size 的方法</p><p>Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -Wl,-stack,填需要的大小<br /> // eg : -Wl,-stack,50000000<span id="more-95"></span></p><p><a href="http://pic.who-know.com/CodeBlocks/004.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/004.png" alt="" width="480" height="430"/></a></p><p>02. <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Dev C++</a> 之 Increase Stack Size 的方法</p><p>Tools -> Compiler Options -> 打勾 Add these commands to linker command line -> 加上 -Wl,-stack,填需要的大小<br /> // eg : -Wl,-stack,50000000</p><p><a href="http://pic.who-know.com/CodeBlocks/005.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/005.png" alt="" width="480" height="430"/></a></p><p>03. Microsoft Visual C++ 6.0 之 Increase Stack Size 的方法</p><p>Project -> Settings -> Link -> Category -> Output -> Stack allocations -> Reserve -> 填需要的大小<br /> // Max : 4,294,967,295 bytes；可以填 10 or 16 進位；單位為 byte；Commit 可以不填。<br /> // eg : 填 50000000 = 填 0x2faf080</p><p><a href="http://pic.who-know.com/CodeBlocks/006.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/006.png" alt="" width="480" height="340"/></a></p><p>04. Sample Code</p><pre class="brush: cpp;">
# include &lt;iostream&gt;
# define SIZE  12345678

using namespace std;

int main( ) {
  int test[ SIZE ] = { 0 };

  for ( int i = 0; i &lt; SIZE; i++ ) {
    test[ i ] = i;
  }

  cout &lt;&lt; test[ SIZE - 1 ] &lt;&lt; &quot;\nWho-Know.Com&quot; &lt;&lt; endl;
  cout &lt;&lt; SIZE * sizeof( int ) &lt;&lt; &quot; bytes&quot; &lt;&lt; endl;
  cout &lt;&lt; sizeof( test ) &lt;&lt; &quot; bytes&quot; &lt;&lt; endl;

  system( &quot;PAUSE&quot; );
  return 0;
}
</pre><p>Ref :<br /> 01. <a href="http://msdn.microsoft.com/en-us/library/8cxs58a6(VS.71).aspx" target="_blank">/STACK (Stack Allocations)</a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/windows-c-ide-tutorial-how-to-increase-stack-size/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>讓 Windows Appserv 支援 .htaccess</title><link>http://who-know.com/having-the-appserv-in-windows-support-the-htaccess-file/</link> <comments>http://who-know.com/having-the-appserv-in-windows-support-the-htaccess-file/#comments</comments> <pubDate>Sat, 15 Aug 2009 16:04:51 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Appserv]]></category> <category><![CDATA[Permalinks]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://who-know.com/%e8%ae%93-windows-appserv-%e6%94%af%e6%8f%b4-htaccess/</guid> <description><![CDATA[0. 為了測試 cos_slug_translator 這之 WP Plugin 的能力，所以想讓我架在本機 Windows 的 WP 也能支持 Permalinks，所以就研究一下怎樣讓 Windows 下的 AppServ 也支援 .htaccess
1. 找到你安裝 Apache 的資料夾，並進到 conf 資料夾 (default:C:\AppServ\Apache2.2\conf)2. 用 文字編輯器 (eg:NotePad, NotePad++, Emeditor, UltraEditor ... etc ) 打開 httpd.conf
3.
a. 法一
Ctrl + F 找到 #LoadModule rewrite_module modules/mod_rewrite.so 把前面的 # 去掉
b. 法二
[...]]]></description> <content:encoded><![CDATA[<p>0. 為了測試 cos_slug_translator 這之 WP Plugin 的能力，所以想讓我架在本機 Windows 的 WP 也能支持 Permalinks，所以就研究一下怎樣讓 Windows 下的 AppServ 也支援 .htaccess</p><p>1. 找到你安裝 Apache 的資料夾，並進到 conf 資料夾 (default:C:\AppServ\Apache2.2\conf)</p><p><a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/001.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/001.png" alt="" width="554" height="321" /></a></p><p>2. 用 文字編輯器 (eg:NotePad, NotePad++, Emeditor, UltraEditor ... etc ) 打開 httpd.conf</p><p>3.<br /> a. 法一<br /> Ctrl + F 找到 #LoadModule rewrite_module modules/mod_rewrite.so 把前面的 # 去掉<br /> b. 法二<br /> Ctrl + H 取代 目標 #LoadModule rewrite_module modules/mod_rewrite.so<br /> 取代    LoadModule rewrite_module modules/mod_rewrite.so</p><p><a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/002.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/002.png" alt="" width="524" height="357" /></a></p><p>4. 用上面的方法把 #AccessFileName .htaccess 前面的 # 去掉 ( 有的default就去掉了 )</p><p>5. Restart Apache Server, Done! // 我按Restart沒有用，按 Stop 再按 Start 才成功<br /> <a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/003.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/003.png" alt="" width="554" height="321" /></a></p><p><a href="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/004.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Having_the_AppServ_in_Windows_Support_the_htaccess_File/004.png" alt="" width="554" height="470" /></a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/having-the-appserv-in-windows-support-the-htaccess-file/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>取得 Windows Live SkyDrive 的真實載點</title><link>http://who-know.com/get-the-direct-link-of-skydrive/</link> <comments>http://who-know.com/get-the-direct-link-of-skydrive/#comments</comments> <pubDate>Mon, 10 Aug 2009 18:59:08 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Resource]]></category> <category><![CDATA[SkyDrive]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://who-know.com/%e5%8f%96%e5%be%97-windows-live-skydrive-%e7%9a%84%e7%9c%9f%e5%af%a6%e8%bc%89%e9%bb%9e/</guid> <description><![CDATA[取得 Windows Live SkyDrive 的真實載點，不受每天的變化而影響
00. For Firefox, IE7/IE8, Opera, Safari  // IE6 不行喔
01. 點進去你打算分享的檔案 (eg:test.zip)02. 在網址列貼上以下的code，即可取得真實載點 (eg:test.zip)javascript:var%20n=document.title.replace('%20-%20Windows%20Live','');var%20id=Page.ItemResourceId;var%20u='http://storage.live.com/items/'+id+'?filename='+encodeURI(n);var%20p='http://'+document.location.host+'/redir.aspx?page=self&#38;resId='+id;var%20e='&#60;input%20onmouseover=%22this.select();%22%20onclick=%22this.select();%22%20value=%22';var%20f='%22%20style=%22width:580px%22%20type=%22text%22%20/&#62;&#60;br&#62;';var%20c='Link%20Adress%20:'+e+u+f+'Share%20Adresse%20:'+e+p+f;var%20a=document.getElementById('content');var%20b=document.createElement('P');b.innerHTML=c;a.insertBefore(b,a.firstChild);void(0)03. 取得的載點用於放音樂蠻方便的，拿來下載也可以，但有一缺點，檔案名稱要自己改回來
Ref :
01. liveto.me
]]></description> <content:encoded><![CDATA[<p>取得 Windows Live SkyDrive 的真實載點，不受每天的變化而影響</p><p>00. For Firefox, IE7/IE8, Opera, Safari  // IE6 不行喔</p><p>01. 點進去你打算分享的檔案 (eg:test.zip)</p><p><a href="http://pic.who-know.com/Get_SkyDrive_Direct_Link_Part_2/001.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Get_SkyDrive_Direct_Link_Part_2/001.png" alt="" width="554" height="321" /></a></p><p>02. 在網址列貼上以下的code，即可取得真實載點 (eg:<a href="http://storage.live.com/items/FBEBD2874E08A914!463?filename=test.zip" target="_blank">test.zip</a>)</p><p><a href="http://pic.who-know.com/Get_SkyDrive_Direct_Link_Part_2/002.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img src="http://pic.who-know.com/Get_SkyDrive_Direct_Link_Part_2/002.png" alt="" width="554" height="321" /></a></p><pre class="brush: jscript;">
javascript:var%20n=document.title.replace('%20-%20Windows%20Live','');var%20id=Page.ItemResourceId;var%20u='http://storage.live.com/items/'+id+'?filename='+encodeURI(n);var%20p='http://'+document.location.host+'/redir.aspx?page=self&amp;resId='+id;var%20e='&lt;input%20onmouseover=%22this.select();%22%20onclick=%22this.select();%22%20value=%22';var%20f='%22%20style=%22width:580px%22%20type=%22text%22%20/&gt;&lt;br&gt;';var%20c='Link%20Adress%20:'+e+u+f+'Share%20Adresse%20:'+e+p+f;var%20a=document.getElementById('content');var%20b=document.createElement('P');b.innerHTML=c;a.insertBefore(b,a.firstChild);void(0)
</pre><p>03. 取得的載點用於放音樂蠻方便的，拿來下載也可以，但有一缺點，檔案名稱要自己改回來</p><p>Ref :<br /> 01. <a href="http://liveto.me/bookmarklet/" target="_blank">liveto.me</a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/get-the-direct-link-of-skydrive/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>