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 阅读(5009) | 评论 (0)编辑 收藏
     摘要: 最近Gmail基本登陆不上去,Google的各种服务又开始时断时续,网上查到修改hosts文件的方法,果然奏效。  阅读全文
posted @ 2011-09-27 13:43 waynewan 阅读(6579) | 评论 (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 阅读(5270) | 评论 (2)编辑 收藏
     摘要: 加密算法都有几个共同的要点:
密钥长度;(关系到密钥的强度)
加密模式;(ecb、cbc等等)
对于加密模式,很多同学还不清楚,比如DES,也会有ECB、CBC等不同的区分,它们都是标准的;  阅读全文
posted @ 2011-05-23 22:04 waynewan 阅读(21913) | 评论 (0)编辑 收藏
     摘要: String在Clone中的玄机  阅读全文
posted @ 2010-08-28 17:47 waynewan 阅读(823) | 评论 (0)编辑 收藏
     摘要: 常量池(constant pool)指的是在编译期被确定,并被保存在已编译的.class文件中的一些数据。它包括了关于类、方法、接口等中的常量,也包括字符串常量。  阅读全文
posted @ 2010-08-28 17:44 waynewan 阅读(314) | 评论 (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 阅读(257) | 评论 (0)编辑 收藏
     摘要: Java语言的一个优点就是取消了指针的概念,但也导致了许多程序员在编程中常常忽略了对象与引用(此引用非C++中的引用)的区别,特别是先学c、c++后学java的程序员。并且由于Java不能通过简单的赋值来解决对象复制的问题,在开发过程中,也常常要要应用clone()方法来复制对象。比如函数参数类型是自定义的类时,此时便是引用传递而不是值传递。  阅读全文
posted @ 2010-08-28 17:21 waynewan 阅读(302) | 评论 (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 阅读(2345) | 评论 (0)编辑 收藏
     摘要: Proxool技术是一种开源的java连接池技术,具体介绍google或者百度之。项目组使用它的原因是它在性能上和易用性上都有很大的优势。
1,下载与安装
http://proxool.sourceforge.net/ 页面下载jar文件,将路径加入到project的buildpath里面……  阅读全文
posted @ 2010-04-12 17:26 waynewan 阅读(988) | 评论 (0)编辑 收藏
仅列出标题  下一页