<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fanday的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fanday</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fanday]]></copyright><item><title><![CDATA[jackson用类似xpath的方式读取、修改json]]></title><link>https://blog.csdn.net/fanday/article/details/84289056</link><guid>https://blog.csdn.net/fanday/article/details/84289056</guid><author>fanday</author><pubDate>Thu, 13 Sep 2012 14:42:22 +0800</pubDate><description><![CDATA[jackson是一款效率极高的json处理工具，如果能用xpath读取xml的那种方式读取、修改json就更好了，翻看jackson的介绍文档后，发现真的有这样的方式，即jackson的Tree Model http://wiki.fasterxml.com/JacksonInFiveMinutes#Tree_Model_Example
代码如下：
 
 
ObjectMapper m =...]]></description><category></category></item><item><title><![CDATA[hazelcast 使用笔记]]></title><link>https://blog.csdn.net/fanday/article/details/84287828</link><guid>https://blog.csdn.net/fanday/article/details/84287828</guid><author>fanday</author><pubDate>Tue, 11 Sep 2012 18:37:21 +0800</pubDate><description><![CDATA[其实 hazelcast 官方提供的文档已经大概包含了所有的东西，当然都是入门级的，深入仍需仔细研究。
 
下面要说的这些，在官方文档中也都有提到，只是记录一下。
 
1、使用配置文件
 
Config cfg = new ClasspathXmlConfig(&quot;hazelcast.xml&quot;);
Hazelcast.newHazelcastInstance(cfg);
配置文件完整...]]></description><category></category></item><item><title><![CDATA[jersey 打印原始数据]]></title><link>https://blog.csdn.net/fanday/article/details/84287003</link><guid>https://blog.csdn.net/fanday/article/details/84287003</guid><author>fanday</author><pubDate>Mon, 10 Sep 2012 16:18:50 +0800</pubDate><description><![CDATA[好久没有整理最近遇到的问题了，先更新个，慢慢补。
 
jersey 1.13
 
用jersey实现restful web service，而，如果用jersey的自动装载的话，如何将调用端的原始数据打印出来？
 
刚开始的时候想写一个自定义的filter，将原始数据打印出来，但是，post上来的普通数据，调用request.getInputStream() 获取以后，request中...]]></description><category></category></item><item><title><![CDATA[jetty 配置远程调试]]></title><link>https://blog.csdn.net/fanday/article/details/84244776</link><guid>https://blog.csdn.net/fanday/article/details/84244776</guid><author>fanday</author><pubDate>Thu, 05 Jul 2012 18:45:52 +0800</pubDate><description><![CDATA[与tomcat的远程调试类似。
 
首先给出命令行修改形式：
 
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8001 -Xnoagent -jar start.jar
 
出自文章：http://docs.codehaus.org/display/CARGO/Debugging
 
再...]]></description><category></category></item><item><title><![CDATA[基础知识一大堆之Thread：join]]></title><link>https://blog.csdn.net/fanday/article/details/84148234</link><guid>https://blog.csdn.net/fanday/article/details/84148234</guid><author>fanday</author><pubDate>Fri, 03 Feb 2012 15:14:07 +0800</pubDate><description><![CDATA[相信大家看api文档是不会搞清楚join()这个方法真正意义的，下面我用几行代码尽量言简意赅的说一下：
 
public class ThreadTest {
	public static void main(String[] args) throws Exception {
		ThreadTest tt = new ThreadTest();
		
		tt.testJoin();...]]></description><category></category></item><item><title><![CDATA[(MaxProcessMemory – JVMMemory – ReservedOsMemory) / (ThreadStackSize) = Number o]]></title><link>https://blog.csdn.net/fanday/article/details/84130168</link><guid>https://blog.csdn.net/fanday/article/details/84130168</guid><author>fanday</author><pubDate>Wed, 18 Jan 2012 16:46:41 +0800</pubDate><description><![CDATA[(MaxProcessMemory – JVMMemory – ReservedOsMemory) / (ThreadStackSize) = Number of threads 
 
转自：http://www.chinasb.org/archives/2011/12/4138.shtml]]></description><category></category></item><item><title><![CDATA[利用cpdetector判断文本文档的编码]]></title><link>https://blog.csdn.net/fanday/article/details/84128494</link><guid>https://blog.csdn.net/fanday/article/details/84128494</guid><author>fanday</author><pubDate>Fri, 13 Jan 2012 18:45:03 +0800</pubDate><description><![CDATA[文本文档不包含文档的编码信息，然而有些时候，我们必须要获得某个文件的编码，这时候怎么办？
 
