搜尋此網誌

windows常用命令

[ 群組原則 ]
開始 → 執行 → gpedit.msc

[ 惡意軟體移除工具 ]
開始 → 執行 → mrt

[ 機碼 ]
開始 → 執行 → regedit

[ 系統設定公用程式 ]
開始 → 執行 → msconfig

[ 控制client端所有網路設備 ]
開始 → 執行 → cmd → ipconfig
開始 → 執行 → cmd → ipconfig/all

[ 顯示封包經過的路由器的IP位址 ]
開始 → 執行 → cmd → tracert (網址或IP)

2011年8月31日 星期三

Java Log


common.Logger logger = common.Logger.getLogger(xxx.class);
logger.debug("Hello Log4j, this is debug message");


private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(xxx.class);
log.debug("Hello Log4j, this is debug message");

2011年8月6日 星期六

Line Numbers

SQL Server Management Studio
Tools → Options → Text Editor → All Languages → (right panel)checkbox against Line numbers。

Eclipse
Editor(left) right mouse → Show Line Numbers。

2011年8月1日 星期一

Eclipse安裝Subversion

參考資料1 - Eclipse Subversive - Documentation

參考資料2 - subclipse: Download and Install

參考資料3 - Version Control with Subversion

取消 Fn+Space 功能鍵

移除「ThinkPad FullScreen Magnifier」的軟體,這個Fn+Space鍵就沒有作用了。

MS SQL Server 不能連線

Network Error IOException: Connection refused: connect
or
Network error IOException: Connection timed out: connect

Causes:
  • The hostname or port number in the config.ini file is incorrect.
  • A Firewall is blocking the SQL Server port.
  • Your version of SQL Server 2000 is too old to support the way Coretalk connects to database.
  • The SQL Server service is not started.
Solutions:
  • Double check to make sure that the hostname and port number is correct and change it if necessary.
  • Open the TCP/IP port for the port number specified in the config.ini file. You would have to first find out what firewall software the client uses and then add an exception to it’s rules for that specific port. There are too many free and commercial firewall systems to list instructions for all of them.
  • This is very unlikely to happen. It will only happen if you install on an existing instance of SQL Server 2000 that has not been updated to SP4. If you can’t connect and everything else seems correct, make sure that it is SP4. If not, download the SP4 update from the Microsoft website and install that first.
  • Start the SQL Server service. You should also go into the service properties and make sure that the startup properties is set so that the service starts automatically.

滑鼠右鍵刪除Subversion的隱藏目錄 .svn&_svn

註冊檔(Registry File)可以設定檔案總管在目錄上的右鍵選單多一個 Delete SVN Folders 功能,你只要在目錄上按下右鍵,然後選擇 
Delete SVN Folders 就會將該目錄以及所有子目錄下的所有 .svn 目錄給刪除掉。
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /k \"TITLE Removing SVN Folders in %1 && FOR /r \"%1\" %%f IN (.svn _svn) DO RD /s /q \"%%f\" \""
 
資料來源