<?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>Learning together &#187; 代码</title>
	<atom:link href="http://www.freeopens.com/tag/%e4%bb%a3%e7%a0%81/feed" rel="self" type="application/rss+xml" />
	<link>http://www.freeopens.com</link>
	<description>Learning together with open source fans. QQ群：8021887</description>
	<lastBuildDate>Fri, 06 Aug 2010 02:12:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>vsftpd官方faq翻译(中文版)+常见FTP错误代码</title>
		<link>http://www.freeopens.com/2010_02_712.html</link>
		<comments>http://www.freeopens.com/2010_02_712.html#comments</comments>
		<pubDate>Sun, 21 Feb 2010 15:27:52 +0000</pubDate>
		<dc:creator>羽飞</dc:creator>
				<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.freeopens.com/2010_02_712.html</guid>
		<description><![CDATA[vsftpd官方faq 官方faq地址： ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.0.3/FAQ 这里也有，vsftpdrocks.org是一个很棒的关于vsftpd安装和配置的网站 Q1) 我能把用户限制在他的家(home)目录里吗？ A) 能，设置chroot_local_user=YES就行了。 Q2) 为什么设置了chroot_local_user=YES后，符号链接(symlink)就不起作用了呢？ A) 这是chroot()这种安全机制如何工作的结果。可选地，看一下硬连接(hard links)，或者，你用的是“现代的”Linux，看一下强大的&#34;mount &#8211;bind&#34;命令。 Q3) vsftpd支持限制用户连接数吗？ A1) 是的，间接地。vsftpd是一个基于inetd的服务。如果你使用流行的xinetd，它会支持per-service per-IP的连接限制。&#34;EXAMPLE&#34;目录里有这样的一个例子。 A2) 如果你以&#34;standalone&#34;方式运行vsftpd(方法是设置listen=YES)，你可以研究一下max_clients=10这样的设置。 Q4) 求助！我得到了&#34;refusing to run with writable anonymous root&#34;错误信息。 A) vsftpd是不允许“危险(不安全)”的配置的。出现这个错误信息的原因通常是ftp的家(home)目录的属主权限不正确。家(home)目录的属主不应该是ftp用户自己，而且ftp用户也不能有写的权限。解决的方法是: chown root ~ftp; chmod -w ~ftp Q5) 求助！我得到了&#34;str_getpwnam&#34;错误信息。 A) 最有可能的原因是在你的系统中不存在那个被配置成&#8217;nopriv_user&#8217;的用户(一般是 &#8216;nobody&#8217;) 。vsftpd需要通过它以最低的权限运行。 Q6) 求助！本地用户无法登录。 A) 有几种可能的问题导致无法登录。 A1) 默认情况下，vsftpd只允许匿名用户(anonymous)登录。在你的/etc/vsftpd.conf配置文件中加入local_enable=YES就可以让本地用户登录了。 A2) vsftpd需要与PAM联系 (运行&#34;ldd vsftpd&#34;检查结果中有没有libpam可以确定这个). 如果vsftpd需要PAM支持, 你必须为vsftpd服务准备一个PAM文件. [...]]]></description>
		<wfw:commentRss>http://www.freeopens.com/2010_02_712.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不用插件让代码高亮显示</title>
		<link>http://www.freeopens.com/2010_01_321.html</link>
		<comments>http://www.freeopens.com/2010_01_321.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 04:08:00 +0000</pubDate>
		<dc:creator>羽飞</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[高亮]]></category>

		<guid isPermaLink="false">http://www.freeopens.com/2010_01_321.html</guid>
		<description><![CDATA[我们写文章的时候，需要插入代码，通常这些代码都是和其它文本一个颜色，容易产生混淆。为了避免这种情况发生，就产生了代码高亮插件。但插件太多终纠不好，能不能不用代码高亮插件就能使文本高亮呢？ 下面就看我是如何实现的。 其实原理很简单，把代码加入一个span里面，然后在CSS里面定义一下这个span的样式，就行了。 具体操作如下： 修改你对应主题里面的style.css文件，找到这一行： .s-hui b.top b,.s-hui b.bottom b{background:#f4f4f4;} 在下面加入以下代码： .mycode{position:relative;width:585px;height:auto;z-index:auto;font-size: 13px;color: #00ff00;background-color: #2E2E2E;text-align: left;display: inline;margin: auto;clear: none;border: thin inset #FFFFFF;visibility: inherit;float: left;} 然后在文章里要加入代码的地方在html模式下插入&#60; span class=&#8221;mycode&#8221; &#62;您的代码&#60; /span &#62;就可以了！ 是不是很方便啊?如果你觉得这也还不方便，要是能加到wordpress文章编辑器上面的常用按钮中对不就更方便了吗？ OK，没有问题，下面来看如何实现！（在HTML模式下才有该按钮） 找到\wp-includes\js\quicktags.js这个文件 在 edButtons[edButtons.length]=new edButton(&#8220;ed_code&#8221;,&#8221;code&#8221;,&#8221;",&#8221;",&#8221;c&#8221;); 这个的后面加入 edButtons[edButtons.length]=new edButton(&#8220;ed_mycode&#8221;,&#8221;mycode&#8221;,&#8221;&#60; span class=&#8217;mycode&#8217; &#62;&#8221;,&#8221;&#60; /span &#62;&#8221;,&#8221;z&#8221;); 为了让代码显示，上面的&#8221;&#60;&#8221;后与&#8221;&#62;&#8221;前我都加了空格，使用中，去掉就OK了。 现在可以进入后台，看看在文章编辑的窗口上面多了一个&#8221;mycode&#8221;按钮。 哈哈，这个功能完全实现了！！ Technorati : code, css, 代码, 高亮 Del.icio.us : [...]]]></description>
		<wfw:commentRss>http://www.freeopens.com/2010_01_321.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