1、自己造轮子，通过对各种编码的判断，确定其所属编码。
	这种方式难度较大，而且对编码知识的要求较高。
 
2、借助其他已经存在的工具。
	在网上找到了这个东西：cpdetector。看了下他自己的介绍，感觉其初衷是为抓取html而不能确定其编码而写的，里面有的方法可以直接通过传入url的方式...]]></description><category></category></item><item><title><![CDATA[HTTP1.0协议中文版]]></title><link>https://blog.csdn.net/fanday/article/details/84128259</link><guid>https://blog.csdn.net/fanday/article/details/84128259</guid><author>fanday</author><pubDate>Fri, 13 Jan 2012 13:42:22 +0800</pubDate><description><![CDATA[http://blog.sina.com.cn/s/blog_4a2be4e6010005lw.html
 
http://blog.sina.com.cn/s/blog_4a2be4e6010005lx.html
 
http://blog.sina.com.cn/s/blog_4a2be4e6010005ly.html
 
 
 ]]></description><category></category></item><item><title><![CDATA[Class加载]]></title><link>https://blog.csdn.net/fanday/article/details/84127836</link><guid>https://blog.csdn.net/fanday/article/details/84127836</guid><author>fanday</author><pubDate>Thu, 12 Jan 2012 15:05:12 +0800</pubDate><description><![CDATA[http://nonopo.iteye.com/blog/208007
http://nonopo.iteye.com/blog/208012
 ]]></description><category></category></item><item><title><![CDATA[nexus乱象]]></title><link>https://blog.csdn.net/fanday/article/details/84126904</link><guid>https://blog.csdn.net/fanday/article/details/84126904</guid><author>fanday</author><pubDate>Tue, 10 Jan 2012 16:44:27 +0800</pubDate><description><![CDATA[maven私服nexus是个好东西，但实际使用时，不知道是了解不够而操作不当的原因，还是本来就有的bug，会导致各种让人不知所措的问题，如下两个：
http://blog.csdn.net/mydeman/article/details/6126503
http://robiplus.iteye.com/blog/1025072
 
上面两个还算好的，我碰到这两个问题用他们的方法都没有解决...]]></description><category></category></item><item><title><![CDATA[eclipse 启动不起来（不能创建VM）]]></title><link>https://blog.csdn.net/fanday/article/details/84126808</link><guid>https://blog.csdn.net/fanday/article/details/84126808</guid><author>fanday</author><pubDate>Tue, 10 Jan 2012 14:20:05 +0800</pubDate><description><![CDATA[eclipse 3.7.0
 
在这篇文章中，有以下描述：
 
Specifying the Java virtual machine
Here is a typical Eclipse command line: 

eclipse -vm c:\jdk1.4.2\jre\bin\javaw

Tip: It's generally a good idea to explici...]]></description><category></category></item><item><title><![CDATA[java各种情况下读取文件时的路径问题]]></title><link>https://blog.csdn.net/fanday/article/details/84126440</link><guid>https://blog.csdn.net/fanday/article/details/84126440</guid><author>fanday</author><pubDate>Mon, 09 Jan 2012 17:14:16 +0800</pubDate><description><![CDATA[jar包中：
BufferedReader br = new BufferedReader(new InputStreamReader(ClassLoader.getSystemResourceAsStream(&quot;destination_file&quot;)));
 
war包中：
 
this.getClass().getResource(&quot;/&quot;).getPath();// war包://WE...]]></description><category></category></item><item><title><![CDATA[各种webservice服务]]></title><link>https://blog.csdn.net/fanday/article/details/84126425</link><guid>https://blog.csdn.net/fanday/article/details/84126425</guid><author>fanday</author><pubDate>Mon, 09 Jan 2012 16:53:24 +0800</pubDate><description><![CDATA[http://www.iteye.com/topic/142034]]></description><category></category></item><item><title><![CDATA[构建自己的maven资源库--Nexus入门]]></title><link>https://blog.csdn.net/fanday/article/details/84126357</link><guid>https://blog.csdn.net/fanday/article/details/84126357</guid><author>fanday</author><pubDate>Mon, 09 Jan 2012 15:04:35 +0800</pubDate><description><![CDATA[http://juvenshun.iteye.com/blog/349534
 
