摘要: $ kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE
9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD
18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN
22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ
26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO
30) SIGPWR 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1
36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 39) SIGRTMIN+5
40)
閱讀全文
posted @
2011-10-09 10:52 waynewan 閱讀(5037) |
評論 (0) |
編輯 收藏
摘要: 最近Gmail基本登陸不上去,Google的各種服務又開始時斷時續,網上查到修改hosts文件的方法,果然奏效。
閱讀全文
posted @
2011-09-27 13:43 waynewan 閱讀(6669) |
評論 (4) |
編輯 收藏
Eclipse以前的默認字體一般是Courier New字體,這種字體看著習慣。但新版Eclipse安裝后改變了字體,并且在字體設置的地方沒有Courier New字體。
解決辦法如下: 1、 找到jFace并用WinRAR打開之:
jFace的具體位置:$Eclipse目錄$/plugins/org.eclipse.jface_3.7.0.I20110522-1430.jar,找到后,用WinRAR打開。
2、 找到并修改字體屬性:
打開后,依次展開:/org/eclipse/jface/resources,這里,你將看到不同操作系統的字體設置,比如jfacefonts_hp_ux,properties里保存了HP-UX系統的字體設置, jfacefonts_macosx.properties則保存了Mac X的字體設置。找到Windows 7/Vista的字體設置,雙擊,隨便用一個文本編譯器打開,找到org.eclipse.jface.textfont.0的配置項,將其設置成Courier New-regular即可,后面還可以設置字號。修改完成后,保存,WinRAR自動更新jar包。
3、 啟動Eclipse Indigo,如果你沒有修改過字體,將看到字體已經改過來了,但如果你修改了,則Reset一下,字體就會改過來了。
注意: 如果字體沒有改變過來,可能是因為Eclipse已經運行過,此時以命令行的方式啟動eclipse,啟動時加參數 -clean
posted @
2011-09-23 14:51 waynewan 閱讀(5317) |
評論 (2) |
編輯 收藏
摘要: 加密算法都有幾個共同的要點:
密鑰長度;(關系到密鑰的強度)
加密模式;(ecb、cbc等等)
對于加密模式,很多同學還不清楚,比如DES,也會有ECB、CBC等不同的區分,它們都是標準的;
閱讀全文
posted @
2011-05-23 22:04 waynewan 閱讀(21975) |
評論 (0) |
編輯 收藏
摘要: String在Clone中的玄機
閱讀全文
posted @
2010-08-28 17:47 waynewan 閱讀(849) |
評論 (0) |
編輯 收藏
摘要: 常量池(constant pool)指的是在編譯期被確定,并被保存在已編譯的.class文件中的一些數據。它包括了關于類、方法、接口等中的常量,也包括字符串常量。
閱讀全文
posted @
2010-08-28 17:44 waynewan 閱讀(337) |
評論 (0) |
編輯 收藏
摘要: Suppose you have an object ‘a’ of class ‘A’. Sometimes you may need another new object ‘b’. It also belongs to class ‘A’ and has the same data with object ‘a’. But if you do some modification on b, it has no effect to the value of ‘a’. We call this process which produced new object ‘b’ as clone object ‘a’. The commonest time that you need to clone an object is when it is a parameter or return value of one of your public methods. If it is a parameter that you save somewhere, then you don't want t
閱讀全文
posted @
2010-08-28 17:36 waynewan 閱讀(285) |
評論 (0) |
編輯 收藏
摘要: Java語言的一個優點就是取消了指針的概念,但也導致了許多程序員在編程中常常忽略了對象與引用(此引用非C++中的引用)的區別,特別是先學c、c++后學java的程序員。并且由于Java不能通過簡單的賦值來解決對象復制的問題,在開發過程中,也常常要要應用clone()方法來復制對象。比如函數參數類型是自定義的類時,此時便是引用傳遞而不是值傳遞。
閱讀全文
posted @
2010-08-28 17:21 waynewan 閱讀(329) |
評論 (0) |
編輯 收藏
You are likely missing a class file that in your jar file.
I had a similar situation and found that the new "next-generation" java plugin does not report NoClassDefFoundError, but instead reports findAppletJDKLevel.
To see if you are missing class files, do the following:
1) Close all browsers, ensuring that there are no plugin coffee cup icons in the Windows taskbar.
2) Open the Java Control panel (Start->Control Panel->Java).
2.5) On the General tab, clear cache by clicking Settings..., Delete Files..., OK.
3) Open the Advanced tab.
4) Expand the Java Plug-in tree option.
5) Ensure that the "Enable the next-generation Java Plug-in" option is NOT checked and click OK.
6) Visit your page again.
7) View the java console stacktrace. It should include NoClassDefFoundError error message.
8) Add the missing classes to your jar file.
posted @
2010-04-13 18:21 waynewan 閱讀(2374) |
評論 (0) |
編輯 收藏
摘要: Proxool技術是一種開源的java連接池技術,具體介紹google或者百度之。項目組使用它的原因是它在性能上和易用性上都有很大的優勢。
1,下載與安裝
http://proxool.sourceforge.net/ 頁面下載jar文件,將路徑加入到project的buildpath里面……
閱讀全文
posted @
2010-04-12 17:26 waynewan 閱讀(1012) |
評論 (0) |
編輯 收藏
摘要: 裝上Nod32 防病毒軟件之后,MSN就無法正常登錄了,錯誤代碼:80072745
上網查了之后發現解決辦法如下:
閱讀全文
posted @
2010-03-26 20:23 waynewan 閱讀(167) |
評論 (0) |
編輯 收藏
摘要: SqlServer 數據庫中與備份和恢復相關的日志文件有MDF和LDF文件 存在于\\sqlserver_install_dir\MSSQL\Data\
1.文件解釋
.mdf文件
MDF是SQL Server數據庫文件.
.ldf文件
LDF是SQL的日志文件,是不能直接打開的。LDF記錄每一個操作:SELECT.INSERT.DELETE.UPDATE..日志
閱讀全文
posted @
2010-03-24 18:04 waynewan 閱讀(4111) |
評論 (0) |
編輯 收藏