Windows C++ IDE 教學 – C++ Socket Programming

Author: Eric  //  Category: Free Teaching

01. 使用 Code::Blocks 寫 Socket Program 的設定

Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -lws2_32 Read more...

Windows C++ IDE 教學 – Increase Stack Size

Author: Eric  //  Category: Free Teaching

01. Code::Blocks 之 Increase Stack Size 的方法

Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -Wl,-stack,填需要的大小
// eg : -Wl,-stack,50000000 Read more...

讓 Windows Appserv 支援 .htaccess

Author: Eric  //  Category: Free Teaching

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. 法二
Ctrl + H 取代 目標 #LoadModule rewrite_module modules/mod_rewrite.so
取代 LoadModule rewrite_module modules/mod_rewrite.so

4. 用上面的方法把 #AccessFileName .htaccess 前面的 # 去掉 ( 有的default就去掉了 )

5. Restart Apache Server, Done! // 我按Restart沒有用,按 Stop 再按 Start 才成功

取得 Windows Live SkyDrive 的真實載點

Author: Eric  //  Category: Free Resource

取得 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&resId='+id;var%20e='<input%20onmouseover=%22this.select();%22%20onclick=%22this.select();%22%20value=%22';var%20f='%22%20style=%22width:580px%22%20type=%22text%22%20/><br>';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