PDF:http://ishare.iask.sina.com.cn/f/17466841.html]]></description><category></category></item><item><title><![CDATA[svn密码权限存放目录]]></title><link>https://blog.csdn.net/fanday/article/details/84126190</link><guid>https://blog.csdn.net/fanday/article/details/84126190</guid><author>fanday</author><pubDate>Mon, 09 Jan 2012 10:37:42 +0800</pubDate><description><![CDATA[http://qiang106.iteye.com/blog/1317590]]></description><category></category></item><item><title><![CDATA[java.io.IOException: java.io.IOException: error=24, Too many open files]]></title><link>https://blog.csdn.net/fanday/article/details/84125783</link><guid>https://blog.csdn.net/fanday/article/details/84125783</guid><author>fanday</author><pubDate>Sat, 07 Jan 2012 20:42:02 +0800</pubDate><description><![CDATA[写了一个程序，用java调用本地命令，大概要调用5W+次。执行完回来看日志时，发现报了大概几十个java.io.IOException: java.io.IOException: error=24, Too many open files
 
google之，结果大多是建议增加ulimit，但，这终归是治标不治本的，然后结合着javadoc看自己的程序，发现Process中有destroy()...]]></description><category></category></item><item><title><![CDATA[shell中登录mysql并执行操作]]></title><link>https://blog.csdn.net/fanday/article/details/84125772</link><guid>https://blog.csdn.net/fanday/article/details/84125772</guid><author>fanday</author><pubDate>Sat, 07 Jan 2012 20:02:31 +0800</pubDate><description><![CDATA[好吧，这其实是mysql的知识点。
 
写一个shell，要求登录到mysql并执行某些语句，这样写：
 


mysql -h$host -P$port -u$user -p$psw -e select * from table

 
嗯，就是这个-e。...]]></description><category></category></item><item><title><![CDATA[shell批处理中利用vi设置文件的fileformat]]></title><link>https://blog.csdn.net/fanday/article/details/84124958</link><guid>https://blog.csdn.net/fanday/article/details/84124958</guid><author>fanday</author><pubDate>Thu, 05 Jan 2012 16:16:03 +0800</pubDate><description><![CDATA[dos格式文件传输到unix系统时,会在每行的结尾多一个^M，即dos文件中的换行符“\r\n”会被转换为unix文件中的换行符“\n”，而此文件若是一个可执行文件的话，会导致此文件不能被执行，转换的方式有下面一个：
 
 
vi exec.sh
:set ff=unix(或者:set fileformat=unix)
:wq
 
如果以上步骤要求在一个shell批处理文件中完成，那...]]></description><category></category></item><item><title><![CDATA[Runtime exec()调用shell脚本注意事项]]></title><link>https://blog.csdn.net/fanday/article/details/84124882</link><guid>https://blog.csdn.net/fanday/article/details/84124882</guid><author>fanday</author><pubDate>Thu, 05 Jan 2012 15:04:30 +0800</pubDate><description><![CDATA[

1.  当调用的外部命令中包含重定向(&amp;lt;、&amp;gt;)，管道( | ) 命令时，exec(String command)的版本不能正确解析重定向、管道操作符。所以需要使用exec(String [] cmdArray)。 
   如，echo &quot;hello world&quot; &amp;gt; /home/admin/newFile.txt 
       ls -e | grep java 
...]]></description><category></category></item><item><title><![CDATA[SpringJdbc queryForList 不加查询条件]]></title><link>https://blog.csdn.net/fanday/article/details/84090439</link><guid>https://blog.csdn.net/fanday/article/details/84090439</guid><author>fanday</author><pubDate>Mon, 28 Nov 2011 15:44:41 +0800</pubDate><description><![CDATA[springjdbc是个非常好用的jdbc框架，但是在编程时遇到一个很蛋疼的事，描述如下：
 
执行一条类似下面不带where条件的sql语句时：

select * from table

用到了queryForList(String sql, Object... args) 方法，然后懵了，这第二个参数，到底怎么弄？

 
刚开始是这么写的：
 
springjdbc.q...]]></description><category></category></item></channel></rss>