<?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; 2009 &#187; 八月</title>
	<atom:link href="http://ale.net.cn/blog/2009/08/feed/" rel="self" type="application/rss+xml" />
	<link>http://ale.net.cn/blog</link>
	<description>没有句号的梦想</description>
	<lastBuildDate>Thu, 26 Aug 2010 15:15:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows server 2003下安装最新MSN9.0的方法</title>
		<link>http://ale.net.cn/blog/2009/08/windows-server-2003%e4%b8%8b%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0msn9-0%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://ale.net.cn/blog/2009/08/windows-server-2003%e4%b8%8b%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0msn9-0%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 00:58:58 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[msn]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/?p=91</guid>
		<description><![CDATA[因msn升级，老版本无法登陆，没办法只能安装最新的msn。
但是有个问题随之而来，因为我的是2003系统，官方下的在线安装、独立安装包都没办法使用。
网上找了下资料大部分都是说，先在xp里面安装，再用里面的msi文件安装。我当初装是下载.msi文件装，太麻烦。
如今找了个简便的方法给大家。
用ResHacker.exe（绿盟下载）打开msn独立安装包wlsetup-all.exe（官网下载），
将 CONFIG / CONFIG0 / 0 / 下的
&#60;os productType=&#8221;workstation&#8221; /&#62;改为&#60;os productType=&#8221;server&#8221; /&#62;
搞定！
]]></description>
			<content:encoded><![CDATA[<p>因msn升级，老版本无法登陆，没办法只能安装最新的msn。</p>
<p>但是有个问题随之而来，因为我的是2003系统，官方下的在线安装、独立安装包都没办法使用。</p>
<p>网上找了下资料大部分都是说，先在xp里面安装，再用里面的msi文件安装。我当初装是下载.msi文件装，太麻烦。</p>
<p>如今找了个简便的方法给大家。</p>
<p>用ResHacker.exe（<a href="http://www.xdowns.com/soft/softdown.asp?softid=32472" target="_blank">绿盟下载</a>）打开msn独立安装包wlsetup-all.exe（<a href="http://clk.atdmt.com/gbl/go/129604767/direct/01/" target="_blank">官网下载</a>），</p>
<p>将 CONFIG / CONFIG0 / 0 / 下的</p>
<p>&lt;os productType=&#8221;workstation&#8221; /&gt;改为&lt;os productType=&#8221;server&#8221; /&gt;</p>
<p>搞定！</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2009/08/windows-server-2003%e4%b8%8b%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0msn9-0%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>为wordpress绑定多个域名</title>
		<link>http://ale.net.cn/blog/2009/08/%e4%b8%bawordpress%e7%bb%91%e5%ae%9a%e5%a4%9a%e4%b8%aa%e5%9f%9f%e5%90%8d/</link>
		<comments>http://ale.net.cn/blog/2009/08/%e4%b8%bawordpress%e7%bb%91%e5%ae%9a%e5%a4%9a%e4%b8%aa%e5%9f%9f%e5%90%8d/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:31:10 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[程序]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[多域名]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/?p=89</guid>
		<description><![CDATA[按照默认设置，wordpress只能绑定一个域名，与域名相关的两个option选项是siteurl和home，这些域名数据存在数据库里。
但是，自定义常量的优先级要高于数据库。所以，对于有多个镜像的blog，可以通过修改wp-config.php为Wordpress绑定多个域名。
将以下代码插入到wp-config.php中，就会根据域名设置wordpress的目录和显示目录。
if ($_SERVER['HTTP_HOST']==&#8221;www.w2.com&#8221;):
 define(&#8221;WP_SITEURL&#8221;, &#8220;http://www.w2.com&#8221;);
 define(&#8221;WP_HOME&#8221;, &#8220;http://www.w2.com&#8221;);
elseif ($_SERVER['HTTP_HOST']==&#8221;www.w3.com&#8221;):
 define(&#8221;WP_SITEURL&#8221;, &#8220;http://www.w3.com&#8221;);
 define(&#8221;WP_HOME&#8221;, &#8220;http://www.w3.com&#8221;);
else :
 define(&#8221;WP_SITEURL&#8221;, &#8220;http://www.w4.com&#8221;);
 define(&#8221;WP_HOME&#8221;, &#8220;http://www.w4.com&#8221;);
endif;
]]></description>
			<content:encoded><![CDATA[<p>按照默认设置，wordpress只能绑定一个域名，与域名相关的两个option选项是siteurl和home，这些域名数据存在数据库里。</p>
<p>但是，<strong><span style="color: #ff0000;">自定义常量的优先级要高于数据库</span></strong>。所以，对于有多个镜像的blog，可以通过修改wp-config.php为Wordpress绑定多个域名。</p>
<p>将以下代码插入到wp-config.php中，就会根据域名设置wordpress的目录和显示目录。</p>
<p>if ($_SERVER['HTTP_HOST']==&#8221;www.w2.com&#8221;):<br />
 define(&#8221;WP_SITEURL&#8221;, &#8220;http://www.w2.com&#8221;);<br />
 define(&#8221;WP_HOME&#8221;, &#8220;http://www.w2.com&#8221;);<br />
elseif ($_SERVER['HTTP_HOST']==&#8221;www.w3.com&#8221;):<br />
 define(&#8221;WP_SITEURL&#8221;, &#8220;http://www.w3.com&#8221;);<br />
 define(&#8221;WP_HOME&#8221;, &#8220;http://www.w3.com&#8221;);<br />
else :<br />
 define(&#8221;WP_SITEURL&#8221;, &#8220;http://www.w4.com&#8221;);<br />
 define(&#8221;WP_HOME&#8221;, &#8220;http://www.w4.com&#8221;);<br />
endif;</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2009/08/%e4%b8%bawordpress%e7%bb%91%e5%ae%9a%e5%a4%9a%e4%b8%aa%e5%9f%9f%e5%90%8d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在WordPress中获取指定分类下的全部tag</title>
		<link>http://ale.net.cn/blog/2009/08/%e5%9c%a8wordpress%e4%b8%ad%e8%8e%b7%e5%8f%96%e6%8c%87%e5%ae%9a%e5%88%86%e7%b1%bb%e4%b8%8b%e7%9a%84%e5%85%a8%e9%83%a8tag/</link>
		<comments>http://ale.net.cn/blog/2009/08/%e5%9c%a8wordpress%e4%b8%ad%e8%8e%b7%e5%8f%96%e6%8c%87%e5%ae%9a%e5%88%86%e7%b1%bb%e4%b8%8b%e7%9a%84%e5%85%a8%e9%83%a8tag/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 13:53:46 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[程序]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/?p=87</guid>
		<description><![CDATA[&#60;?php
    query_posts(&#8217;category_name=work&#8217;);
    if (have_posts()) : while (have_posts()) : the_post();
        $posttags = get_the_tags();
        if ($posttags) {
            foreach($posttags as $tag) {
                $all_tags_arr[] = $tag -&#62; name; //用 $tag 把 $all_tags_arr 变成多维数组，再由array_unique函数进行处理
            }
        }
    endwhile; endif;
    $tags_arr = array_unique($all_tags_arr); //去除重复的tag
    echo &#8216;&#60;pre&#62;&#8217;.print_r($tags_arr, true).&#8217;&#60;/pre&#62;&#8217;; //输出tag
?&#62;
 别忘了把“query_posts(&#8217;category_name=work&#8217;);”里的分类名改成你需要的分类名。
为验证，先收藏。
]]></description>
			<content:encoded><![CDATA[<p>&lt;?php<br />
    query_posts(&#8217;category_name=work&#8217;);<br />
    if (have_posts()) : while (have_posts()) : the_post();<br />
        $posttags = get_the_tags();<br />
        if ($posttags) {<br />
            foreach($posttags as $tag) {<br />
                $all_tags_arr[] = $tag -&gt; name; //用 $tag 把 $all_tags_arr 变成多维数组，再由array_unique函数进行处理<br />
            }<br />
        }<br />
    endwhile; endif;</p>
<p>    $tags_arr = array_unique($all_tags_arr); //去除重复的tag<br />
    echo &#8216;&lt;pre&gt;&#8217;.print_r($tags_arr, true).&#8217;&lt;/pre&gt;&#8217;; //输出tag</p>
<p>?&gt;</p>
<p> 别忘了把“query_posts(&#8217;category_name=work&#8217;);”里的分类名改成你需要的分类名。</p>
<p>为验证，先收藏。</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2009/08/%e5%9c%a8wordpress%e4%b8%ad%e8%8e%b7%e5%8f%96%e6%8c%87%e5%ae%9a%e5%88%86%e7%b1%bb%e4%b8%8b%e7%9a%84%e5%85%a8%e9%83%a8tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
