usefulness

Myeclipse6.5破解类

2011-10-10, Posted in Java, usefulness | 我来说两句 | 查看全文>>

Myeclipse6.5可能大家也不常用了,我也基本不用,不过用到的时候,没有注册码也难受,在网上找到这个类来生成注册码,还是比较好用的.放在这里备忘: 查看全文…

标签:

Ubuntu下Subclipse报failed to load javahl library的解决办法

2011-09-01, Posted in Java, usefulness, OS | 我来说两句 | 查看全文>>

最近买了一T61p,买回后直接安装Ubuntu 10.04,安装Eclipse并安装Subclipse1.6x插件后,使用svn过程中报

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
/opt/local/lib/libsvnjavahl-1.0.0.0.dylib: no suitable image found. Did find: /opt/local/lib/libsvnjavahl-1.0.0.0.dylib: mach-o, but wrong architecture

原来是缺少一些关联文件,去subclipse的Wiki看了看,说需要安装libsvn-java,在Ubuntu 下安装很简单,命令如下:

sudo apt-get install libsvn-java

安装完后,这文件在/usr/lib/jni目录下,这个目录并不是eclipse的java.library.path路径之一,所以还需要修改eclipse.ini来告诉eclipse去哪找这个libsvn-java相关的文件.
打开eclipse.ini,在最后行加入如下内容(注意换行)

-Djava.library.path=/usr/lib/jni
标签: ,



Disable WordPress’s post revisions

2010-01-28, Posted in usefulness | 我来说两句 | 查看全文>>

From the version of 2.6,wordpress add the post revision function,this function may affect the performance of wordpress,so ,if you want disable this function ,you can add this code to wp-config.php

define('WP_POST_REVISIONS', false);

About the value of the WP_POST_REVISIONS is:

true (default) or -1: saving all post revisions
false or 0: don't saving any post revisions
Integer n greater than 0: save n post revisions (+1 only save the first post revision),and the old post revision will be deleted

Everyone is still recommended to set 1 or 2, and the total time of accidentally deleted

标签: , ,