<?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>Stepo Paradise &#187; UCenter</title>
	<atom:link href="http://tcpo.org/tag/ucenter/feed/" rel="self" type="application/rss+xml" />
	<link>http://tcpo.org</link>
	<description>Blogged by Stephen Po</description>
	<lastBuildDate>Tue, 02 Mar 2010 07:52:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>UCenter Home 2.0 Installation (Part 1)</title>
		<link>http://tcpo.org/2010/02/05/ucenter-home-2-0-installation/</link>
		<comments>http://tcpo.org/2010/02/05/ucenter-home-2-0-installation/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 07:59:33 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[UCenter]]></category>
		<category><![CDATA[UCenter Home]]></category>

		<guid isPermaLink="false">http://tcpo.org/blog/?p=14</guid>
		<description><![CDATA[My previous experience with Discuz! and UCenter Home gave me an impression that their installation documentation is sometimes not so accurate, so I decided to write up my own here.  Basically, I follow:

UCenter 1.5.0 安装介绍
UCenter Home 2.0 安装方法详细介绍

Here&#8217;s what I want to achieve: setup UCenter Home 2.0 on a dedicated linux server.  And since installing [...]]]></description>
			<content:encoded><![CDATA[<p>My previous experience with Discuz! and UCenter Home gave me an impression that their installation documentation is sometimes not so accurate, so I decided to write up my own here.  Basically, I follow:</p>
<ol>
<li><a href="http://faq.comsenz.com/userguide/uchome/uc_install.html" target="_blank">UCenter 1.5.0 安装介绍</a></li>
<li><a href="http://faq.comsenz.com/viewnews-806" target="_blank">UCenter Home 2.0 安装方法详细介绍</a></li>
</ol>
<p>Here&#8217;s what I want to achieve: setup UCenter Home 2.0 on a dedicated linux server.  And since installing UCenter Home is a 2 step process of installing UCenter first and then UCenter Home, I break it into 2 posts.  This post covers installing UCenter.  In next post I&#8217;ll talk about UCenter Home.</p>
<p><span id="more-14"></span></p>
<h3>Setup UCenter</h3>
<p>UCenter is the pre-requisite of installing UCenter Home 2.0.  UCenter stands for &#8220;User Center&#8221; and is the integral part of Comsenz&#8217; products.</p>
<p>First, download the installation package at http://download.comsenz.com/UCenter/1.5.0/UCenter_1.5.0_TC_UTF8.zip.  Here I choose the Traditional Chinese edition with UTF-8 encoding.  Under the root&#8217;s shell, issue the following commands to download and unpack the installation package.</p>
<blockquote>
<pre>mkdir ~/setup-ucenter
cd ~/setup-ucenter
wget http://download.comsenz.com/UCenter/1.5.0/\
UCenter_1.5.0_TC_UTF8.zip
unzip UCenter_1.5.0_TC_UTF8.zip</pre>
</blockquote>
<p>I would like UCenter Home to be installed at http://u.tcpo.org.  Because UCenter and UCenter Home cannot be installed under the same directory, I decided to put UCenter under http://u.tcpo.org/ucenter.  The document root of the domain u.tcpo.org is /var/www/html/u.tcpo.org in my server.</p>
<blockquote>
<pre>mkdir /var/www/html/u.tcpo.org
cp -pr upload /var/www/html/u.tcpo.org/ucenter</pre>
</blockquote>
<p>Then I need to change permission to some files and directories to allow read/write by apache.</p>
<blockquote>
<pre>cd /var/www/html/u.tcpo.org/ucenter
chmod 777 data
chmod 777 data/avatar
chmod 777 data/backup
chmod 777 data/cache
chmod 777 data/logs
chmod 777 data/tmp
chmod 777 data/view</pre>
</blockquote>
<p>Next, I need to configure apache so that it responds to virtual host u.tcpo.org.  The following section is put inside /etc/httpd/conf/httpd.conf.</p>
<blockquote>
<pre>&lt;VirtualHost *:80&gt;
        ServerName u.tcpo.org
        DocumentRoot /var/www/html/u.tcpo.org
        CustomLog logs/u.tcpo.org-access_log combined
        ErrorLog logs/u.tcpo.org-error_log
&lt;/VirtualHost&gt;</pre>
</blockquote>
<p>Then restart apache.</p>
<blockquote>
<pre>service httpd restart</pre>
</blockquote>
<p>I also need to prepare a MySQL database and a MySQL user because running the UCenter installation guide.</p>
<blockquote>
<pre>CREATE DATABASE UC;
GRANT ALL PRIVILEGES ON UC.* TO "uc"@"localhost" \
  IDENTIFIED BY "&lt;password&gt;";
FLUSH PRIVILEGES;</pre>
</blockquote>
<p>Now I can visit the UCenter installation site at http://u.tcpo.org/ucenter/install.  A license agreement will be shown, click &#8220;我同意&#8221; to proceed.  After that, a step-by-step installation guide will guide you through the setup procedure.</p>
<h4>1. 開始安裝</h4>
<p>This step checks the server configuration to see if it meets UCenter&#8217;s requirement.  If everything&#8217;s fine, you will see everything &#8220;ticked&#8221;.</p>
<h4>2. 安裝數據庫</h4>
<p>Here I enter the database access information.</p>
<pre>數據庫服務器: localhost
數據庫名: UC
數據庫用戶名: uc
數據庫密碼: &lt;password&gt;
數據表前綴: uc_</pre>
<p>I also need to setup a 創始人密碼.</p>
<h4>3. 安裝數據庫</h4>
<p>You should see messages saying that database tables are successfully created.  If not, check your database access parameters entered in step 2.</p>
<p>Now UCenter is completely setup.  You can use the 創始人密碼 to login into UCenter 用戶管理中心 to have a look around.</p>
]]></content:encoded>
			<wfw:commentRss>http://tcpo.org/2010/02/05/ucenter-home-2-0-installation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is UTF8 UCenter worse than its GBK/BIG5 peers?</title>
		<link>http://tcpo.org/2010/02/05/is-utf8-ucenter-worse-than-its-gbkbig5-peers/</link>
		<comments>http://tcpo.org/2010/02/05/is-utf8-ucenter-worse-than-its-gbkbig5-peers/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 04:42:23 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[UCenter]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://tcpo.org/blog/?p=9</guid>
		<description><![CDATA[In the installation document of Comsenz&#8217; UCenter (http://faq.comsenz.com/userguide/uchome/uc_install.html), it is said:
&#8220;在这里要说明一下：我们提供了 4 种不同的编码。包括 GBK 简体中文版(推荐)、UTF-8 简体中文版、BIG5 繁体中文版(推荐)、UTF-8 繁体中文版，请自己的需求选择相应版本的论坛程序下载。&#8221;
It means the author recommends installing the package using GBK/BIG5 encoding instead of the UTF8 one.  It confuses me as I thought the UTF8 version is be more appropriate for general use.  I have friends writing in both [...]]]></description>
			<content:encoded><![CDATA[<p>In the installation document of Comsenz&#8217; UCenter (http://faq.comsenz.com/userguide/uchome/uc_install.html), it is said:</p>
<blockquote><p>&#8220;在这里要说明一下：我们提供了 4 种不同的编码。包括 GBK 简体中文版(推荐)、UTF-8 简体中文版、BIG5 繁体中文版(推荐)、UTF-8 繁体中文版，请自己的需求选择相应版本的论坛程序下载。&#8221;</p></blockquote>
<p>It means the author recommends installing the package using GBK/BIG5 encoding instead of the UTF8 one.  It confuses me as I thought the UTF8 version is be more appropriate for general use.  I have friends writing in both Traditional and Simplified Chinese, so UTF8 is a requirement for me.  To confirm whether UTF8 version is worse than its GBK/BIG5 peers, I download all packages and diff them.  The result is comforting, as the only output is of the following type:<span id="more-9"></span></p>
<blockquote><p>&lt;               &lt;option value=&#8221;0&#8243;&gt;Flash动画&lt;/option&gt;<br />
&lt;               &lt;option value=&#8221;1&#8243;&gt;Media视频&lt;/option&gt;<br />
&lt;               &lt;option value=&#8221;2&#8243;&gt;Real视频&lt;/option&gt;<br />
&#8212;<br />
&gt;               &lt;option value=&#8221;0&#8243;&gt;Flash動畫&lt;/option&gt;<br />
&gt;               &lt;option value=&#8221;1&#8243;&gt;Media視頻&lt;/option&gt;<br />
&gt;               &lt;option value=&#8221;2&#8243;&gt;Real視頻&lt;/option&gt;</p></blockquote>
<p>So if you are struggling with version choice, you can safely choose the one that fits you the best.  In my case, it is the UTF8 version.</p>
<p>But why did the author recommend against the UTF8 version?  Well, I can think of 2 reaons:</p>
<ol>
<li>UTF8 has characters in varied length.  If you are sure you only have GBK or BIG5, then it saves you some bandwidth using GBK/BIG5 instead of UTF8.</li>
<li>The author has a China-only mindset.</li>
</ol>
<p>Well, reason 2 is further enhanced by the fact that UCenter has only Chinese documentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://tcpo.org/2010/02/05/is-utf8-ucenter-worse-than-its-gbkbig5-peers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
