<?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; web</title>
	<atom:link href="http://www.genepeng.cn/index.php/category/technic/web/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>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>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的库文件目录， 如 $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>
		<item>
		<title>ruby watir安装</title>
		<link>http://www.genepeng.cn/index.php/238</link>
		<comments>http://www.genepeng.cn/index.php/238#comments</comments>
		<pubDate>Sat, 26 Dec 2009 12:29:06 +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/238</guid>
		<description><![CDATA[照官方网站上说的安装[http://watir.com/installation/#win]，老是在运行 gem update --systemgem install watir 的时候出错，错误如下： C:\ruby\bin&#62;gem update &#8211;systemUpdating RubyGems&#8230;Attempting remote update of rubygems-updateInstall required dependency builder? [Yn]&#160; YERROR:&#160; While executing gem &#8230; (Gem::GemNotFoundException)&#160;&#160;&#160; Could not find builder (&#62;= 0) in any repository google了好久，一般都是说把C:\ruby\lib\ruby\gems\1.8下的source_cache 文件删除就可以了，　可我删除后还是会出现那种错误，只好重新下载、卸载、 安装一遍，还是没有解决。 最后去http://rubyforge.org/frs/?group_id=126下载了1.3.5的gem安装包， 解压后，点出里面的setup.rb进行安装，进入命令行： C:\ruby\bin&#62;gem -v1.3.5 发现安装好了gem，再运行 C:\ruby\bin&#62;gem update &#8211;systemUpdating RubyGemsNothing to update C:\ruby\bin&#62;gem install watirSuccessfully installed win32-api-1.4.5-x86-mswin32-60Successfully installed windows-api-0.4.0Successfully [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/238/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz Access denied</title>
		<link>http://www.genepeng.cn/index.php/227</link>
		<comments>http://www.genepeng.cn/index.php/227#comments</comments>
		<pubDate>Mon, 23 Nov 2009 04:39:55 +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/227</guid>
		<description><![CDATA[由于在把PHP 版本的discuz从7.0升级到7.2中忘记了备份config.inc.php而直接覆盖掉了原来的，升级完了之后出现了Access denied的问题，经过查找，发现了解决方法： 把ucenter目录的下的config.php里的UC_XXX配置部分复制到config.inc.php里，然后刷新就可以了。 原因可能是UC配置部分是程序在安装的时候自动生成的，但我却用最原始的配置文件覆盖了。 我复制内容如下： //应用的UCenter配置信息(可以到UCenter后台-&#62;应用管理-&#62;查看本应用-&#62;复制里面对应的配置信息进行替换) define(&#8216;UC_CONNECT&#8217;, &#8216;mysql&#8217;); // 连接 UCenter 的方式: mysql/NULL, 默认为空时为 fscoketopen(), mysql 是直接连接的数据库, 为了效率, 建议采用 mysql define(&#8216;UC_DBHOST&#8217;, &#8216;localhost&#8217;); // UCenter 数据库主机 define(&#8216;UC_DBUSER&#8217;, xxx); // UCenter 数据库用户名 define(&#8216;UC_DBPW&#8217;, xxx); // UCenter 数据库密码 define(&#8216;UC_DBNAME&#8217;, xx); // UCenter 数据库名称 define(&#8216;UC_DBCHARSET&#8217;, &#8216;gbk&#8217;); // UCenter 数据库字符集 define(&#8216;UC_DBTABLEPRE&#8217;, &#8216;`xxx`.uc_&#8217;); // UCenter 数据库表前缀 define(&#8216;UC_DBCONNECT&#8217;, &#8217;0&#8242;); // UCenter [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/227/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对cakephp的几点疑惑和误解</title>
		<link>http://www.genepeng.cn/index.php/183</link>
		<comments>http://www.genepeng.cn/index.php/183#comments</comments>
		<pubDate>Tue, 01 Sep 2009 08:00:30 +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/183</guid>
		<description><![CDATA[由于开始对cakephp还不是很熟悉，所以在学的时候，对cakephp有了些疑惑和误解，现在终于明白了，现在列举如下： 1. cakephp通过Elements对view实现了模块化，使得代码得到了更好的重用，而且Elements还支持cache功能，一开始我认为Element(view)只能通过controller assign变量来动态显示信息，如果这样的话，那cache功能就没用了，因为不管Element有没有cache存在，controller都有要取得数据，然后assign到Element(view)里，其实不是这样的，Element(view)还可以通过requestAction方法取得数据。它的使用方式是： controller　代码： // controllers/comments_controller.php class CommentsController extends AppController { function latest() { return $this-&#62;Comment-&#62;find('all', array('order' =&#62; 'Comment.created DESC', 'limit' =&#62; 10)); } } &#160; element 代码 &#160; // views/elements/latest_comments.ctp &#160; $comments = $this-&#62;requestAction('/comments/latest'); foreach($comments as $comment) { echo $comment['Comment']['title']; } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", [...]]]></description>
		<wfw:commentRss>http://www.genepeng.cn/index.php/183/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

