<?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>Star life &#187; Tech Language</title>
	<atom:link href="http://liuchangjun.com/category/all-for-tech-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://liuchangjun.com</link>
	<description>Welcome to Hangzhou, zj, cn – star@zuoan</description>
	<lastBuildDate>Tue, 07 Sep 2010 07:30:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Yii &#8211; 高性能 PHP 框架之安装</title>
		<link>http://liuchangjun.com/2010/03/31/yii-php-framework-installation/</link>
		<comments>http://liuchangjun.com/2010/03/31/yii-php-framework-installation/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 08:54:05 +0000</pubDate>
		<dc:creator>star</dc:creator>
				<category><![CDATA[Tech Language]]></category>
		<category><![CDATA[deepin]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://liuchangjun.com/?p=198</guid>
		<description><![CDATA[支持一下华人写的PHP开源框架 &#8211; Yii Homepage: http://www.yiiframework.com Code: http://code.google.com/p/yii/ Yii 是一个基于组件、用于开发大型 Web 应用的高性能 PHP 框架。它将 Web 编程中的可重用性发挥到极致，能够显著加速开发进程。Yii（读作“易”）代表简单(easy)、高效(efficient)、可扩展(extensible)。 Yii 的安装由如下两步组成： 1. 从 yiiframework.com 下载 Yii 框架。 2. 将 Yii 压缩包解压至一个 Web 可访问的目录。 安装完 Yii 以后你也许想验证一下你的服务器是否满足使用 Yii 的要求，只需浏览器中输入如下网址来访问需求检测脚本： http://hostname/path/to/yii/requirements/index.php Yii 的最低需求是你的 Web 服务器支持 PHP 5.1.0 或更高版本。Yii 在 Windows 和 Linux 系统上的 Apache HTTP 服务器 中测试通过，应该在其它支持 PHP 5 的 Web [...]]]></description>
			<content:encoded><![CDATA[<p>支持一下华人写的PHP开源框架 &#8211; Yii</p>
<p>Homepage: <a href="http://www.yiiframework.com">http://www.yiiframework.com</a><br />
Code: <a href="http://code.google.com/p/yii/">http://code.google.com/p/yii/</a></p>
<p>Yii 是一个基于组件、用于开发大型 Web 应用的高性能 PHP 框架。它将 Web 编程中的可重用性发挥到极致，能够显著加速开发进程。Yii（读作“易”）代表简单(easy)、高效(efficient)、可扩展(extensible)。</p>
<p>Yii 的安装由如下两步组成：<br />
   1. 从 yiiframework.com 下载 Yii 框架。<br />
   2. 将 Yii 压缩包解压至一个 Web 可访问的目录。</p>
<p>安装完 Yii 以后你也许想验证一下你的服务器是否满足使用 Yii 的要求，只需浏览器中输入如下网址来访问需求检测脚本：</p>
<p>http://hostname/path/to/yii/requirements/index.php</p>
<p>Yii 的最低需求是你的 Web 服务器支持 PHP 5.1.0 或更高版本。Yii 在 Windows 和 Linux 系统上的 Apache HTTP 服务器 中测试通过，应该在其它支持 PHP 5 的 Web 服务器和平台上也工作正常。</p>
<p>注：我使用 Deepin9.12 (Ubuntu) 安装 Yii，有几个PHP包没有安装<br />
PDO SQLite扩展模块<br />
PDO PostgreSQL扩展模块<br />
Memcache扩展模块<br />
APC扩展模块 </p>
<p>手工安装PHP扩展包：<br />
# sudo apt-get install php5-sqlite<br />
# sudo apt-get install php5-pgsql<br />
# sudo apt-get install php5-memcache<br />
# sudo apt-get install php-apc</p>
]]></content:encoded>
			<wfw:commentRss>http://liuchangjun.com/2010/03/31/yii-php-framework-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Google Wave reference implementation with ejabberd</title>
		<link>http://liuchangjun.com/2009/11/06/google-wave-server-ejabberd/</link>
		<comments>http://liuchangjun.com/2009/11/06/google-wave-server-ejabberd/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 02:06:52 +0000</pubDate>
		<dc:creator>star</dc:creator>
				<category><![CDATA[Tech Language]]></category>
		<category><![CDATA[ejabberd]]></category>
		<category><![CDATA[google wave]]></category>

		<guid isPermaLink="false">http://liuchangjun.com/?p=165</guid>
		<description><![CDATA[Refer to:  http://www.process-one.net/en/blogs/article/using_google_wave_reference_implementation_with_ejabberd/ Installation steps (#Bourne shell): 1. Erlang installation Download the Erlang source from http://erlang.org/download.html # tar zxvf otp_src_R13B02-1.tar.gz # cd otp_src_R13B02-1 # LANG=C; export LANG # ./configure # make # make install # erl -version Erlang (ASYNC_THREADS,HIPE) (BEAM) emulator version 5.7.3 2. Ejabberd installation Download Ejabberd from http://www.process-one.net/en/ejabberd/downloads. I download &#8220;Linux x86 32-bits [...]]]></description>
			<content:encoded><![CDATA[<p>Refer to:  <a href="http://www.process-one.net/en/blogs/article/using_google_wave_reference_implementation_with_ejabberd/">http://www.process-one.net/en/blogs/article/using_google_wave_reference_implementation_with_ejabberd/</a></p>
<p><span style="color: #ff0000;">Installation steps (#Bourne shell):</span></p>
<p><span style="color: #ff00ff;">1. Erlang installation</span><br />
Download the Erlang source from <a href="http://erlang.org/download.html">http://erlang.org/download.html</a><br />
<code># tar zxvf otp_src_R13B02-1.tar.gz<br />
# cd otp_src_R13B02-1<br />
# LANG=C; export LANG<br />
# ./configure<br />
# make<br />
# make install<br />
# erl -version<br />
Erlang (ASYNC_THREADS,HIPE) (BEAM) emulator version 5.7.3<br />
</code><br />
<span style="color: #ff00ff;"> 2. Ejabberd installation</span><br />
Download Ejabberd from <a href="http://www.process-one.net/en/ejabberd/downloads">http://www.process-one.net/en/ejabberd/downloads</a>. I download &#8220;Linux x86 32-bits Installer&#8221;.<br />
<code><br />
# gunzip ejabberd-2.0.5-linux-x86-installer.bin.gz<br />
# chmod +x ejabberd-2.0.5-linux-x86-installer.bin<br />
# ./ejabberd-2.0.5-linux-x86-installer.bin<br />
# /opt/ejabberd-2.0.5/bin/ejabberdctl start<br />
# /opt/ejabberd-2.0.5/bin/ejabberdctl status<br />
Node ejabberd@localhost is started. Status: started<br />
ejabberd is running<br />
</code><br />
Document: <a href="http://www.process-one.net/en/ejabberd/guide_en">ejabberd Installation and Operation Guide (HTML)</a><br />
Open the Web Admin (http://server:port/admin/). Make sure to enter the full JID as username (in this example: admin1@example.org). The reason that you also need to enter the suffix, is because ejabberd&#8217;s virtual hosting support.</p>
<p>http://xxxx.xxx.xxx.xxx:5280/admin</p>
<p>admin@backupsrv/xxxxxx</p>
<p><span style="color: #ff00ff;">3. Java 6 installation</span><br />
Download JDK 6 from <a href="http://java.sun.com/javase/downloads/widget/jdk6.jsp">http://java.sun.com/javase/downloads/widget/jdk6.jsp</a>. You should set up the environment variables &#8220;JAVA_HOME&#8221; &amp; &#8220;CLASSPATH&#8221;.</p>
<p><span style="color: #ff00ff;">4. Wave protocol installation</span><br />
About HG usage, please refer to <a title="Permanent Link to HG – Mercurial is a free, distributed source control management tool" rel="bookmark" href="../../2009/11/05/hg-control-management-tool/">HG – Mercurial is a free, distributed source control management tool</a><br />
Download Apache Ant from <a href="http://ant.apache.org/bindownload.cgi">http://ant.apache.org/bindownload.cgi</a>. For windows user, you should set up the environment variable &#8220;ANT_HOME&#8221;.<br />
<code><br />
# hg clone https://wave-protocol.googlecode.com/hg/ wave-protocol<br />
# cd wave-protocol<br />
# ant<br />
</code><br />
<span style="color: #ff00ff;">5. Creating the certificates for Google Wave server</span><br />
The process to create those self-signed certificates are described on Google Wave wiki: <a href="http://code.google.com/p/wave-protocol/wiki/Certificates">Certificates</a>. You will get two files, e.g. test.crt and test.key .</p>
<p><span style="color: #ff00ff;">6. Configuring ejabberd</span><br />
To configure ejabberd, simply add a new listener service in the listen section of the configuration file:<br />
<code>{listen,<br />
[<br />
...<br />
{8888, ejabberd_service, [{access, all}, {shaper_rule, fast},<br />
{hosts, ["backupsrv"],<br />
[{password, "secret"}]}<br />
]}<br />
]}.<br />
</code>You can then restart ejabberd. The port 8888 should now be open and ready to accept connections from the Google Wave server.</p>
<p>7. Starting the Google Wave server<br />
<code># cd wave-protocol<br />
# cat start.sh<br />
java -jar dist/fedone-server-0.2.jar --client_frontend_hostname localhost --client_frontend_port 3456 --xmpp_component_name=wave --xmpp_server_hostname=backupsrv --xmpp_server_ip=127.0.0.1 --xmpp_server_port=8888 --xmpp_server_secret secret --xmpp_server_ping="" --certificate_domain backupsrv --certificate_private_key test.key --certificate_files test.cert --waveserver_disable_verification true --waveserver_disable_signer_verification true<br />
</code><br />
Parameters modified:<br />
&#8211;xmpp_server_hostname=backupsrv<br />
&#8211;xmpp_server_port=8888<br />
&#8211;xmpp_server_secret secret<br />
&#8211;certificate_domain backupsrv<br />
&#8211;certificate_files test.cert<br />
&#8211;waveserver_disable_signer_verification true</p>
]]></content:encoded>
			<wfw:commentRss>http://liuchangjun.com/2009/11/06/google-wave-server-ejabberd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
