<?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://farfromfear.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://farfromfear.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Apr 2012 13:03:21 +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>为什么你的邮件没人回复？</title>
		<link>http://farfromfear.com/why-no-response-to-your-email.html</link>
		<comments>http://farfromfear.com/why-no-response-to-your-email.html#comments</comments>
		<pubDate>Mon, 13 Feb 2012 05:11:15 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=748</guid>
		<description><![CDATA[对500万封邮件的统计发现，如果想要人回复你的邮件，在标题里不应该使用这些词语：confirm, join, press, invite, social, speaker, assistance; 应该使用 apply, demo, conference, demo, connect, cancellation ..(Mashable)]]></description>
			<content:encoded><![CDATA[<p>对500万封邮件的统计发现，如果想要人回复你的邮件，在标题里不应该使用这些词语：confirm, join, press, invite, social, speaker, assistance; 应该使用 apply, demo, conference, demo, connect, cancellation ..(<a href="http://mashable.com/2012/02/09/boomerang-email-infographic/" target="_blank">Mashable</a>)<br />
<img src="http://ww2.sinaimg.cn/large/6c349a6bgw1dq0kckg5uyj.jpg" ></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/why-no-response-to-your-email.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>欧洲航天局：德国卫星只差10分钟就坠毁在北京</title>
		<link>http://farfromfear.com/german-satelite-hit-beijing.html</link>
		<comments>http://farfromfear.com/german-satelite-hit-beijing.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:50:22 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=744</guid>
		<description><![CDATA[这颗卫星最终坠毁在印度洋，“如果晚降落7-10分钟，就会坠毁在北京”。坑爹啊。。]]></description>
			<content:encoded><![CDATA[<p>Telegraph 的<a href="http://www.telegraph.co.uk/science/space/9052242/German-satellite-minutes-from-crashing-into-Beijing.html" target="_blank">报道</a>披露，这颗卫星最终坠毁在印度洋，“如果晚降落7-10分钟，就会坠毁在北京”。坑爹啊。。</p>
<p><a href="http://www.telegraph.co.uk/science/space/9052242/German-satellite-minutes-from-crashing-into-Beijing.html"><img class="aligncenter" title="欧洲航天局：德国卫星差点坠毁在北京" src="http://i.telegraph.co.uk/multimedia/archive/02034/ROSAT_2034423b.jpg" alt="欧洲航天局：德国卫星差点坠毁在北京" width="620" height="388" /></a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/german-satelite-hit-beijing.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调用特定时间内评论最多文章</title>
		<link>http://farfromfear.com/wordpress-most-commented-posts-certain-days.html</link>
		<comments>http://farfromfear.com/wordpress-most-commented-posts-certain-days.html#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:51:03 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=740</guid>
		<description><![CDATA[首先把下列代码放入 functions.php /* 某段时间内最热文章 * Reference: http://www.wprecipes.com/rarst-asked-how-to-get-most-commented-posts-of-the-week * Edit: zwwooooo */ function most_comm_posts($days=7, $nums=10) { //$days参数限制时间值，单位为‘天’，默认是7天；$nums是要显示文章数量 &#160;&#160;global $wpdb; &#160;&#160;$today = date(&#34;Y-m-d H:i:s&#34;); //获取今天日期时间 &#160;&#160;$daysago = date( &#34;Y-m-d H:i:s&#34;, strtotime($today) - ($days * 24 * 60 * 60) );&#160;&#160;//Today - $days &#160;&#160;$result = $wpdb-&#62;get_results(&#34;SELECT comment_count, ID, post_title, post_date FROM $wpdb-&#62;posts WHERE post_date BETWEEN &#039;$daysago&#039; AND &#039;$today&#039; [...]]]></description>
			<content:encoded><![CDATA[<p>首先把下列代码放入 functions.php</p>
<p><pre><code>
/* 某段时间内最热文章
 * Reference: http://www.wprecipes.com/rarst-asked-how-to-get-most-commented-posts-of-the-week
 * Edit: zwwooooo
 */
function most_comm_posts($days=7, $nums=10) { //$days参数限制时间值，单位为‘天’，默认是7天；$nums是要显示文章数量
&nbsp;&nbsp;global $wpdb;
&nbsp;&nbsp;$today = date(&quot;Y-m-d H:i:s&quot;); //获取今天日期时间
&nbsp;&nbsp;$daysago = date( &quot;Y-m-d H:i:s&quot;, strtotime($today) - ($days * 24 * 60 * 60) );&nbsp;&nbsp;//Today - $days
&nbsp;&nbsp;$result = $wpdb-&gt;get_results(&quot;SELECT comment_count, ID, post_title, post_date FROM $wpdb-&gt;posts WHERE post_date BETWEEN &#039;$daysago&#039; AND &#039;$today&#039; ORDER BY comment_count DESC LIMIT 0 , $nums&quot;);
&nbsp;&nbsp;$output = &#039;&#039;;
&nbsp;&nbsp;if(empty($result)) {
&nbsp;&nbsp;&nbsp;&nbsp;$output = &#039;&lt;li&gt;None data.&lt;/li&gt;&#039;;
&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;&nbsp;foreach ($result as $topten) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$postid = $topten-&gt;ID;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$title = $topten-&gt;post_title;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$commentcount = $topten-&gt;comment_count;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($commentcount != 0) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$output .= &#039;&lt;li&gt;&lt;a href=&quot;&#039;.get_permalink($postid).&#039;&quot; title=&quot;&#039;.$title.&#039;&quot;&gt;&#039;.$title.&#039;&lt;/a&gt; (&#039;.$commentcount.&#039;)&lt;/li&gt;&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}
&nbsp;&nbsp;echo $output;
}
</code></pre><br />
然后在需要的地方调用函数，30, 10 分别指日期（过去30天内）和显示文章数（10篇）。<br />
<pre><code>
&lt;h3&gt;近期最热文章&lt;/h3&gt;
&lt;ul&gt;
&nbsp;&nbsp; &lt;?php if(function_exists(&#039;most_comm_posts&#039;)) most_comm_posts(30, 10); ?&gt;
&lt;/ul&gt;
</code></pre></p>
<p>代码来源：<a href="http://zww.me/archives/25453" target="_blank">ZWW.Me</a></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/wordpress-most-commented-posts-certain-days.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iBooks Author 不支持雪豹系统</title>
		<link>http://farfromfear.com/ibooks-author-not-support-leopard.html</link>
		<comments>http://farfromfear.com/ibooks-author-not-support-leopard.html#comments</comments>
		<pubDate>Sat, 21 Jan 2012 18:15:24 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=736</guid>
		<description><![CDATA[需要升级到 Lion, 悲催啊。。。]]></description>
			<content:encoded><![CDATA[<p>需要升级到 Lion, 悲催啊。。。</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/ibooks-author-not-support-leopard.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>删除wp-caption的style:width=xx值</title>
		<link>http://farfromfear.com/restyle-wp-caption-width.html</link>
		<comments>http://farfromfear.com/restyle-wp-caption-width.html#comments</comments>
		<pubDate>Sat, 21 Jan 2012 16:44:58 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=727</guid>
		<description><![CDATA[在设置图片说明时，wordpress 会根据图片文件的大小自动添加一个宽度值，这可能会打乱你的 css 设置。比如说，我在 style.css 里设置所有图片的最大宽度为 430px (max-width: 430px)，然而我上传一张 480px 的图片并添加图片说明后，wordpress 会在 div class=”wp-caption” 后返回一个”style: width=490px”值。 老实说，我不明白 wordpress 为什么要这么做，因为这个 490px 的宽度已经超出了我整个内容栏的宽度，并且 style element 的值在 style.css 里是无法覆盖掉的，所以它会毫不留情地撑破我的内容栏。 这一设置是 wordpress 自带的，无法通过修改主题文件来解决。删除这一设置的方法如下： 打开 wp-includes/media.php，找到下列代码： &#160;&#160;return &#039;&#60;div &#039; . $id . &#039;class=&#34;wp-caption &#039; . esc_attr($align) . &#039;&#34; style=&#34;width: &#039; . (10 + (int) $width) . &#039;px&#34;&#62;&#039; 这行代码会根据图片文件的宽度自动设置一个增加 10px 的宽度值。删除： [...]]]></description>
			<content:encoded><![CDATA[<p>在设置图片说明时，wordpress 会根据图片文件的大小自动添加一个宽度值，这可能会打乱你的 css 设置。比如说，我在 style.css 里设置所有图片的最大宽度为 430px (max-width: 430px)，然而我上传一张 480px 的图片并添加图片说明后，wordpress 会在 div class=”wp-caption” 后返回一个”style: width=490px”值。</p>
<p><a href="http://pic.yupoo.com/iphone4s/BGxXTLVV/yqgRG.png" rel="lightbox[727]" title="删除wp-caption的style:width=xx值"><img src="http://pic.yupoo.com/iphone4s/BGxXTLVV/yqgRG.png" width=600px ></a></p>
<p>老实说，我不明白 wordpress 为什么要这么做，因为这个 490px 的宽度已经超出了我整个内容栏的宽度，并且 style element 的值在 style.css 里是无法覆盖掉的，所以它会毫不留情地撑破我的内容栏。</p>
<p>这一设置是 wordpress 自带的，无法通过修改主题文件来解决。删除这一设置的方法如下：</p>
<p>打开 wp-includes/media.php，找到下列代码：</p>
<p><pre><code>
&nbsp;&nbsp;return &#039;&lt;div &#039; . $id . &#039;class=&quot;wp-caption &#039; . esc_attr($align) . &#039;&quot; style=&quot;width: &#039; . (10 + (int) $width) . &#039;px&quot;&gt;&#039;
</code></pre><br />
这行代码会根据图片文件的宽度自动设置一个增加 10px 的宽度值。删除：<br />
<pre><code>
style=&quot;width: &#039; . (10 + (int) $width) . &#039;px&quot;
</code></pre></p>
<p>剩下的部分应该是：<br />
<pre><code>
&nbsp;&nbsp;return &#039;&lt;div &#039; . $id . &#039;class=&quot;wp-caption &#039; . esc_attr($align) . &#039;&quot; &gt;&#039;
</code></pre></p>
<p>这样，就可以按照自己的需要在 style.css 里定义 wp-caption 的样式了。</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/restyle-wp-caption-width.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>声援反对 SOPA 法案页面</title>
		<link>http://farfromfear.com/stop-sopa-act.html</link>
		<comments>http://farfromfear.com/stop-sopa-act.html#comments</comments>
		<pubDate>Fri, 20 Jan 2012 15:51:14 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=724</guid>
		<description><![CDATA[这个页面是愤怒的设计师 Zachary Johnson 制作的，无版权保护。我我主要是觉得页面挺好玩的所以分享一下。大家都知道，咱们镇上的人，临渊羡鱼不得，老校长织网有一张，投不投票支持率反正是 87.53%⋯⋯有时间仔细研究下这个页面。实际效果点击这里。]]></description>
			<content:encoded><![CDATA[<p>这个页面是愤怒的设计师 Zachary Johnson 制作的，无版权保护。我我主要是觉得页面挺好玩的所以分享一下。大家都知道，咱们镇上的人，临渊羡鱼不得，老校长织网有一张，投不投票支持率反正是 87.53%⋯⋯有时间仔细研究下这个页面。实际效果<a href="http://farfromfear.com/stop-sopa.html">点击这里</a>。</p>
<p><img class="aligncenter" src="http://pic.yupoo.com/iphone4s/BGnYLyEX/medish.jpg" alt="" /></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/stop-sopa-act.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>禁用Google自动跳转最简单的方法</title>
		<link>http://farfromfear.com/google-no-country-redirection.html</link>
		<comments>http://farfromfear.com/google-no-country-redirection.html#comments</comments>
		<pubDate>Fri, 20 Jan 2012 09:13:49 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=721</guid>
		<description><![CDATA[Open publication &#8211; Free publishing 一直讨厌 google.com 自动跳转到 .cn 或者 .hk, 每次都手动改回来，然而在 VPN 切换之间常常莫名其妙又被带到 .hk, 今天一搜原来最简单的方法是访问 .com/ncr &#8211; ncr 代表 no country redirection. http://farfromfear.com/wp-content/uploads/2012/04/TheLegendOfSleepyHollow.pdf]]></description>
			<content:encoded><![CDATA[<div style="margin:0 auto;padding:5px;border:1px solid #eee;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="width:600px;height:500px" id="842c3d8f-d9ab-3e23-ca83-9dacadbc86b1" ><param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&amp;backgroundColor=%23222222&amp;documentId=120410125446-411ff3ac23994a33bca83bfc8fb188fa" /><param name="allowfullscreen" value="true"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:600px;height:500px" flashvars="mode=mini&amp;backgroundColor=%23222222&amp;documentId=120410125446-411ff3ac23994a33bca83bfc8fb188fa" /></object>
<div style="width:600px;text-align:left;"><a href="http://issuu.com/derek.yang/docs/thelegendofsleepyhollow?mode=window&amp;backgroundColor=%23222222" target="_blank">Open publication</a> &#8211; Free <a href="http://issuu.com" target="_blank">publishing</a></div>
</div>
<p>一直讨厌 google.com 自动跳转到 .cn 或者 .hk, 每次都手动改回来，然而在 VPN 切换之间常常莫名其妙又被带到 .hk, 今天一搜原来最简单的方法是访问 .com/ncr &#8211; ncr 代表 no country redirection.</p>
<p><a href="http://farfromfear.com/wp-content/uploads/2012/04/TheLegendOfSleepyHollow.pdf"></p>
<p>http://farfromfear.com/wp-content/uploads/2012/04/TheLegendOfSleepyHollow.pdf</p>
<p></a><br />
<iframe src="http://farfromfear.com/wp-content/uploads/2012/04/TheLegendOfSleepyHollow.pdf" width="100%" height="500"></iframe></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/google-no-country-redirection.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“创作并发表每秒的 iPad 多点触控电子书”？</title>
		<link>http://farfromfear.com/ibooks-author-report.html</link>
		<comments>http://farfromfear.com/ibooks-author-report.html#comments</comments>
		<pubDate>Fri, 20 Jan 2012 08:56:36 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=717</guid>
		<description><![CDATA[很显然，腾讯、环球、百度百科的编辑连第二段都懒得读。喜欢写很长很长的公关稿的同学要注意了 :=D]]></description>
			<content:encoded><![CDATA[<p>很显然，腾讯、环球、百度百科的编辑连第二段都懒得读。喜欢写很长很长的公关稿的同学要注意了 :=D</p>
<p><img src="http://pic.yupoo.com/iphone4s/BGloU5mb/medish.jpg" alt="" /></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/ibooks-author-report.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Megaupload 被关闭</title>
		<link>http://farfromfear.com/megaupload-shutdown.html</link>
		<comments>http://farfromfear.com/megaupload-shutdown.html#comments</comments>
		<pubDate>Fri, 20 Jan 2012 08:39:31 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=715</guid>
		<description><![CDATA[虽然我总体上来说是支持知识产权保护的，但是还是忍不住叹气。当然，听到美国司法部网站因此被黑了，我又很 happy 了。。。我就是不喜欢政府部门，哪个国家的我都不喜欢。]]></description>
			<content:encoded><![CDATA[<p>虽然我总体上来说是支持知识产权保护的，但是还是忍不住叹气。当然，听到<a href="http://thenextweb.com/insider/2012/01/19/anonymous-takes-down-doj-website-in-response-to-megaupload-case/" target="_blank">美国司法部网站因此被黑</a>了，我又很 happy 了。。。我就是不喜欢政府部门，哪个国家的我都不喜欢。</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/megaupload-shutdown.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一觉起来活埋变成流行词汇了</title>
		<link>http://farfromfear.com/bury-alive.html</link>
		<comments>http://farfromfear.com/bury-alive.html#comments</comments>
		<pubDate>Fri, 20 Jan 2012 08:19:47 +0000</pubDate>
		<dc:creator>Derek Yang</dc:creator>
				<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://farfromfear.com/?p=713</guid>
		<description><![CDATA[那200人是怎么计算出来的？]]></description>
			<content:encoded><![CDATA[<p>那200人是怎么计算出来的？</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://farfromfear.com/bury-alive.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

