<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/netingcn" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/netingcn" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 20 Jan 2010 10:08:00 GMT</lastBuildDate><title>netingcn</title><description>漫漫人生路</description><link>http://blog.csdn.net/blogrss.aspx?username=netingcn</link><item><title>java中执行外部命令</title><link>http://blog.csdn.net/netingcn/archive/2010/01/20/5218107.aspx</link><description>&lt;br /&gt;在java中可以通过Runtime.getRuntime().exec(cmd)来执行外部命令，我比较常用的是调用shell脚本来完成某些工作，也可以直接执行一个os 的命令，比较调用imagemagick来完成图片的一些操作，其中需要注意的有两点，1是最好带上命令的完整路径,否则命令可能不会被执行，而且也没有任何报错的信息输出，2特别要注意空格，比如文件名中存在空格的情况，文件名中的空格可以用引号来引起来，从而不会影响命令的正确执行，但有些地方的空格不能这么简单的处理，那么可以通过传递一个数组给exec()方法来解决，数组有过缺点，就是当命令参数比较多的话，可读性比较差，弥补的方法就是还用字符串，不过把必须有空格的地方用一个特殊字符串来替换，等命令字符串拼接好了后再来处理这个字符串，把它变成数组，同时记得把刚才的特殊字符串换成空格。&lt;br /&gt;    Process process = Runtime.getRuntime().exec(cmd);&lt;br /&gt;&lt;br /&gt;    InputStream fis = process.getInputStream();&lt;br /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/323816726/netingcn/csdn.net/s.gif?r=http://blog.csdn.net/netingcn/archive/2010/01/20/5218107.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323816726/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323816726/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 20 Jan 2010 18:08:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2010/01/20/5218107.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2010/01/20/5218107.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323816726/1174165</fs:itemid></item><item><title>form 的 encoding设置不当导致在jsp中使用request.getParametre(paraName)无法获取表单提交的值</title><link>http://blog.csdn.net/netingcn/archive/2010/01/20/5218044.aspx</link><description>&lt;br /&gt;form 的 encoding设置不当导致在jsp中使用request.getParametre(paraName)无法获取表单提交的值&lt;br /&gt;&lt;br /&gt;如果表单的encoding为multipart/form-data，则提交表单后在jsp中request.getParametre(paraName)无法得到该参数的值，在上传的时候则需要设置encoding为multipart/form-data，默认的为application/x-www-form-urlencoded。&lt;br /&gt;&lt;br /&gt;在页面上form对应的属性为enctype=&quot;application/x-www-form-urlencoded&quot;, 而通过js来动态改变的话则为formObj.encoding=&quot;xxx&quot;&lt;img src=&quot;http://www1.feedsky.com/t1/323813936/netingcn/csdn.net/s.gif?r=http://blog.csdn.net/netingcn/archive/2010/01/20/5218044.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813936/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813936/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 20 Jan 2010 17:51:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2010/01/20/5218044.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2010/01/20/5218044.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813936/1174165</fs:itemid></item><item><title>mysql 导入数据时内存溢出问题</title><link>http://blog.csdn.net/netingcn/archive/2009/02/16/3896612.aspx</link><description>&lt;br /&gt;用mysqldump导出一个数据库,其中有两个表数据有20多W,执行导入的时候老是保内存溢出,试验了多种方法,始终不行,后来看mysql的服务器的配置,发现里面没有啥设置,于是在里面增加一个max_allowed_packet=32M配置,然后重新导入时候没有保错,数据完全导入了.&lt;br /&gt;后来发现mysqldump导出的数据默认是--complete-insert,及把所有的值都写在一行,估计插入的时候会全部读入内存从而导致内存溢出,然后可以通过--extended-insert=false(默认为true)来设置每一条记录都是一个insert语句,但是这样速度上肯定不及前面那种.&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813937/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813937/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 16 Feb 2009 16:13:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2009/02/16/3896612.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2009/02/16/3896612.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813937/1174165</fs:itemid></item><item><title>ubuntu8.04 成功源代码安装 subversion1.5.0,apache2.2.9</title><link>http://blog.csdn.net/netingcn/archive/2008/07/01/2601541.aspx</link><description>ubuntu8.04 成功源代码安装 subversion1.5.0,apache2.2.9 svn apache subversion./configure --with-apxs=/opt/apache2/bin/apxs --with-apr=/opt/apache2 --with-apr-util=/opt/apache2 --prefix=/opt/subversion-1.5.0 其中，--with-apxs 用于生成apache httpd的mod_dav_svn和mod_authz_svn模块；--with-apr 和 --with-apr-util=参数指向 Apache 的安装根目录，而不是使用缺省的 SVN 安装包中自带的 apr ，否则如果你安装的 Apache 版本不同有可能导致 APR 库不匹配，出现类似 Can't set position pointer in file '/svn/test/db/revs/1': Invalid argument 的错误，--prefix 是安装的位置。注意，在configure的时候可能回出现configur&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813938/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813938/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 01 Jul 2008 11:57:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/07/01/2601541.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/07/01/2601541.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813938/1174165</fs:itemid></item><item><title>ubuntu 8.04  nginx 安装</title><link>http://blog.csdn.net/netingcn/archive/2008/06/30/2598491.aspx</link><description>本人安装unbutn的时候只装了命令行模式，就是不带xwindos的那种，安装好后，修改了软件源，发现gcc默认是没有安装的，执行apt-get install build-essential来安装gcc，发现有好几十M要下载，想ubuntn的光盘里面不是有gcc的嘛，如是google一下，看怎么样用光盘作源，找了一下，发现原来是如此简单，只要先mount上光盘(mount /dev/cdrom /media/cdrom)，然后执行apt-cdrom add即可，再次执行apt-get install build-essential，回车几把就ok。
前期工作搞好了，准备开始装nginx，下载了源代码nginx-0.6.31.tar.gz，解压，直接./configure --prefix=/opt/nginx 报告prce library is not found 和zlib library is not found，网上找了一把很多都是说用源代码，都这个没有信心，还是想用apt-get来装，功夫不负有心人，终于到了prce，还有另外的收获，一并找到了zlib，执行apt-get&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813939/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813939/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 30 Jun 2008 15:31:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/06/30/2598491.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/06/30/2598491.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813939/1174165</fs:itemid></item><item><title>javascript select 的操作</title><link>http://blog.csdn.net/netingcn/archive/2008/06/26/2587772.aspx</link><description>select 的操作
 a, 清空options 
 selectObj.options.length = 0; (此方法在ff，ie下都适用)
 b, 添加一个新option 
 selectObj.add(new Option(label,value));
 c, 删除options集合中指定的一项option
 selectObj.remove(index);
 d, 获取当前选定的option的真实值value或lable
  selectObj.options.[index].value 或 selectObj.options.[index].text (注意：这里最好用[]，如果用() 在ie下能正常工作，ff下则不行， []则都能正常工作)&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813940/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813940/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 26 Jun 2008 10:35:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/06/26/2587772.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/06/26/2587772.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813940/1174165</fs:itemid></item><item><title>javascript getYear() 的问题</title><link>http://blog.csdn.net/netingcn/archive/2008/06/25/2585771.aspx</link><description>getYear的问题IE中：today=new Date();today.getYear()返回的是绝对的公元纪年,2005Firefox中：today=new Date();today.getYear()返回的是相对绝对的年份，年份相对于1900，因为今年是2005，两者相减是105。这个问题的根源在于2000年问题，以前年份的表示使用2位数字因此，为了最大范围的兼容性，使用getFullYear() 是正确的，在不同浏览器中都能正确计算。 就解决了获取年份的兼容性问题。&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813941/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813941/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 25 Jun 2008 15:31:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/06/25/2585771.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/06/25/2585771.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813941/1174165</fs:itemid></item><item><title>保持 checkbox 选中状态不被修改</title><link>http://blog.csdn.net/netingcn/archive/2008/06/25/2585745.aspx</link><description>对于input type为text时，可以用readonly属性来控制让它的内容不能被修改，然而checkbox则没有这个属性，此时可以通过javascript来达到这个目的，只需要在checkbox 的onclick事件方法上加上 return false; 这样的javascript代码即可，这样就不能修改checkbox的状态了。如&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813942/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813942/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 25 Jun 2008 15:26:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/06/25/2585745.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/06/25/2585745.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813942/1174165</fs:itemid></item><item><title>IE firefox div 设置left的属性问题</title><link>http://blog.csdn.net/netingcn/archive/2008/06/25/2585504.aspx</link><description>ie firefox 规范&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813943/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813943/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 25 Jun 2008 14:33:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/06/25/2585504.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/06/25/2585504.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813943/1174165</fs:itemid></item><item><title>关于js中 document.body.scrollTop 不能返回正确值的原因</title><link>http://blog.csdn.net/netingcn/archive/2008/06/25/2585450.aspx</link><description>javascript 小技巧， document.body.scrollTop document.body.scrollTop 计算垂直滚动条滚动的高度&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/netingcn/323813944/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/netingcn/323813944/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 25 Jun 2008 14:23:00 +0800</pubDate><author>netingcn</author><guid isPermaLink="false">http://blog.csdn.net/netingcn/archive/2008/06/25/2585450.aspx</guid><dc:creator>netingcn</dc:creator><fs:srclink>http://blog.csdn.net/netingcn/archive/2008/06/25/2585450.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/netingcn/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/netingcn/~1174183/323813944/1174165</fs:itemid></item></channel></rss>