`
kfc_davy
  • 浏览: 178397 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

[置顶] vi 命令

显示行号 : set nu :set ff=unix
vmstat iostat iostat -x pidstat top sar Sysstat是一个非常强大的工具,因此下载了试了下,效果不错。Sysstat是一个工具集,包括sar、pidstat、iostat、mpstat、sadf、sadc (sysstat安装了以后里面的sar和自带的sar冲突,我替换了 /usr/bin/sar 到 /usr/local/sar)
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 39 in XML document from class path resource [spring/web/servlet-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.1: Element 'mvc:annotation-driven' must have no character or eleme ...
jdbc date 不走索引 jdbc中 select * from tba t where t.createtime >? 实际上不走索引(如果createtime是date类型的话),传说会转换为timestamp,对于此类需要改成, select * from tba t where t.createtime>to_date(?,'yyyy-mm-dd') or 不走索引 select * from tba t where t.a in (select xxx from xxx) or t.a=b 实际上不走索引 对于此类需要改成, select * from tba ...

遍历md5的小方法

    博客分类:
  • java
public class Test{ private static final char[] x = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; static MessageDigest d; public static void main(String[] args) throws NoSuchAlgorithmException { d = MessageDigest. ...
http://www.ibm.com/developerworks/cn/java/j-dcl.html

grep 使用

grep 中 增加正则表达式,例如tab cat request.log |grep -P '\t107\t'

搭建环境

很容易 按照 logstash.net 上的learn进行操作 其中当File的input时候,出现了错误 Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (NotImplementedError) stat.st_dev unsupported or native support failed to load at org.jruby.RubyFileStat.dev_major(org/jruby/RubyFileStat.java:394) ...

jdbc Date类型慎用

    博客分类:
  • java
jdbc Date类型慎用 血泪回退史表示,Date还是换为字符靠谱点
所有的urlredirect都带上了jsessionid 参考 http://static.springsource.org/spring-security/site/docs/3.0.x/reference/appendix-namespace.html#nsa-http-attributes disable-url-rewriting 最后,追究到是p3p造成的iframe问题。 加上代码 引用response.setHeader("P3P","CP=CAO PSA OUR")

hs_err_pid*.log

    博客分类:
  • java
 
jdk6bug http://www.oschina.net/question/1092_24066
List<SpecialCoinInputInfo> list = specialCoinInputDao.findPendingData(); for(SpecialCoinInputInfo o: list ) { specialCoinInputDao.updateStatus(o,5); // 更新为5 o.setCnt(specialCoinSumDao.save(o)); } 这段代码把线程卡住了,死活不走下去。 悲催的不吃饭找bug,终 ...
thinging
asset如果自定义一个格式 那么会被压缩掉 出现 04-05 16:35:32.121: E/E(13220): java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed static const char* kNoCompressExt[] = { ".jpg", ".jpeg", ".png", ".gif", & ...
http://blog.csdn.net/cmoaciopm/article/details/7207630
Global site tag (gtag.js) - Google Analytics