摘要: $ 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) |
編輯 收藏
Eclipse以前的默認(rèn)字體一般是Courier New字體,這種字體看著習(xí)慣。但新版Eclipse安裝后改變了字體,并且在字體設(shè)置的地方?jīng)]有Courier New字體。
解決辦法如下: 1、 找到j(luò)Face并用WinRAR打開之:
jFace的具體位置:$Eclipse目錄$/plugins/org.eclipse.jface_3.7.0.I20110522-1430.jar,找到后,用WinRAR打開。
2、 找到并修改字體屬性:
打開后,依次展開:/org/eclipse/jface/resources,這里,你將看到不同操作系統(tǒng)的字體設(shè)置,比如jfacefonts_hp_ux,properties里保存了HP-UX系統(tǒng)的字體設(shè)置, jfacefonts_macosx.properties則保存了Mac X的字體設(shè)置。找到Windows 7/Vista的字體設(shè)置,雙擊,隨便用一個文本編譯器打開,找到org.eclipse.jface.textfont.0的配置項(xiàng),將其設(shè)置成Courier New-regular即可,后面還可以設(shè)置字號。修改完成后,保存,WinRAR自動更新jar包。
3、 啟動Eclipse Indigo,如果你沒有修改過字體,將看到字體已經(jīng)改過來了,但如果你修改了,則Reset一下,字體就會改過來了。
注意: 如果字體沒有改變過來,可能是因?yàn)镋clipse已經(jīng)運(yùn)行過,此時以命令行的方式啟動eclipse,啟動時加參數(shù) -clean
posted @
2011-09-23 14:51 waynewan 閱讀(5317) |
評論 (2) |
編輯 收藏
摘要: 加密算法都有幾個共同的要點(diǎn):
密鑰長度;(關(guān)系到密鑰的強(qiáng)度)
加密模式;(ecb、cbc等等)
對于加密模式,很多同學(xué)還不清楚,比如DES,也會有ECB、CBC等不同的區(qū)分,它們都是標(biāo)準(zhǔn)的;
閱讀全文
posted @
2011-05-23 22:04 waynewan 閱讀(21975) |
評論 (0) |
編輯 收藏
摘要: String在Clone中的玄機(jī)
閱讀全文
posted @
2010-08-28 17:47 waynewan 閱讀(849) |
評論 (0) |
編輯 收藏
摘要: 常量池(constant pool)指的是在編譯期被確定,并被保存在已編譯的.class文件中的一些數(shù)據(jù)。它包括了關(guān)于類、方法、接口等中的常量,也包括字符串常量。
閱讀全文
posted @
2010-08-28 17:44 waynewan 閱讀(337) |
評論 (0) |
編輯 收藏
摘要: Suppose you have an object ‘a(chǎn)’ 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(chǎn)’. But if you do some modification on b, it has no effect to the value of ‘a(chǎn)’. We call this process which produced new object ‘b’ as clone object ‘a(chǎn)’. 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語言的一個優(yōu)點(diǎn)就是取消了指針的概念,但也導(dǎo)致了許多程序員在編程中常常忽略了對象與引用(此引用非C++中的引用)的區(qū)別,特別是先學(xué)c、c++后學(xué)java的程序員。并且由于Java不能通過簡單的賦值來解決對象復(fù)制的問題,在開發(fā)過程中,也常常要要應(yīng)用clone()方法來復(fù)制對象。比如函數(shù)參數(shù)類型是自定義的類時,此時便是引用傳遞而不是值傳遞。
閱讀全文
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技術(shù)是一種開源的java連接池技術(shù),具體介紹google或者百度之。項(xiàng)目組使用它的原因是它在性能上和易用性上都有很大的優(yōu)勢。
1,下載與安裝
http://proxool.sourceforge.net/ 頁面下載jar文件,將路徑加入到project的buildpath里面……
閱讀全文
posted @
2010-04-12 17:26 waynewan 閱讀(1012) |
評論 (0) |
編輯 收藏