<?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>蜗牛的家 &#187; php perl ruby</title>
	<atom:link href="http://www.genepeng.cn/index.php/category/technic/php-perl-ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.genepeng.cn</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 14:52:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>how to assign var to php template view file</title>
		<link>http://www.genepeng.cn/index.php/310</link>
		<comments>http://www.genepeng.cn/index.php/310#comments</comments>
		<pubDate>Wed, 30 Nov 2011 14:52:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/?p=310</guid>
		<description><![CDATA[ the function below demo how to assign var to php template view file 下面的函数显示怎么传递变量到模板文件里 public function renderInternal($_viewFile_,$_data_=null,$_return_=false) { // we use special variable names here to avoid conflict when extracting data if(is_array($_data_)) extract($_data_,EXTR_PREFIX_SAME,'data'); else $data=$_data_; if($_return_) { ob_start(); ob_implicit_flush(false); require($_viewFile_); return ob_get_clean(); } else require($_viewFile_); }]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/310/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>watir takes long time to set long string, watir要很长的时间设置长字符串</title>
		<link>http://www.genepeng.cn/index.php/304</link>
		<comments>http://www.genepeng.cn/index.php/304#comments</comments>
		<pubDate>Mon, 21 Nov 2011 04:42:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/?p=304</guid>
		<description><![CDATA[watir takes long time to set long string, watir要很长的时间设置长字符串]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/304/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装watir   gem install watir 出了好多错</title>
		<link>http://www.genepeng.cn/index.php/299</link>
		<comments>http://www.genepeng.cn/index.php/299#comments</comments>
		<pubDate>Sat, 05 Nov 2011 06:33:34 +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/?p=299</guid>
		<description><![CDATA[安装watir   gem install watir 出了好多错 例如：too many connection resets SocketError: getaddrinfo: Unable to resolve dependencies: the installation aborts because of the network issue, but i don&#8217;t know why, the only thing i can do is that retry over and over again, it finally install successfully,  below is my retry history 但有时好像又可以进行下去， 可能是由于网络的原因， 中途会失败，也不知道是为什么， 只能一次一次进重试，最终还是成功啦， 花了不少时间 [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/299/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perl ldap start_tls Operations error</title>
		<link>http://www.genepeng.cn/index.php/277</link>
		<comments>http://www.genepeng.cn/index.php/277#comments</comments>
		<pubDate>Wed, 14 Sep 2011 04:28:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php perl ruby]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[php call perl]]></category>

		<guid isPermaLink="false">http://www.genepeng.cn/?p=277</guid>
		<description><![CDATA[When i use php script to call perl script which will query the ldap , the perl function start_tls always return the error message &#8220;Operations error&#8221;, but it works well when call perl script directly with command line, it almost spent me a day to fix this problem, i finally found the root cause is that [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/277/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>1</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 [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/268/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 [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/259/feed</wfw:commentRss>
		<slash:comments>0</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 [...]]]></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 [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/254/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的库文件目录， 如 $LOAD_PATH &#60;&#60; &#8216;C:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.5/lib&#8217; 3,创建名为 [account_file_name].csv文件，如： abc.cn.csv, 它和运行脚本在同一个目录下 4, [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/241/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

