Wayne
          井底的蛙--一直仰望著天空
          posts - 16,comments - 6,trackbacks - 0
               摘要: $ 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的各種服務(wù)又開始時斷時續(xù),網(wǎng)上查到修改hosts文件的方法,果然奏效。  閱讀全文
          posted @ 2011-09-27 13:43 waynewan 閱讀(6670) | 評論 (4)編輯 收藏

           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的配置項,將其設(shè)置成Courier New-regular即可,后面還可以設(shè)置字號。修改完成后,保存,WinRAR自動更新jar包。

              3、 啟動Eclipse Indigo,如果你沒有修改過字體,將看到字體已經(jīng)改過來了,但如果你修改了,則Reset一下,字體就會改過來了。

           

          注意: 如果字體沒有改變過來,可能是因為Eclipse已經(jīng)運行過,此時以命令行的方式啟動eclipse,啟動時加參數(shù) -clean

          posted @ 2011-09-23 14:51 waynewan 閱讀(5317) | 評論 (2)編輯 收藏
               摘要: 加密算法都有幾個共同的要點:
          密鑰長度;(關(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)點就是取消了指針的概念,但也導(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或者百度之。項目組使用它的原因是它在性能上和易用性上都有很大的優(yōu)勢。
          1,下載與安裝
          http://proxool.sourceforge.net/ 頁面下載jar文件,將路徑加入到project的buildpath里面……  閱讀全文
          posted @ 2010-04-12 17:26 waynewan 閱讀(1012) | 評論 (0)編輯 收藏
               摘要: 裝上Nod32 防病毒軟件之后,MSN就無法正常登錄了,錯誤代碼:80072745

          上網(wǎng)查了之后發(fā)現(xiàn)解決辦法如下:  閱讀全文
          posted @ 2010-03-26 20:23 waynewan 閱讀(167) | 評論 (0)編輯 收藏
               摘要: SqlServer 數(shù)據(jù)庫中與備份和恢復(fù)相關(guān)的日志文件有MDF和LDF文件 存在于\\sqlserver_install_dir\MSSQL\Data\
          1.文件解釋
          .mdf文件
          MDF是SQL Server數(shù)據(jù)庫文件.
          .ldf文件
          LDF是SQL的日志文件,是不能直接打開的。LDF記錄每一個操作:SELECT.INSERT.DELETE.UPDATE..日志  閱讀全文
          posted @ 2010-03-24 18:04 waynewan 閱讀(4112) | 評論 (0)編輯 收藏
               摘要: 關(guān)于jfreeChart:想要讓兩條曲線有不同的自定義顏色,需要使用Renderer類的setSeriesPaint方法:  閱讀全文
          posted @ 2010-03-12 16:07 waynewan 閱讀(876) | 評論 (0)編輯 收藏
               摘要: JFreeChart類:
          void setAntiAlias(boolean flag) 字體模糊邊界
          void setBackgroundImage(Image image) 背景圖片
          void setBackgroundImageAlignment(int alignment) 背景圖片對齊方式(參數(shù)常量在org.jfree.ui.Align類中定義)
          void setBackgroundImageAlpha(float alpha) 背景圖片透明度(0.0~1.0)
          void setBackgroundPaint(Paint paint) 背景色
          void setBorderPaint(Paint paint) 邊界線條顏色
          void setBorderStroke(Stroke stroke) 邊界線條筆觸
          void setBorderVisible(boolean visible) 邊界線條是否可見  閱讀全文
          posted @ 2010-03-12 15:54 waynewan 閱讀(172) | 評論 (0)編輯 收藏
               摘要: 在sqlserver數(shù)據(jù)庫中進(jìn)行插入或者刪除大量數(shù)據(jù)的時候,提示錯誤“數(shù)據(jù)庫 'netflow_data' 的日志已滿。請備份該數(shù)據(jù)庫的事務(wù)日志以釋放一些日志空間”通過google得知,當(dāng)數(shù)據(jù)庫運行時間過長,會出現(xiàn)此類錯誤,有兩種方法可以用來解決問題:  閱讀全文
          posted @ 2010-03-11 09:36 waynewan 閱讀(2809) | 評論 (0)編輯 收藏
            一直想找一個地方記錄下科研中遇到的問題和解決方法,今天終于遂愿了。
          posted @ 2010-03-10 18:48 waynewan 閱讀(133) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 白银市| 周至县| 福贡县| 历史| 都江堰市| 洛宁县| 绥芬河市| 晴隆县| 察哈| 张北县| 平陆县| 洛宁县| 望江县| 太康县| 周宁县| 辰溪县| 宁国市| 涿鹿县| 织金县| 惠来县| 灵璧县| 敦煌市| 来宾市| 田林县| 瓦房店市| 凤冈县| 淮阳县| 图片| 永泰县| 张掖市| 介休市| 延长县| 成安县| 民县| 加查县| 通州区| 石景山区| 洪泽县| 江山市| 平潭县| 南平市|