<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>刀刀 &#124; Python,Nginx,Linux,FreeBSD</title>
	<link>http://tech.foolpig.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 02:19:24 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>让vim显示空格,及tab字符 vim 多行注释</title>
		<description>1、显示 TAB 键   文件中有 TAB 键的时候，你是看不见的。要把它显示出来：   :set list   现在 TAB 键显示为 ^I，而 $显示在每行的结尾，以便你能找到可能会被你忽略的空白字符在哪里。   这样做的一个缺点是在有很多 TAB 的时候看起来很丑。如果你使用一个有颜色的终端，或者使用 GUI 模式，Vim 可以用高亮显示空格和TAB。     使用 'listchars' 选项：   :set listchars=tab:&#62;-,trail:-   现在，TAB会被显示成 &#34;&#62;---&#34; 而行尾多余的空白字符显示成 &#34;-&#34;。看起来好多了，是吧？   ------------------------------------------------------------------------------------   2、让vim显示行尾的空格 ...</description>
		<link>http://tech.foolpig.com/2010/09/02/vim-tab/</link>
			</item>
	<item>
		<title>Python 2.6+Django 1.2.1 + Nginx</title>
		<description>&#160;&#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160; Python 2.6.5 + Django 1.2.1 + Nginx Installation && Configuration  &#160;&#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; &#160;&#160; fastcgi+django,fastcgi+php         一、install   ...</description>
		<link>http://tech.foolpig.com/2010/08/30/python-django-nginx/</link>
			</item>
	<item>
		<title>升级nginx，查看已经安装的模块，并隐藏或者修改版本号</title>
		<description>升级，查看已经安装的模块


[root@mail ~]# /opt/nginx/sbin/nginx -V
nginx version: nginx/0.5.34
built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3)
configure arguments: --prefix=/opt/nginx --sbin-path=/opt/nginx/sbin/nginx --conf-path=/opt/nginx/conf/nginx.conf --pid-path=/var/run/nginx/nginx.pid 
--error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/opt/nginx/temp/proxy 
--http-fastcgi-temp-path=/opt/nginx/temp/fcgi --lock-path=/var/run/nginx/nginx.lock --with-http_ssl_module --with-http_sub_module 
--with-http_stub_status_module --with-debug


修改版本号：


[root@mail nginx-0.8.39]# vi src/core/nginx.h

#define nginx_version         8039
#define NGINX_VERSION      "0.8.39"
#define NGINX_VER   ...</description>
		<link>http://tech.foolpig.com/2010/06/01/nginx-version/</link>
			</item>
	<item>
		<title>linux下Rsync同步镜像服务器配置教程</title>
		<description>主服务器：192.168.0.220 (CentOS 4.4) 从服务器：192.168.0.248 (CentOS 5) ============================== 1&#62; 在两台主机上分别安装rsync ======================  默认一般都是安装了的 [root@office ~]# rpm -qa&#124;grep rsync
rsync-2.6.3-1

如果没有安装，使用yum install rsync来进行安装即可； 正常情况很快就安装完毕,rsync 服务器架设比较简单，可我们安装好rsync后，并没有发现配置文件以及rsync服务器启动程序，因为每个管理员可能对rsync 用途不一样，所以一般的发行版只是安装好软件就完事了，让管理员来根据自己的用途和方向来自己架设rsync服务器。 
============================== 2&#62; rsync服务器的配置 ============================== 
在/etc目录下创建一个rsyncd的目录，我们用来存放rsyncd.conf，rsyncd.secrets和rsyncd.motd文件； rsyncd.conf 是rsync服务器的主配置文件； rsyncd.secrets是用户密码文件； rsyncd.motd配置一些服务欢迎及说明信息； 
a&#62;创建修改 rsyncd.conf 
rsyncd.conf 是rsync服务器主要配置文件，我们来个简单的示例；比如我们要备份服务器上的 /tmp/目录 ，在/tmp/ 中，我想把test目录和test.php文件排除在外； [root@office ~]# cd /etc
[root@office ~]# mkdir rsyncd
[root@office ~]# cd rsyncd
[root@office ~]# vi ...</description>
		<link>http://tech.foolpig.com/2010/04/29/linux-rsync/</link>
			</item>
	<item>
		<title>在Windows Live Writer中设置代码显示插件</title>
		<description>&#160;&#160;&#160;&#160;&#160; 我一直用Windows Live Writer写博客，感觉很不错，唯一有点让我很不方便的时，如果我要在日志中放入代码，让代码按一定的格式显示，就很不方便了。  &#160;&#160;&#160;&#160;&#160; 其实对于WordPress显示代码有很多的插件，不过这些插件只能在线写作时用到，如果放在Windows Live Writer中使用的话，要切换到源代码模式下手写代码进去才行，还是不方便，哪么，有没有让我们像编辑图片一样方便的来编辑代码了？  &#160;&#160;&#160;&#160;&#160; 一定是有的。我这里有使用Wordpress的WP-Syntax代码高亮插件及网友自己开发的一个Live Writer插件来做设置。  &#160;&#160;&#160;&#160;&#160; 第一步：下载WP-Syntax插件，并在你的WordPress后台安装；    &#160;&#160;&#160;&#160;&#160; 下载地址：http://wordpress.org/extend/plugins/wp-syntax/  &#160;&#160;&#160;&#160;&#160; 第二步：下载网友开发的插件并做安装；    &#160;&#160;&#160;&#160;&#160; 下载地址：http://www.blogjava.net/Files/wintys/WintyCodeAreaWLWPluginSetup.zip  &#160;&#160;&#160;&#160;&#160; 第三步：在Windows Live Writer 中配置上面第二步安装的插件：    &#160;&#160;&#160;&#160;&#160; 点击：工具-&#62;选项-&#62;插件-&#62;启用WintyCodeArea    &#160;&#160;&#160;&#160;&#160; 再点击选项如下进行设置：如我经常的插件Java代码，所以就lang=”Java”，你可以把这个换行你经常插入的代码语言。  &#160;&#160;&#160;&#160;&#160; 可以支持很多的lang，请参考 ，我常用的是bash，python，php等  ...</description>
		<link>http://tech.foolpig.com/2010/04/29/wlw/</link>
			</item>
</channel>
</rss>
