<?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"
	>

<channel>
	<title>没有声音的房间</title>
	<atom:link href="http://ipbfans.org/feed" rel="self" type="application/rss+xml" />
	<link>http://ipbfans.org</link>
	<description>SilentRoom</description>
	<pubDate>Mon, 18 Aug 2008 09:12:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
			<item>
		<title>让人兴奋的PHP5.3开始alpha了</title>
		<link>http://ipbfans.org/archives/55</link>
		<comments>http://ipbfans.org/archives/55#comments</comments>
		<pubDate>Mon, 18 Aug 2008 09:12:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=55</guid>
		<description><![CDATA[Namespace这个东西终于要正式加入PHP了
以下官方的申明：
[01-Aug-2008]
The PHP development team is proud to announce the first alpha release of the upcoming minor version update of PHP. Windows binaries will be available starting with alpha2 (intermediate snapshots available at snaps.php.net). The new version PHP 5.3 is expected to improve stability and performance as well as add new language syntax and extensions. Several [...]]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/55/feed</wfw:commentRss>
		</item>
		<item>
		<title>适用于PHPWind全文搜索的Sphinx设置</title>
		<link>http://ipbfans.org/archives/53</link>
		<comments>http://ipbfans.org/archives/53#comments</comments>
		<pubDate>Mon, 18 Aug 2008 06:52:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[sphinx]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=53</guid>
		<description><![CDATA[前两天安装好了Sphinx，并简单索引了一个phpwind的主题表来做测试。今天有时间稍微研究了一下phpwind的数据表，大致做了一个适合于phpwind的Sphinx配置文件。
看了看phpwind的搜索程序search.php，发现他的搜索在“搜索帖子范围”这一项里面分了三种：
主题标题
主题标题与主题内容
回复标题与回复内容

再看看phpwind的数据表，按照phpwind的搜索，我们必须在sphinx中为pw_threads,pw_tmsgs,pw_posts三个表分别建立索引。由于我没有大数据量phpwind论坛数据，也就没有办法做那种实际的压力与速度测试，只是在命令行下进行了一些简单的测试，应该说这样配置Sphinx应该没有问题了。
时间问题，只能研究到这里了，下面一个项目如果真的用到phpwind，再继续用sphinx这把刀把phpwind好好宰割一下。
]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/53/feed</wfw:commentRss>
		</item>
		<item>
		<title>Spinx安装与基本设置</title>
		<link>http://ipbfans.org/archives/36</link>
		<comments>http://ipbfans.org/archives/36#comments</comments>
		<pubDate>Fri, 15 Aug 2008 06:14:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[sphinx]]></category>

		<category><![CDATA[全文检索]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=36</guid>
		<description><![CDATA[Sphinx是什么？如果你还不知道，那就放狗吧&#8230;
简单引用一下官方wiki的文章：
Sphinx是一个基于SQL的全文检索引擎，可以结合MySQL,PostgreSQL做全文搜索，它可以提供比数据库本身更专业的搜索功能，使得应用程序更容易实现专业化的全文检索。Sphinx特别为一些脚本语言设计搜索API接口，如PHP,Python,Perl,Ruby等，同时为MySQL也设计了一个存储引擎插件。
Sphinx的特性：

高速索引 (在新款CPU上,近10 MB/秒);
高速搜索 (2-4G的文本量中平均查询速度不到0.1秒);
高可用性 (单CPU上最大可支持100 GB的文本,100M文档);
提供良好的相关性排名
支持分布式搜索;
提供文档摘要生成;
提供从MySQL内部的插件式存储引擎上搜索
支持布尔,短语, 和近义词查询;
支持每个文档多个全文检索域(默认最大32个);
支持每个文档多属性;
支持断词;
支持单字节编码与UTF-8编码;
先下载最新稳定版的源代码：http://www.sphinxsearch.com/downloads/sphinx-0.9.8.tar.gz
参照官方文档，貌似这个东西最好和mysql5.1级别的mysql进行搭配，没办法，再去下载一个mysql5.1.x的源代码吧：http://dev.mysql.com
假设下载的源代码都保存在/tmp，先安装支持sphinx引擎的mysql：
tar xvf mysql-5.1.26-rc.tar.gz
tar xvf sphinx-0.9.8.tar.gz
拷贝sphinx的mysql引擎到mysql源代码：
cp -R ./sphinx-0.9.8/mysqlse ./mysql-5.1.26/storage/sphinx
重建mysql的configure文件
cd mysql-5.1.26-rc
sh BUILD/autorun.sh
编译过程需要加一条sphinx的参数，其他参数就与平时编译mysql一样。比如我的：
./configure &#8211;prefix=/usr/local/mysql &#8211;with-extra-charsets=all &#8211;with-big-tables &#8211;with-plugins=sphinx
make
make install
mysql编译的其他细节就不再多写了&#8230;安装过了以后进入mysql命令行，运行show engines，看是不是有一个叫sphinx的engine，有的话就表示sphinxSE（mysql的sphinx引擎）安装正常了 。
然后编译Sphinx，进入sphinx源代码目录：
ldconfig /usr/local/mysql/lib/mysql
ldconfig /usr/local/mysql/include/mysql
./configure &#8211;prefix=/usr/local/sphinx &#8211;with-mysql=/usr/local/mysql
make
make install
到现在为止，兵器我们已经造好，下面就是怎么运用了~时间问题，一下子也没有仔细研究，就拿PHPWind当了试验品了。
PW的主题表数据结构为：
CREATE TABLE IF NOT EXISTS `pw_threads` (
  `tid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `fid` smallint(6) unsigned NOT NULL DEFAULT &#8216;0&#8242;,
  `icon` tinyint(2) NOT NULL DEFAULT [...]]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/36/feed</wfw:commentRss>
		</item>
		<item>
		<title>如果这是真的</title>
		<link>http://ipbfans.org/archives/33</link>
		<comments>http://ipbfans.org/archives/33#comments</comments>
		<pubDate>Tue, 12 Aug 2008 04:37:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[国足]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=33</guid>
		<description><![CDATA[那我还是第一次见百度如此准确搜索出来大家想要的结果：

]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/33/feed</wfw:commentRss>
		</item>
		<item>
		<title>终于结束了</title>
		<link>http://ipbfans.org/archives/27</link>
		<comments>http://ipbfans.org/archives/27#comments</comments>
		<pubDate>Mon, 04 Aug 2008 08:20:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[圣斗士星矢]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=27</guid>
		<description><![CDATA[ 
终于结束了&#8230;
大约20年前，第一次了解到《圣斗士星矢》是在小学学校门口卖不干胶的路边摊上，那个时候认的字还不多，连“矢”都还不会念&#8230;
那个时候身边的小朋友们都特喜欢看这个片子，每天晚上一集。下午放学以后我都是早早的回家做完家庭作业，吃过晚饭，然后就可以安安静静的看了。
渐渐的，小朋友们也看出了这个片子的套路：不管怎么打，五小强都不会死，小宇宙总会有无限爆发的可能。骂归骂，每次放的时候还是准点的看。
《圣斗士星矢》对我们这一代人来说，已经不单单是一部动画片那么简单了，他是我们这一代人童年的一个缩影，看这个片子的时候，我们的心情仿佛又回到了孩童时代。
]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/27/feed</wfw:commentRss>
		</item>
		<item>
		<title>忙碌的7月终于要过去了</title>
		<link>http://ipbfans.org/archives/24</link>
		<comments>http://ipbfans.org/archives/24#comments</comments>
		<pubDate>Fri, 25 Jul 2008 06:45:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[pp]]></category>

		<category><![CDATA[忙]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=24</guid>
		<description><![CDATA[七月份真是一个忙碌的时候，俗事缠身。不过家主婆怀孕了这个事情还是让我高兴了好一阵，当然，也觉得自己肩上的担子更重了。
这一个月来我晒黑了不少，都是学车惹得祸。这种大热天，基本上是去一次，黑一圈，洗澡的时候都觉得自己身上的五颜六色的，这边一块白，那边一块黑。还是值得的，至少我以后可以光明正大的开汽车了。
发张pp：
]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/24/feed</wfw:commentRss>
		</item>
		<item>
		<title>CentOS下Nginx配置笔记（二）PHP以及虚拟主机配置</title>
		<link>http://ipbfans.org/archives/21</link>
		<comments>http://ipbfans.org/archives/21#comments</comments>
		<pubDate>Mon, 23 Jun 2008 07:14:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=21</guid>
		<description><![CDATA[安装好了Nginx，下面就要考虑详细配置了。我需要把我原来运行在apache上的若干个虚拟主机以及ssl站点都迁移到Nginx上来。
在这之前，你可能需要调整你的nginx.conf这个配置文件，修改一下里面的一些必备参数，比如nginx的运行用户等等。
我没有使用默认的配置，而是自己重新写了一份，仅供参考：

user httpd httpd;
&#160;
worker_processes 10;
&#160;
pid /usr/local/nginx/nginx.pid;
&#160;
worker_rlimit_nofile 51200;
&#160;
events
{
 use epoll;
 worker_connections 51200;
}
&#160;
http
{
 include mime.types;
 default_type application/octet-stream;
 log_format main '$remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for'
 tcp_nopush on;
 tcp_nodelay off;
&#160;
 keepalive_timeout 60;
 client_header_timeout 3m;
 client_body_timeout 3m;
 send_timeout 3m;
 connection_pool_size 256;
 client_header_buffer_size 1k;
 large_client_header_buffers 4 2k;
 request_pool_size 4k;
 output_buffers 4 32k;
 postpone_output 1460;
 client_max_body_size 10m;
 client_body_buffer_size 256k;
 client_body_temp_path /dev/shm/client_body_temp;
 proxy_temp_path /usr/local/nginx/proxy_temp;
 fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
&#160;
 gzip on;
 gzip_http_version 1.0;
 gzip_comp_level 2;
 gzip_proxied any;
 gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
 gzip_min_length 1100;
 gzip_buffers 4 8k;
&#160;
 #和apache类似，Nginx也可以使用include指令包含一系列的配置文件，我将虚拟主机的配置统一放在了
 #/usr/local/nginx/conf/vhosts目录下
 include [...]]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/21/feed</wfw:commentRss>
		</item>
		<item>
		<title>CentOS下Nginx配置笔记（一）安装准备篇</title>
		<link>http://ipbfans.org/archives/20</link>
		<comments>http://ipbfans.org/archives/20#comments</comments>
		<pubDate>Mon, 23 Jun 2008 06:38:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=20</guid>
		<description><![CDATA[最近都流行这个轻量级的www服务器了，我也赶了一把流行，把服务器上的apache2换了下来。
关于这个东西的具体介绍嘛，请到官网去看吧。
我的配置工作就是将原来服务器上apache2负责的东西全部转换到Nginx上来，可能跟很多人的需求也差不多，所以写出来和大家分享一下。

有几个准备工作需要做一下
1、下载最新的Nginx。
2、编译支持fastcgi的PHP，就是在编译php的时候加上 &#8211;enable-fastcgi 和 &#8211;enable-force-cgi-redirect，这个不是重点，就不再细说了。
3、下载lighttpd的源代码并编译，后面我们要使用lighttpd的spawn-fcgi这个工具来运行php的fastcgi的守护进程。类似的工具在zeus里面也有提供，至于具体用什么倒不是很绝对。
我们开始编译Nginx，如果你经常编译php、apache之类的软件，可能会对nginx的编译参数有点不习惯，至少我开始就走了一些弯路。
先用nginx的configure脚本看看都有些什么编译参数可选：
./configure --help &#124; more
我的apache原来安装了这些模块：mod_so, mod_rewrite, mod_ssl，服务器上还要运行perl的cgi程序，运行apache的用户和组都是httpd，参照原来的功能，我使用了如下编译参数：
./configure --prefix=/usr/local/nginx \
--user=httpd \
--group=httpd \
--with-http_ssl_module \
--with-http_perl_module \
其中有几项要注意的：
&#8211;with-pcre Nginx的rewrite功能需要使用pcre库才能工作，而Nginx的编译参数里面的这个选项并不是像常规的那样指定pcre的安装目录，而是指定pcre源代码的目录。
也就是说，如果你的系统路径下已经可以找到pcre的lib和include文件，这个选项可以不指定了。如果你的系统没有安装pcre，那么就指定该选项，Nginx会在编译的时候从你指定的这个目录把pcre编译进来。
&#8211;with-openssl
&#8211;with-zlib
&#8211;with-md5
&#8211;with-sha1
这几个选项跟pcre一样，指定的是源代码目录，不是这些类库的安装目录。
我一开始没有看清楚，就按照常规思路去指定目录，走了很多弯路&#8230;
编译安装结束以后，把lighttpd的spawn-fcgi拷贝到你觉得舒服的目录，我这里直接拷贝到了/usr/local/nginx/sbin下，然后lighttpd的安装目录就可以直接删除了。
为了更好的控制php fastcgi的运行，我写了个启动脚本，你可以把这个脚本放到/etc/init.d里面，并把php fastcgi注册成为CentOS的服务。
http://ipbfans.org/docs/conf_file/php-fcgi
在使用这个脚本之前，你需要根据自己的实际情况修改里面几个文件的路径，与php fastcgi监听的端口。
chkconfig --add php-fcgi
chkconfig --level 2345 php-fcgi on
以后php fastcgi的进程就会随着系统的启动而启动了，你也可以方便的使用service指令来控制php fastcgi的运行与关闭。
同样，我还写了一个脚本来控制Nginx的启动与停止，你也可以拿来照用，改一下里面的路径即可。
http://ipbfans.org/docs/conf_file/nginx
]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/20/feed</wfw:commentRss>
		</item>
		<item>
		<title>忙忙忙</title>
		<link>http://ipbfans.org/archives/5</link>
		<comments>http://ipbfans.org/archives/5#comments</comments>
		<pubDate>Mon, 02 Jun 2008 13:37:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[忙]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=5</guid>
		<description><![CDATA[这人哪，闲的适合睡觉睡到腿软，忙的时候床是什么样子都要忘了。
下午的那一整狂风暴雨，让天气凉了下来，不错。
夜晚，继续被蚊子狂咬。
睡前，想不起这一天到底干了些什么了&#8230;
]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/5/feed</wfw:commentRss>
		</item>
		<item>
		<title>夜间杂记</title>
		<link>http://ipbfans.org/archives/4</link>
		<comments>http://ipbfans.org/archives/4#comments</comments>
		<pubDate>Sat, 31 May 2008 03:00:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://ipbfans.org/?p=4</guid>
		<description><![CDATA[回苏州已经要三个月了),北京的那一切仿佛还历历在目。当年离开南京的时候,曾认为这辈子一定会再回来。看样子时间真的会让一个人忘了疼，久了，慢慢的，一点点。也没什么不好，美好的回忆让她定格，总强过我们自作多情的去狗尾续貂。

 
一直觉得我得生活是清闲的，上班轻松加愉快，回家愉快加轻松，可是自己静下来真正的想些事情的时间越来越少。电脑有意无意的已经占据了我这类人太多的生活份额，现代人对机械电子越来越依赖，常常忘了自己还是大自然的一份子。在北京的日子，健身房和北京的胡同大街几乎成了我业余生活的全部。其实我也在反思，生活中有那么多美好的东西，如果你看不到，只因你的天眼没有开。北京的生活我觉得很快乐，除了要跟亲爱的两地分居，一切看上去都那么好。现实的残酷之处就是让你心有不甘的选择一些事情，而北京的生活，此时也跟我看待2003夏天的南京一样，可以在我的心里盖一个属于它的印章。
 
苏州或许是我下半辈子工作生活的地方，虽然我对这个地方的人和事有这样那样的诸多不适。有些人常常会怨天尤人，我倒觉得凡事必有因果报应，老天对每个人是公平的，你自己选择的路只有自己走完。
对我来说，一切几乎从头开始，有时候想就这么安逸的平庸一世也挺好，更多的时候还是自己被自己的重量压得够呛。其实人生道理谁又不明白，难就难在想得开。
 
五月三十日晚十一点，用手机记录了此时我的心情。看着身边的女人安静的睡着了，我想我也可以满足的睡下，否则明天就无法面对玉帝给我们的功课了。
]]></description>
		<wfw:commentRss>http://ipbfans.org/archives/4/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
