<?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; 就是不分类</title>
	<atom:link href="http://ioio.name/category/general/feed" rel="self" type="application/rss+xml" />
	<link>http://ioio.name</link>
	<description>To Be Continued</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:20:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Object-Oriented JavaScript笔记(TBD)</title>
		<link>http://ioio.name/object-oriented-javascript-note.html</link>
		<comments>http://ioio.name/object-oriented-javascript-note.html#comments</comments>
		<pubDate>Thu, 09 Feb 2012 05:18:17 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=2001</guid>
		<description><![CDATA[第二章 基本数据类型、数组、循环和条件语句 变量是大小写敏感的 基本类型 基本类型（5类） Number、String、Boolean、Undefined、Null 除了基本类型外的，都是object，特例 >>> typeof null “object” Infinity是number类型的 >>> typeof Infinity “number” JS中最大的数是1.7976931348623157e+308 最小的分数是5e-324 非0数除以0得到Infinity，0除以0得到NaN 1/0 = Infinity 0/0 = NaN Infinity 与非NaN运算值为Infinity Infinity &#8211; 1 = Infinity NaN 与任何number运算值为NaN 一个String与一个变量做除&#8217;+'(加)以外的运算，都会转换成做数学运算 >>> var s = &#8217;3&#8242;; s = 3 * s; typeof s; “number” >>> var s = &#8217;3&#8242;; s = [...]]]></description>
			<content:encoded><![CDATA[<p><strong>第二章 基本数据类型、数组、循环和条件语句</strong></p>
<p>变量是大小写敏感的</p>
<p><strong>基本类型</strong></p>
<p>基本类型（5类） Number、String、Boolean、Undefined、Null<br />
除了基本类型外的，都是object，特例<br />
>>> typeof null<br />
“object”</p>
<p>Infinity是number类型的<br />
>>> typeof Infinity<br />
“number”</p>
<p>JS中最大的数是1.7976931348623157e+308 最小的分数是5e-324</p>
<p>非0数除以0得到Infinity，0除以0得到NaN<br />
1/0 = Infinity<br />
0/0 = NaN</p>
<p>Infinity 与非NaN运算值为Infinity<br />
Infinity &#8211; 1 = Infinity</p>
<p>NaN 与任何number运算值为NaN</p>
<p>一个String与一个变量做除&#8217;+'(加)以外的运算，都会转换成做数学运算<br />
>>> var s = &#8217;3&#8242;; s = 3 * s; typeof s;<br />
“number”</p>
<p>>>> var s = &#8217;3&#8242;; s = 3 + s; typeof s;<br />
“string”</p>
<p>两次逻辑非操作会做强制布尔转换。大部分情况都是为真，除非：<br />
1.空字符串 ”<br />
2.null<br />
3.undefined<br />
4.数 0<br />
5.数 NaN<br />
6.布尔值 false</p>
<p>利用惰性求值(Lazy Evaluation)做保护伞并不是处处受用<br />
var mynumber = mynumber || 10;</p>
<p>如果预先定义的  mynumber =0 ，这里就不是我们所预料的了。</p>
<p>=== 值与类型比较<br />
!== 不含类型转换的不等于比较</p>
<p>NaN不与任何值相等，包含其自身<br />
>>> NaN == NaN<br />
false</p>
<p>null值并不是由js环境给分配的，而是由代码给分配的<br />
>>> var value = null;<br />
>>> typeof value<br />
“object”</p>
<p>undefined与null还是大差别虽然微小，但是不容忽视<br />
>>> var i = 1 + undefined;<br />
>>> i<br />
NaN</p>
<p>>>> var i = 1 + null;<br />
>>> i<br />
1</p>
<p>这种差异发生在类型转换上<br />
>>> var i = 1*undefined;<br />
>>> i<br />
NaN</p>
<p>>>> var i = 1*null;<br />
>>> i<br />
0</p>
<p><strong>数组</strong></p>
<p>数组新添加元素索引跟数组最大索引之间有空隙的话，会被undefined值填充<br />
>>> var abc = [1];<br />
>>> abc[3] = 5;<br />
>>> abc<br />
[1, undefined, undefined, 5]</p>
<p>删除数组中的元素并不会改变数组大小，仅将删除位置为undefined<br />
>>> var a = [1, 2, 3];<br />
>>> delete a[2];<br />
>>> a<br />
[1, 2, undefined]</p>
<p>可以使用数组下标的形式访问字符串<br />
>>> var s = &#8216;one&#8217;;<br />
>>> s[0]<br />
“o”</p>
<p><strong>循环和条件语句</strong></p>
<p>[To be continued]</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/core-javascript-pitfalls.html" rel="bookmark" title="Permanent Link: JavaScript性能陷阱">JavaScript性能陷阱</a></li><li><a href="http://ioio.name/javascript-get-up-guide.html" rel="bookmark" title="Permanent Link: JavaScript 入门指南">JavaScript 入门指南</a></li><li><a href="http://ioio.name/fireworks-200609.html" rel="bookmark" title="Permanent Link: 大学记忆之&quot;烟花&quot;">大学记忆之&quot;烟花&quot;</a></li><li><a href="http://ioio.name/inline-and-block-in-xhtml.html" rel="bookmark" title="Permanent Link: xHTML中的inline与block呈现标签">xHTML中的inline与block呈现标签</a></li><li><a href="http://ioio.name/ioio-share.html" rel="bookmark" title="Permanent Link: 给网站添加分享按钮">给网站添加分享按钮</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/object-oriented-javascript-note.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/object-oriented-javascript-note.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/object-oriented-javascript-note.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[CentOS]如何清空登陆历史记录(wtmp/btmp)?</title>
		<link>http://ioio.name/centos-clear-wtmp-and-btmp.html</link>
		<comments>http://ioio.name/centos-clear-wtmp-and-btmp.html#comments</comments>
		<pubDate>Mon, 23 Jan 2012 12:36:50 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1998</guid>
		<description><![CDATA[在Linux系统中，可以使用last命令查看用户登陆成功的记录(Last Logged In Users);以及可以用lastb查看登陆失败的记录(Bad Login Attemps Log)。它们以文件形式(wtmp/btmp)存在/var/log/目录下，时间长了不免会变得越来越大，这时候我们需要做一些清理工作。 1.备份wtmp/btmp cp /var/log/wtmp ~/log/wtmp 2.清空wtmp/btmp 使用命令 cat /dev/null &#62; /var/log/wtmp 或者 &#62; /var/log/wtmp 上面的例子为清空登陆成功记录，将wtmp改成btmp即清空失败记录。 -EOF- Related posts:使用JavaScript检测Firefox浏览器是否启用了FirebugCentOS 6启用Apache2 WebDAV模块Copyright &#169; 2005~2011 &#124; Permalink &#124; 0 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>在Linux系统中，可以使用<em>last</em>命令查看用户登陆成功的记录(Last Logged In Users);以及可以用<em>lastb</em>查看登陆失败的记录(Bad Login Attemps Log)。它们以文件形式(wtmp/btmp)存在<em>/var/log/</em>目录下，时间长了不免会变得越来越大，这时候我们需要做一些清理工作。</p>
<p>1.备份wtmp/btmp</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">cp /var/log/wtmp ~/log/wtmp</pre></div></div>

<p>2.清空wtmp/btmp<br />
使用命令</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">cat /dev/null &gt; /var/log/wtmp</pre></div></div>

<p>或者</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">&gt; /var/log/wtmp</pre></div></div>

<p>上面的例子为清空登陆成功记录，将wtmp改成btmp即清空失败记录。<br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/detection-firebug.html" rel="bookmark" title="Permanent Link: 使用JavaScript检测Firefox浏览器是否启用了Firebug">使用JavaScript检测Firefox浏览器是否启用了Firebug</a></li><li><a href="http://ioio.name/webdav-on-centos.html" rel="bookmark" title="Permanent Link: CentOS 6启用Apache2 WebDAV模块">CentOS 6启用Apache2 WebDAV模块</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/centos-clear-wtmp-and-btmp.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/centos-clear-wtmp-and-btmp.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/centos-clear-wtmp-and-btmp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>获得git版本库地址</title>
		<link>http://ioio.name/git-remote-path.html</link>
		<comments>http://ioio.name/git-remote-path.html#comments</comments>
		<pubDate>Sat, 14 Jan 2012 18:32:31 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1994</guid>
		<description><![CDATA[有时候我们需要快速的确定当前版本库remote服务器的路径，以确定是否pull或push。 像svn可以使用： svn info hg可以使用： hg path 从而快速的获得远端服务器地址. 而git也不例外，它也有相关的命令，只是比较复杂一点: git config --get remote.origin.url 使用这个命令便可获得git库地址，虽然长点但有总比没有好。 －EOF- Related posts:给PKU JudgeOnline免费版添加Java语言支持语法高亮工具Pygments在GAE中使用reCAPTCHA编译C++ Boost Library安装golang程序语言Copyright &#169; 2005~2011 &#124; Permalink &#124; 0 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>有时候我们需要快速的确定当前版本库remote服务器的路径，以确定是否pull或push。<br />
像svn可以使用：</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">svn info</pre></div></div>

<p>hg可以使用：</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">hg path</pre></div></div>

<p>从而快速的获得远端服务器地址.</p>
<p>而git也不例外，它也有相关的命令，只是比较复杂一点:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">git config --get remote.origin.url</pre></div></div>

<p>使用这个命令便可获得git库地址，虽然长点但有总比没有好。<br />
－EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/pku-judgeonline-java.html" rel="bookmark" title="Permanent Link: 给PKU JudgeOnline免费版添加Java语言支持">给PKU JudgeOnline免费版添加Java语言支持</a></li><li><a href="http://ioio.name/pygments.html" rel="bookmark" title="Permanent Link: 语法高亮工具Pygments">语法高亮工具Pygments</a></li><li><a href="http://ioio.name/using-recaptcha-with-google-app-engine.html" rel="bookmark" title="Permanent Link: 在GAE中使用reCAPTCHA">在GAE中使用reCAPTCHA</a></li><li><a href="http://ioio.name/compile-cpp-boost-library.html" rel="bookmark" title="Permanent Link: 编译C++ Boost Library">编译C++ Boost Library</a></li><li><a href="http://ioio.name/golang-install.html" rel="bookmark" title="Permanent Link: 安装golang程序语言">安装golang程序语言</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/git-remote-path.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/git-remote-path.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/git-remote-path.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript 模板存放方法小结</title>
		<link>http://ioio.name/javascript-templates.html</link>
		<comments>http://ioio.name/javascript-templates.html#comments</comments>
		<pubDate>Sat, 07 Jan 2012 16:36:38 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1990</guid>
		<description><![CDATA[Web开发时常常需要在页面种存放JavaScript需要使用到的html模板片段，这里是我使用过的三种方式，欢迎补充。 1.使用隐藏的div存放 如放一段{{ mustache }}的模板： &#60;div style=&#34;display:none;&#34;&#62; {{#items}} {{#first}} &#60;li&#62;&#60;strong&#62;{{name}}&#60;/strong&#62;&#60;/li&#62; {{/first}} {{#link}} &#60;li&#62;&#60;a href=&#34;{{url}}&#34;&#62;{{name}}&#60;/a&#62;&#60;/li&#62; {{/link}} {{/items}} &#60;/div&#62; 刚做web开发那会常使用这种方法来放html模板片段，但这种情况下里面的内容会被页面解析，特别是当img标签在里面的时候，由于src还没有被赋具体的URL，浏览器就会向服务器发一条无意义的请求，导致服务器产生不必要的404日志。 2.使用隐藏的textarea存放 后来想了个办法，既然textarea里的内容不会被解析，那可以把模板内容放到隐藏的textarea里。 &#60;textarea style=&#34;display:none;&#34;&#62; // template &#60;/textarea&#62; 3.使用script标签指定浏览器不认识的type来存放 再后来，了解到浏览器当遇到不认识的script类型时就不会解析里面的内容，就慢慢习惯将模板内容放在script标签里，赋上一个浏览器不认识的类型(如: text/tpl)，这样连display:none的也省了。 &#60;script type=&#34;text/tpl&#34;&#62; // template &#60;/script&#62; 当然，还有把模板压缩成JS字符串，使用一个js常量的来保存html模板。这种情况下一般需要借助外部工具来压缩成字符串，直接手工处理费时且容易出错。 -EOF- Related posts:JavaScript 入门指南JavaScript性能陷阱给网站添加分享按钮jQuery取得页面JavaScript错误使用JavaScript检测Firefox浏览器是否启用了FirebugCopyright &#169; 2005~2011 &#124; Permalink &#124; 0 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 [...]]]></description>
			<content:encoded><![CDATA[<p>Web开发时常常需要在页面种存放JavaScript需要使用到的html模板片段，这里是我使用过的三种方式，欢迎补充。</p>
<p>1.使用隐藏的div存放<br />
<em>如放一段<a href="http://mustache.github.com/" target="_blank">{{ mustache }}</a>的模板：</em></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div style=&quot;display:none;&quot;&gt;
{{#items}}
  {{#first}}
    &lt;li&gt;&lt;strong&gt;{{name}}&lt;/strong&gt;&lt;/li&gt;
  {{/first}}
  {{#link}}
    &lt;li&gt;&lt;a href=&quot;{{url}}&quot;&gt;{{name}}&lt;/a&gt;&lt;/li&gt;
  {{/link}}
{{/items}}	
&lt;/div&gt;</pre></div></div>

<p>刚做web开发那会常使用这种方法来放html模板片段，但这种情况下里面的内容会被页面解析，特别是当img标签在里面的时候，由于src还没有被赋具体的URL，浏览器就会向服务器发一条无意义的请求，导致服务器产生不必要的404日志。</p>
<p>2.使用隐藏的textarea存放<br />
后来想了个办法，既然textarea里的内容不会被解析，那可以把模板内容放到隐藏的textarea里。</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;textarea style=&quot;display:none;&quot;&gt;
// template 	
&lt;/textarea&gt;</pre></div></div>

<p>3.使用script标签指定浏览器不认识的type来存放<br />
再后来，了解到浏览器当遇到不认识的script类型时就不会解析里面的内容，就慢慢习惯将模板内容放在script标签里，赋上一个浏览器不认识的类型(如: text/tpl)，这样连display:none的也省了。</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/tpl&quot;&gt;
// template 	
&lt;/script&gt;</pre></div></div>

<p>当然，还有把模板压缩成JS字符串，使用一个js常量的来保存html模板。这种情况下一般需要借助外部工具来压缩成字符串，直接手工处理费时且容易出错。<br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/javascript-get-up-guide.html" rel="bookmark" title="Permanent Link: JavaScript 入门指南">JavaScript 入门指南</a></li><li><a href="http://ioio.name/core-javascript-pitfalls.html" rel="bookmark" title="Permanent Link: JavaScript性能陷阱">JavaScript性能陷阱</a></li><li><a href="http://ioio.name/ioio-share.html" rel="bookmark" title="Permanent Link: 给网站添加分享按钮">给网站添加分享按钮</a></li><li><a href="http://ioio.name/jquery-error-event.html" rel="bookmark" title="Permanent Link: jQuery取得页面JavaScript错误">jQuery取得页面JavaScript错误</a></li><li><a href="http://ioio.name/detection-firebug.html" rel="bookmark" title="Permanent Link: 使用JavaScript检测Firefox浏览器是否启用了Firebug">使用JavaScript检测Firefox浏览器是否启用了Firebug</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/javascript-templates.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/javascript-templates.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/javascript-templates.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Mac OS X中更改Web Sharing目录</title>
		<link>http://ioio.name/mac-os-x-web-sharing.html</link>
		<comments>http://ioio.name/mac-os-x-web-sharing.html#comments</comments>
		<pubDate>Mon, 02 Jan 2012 03:43:44 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1972</guid>
		<description><![CDATA[在Mac OS X中可以很方便的通过开启“Web共享”启用Apache服务： 设置方法如下： 打开“系统设置偏好（System Preferences）” -> “共享（Sharing）” -> “Web共享（Web Sharing）”选中即可 系统默认给当前用户的访问目录是http://localhost/~username的形式，指向的是用户home目录下的Sites目录。而很多情况下我们希望直接访问根目录(http://localhost/)便可直接访问自己的Sites目录而非系统默认的目录。 做如下更改即可： 1.打开/etc/apache2/httpd.conf文件 sudo vim /etc/apache2/httpd.conf 2.找到 /Library/WebServer/Documents 替换成 /Users/&#123;username&#125;/Sites 其中{username}是你登陆用户名,如: /Users/ioio/Sites 3.重启“Web共享（Web Sharing）” (去掉勾再重新选中即可) 重启成功后，无需再加上用户名，便可以使用http://localhost/直接访问自己Sites目录下的内容。 -EOF- Related posts:在Mac OS X中启用Apache与PHP常用PHP程式介绍Copyright &#169; 2005~2011 &#124; Permalink &#124; 0 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>在Mac OS X中可以很方便的通过开启“Web共享”启用Apache服务：<br />
设置方法如下：</p>
<blockquote><p>打开“系统设置偏好（System Preferences）” -> “共享（Sharing）” -> “Web共享（Web Sharing）”选中即可</p></blockquote>
<p>系统默认给当前用户的访问目录是http://localhost/~username的形式，指向的是用户home目录下的Sites目录。而很多情况下我们希望直接访问根目录(http://localhost/)便可直接访问自己的Sites目录而非系统默认的目录。<br />
做如下更改即可：<br />
1.打开<em>/etc/apache2/httpd.conf</em>文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>httpd.conf</pre></div></div>

<p>2.找到</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>WebServer<span style="color: #000000; font-weight: bold;">/</span>Documents</pre></div></div>

<p>替换成</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>Sites</pre></div></div>

<p>其中{username}是你登陆用户名,如:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>ioio<span style="color: #000000; font-weight: bold;">/</span>Sites</pre></div></div>

<p>3.重启“Web共享（Web Sharing）” (去掉勾再重新选中即可)</p>
<p>重启成功后，无需再加上用户名，便可以使用http://localhost/直接访问自己Sites目录下的内容。<br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/mac-apache-php.html" rel="bookmark" title="Permanent Link: 在Mac OS X中启用Apache与PHP">在Mac OS X中启用Apache与PHP</a></li><li><a href="http://ioio.name/commonly-used-programs-on-php.html" rel="bookmark" title="Permanent Link: 常用PHP程式介绍">常用PHP程式介绍</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/mac-os-x-web-sharing.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/mac-os-x-web-sharing.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/mac-os-x-web-sharing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year 2012!</title>
		<link>http://ioio.name/happy-new-year-2012.html</link>
		<comments>http://ioio.name/happy-new-year-2012.html#comments</comments>
		<pubDate>Sat, 31 Dec 2011 16:56:56 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1968</guid>
		<description><![CDATA[2012 is comming, happy new year @everyone! Related posts:Happy New Year!2010新年快乐！Happy New Year!新年快乐Lunar New Year 07!Copyright &#169; 2005~2011 &#124; Permalink &#124; 0 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>2012 is comming, happy new year @everyone!</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/happy-new-year-2008.html" rel="bookmark" title="Permanent Link: Happy New Year!">Happy New Year!</a></li><li><a href="http://ioio.name/happy-new-year-2010.html" rel="bookmark" title="Permanent Link: 2010新年快乐！">2010新年快乐！</a></li><li><a href="http://ioio.name/happy-new-year.html" rel="bookmark" title="Permanent Link: Happy New Year!">Happy New Year!</a></li><li><a href="http://ioio.name/happy-2009.html" rel="bookmark" title="Permanent Link: 新年快乐">新年快乐</a></li><li><a href="http://ioio.name/lunar-new-year-07.html" rel="bookmark" title="Permanent Link: Lunar New Year 07!">Lunar New Year 07!</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/happy-new-year-2012.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/happy-new-year-2012.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/happy-new-year-2012.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Name.com 续费优惠码</title>
		<link>http://ioio.name/name-com-renew-coupon-code.html</link>
		<comments>http://ioio.name/name-com-renew-coupon-code.html#comments</comments>
		<pubDate>Sun, 18 Dec 2011 14:45:30 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[Coupon Code]]></category>
		<category><![CDATA[Domain]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1964</guid>
		<description><![CDATA[给域名续费，网上搜了一些，好多优惠码不能用，经过再三寻找，终于寻得一个节省$1.74的优惠码，省省更健康。 优惠码: CHEERS 优惠幅度: $1.74 另，Private Whois已经涨价至$3.99/yr,但原续费优惠码FREEWHOIS依旧有效。建议先购买/续费域名，再单独购买Private Whois，这样两个优惠码就都可以使用了，一共可节省(3.99＋1.74＝)$5.73呢。 -EOF- Related posts:Godaddy $0.99 优惠码Godaddy $1.99 优惠码GodaddyWelcome to Google Code Jam!Bluehost 促销优惠：3.95 美元/每月 (2010/08/28)Copyright &#169; 2005~2011 &#124; Permalink &#124; 2 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>给域名续费，网上搜了一些，好多优惠码不能用，经过再三寻找，终于寻得一个节省$1.74的优惠码，省省更健康。<br />
优惠码: CHEERS<br />
优惠幅度: $1.74<br />
另，Private Whois已经涨价至$3.99/yr,但原续费优惠码FREEWHOIS依旧有效。建议先购买/续费域名，再单独购买Private Whois，这样两个优惠码就都可以使用了，一共可节省(3.99＋1.74＝)$5.73呢。</p>
<p><a href="http://ioio.name/wp-content/uploads/2011/12/name-dot-com-renew-coupon-codes.png"><img src="http://ioio.name/wp-content/uploads/2011/12/name-dot-com-renew-coupon-codes.png" alt="" title="name-dot-com-renew-coupon-codes" width="334" height="51" class="alignnone size-full wp-image-1965" /></a></p>
<p><a href="http://ioio.name/wp-content/uploads/2011/12/name-dot-com-renew-whois.png"><img src="http://ioio.name/wp-content/uploads/2011/12/name-dot-com-renew-whois.png" alt="" title="name-dot-com-renew-whois" width="421" height="50" class="alignnone size-full wp-image-1966" /></a><br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/godaddy-coupon-code-99buycom.html" rel="bookmark" title="Permanent Link: Godaddy $0.99 优惠码">Godaddy $0.99 优惠码</a></li><li><a href="http://ioio.name/godaddy-coupon-code-199domain.html" rel="bookmark" title="Permanent Link: Godaddy $1.99 优惠码">Godaddy $1.99 优惠码</a></li><li><a href="http://ioio.name/godaddy" rel="bookmark" title="Permanent Link: Godaddy">Godaddy</a></li><li><a href="http://ioio.name/welcome-to-google-code-jam.html" rel="bookmark" title="Permanent Link: Welcome to Google Code Jam!">Welcome to Google Code Jam!</a></li><li><a href="http://ioio.name/bluehost-395.html" rel="bookmark" title="Permanent Link: Bluehost 促销优惠：3.95 美元/每月 (2010/08/28)">Bluehost 促销优惠：3.95 美元/每月 (2010/08/28)</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/name-com-renew-coupon-code.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/name-com-renew-coupon-code.html#comments">2 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/name-com-renew-coupon-code.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CentOS 6启用Apache2 WebDAV模块</title>
		<link>http://ioio.name/webdav-on-centos.html</link>
		<comments>http://ioio.name/webdav-on-centos.html#comments</comments>
		<pubDate>Thu, 15 Dec 2011 21:35:35 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[WebDAV]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1959</guid>
		<description><![CDATA[iPad上的iWork支持使用WebDAV存取文件，以下是在CentOS 6上启用WebDAV步骤： 1.检查httpd.conf中的配置信息，找到如下部分，并去掉相应的注释 LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so &#160; &#60;IfModule mod_dav_fs.c&#62; DAVLockDB /var/lib/dav/lockdb &#60;/IfModule&#62; 2.配置虚拟主机，添加WebDAV配置 如将网站的/webdav 目录指向实际目录 /var/www/webdav，并设置存取权限 Alias /webdav /var/www/webdav &#60;Location /webdav&#62; DAV On AuthType Basic AuthName “webdav” AuthUserFile /var/www/passwd.dav Require valid-user &#60;/Location&#62; 实际形成的VirtualHost配置文件如下： &#60;VirtualHost *:80&#62; ServerAdmin webmaster@example.com DocumentRoot /var/www/html ServerName ioio.name Serveralias www.ioio.name #webdav setting Alias /webdav /var/www/webdav &#60;Location /webdav&#62; DAV On [...]]]></description>
			<content:encoded><![CDATA[<p>iPad上的iWork支持使用WebDAV存取文件，以下是在CentOS 6上启用WebDAV步骤：</p>
<p>1.检查httpd.conf中的配置信息，找到如下部分，并去掉相应的注释</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
&nbsp;
&lt;IfModule mod_dav_fs.c&gt;
    DAVLockDB /var/lib/dav/lockdb
&lt;/IfModule&gt;</pre></div></div>

<p>2.配置虚拟主机，添加WebDAV配置<br />
如将网站的/webdav 目录指向实际目录 /var/www/webdav，并设置存取权限</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">    Alias /webdav /var/www/webdav
    &lt;Location /webdav&gt;
    DAV On
    AuthType Basic
    AuthName “webdav”
    AuthUserFile /var/www/passwd.dav
    Require valid-user
    &lt;/Location&gt;</pre></div></div>

<p>实际形成的VirtualHost配置文件如下：</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
    ServerAdmin webmaster@example.com
    DocumentRoot /var/www/html
    ServerName ioio.name
    Serveralias www.ioio.name
    #webdav setting
    Alias /webdav /var/www/webdav
    &lt;Location /webdav&gt;
    DAV On
    AuthType Basic
    AuthName “webdav”
    AuthUserFile /var/www/passwd.dav
    Require valid-user
    &lt;/Location&gt;
&lt;/VirtualHost&gt;</pre></div></div>

<p>3.添加新用户</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">htpasswd <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>passwd.dav ioio</pre></div></div>

<p>/var/www/passwd.dav 为上面所指定的AuthUserFile路径<br />
-c 表示不存在用户时创建，执行命令后按照提示设置密码</p>
<p>4.重启Apache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service httpd restart</pre></div></div>

<p>5.测试配置是否生效<br />
启动小卡车(Transmit)，找到WebDAV选项卡，输入连接信息<br />
<a href="http://ioio.name/wp-content/uploads/2011/12/transmit_webdav.png"><img src="http://ioio.name/wp-content/uploads/2011/12/transmit_webdav.png" alt="" title="transmit_webdav" width="430" height="361" class="alignnone size-full wp-image-1960" /></a><br />
我们上面设置的是网站的/webdav目录，因此Initial Path需要填写/webdav<br />
在iPad上则输入完整服务器地址 http://example.com/webdav<br />
测试成功后便可在支持WebDAV的设备上自由的存取信息啦。<br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/centos-clear-wtmp-and-btmp.html" rel="bookmark" title="Permanent Link: [CentOS]如何清空登陆历史记录(wtmp/btmp)?">[CentOS]如何清空登陆历史记录(wtmp/btmp)?</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/webdav-on-centos.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/webdav-on-centos.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/webdav-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一周开源项目集锦(2011/11/01)</title>
		<link>http://ioio.name/open-source-20111101.html</link>
		<comments>http://ioio.name/open-source-20111101.html#comments</comments>
		<pubDate>Tue, 01 Nov 2011 14:37:53 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1955</guid>
		<description><![CDATA[QualityBots A tool for automated comparison of website layouts across multiple Chrome versions. http://code.google.com/p/qualitybots/ Test Analytics Test Analytics is a web application that allows rapid generation of a project&#8217;s ACC model &#8212; an alterative to a test plan that is faster to create and of more practical value. http://code.google.com/p/test-analytics/ Script Cover Javascript code coverage detector [...]]]></description>
			<content:encoded><![CDATA[<p>QualityBots<br />
A tool for automated comparison of website layouts across multiple Chrome versions.<br />
<a href="http://code.google.com/p/qualitybots/" target="_blank">http://code.google.com/p/qualitybots/</a></p>
<p>Test Analytics<br />
Test Analytics is a web application that allows rapid generation of a project&#8217;s ACC model &#8212; an alterative to a test plan that is faster to create and of more practical value.<br />
<a href="http://code.google.com/p/test-analytics/" target="_blank">http://code.google.com/p/test-analytics/</a></p>
<p>Script Cover<br />
Javascript code coverage detector for web pages in Chrome<br />
<a href="http://code.google.com/p/script-cover/" target="_blank">http://code.google.com/p/script-cover/</a></p>
<p>Google Tasks Porter<br />
<a href="http://code.google.com/p/google-tasks-porter/" target="_blank">http://code.google.com/p/google-tasks-porter/</a><br />
Demo <a href="https://google-tasks-porter.appspot.com/" target="_blank">https://google-tasks-porter.appspot.com/</a></p>
<p>Google APIs Client Library for Objective-C<br />
<a href="http://code.google.com/p/google-api-objectivec-client/" target="_blank">http://code.google.com/p/google-api-objectivec-client/</a></p>
<p>Bootstrap<br />
Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.<br />
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.<br />
<a href="http://twitter.github.com/bootstrap/" target="_blank">http://twitter.github.com/bootstrap/</a></p>
<p>heatmap.js<br />
JavaScript Library for HTML5 canvas based heatmaps<br />
<a href="http://www.patrick-wied.at/static/heatmapjs/" target="_blank">http://www.patrick-wied.at/static/heatmapjs/</a></p>
<p>Google JS Test<br />
Google JS Test is a fast javascript unit testing framework that runs on the V8 engine, without needing to launch a full browser.<br />
<a href="http://code.google.com/p/google-js-test/" target="_blank">http://code.google.com/p/google-js-test/</a></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/jos-open-source.html" rel="bookmark" title="Permanent Link: 开放Judge Online System源代码">开放Judge Online System源代码</a></li><li><a href="http://ioio.name/open-source-ide.html" rel="bookmark" title="Permanent Link: 两款开源IDE">两款开源IDE</a></li><li><a href="http://ioio.name/open-source-storage-photo-system.html" rel="bookmark" title="Permanent Link: 两款开源在线图片存储分享服务程序">两款开源在线图片存储分享服务程序</a></li><li><a href="http://ioio.name/jaiku-is-open-source-now.html" rel="bookmark" title="Permanent Link: Jaiku 开放源代码">Jaiku 开放源代码</a></li><li><a href="http://ioio.name/google-blog-directory-source.html" rel="bookmark" title="Permanent Link: Google官方博客群一览">Google官方博客群一览</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/open-source-20111101.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/open-source-20111101.html#comments">0 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/open-source-20111101.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iCal(iPhone/iPad/Mac)添加中国农历和节日方法</title>
		<link>http://ioio.name/ical-add-china-day.html</link>
		<comments>http://ioio.name/ical-add-china-day.html#comments</comments>
		<pubDate>Sun, 30 Oct 2011 02:55:57 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[iCal]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1951</guid>
		<description><![CDATA[不管是Mac上的上的日历，还是iPhone上的日历最初都是空空一片，只有日起和星期，有时候我们还希望能够看到对应的农历和节日信息。当然了，有时间的朋友可以一个一个的输进入，偷懒的朋友可以导入别人输入好共享出来的日历信息。 好消息是苹果有提供已经输入好的这些信息的共享日历，我们只需要添加到我们的日历中即可。 这张页面上列有苹果现有的共享日历清单： http://www.apple.com/downloads/macosx/calendars/index_abc2.html 访问该页并找到自己想要的添加的日历，点击下载，浏览器会自动打开iCal并询问你是否添加该日历，点击订阅，等待载入日历信息，点击确定后，改日历就添加进你的iCal中了。 如果想要订阅的日历暂时隐藏不显示，选择日历，去掉前面的钩就不在日历上显示。 目前苹果提供的中国日历有三个，分别是： 中国节假日 http://www.apple.com/downloads/macosx/calendars/chinesepublicholidaycalendar_appleinc.html 中国农历（简体）http://www.apple.com/downloads/macosx/calendars/chineselunarholidaycalendarsimplified.html 中国农历（繁体） 除此之外，还有可以通过手动输入添加,进入”设置”—>”邮件、通讯录、日历”—>”添加账户&#8230;”—>”其他”—>”添加已订阅的日历”，然后输入要订阅的日历地址： 中国节假日：ical.mac.com/ical/China32Public32Holidays.ics 中国农历（简体）：ical.mac.com/ical/China32Lunar32Simplified32Holidays.ics 中国农历（繁体）：ical.mac.com/ical/China32Lunar32Traditional32Holidays.ics 点击”下一步”,然后”存储”,稍等片刻就可以在日历程序中看到订阅的日历了。 -EOF- Related posts:O&#8217;Reilly Velocity China 2010第四届中国网商大会我的2010G1(Android)手机上网及彩信设定(中国移动)(Please) Earthquake in Sichuan, ChinaCopyright &#169; 2005~2011 &#124; Permalink &#124; 2 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>不管是Mac上的上的日历，还是iPhone上的日历最初都是空空一片，只有日起和星期，有时候我们还希望能够看到对应的农历和节日信息。当然了，有时间的朋友可以一个一个的输进入，偷懒的朋友可以导入别人输入好共享出来的日历信息。</p>
<p>好消息是苹果有提供已经输入好的这些信息的共享日历，我们只需要添加到我们的日历中即可。<br />
<a href="http://www.apple.com/downloads/macosx/calendars/index_abc2.html" target="_blank">这张页面</a>上列有苹果现有的共享日历清单：<br />
<a href="http://www.apple.com/downloads/macosx/calendars/index_abc2.html" target="_blank">http://www.apple.com/downloads/macosx/calendars/index_abc2.html</a></p>
<p>访问该页并找到自己想要的添加的日历，点击下载，浏览器会自动打开iCal并询问你是否添加该日历，点击订阅，等待载入日历信息，点击确定后，改日历就添加进你的iCal中了。</p>
<p>如果想要订阅的日历暂时隐藏不显示，选择日历，去掉前面的钩就不在日历上显示。<br />
<a href="http://ioio.name/wp-content/uploads/2011/10/ical_hide.png"><img src="http://ioio.name/wp-content/uploads/2011/10/ical_hide.png" alt="" title="ical_hide" width="296" height="260" class="alignnone size-full wp-image-1952" /></a></p>
<p>目前苹果提供的中国日历有三个，分别是：<br />
中国节假日 <a href="http://www.apple.com/downloads/macosx/calendars/chinesepublicholidaycalendar_appleinc.html" target="_blank">http://www.apple.com/downloads/macosx/calendars/chinesepublicholidaycalendar_appleinc.html</a></p>
<p>中国农历（简体）<a href="http://www.apple.com/downloads/macosx/calendars/chineselunarholidaycalendarsimplified.html" target="_blank">http://www.apple.com/downloads/macosx/calendars/chineselunarholidaycalendarsimplified.html</a></p>
<p>中国农历（繁体）<a href="http://www.apple.com/downloads/macosx/calendars/chineselunarholidaycalendartraditional.html" title="http://www.apple.com/downloads/macosx/calendars/chineselunarholidaycalendartraditional.html" target="_blank"></a></p>
<p>除此之外，还有可以通过手动输入添加,进入”设置”—>”邮件、通讯录、日历”—>”添加账户&#8230;”—>”其他”—>”添加已订阅的日历”，然后输入要订阅的日历地址：<br />
中国节假日：ical.mac.com/ical/China32Public32Holidays.ics<br />
中国农历（简体）：ical.mac.com/ical/China32Lunar32Simplified32Holidays.ics<br />
中国农历（繁体）：ical.mac.com/ical/China32Lunar32Traditional32Holidays.ics</p>
<p>点击”下一步”,然后”存储”,稍等片刻就可以在日历程序中看到订阅的日历了。<br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/velocity-china-2010.html" rel="bookmark" title="Permanent Link: O&#8217;Reilly Velocity China 2010">O&#8217;Reilly Velocity China 2010</a></li><li><a href="http://ioio.name/wang-shang-4.html" rel="bookmark" title="Permanent Link: 第四届中国网商大会">第四届中国网商大会</a></li><li><a href="http://ioio.name/my2010.html" rel="bookmark" title="Permanent Link: 我的2010">我的2010</a></li><li><a href="http://ioio.name/android-china-mobile-apn.html" rel="bookmark" title="Permanent Link: G1(Android)手机上网及彩信设定(中国移动)">G1(Android)手机上网及彩信设定(中国移动)</a></li><li><a href="http://ioio.name/earthquake-in-sichuan-china.html" rel="bookmark" title="Permanent Link: (Please) Earthquake in Sichuan, China">(Please) Earthquake in Sichuan, China</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/ical-add-china-day.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/ical-add-china-day.html#comments">2 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/ical-add-china-day.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

