<?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>Sat, 10 Jul 2010 21:58:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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撤出的事情还是有些伤心。不是为一家商业公司的决定，而是对国内网络环境倒退的寒心。我亲爱的祖国，你怎么了？
随机文章:

生活在那端
WaterSurface v1.5 released
我又回家了...
All Pass
关于音乐盒的一个疑问


]]></description>
			<content:encoded><![CDATA[<p>国内的网络审查越来越过分，经过多天停机后，我的博还是来到了大洋彼岸的米国。</p>
<p>google撤出的事情还是有些伤心。不是为一家商业公司的决定，而是对国内网络环境倒退的寒心。我亲爱的祖国，你怎么了？
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/875.html" rel="bookmark" title="四月 8, 2010">[转载]散文一篇</a></li>
<li><a href="http://nonleaf.net/631.html" rel="bookmark" title="三月 23, 2009">小tim、宁皓及其他</a></li>
<li><a href="http://nonleaf.net/125.html" rel="bookmark" title="六月 21, 2006">满眼离开</a></li>
<li><a href="http://nonleaf.net/618.html" rel="bookmark" title="三月 15, 2009">我们需要点勇气</a></li>
<li><a href="http://nonleaf.net/99.html" rel="bookmark" title="五月 27, 2006">真的想用手 留住幸福</a></li>
</ul>
<p><!-- Random Posts took 43.359 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或个人网站），欢迎和我联系。
随机文章:

突破封锁的Torpark
他们
旅行归来
生活在那端
最近很忙


]]></description>
			<content:encoded><![CDATA[<p>之前一个月，服务器一直断断续续。原因是国内正在全面审查服务器，先全部下线，然后一个一个的清查。所以主机商把服务器从上海转移到重庆又转移到北京...</p>
<p>最近国内的互联网政策鸡飞狗跳，无奈。以后考虑租国外主机了，只是租金较贵，如果有合租意向的童鞋（比如独立blog或个人网站），欢迎和我联系。
<p><strong>随机文章:</strong>
<ul class="random-posts">
<li><a href="http://nonleaf.net/478.html" rel="bookmark" title="八月 7, 2008">当我们长大，又老去</a></li>
<li><a href="http://nonleaf.net/393.html" rel="bookmark" title="十二月 31, 2007">OS</a></li>
<li><a href="http://nonleaf.net/310.html" rel="bookmark" title="三月 25, 2007">模拟水面</a></li>
<li><a href="http://nonleaf.net/60.html" rel="bookmark" title="四月 27, 2006">Heaven</a></li>
<li><a href="http://nonleaf.net/899.html" rel="bookmark" title="五月 28, 2010">旅游</a></li>
</ul>
<p><!-- Random Posts took 52.609 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才行。
随机文章:

[转载]遗失的美好
新的开始
[转载]爱情刚才来过
怀抱Linux
[转载]旋转木马上的幸福


]]></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/451.html" rel="bookmark" title="五月 1, 2008">回家</a></li>
<li><a href="http://nonleaf.net/390.html" rel="bookmark" title="十二月 24, 2007">圣诞</a></li>
<li><a href="http://nonleaf.net/360.html" rel="bookmark" title="八月 21, 2007">关于音乐盒的一个疑问</a></li>
<li><a href="http://nonleaf.net/112.html" rel="bookmark" title="六月 10, 2006">All Pass</a></li>
<li><a href="http://nonleaf.net/560.html" rel="bookmark" title="九月 12, 2008">Photos at KTH &#038; Kista</a></li>
</ul>
<p><!-- Random Posts took 43.166 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了。当然，您可以在登录时选择“记住密码”（若离开时不“登出”，下次就不会提示输入密码）。
繁琐之处，还请谅解，谢谢！
另外，如果无法收到初始密码，请直接联系我~
随机文章:

HKUST's interview
一天
音乐和生活
网站开始测试
第一面


]]></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/456.html" rel="bookmark" title="六月 17, 2008">有时候</a></li>
<li><a href="http://nonleaf.net/797.html" rel="bookmark" title="十二月 14, 2009">Nobel Prize Awards Ceremony</a></li>
<li><a href="http://nonleaf.net/34.html" rel="bookmark" title="三月 27, 2006">昨天去听十佳了</a></li>
<li><a href="http://nonleaf.net/233.html" rel="bookmark" title="十一月 3, 2006">3D桌面</a></li>
<li><a href="http://nonleaf.net/211.html" rel="bookmark" title="九月 6, 2006">夜色</a></li>
</ul>
<p><!-- Random Posts took 146.754 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://nonleaf.net/151.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
