<?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>Doggie!</title>
	<atom:link href="http://jiehan.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://jiehan.org</link>
	<description>郑界涵的博客</description>
	<lastBuildDate>Sat, 05 May 2012 22:55:38 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta3</generator>
		<item>
		<title>密码保护：所以说头像不能乱设</title>
		<link>http://jiehan.org/life/office-profile-images/</link>
		<comments>http://jiehan.org/life/office-profile-images/#comments</comments>
		<pubDate>Fri, 04 May 2012 23:46:31 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[Peddie]]></category>
		<category><![CDATA[有趣]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1223</guid>
		<description><![CDATA[无法提供摘要。这是一篇受保护的文章。]]></description>
			<content:encoded><![CDATA[<form action="http://jiehan.org/wp-login.php?action=postpass" method="post">
<p>这是一篇受密码保护的文章。您需要提供访问密码：</p>
<p><label for="pwbox-1223">密码： <input name="post_password" id="pwbox-1223" type="password" size="20" /></label> <input type="submit" name="Submit" value="提交" /></p>
</p></form>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/office-profile-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何在 CentOS 编译 ipsec-tools 以实现 IPSec VPN</title>
		<link>http://jiehan.org/tech/guide-to-configuring-racoon/</link>
		<comments>http://jiehan.org/tech/guide-to-configuring-racoon/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 15:59:23 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[扯技术]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[中国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1193</guid>
		<description><![CDATA[你还是放弃吧。去找一个 f15 或者 Fedora 其它版本的 ipsec-tools 包，下载下来，用 yum localinstall，调一调 /etc/racoon/racoon.conf，改改 chkconfig 和 iptables，半小时内保你给自己做一个能用的 IPSec VPN。不能的可以留言哦。 关于 Fedora RPM 包的选择，对于目前 CentOS 6.2 来说，还是 f15 最好，因为依赖不需要再改动别的。f16 的 ipsec-tools 包还依赖了一个更高版本的 glibc，依赖问题不太好解决。何况 f15 和 f16 都是 ipsec-tools 0.8。 非常有用且通俗易懂的文档，基本不用改，照做可以完成：《iPhone compatible IPsec VPN on an &#8230; <a href="http://jiehan.org/tech/guide-to-configuring-racoon/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em><strong>你还是放弃吧。</strong></em>去找一个 f15 或者 Fedora 其它版本的 <code>ipsec-tools</code> 包，下载下来，用 <code>yum localinstall</code>，调一调 <code>/etc/racoon/racoon.conf</code>，改改 <code>chkconfig</code> 和 <code>iptables</code>，<strong>半小时内</strong>保你给自己做一个能用的 IPSec VPN。不能的可以留言哦。</p>
<p>关于 Fedora RPM 包的选择，对于目前 CentOS 6.2 来说，还是 f15 最好，因为依赖不需要再改动别的。f16 的 <code>ipsec-tools</code> 包还依赖了一个更高版本的 glibc，依赖问题不太好解决。何况 f15 和 f16 都是 ipsec-tools 0.8。</p>
<p>非常有用且通俗易懂的文档，基本不用改，照做可以完成：<a title="IPSec VPN 配置文档" href="http://blog.dest-unreach.be/2011/03/03/iphone-compatible-ipsec-vpn-on-an-ubuntu-server-with-ldap-authentication" target="_blank">《iPhone compatible IPsec VPN on an Ubuntu server, with LDAP authentication》</a>（忽略 LDAP 部分，因为 LDAP 的支持需要编译时参数）。</p>
<p>两个小提示：</p>
<ul>
<li>在你配置 <code>mode_cfg</code> 的时候，如果 <code>auth_source</code> 不写，则默认 <code>system</code>，意为使用 <code>/etc/passwd</code> 的内容来验证用户，然后你用 Linux 的登录信息即可登录 VPN。这不依赖任何 configure 参数，包里提供的 Racoon 就能实现系统用户名密码认证。参见：<code>man racoon.conf</code>。</li>
<li>配置完一切顺利之后，指定在 <code>mode_cfg</code> 里面的 <code>banner</code> 参数，后加 motd 文件的地址，可以实现用户登录时的 message of the day。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/tech/guide-to-configuring-racoon/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>如何开启飞机盥洗室之门</title>
		<link>http://jiehan.org/life/how-to-open-an-airplane-lavatory-door/</link>
		<comments>http://jiehan.org/life/how-to-open-an-airplane-lavatory-door/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 19:34:33 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[有趣]]></category>
		<category><![CDATA[飞机]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1183</guid>
		<description><![CDATA[很多同学都会遇到一个问题，有人老呆在飞机厕所里不出来怎么办？！今天我来告诉你~ 请注意，在每个盥洗室门上，都有一个带有“LAVATORY”字样的长方形突起，奥秘就在这里了：用指甲从下方向上开启“LAVATORY”盖子，于是你就能看到开启/关闭手柄了，它是向左/向右操作的。 请务必务必务必确认盥洗室里面有没有别人哦，另外不要把这个小秘密告诉别人哦。]]></description>
			<content:encoded><![CDATA[<p>很多同学都会遇到一个问题，有人老呆在飞机厕所里不出来怎么办？！今天我来告诉你~</p>
<p>请注意，在每个盥洗室门上，都有一个带有“LAVATORY”字样的长方形突起，奥秘就在这里了：<strong>用指甲从<em>下方</em>向上开启“LAVATORY”盖子，于是你就能看到开启/关闭手柄了，它是向左/向右操作的。</strong></p>
<p>请务必务必务必确认盥洗室里面有没有别人哦，另外不要把这个小秘密告诉别人哦。</p>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/how-to-open-an-airplane-lavatory-door/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>用 WordPress Shortcode API 实时输出你当前的年龄</title>
		<link>http://jiehan.org/tech/output-age-with-wordpress-shortcode-api/</link>
		<comments>http://jiehan.org/tech/output-age-with-wordpress-shortcode-api/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 11:26:24 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[扯技术]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[中国]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[无聊]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1155</guid>
		<description><![CDATA[包括我在内的很多朋友有这么一个困扰：计算自己年龄不方便，每天要用计算器计算自己今天几岁了，然后到博客的“关于”页面进行更新。今特写一插件，解决我们共同的烦恼。插件启用后，WordPress 会教导 PHP 帮您进行各种复杂生日计算。 &#60;?php /* Plugin Name: Wait... How old am I right now? Plugin URI: http://jiehan.org/tech/output-age-with-wordpress-shortcode-api/ Description: Shortcode that outputs your current age in case you forget. Version: 250.000 (significant three) Author: Anonymous Author URI: http://jiehan.org/ License: GPL2 &#8230; <a href="http://jiehan.org/tech/output-age-with-wordpress-shortcode-api/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>包括我在内的很多朋友有这么一个困扰：计算自己年龄不方便，每天要用计算器计算自己今天几岁了，然后到博客的“关于”页面进行更新。今特写一插件，解决我们共同的烦恼。插件启用后，WordPress 会教导 PHP 帮您进行各种复杂生日计算。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Wait... How old am I right now?
Plugin URI: http://jiehan.org/tech/output-age-with-wordpress-shortcode-api/
Description: Shortcode that outputs your current age in case you forget.
Version: 250.000 (significant three)
Author: Anonymous
Author URI: http://jiehan.org/
License: GPL2
*/</span>
&nbsp;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'MY_BIRTHDAY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1994-12-12'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// put in your birthday here</span>
                                        <span style="color: #666666; font-style: italic;">// (best in YYYY-MM-DD)</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> tell_the_world_how_old_i_am<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #990000;">date_default_timezone_set</span><span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'timezone_string'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$time_i_have_been_existing</span> <span style="color: #339933;">=</span> date_diff<span style="color: #009900;">&#40;</span> <span style="color: #990000;">date_create</span><span style="color: #009900;">&#40;</span> MY_BIRTHDAY <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">date_create</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">date_default_timezone_set</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'UTC'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$time_i_have_been_existing</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'%y'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'age'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'tell_the_world_how_old_i_am'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>然后怎么用？先去 <code>wp-content/plugins/</code> 下面创建一个文件，把上述内容拷贝进去，然后启用这个插件&#8230;</p>
<p>然后呢？然后去改你的页面啦，把 hardcoded（中文不太吉利）的年龄替换成 <code>[age]</code>，比如我的：</p>
<pre>
我是郑界涵。现 Peddie School 十年级学生，今年 [age] 岁了...
</pre>
<p>将自动被替换为，</p>
<pre>
我是郑界涵。现 Peddie School 十年级学生，今年 17 岁了...
</pre>
<p>当然，这个 Shortcode API 在文章页面也适用，你可以随时告诉别人你几岁了。另外，如果不是在文章或页面中，比如在主题的某个地方调用你的年龄，可以写 <code>echo tell_the_world_how_old_i_am( null );</code> 哦。</p>
<h2>已知问题</h2>
<ul>
<li>如果你出生地和博客服务器所在地之时区不同，则输出的年龄会有偏差。</li>
<li>如果你博客服务器时间设置不正确，则输出的年龄也会有偏差。</li>
<li>如果你生日写的不对，则输出的年龄也会有偏差。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/tech/output-age-with-wordpress-shortcode-api/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>不带欺负人还这么搞笑的&#8230;</title>
		<link>http://jiehan.org/life/asian-guy-objects-chinese-culture-club/</link>
		<comments>http://jiehan.org/life/asian-guy-objects-chinese-culture-club/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 04:01:48 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[Peddie]]></category>
		<category><![CDATA[坏人]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1116</guid>
		<description><![CDATA[有位中国同学发起了一个“中国文化”社团，别名“龙”社团，于是有人回复&#8230; &#8230; 所以，“龙”社团和龙没关系？靠！我不玩了！]]></description>
			<content:encoded><![CDATA[<p>有位中国同学发起了一个“中国文化”社团，别名“龙”社团，于是有人回复&#8230;</p>
<blockquote><p>&#8230; 所以，“龙”社团和龙没关系？靠！我不玩了！</p></blockquote>
<p><img class="alignnone size-full wp-image-1117" title="Dragon Club" src="http://jiehan.org/wp-content/uploads/2011/10/dragon-club.png" alt="" width="541" height="298" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/asian-guy-objects-chinese-culture-club/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Which has nothing to do with the test&#8230;</title>
		<link>http://jiehan.org/life/which-has-nothing-to-do-with-the-test/</link>
		<comments>http://jiehan.org/life/which-has-nothing-to-do-with-the-test/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 23:43:01 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[Peddie]]></category>
		<category><![CDATA[有趣]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1107</guid>
		<description><![CDATA[Ms. Crider: We are going to have a test tomorrow, and Mr. Park who is also from Duke will be here tomorrow. He has a wife who is pregnant which has nothing to do with the test&#8230; Anyway you guys &#8230; <a href="http://jiehan.org/life/which-has-nothing-to-do-with-the-test/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ms. Crider:</p>
<blockquote><p>We are going to have a test tomorrow, and Mr. Park who is also from Duke will be here tomorrow. He has a wife who is pregnant <strong>which has nothing to do with the test</strong>&#8230; Anyway you guys can ask him questions about the test then&#8230;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/which-has-nothing-to-do-with-the-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Supersite Code 竞价&#8230;</title>
		<link>http://jiehan.org/life/supersite-code/</link>
		<comments>http://jiehan.org/life/supersite-code/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 18:42:59 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[Peddie]]></category>
		<category><![CDATA[有趣]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1099</guid>
		<description><![CDATA[好像学校有个西班牙语老师让学生买这个代码，于是学校邮箱里&#8230;]]></description>
			<content:encoded><![CDATA[<p>好像学校有个西班牙语老师让学生买这个代码，于是学校邮箱里&#8230;</p>
<p><img class="alignnone size-full wp-image-1100" title="supersite-code" src="http://jiehan.org/wp-content/uploads/2011/09/supersite-code.png" alt="" width="552" height="190" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/supersite-code/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>单词：牙套和保持器</title>
		<link>http://jiehan.org/pretending-to-study/word-of-the-day/braces-and-retainer/</link>
		<comments>http://jiehan.org/pretending-to-study/word-of-the-day/braces-and-retainer/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 13:34:05 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[每日单词]]></category>
		<category><![CDATA[单词]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1094</guid>
		<description><![CDATA[从今天开始我会定期发布文章，分享最近学到的、原来在国内不容易学到的词&#8230; 比如说这个吧： 牙套是 braces；保持器呢是 retainer。 好的大家改天再见&#8230;]]></description>
			<content:encoded><![CDATA[<p>从今天开始我会定期发布文章，分享最近学到的、原来在国内不容易学到的词&#8230; 比如说这个吧：</p>
<p>牙套是 <strong>braces</strong>；保持器呢是 <strong>retainer</strong>。</p>
<p>好的大家改天再见&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/pretending-to-study/word-of-the-day/braces-and-retainer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Carol 上课从来不戴护目镜</title>
		<link>http://jiehan.org/life/carol-goggles/</link>
		<comments>http://jiehan.org/life/carol-goggles/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 14:34:55 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[Peddie]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1082</guid>
		<description><![CDATA[&#8230; 然而，她再也不需要了。。。]]></description>
			<content:encoded><![CDATA[<p>&#8230; 然而，她再也不需要了。。。</p>
<p><img src="http://jiehan.org/wp-content/uploads/2011/09/carol-goggles-640x710.jpg" alt="" title="Carol 不戴护目镜然后瞎了。。。" width="584" height="647" class="alignnone size-large wp-image-1084" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/carol-goggles/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>拍女生宿舍的人啊</title>
		<link>http://jiehan.org/life/those-who-taking-photos-for-girls-dorm/</link>
		<comments>http://jiehan.org/life/those-who-taking-photos-for-girls-dorm/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 01:53:37 +0000</pubDate>
		<dc:creator>郑界涵</dc:creator>
				<category><![CDATA[聊生活]]></category>
		<category><![CDATA[Peddie]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://jiehan.org/?p=1074</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img src="http://jiehan.org/wp-content/uploads/2011/09/20110904-095207-640x478.jpg" alt="" title="Yuan Ge" width="584" height="436" class="alignnone size-large wp-image-1073" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jiehan.org/life/those-who-taking-photos-for-girls-dorm/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

