<?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; blog公告</title>
	<atom:link href="http://nonleaf.net/category/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://nonleaf.net</link>
	<description>[NonLeaf.Net] nothing but life</description>
	<lastBuildDate>Sun, 19 Jun 2011 14:24:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Back again</title>
		<link>http://nonleaf.net/871.html</link>
		<comments>http://nonleaf.net/871.html#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:06:31 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[blog公告]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=871</guid>
		<description><![CDATA[国内的网络审查越来越过分，经过多天停机后，我的博还是来到了大洋彼岸的米国。 google撤出的事情还是有些伤心。不是为一家商业公司的决定，而是对国内网络环境倒退的寒心。我亲爱的祖国，你怎么了？ 随机文章: I'm Back WaterSurface v1.5 released 无叶的三叶草 再看《孽子》 今天]]></description>
			<content:encoded><![CDATA[<p>国内的网络审查越来越过分，经过多天停机后，我的博还是来到了大洋彼岸的米国。</p>
<p>google撤出的事情还是有些伤心。不是为一家商业公司的决定，而是对国内网络环境倒退的寒心。我亲爱的祖国，你怎么了？
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/125.html" rel="bookmark" title="六月 21, 2006">满眼离开</a></li>
<li><a href="http://nonleaf.net/17.html" rel="bookmark" title="三月 12, 2006">买了新本本</a></li>
<li><a href="http://nonleaf.net/20.html" rel="bookmark" title="三月 17, 2006">完美</a></li>
<li><a href="http://nonleaf.net/182.html" rel="bookmark" title="八月 9, 2006">2008奥运会体育图标发布</a></li>
<li><a href="http://nonleaf.net/928.html" rel="bookmark" title="九月 1, 2010">怎样的承诺和责任</a></li>
</ul>
<p><!-- Random Posts took 12.434 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/871.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#039;m Back</title>
		<link>http://nonleaf.net/803.html</link>
		<comments>http://nonleaf.net/803.html#comments</comments>
		<pubDate>Wed, 06 Jan 2010 12:55:02 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[blog公告]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=803</guid>
		<description><![CDATA[之前一个月，服务器一直断断续续。原因是国内正在全面审查服务器，先全部下线，然后一个一个的清查。所以主机商把服务器从上海转移到重庆又转移到北京... 最近国内的互联网政策鸡飞狗跳，无奈。以后考虑租国外主机了，只是租金较贵，如果有合租意向的童鞋（比如独立blog或个人网站），欢迎和我联系。 随机文章: AMD+ATi=? [转载]我的爱就是一片云 当我们长大，又老去 I'm Back Would you die, for the one you love]]></description>
			<content:encoded><![CDATA[<p>之前一个月，服务器一直断断续续。原因是国内正在全面审查服务器，先全部下线，然后一个一个的清查。所以主机商把服务器从上海转移到重庆又转移到北京...</p>
<p>最近国内的互联网政策鸡飞狗跳，无奈。以后考虑租国外主机了，只是租金较贵，如果有合租意向的童鞋（比如独立blog或个人网站），欢迎和我联系。
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/120.html" rel="bookmark" title="六月 16, 2006">也说改变</a></li>
<li><a href="http://nonleaf.net/977.html" rel="bookmark" title="三月 3, 2011">一去不返</a></li>
<li><a href="http://nonleaf.net/424.html" rel="bookmark" title="二月 29, 2008">Crayon Physics</a></li>
<li><a href="http://nonleaf.net/16.html" rel="bookmark" title="三月 10, 2006">完全而快乐的“掉入”这个圈子</a></li>
<li><a href="http://nonleaf.net/65.html" rel="bookmark" title="五月 5, 2006">motss的歌</a></li>
</ul>
<p><!-- Random Posts took 18.124 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/803.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>blog搬家</title>
		<link>http://nonleaf.net/420.html</link>
		<comments>http://nonleaf.net/420.html#comments</comments>
		<pubDate>Thu, 21 Feb 2008 09:35:21 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[blog公告]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[工作]]></category>

		<guid isPermaLink="false">http://nonleaf.net/wordpress/?p=420</guid>
		<description><![CDATA[蓄谋已久的blog搬家行动胜利完成！ 请大家使用新域名[http://nonleaf.net]，原来域名目前仍旧可以访问，会自动转向新域名。 本以为很轻松的搬家工作，还是遇到了不少困难，大概清楚了从域名解析到Apache mod_rewrite。 问题记录如下，以飨后人： 1.将备份的数据库用文本编辑器打开，将原来的URL批量替换为新的，然后导入新数据库。随后发现wordpress的侧边拦没法载入，报错总是在wp-includes/widgets.php里面的一些语句。Google未果，研究发现问题出在数据库上，有些表（如wp_options）的文本数据有类似这样的格式：s:6:"string"，6表明后面的string的长度，我没仔细看代码，估计这么做是为了快速定位，但是如果string里面含有URL，都被我批量替换掉了，替换前后长度必然不相等，所以造成wp读出奇怪的数据down掉。 解决办法： 自己写个程序改一下备份的数据库文件，将s后面的数字数出来替换。或者对原来数据库只改关键地方--wp_options表里option_name='siteurl'的那一行，其余的通过在旧服务器上写.htaccess重定向解决，前提是原来服务器apache有mod_rewrite。 编辑旧服务器的wordpress目录下的.htaccess文件—— Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://nonleaf.net/wordpress/$1 [L,R=301] 2.cPanel暂时不支持域名绑定在深层目录下，但是这个对于一个虚拟主机多个人共享是需要的。可以通过mod_rewrite达到目的（写.htaccess）。 解决办法： 例如要从test.nonleaf.net对应到到主机的根目录(/home/user/public_html/)下的一个深层目录/home/user/public_html/nonleaf/test/。 首先在域名商那里将test添加如A记录，IP指向主机（当然你也可以添加CNAME），同时将这个域名加入到cPanel的域名中，让主机能接受来自这个域名的请求。然后在public_html下面创建.htaccess文件—— Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} !^/nonleaf/test/.*$ [NC] #防止反复rewrite造成死循环 RewriteCond %{HTTP_HOST} ^test.nonleaf.net$ [NC] #识别出test.nonleaf.net域名 RewriteRule ^(.*)$ nonleaf/test/$1 [L,NC] #rewrite到子目录 当然，如果在test目录下的.htaccess中还有rewrite，需要考虑加上RewriteBase。总之mod_rewrite的功能很好很强大，可是实现机制有些复杂，要多看manual才行。 随机文章: Should I? American Idol OS 我不知道怎么回答 Fade To Black]]></description>
			<content:encoded><![CDATA[<p>蓄谋已久的blog搬家行动胜利完成！<br />
请大家使用新域名[<a href="http://nonleaf.net">http://nonleaf.net</a>]，原来域名目前仍旧可以访问，会自动转向新域名。</p>
<p>本以为很轻松的搬家工作，还是遇到了不少困难，大概清楚了从域名解析到Apache mod_rewrite。</p>
<p>问题记录如下，以飨后人：</p>
<p>1.将备份的数据库用文本编辑器打开，将原来的URL批量替换为新的，然后导入新数据库。随后发现wordpress的侧边拦没法载入，报错总是在wp-includes/widgets.php里面的一些语句。Google未果，研究发现问题出在数据库上，有些表（如wp_options）的文本数据有类似这样的格式：s:6:"string"，6表明后面的string的长度，我没仔细看代码，估计这么做是为了快速定位，但是如果string里面含有URL，都被我批量替换掉了，替换前后长度必然不相等，所以造成wp读出奇怪的数据down掉。</p>
<p>解决办法：<br />
自己写个程序改一下备份的数据库文件，将s后面的数字数出来替换。或者对原来数据库只改关键地方--wp_options表里option_name='siteurl'的那一行，其余的通过在旧服务器上写.htaccess重定向解决，前提是原来服务器apache有mod_rewrite。<br />
编辑旧服务器的wordpress目录下的.htaccess文件——<br />
<code>Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteRule ^(.*)$ http://nonleaf.net/wordpress/$1 [L,R=301]</code></p>
<p>2.cPanel暂时不支持域名绑定在深层目录下，但是这个对于一个虚拟主机多个人共享是需要的。可以通过mod_rewrite达到目的（写.htaccess）。</p>
<p>解决办法：<br />
例如要从test.nonleaf.net对应到到主机的根目录(/home/user/public_html/)下的一个深层目录/home/user/public_html/nonleaf/test/。<br />
首先在域名商那里将test添加如A记录，IP指向主机（当然你也可以添加CNAME），同时将这个域名加入到cPanel的域名中，让主机能接受来自这个域名的请求。然后在public_html下面创建.htaccess文件——<br />
<code>Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond %{REQUEST_URI} !^/nonleaf/test/.*$ [NC] #防止反复rewrite造成死循环<br />
RewriteCond %{HTTP_HOST} ^test.nonleaf.net$ [NC] #识别出test.nonleaf.net域名<br />
RewriteRule ^(.*)$ nonleaf/test/$1 [L,NC] #rewrite到子目录</code></p>
<p>当然，如果在test目录下的.htaccess中还有rewrite，需要考虑加上RewriteBase。总之mod_rewrite的功能很好很强大，可是实现机制有些复杂，要多看manual才行。
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/391.html" rel="bookmark" title="十二月 28, 2007">Linus vs C++</a></li>
<li><a href="http://nonleaf.net/56.html" rel="bookmark" title="四月 24, 2006">十佳复赛</a></li>
<li><a href="http://nonleaf.net/878.html" rel="bookmark" title="五月 12, 2010">再见时光</a></li>
<li><a href="http://nonleaf.net/185.html" rel="bookmark" title="八月 11, 2006">WordPress 2.0.4 Upgraded</a></li>
<li><a href="http://nonleaf.net/389.html" rel="bookmark" title="十二月 23, 2007">爱情</a></li>
</ul>
<p><!-- Random Posts took 22.155 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/420.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>blog隐私保护</title>
		<link>http://nonleaf.net/151.html</link>
		<comments>http://nonleaf.net/151.html#comments</comments>
		<pubDate>Fri, 21 Jul 2006 04:16:19 +0000</pubDate>
		<dc:creator>无叶</dc:creator>
				<category><![CDATA[blog公告]]></category>

		<guid isPermaLink="false">http://nonleaf.net/?p=151</guid>
		<description><![CDATA[基于隐私的保护，我决定为blog加把锁。 第一次来到这里的游客，请先注册（右侧栏），留下你的登录用户名（英文）、信箱（请尽量让我可以辨认你是谁^_^），初始密码会发到你的信箱。 您可以使用这个用户名、密码登录，并修改你的密码和设置。 随后请耐心等待（或尽快联系我），我会为您开通浏览相关文章的权限。 开通后，您就可以通过这个用户名和密码顺利访问blog了。当然，您可以在登录时选择“记住密码”（若离开时不“登出”，下次就不会提示输入密码）。 繁琐之处，还请谅解，谢谢！ 另外，如果无法收到初始密码，请直接联系我~ 随机文章: Feeling of preparing materials Mini &#038; T11 北京北京 新域名 西门 夕阳]]></description>
			<content:encoded><![CDATA[<p>基于隐私的保护，我决定为blog加把锁。</p>
<p>第一次来到这里的游客，请先注册（右侧栏），留下你的登录用户名（英文）、信箱（请尽量让我可以辨认你是谁^_^），初始密码会发到你的信箱。</p>
<p>您可以使用这个用户名、密码登录，并修改你的密码和设置。</p>
<p>随后请耐心等待（或尽快联系我），我会为您开通浏览相关文章的权限。</p>
<p>开通后，您就可以通过这个用户名和密码顺利访问blog了。当然，您可以在登录时选择“记住密码”（若离开时不“登出”，下次就不会提示输入密码）。</p>
<p>繁琐之处，还请谅解，谢谢！</p>
<p>另外，如果无法收到初始密码，请直接<a href="mailto:myelegy@gmail.com">联系我</a>~
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/584.html" rel="bookmark" title="十一月 7, 2008">十月</a></li>
<li><a href="http://nonleaf.net/406.html" rel="bookmark" title="一月 27, 2008">Where's the destination?</a></li>
<li><a href="http://nonleaf.net/404.html" rel="bookmark" title="一月 17, 2008">Sun to Acquire MySQL</a></li>
<li><a href="http://nonleaf.net/384.html" rel="bookmark" title="十二月 11, 2007">Busy</a></li>
<li><a href="http://nonleaf.net/207.html" rel="bookmark" title="九月 1, 2006">大家都开学了</a></li>
</ul>
<p><!-- Random Posts took 18.142 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/151.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

