<?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; 开源软件</title>
	<atom:link href="http://jk.aiwaly.com/wp/category/it-technology/opensource-software/feed" rel="self" type="application/rss+xml" />
	<link>http://jk.aiwaly.com</link>
	<description>不断探索,追求卓越,做快乐自己</description>
	<lastBuildDate>Wed, 28 Dec 2011 08:29:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>centos5上php53的mcrypt模块</title>
		<link>http://jk.aiwaly.com/wp/centos-5-php53-mcrypt.html</link>
		<comments>http://jk.aiwaly.com/wp/centos-5-php53-mcrypt.html#comments</comments>
		<pubDate>Thu, 01 Sep 2011 08:05:38 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[网站运维]]></category>

		<guid isPermaLink="false">http://jacky.aiwaly.com/?p=3093</guid>
		<description><![CDATA[centos 的  php53-mcrypt   安装包  yum方式无法找到，所以按如下方式可以编译所需的模块。

wget http://museum.php.net/php5/php-5.3.3.tar.gz
yum install php53-devel
yum install libmcrypt-devel
cd /usr/src/
tar zxvf /php-5.3.3.tar.gz
cd php-5.3.3/ext/mcrypt/
phpize
aclocal
./configure
make
make install
Add following line to /etc/php.d/mcrypt.ini
extension=mcrypt.so
Restart web server
php -m
你可以看到 mcrypt  模块已经添加
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/centos-5-php53-mcrypt.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ngnix出现高危漏洞,记得防范</title>
		<link>http://jk.aiwaly.com/wp/possible-arbitrary-code-execution-with-null-bytes-php-and-old-versions-of-nginx.html</link>
		<comments>http://jk.aiwaly.com/wp/possible-arbitrary-code-execution-with-null-bytes-php-and-old-versions-of-nginx.html#comments</comments>
		<pubDate>Fri, 26 Aug 2011 01:28:10 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[网站运维]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3091</guid>
		<description><![CDATA[
Ngnix出现漏洞，可远程执行代码：Ngnix在遇到%00空字节时与后端FastCGI处理不一致，导致可以在图片中嵌入PHP代码后通过访问xxx.jpg%00.php来执行其中的代码。影响版本：0.5.*, 0.6.*, 0.7 &#60;= 0.7.65, 0.8 &#60;= 0.8.37。请各位同学检查服务器nginx版本，尽快升级！!
补救措施在上传目录增加如下配置。
# This location block will prevent an attacker from exploiting
# this vulnerability using files in the &#8216;uploads&#8217; or &#8216;other_uploads&#8217; directory
location ~ ^/(uploads&#124;other_uploads)/.*.php$
{
deny all;
}
可以参见如下资料
https://nealpoole.com/blog/2011/07/possible-arbitrary-code-execution-with-null-bytes-php-and-old-versions-of-nginx/
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/possible-arbitrary-code-execution-with-null-bytes-php-and-old-versions-of-nginx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>国内快速debian安装源，最新6.0版</title>
		<link>http://jk.aiwaly.com/wp/debian-6-src.html</link>
		<comments>http://jk.aiwaly.com/wp/debian-6-src.html#comments</comments>
		<pubDate>Wed, 17 Aug 2011 06:31:05 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[服务器管理]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3088</guid>
		<description><![CDATA[国内快速debian源 sources.list下载-最新6.0版（squeeze）更新

# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# 主源
# 必须，一般的包都从此获取。
# 香港主站
deb http://ftp.hk.debian.org/debian squeeze main contrib non-free
deb-src http://ftp.hk.debian.org/debian squeeze main contrib non-free
# 网易镜像
deb http://mirrors.163.com/debian squeeze main contrib non-free
deb-src http://mirrors.163.com/debian squeeze main contrib non-free
# 台湾主站
deb http://ftp.tw.debian.org/debian squeeze main contrib non-free
deb-src http://ftp.tw.debian.org/debian squeeze main contrib non-free
# 搜狐镜像
deb http://mirrors.sohu.com/debian squeeze main contrib non-free
deb-src http://mirrors.sohu.com/debian squeeze main contrib non-free
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# 计划更新
# 通常不必，发布小版本之前的测试库。该库包括所有的安全更新，有此则无需再设置安全
# 更新源。
# 香港主站
deb http://ftp.hk.debian.org/debian [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/debian-6-src.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mantis上传附件问题</title>
		<link>http://jk.aiwaly.com/wp/mantis-upload-question.html</link>
		<comments>http://jk.aiwaly.com/wp/mantis-upload-question.html#comments</comments>
		<pubDate>Thu, 04 Aug 2011 08:33:41 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[question (问题)]]></category>
		<category><![CDATA[开源软件]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3058</guid>
		<description><![CDATA[
1、数据转移功能：
在未作任何改动的情况下，系统是默认将附件保存到数据库，可是当想直接获得这些文件该怎么办呢？其实mantis系统提供这么一个功能，将放在数据库的附件文件转移到磁盘里。你只需访问：http://youserver/mantis/admin/system_utils.php， 里面就会有一个按钮-Move attachment to Disk，点击他就ok了，当然必须确认你的config文件里，upload  method是disk，否则也会出错的。这样数据库中的附件就会被导出来，放到mantis根目录下，你可以做一个数据保存工作了，实在是一个不错的功 能。
配置文件上传
主要配置项：     在mantis下新增upload文件夹
$g_allow_file_upload  = ON;
$g_file_upload_method = DISK;
注：
a)       在Mantis目录下新建目录如 upload  ，再在mantis建立的项目中把文件上传路径设置为“upload”（通过Web方式）。这样上传的文件就会存放在upload目录中。 b)       上传文件的大小受到 Mantis 和 PHP  的双重限制，需要修改：/webapps/mantis/config_inc.php 中 $g_max_file_size =  100000000; # 100 MB
/usr/local/lib/php.ini中upload_max_filesize = 100M 和 post_max_size = 100M
c)       给用于存储上传文件的目录增加可写权限。
2、附件浏览功能：
比如，在提交一个issue的时候，有时候会有截图提交附件情况，这是有人会提出来，我想直接看到错误截图而不想自己下载后再看，这也是需要设置就能实现的。但是这个功能只是针对bmp,
png, gif,
jpg格式的图片文件而言，当然提交的doc文件就不再之列了。处理得方法很简单，只需将config文件中的$g_preview_attachments_inline_max_size
进行设置。当将这个设置为0的情况，那么查看issue的时候是永远不会出现附件贴图的，但是 如果你将这个设置为一个足够大的尺寸，那么就会在issue里直接出现图片，这个数值是以字节计算，如果图片上传为32，210字节，则你 把$g_preview_attachments_inline_max_size=32211，而且任何小于这个字节大小的bmp,
png, gif, jpg格式的图片文件直接显示了，

]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/mantis-upload-question.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DotProject数据库乱码处理</title>
		<link>http://jk.aiwaly.com/wp/dotproject-mysql-charset.html</link>
		<comments>http://jk.aiwaly.com/wp/dotproject-mysql-charset.html#comments</comments>
		<pubDate>Thu, 28 Jul 2011 01:10:15 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[开源软件]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3053</guid>
		<description><![CDATA[由于项目需要，最近在需找一个比较顺手的ProjectManagement工具，但因为硬件限制，只能基于LAMP平台，对比了几个产品后，最后敲定DotProject。
但很郁闷的是，在DotProject中输入的部分中文存入数据库后会变成乱码，解决的方法也很简单，SET NAMES UTF8：

编辑includes/db_adodb.php，找到下面这行代码：


   $ADODB_FETCH_MODE=ADODB_FETCH_BOTH;


在其之前添加一行：


   $db-&#62;Execute("SET NAMES UTF8");

还有一种方法就是在 mysql的配置my.ini 文件里 增加字符集设置

[mysqld]
init_connect='SET NAMES utf8'


]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/dotproject-mysql-charset.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>submin 最新版本 Centos 5.5安装攻略</title>
		<link>http://jk.aiwaly.com/wp/submin-on-centos-5-5.html</link>
		<comments>http://jk.aiwaly.com/wp/submin-on-centos-5-5.html#comments</comments>
		<pubDate>Wed, 27 Jul 2011 06:01:01 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3045</guid>
		<description><![CDATA[1.下载
mkdir -p /usr/local/software
cd /usr/local/software
wget http://supermind.nl/submin/current/submin-1.2.10.tar.gz
2.解压缩
tar zxvf submin-1.2.10.tar.gz
cd bin
dir
python  /install.py /usr/local           (/usr/local是默认的安装目录，可根据需要更改，不
过如果更改，后面的目录都需要做相应更改)
/usr/local/bin/submin-admin create default
3. 按照提示，将一个生成的额外配置文件，加到httpd.conf里。注意加上前缀Include
# Load config files from the config directory &#8220;/etc/httpd/conf.d&#8221;.
#
Include conf.d/*.conf
Include /etc/submin/default-apache-cgi.conf
提示文件：
Apache files created:
/etc/submin/default-apache-wsgi.conf
/etc/submin/default-apache-cgi.conf（这个最好，上面那个老是重启httpd时报错）
Please include one of these in your apache config. Also make sure that
you have mod_dav_svn and mod_authz_svn enabled.
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/submin-on-centos-5-5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress模板标签（一看就明白）</title>
		<link>http://jk.aiwaly.com/wp/wordpress-template-tag.html</link>
		<comments>http://jk.aiwaly.com/wp/wordpress-template-tag.html#comments</comments>
		<pubDate>Wed, 27 Jul 2011 05:59:24 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>

		<guid isPermaLink="false">http://jk.aiwaly.com/?p=3042</guid>
		<description><![CDATA[收集整理网络当中常用Wordpress模板标签，集合Wordpress模板标签基本全部，Wordpress模板标签旁有中文说明，简单易懂。
很多时候修改Wordpress模板标签的时候不知道什么意思，只能一个个的找觉得很不方便，专门从网络上找到这个来，以后要修改的时候就看看，方便自己使用。
WordPress模板基本文件


style.css 样式表文件
index.php 主页文件
single.php 日志单页文件
page.php 页面文件
archvie.php 分类和日期存档页文件
searchform.php 搜索表单文件
search.php 搜索页面文件
comments.php 留言区域文件(包括留言列表和留言框)
404.php 404错误页面
header.php 网页头部文件
sidebar.php 网页侧边栏文件
footer.php 网页底部文件


WordPress Header头部 PHP代码
注: 也就是位于&#60;head&#62;和&#60;/head&#62;之间的PHP代码


&#60;?php bloginfo(’name’); ?&#62; 网站标题
&#60;?php wp_title(); ?&#62; 日志或页面标题
&#60;?php bloginfo(’stylesheet_url’); ?&#62; WordPress主题样式表文件style.css的相对地址
&#60;?php bloginfo(’pingback_url’); ?&#62; WordPress博客的Pingback地址
&#60;?php bloginfo(’template_url’); ?&#62; WordPress主题文件的相对地址
&#60;?php bloginfo(’version’); ?&#62; 博客的Wordpress版本
&#60;?php bloginfo(’atom_url’); ?&#62; WordPress博客的Atom地址
&#60;?php bloginfo(’rss2_url’); ?&#62; WordPress博客的RSS2地址
&#60;?php bloginfo(’url’); ?&#62; WordPress博客的绝对地址
&#60;?php bloginfo(’name’); ?&#62; WordPress博客的名称
&#60;?php bloginfo(’html_type’); ?&#62; 网站的HTML版本
&#60;?php bloginfo(’charset’); ?&#62; 网站的字符编码格式


WordPress 主体模板 PHP代码


&#60;?php the_content(); [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/wordpress-template-tag.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trac——发送邮件通知</title>
		<link>http://jk.aiwaly.com/wp/trac-mail.html</link>
		<comments>http://jk.aiwaly.com/wp/trac-mail.html#comments</comments>
		<pubDate>Tue, 26 Jul 2011 10:06:09 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[question (问题)]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=3035</guid>
		<description><![CDATA[a1.找到trac.ini文件打开&#8221;&#62;.找到trac.ini文件，打开
a2.找到notification代码段修改以下字段的值之内为注释&#8221;&#62;2.找到notification代码段，修改以下字段的值（!!之内为注释）
always_notify_owner = true
smtp_always_cc = hann@****.cn!!你的邮件列表名字!!
smtp_password = ********!!登陆邮件服务器的密码!!
smtp_enabled = yes
smtp_replyto = !!回复给谁？通常是管理员或留空!!
always_notify_reporter = yes
smtp_server = mail.****.cn !!邮件服务器名字!!
smtp_from = hann@***.cn!!邮件以谁的身份发出？通常是trac管理员，在本次测试中，我自己给自己发送邮件!!
smtp_user = hann@***.cn!!登录邮件服务器的用户名!! 应该为用户名：hann而不是hann@***.cn
3.如果需要调试，则找到logging代码段，修改其中字段如下
log_file = trac.log
log_level = DEBUG
log_type = file
注意：1.调试完成后，可以修改logging代码段中的相应字段，停止记录调试信息
2.生成一个Ticket时,也需要
3.自动发送邮件的格式非常简单，如下所示，这是我在Trac页面中添加了一个Ticket之后，Trac自动给我邮箱发送的邮件
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/trac-mail.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让trac 0.12 开启国际化支持,让其显示中文</title>
		<link>http://jk.aiwaly.com/wp/trac-0-12-cn.html</link>
		<comments>http://jk.aiwaly.com/wp/trac-0-12-cn.html#comments</comments>
		<pubDate>Tue, 26 Jul 2011 10:04:22 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=3033</guid>
		<description><![CDATA[

下载trac 0.12,解压
英文好的看这里就行了:http://trac.edgewall.org/wiki/TracL10N
1. 安装babel
sudo easy_install babel
或者
sudo easy_install babel
2. 生成pot
python setup.py extract_messages
3. 编译po(这里可以指定编译为哪种语言,不指定就是全部)
python setup.py update_catalog
4. 检查你要的语言装了没
python setup.py update_catalog -l zh_CN
5. 编译为mo
setup.py compile_catalog -f
6. 安装trac
python setup.py install
这时用中文浏览器访问,显示的就是中文了



]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/trac-0-12-cn.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SVN + Trac + Apache 完整安裝攻略</title>
		<link>http://jk.aiwaly.com/wp/svn-trac-apache.html</link>
		<comments>http://jk.aiwaly.com/wp/svn-trac-apache.html#comments</comments>
		<pubDate>Thu, 21 Jul 2011 03:33:11 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=3027</guid>
		<description><![CDATA[SVN + Trac + Apache 完整安裝攻略，而原本在 SVN 所欠缺的用戶及權限管理介面，也都可以由 Trac 的外掛程式來搞定，可謂兩全其美。
本文章適合熟悉 SVN 但沒用個任何線上專案管理的人做為參考。
請注意，本人使用的 Linux 是 CentOS 5.x，RHEL 5.x 也適用。
1. 伺服器環境及設置
在伺服器上，我的設置如下:

SVN 相關設定檔: /etc/svn/
SVN 檔案庫的根目錄: /var/svn/ (裡面可以存放多個檔案庫)
Trac 專案的根目錄: /var/trac/ (裡面可以存放多個專案)
SVN 用戶的帳號密碼檔: /etc/svn/account
SVN 用戶的權限檔: /etc/svn/authz
伺服器 IP: 192.168.1.10
SVN 的存取網址: http://192.168.1.10/svn
Trac 的存取網址: http://192.168.1.10/trac

所以要先建立這些目錄及檔案:
mkdir /etc/svn
mkdir /var/svn
mkdir /var/trac
touch /etc/svn/account
touch /etc/svn/authz
chown -R apache /etc/svn
因為 “account” 及 “authz” 這兩個檔案都需要由 Trac 來管理，所以都要把擁有者改為 apache (包含 /etc/svn 這個目錄)
2. [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/svn-trac-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

