10月 16, 2007

Install Adobe Creative Suite 3 Design Premium for WinVista

Product: Adobe Setup -- Internal Error 2739.

  1. 開始 > 在搜尋欄輸入 cmd.exe
  2. 出現搜尋結果後按下 Ctrl + Shift + Enter (代表Run As Administrator),然後按下確定來授予權限
  3. 輸入下列字串按下Enter
    (Vista32)
    cd %windir%/System32
    (Vista64)
    cd %windir%/SysWow64
  4. 輸入下列字串按下Enter
    regsvr32 jscript.dll
  5. 跳出對話框 "DllRegisterServer in jscript.dll succeeded",按下確定

3月 07, 2006

Linux Script

尋找大於50M的檔案
find / -type f -size +50000k

3月 06, 2006

Fatal NI connect error 6413

在進行Oracle開發的時候,碰到了這樣一個問題:
每次連接資料庫都不成功,並且在應用程式目錄下的sqlnet.log中有這樣的記錄:

Fatal NI connect error 6413, connecting to:
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=mac)

(PORT=1521)))(CONNECT_DATA=(SID=Oracle816)(SERVER=DEDICATED)(CID=

(PROGRAM=D:\AppDev\(test)\sample.exe)(HOST=MAC)(USER=administrator))))

VERSION INFORMATION:
TNS for 32-bit Windows: Version 8.1.6.0.0 - Production
Time: 29-3
月 -2003 22:04:43
Tracing not turned on.

問題是應用程式的路徑名中含有括弧造成的,因為在tnsname中,各項參數都是用括弧給括起來的,路徑或檔案名中如果含有括弧(左括弧沒關係,是右括弧就會有問題),就會使tnsname的解析出現問題,將括弧去掉就一切正常了

1月 03, 2006

dotproject 筆記

dotproject 甘特圖無法正常顯示解決方法:

1. 確認是否有安裝GD模組
2. php.ini 中 memory_limit 參數預設為8M,改為16M即可

6月 10, 2005

救回Outlook中已刪除的郵件 Recover the Deleted Items for Outlook

If you don't know what a Hex editor is, you probably shouldn't be hex editing anything, but if you want to try, Google for "hex editor" - UltraEdit is probably the best and easiest one to use. Before doing anything to the PST with a Hex Editor, make a copy of the PST, or you may end up losing all of your e-mail.

  1. Open the PST in the Hex editor.
  2. Delete positions 7 through 13 with the spacebar. Since you're using hexadecimal numbering, this actually clears 13 characters in the following positions:
    00007, 00008, 00009, 0000a, 0000b, 0000c, 0000d
    0000e, 0000f, 00010, 00011, 00012, 00013
    As you clear the characters, the editor displays the code “20” in their position.
  1. Save the PST, it is now corrupted.
  2. Run the Inbox Repair Tool, SCANPST.exe, to recover the file. Use Windows Search utility to find it. For additional information on the Inbox Repair Tool, see KB article 287497
  3. The Inbox Repair Tool creates a backup and repairs the damage and recreates the PST.

Open the new PST in Outlook. The Deleted Items folder should now contain the deleted messages, unless Outlook has already deleted them for good by compacting the PST.

禁用USB隨身碟

第一種方式:電腦已安裝過 USB 隨身碟
一:開始/執行 / Regedit
「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB-STOR」機碼,右窗格「Start」修改該「DWORD」數值為「4」。
二:開啟您的 GPO 本機或網域都可以
「使用者設定\系統管理範本\系統」 右窗格「禁止存取登錄編輯工具」設定啟用。

第二種方式:電腦未安裝過 USB 隨身碟
一:「我的電腦」->「工具」->「資料夾選項」->「檢視」->「進階設定」->取消 「使用簡易檔案共用」確定。
二:一:「我的電腦」->「工具」->「資料夾選項」->「檢視」->「進階設定」->「顯示所有檔案和資料夾」確定。
三:到「Windows\inf」資料夾找到「usb-stor.inf」這個檔案,選取滑鼠右鍵「內容」
四:將該檔案「安全性」權限設定一下吧!該拒絕的使用者就將其deny
五:到「Windows\inf」資料夾找到「usbstor.PNF」這個檔案,選取滑鼠右鍵 「內容」
六:將該檔案「安全性」權限設定一下吧!該拒絕的使用者就將其deny
以上步驟的前提是使用者必需是「受限的帳戶」。

If a USB Storage Device Is Already Installed on the Computer
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. If a USB storage device is already installed on the computer, set the Start value in the following registry key to 4:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
When you do so, the USB storage device does not work when the user connects the device to the computer. To set the Start value, follow these steps: 1. Click Start, and then click Run.
2. In the Open box, type regedit, and then click OK.
3. Locate, and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
4. In the right pane, double-click Start.
5. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.
6. Quit Registry Editor.

If a USB Storage Device Is Not Already Installed on the Computer
If a USB storage device is not already installed on the computer, assign the user or the group Deny permissions to the following files: • %SystemRoot%\Inf\Usbstor.pnf
• %SystemRoot%\Inf\Usbstor.inf
When you do so, users cannot install a USB storage device on the computer. To assign a user or group Deny permissions to the Usbstor.pnf and Usbstor.inf files, follow these steps: 1. Start Windows Explorer, and then locate the %SystemRoot%\Inf folder.
2. Right-click the Usbstor.pnf file, and then click Properties.
3. Click the Security tab.
4. In the Group or user names list, click the user or group that you want to set Deny permissions for.
5. In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control, and then click OK.
6. Right-click the Usbstor.inf file, and then click Properties.
7. Click the Security tab.
8. In the Group or user names list, click the user or group that you want to set Deny permissions for.
9. In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control, and then click OK.