<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>蜗牛的家</title>
	<atom:link href="http://www.genepeng.cn/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.genepeng.cn</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 04:01:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>xdebug调试php，断点不起作用</title>
		<link>http://www.genepeng.cn/index.php/274</link>
		<comments>http://www.genepeng.cn/index.php/274#comments</comments>
		<pubDate>Thu, 02 Sep 2010 04:01:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[php perl ruby]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/?p=274</guid>
		<description><![CDATA[在xp上装了eclipse和VMware, 在VMware上装了redhat, 在redhat上装了apache,php,xdebug,在php.ini里配置xdebug如下：
zend_extension=/usr/lib/php/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host=xx.xx.xx.xx
xdebug.remote_port=9000
xdebug.remote_mode=req
然后在eclipse里设置断点，发现断点不起作用，直接所有的代码一次性运行完了，到xdebug官网仔细看了下配置的说明，　原来xdebug.remote_host并不是apache所在服务器的IP,　而是远程调试机的IP，　我的情况，也就是xp的ip,　而不是VMware上redhat的IP，可原来我却把xx.xx.xx.xx配成了redhat的IP, 修改xx.xx.xx.xx为xp的IP，重启apache,　一试，果然单步调试成功了。
]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/274/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zend studio打不开页面</title>
		<link>http://www.genepeng.cn/index.php/268</link>
		<comments>http://www.genepeng.cn/index.php/268#comments</comments>
		<pubDate>Sun, 29 Aug 2010 04:59:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/268</guid>
		<description><![CDATA[今天想试一下zend studio, 在官方网下载好在win7下安装后，发现zend server其实就是apache, zend studio就是扩展了eclipse，但zend server/studio却还要收钱，真不知道是怎么遵守开源协议的。
创建一个test项目后，结果页面都打不开，返回的错误是这样的：Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/268/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shell电话本</title>
		<link>http://www.genepeng.cn/index.php/265</link>
		<comments>http://www.genepeng.cn/index.php/265#comments</comments>
		<pubDate>Mon, 23 Aug 2010 03:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/?p=265</guid>
		<description><![CDATA[前几天在MSDN上看到有人用shell写了个电话本程序，为了巩固一下以前学过的， 自己也来弄一个shell电话本[绝非抄袭]。其实不能算一个电话本，因为只有两个域：名字和地址，权当练习，不尽完美之处，请海涵:D
#!/bin/sh
#Date: 2010-08-22
#QQ: 32281309
#MSN: pgj1207@hotmail.com
#Site: www.genepeng.cn
function AddUser()
{
  while :
  do
    echo -n &#8220;Enter user name: &#8221;
    read UserName
    if [ "$UserName" = "" ]; then
      continue
    else
      break
    [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/265/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>win7 VMware 7.0下centos不能上网</title>
		<link>http://www.genepeng.cn/index.php/261</link>
		<comments>http://www.genepeng.cn/index.php/261#comments</comments>
		<pubDate>Sat, 21 Aug 2010 03:29:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/?p=261</guid>
		<description><![CDATA[之前的CentOS是xp和VMware下安装的，上网等功能一切正常，但后来装了win7后上网功能出现了问题
情况如下：
-> win7 ping不通虚拟机下CentOS
-> CentOS 能ping win7和外网，但是不能浏览网页
-> 在win7下，用putty也访问不了CentOS
-> win7, CentOS的防火墙都关了
后来发现原来是安装的瑞星防火墙的原因，　改变相应的设置，或直接把瑞星防火墙关掉就可以了

]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/261/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install_driver(Oracle) failed: Can&#8217;t load `&#8230;/DBD/Oracle/Oracle.so&#8217; for module DBD::Oracle</title>
		<link>http://www.genepeng.cn/index.php/259</link>
		<comments>http://www.genepeng.cn/index.php/259#comments</comments>
		<pubDate>Thu, 15 Apr 2010 03:05:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[php perl ruby]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/259</guid>
		<description><![CDATA[Description
This section is from the &#34;Practical mod_perl &#34; book, by Stas Bekman and Eric Cholet . Also available from Amazon: Practical mod_perl

Here&#8217;s an example of the full error report that you might see:
install_driver(Oracle) failed: Can't load

'/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBD/Oracle/Oracle.so'

for module DBD::Oracle:

libclntsh.so.8.0: cannot open shared object file: 

No such file or directory at

/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 169.

at (eval 27) line 3

Perhaps [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/259/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perl String Comparison Operators</title>
		<link>http://www.genepeng.cn/index.php/258</link>
		<comments>http://www.genepeng.cn/index.php/258#comments</comments>
		<pubDate>Tue, 06 Apr 2010 05:39:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/258</guid>
		<description><![CDATA[In order to compare for string equality, or if one string is alphabetically bigger than another, you can use the six string comparison operators. Here are the string operators together with the numerical operators they correspond too:



String Operator
Numerical Operator


eq
==


ne
!=


gt
&#62;


lt
&#60;


ge
&#62;=


le
&#60;=





 Notice that the string operators are built from the initials of their abbreviated names. (E.g: eq [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/258/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do not throw exception in exception_handler function and __destruct without try-catch</title>
		<link>http://www.genepeng.cn/index.php/254</link>
		<comments>http://www.genepeng.cn/index.php/254#comments</comments>
		<pubDate>Wed, 31 Mar 2010 10:03:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/254</guid>
		<description><![CDATA[Do NOT throw exception in exception_handler function, if you do it like below, 
the error “Fatal error: Exception thrown without a stack frame in Unknown on line 
0” will occur

set_exception_handler('handle_exception');

function handle_exception($e)

{

    throw new Exception('throwed in handle_exception');

}

throw new Exception('error occur');

if you try-catch the Exception in exception_handler function, it will be ok, the below [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在windows下用wingrub安装backtrack 4 final双系统</title>
		<link>http://www.genepeng.cn/index.php/252</link>
		<comments>http://www.genepeng.cn/index.php/252#comments</comments>
		<pubDate>Fri, 19 Mar 2010 02:48:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/252</guid>
		<description><![CDATA[在windows操作系统下利用wingrub安装backtrack 4 final，不需要你另外的磁盘分区、U盘.
下面讲一下安装过程
1. 安装WinGrub/Grub4DOS
从 http://sourceforge.net/projects/grub4dos/ 下载，然后安装，安装好了之后，打开wingrub, 点击Tools/Install Grub, 选择BOOT.ini, 填入”Back Track 4 Final”到Title, 再点击 Install, 这时会自动拷贝GRLDR 到c:\ ，还会创建c:\grub文件夹.
2. 从bt4-final.iso里拷贝/casper and /boot 到c:\
3. 修改C:\boot\grub\menu.lst. 当你打开文件时已经有一些内容， 但没有find &#8211;set-root /GRLDR这句话，所以应该加上。
最终内容应该为：&#60;!&#8211; more &#8211;&#62;
# By default, boot the first entry.       default 0 

# Boot automatically after 30 secs.       [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>window live writer wordpress出错</title>
		<link>http://www.genepeng.cn/index.php/251</link>
		<comments>http://www.genepeng.cn/index.php/251#comments</comments>
		<pubDate>Fri, 19 Mar 2010 02:47:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/251</guid>
		<description><![CDATA[当出现下面的问题时： 
The response to the metaWeblog.getRecentPosts method received from the blog server was invalid: 
Invalid response document returned from XmlRpc server 
可以用下面的方法解决： 
因为wordpress本身的一个bug,在utf-8编码下，在wp-includes文件夹下, xml-rpc返回的格式不正确，缺了三个字节，要修正这个问题，按如下操作即可：   用一个文本编辑工具打开class.ixr.php，查找：    $length = strlen($xml); 
替换为：&#60;!&#8211;more &#8211;&#62; 
$length = strlen($xml)+3; 
就可以解决这个问题了！
]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/251/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby版本的discuz自动注册机</title>
		<link>http://www.genepeng.cn/index.php/241</link>
		<comments>http://www.genepeng.cn/index.php/241#comments</comments>
		<pubDate>Tue, 29 Dec 2009 09:44:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/index.php/241</guid>
		<description><![CDATA[概要：
为了让别人以为你discuz网站的注册用户比较多，你可能需要注册大量虚假用户来伪造discuz网站的人气，如果手动地注册，那效率肯定会很低，势必需要一个工具来帮我们自动化地完成这个工作，本人就用ruby写了这样一个自动为discuz注册用户的工具.

前提：
1. 安装好了ruby和watir,可参照 http://watir.com/installation/，　和我写的另外一篇文章 ruby watir安装
2. IE能够正常运行 
限制：
不能用于要填验证码的网站，需要在后台先把需要验证码的配置设为否。
注册步骤：
1, disable IE cookies, 使cookie无效，参照 enable cookie, 注意：这篇文章讲的是怎么enable cookie，
2, 配置,
    A,  register_url 为注册的URL, 如 @register_url = &#8220;http://www.abc.cn/bbs/register.php&#8221;;
    B,   account_file_name 为保存注册的账号的用户名，密码等信息， 如：@account_file_name = &#8220;abc.cn&#8221;
    C,  account_num为你要注册的人数 如 @account_num = 2 表示注册2个人
   D,  $LOAD_PATH为你安装watir的库文件目录， 如 [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/241/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
