<?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>Tairan&#039;s Story &#187; 开源</title>
	<atom:link href="http://www.tairan.net/index.php/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tairan.net</link>
	<description>「知之真切笃实处即是行，行之明觉精察处即是知，知行工夫不可离。」</description>
	<lastBuildDate>Fri, 02 Dec 2011 08:08:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Drupal</title>
		<link>http://www.tairan.net/index.php/2009/11/23/setup-drupal/</link>
		<comments>http://www.tairan.net/index.php/2009/11/23/setup-drupal/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 12:59:43 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[开源]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=699</guid>
		<description><![CDATA[Drupal是一个出色的开源CMS系统，Whithouse也在使用。 现在把我今天配置Drupal的时候遇到一些问题以及解决办法记录在此，备查。 软件版本信息 Windows7 IIS7 + FastCGI php-5.3.1-nts-Win32-VC9-x86 drupal-6.14 在PHP官方文档中提供了IIS7如何使用FastCGI配置PHP，需要注意的是当启用php.ini-development作为php.ini配置环境时，在CGI部分默认的是无法工作的，需要做如下修改 cgi.force_redirect = 1 cgi.nph = 0 cgi.fix_pathinfo = 1 fastcgi.impersonate = 0 fastcgi.logging = 1 cgi.rfc2616_headers = 0 在php.ini文件中需要启用的 extension extension=php_gd2.dll ;用来画图 extension=php_mbstring.dll ;多语言支持 extension=php_mysql.dll ;连接MySQL extension=php_pdo_mysql.dll ;使用PDO的方式连接MySQL，非Drupal必须 extension=php_sqlite3.dll ;连接sqlite3，非Drupal必须 extension=php_xmlrpc.dll ;xmlprc实现接口，非Drupal必须 使用PHP5.3会有遇到 Function ereg() is deprecated Error 在询问了万能的Google后并参考这篇文章Function ereg() is deprecated Error 错误对策，使用文章中提到的最后一种办法来解决这个问题： 在 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://drupal.org" target="_blank">Drupal</a>是一个出色的开源CMS系统，<a href="http://drupal.org/node/375843" target="_blank">Whithouse</a>也在使用。<br />
现在把我今天配置Drupal的时候遇到一些问题以及解决办法记录在此，备查。</p>
<p>软件版本信息<br />
Windows7<br />
IIS7 + FastCGI<br />
php-5.3.1-nts-Win32-VC9-x86<br />
drupal-6.14</p>
<p>在PHP官方文档中提供了IIS7如何使用FastCGI配置PHP，需要注意的是当启用php.ini-development作为php.ini配置环境时，在CGI部分默认的是无法工作的，需要做如下修改</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">cgi.force_redirect <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 1</span>
cgi.nph <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 0</span>
cgi.fix_pathinfo <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 1</span>
fastcgi.impersonate <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 0</span>
fastcgi.logging <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 1</span>
cgi.rfc2616_headers <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 0</span></pre></div></div>

<p>在php.ini文件中需要启用的 extension</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_gd2.dll    </span><span style="color: #666666; font-style: italic;">;用来画图</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_mbstring.dll   </span><span style="color: #666666; font-style: italic;">;多语言支持</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_mysql.dll    </span><span style="color: #666666; font-style: italic;">;连接MySQL</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_pdo_mysql.dll    </span><span style="color: #666666; font-style: italic;">;使用PDO的方式连接MySQL，非Drupal必须</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_sqlite3.dll    </span><span style="color: #666666; font-style: italic;">;连接sqlite3，非Drupal必须</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_xmlrpc.dll    </span><span style="color: #666666; font-style: italic;">;xmlprc实现接口，非Drupal必须</span></pre></div></div>

<p>使用PHP5.3会有遇到 Function ereg() is deprecated Error 在询问了万能的Google后并参考这篇文章<a href="http://www.wordpresscool.cn/2009/08/21/function-ereg-is-deprecated-error-%E9%94%99%E8%AF%AF%E5%AF%B9%E7%AD%96/" target="_blank">Function ereg() is deprecated Error 错误对策</a>，使用文章中提到的最后一种办法来解决这个问题：<br />
在 drupal\includes\file.inc 第 902 行</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//elseif ($depth &gt;= $min_depth &amp;&amp; ereg($mask, $file)) {</span>
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$depth</span> <span style="color: #339933;">&gt;=</span> <span style="color: #000088;">$min_depth</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$mask</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></pre></div></div>

<p>默认的php.ini-development还会遇到一个时区(date.timezone)的问题需要修改php.ini</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Date<span style="">&#93;</span></span>
date.timezone <span style="color: #000066; font-weight:bold;">=</span> <span style="color: #933;">&quot;Asia/Shanghai&quot;</span></pre></div></div>

<p>另外还遇到一个Drupal设置的问题，default.settings.php 文件是不能删除的，至少在安装过程中需要，因为配置程序会读这个文件。</p>
<p>以上就是今天安装Drupal的一些总结，接下来再仔细研究如何在Drupal上做二次的开发。我就不信开源的程序搞不出符合国情的站点。</p>
<p>EOF</p>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan&#039;s Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/11/23/setup-drupal/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/11/23/setup-drupal/#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/11/23/setup-drupal/&title=Drupal">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/drupal/" rel="tag">Drupal</a>, <a href="http://www.tairan.net/index.php/tag/open-source/" rel="tag">开源</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/11/23/setup-drupal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>优盘上的软件</title>
		<link>http://www.tairan.net/index.php/2009/05/06/portable-applications/</link>
		<comments>http://www.tairan.net/index.php/2009/05/06/portable-applications/#comments</comments>
		<pubDate>Wed, 06 May 2009 06:44:09 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[开源]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=393</guid>
		<description><![CDATA[每个人都有自己使用电脑的习惯，一些常用的设置，常用的工具等。可有时不能在自己熟悉的环境中工作，如临时给菜鸟帮忙等。此时如果有一些软件放在优盘中随身带着就方便很多。 现在，就有人把很多软件改造成可以装安装在优盘上的版本，这个网站http://portableapps.com，就是专门负责这事的。 很多开源的优秀软件，如 7zip, OpenOffice, WinMerge, Notepad++， Firefox, Filezilla 等都已经加入到这个队伍中，涵盖了开发，游戏，画图，教学，网络，多媒体等多个方面。 正是开源让软件世界便的多姿多彩。 除了这些软件，Python 也有可以安装在优盘上的版本。http://www.portablepython.com © Daniel Wang for Tairan&#039;s Story, 2009. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: 开源 Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<p>每个人都有自己使用电脑的习惯，一些常用的设置，常用的工具等。可有时不能在自己熟悉的环境中工作，如临时给菜鸟帮忙等。此时如果有一些软件放在优盘中随身带着就方便很多。</p>
<p>现在，就有人把很多软件改造成可以装安装在优盘上的版本，这个网站<a href="http://portableapps.com" target="_blank">http://portableapps.com</a>，就是专门负责这事的。</p>
<p>很多开源的优秀软件，如 7zip, OpenOffice, WinMerge, Notepad++， Firefox, Filezilla 等都已经加入到这个队伍中，涵盖了开发，游戏，画图，教学，网络，多媒体等多个方面。</p>
<p>正是开源让软件世界便的多姿多彩。</p>
<p>除了这些软件，Python 也有可以安装在优盘上的版本。<a href="http://www.portablepython.com" target="_blank">http://www.portablepython.com</a></p>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan&#039;s Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/05/06/portable-applications/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/05/06/portable-applications/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/05/06/portable-applications/&title=优盘上的软件">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/open-source/" rel="tag">开源</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/05/06/portable-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>想提高自己的编程水平？&#8211;开源吧！</title>
		<link>http://www.tairan.net/index.php/2008/07/28/to-do-open-your-source/</link>
		<comments>http://www.tairan.net/index.php/2008/07/28/to-do-open-your-source/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 06:34:00 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Thinking]]></category>
		<category><![CDATA[就事论事]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[开源]]></category>

		<guid isPermaLink="false">http://tairan.wordpress.com/2008/07/28/%e6%83%b3%e6%8f%90%e9%ab%98%e8%87%aa%e5%b7%b1%e7%9a%84%e7%bc%96%e7%a8%8b%e6%b0%b4%e5%b9%b3%ef%bc%9f-%e5%bc%80%e6%ba%90%e5%90%a7%ef%bc%81/</guid>
		<description><![CDATA[记得有个牛人说过，想成为高手有两个途径，1. 实现一个语言 2. 开源 大多数人实现一个语言还是比较困难的，所以开源是个好的选择。为什么呢？ 说说我现在的感受吧。 由于管理SVN服务器，当需要添加用户，修改密码等需要登录到服务器上操作，很不方便。于是我就想着写了一个远程管理的工具。最初，就是实现了一个页面，和一个authHandle。虽然这个很简陋，但是我还是想跟别人分享这个工具，并为此写了安装文档。想不到真的有人愿意用了.（我还没得到他们的反馈） 这个工具到底好使吗？左思右想之后，决定对这个程序升级。毕竟这个程序太简陋了，实在对不住支持我的朋友。 有了别人的支持，就是给了自己动力。让自己有更强的动力把软件做的更好用，健壮，代码写的更漂亮。 还等什么，勇敢的开源吧！ © Daniel Wang for Tairan&#039;s Story, 2008. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: 开源 Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<p>记得有个牛人说过，想成为高手有两个途径，1. 实现一个语言 2. 开源</p>
<p>大多数人实现一个语言还是比较困难的，所以开源是个好的选择。为什么呢？</p>
<p>说说我现在的感受吧。</p>
<p>由于管理SVN服务器，当需要添加用户，修改密码等需要登录到服务器上操作，很不方便。于是我就想着写了一个远程管理的工具。最初，就是实现了一个页面，和一个authHandle。虽然这个很简陋，但是我还是想跟别人分享这个工具，并为此写了安装文档。想不到真的有人愿意用了.（我还没得到他们的反馈）</p>
<p>这个工具到底好使吗？左思右想之后，决定对这个程序升级。毕竟这个程序太简陋了，实在对不住支持我的朋友。</p>
<p>有了别人的支持，就是给了自己动力。让自己有更强的动力把软件做的更好用，健壮，代码写的更漂亮。</p>
<p>还等什么，勇敢的开源吧！</p>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan&#039;s Story</a>, 2008. |
<a href="http://www.tairan.net/index.php/2008/07/28/to-do-open-your-source/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2008/07/28/to-do-open-your-source/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2008/07/28/to-do-open-your-source/&title=想提高自己的编程水平？&#8211;开源吧！">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/open-source/" rel="tag">开源</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2008/07/28/to-do-open-your-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

