<?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://blog.dengruo.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dengruo.com</link>
	<description>若，三尺微命，孱立于天地之间</description>
	<lastBuildDate>Tue, 31 Aug 2010 14:12:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>druapl Cron run failed</title>
		<link>http://blog.dengruo.com/201008/974</link>
		<comments>http://blog.dengruo.com/201008/974#comments</comments>
		<pubDate>Tue, 31 Aug 2010 14:12:08 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[代码如诗]]></category>
		<category><![CDATA[drupal.cron]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=974</guid>
		<description><![CDATA[一个新闻资讯类的新站采用drupal驱动，使用了其上的openpublish集成安装包，在增加了xmlsitemap后提示Cron run failed. 在drupal内置的recent log entries中显示 Attempting to re-run cron while it is already running. 以及在每隔一个小时显示： Cron has been running for more than an hour and is most likely stuck. 无解，求助google，终于找到： cron函数的定义在includes/common.inc中function drupal_cron_run(){} 简单的解决方式是在运行corn前删除semaphore值，使cron解锁。如下： function drupal_cron_run() {   // If not in 'safe mode', increase the maximum execution time:      variable_del('cron_semaphore'); 并且一些log记录：完整修改drupal_cron_run()代码如下（修改处用粗体表示）： function drupal_cron_run() {]]></description>
			<content:encoded><![CDATA[<p>一个新闻资讯类的新站采用drupal驱动，使用了其上的openpublish集成安装包，在增加了xmlsitemap后提示Cron run failed.  在drupal内置的recent log entries中显示</p>
<blockquote><p>Attempting to re-run cron while it is already running.</p></blockquote>
<p>以及在每隔一个小时显示：</p>
<blockquote><p>Cron has been running for more than an hour and is most likely stuck.</p></blockquote>
<p>无解，求助google，终于找到：</p>
<p>cron函数的定义在<strong>includes/common.inc</strong>中<strong>function drupal_cron_run(){}</strong> 简单的解决方式是在运行corn前删除semaphore值，使cron解锁。如下：</p>
<pre>function drupal_cron_run() {</pre>
<pre>  // If not in 'safe mode', increase the maximum execution time:</pre>
<pre>  <strong>   variable_del('cron_semaphore');</strong></pre>
<p>并且一些log记录：完整修改drupal_cron_run()代码如下（修改处用粗体表示）：</p>
<blockquote><p>function drupal_cron_run() {</p>
<p>// If not in &#8216;safe mode&#8217;, increase the maximum execution time:</p>
<p><strong>variable_del(&#8216;cron_semaphore&#8217;);</strong></p>
<p>if (function_exists(&#8216;set_time_limit&#8217;)) {<br />
@set_time_limit(240);<br />
}</p>
<p>// Fetch the cron semaphore</p>
<p>$semaphore = variable_get(&#8216;cron_semaphore&#8217;, FALSE);</p>
<p>if ($semaphore) {</p>
<p>if (time() &#8211; $semaphore &gt; 3600) {</p>
<p>// Either cron has been running for more than an hour or the semaphore</p>
<p>// was not reset due to a database error.</p>
<p>watchdog(&#8216;cron&#8217;, t(&#8216;Cron has been running for more than an hour and is most likely stuck.&#8217;), WATCHDOG_ERROR);</p>
<p>// Release cron semaphore</p>
<p>variable_del(&#8216;cron_semaphore&#8217;);</p>
<p>}</p>
<p>else {</p>
<p>// Cron is still running normally.</p>
<p>watchdog(&#8216;cron&#8217;, t(&#8216;Attempting to re-run cron while it is already running.&#8217;), WATCHDOG_WARNING);</p>
<p>}</p>
<p>}</p>
<p>else {</p>
<p>// Register shutdown callback</p>
<p>register_shutdown_function(&#8216;drupal_cron_cleanup&#8217;);</p>
<p>// Lock cron semaphore</p>
<p>variable_set(&#8216;cron_semaphore&#8217;, time());</p>
<p>// Iterate through the modules calling their cron handlers (if any):</p>
<p>// module_invoke_all(&#8216;cron&#8217;);</p>
<p><strong>$log_timing = variable_get(&#8216;cron_log_times&#8217;, &#8217;1&#8242;);</strong></p>
<p><strong>foreach (module_implements(&#8216;cron&#8217;) as $module) {</strong></p>
<p><strong>watchdog(&#8216;cron&#8217;, t(&#8216;Cron processing initiated for module: @module.&#8217;, array(&#8216;@module&#8217; =&gt; $module)));</strong></p>
<p><strong>if ($module == &#8220;search&#8221;) continue;</strong></p>
<p><strong>$function = $module .&#8217;_cron&#8217;;</strong></p>
<p><strong>if ($log_timing) {</strong></p>
<p><strong>timer_start($function);</strong></p>
<p><strong>if ($log_timing == &#8216;debug&#8217;) {</strong></p>
<p><strong>watchdog(&#8216;cron&#8217;, t(&#8216;Cron processing initiated for module: @module.&#8217;, array(&#8216;@module&#8217; =&gt; $module)));</strong></p>
<p><strong>}</strong></p>
<p><strong>}</strong></p>
<p><strong>$function();</strong></p>
<p><strong>if ($log_timing) {</strong></p>
<p><strong>$timer = timer_stop($function);</strong></p>
<p><strong>watchdog(&#8216;cron&#8217;, t(&#8216;Cron time elapsed for @module is @millisecs ms.&#8217;, array(&#8216;@module&#8217; =&gt; $module, &#8216;@millisecs&#8217; =&gt; $timer['time'])));</strong></p>
<p><strong>}</strong></p>
<p><strong>} </strong></p>
<p>// Record cron time</p>
<p>variable_set(&#8216;cron_last&#8217;, time());</p>
<p>watchdog(&#8216;cron&#8217;, t(&#8216;Cron run completed.&#8217;), WATCHDOG_NOTICE);</p>
<p>// Release cron semaphore</p>
<p>variable_del(&#8216;cron_semaphore&#8217;);</p>
<p>// Return TRUE so other functions can check if it did run successfully</p>
<p>return TRUE;</p>
<p>}</p>
<p>}</p></blockquote>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 146px; width: 1px; height: 1px; overflow: hidden;">
<pre>/**</pre>
<pre> * Executes a cron run when called</pre>
<pre> * @return</pre>
<pre> * Returns TRUE if ran successfully</pre>
<pre> */</pre>
<pre>function drupal_cron_run() {</pre>
<pre>  // If not in 'safe mode', increase the maximum execution time:</pre>
<pre>   <strong>  variable_del('cron_semaphore');</strong></pre>
<pre>  if (!ini_get('safe_mode')) {</pre>
<pre>    set_time_limit(240);</pre>
<pre>  }                                                             

  // Fetch the cron semaphore</pre>
<pre>  $semaphore = variable_get('cron_semaphore', FALSE);</pre>
<pre>  if ($semaphore) {</pre>
<pre>    if (time() - $semaphore &gt; 3600) {</pre>
<pre>      // Either cron has been running for more than an hour or the semaphore</pre>
<pre>      // was not reset due to a database error.</pre>
<pre>      watchdog('cron', t('Cron has been running for more than an hour and is most likely stuck.'), WATCHDOG_ERROR);</pre>
<pre>      // Release cron semaphore</pre>
<pre>      variable_del('cron_semaphore');</pre>
<pre>    }</pre>
<pre>    else {</pre>
<pre>      // Cron is still running normally.</pre>
<pre>      watchdog('cron', t('Attempting to re-run cron while it is already running.'), WATCHDOG_WARNING);</pre>
<pre>    }</pre>
<pre>  }</pre>
<pre>  else {</pre>
<pre>    // Register shutdown callback</pre>
<pre>    register_shutdown_function('drupal_cron_cleanup');</pre>
<pre>    // Lock cron semaphore</pre>
<pre>    variable_set('cron_semaphore', time());</pre>
<pre>    // Iterate through the modules calling their cron handlers (if any):</pre>
<pre>    // module_invoke_all('cron');
</pre>
<pre>    $log_timing = variable_get('cron_log_times', '1');</pre>
<pre>    foreach (module_implements('cron') as $module) {</pre>
<pre>         <strong> watchdog('cron', t('Cron processing initiated for module: @module.', array('@module' =&gt; $module)));</strong></pre>
<pre> if ($module == "search") continue;</pre>
<pre>    $function = $module .'_cron';</pre>
<pre>      if ($log_timing) {</pre>
<pre>        timer_start($function);</pre>
<pre>        if ($log_timing == 'debug') {</pre>
<pre>        <strong>  watchdog('cron', t('Cron processing initiated for module: @module.', array('@module' =&gt; $module)));</strong></pre>
<pre>        }</pre>
<pre>      }</pre>
<pre>      $function();</pre>
<pre>      if ($log_timing) {</pre>
<pre>        $timer = timer_stop($function);</pre>
<pre>      <strong>  watchdog('cron', t('Cron time elapsed for @module is @millisecs ms.', array('@module' =&gt; $module, '@millisecs' =&gt; $timer['time'])));</strong></pre>
<pre>      }</pre>
<pre>    }</pre>
<pre>    // Record cron time</pre>
<pre>    variable_set('cron_last', time());</pre>
<pre>    watchdog('cron', t('Cron run completed.'), WATCHDOG_NOTICE);</pre>
<pre>    // Release cron semaphore</pre>
<pre>    variable_del('cron_semaphore');

    // Return TRUE so other functions can check if it did run successfully</pre>
<pre>    return TRUE;</pre>
<pre>  }</pre>
<pre>}</pre>
</div>
<p>原文来自：http://www.ebizontek.com/drupal-cron-stuck-log-progress</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201008/974/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql repair</title>
		<link>http://blog.dengruo.com/201008/971</link>
		<comments>http://blog.dengruo.com/201008/971#comments</comments>
		<pubDate>Fri, 27 Aug 2010 08:10:53 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[代码如诗]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=971</guid>
		<description><![CDATA[备份mysql时出错： mysqldump: Error 1194: Table &#8216;wp_options&#8217; is marked as crashed and should be repaired when dumping table `wp_options` at row: 91 所需要的是进行数据库修复操作 解决方法： 进入mysql控制台： mysql -u usename -p password use databasename; repair tablename; 问题解决： mysql&#62; repair table wp_options; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ &#124; Table              &#124; Op     &#124; Msg_type &#124; Msg_text                                            &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+ &#124; dengruo.wp_options &#124; repair &#124; info    ]]></description>
			<content:encoded><![CDATA[<p>备份<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a>时出错：</p>
<blockquote><p>mysqldump: Error 1194: Table &#8216;wp_options&#8217; is marked as crashed and should be repaired when dumping table `wp_options` at row: 91</p></blockquote>
<p>所需要的是进行数据库修复操作</p>
<p>解决方法：</p>
<p>进入<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a>控制台：</p>
<p><a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a> -u usename -p password</p>
<p>use databasename;</p>
<p>repair tablename;</p>
<p>问题解决：</p>
<blockquote><p>
<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a>&gt; repair table wp_options;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| Table              | Op     | Msg_type | Msg_text                                            |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| dengruo.wp_options | repair | info     | Found block with too small length at 12084; Skipped |<br />
| dengruo.wp_options | repair | warning  | Number of rows changed from 398 to 397              |<br />
| dengruo.wp_options | repair | status   | OK                                                  |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
3 rows in set (1.26 sec)</p></blockquote>
<p>如果有phpmyadmin的话直接有个修复数据选项可以操作。</p>
<p>ps:<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">Mysql</a>控制台的命令需要后面加上&#8217;;&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201008/971/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx+mysql+php-fpm</title>
		<link>http://blog.dengruo.com/201008/968</link>
		<comments>http://blog.dengruo.com/201008/968#comments</comments>
		<pubDate>Fri, 27 Aug 2010 06:45:20 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[代码如诗]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=968</guid>
		<description><![CDATA[几天时间：一直耗在nginx+mysql+php-fpm的配置中 将网上能够google到的方法几乎都尝试了遍。 最终成功的只有linode的教学资料里面的和张宴的第六版的方法。 linode的方法是直接rpm的，简单稳定，但是组件太老了&#8211;对于类似我之类的liunx新手而言，是一个不错的学习文档。 本站还是在apache和nginx之间徘徊。 一个老大粗笨但是支持全而，webmin面板就能让人省很多事。 一个新锐蓬勃，但是有用的文档都是英文的（好像基本上技术类的文档中文的都是毫无价值，除了偶尔的）。 发现个不错的rpm: http://iuscommunity.org/ CentOS官方wiki对它的介绍： http://wiki.centos.org/AdditionalResources/Repositories 继续reload VPS去，争取把php换成5.3.3版本。 备注下:linode 的VPS 设置PPTP时的默认的kernel 有问题的，要切换成stable版本的。 wordpress英文版在升级后有提示要升级数据库的，为什么今天升级本博客时用的中文版没有相应提示呢？]]></description>
			<content:encoded><![CDATA[<p>几天时间：一直耗在nginx+<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a>+php-fpm的配置中</p>
<p>将网上能够google到的方法几乎都尝试了遍。</p>
<p>最终成功的只有linode的教学资料里面的和张宴的第六版的方法。</p>
<p>linode的方法是直接rpm的，简单稳定，但是组件太老了&#8211;对于类似我之类的liunx新手而言，是一个不错的学习文档。</p>
<p>本站还是在apache和nginx之间徘徊。</p>
<blockquote><p>一个老大粗笨但是支持全而，webmin面板就能让人省很多事。</p>
<p>一个新锐蓬勃，但是有用的文档都是英文的（好像基本上技术类的文档中文的都是毫无价值，除了偶尔的）。</p></blockquote>
<p>发现个不错的rpm: http://iuscommunity.org/</p>
<p>CentOS官方wiki对它的介绍：</p>
<p>http://wiki.centos.org/AdditionalResources/Repositories</p>
<p>继续reload VPS去，争取把php换成5.3.3版本。</p>
<p>备注下:linode 的VPS 设置PPTP时的默认的kernel 有问题的，要切换成stable版本的。</p>
<p><a href="http://blog.dengruo.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with wordpress">wordpress</a>英文版在升级后有提示要升级数据库的，为什么今天升级本博客时用的中文版没有相应提示呢？</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201008/968/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>drupal imce上传文件按时间归类</title>
		<link>http://blog.dengruo.com/201008/960</link>
		<comments>http://blog.dengruo.com/201008/960#comments</comments>
		<pubDate>Sun, 22 Aug 2010 03:51:09 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[代码如诗]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=960</guid>
		<description><![CDATA[drupal imce 上传的文件默认是全部放在files下面。时间长了对管理很不方便。 将上传的文档图片按照文件进行归类。 1：进入imce的管理界面：admin/settings/imce。默认有两个profile，我选择了直接编辑其中的User-1。 这里面可以设置图片的大小，所有用户的总的上传量之类的数据，但是对于对于这个主题而言最主要的地方在于： 设置目录路径。这里面可以直接输入php代码来实现自己的功能。但是前面要加上php:因为站点现在的图片量不是很大，所以只进行了年月的分类，而没有精确到日。示例如下： php: return date(&#8216;Y&#8217;, $user-&#62;created).&#8217;/&#8217;.date(&#8216;m&#8217;, $user-&#62;created); 实现的结果如图：]]></description>
			<content:encoded><![CDATA[<p>drupal imce 上传的文件默认是全部放在files下面。时间长了对管理很不方便。</p>
<p>将上传的文档图片按照文件进行归类。</p>
<p>1：进入imce的管理界面：admin/settings/imce。默认有两个profile，我选择了直接编辑其中的User-1。</p>
<p>这里面可以设置图片的大小，所有用户的总的上传量之类的数据，但是对于对于这个主题而言最主要的地方在于：</p>
<p><a href="http://blog.dengruo.com/wp-content/uploads/2010/08/drupalImceDir.jpg"><img class="aligncenter size-full wp-image-961" title="drupalImceDir" src="http://blog.dengruo.com/wp-content/uploads/2010/08/drupalImceDir.jpg" alt="" width="376" height="123" /></a>设置目录路径。这里面可以直接输入php代码来实现自己的功能。但是前面要加上php:因为站点现在的图片量不是很大，所以只进行了年月的分类，而没有精确到日。示例如下：</p>
<p>php: return date(&#8216;Y&#8217;, $user-&gt;created).&#8217;/&#8217;.date(&#8216;m&#8217;, $user-&gt;created);</p>
<p>实现的结果如图：<a href="http://blog.dengruo.com/wp-content/uploads/2010/08/drupalImceDir.jpg"><img class="aligncenter size-full wp-image-961" title="drupalImceDir" src="http://blog.dengruo.com/wp-content/uploads/2010/08/drupalImceDir.jpg" alt="" width="376" height="123" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201008/960/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>减少Disk IO</title>
		<link>http://blog.dengruo.com/201008/956</link>
		<comments>http://blog.dengruo.com/201008/956#comments</comments>
		<pubDate>Thu, 19 Aug 2010 06:53:05 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[seo&sem]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=956</guid>
		<description><![CDATA[被服务器搞的心烦，除了mysql的500外，disk IO数值居高不下。 google了相关资料，整理下： 1：控制系统内存swap的概率。最直接的是关掉swap，但是这种突发状况下内存不够，修改swappiness参数到0，尽可能地使用物理内存而不是虚拟内存。遗憾的是我的物理内存总是满的，还是想办法减小分配给缓存的内存了。 查看命令 sysctl -q vm.swappiness 默是60 修改命令 sudo sysctl vm.swappiness=10 2：调整Apache的MaxRequestsPerChild，据说对disk IO的影响很明显。先测试上面的再进行这个测试了。不过说这个处理数下降了，各方面都肯定会降的，但是因此影响到了网站的同时在线承受能力就得之东隅，失之西隅了。]]></description>
			<content:encoded><![CDATA[<p>被服务器搞的心烦，除了<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a>的500外，disk IO数值居高不下。</p>
<p>google了相关资料，整理下：</p>
<p>1：控制系统内存swap的概率。最直接的是关掉swap，但是这种突发状况下内存不够，修改swappiness参数到0，尽可能地使用物理内存而不是虚拟内存。遗憾的是我的物理内存总是满的，还是想办法减小分配给缓存的内存了。</p>
<blockquote><p>查看命令</p>
<p>sysctl -q vm.swappiness<br />
默是60<br />
修改命令</p>
<p>sudo sysctl vm.swappiness=10</p></blockquote>
<p>2：调整Apache的MaxRequestsPerChild，据说对disk IO的影响很明显。先测试上面的再进行这个测试了。不过说这个处理数下降了，各方面都肯定会降的，但是因此影响到了网站的同时在线承受能力就得之东隅，失之西隅了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201008/956/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我的脚</title>
		<link>http://blog.dengruo.com/201008/952</link>
		<comments>http://blog.dengruo.com/201008/952#comments</comments>
		<pubDate>Sun, 01 Aug 2010 15:18:49 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[随笔感触]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/201008/952</guid>
		<description><![CDATA[白天china joy,晚上世博，在連續17個小時的站著，走著&#8211;就是沒有坐著後，徹底地萎掉了。 总而言之：china joy的门票虽然比世博贵，但是价值也较高。 世博他妈的就是一鸡肋，“总得去次吧”，盛名之下，焉负其实。除了拍张照，进行类似孙大圣撒泡尿到此一游的行为别无乐趣。 ps: 晚上去吧，雨天也不错。看到中国馆坚持走开，基本上没希望进去。而且也别指望你的同类会有什么创意，不信你可以去中国省市联合馆见识一下LED显示屏，除了看视频就没东西了。 芬兰馆的门口的美女不错。轮到我们时刚好把我们拦下， 我说了声：人品不行。 金发美女回了句：这就是命运！ 和她聊下去还是挺有意思的。调侃她还是挺有意思，希望你有这个运气。 马来西亚的Logo在某些角度看时很像马桶两个字。 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 为什么我没碰到凤姐？也没找出小苍井空呢不过几百位美女在面前晃来晃去的情况下，原谅我吧。 对show girl身高要求不怎么样的china joy很适合俺们这种只有170身高的人去看&#8211;不会自悲，甚至学着地精的话说：天呐，你真高！ 咱吃不到葡萄，那就看看吧…… &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 可惜china joy没了，世博还在继续…… 可惜我的脚持续疼痛中……]]></description>
			<content:encoded><![CDATA[<p>白天china joy,晚上世博，在連續17個小時的站著，走著&#8211;就是沒有坐著後，徹底地萎掉了。</p>
<p>总而言之：china joy的门票虽然比世博贵，但是价值也较高。</p>
<p>世博他妈的就是一鸡肋，“总得去次吧”，盛名之下，焉负其实。除了拍张照，进行类似孙大圣撒泡尿到此一游的行为别无乐趣。</p>
<p>ps:</p>
<p>晚上去吧，雨天也不错。看到中国馆坚持走开，基本上没希望进去。而且也别指望你的同类会有什么创意，不信你可以去中国省市联合馆见识一下LED显示屏，除了看视频就没东西了。</p>
<p>芬兰馆的门口的美女不错。轮到我们时刚好把我们拦下，</p>
<p>我说了声：人品不行。</p>
<p>金发美女回了句：这就是命运！</p>
<p>和她聊下去还是挺有意思的。调侃她还是挺有意思，希望你有这个运气。</p>
<p>马来西亚的Logo在某些角度看时很像马桶两个字。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>为什么我没碰到凤姐？也没找出小苍井空呢不过几百位美女在面前晃来晃去的情况下，原谅我吧。</p>
<p>对show girl身高要求不怎么样的china joy很适合俺们这种只有170身高的人去看&#8211;不会自悲，甚至学着地精的话说：天呐，你真高！</p>
<p>咱吃不到葡萄，那就看看吧……</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>可惜china joy没了，世博还在继续……</p>
<p>可惜我的脚持续疼痛中……</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201008/952/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>累</title>
		<link>http://blog.dengruo.com/201007/950</link>
		<comments>http://blog.dengruo.com/201007/950#comments</comments>
		<pubDate>Fri, 30 Jul 2010 14:13:31 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[随笔感触]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/201007/950</guid>
		<description><![CDATA[迷失方向， 无处安身。]]></description>
			<content:encoded><![CDATA[<p>迷失方向，<br />
无处安身。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201007/950/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>小四</title>
		<link>http://blog.dengruo.com/201007/948</link>
		<comments>http://blog.dengruo.com/201007/948#comments</comments>
		<pubDate>Wed, 28 Jul 2010 16:09:56 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[随笔感触]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=948</guid>
		<description><![CDATA[等待，终于拿到了小四-4745G，完美屏才是最重要的。 今天是你的生日，开心！]]></description>
			<content:encoded><![CDATA[<p>等待，终于拿到了小四-4745G，完美屏才是最重要的。</p>
<p>今天是你的生日，开心！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201007/948/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress采集插件tiger</title>
		<link>http://blog.dengruo.com/201007/945</link>
		<comments>http://blog.dengruo.com/201007/945#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:14:39 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[插件制作]]></category>
		<category><![CDATA[tiger]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[采集]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=945</guid>
		<description><![CDATA[没事就喜欢折腾：放出最新wordpress采集插件。 取名为tiger,源于，今年是本命年&#8211;虎年，另外么，既然是采集了，咱也别说高尚了，学小日子本发出&#8217;hu,hu,hu!&#8217;，扑向珍珠港，扑向万恶的资本主义。 &#8212;&#8212;&#8212;&#8211;邪恶的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 1：解决了标题重复功能 2：针对雅虎问答的最近改版改进了，依旧没有使用yahoo api. 3：版面重新编排,写的时候懒的切换输出法，所以满屏都是chinglish. 4：除了yahoo answer外，新增加了一个采集源ezine.请自行看ezinearticles.com看版权问题， 5：翻译部分解决了采用了新的php translate wagger,其解决了5000字的限制。但是翻译和采集源之间的关系处理一直没有一个比较好的思路去实现。比如yahoo answer,和ezine的是否都需要翻译。所以暂时增加翻译只有一个步骤。 6：前一个tiger版权的数据库可以自动升级。 7：支持wordpress3.0 8：显示的采集数量为尝试采集的次数，在没有找到解决mysql使用负载前暂时不进行log统计。 &#8212;&#8212;&#8212;&#8211;邪恶的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 1：采集时间的设定，避免访问高峰期 2：作为一贯传承的风格风格， 3：批量增加关键词功能 4：因为是全新的构架，后期可以实现接口连接模块功能，但是依旧没有处理好feeds采集和其它采集源之间在程序构架上面的关系。不排除后期单独将feeds采集写成一个插件的形式。 5：代理设置 6：伪原创和文章的可读性的平衡 大家谁有这些实现的资料，小生在此求教了。 &#8212;&#8212;&#8212;&#8211;邪恶的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 权且当成测试吧。虽然也可以用于实际生产环境了。以后整体框架应该不会去变动了。敬请期待更加完善的版权的出现，免费的将只提供现有的这两个采集源，收费方式在于定制其它文章站、新闻站的采集源。 在此不具名感谢很多采集插件，让我汲取了很多精华。 点此下载：tiger1.3.4!!! 运行环境，wamp和lamp下，wordpress3.0下运行无问题。 请测试php-curl,php-dom组件的安装。 相关日志 列表 (0) wordpress采集插件制作思路 (0) wordpress采集插件 修复 (25) 西天也许有；空想前往，又有何用 (0) 网站转移记1 (1)]]></description>
			<content:encoded><![CDATA[<p>没事就喜欢折腾：放出最新<a href="http://blog.dengruo.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="Posts tagged with wordpress">wordpress</a>采集插件。</p>
<p>取名为<span style="color: #ff6600;"><strong><a href="http://blog.dengruo.com/tag/tiger" class="st_tag internal_tag" rel="tag" title="Posts tagged with tiger">tiger</a></strong></span>,源于，今年是本命年&#8211;虎年，另外么，既然是采集了，咱也别说高尚了，学小日子本发出&#8217;hu,hu,hu!&#8217;，扑向珍珠港，扑向万恶的资本主义。</p>
<p>&#8212;&#8212;&#8212;&#8211;邪恶的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1：解决了标题重复功能</p>
<p>2：针对雅虎问答的最近改版改进了，依旧没有使用yahoo api.</p>
<p>3：版面重新编排,写的时候懒的切换输出法，所以满屏都是chinglish.</p>
<p>4：除了yahoo answer外，新增加了一个采集源ezine.请自行看ezinearticles.com看版权问题，</p>
<p>5：翻译部分解决了采用了新的php translate wagger,其解决了5000字的限制。但是翻译和采集源之间的关系处理一直没有一个比较好的思路去实现。比如yahoo answer,和ezine的是否都需要翻译。所以暂时增加翻译只有一个步骤。</p>
<p>6：前一个<a href="http://blog.dengruo.com/tag/tiger" class="st_tag internal_tag" rel="tag" title="Posts tagged with tiger">tiger</a>版权的数据库可以自动升级。</p>
<p>7：支持wordpress3.0</p>
<p>8：显示的采集数量为尝试采集的次数，在没有找到解决<a href="http://blog.dengruo.com/tag/mysql" class="st_tag internal_tag" rel="tag" title="Posts tagged with mysql">mysql</a>使用负载前暂时不进行log统计。</p>
<p>&#8212;&#8212;&#8212;&#8211;邪恶的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1：采集时间的设定，避免访问高峰期</p>
<p>2：作为一贯传承的风格风格，</p>
<p>3：批量增加关键词功能</p>
<p>4：因为是全新的构架，后期可以实现接口连接模块功能，但是依旧没有处理好feeds采集和其它采集源之间在程序构架上面的关系。不排除后期单独将feeds采集写成一个插件的形式。</p>
<p>5：代理设置</p>
<p>6：伪原创和文章的可读性的平衡</p>
<p>大家谁有这些实现的资料，小生在此求教了。</p>
<p>&#8212;&#8212;&#8212;&#8211;邪恶的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>权且当成测试吧。虽然也可以用于实际生产环境了。以后整体框架应该不会去变动了。敬请期待更加完善的版权的出现，免费的将只提供现有的这两个采集源，收费方式在于定制其它文章站、新闻站的采集源。</p>
<p>在此不具名感谢很多采集插件，让我汲取了很多精华。<a href="http://blog.dengruo.com/wp-content/uploads/2010/07/tiger1.3.4.zip"></a></p>
<p><a href="http://blog.dengruo.com/wp-content/uploads/2010/07/tiger1.3.4.zip">点此下载：<span style="color: #ff6600;">tiger1.3.4</span></a>!!!</p>
<p>运行环境，wamp和lamp下，wordpress3.0下运行无问题。</p>
<p>请测试php-curl,php-dom组件的安装。</p>

	<br/><h5>相关日志</h5>
	<ul class="st-related-posts">
	<li><a href="http://blog.dengruo.com/200907/398" title="列表 (2009年07月9日)">列表</a> (0)</li>
	<li><a href="http://blog.dengruo.com/200907/389" title="wordpress采集插件制作思路 (2009年07月2日)">wordpress采集插件制作思路</a> (0)</li>
	<li><a href="http://blog.dengruo.com/201003/883" title="wordpress采集插件 修复 (2010年03月5日)">wordpress采集插件 修复</a> (25)</li>
	<li><a href="http://blog.dengruo.com/200908/492" title="西天也许有；空想前往，又有何用 (2009年08月18日)">西天也许有；空想前往，又有何用</a> (0)</li>
	<li><a href="http://blog.dengruo.com/200908/457" title="网站转移记1 (2009年08月4日)">网站转移记1</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201007/945/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>不同层次的恶搞</title>
		<link>http://blog.dengruo.com/201006/940</link>
		<comments>http://blog.dengruo.com/201006/940#comments</comments>
		<pubDate>Mon, 28 Jun 2010 03:10:11 +0000</pubDate>
		<dc:creator>止戈</dc:creator>
				<category><![CDATA[空想前往]]></category>

		<guid isPermaLink="false">http://blog.dengruo.com/?p=940</guid>
		<description><![CDATA[小日本弄的恶搞片，关于.net和java.没有技术背景的人看起来会累，我就用没有技术背景的话解释下：两者都是程序开发语言，.net可以认为是一个老头，java则是新生代。just so. 相对于国内泛滥,毫无立意的恶搞片，我只能说这部至少在立意是在不同层次上面的。]]></description>
			<content:encoded><![CDATA[<p>小日本弄的恶搞片，关于.net和java.没有技术背景的人看起来会累，我就用没有技术背景的话解释下：两者都是程序开发语言，.net可以认为是一个老头，java则是新生代。just  so.</p>
<p>相对于国内泛滥,毫无立意的恶搞片，我只能说这部至少在立意是在不同层次上面的。</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="src" value="http://player.youku.com/player.php/sid/XMTg0NTczMTg0/v.swf" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://player.youku.com/player.php/sid/XMTg0NTczMTg0/v.swf" quality="high" align="middle"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dengruo.com/201006/940/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
