摘要: $ 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) |
評(píng)論 (0) |
編輯 收藏
摘要: 最近Gmail基本登陸不上去,Google的各種服務(wù)又開(kāi)始時(shí)斷時(shí)續(xù),網(wǎng)上查到修改hosts文件的方法,果然奏效。
閱讀全文
posted @
2011-09-27 13:43 waynewan 閱讀(6669) |
評(píng)論 (4) |
編輯 收藏
Eclipse以前的默認(rèn)字體一般是Courier New字體,這種字體看著習(xí)慣。但新版Eclipse安裝后改變了字體,并且在字體設(shè)置的地方?jīng)]有Courier New字體。
解決辦法如下: 1、 找到j(luò)Face并用WinRAR打開(kāi)之:
jFace的具體位置:$Eclipse目錄$/plugins/org.eclipse.jface_3.7.0.I20110522-1430.jar,找到后,用WinRAR打開(kāi)。
2、 找到并修改字體屬性:
打開(kāi)后,依次展開(kāi):/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è)置,雙擊,隨便用一個(gè)文本編譯器打開(kāi),找到org.eclipse.jface.textfont.0的配置項(xiàng),將其設(shè)置成Courier New-regular即可,后面還可以設(shè)置字號(hào)。修改完成后,保存,WinRAR自動(dòng)更新jar包。
3、 啟動(dòng)Eclipse Indigo,如果你沒(méi)有修改過(guò)字體,將看到字體已經(jīng)改過(guò)來(lái)了,但如果你修改了,則Reset一下,字體就會(huì)改過(guò)來(lái)了。
注意: 如果字體沒(méi)有改變過(guò)來(lái),可能是因?yàn)镋clipse已經(jīng)運(yùn)行過(guò),此時(shí)以命令行的方式啟動(dòng)eclipse,啟動(dòng)時(shí)加參數(shù) -clean
posted @
2011-09-23 14:51 waynewan 閱讀(5316) |
評(píng)論 (2) |
編輯 收藏
摘要: 加密算法都有幾個(gè)共同的要點(diǎn):
密鑰長(zhǎng)度;(關(guān)系到密鑰的強(qiáng)度)
加密模式;(ecb、cbc等等)
對(duì)于加密模式,很多同學(xué)還不清楚,比如DES,也會(huì)有ECB、CBC等不同的區(qū)分,它們都是標(biāo)準(zhǔn)的;
閱讀全文
posted @
2011-05-23 22:04 waynewan 閱讀(21974) |
評(píng)論 (0) |
編輯 收藏
摘要: String在Clone中的玄機(jī)
閱讀全文
posted @
2010-08-28 17:47 waynewan 閱讀(848) |
評(píng)論 (0) |
編輯 收藏
摘要: 常量池(constant pool)指的是在編譯期被確定,并被保存在已編譯的.class文件中的一些數(shù)據(jù)。它包括了關(guān)于類(lèi)、方法、接口等中的常量,也包括字符串常量。
閱讀全文
posted @
2010-08-28 17:44 waynewan 閱讀(336) |
評(píng)論 (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) |
評(píng)論 (0) |
編輯 收藏
摘要: Java語(yǔ)言的一個(gè)優(yōu)點(diǎn)就是取消了指針的概念,但也導(dǎo)致了許多程序員在編程中常常忽略了對(duì)象與引用(此引用非C++中的引用)的區(qū)別,特別是先學(xué)c、c++后學(xué)java的程序員。并且由于Java不能通過(guò)簡(jiǎn)單的賦值來(lái)解決對(duì)象復(fù)制的問(wèn)題,在開(kāi)發(fā)過(guò)程中,也常常要要應(yīng)用clone()方法來(lái)復(fù)制對(duì)象。比如函數(shù)參數(shù)類(lèi)型是自定義的類(lèi)時(shí),此時(shí)便是引用傳遞而不是值傳遞。
閱讀全文
posted @
2010-08-28 17:21 waynewan 閱讀(329) |
評(píng)論 (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) |
評(píng)論 (0) |
編輯 收藏
摘要: Proxool技術(shù)是一種開(kāi)源的java連接池技術(shù),具體介紹google或者百度之。項(xiàng)目組使用它的原因是它在性能上和易用性上都有很大的優(yōu)勢(shì)。
1,下載與安裝
http://proxool.sourceforge.net/ 頁(yè)面下載jar文件,將路徑加入到project的buildpath里面……
閱讀全文
posted @
2010-04-12 17:26 waynewan 閱讀(1012) |
評(píng)論 (0) |
編輯 收藏
摘要: 裝上Nod32 防病毒軟件之后,MSN就無(wú)法正常登錄了,錯(cuò)誤代碼:80072745
上網(wǎng)查了之后發(fā)現(xiàn)解決辦法如下:
閱讀全文
posted @
2010-03-26 20:23 waynewan 閱讀(167) |
評(píng)論 (0) |
編輯 收藏
摘要: SqlServer 數(shù)據(jù)庫(kù)中與備份和恢復(fù)相關(guān)的日志文件有MDF和LDF文件 存在于\\sqlserver_install_dir\MSSQL\Data\
1.文件解釋
.mdf文件
MDF是SQL Server數(shù)據(jù)庫(kù)文件.
.ldf文件
LDF是SQL的日志文件,是不能直接打開(kāi)的。LDF記錄每一個(gè)操作:SELECT.INSERT.DELETE.UPDATE..日志
閱讀全文
posted @
2010-03-24 18:04 waynewan 閱讀(4111) |
評(píng)論 (0) |
編輯 收藏
摘要: 關(guān)于jfreeChart:想要讓兩條曲線(xiàn)有不同的自定義顏色,需要使用Renderer類(lèi)的setSeriesPaint方法:
閱讀全文
posted @
2010-03-12 16:07 waynewan 閱讀(876) |
評(píng)論 (0) |
編輯 收藏
摘要: JFreeChart類(lèi):
void setAntiAlias(boolean flag) 字體模糊邊界
void setBackgroundImage(Image image) 背景圖片
void setBackgroundImageAlignment(int alignment) 背景圖片對(duì)齊方式(參數(shù)常量在org.jfree.ui.Align類(lèi)中定義)
void setBackgroundImageAlpha(float alpha) 背景圖片透明度(0.0~1.0)
void setBackgroundPaint(Paint paint) 背景色
void setBorderPaint(Paint paint) 邊界線(xiàn)條顏色
void setBorderStroke(Stroke stroke) 邊界線(xiàn)條筆觸
void setBorderVisible(boolean visible) 邊界線(xiàn)條是否可見(jiàn)
閱讀全文
posted @
2010-03-12 15:54 waynewan 閱讀(171) |
評(píng)論 (0) |
編輯 收藏
摘要: 在sqlserver數(shù)據(jù)庫(kù)中進(jìn)行插入或者刪除大量數(shù)據(jù)的時(shí)候,提示錯(cuò)誤“數(shù)據(jù)庫(kù) 'netflow_data' 的日志已滿(mǎn)。請(qǐng)備份該數(shù)據(jù)庫(kù)的事務(wù)日志以釋放一些日志空間”通過(guò)google得知,當(dāng)數(shù)據(jù)庫(kù)運(yùn)行時(shí)間過(guò)長(zhǎng),會(huì)出現(xiàn)此類(lèi)錯(cuò)誤,有兩種方法可以用來(lái)解決問(wèn)題:
閱讀全文
posted @
2010-03-11 09:36 waynewan 閱讀(2809) |
評(píng)論 (0) |
編輯 收藏