為何我不能寄超過20MB 的檔案給別人呢? 這個問題直覺就是外部的 Mail Server 把信退回來了. 但是... 是寄給公司內部同事的人, 那又會是什麼問題呢? 去送信端查看一下, 才發現信都還沒送出就被 Outlook 給擋了, 原來 Outlook 2010 有這個限制附件大小的限制. 解決方法有二種, 建議用如下第二種方法:
2013/07/04
2012/04/13
2012/03/02
如何每次登入windows時就撥放一個avi 動畫檔?
可使用本機群組原則編輯器進行設定, 執行gpedit.msc後, 再進入電腦設定 > windows設定 > 指令碼 > 啟動, 再將開啟想要執行的程序及參數輸入.
2012/02/03
[C/C++]char pointer & sizeof Q&A
Q:
{
char *string="hello";
string++;
*abc='2';
string--;
printf("%s",string);
}
char *string="hello" 為什麼不能對指標做加減然後只改某個字?(執行的時候出現了錯誤)
A: "hello" 叫做 string literal, 它的大小在編譯器分析你原始碼的時候就知道了. 編譯器在編譯的時候會把這個字串的內容直接放在一個區域裡, 然後把指標的內容設為這個字串第一個字元的位址.
這些完全可以在編譯時搞定, 沒有必要等到執行時才做.
如果你的程式有幾個同樣的字串, 比方說:
{
char *string="hello";
string++;
*abc='2';
string--;
printf("%s",string);
}
char *string="hello" 為什麼不能對指標做加減然後只改某個字?(執行的時候出現了錯誤)
A: "hello" 叫做 string literal, 它的大小在編譯器分析你原始碼的時候就知道了. 編譯器在編譯的時候會把這個字串的內容直接放在一個區域裡, 然後把指標的內容設為這個字串第一個字元的位址.
這些完全可以在編譯時搞定, 沒有必要等到執行時才做.
如果你的程式有幾個同樣的字串, 比方說:
2012/01/13
預設檔案總管開啟時的位置 (Set Windows Explorer Default Folder)
在〔開始〕→〔所有程式〕→〔附屬應用程式〕→鼠標右點〔Windows 檔案總管〕的 Icon 圖標 →選〔內容〕→〔捷徑〕→〔目標〕內填上 →〔%SystemRoot%\explorer.exe /n, /e, Z:\xxx 〕
(Z=Drive, xxx=Folder Name, such as C:\My Documents)
(Z=Drive, xxx=Folder Name, such as C:\My Documents)
2011/12/29
WinXP Auto End Task (關機時自動關閉停止回應程式)
1. Save the following contents and name a REG file, such as endTask.reg.
2. Then, execute the file under Windows XP
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
2. Then, execute the file under Windows XP
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
淺談 c/c++ 使用 __attribute__
GNU C擴展的__attribute__ 機制被用來設置函數、變量、類型的屬性,其用得較多的是處理字節對齊的問題。
__attribute__ 的語法為:__attribute__ ((語法列表))
參數aligned(number) [number為最小對齊的字節數]是用得較多的一個。
另一個是參數packed 表示「使用最小對齊」方式,即對變量是字節對齊,對於域是位對齊。
__attribute__ 的語法為:__attribute__ ((語法列表))
參數aligned(number) [number為最小對齊的字節數]是用得較多的一個。
另一個是參數packed 表示「使用最小對齊」方式,即對變量是字節對齊,對於域是位對齊。
四種解除網頁鎖Mouse右鍵方法
第一種《無法使用鼠標右鍵》
狀態 : 當你點擊右鍵時就彈出一個窗口說些莫名其妙的話。
其實這只是利用JAVA語言實現的一個很簡單的鎖住滑鼠右鍵的功能,同樣也很簡單就能使它失效,破解方法如下:
1:在頁面目標上按下滑鼠右鍵,彈出視窗,這時不要鬆開右鍵。
2: 將滑鼠移到視窗的確定按鈕上,同時按下左鍵。
3:現鬆開滑鼠左鍵,這時視窗消失。
4:再將滑鼠移到目標上鬆開滑鼠右鍵,OK,你想要得功能全出來了。
狀態 : 當你點擊右鍵時就彈出一個窗口說些莫名其妙的話。
其實這只是利用JAVA語言實現的一個很簡單的鎖住滑鼠右鍵的功能,同樣也很簡單就能使它失效,破解方法如下:
1:在頁面目標上按下滑鼠右鍵,彈出視窗,這時不要鬆開右鍵。
2: 將滑鼠移到視窗的確定按鈕上,同時按下左鍵。
3:現鬆開滑鼠左鍵,這時視窗消失。
4:再將滑鼠移到目標上鬆開滑鼠右鍵,OK,你想要得功能全出來了。
每次登入windows時, 就全畫面撥放一個.wmv檔
使用本機群組原則編輯器進行設定,執行gpedit.msc後,
再進入電腦設定 > windows設定 > 指令碼 > 啟動,
再將開啟想要執行的程序及參數輸入
再進入電腦設定 > windows設定 > 指令碼 > 啟動,
再將開啟想要執行的程序及參數輸入
2011/12/20
[C/C++]Pointer to Array or Array of Pointer
[Pointer to array]
Example: int *ptr1[10];
這代表有一個array, 它用來存10個int pointer 的資料
The ptr1 is an array of 10 pointer to integers.
[Array of pointer]
Example: int (*ptr2)[10];
這代表有一個ptr2 指到存有10個integer 的陣列
The ptr2 is a pointer to array of 10 integers.
Example: int *ptr1[10];
這代表有一個array, 它用來存10個int pointer 的資料
The ptr1 is an array of 10 pointer to integers.
[Array of pointer]
Example: int (*ptr2)[10];
這代表有一個ptr2 指到存有10個integer 的陣列
The ptr2 is a pointer to array of 10 integers.
2011/04/12
Free Online QR Code/Barcode Maker
1. QR Code Maker
http://www.morovia.com/free-online-barcode-generator/qrcode-maker.php
2. Barcode Generator
http://www.morovia.com/free-online-barcode-generator/
http://www.morovia.com/free-online-barcode-generator/qrcode-maker.php
2. Barcode Generator
http://www.morovia.com/free-online-barcode-generator/
2011/04/11
Create a Batch File w/ Input Parameters Under DOS Mode
Purpose:
Input 2 parameters for the executed file "foo_test". The first parameter as the input file and second parameter as the output file.
Action:
1. Put all *.ssy files and the executed file in the same directory
Input 2 parameters for the executed file "foo_test". The first parameter as the input file and second parameter as the output file.
Action:
1. Put all *.ssy files and the executed file in the same directory
2010/11/09
訂閱:
文章 (Atom)