<?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>心自逍遥</title>
	<atom:link href="http://www.netroby.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.netroby.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 08:55:33 +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>Firefox 3.6.9 及 4.0 Beta 5发布了</title>
		<link>http://www.netroby.com/article-3225.html</link>
		<comments>http://www.netroby.com/article-3225.html#comments</comments>
		<pubDate>Thu, 09 Sep 2010 00:53:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3225</guid>
		<description><![CDATA[Firefox 3.6.9发布了，这次更新有点慢了，源码是8月24日就冻结了的。不知道为什么，一直拖到9月8号才发布。]]></description>
			<content:encoded><![CDATA[<p>Firefox 3.6.9发布了，这次更新有点慢了，源码是8月24日就冻结了的。不知道为什么，一直拖到9月8号才发布。</p>
<p>随着Firefox 3.6.9的发布，4.0也不甘落后，Beta 5出炉了。</p>
<p>虽然Beta 版本越来越接高了，但是可用性依然不咋的，还是有很多不兼容的插件，还是有很多容易崩溃的地方。</p>
<p>Firefox的开发效率不是一般低哦。在BugZilla里面提交的Bug，官方处理起来也是心有余而力不足，还有老多欠账没有清。那些没有被处理的BUG, 将永远在那儿，你不解决它，并不代表它不存在。Firefox的版本发布，最多一个月一次，所以就算有什么重大Bug, 您也得等着。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3109.html" title="Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持">Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持</a></li><li><a href="http://www.netroby.com/article-3107.html" title="浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。">浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。</a></li><li><a href="http://www.netroby.com/article-3026.html" title="拒绝xss攻击，加固Firefox安全">拒绝xss攻击，加固Firefox安全</a></li><li><a href="http://www.netroby.com/article-3003.html" title="推荐T&#038;T的Firefox插件版客户端">推荐T&#038;T的Firefox插件版客户端</a></li><li><a href="http://www.netroby.com/article-2942.html" title="Firefox GreaseMonkey脚本推荐">Firefox GreaseMonkey脚本推荐</a></li><li><a href="http://www.netroby.com/article-2854.html" title="Firefox的品质下滑稳定性降低？">Firefox的品质下滑稳定性降低？</a></li><li><a href="http://www.netroby.com/article-2842.html" title="Firefox 3.6.7更新">Firefox 3.6.7更新</a></li><li><a href="http://www.netroby.com/article-2584.html" title="Firefox 3.6.6发布，修正崩溃及插件分离外置机置">Firefox 3.6.6发布，修正崩溃及插件分离外置机置</a></li><li><a href="http://www.netroby.com/article-2556.html" title="想要个性化Firefox界面？Personas帮你搞定">想要个性化Firefox界面？Personas帮你搞定</a></li><li><a href="http://www.netroby.com/article-2552.html" title="Firefox 3.6.4正式发布">Firefox 3.6.4正式发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3225.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP框架有待整饬尤其是Zend Framework</title>
		<link>http://www.netroby.com/article-3218.html</link>
		<comments>http://www.netroby.com/article-3218.html#comments</comments>
		<pubDate>Wed, 08 Sep 2010 00:37:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[PHP框架]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3218</guid>
		<description><![CDATA[PHP框架热热闹闹的在社区哄动了许多年，截止今日，已是春色满园，百花齐放。不过在喧闹的背后，隐藏着那些问题，又有谁真正去关注过？]]></description>
			<content:encoded><![CDATA[<p>PHP框架热热闹闹的在社区哄动了许多年，截止今日，已是春色满园，百花齐放。不过在喧闹的背后，隐藏着那些问题，又有谁真正去关注过？</p>
<p>关于Zend Framework框架，这个PHP框架中的老大，我亲身经历了两件不那么愉快的事：</p>
<p>1. 提交了两个BUG, 一个BUG是手册编译，本应该提供的图片和CSS，在SVN里面没有提供 ，编译出来的手册惨不忍睹，看者无不头大如斗；第三个BUG是关于Zend_View_Helper的，写好的Helper插件，本应该在所有Module中都要被自动调用，很可惜，在Default模块中居然不给调用？这两个问题都是在实际开发过程中发现的，第一时间被我提交到Zend Framework的Issue Tracker里面。但是很杯具的是，到现为止，两个Bug均无人理睬。我真的是很想对Zend Framework管理代码的大神说句：大爷，请看看这些Bug吧。</p>
<p>2. 看到官方对我提交的Bug不理不睬，我有一种冲动，如果我加入到Zend Framework的维护者里面，他们应该不会介意我帮助着修复BUG吧，但是，按照着他们提供的流程，进行申请，并发送签好的协议过去之后，久久不能得到回复，现在己经过去快一周了。作为一名想为框架，想为社区贡献力量的志愿者来说，这是怎样一种侮辱，你好歹也鸟一下好不好，不需要别人加入，你也给回个信呀。</p>
<p>上面两个问题，纠结在一块，反映出框架开发的问题，一是有许多BUG, 开发人员没有跟进，严重失察，二是就算有人想帮他们收拾这些BUG, 他们也根本不矛理睬。这跟开源精神完全是背道而驰嘛。这样的框架，我们用得还放心吗？</p>
<p>PHP框架需要整治的地方，包括但不限于以下几点：</p>
<p>1. 代码规范，十个人写代码有十种风格 ，必须严格按照一种合理的规范来写框架代码，这样才能保证框架是高品质的。</p>
<p>2. 手册一定要完整提供，注意手册中用到的CSS, 插图是否完好。</p>
<p>3.  对于用户汇报的BUG, 应该主动积极查实，汇报BUG本身就是需要很大的耐心的，你看用户既然花那么多时间收集BUG，整理并汇报上来，你也回个信不是？这个BUG要怎么处理？你得让人看到你积极的处理方式好吧。</p>
<p>4. 对于积极参与进来开发的志愿者，能吸收就尽量吸收，不能吸收，也回个信：我们不需要您的帮助。</p>
<p>真心希望PHP框架们能多一些开放，积极一些修复BUG， 吸收更多的志愿者，这样才能把框架打造的更好。</p>
<p><strong>原文链接：</strong><a href="../article-3218.html">http://www.netroby.com/article-3218.html</a></p>
<p><strong>参考资料： </strong>提交的BUG<strong><br />
</strong></p>
<p><a href="http://framework.zend.com/issues/browse/ZF-10271">http://framework.zend.com/issues/browse/ZF-10271</a></p>
<p><a href="http://framework.zend.com/issues/browse/ZF-10408">http://framework.zend.com/issues/browse/ZF-10408</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3146.html" title=" Zend Framework连接和使用多个数据库"> Zend Framework连接和使用多个数据库</a></li><li><a href="http://www.netroby.com/article-3136.html" title="Zend Framework的背后">Zend Framework的背后</a></li><li><a href="http://www.netroby.com/article-3116.html" title="Zend Framework 1.10.8发布，CHM手册更新">Zend Framework 1.10.8发布，CHM手册更新</a></li><li><a href="http://www.netroby.com/article-2867.html" title="Zend Framework 1.10.7发布，手册同步更新">Zend Framework 1.10.7发布，手册同步更新</a></li><li><a href="http://www.netroby.com/article-2554.html" title="Zend Framework 1.10.6 发布，手册同步更新">Zend Framework 1.10.6 发布，手册同步更新</a></li><li><a href="http://www.netroby.com/article-1817.html" title="Zend Framework手册更新到1.10.5">Zend Framework手册更新到1.10.5</a></li><li><a href="http://www.netroby.com/article-1815.html" title="Zend Framework 1.10.5 Released">Zend Framework 1.10.5 Released</a></li><li><a href="http://www.netroby.com/article-1706.html" title="驳Zend Framework 缺陷 一文的论点">驳Zend Framework 缺陷 一文的论点</a></li><li><a href="http://www.netroby.com/article-1553.html" title="Zend Framework Manual CHM Version 1.10.4 己更新">Zend Framework Manual CHM Version 1.10.4 己更新</a></li><li><a href="http://www.netroby.com/article-1551.html" title="Zend Framework 1.10.4 Released">Zend Framework 1.10.4 Released</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3218.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GeSHi代码高亮快速上手教程</title>
		<link>http://www.netroby.com/article-3160.html</link>
		<comments>http://www.netroby.com/article-3160.html#comments</comments>
		<pubDate>Fri, 03 Sep 2010 07:55:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[GeSHi]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3160</guid>
		<description><![CDATA[GeSHi是一个基于PHP开发的代码高亮程序，它可以支持数十种语言的代码高亮。从GeSHi官网快速下载一个GeSHi源码包，让我们开始快速之旅吧。]]></description>
			<content:encoded><![CDATA[<p>GeSHi是一个基于PHP开发的代码高亮程序，它可以支持数十种语言的代码高亮。从GeSHi官网快速下载一个GeSHi源码包，让我们开始快速之旅吧。</p>
<p>下面是样例文件。</p>
<pre id="php" class="geshi">&lt;?php
require('./geshi.php');
$geshi = new GeSHi($sourceCode, 'php');
$geshi-&gt;set_header_type(GESHI_HEADER_PRE);
$css = 'font-family:"Lucida Console","Courier New",Courier;'
    . 'font-size:12px;padding-left:5px;'
    . 'border:#BBB 1px solid;'
    . 'background:#F7F7F7;width:650px';
$geshi-&gt;set_overall_style($css, false);
$geshi-&gt;enable_classes();
$geshi-&gt;enable_line_numbers(GESHI_NO_LINE_NUMBERS);
$str = '&lt;b&gt;[GeSHi代码高亮]&lt;/b&gt; 源码语言'
    . $sourceCode
    . ' 渲染速度&lt;SPEED&gt; 渲染耗时&lt;TIME&gt;秒';
$geshi-&gt;set_header_content($str);
$css = 'color:#999;background:#F0F0FF;'
    . 'border-bottom:1px solid #D0D0D0;'
    . 'margin-left:-5px;padding:2px';
$geshi-&gt;set_header_content_style($css);
echo '&lt;style&gt;' . $geshi-&gt;get_stylesheet(true) . '&lt;/style&gt;';
echo $geshi-&gt;parse_code();</pre>
<p>$_POST['s']是源码，需要先经过htmlspecialchars, $_POST['l']是语言类型。</p>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-216.html" title="今天论坛更新到discuz7.2版本">今天论坛更新到discuz7.2版本</a></li><li><a href="http://www.netroby.com/article-17.html" title="Getting Real 学习笔记：关于雇员">Getting Real 学习笔记：关于雇员</a></li><li><a href="http://www.netroby.com/article-131.html" title="VIM小抄（适合放在桌面上）">VIM小抄（适合放在桌面上）</a></li><li><a href="http://www.netroby.com/article-47.html" title="Google page speed for firebug">Google page speed for firebug</a></li><li><a href="http://www.netroby.com/article-1430.html" title="QuickWeb 千兆端口openvz VPS,SoftLayer机房">QuickWeb 千兆端口openvz VPS,SoftLayer机房</a></li><li><a href="http://www.netroby.com/article-1642.html" title="高效的分布式版本控制系统TortoiseHg 1.0.2">高效的分布式版本控制系统TortoiseHg 1.0.2</a></li><li><a href="http://www.netroby.com/article-2418.html" title="lftp加cron自动备份网站数据到godaddy免费空间">lftp加cron自动备份网站数据到godaddy免费空间</a></li><li><a href="http://www.netroby.com/article-2494.html" title="QuickWeb稳定卓越，我们一起见证">QuickWeb稳定卓越，我们一起见证</a></li><li><a href="http://www.netroby.com/article-380.html" title="PHP设置 默认时区北京时间">PHP设置 默认时区北京时间</a></li><li><a href="http://www.netroby.com/article-1161.html" title="微软正式公布MS10-018安全公告 修补10个IE漏洞">微软正式公布MS10-018安全公告 修补10个IE漏洞</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3160.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>应当避免PHP面向过程编程方法中的一些问题</title>
		<link>http://www.netroby.com/article-3149.html</link>
		<comments>http://www.netroby.com/article-3149.html#comments</comments>
		<pubDate>Thu, 02 Sep 2010 07:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3149</guid>
		<description><![CDATA[PHP曾几何时一直是传统的面 向过程编程，多采用函数封装过程，然后一直if,else顺着逻辑下来，直到最后输出页面为止。很多程序员还在采用着这种方法来编程序，对面向对象编程方法不闻不顾。]]></description>
			<content:encoded><![CDATA[<p>PHP曾几何时一直是传统的面 向过程编程，多采用函数封装过程，然后一直if,else顺着逻辑下来，直到最后输出页面为止。很多程序员还在采用着这种方法来编程序，对面向对象编程方法不闻不顾。</p>
<p>面象对象编制的程序固然运行效率不如面向过程编制的程序，但是面象对象的编程方法，有助于减少传统面向过程编程过程中的一些问题，提升开发程序的效率，便于后续二次开发和维护升级.</p>
<p>当我们打开一个Discuz或者PHPwind的源码文件，看看是不是有一堆粘在一起的If语句：</p>
<pre id="php" class="geshi">if($user
 &amp;&amp; $user['groupexpiry'] &gt; 0
&amp;&amp; $user['groupexpiry'] &lt; TIMESTAMP
&amp;&amp; getgpc('mod') != 'groupexpiry'
 &amp;&amp; CURSCRIPT != 'member')
{
    dheader('location: member.php?mod=groupexpiry');
}</pre>
<p>看到这些if语句，这些复杂的过程，晦涩的逻辑判断，你还有读下去的欲望么？我们会想，为什么代码会这么难懂，为什么要这么复杂？</p>
<p>下面我们来一起想一想面向过程编程方法和面向对象编程方法之间的区别和不同。</p>
<p>面向过程编程方法，先分析问题的解决方法，写程序一步一步解决问题，直到把问题解决。它需要在执行的过程中判断条件，然后往下走。它是为了解决一些极为相似的问题而生的解决方案。如果需要同时解决很多不同的问题，那么面向过程编程方法，就显得过于复杂了，会造成逻辑 复杂，代码嘈杂，不容易阅读，二次开发有困难，维护修改会很费力。我们在开发程序 中，需要尽量避免这样的问题产生。</p>
<p>面象对象编程，就是做好一个个螺钉和小工具，小部件，然后用它们组装成一台大的机器。它是模块化编程，不是为了解决某一个问题而生的，它可以解决不同类型的问题，因为它每个部分都相对独立，模块之前依赖性不是非常强，我们可以安装不同的模块，应对不同的应用需求。</p>
<p>在现有程序基础上，对它进行修改和二次开发，工作量会相对传统方法小很多。我们只需要写新的模块就好了。甚至不用改动现有的代码。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3119.html" title="PHP表达式运行效率测试和测试源码">PHP表达式运行效率测试和测试源码</a></li><li><a href="http://www.netroby.com/article-3116.html" title="Zend Framework 1.10.8发布，CHM手册更新">Zend Framework 1.10.8发布，CHM手册更新</a></li><li><a href="http://www.netroby.com/article-2856.html" title="dotdeb PHP5.3.3更新，debian升级php5.3.3教程">dotdeb PHP5.3.3更新，debian升级php5.3.3教程</a></li><li><a href="http://www.netroby.com/article-2837.html" title="PHP代码优化提示(译自google技术文档)">PHP代码优化提示(译自google技术文档)</a></li><li><a href="http://www.netroby.com/article-2813.html" title="PHP代码书写规范指南">PHP代码书写规范指南</a></li><li><a href="http://www.netroby.com/article-2799.html" title="ubuntu下面安装php5-fpm后编译eaccelerator">ubuntu下面安装php5-fpm后编译eaccelerator</a></li><li><a href="http://www.netroby.com/article-1553.html" title="Zend Framework Manual CHM Version 1.10.4 己更新">Zend Framework Manual CHM Version 1.10.4 己更新</a></li><li><a href="http://www.netroby.com/article-1545.html" title="nginx在windows下面没有好搭挡">nginx在windows下面没有好搭挡</a></li><li><a href="http://www.netroby.com/article-1181.html" title="Zend Framework 1.10.3 Manual CHM Version">Zend Framework 1.10.3 Manual CHM Version</a></li><li><a href="http://www.netroby.com/article-1179.html" title="Zend Framework 1.10.3 and 1.9.8 Released">Zend Framework 1.10.3 and 1.9.8 Released</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3149.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework连接和使用多个数据库</title>
		<link>http://www.netroby.com/article-3146.html</link>
		<comments>http://www.netroby.com/article-3146.html#comments</comments>
		<pubDate>Thu, 02 Sep 2010 01:51:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3146</guid>
		<description><![CDATA[Zend Framework可以利用Zend_Application_Resource_Multidb来连接多个数据库。]]></description>
			<content:encoded><![CDATA[<p>Zend Framework可以利用Zend_Application_Resource_Multidb来连接多个数据库。<br />
先在application/configs/application.ini中配置多个数据库连接信息</p>
<pre id="ini" class="geshi">[production]
resources.multidb.db1.adapter = "pdo_mysql"
resources.multidb.db1.host = "localhost"
resources.multidb.db1.username = "webuser"
resources.multidb.db1.password = "XXXX"
resources.multidb.db1.dbname = "db1"

resources.multidb.db2.adapter = "pdo_pgsql"
resources.multidb.db2.host = "example.com"
resources.multidb.db2.username = "dba"
resources.multidb.db2.password = "notthatpublic"
resources.multidb.db2.dbname = "db2"
resources.multidb.db2.default = true</pre>
<p>db2有多一个属性 default，作用是设置这个连接为默认连接。你可以把常用的主数据库设为默认的。方便使用。</p>
<p>接下来在/application/Bootstrap.php里面进行初始化连接，并存储连接信息</p>
<pre id="php" class="geshi">class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	public function _initDbAdapter()
	{
		$resource = $this -&gt; getPluginResource('multidb');
		$resource -&gt; init();

		$db1 = $resource -&gt; getDb('db1');
		$db2 = $resource -&gt; getDb('db2');
		Zend_Registry::set('db1', $db1);
		Zend_Registry::set('db2', $db2);
	}
}
</pre>
<p>接下来你就可以在你的项目中调用两个数据库连接了。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3218.html" title="PHP框架有待整饬尤其是Zend Framework">PHP框架有待整饬尤其是Zend Framework</a></li><li><a href="http://www.netroby.com/article-3136.html" title="Zend Framework的背后">Zend Framework的背后</a></li><li><a href="http://www.netroby.com/article-3116.html" title="Zend Framework 1.10.8发布，CHM手册更新">Zend Framework 1.10.8发布，CHM手册更新</a></li><li><a href="http://www.netroby.com/article-2867.html" title="Zend Framework 1.10.7发布，手册同步更新">Zend Framework 1.10.7发布，手册同步更新</a></li><li><a href="http://www.netroby.com/article-2554.html" title="Zend Framework 1.10.6 发布，手册同步更新">Zend Framework 1.10.6 发布，手册同步更新</a></li><li><a href="http://www.netroby.com/article-1817.html" title="Zend Framework手册更新到1.10.5">Zend Framework手册更新到1.10.5</a></li><li><a href="http://www.netroby.com/article-1815.html" title="Zend Framework 1.10.5 Released">Zend Framework 1.10.5 Released</a></li><li><a href="http://www.netroby.com/article-1706.html" title="驳Zend Framework 缺陷 一文的论点">驳Zend Framework 缺陷 一文的论点</a></li><li><a href="http://www.netroby.com/article-1553.html" title="Zend Framework Manual CHM Version 1.10.4 己更新">Zend Framework Manual CHM Version 1.10.4 己更新</a></li><li><a href="http://www.netroby.com/article-1551.html" title="Zend Framework 1.10.4 Released">Zend Framework 1.10.4 Released</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3146.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Update邮件通知设置</title>
		<link>http://www.netroby.com/article-3142.html</link>
		<comments>http://www.netroby.com/article-3142.html#comments</comments>
		<pubDate>Tue, 31 Aug 2010 06:47:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3142</guid>
		<description><![CDATA[在团队里面，我们使用Git管理共用代码，可以解决代码更改冲突问题，但还有另外一个问题，我怎么知道别人的工作进展呢？这个时候，就要求我们用一种方式，告诉团队里面的其它人，嘿，伙计们，咱有新代码更新提交进了仓库了。]]></description>
			<content:encoded><![CDATA[<p>在团队里面，我们使用Git管理共用代码，可以解决代码更改冲突问题，但还有另外一个问题，我怎么知道别人的工作进展呢？这个时候，就要求我们用一种方式，告诉团队里面的其它人，嘿，伙计们，咱有新代码更新提交进了仓库了。</p>
<p>Git 有一个post-receive挂钩，我们通过对该挂钩进行相关设置，即可实现自动通知功能。当然了，通知是英文的，中文支持还是有点麻烦，现在咱不弄成中文，只要求它能工作就行。</p>
<p>用root账号登入中央仓库（大家共享的那个核心仓库）的SSH,改变当前目录到仓库根目录下面。先设置变量邮件发送目标及发件人地址：邮件发送目标我们设定为咱的团队邮件列表，至于架设团队邮件列表，请自行搜索相关技术文案。</p>
<pre id="bash" class="geshi">git config hooks.mailinglist "mailist@your.com"
git config hooks.envelopesender "your@your.com"</pre>
<p>hooks.mailinglist是目标邮件列表，每次更新会发送通知到这个地址。</p>
<p>hooks.envelopesender是发件人地址，信件是从这个地址发出去的。</p>
<p>输入git config &#8211;list命令，查看一下变量是否设置正确。</p>
<p>接下来vim hooks/post-receive</p>
<pre id="bash" class="geshi">#!/bin/sh
export GIT_DIR="/var/gitbase/main"
. /usr/share/doc/git-core/contrib/hooks/post-receive-email
export GIT_DIR="/var/www/server.domain.com/.git"
cd /var/www/server.domain.com
git pull origin master
git checkout -f</pre>
<p>/var/gitbase/main是主仓库，/var/www/server.domain.com是生产目录。</p>
<p>接下来执行一下 chmod a+x /usr/share/doc/git-core/contrib/hooks/post-receive-email</p>
<p>我们的脚本执行了两个操作，一个是发送通知邮件，一个是更新生产服务器目录。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3080.html" title="GIT从现有git仓库中移除跟踪对象">GIT从现有git仓库中移除跟踪对象</a></li><li><a href="http://www.netroby.com/article-3074.html" title="两本开源Git中文专业教程(译本)">两本开源Git中文专业教程(译本)</a></li><li><a href="http://www.netroby.com/article-3066.html" title="windows实战Git：msysGit+TortoiseGit环境配置">windows实战Git：msysGit+TortoiseGit环境配置</a></li><li><a href="http://www.netroby.com/article-3064.html" title="放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)">放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)</a></li><li><a href="http://www.netroby.com/article-1782.html" title="在ubuntu server 10.04下面编译安装git 和mercurial最新版本 ">在ubuntu server 10.04下面编译安装git 和mercurial最新版本 </a></li><li><a href="http://www.netroby.com/article-1728.html" title="Git Hooks脚本研究及中文支持探讨">Git Hooks脚本研究及中文支持探讨</a></li><li><a href="http://www.netroby.com/article-1726.html" title="Git强制checkout解决代码仓库不同步的问题">Git强制checkout解决代码仓库不同步的问题</a></li><li><a href="http://www.netroby.com/article-1721.html" title="推荐一本git的好书ProGit">推荐一本git的好书ProGit</a></li><li><a href="http://www.netroby.com/article-1719.html" title="ubuntu 安装git进行版本管理">ubuntu 安装git进行版本管理</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3142.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠</title>
		<link>http://www.netroby.com/article-3140.html</link>
		<comments>http://www.netroby.com/article-3140.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 05:51:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[代购VPS]]></category>
		<category><![CDATA[quickweb]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3140</guid>
		<description><![CDATA[QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠。30% 首月优惠码: MICRO30 ]]></description>
			<content:encoded><![CDATA[<p>QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠。<strong>30% 首月优惠码</strong>: MICRO30</p>
<table style="width: 467px;" border="0">
<tbody>
<tr>
<th width="154" scope="row">
<div>方案</div>
</th>
<td width="105" bgcolor="#666666">
<div><strong>Level 1</strong></div>
</td>
<td width="92" bgcolor="#666666">
<div><strong>Level 2</strong></div>
</td>
<td width="98" bgcolor="#666666">
<div><strong>Level 3</strong></div>
</td>
</tr>
<tr>
<th scope="row">
<div>至强CPU内核(s)</div>
</th>
<td>
<div>1</div>
</td>
<td>
<div>2</div>
</td>
<td>
<div>3</div>
</td>
</tr>
<tr>
<th scope="row">
<div>独立内存</div>
</th>
<td>
<div>80M</div>
</td>
<td>
<div>160M</div>
</td>
<td>
<div>240M</div>
</td>
</tr>
<tr>
<th scope="row">
<div>交换区间</div>
</th>
<td>
<div>128M</div>
</td>
<td>
<div>256M</div>
</td>
<td>
<div>384M</div>
</td>
</tr>
<tr>
<th scope="row"> 硬盘空间</th>
<td>
<div>3GB</div>
</td>
<td>
<div>6GB</div>
</td>
<td>
<div>12GB</div>
</td>
</tr>
<tr>
<th scope="row">
<div>每月流量</div>
</th>
<td>
<div>1TB</div>
</td>
<td>
<div>2TB</div>
</td>
<td>
<div>3TB</div>
</td>
</tr>
<tr>
<th scope="row">
<div>端口带宽</div>
</th>
<td>
<div>1Gps</div>
</td>
<td>
<div>1Gps</div>
</td>
<td>
<div>1Gps</div>
</td>
</tr>
<tr>
<th scope="row">
<div>备份服务</div>
</th>
<td>选 配</td>
<td>
<div>选配</div>
</td>
<td>
<div>免费提供</div>
</td>
</tr>
<tr>
<th scope="row">
<div>IP 地址</div>
</th>
<td>
<div>1</div>
</td>
<td>
<div>1</div>
</td>
<td>
<div>1</div>
</td>
</tr>
<tr>
<th scope="row">
<div>月付</div>
</th>
<td>
<div>$5.95</div>
</td>
<td>
<div>$12.50</div>
</td>
<td>
<div>$18.50</div>
</td>
</tr>
<tr>
<th scope="row">
<div>年付</div>
</th>
<td>
<div>$58.99</div>
</td>
<td>
<div>$95.88</div>
</td>
<td>
<div>$180</div>
</td>
</tr>
<tr>
<th scope="row">
<div>达拉斯</div>
</th>
<td>
<div><a href="https://secure.quickweb.co.nz/system/cart.php?a=add&amp;pid=87&amp;currency=2">Order</a></div>
</td>
<td>
<div><a href="https://secure.quickweb.co.nz/system/cart.php?a=add&amp;pid=88&amp;currency=2">Order</a></div>
</td>
<td>
<div><a href="https://secure.quickweb.co.nz/system/cart.php?a=add&amp;pid=89&amp;currency=2">Order</a></div>
</td>
</tr>
<tr>
<th scope="row">
<div>西雅图</div>
</th>
<td>
<div><a href="https://secure.quickweb.co.nz/system/cart.php?a=add&amp;pid=108&amp;currency=2">Order</a></div>
</td>
<td>
<div><a href="https://secure.quickweb.co.nz/system/cart.php?a=add&amp;pid=109&amp;currency=2">Order</a></div>
</td>
<td>
<div><a href="https://secure.quickweb.co.nz/system/cart.php?a=add&amp;pid=110&amp;currency=2">Order</a></div>
</td>
</tr>
</tbody>
</table>
<p>购买请点击Order链接。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3049.html" title="QuickWeb SoftLayer西雅图机房VPS母机维护完毕">QuickWeb SoftLayer西雅图机房VPS母机维护完毕</a></li><li><a href="http://www.netroby.com/article-3029.html" title="Softlayer西雅图Explorer母机维护升级新西兰时间8/15上午10点">Softlayer西雅图Explorer母机维护升级新西兰时间8/15上午10点</a></li><li><a href="http://www.netroby.com/article-3000.html" title="QuickWeb 20%优惠码，8月有效">QuickWeb 20%优惠码，8月有效</a></li><li><a href="http://www.netroby.com/article-2852.html" title="QuickWeb VPS三个月使用报告">QuickWeb VPS三个月使用报告</a></li><li><a href="http://www.netroby.com/article-2835.html" title="QuickWeb增加SolusVM控制面板中文语言">QuickWeb增加SolusVM控制面板中文语言</a></li><li><a href="http://www.netroby.com/article-2794.html" title="QuickWeb七月中国特惠出炉">QuickWeb七月中国特惠出炉</a></li><li><a href="http://www.netroby.com/article-2700.html" title="QuickWeb现在所有的优惠码都停了">QuickWeb现在所有的优惠码都停了</a></li><li><a href="http://www.netroby.com/article-2694.html" title="选vps，找准好机房非常重要">选vps，找准好机房非常重要</a></li><li><a href="http://www.netroby.com/article-2684.html" title="QuickWeb VPS产品列表(openvz和xen方案) &#038; 选购指南">QuickWeb VPS产品列表(openvz和xen方案) &#038; 选购指南</a></li><li><a href="http://www.netroby.com/article-2672.html" title="QuickWeb 位于San Jose的xen VPS售罄了">QuickWeb 位于San Jose的xen VPS售罄了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3140.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework的背后</title>
		<link>http://www.netroby.com/article-3136.html</link>
		<comments>http://www.netroby.com/article-3136.html#comments</comments>
		<pubDate>Sun, 29 Aug 2010 14:30:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3136</guid>
		<description><![CDATA[Zend Framework是出自于Zend Tech公司PHP5框架，它完全是PHP oop的。在它的背后，有着一个强大的支撑团队和后台。选择Zend Framework，就等于和IT业界的巨头们靠一块儿了，站队要站准，不要站歪了。]]></description>
			<content:encoded><![CDATA[<p>Zend Framework是出自于Zend Tech公司PHP5框架，它完全是PHP oop的。在它的背后，有着一个强大的支撑团队和后台。选择Zend Framework，就等于和IT业界的巨头们靠一块儿了，站队要站准，不要站歪了。</p>
<p>Zend Framework背后的大公司有IBM,Adobe,Microsoft,惠普，Google还有其它未公布的企业。</p>
<p>Zend Framework由Zend科技联合创始人Andi Gutmans带队，率Zend公司多名员工一起维护开发着Zend Framework, 他们与来自世界各地，各大公司的PHP工程师，共42人，决定，并保持着Zend Framework的发展。</p>
<p>在所有框架之中，开发人数最多，对PHP掌握最纯熟的，莫过于开发Zend Framework的这一拨人了。相比之下，YiiFramework和Symfony只有不足十人的开发团队。</p>
<p>Andi Gutmans不必说，创造PHP的奇迹他有莫大的功劳。Zend 公司的兄台们，为PHP的开发，投入了不小精力。他们决定PHP的方向，对于PHP内涵的领略，没人能比他们更清楚的了。</p>
<p>此文或许可以给那些还在找最好的PHP框架的人们一些有用的提示，别找了，找来找去，还是Zend Framework更好。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3218.html" title="PHP框架有待整饬尤其是Zend Framework">PHP框架有待整饬尤其是Zend Framework</a></li><li><a href="http://www.netroby.com/article-3146.html" title=" Zend Framework连接和使用多个数据库"> Zend Framework连接和使用多个数据库</a></li><li><a href="http://www.netroby.com/article-3116.html" title="Zend Framework 1.10.8发布，CHM手册更新">Zend Framework 1.10.8发布，CHM手册更新</a></li><li><a href="http://www.netroby.com/article-2867.html" title="Zend Framework 1.10.7发布，手册同步更新">Zend Framework 1.10.7发布，手册同步更新</a></li><li><a href="http://www.netroby.com/article-2554.html" title="Zend Framework 1.10.6 发布，手册同步更新">Zend Framework 1.10.6 发布，手册同步更新</a></li><li><a href="http://www.netroby.com/article-1817.html" title="Zend Framework手册更新到1.10.5">Zend Framework手册更新到1.10.5</a></li><li><a href="http://www.netroby.com/article-1815.html" title="Zend Framework 1.10.5 Released">Zend Framework 1.10.5 Released</a></li><li><a href="http://www.netroby.com/article-1706.html" title="驳Zend Framework 缺陷 一文的论点">驳Zend Framework 缺陷 一文的论点</a></li><li><a href="http://www.netroby.com/article-1553.html" title="Zend Framework Manual CHM Version 1.10.4 己更新">Zend Framework Manual CHM Version 1.10.4 己更新</a></li><li><a href="http://www.netroby.com/article-1551.html" title="Zend Framework 1.10.4 Released">Zend Framework 1.10.4 Released</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3136.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fedora 13配置nginx + php-fpm教程</title>
		<link>http://www.netroby.com/article-3134.html</link>
		<comments>http://www.netroby.com/article-3134.html#comments</comments>
		<pubDate>Sat, 28 Aug 2010 07:02:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php-fpm]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3134</guid>
		<description><![CDATA[Fedora是我正在使用的发行版，优点不再重复讨论，如果你在寻找一款开发用的Linux环境，那么Fedora是个不错的选择。现在 Nginx+php-fpm己然成为主流，本教程要讲解的是如何在Fedora 13下面配置 nginx 0.7.67 和 php-fpm 5.3.3.]]></description>
			<content:encoded><![CDATA[<p>Fedora是我正在使用的发行版，优点不再重复讨论，如果你在寻找一款开发用的Linux环境，那么Fedora是个不错的选择。现在Nginx+php-fpm己然成为主流，本教程要讲解的是如何在Fedora 13下面配置 nginx 0.7.67 和 php-fpm 5.3.3.</p>
<p>php 5.3.3是当前最新的PHP发行版本，内置php-fpm，但是在Fedora下面我们没办法直接安装，需要借靠第三方软件源来实现非编译式安装。mysql-server的安装就非常简单su -c &#8220;yum install mysql-server&#8221;。</p>
<p>我们选用的源是 Les RPM de Remi &#8211; Packages （<a href="http://rpms.famillecollet.com/">http://rpms.famillecollet.com/</a>）。</p>
<p>安装之前，请将fedora 13升级打好补丁。su -c &#8221; yum update &amp;&amp; yum upgrade&#8221;.</p>
<p><strong>1. 增加 第三方php源</strong></p>
<p>用firefox浏览器打开上面的Packages的地址：<a href="http://rpms.famillecollet.com/">http://rpms.famillecollet.com/</a> ，找到对应的Fedora 13的rpm下载地址：<a href="http://rpms.famillecollet.com/remi-release-13.rpm">http://rpms.famillecollet.com/remi-release-13.rpm</a> 点击下载，使用Fedora的包管理工具packagekit安装这个源仓库包。安装完毕后，会增加一个remi源, 位于 /etc/yum.repo.d/remi.repo. 我们需要编辑 它，启用这个源 vi /etc/yum.repo.d/remi.repo  修改 remi的 enabled 自0为 1。保存退出，执行 su -c &#8221; yum update&#8221;</p>
<p><strong>2. 安装 nginx和php-fpm及相关软件包。</strong></p>
<p>现在就比较好办了。安装软件包的命令是 su -c &#8220;yum install packagename&#8221;.</p>
<pre id="bash" class="geshi">su -c "yum install nginx php-fpm php-suhosin php-gd php-mysql php-mbstring php-mcrypt php-eaccelerator php-cli php-pdo"</pre>
<p><strong>3. 配置nginx,php-fpm.</strong></p>
<p>vim /etc/nginx/nginx.conf</p>
<pre id="bash" class="geshi">user apache;
worker_processes  2;

error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

worker_rlimit_nofile 10240;
events
{
	use epoll;

	worker_connections  2000;
}

http
{
	include       /etc/nginx/mime.types;
	default_type  application/octet-stream;

	access_log    /var/log/nginx/access.log;
	server_name_in_redirect off;
	server_names_hash_bucket_size 128;
	client_header_buffer_size 1k;
	large_client_header_buffers 4 4k;

	sendfile        on;
	tcp_nopush     on;

	client_body_timeout 10;
	client_header_timeout 10;
	send_timeout 60;

	keepalive_timeout  5 5;
	tcp_nodelay        on;

	output_buffers 1 32k;
	postpone_output 1460;

	open_file_cache max=2000 inactive=20s;
	open_file_cache_min_uses 1;
	open_file_cache_valid 30s;

	fastcgi_connect_timeout 300;
	fastcgi_send_timeout 300;
	fastcgi_read_timeout 300;
	fastcgi_buffer_size 64k;
	fastcgi_buffers 4 64k;
	fastcgi_busy_buffers_size 128k;
	fastcgi_temp_file_write_size 128k;

	gzip on;
	gzip_min_length  1100;
	gzip_buffers     4 8k;
	gzip_http_version 1.0;
	gzip_comp_level 7;
	gzip_types       text/plain application/x-javascript text/css application/xml;

	include /etc/nginx/sites-enabled/*;
}</pre>
<p>vim /etc/nginx/fastcgi_params</p>
<pre id="bash" class="geshi">fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx;

fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;</pre>
<p>vim /etc/nginx/wordpress.conf</p>
<pre id="bash" class="geshi">location / {
	index index.html index.php;
	if (-f $request_filename/index.html){
		rewrite (.*) $1/index.html break;
	}
	if (-f $request_filename/index.php){
		rewrite (.*) $1/index.php;
	}
	if (!-f $request_filename){
		rewrite (.*) /index.php;
	}
}
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
	expires max;
	break;
}

location ~ .*\.php$ {
#	fastcgi_pass 127.0.0.1:9000;
	fastcgi_pass unix:/dev/shm/php-cgi.sock;
	fastcgi_index index.php;
	include /etc/nginx/fastcgi_params;

}</pre>
<p>创建nginx虚拟主机的配置目录　mkdir /etc/nginx/sites-available /etc/nginx/sites-enabled, 并创立一个默认的虚拟主机</p>
<p>vim /etc/nginx/sites-available/default</p>
<pre id="bash" class="geshi">server
{
	listen 80;
	server_name _;
	root /var/www/html;
	include /etc/nginx/wordpress.conf;
}</pre>
<p>ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default</p>
<p>到这里，nginx的配置就差不多了，现在来配置php-fpm。</p>
<p>vim /etc/php-fpm.d/www.conf</p>
<pre id="ini" class="geshi">; Start a new pool named 'www'.
[www]

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on
;                            a specific port;
;   'port'                 - to listen on a TCP socket to all addresses on a
;                            specific port;
;   '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = /dev/shm/php-cgi.sock

; Set listen(2) backlog. A value of '-1' means unlimited.
; Default Value: -1
;listen.backlog = -1

; List of ipv4 addresses of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
listen.allowed_clients = 127.0.0.1

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
;                 mode is set to 0666
listen.owner = apache
listen.group = apache
listen.mode = 0666

; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;       will be used.
; RPM: apache Choosed to be able to access some dir as httpd
user = apache
; RPM: Keep a group allowed to write in log dir.
group = apache

; Choose how the process manager will control the number of child processes.
; Possible Values:
;   static  - a fixed number (pm.max_children) of child processes;
;   dynamic - the number of child processes are set dynamically based on the
;             following directives:
;             pm.max_children      - the maximum number of children that can
;                                    be alive at the same time.
;             pm.start_servers     - the number of children created on startup.
;             pm.min_spare_servers - the minimum number of children in 'idle'
;                                    state (waiting to process). If the number
;                                    of 'idle' processes is less than this
;                                    number then some children will be created.
;             pm.max_spare_servers - the maximum number of children in 'idle'
;                                    state (waiting to process). If the number
;                                    of 'idle' processes is greater than this
;                                    number then some children will be killed.
; Note: This value is mandatory.
pm = static

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes to be created when pm is set to 'dynamic'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI.
; Note: Used when pm is set to either 'static' or 'dynamic'
; Note: This value is mandatory.
pm.max_children = 5

; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 5

; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 5

; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 35

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
;pm.max_requests = 500

; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. By default, the status page shows the following
; information:
;   accepted conn    - the number of request accepted by the pool;
;   pool             - the name of the pool;
;   process manager  - static or dynamic;
;   idle processes   - the number of idle processes;
;   active processes - the number of active processes;
;   total processes  - the number of idle + active processes.
; The values of 'idle processes', 'active processes' and 'total processes' are
; updated each second. The value of 'accepted conn' is updated in real time.
; Example output:
;   accepted conn:   12073
;   pool:             www
;   process manager:  static
;   idle processes:   35
;   active processes: 65
;   total processes:  100
; By default the status page output is formatted as text/plain. Passing either
; 'html' or 'json' as a query string will return the corresponding output
; syntax. Example:
;   http://www.foo.bar/status
;   http://www.foo.bar/status?json
;   http://www.foo.bar/status?html
; Note: The value must start with a leading slash (/). The value can be
;       anything, but it may not be a good idea to use the .php extension or it
;       may conflict with a real PHP file.
; Default Value: not set
;pm.status_path = /status

; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
; - create a graph of FPM availability (rrd or such);
; - remove a server from a group if it is not responding (load balancing);
; - trigger alerts for the operating team (24/7).
; Note: The value must start with a leading slash (/). The value can be
;       anything, but it may not be a good idea to use the .php extension or it
;       may conflict with a real PHP file.
; Default Value: not set
;ping.path = /ping

; This directive may be used to customize the response of a ping request. The
; response is formatted as text/plain with a 200 response code.
; Default Value: pong
;ping.response = pong

; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
request_terminate_timeout = 30

; The timeout for serving a single request after which a PHP backtrace will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_slowlog_timeout = 0

; The log file for slow requests
; Default Value: /var/log/php-fpm.log.slow
;slowlog = /var/log/php-fpm.log.slow

; Set open file descriptor rlimit.
; Default Value: system defined value
rlimit_files = 10240

; Set max core size rlimit.
; Possible Values: 'unlimited' or an integer greater or equal to 0
; Default Value: system defined value
;rlimit_core = 0

; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used.
; Note: chrooting is a great security feature and should be used whenever
;       possible. However, all PHP paths will be relative to the chroot
;       (error_log, sessions.save_path, ...).
; Default Value: not set
;chroot = 

; Chdir to this directory at the start. This value must be an absolute path.
; Default Value: current directory or / when chroot
;chdir = /var/www

; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Default Value: no
;catch_workers_output = yes

; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

; Additional php.ini defines, specific to this pool of workers. These settings
; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI:
;   php_value/php_flag             - you can set classic ini defines which can
;                                    be overwritten from PHP call 'ini_set'.
;   php_admin_value/php_admin_flag - these directives won't be overwritten by
;                                     PHP call 'ini_set'
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

; Defining 'extension' will load the corresponding shared extension from
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
; overwrite previously defined php.ini values, but will append the new value
; instead.

; Default Value: nothing is defined by default except the values in php.ini and
;                specified at startup with the -d argument
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@netroby.com
php_flag[display_errors] = on
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 32M</pre>
<p>保存配置，并退出。现在nginx和php-fpm的配置己经好了。己经可以让它们跑起来看看啦。</p>
<pre id="bash" class="geshi">service nginx start &amp;&amp; service php-fpm start
mkdir -p /var/www/html
echo "&lt;?php phpinfo();" &gt; /var/www/html/index.php
chown -R apache:apache /var/www
chmod -R 777 /var/www</pre>
<p>打开浏览器，看看http://localhost/index.php是不是正常的显示phpinfo的内容呢？</p>
<p>希望在开机时自启动nginx和php-fpm服务，mysql-server服务，需要执行下面命令开启服务。</p>
<pre id="bash" class="geshi">chkconfig mysqld on
chkconfig nginx on
chkconfig php-fpm on</pre>
<p><strong>4. 细节调整</strong></p>
<p>php-eaccelerator的配置选项在/etc/php.d/eaccelerator.ini里面,设置下　eaccelerator.shm_size = &#8220;16&#8243;　。这样eaccelerator的缓存加速功能才可以被启用。</p>
<p>/etc/php.ini里面，我们要设置一下 date.timezone = Asia/Chongqing ,不然会报时区错误。</p>
<p>其它的选项，大家根据自己需求，自行配置。看清楚说明，然后动手配置，以避免错误。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-2414.html" title="nginx+php-fpm极致优化，打造高负载wordpress博客">nginx+php-fpm极致优化，打造高负载wordpress博客</a></li><li><a href="http://www.netroby.com/article-3098.html" title="Fedora 13 更好的linux发行版">Fedora 13 更好的linux发行版</a></li><li><a href="http://www.netroby.com/article-3095.html" title="Fedora 13 gvim 菜单乱码">Fedora 13 gvim 菜单乱码</a></li><li><a href="http://www.netroby.com/article-2959.html" title="Debian安装nginx,php,mysql,wordpress教程">Debian安装nginx,php,mysql,wordpress教程</a></li><li><a href="http://www.netroby.com/article-2478.html" title="nginx 0.8.41">nginx 0.8.41</a></li><li><a href="http://www.netroby.com/article-2456.html" title="ubuntu下手动编译nginx最新版本">ubuntu下手动编译nginx最新版本</a></li><li><a href="http://www.netroby.com/article-1885.html" title="nginx 0.8.39">nginx 0.8.39</a></li><li><a href="http://www.netroby.com/article-1868.html" title="Nginx配置StartSSL ssl证书加密浏览">Nginx配置StartSSL ssl证书加密浏览</a></li><li><a href="http://www.netroby.com/article-1862.html" title="vps优化之http服务器选配">vps优化之http服务器选配</a></li><li><a href="http://www.netroby.com/article-1545.html" title="nginx在windows下面没有好搭挡">nginx在windows下面没有好搭挡</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3134.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP表达式运行效率测试和测试源码</title>
		<link>http://www.netroby.com/article-3119.html</link>
		<comments>http://www.netroby.com/article-3119.html#comments</comments>
		<pubDate>Fri, 27 Aug 2010 05:23:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3119</guid>
		<description><![CDATA[PHP编程中经常会遇到使用表达式控制程序流程的情况。这个时候，如何书写最有效率的表达式，就成了我们PHP程序员需要关注的问题。经过测试，一些常用的表达式运算得出了测试结果。]]></description>
			<content:encoded><![CDATA[<p>PHP编程中经常会遇到使用表达式控制程序流程的情况。这个时候，如何书写最有效率的表达式，就成了我们PHP程序员需要关注的问题。经过测试，一些常用的表达式运算得出了测试结果。</p>
<p>如果要判断一个值是否为null,用$var === null比用 is_null($var)更有效率。</p>
<p>如果要判断一个值是否为FALSE，那么 $var === false最有效率。</p>
<p>看测试结果吧：</p>
<blockquote>
<pre>共10000次测试[运算式 ---- 耗时(秒)]
is_null(100)	----	0.079903841018677
100 == null	----	0.061928033828735
null == 100	----	0.063274145126343
100 === null	----	0.062665939331055
null === 100	----	0.061826944351196

$v=false;!$v	----	0.089789867401123
$v=false;false == $v	----	0.10012793540955
$v=false;$v == false	----	0.10104298591614
$v=false;$v === false	----	0.097337007522583
$v=false;false === $v	----	0.10080313682556

!isset($as)	----	0.065109968185425
false == isset($as)	----	0.078334093093872
false === isset($as)	----	0.079308032989502
isset($as) == false	----	0.076468944549561
isset($as) === false	----	0.076411008834839</pre>
</blockquote>
<p>附源码 ，大家有兴趣可以自己测测看。</p>
<pre id="php" class="geshi">&lt;?php
class method_fight
{
	private $_methods = array();
	private $_counts = 10000;

	public function set_counts($v = 10000)
	{
		$this -&gt; _counts = $v;
	}

	/**
	 * 增加一个测试队列
	 * @param array $m 待测试的数组
	 */
	public function add_method($m)
	{
		$this -&gt; _methods[] = $m;

	}

	/**
	 * 运行测试
	 */
	public function run()
	{
		if(count($this -&gt; _methods) === 0)
		{
			exit('测试队列为空');

		}

		echo "&lt;pre&gt;共". $this -&gt; _counts. "次测试[运算式 ---- 耗时(秒)]\n";

		foreach($this -&gt; _methods as $m)
		{
			foreach($m as $child)
			{
				$s_time = microtime(TRUE);

				echo $child. "\t----\t";

				for($i = 0; $i &lt; $this -&gt; _counts; ++$i)
				{
					eval($child. ";");
			//		usleep(1);
				}

				$e_time = microtime(TRUE);
				echo $e_time - $s_time;
				echo "\n";

			}

			//每组测试后面跟一个单独的换行，用以分隔
			echo "\n";
		}
		echo "&lt;/pre&gt;";
	}
}

$mt = new method_fight();
$mt -&gt; set_counts('10000');
$mt -&gt; add_method(array("is_null(100)",
    "100 == null",
    "null == 100",
    "100 === null",
    "null === 100"));
$mt -&gt; add_method(array("\$v=false;!\$v",
    "\$v=false;false == \$v",
    "\$v=false;\$v == false",
    "\$v=false;\$v === false",
    "\$v=false;false === \$v"));
$mt -&gt; add_method(array("!isset(\$as)",
    "false == isset(\$as)",
    "false === isset(\$as)",
    "isset(\$as) == false",
    "isset(\$as) === false"));
$mt -&gt; run();</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3149.html" title="应当避免PHP面向过程编程方法中的一些问题">应当避免PHP面向过程编程方法中的一些问题</a></li><li><a href="http://www.netroby.com/article-3116.html" title="Zend Framework 1.10.8发布，CHM手册更新">Zend Framework 1.10.8发布，CHM手册更新</a></li><li><a href="http://www.netroby.com/article-2856.html" title="dotdeb PHP5.3.3更新，debian升级php5.3.3教程">dotdeb PHP5.3.3更新，debian升级php5.3.3教程</a></li><li><a href="http://www.netroby.com/article-2837.html" title="PHP代码优化提示(译自google技术文档)">PHP代码优化提示(译自google技术文档)</a></li><li><a href="http://www.netroby.com/article-2813.html" title="PHP代码书写规范指南">PHP代码书写规范指南</a></li><li><a href="http://www.netroby.com/article-2799.html" title="ubuntu下面安装php5-fpm后编译eaccelerator">ubuntu下面安装php5-fpm后编译eaccelerator</a></li><li><a href="http://www.netroby.com/article-1553.html" title="Zend Framework Manual CHM Version 1.10.4 己更新">Zend Framework Manual CHM Version 1.10.4 己更新</a></li><li><a href="http://www.netroby.com/article-1545.html" title="nginx在windows下面没有好搭挡">nginx在windows下面没有好搭挡</a></li><li><a href="http://www.netroby.com/article-1181.html" title="Zend Framework 1.10.3 Manual CHM Version">Zend Framework 1.10.3 Manual CHM Version</a></li><li><a href="http://www.netroby.com/article-1179.html" title="Zend Framework 1.10.3 and 1.9.8 Released">Zend Framework 1.10.3 and 1.9.8 Released</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3119.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework 1.10.8发布，CHM手册更新</title>
		<link>http://www.netroby.com/article-3116.html</link>
		<comments>http://www.netroby.com/article-3116.html#comments</comments>
		<pubDate>Thu, 26 Aug 2010 06:24:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3116</guid>
		<description><![CDATA[Zend Framework 1.10.8发布，修正了22处BUG. 另外提醒有使用Zend_Service_Twitter的朋友，注意更新一下。CHM手册也在第一时间同步更新了。]]></description>
			<content:encoded><![CDATA[<p>Zend Framework 1.10.8发布，修正了<a href="http://framework.zend.com/changelog/1.10.8">22处BUG</a>. 另外提醒有使用<code>Zend_Service_Twitter的朋友，注意更新一下。CHM手册也在第一时间同步更新了。</code></p>
<p>下载最新的Zend Framework请移步：<a href="http://framework.zend.com/download/latest">http://framework.zend.com/download/latest</a></p>
<p>CHM英文手册更新：<a href="http://zfchm.googlecode.com/files/Zend_Framework_en_1.10.8.7z">http://zfchm.googlecode.com/files/Zend_Framework_en_1.10.8.7z</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-1553.html" title="Zend Framework Manual CHM Version 1.10.4 己更新">Zend Framework Manual CHM Version 1.10.4 己更新</a></li><li><a href="http://www.netroby.com/article-1181.html" title="Zend Framework 1.10.3 Manual CHM Version">Zend Framework 1.10.3 Manual CHM Version</a></li><li><a href="http://www.netroby.com/article-1179.html" title="Zend Framework 1.10.3 and 1.9.8 Released">Zend Framework 1.10.3 and 1.9.8 Released</a></li><li><a href="http://www.netroby.com/article-938.html" title="zend framework更新到1.10.2,chm版手册同步更新">zend framework更新到1.10.2,chm版手册同步更新</a></li><li><a href="http://www.netroby.com/article-804.html" title="zend Framework manual chm 1.10.0 (20100201)">zend Framework manual chm 1.10.0 (20100201)</a></li><li><a href="http://www.netroby.com/article-675.html" title="Zend Framework Manual 官方svn导出编译版chm更新于2010年01月16日">Zend Framework Manual 官方svn导出编译版chm更新于2010年01月16日</a></li><li><a href="http://www.netroby.com/article-668.html" title="编译zend Framework手册详细安装教程(更新于2010年01月16日)">编译zend Framework手册详细安装教程(更新于2010年01月16日)</a></li><li><a href="http://www.netroby.com/article-666.html" title="Zend Framework 1.10即将发布">Zend Framework 1.10即将发布</a></li><li><a href="http://www.netroby.com/article-662.html" title="Zend Framework 1.10.0Beta1 Released">Zend Framework 1.10.0Beta1 Released</a></li><li><a href="http://www.netroby.com/article-214.html" title="Zend Framework值得深入">Zend Framework值得深入</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3116.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持</title>
		<link>http://www.netroby.com/article-3109.html</link>
		<comments>http://www.netroby.com/article-3109.html#comments</comments>
		<pubDate>Wed, 25 Aug 2010 01:45:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3109</guid>
		<description><![CDATA[Firefox 4.0 Beta 4己经发布了，下载地址：http://www.mozilla.com/en-US/firefox/all-beta.html. 发行注记看这里：http://www.mozilla.com/en-US/firefox/4.0b4/releasenotes/]]></description>
			<content:encoded><![CDATA[<p>Firefox 4.0 Beta 4己经发布了，下载地址：<a href="http://www.mozilla.com/en-US/firefox/all-beta.html">http://www.mozilla.com/en-US/firefox/all-beta.html</a>. 发行注记看这里：<a href="http://www.mozilla.com/en-US/firefox/4.0b4/releasenotes/">http://www.mozilla.com/en-US/firefox/4.0b4/releasenotes/</a></p>
<p>功能上的改变，主要是一个Firefox Sync内置，不再以插件形式提供。这一点，还真的不好说是件好事，因为同步功能组件，内嵌到Firefox里头，以后要更新，就需要重新分发一次整个Firefox，而不是单个组件。模块化，插件才是Firefox的特色，没必要学Chromium.</p>
<p>其它改进都不大。稳定性应该有增强。</p>
<p>前面风传的D2D加速页面渲染，我看是没有实现，根据Firefox官方说明，需要direct x 10显卡才能开启。我试着按照提供的方法，强制开启试试，结果显示，开启没有成功。输入about:support，还是显示未开启，看来传言不真实啊。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3225.html" title="Firefox 3.6.9 及 4.0 Beta 5发布了">Firefox 3.6.9 及 4.0 Beta 5发布了</a></li><li><a href="http://www.netroby.com/article-3107.html" title="浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。">浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。</a></li><li><a href="http://www.netroby.com/article-3026.html" title="拒绝xss攻击，加固Firefox安全">拒绝xss攻击，加固Firefox安全</a></li><li><a href="http://www.netroby.com/article-3003.html" title="推荐T&#038;T的Firefox插件版客户端">推荐T&#038;T的Firefox插件版客户端</a></li><li><a href="http://www.netroby.com/article-2942.html" title="Firefox GreaseMonkey脚本推荐">Firefox GreaseMonkey脚本推荐</a></li><li><a href="http://www.netroby.com/article-2854.html" title="Firefox的品质下滑稳定性降低？">Firefox的品质下滑稳定性降低？</a></li><li><a href="http://www.netroby.com/article-2842.html" title="Firefox 3.6.7更新">Firefox 3.6.7更新</a></li><li><a href="http://www.netroby.com/article-2584.html" title="Firefox 3.6.6发布，修正崩溃及插件分离外置机置">Firefox 3.6.6发布，修正崩溃及插件分离外置机置</a></li><li><a href="http://www.netroby.com/article-2556.html" title="想要个性化Firefox界面？Personas帮你搞定">想要个性化Firefox界面？Personas帮你搞定</a></li><li><a href="http://www.netroby.com/article-2552.html" title="Firefox 3.6.4正式发布">Firefox 3.6.4正式发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3109.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。</title>
		<link>http://www.netroby.com/article-3107.html</link>
		<comments>http://www.netroby.com/article-3107.html#comments</comments>
		<pubDate>Wed, 25 Aug 2010 01:13:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[prefetch]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3107</guid>
		<description><![CDATA[现代浏览器都开始关注dns预查询以及页面预加载功能。预加载功能，可以这么理解，就是当你访问一个网站之前，先在后台预请求dns解析，并预加载页面。]]></description>
			<content:encoded><![CDATA[<p>现代浏览器都开始关注dns预查询以及页面预加载功能。预加载功能，可以这么理解，就是当你访问一个网站之前，先在后台预请求dns解析，并预加载页面。</p>
<p>根据网上查阅到的资料,chrome和firefox都有不同程度的支持。但是远远不够。</p>
<p>我有一个想法，期待这两个开源浏览器能够实现它。当浏览网页的时候，我们手握着的鼠标指针，往往会跟着我们视线焦点进行移动，如果看到感 兴趣的链接，我们就会快速的点击它。</p>
<p>那么在这个过程中，我们就可以做一点改进，当我们鼠标距离某个链接很近的时候，比如50px,或者更近一点24px，我们的浏览器就开始获得这个链接的地址，并进行dns解析和预加载。这样就会很精准的进行预加载过程，真正提升我们的浏览体验。这种方法，是真正的按需加载，真正发挥了预加载的效果。</p>
<p>我己经向firefox和chrome提交了BUG, 虽然不是一个BUG,但是新特性请求，我还找不到更好的提交方法，只有先把它们发到BUG里面。希望有开发 人员或产品经理会看到。</p>
<p>大家帮忙一起声援一下，留言什么的都可以。期待这个想法可以变成现实。</p>
<p><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=590375">https://bugzilla.mozilla.org/show_bug.cgi?id=590375</a><br />
<a href="http://code.google.com/p/chromium/issues/detail?id=53273">http://code.google.com/p/chromium/issues/detail?id=53273</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-869.html" title="Chrome和Firefox蚕食IE市场份额">Chrome和Firefox蚕食IE市场份额</a></li><li><a href="http://www.netroby.com/article-3225.html" title="Firefox 3.6.9 及 4.0 Beta 5发布了">Firefox 3.6.9 及 4.0 Beta 5发布了</a></li><li><a href="http://www.netroby.com/article-3109.html" title="Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持">Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持</a></li><li><a href="http://www.netroby.com/article-3026.html" title="拒绝xss攻击，加固Firefox安全">拒绝xss攻击，加固Firefox安全</a></li><li><a href="http://www.netroby.com/article-3003.html" title="推荐T&#038;T的Firefox插件版客户端">推荐T&#038;T的Firefox插件版客户端</a></li><li><a href="http://www.netroby.com/article-2942.html" title="Firefox GreaseMonkey脚本推荐">Firefox GreaseMonkey脚本推荐</a></li><li><a href="http://www.netroby.com/article-2854.html" title="Firefox的品质下滑稳定性降低？">Firefox的品质下滑稳定性降低？</a></li><li><a href="http://www.netroby.com/article-2842.html" title="Firefox 3.6.7更新">Firefox 3.6.7更新</a></li><li><a href="http://www.netroby.com/article-2584.html" title="Firefox 3.6.6发布，修正崩溃及插件分离外置机置">Firefox 3.6.6发布，修正崩溃及插件分离外置机置</a></li><li><a href="http://www.netroby.com/article-2556.html" title="想要个性化Firefox界面？Personas帮你搞定">想要个性化Firefox界面？Personas帮你搞定</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3107.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VIM+Dropbox安全存放你的密码</title>
		<link>http://www.netroby.com/article-3104.html</link>
		<comments>http://www.netroby.com/article-3104.html#comments</comments>
		<pubDate>Tue, 24 Aug 2010 02:40:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[加密]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3104</guid>
		<description><![CDATA[VIM+Dropbox？这两个好象风马牛不相及。安全存放密码？什么意思？把你的密码，使用VIM编辑并存放在一 个Blowfish加密后的文件里面，用Dropbox同步到云端，既可以保证密码文件不会丢，也可以保证密码不被泄漏，被其它人看到。]]></description>
			<content:encoded><![CDATA[<p>VIM+Dropbox？这两个好象风马牛不相及。安全存放密码？什么意思？把你的密码，使用VIM编辑并存放在一 个Blowfish加密后的文件里面，用Dropbox同步到云端，既可以保证密码文件不会丢，也可以保证密码不被泄漏，被其它人看到。</p>
<p>Blowfish算法虽然是公开的。但是你可以通过设置一个高强度的密码，比如长48位，包含字母，数字，标点符号在内的密匙，来加强安全性。这样就算别人想破解，也需要耗费很长的时间。</p>
<p>怎么用VIM给文件加密呢？</p>
<p>很简单，用VIM打开一个文件。比如Vim pass.txt，随意输入一些内容。然后输入:X, VIM会询问你要一个密匙，我们现在就设一个很长的密匙。</p>
<blockquote><p>mygcdjmyxzg+-,1237788510&#8242;`^gcdtyxjzg</p></blockquote>
<p>保存退出后，试着用VIM打开文件，会弹出一个输入框，要求你输入密码 ，如果你输错了。显示的内容就会是乱码。如果输入对了，就会显示正确的内容。</p>
<p>把这个文件移动到DropBox同步目录下面吧。以后它就在云端了，不管你是在家里，还是在公司，都能共享这个文件了 。<br />
什么服务器密码，FTP密码，数据库密码，银行账号，网站账号，都可以写在里面，只要确保VIM加密的密匙够安全，你的密码就是安全的。<br />
想想看，你平时都把密码放在什么地方呢？邮箱里？邮箱会有可能被盗。QQ记事本里？QQ密码也可能会被盗。放自己服务器上？服务器也可能会被黑。既然都不能保证我们的安全，那么倒不如把密码写到文件里，用可靠的算法及加密工具保护起来。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3076.html" title="Debian配置彩色shell和彩色的VIM">Debian配置彩色shell和彩色的VIM</a></li><li><a href="http://www.netroby.com/article-3054.html" title="Vim-custom 0.2.0 发布(vim7.3正式版)">Vim-custom 0.2.0 发布(vim7.3正式版)</a></li><li><a href="http://www.netroby.com/article-3033.html" title="Vim-custom 0.1.9发布基于vim 7.3 Beta F">Vim-custom 0.1.9发布基于vim 7.3 Beta F</a></li><li><a href="http://www.netroby.com/article-2996.html" title="Vim-custom 更新0.1.8(VIM 7.3 Beta e)">Vim-custom 更新0.1.8(VIM 7.3 Beta e)</a></li><li><a href="http://www.netroby.com/article-2863.html" title="VIM Grep使用教程">VIM Grep使用教程</a></li><li><a href="http://www.netroby.com/article-2807.html" title="Vim Custom 0.1.6发布，还原纯正vim使用体验">Vim Custom 0.1.6发布，还原纯正vim使用体验</a></li><li><a href="http://www.netroby.com/article-2392.html" title="vim custom 0.1.5 更新">vim custom 0.1.5 更新</a></li><li><a href="http://www.netroby.com/article-1925.html" title="Vim Custom 0.1.4 正式发布">Vim Custom 0.1.4 正式发布</a></li><li><a href="http://www.netroby.com/article-1764.html" title="vim custom 0.1.3 发布">vim custom 0.1.3 发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3104.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>windows XP ,Ubuntu 双系统安全删除ubuntu的方法</title>
		<link>http://www.netroby.com/article-3102.html</link>
		<comments>http://www.netroby.com/article-3102.html#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:29:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3102</guid>
		<description><![CDATA[ubuntu 10.04效率真低，实在不能忍受了。于是想把它干掉。以前因为操作不当，连硬盘上原有的数据都丢了，现在找到一个完整 安全的操作方法。]]></description>
			<content:encoded><![CDATA[<p>ubuntu 10.04效率真低，实在不能忍受了。于是想把它干掉。以前因为操作不当，连硬盘上原有的数据都丢了，现在找到一个完整 安全的操作方法。</p>
<p>1. 用MbrFix安全格式化掉MBR引导区记录。</p>
<p>下载MbrFix:<a href="http://www.sysint.no/products/Download/tabid/536/language/nb-NO/Default.aspx"> http://www.sysint.no/products/Download/tabid/536/language/nb-NO/Default.aspx</a></p>
<p>打开CMD命令行，CD到MbrFix所在目录，执行</p>
<pre>MbrFix /drive 0 fixmbr /yes
</pre>
<p>2. 下载MaxDos，重启后进入MaxDos,用PartitionMagic工具将Linux分区转成NTFS或者FAT32<br />
MaxDos: <a href="http://pzz.cn/soft/MaxDOS_71_Plus.rar">http://pzz.cn/soft/MaxDOS_71_Plus.rar</a></p>
<p>千万不要用Windows自带的磁盘管理工具来做这个工作，会让你的数据完全弄坏掉。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-2799.html" title="ubuntu下面安装php5-fpm后编译eaccelerator">ubuntu下面安装php5-fpm后编译eaccelerator</a></li><li><a href="http://www.netroby.com/article-2472.html" title="最适合作为服务器系统的linux为debian">最适合作为服务器系统的linux为debian</a></li><li><a href="http://www.netroby.com/article-1914.html" title="Ubuntu安装Unix Bench">Ubuntu安装Unix Bench</a></li><li><a href="http://www.netroby.com/article-1773.html" title="寻找最快最新的ubuntu软件源">寻找最快最新的ubuntu软件源</a></li><li><a href="http://www.netroby.com/article-1730.html" title="Crontab的一些使用提示">Crontab的一些使用提示</a></li><li><a href="http://www.netroby.com/article-1724.html" title="ubuntu远程无密码登录ssh设置">ubuntu远程无密码登录ssh设置</a></li><li><a href="http://www.netroby.com/article-1716.html" title="推荐使用ubuntu作为工作平台">推荐使用ubuntu作为工作平台</a></li><li><a href="http://www.netroby.com/article-1714.html" title="ubuntu 下可以用picasa for linux">ubuntu 下可以用picasa for linux</a></li><li><a href="http://www.netroby.com/article-1712.html" title="ubuntu Lucid安装java jdk jre 环境">ubuntu Lucid安装java jdk jre 环境</a></li><li><a href="http://www.netroby.com/article-1701.html" title="ubuntu firefox and thunderbird minimal to tray plugins firetray">ubuntu firefox and thunderbird minimal to tray plugins firetray</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3102.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 13 更好的linux发行版</title>
		<link>http://www.netroby.com/article-3098.html</link>
		<comments>http://www.netroby.com/article-3098.html#comments</comments>
		<pubDate>Mon, 23 Aug 2010 03:14:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3098</guid>
		<description><![CDATA[为了能用到linux下面那么多精炼的开发工具。我这两天一直在倒腾linux发行版， windows系统的局限性越来越明显了。在debian,ubuntu,fedora之间来回折腾良久之后，阿米豆腐，终于在把自己快折腾疯了的情况下，我得出一个结论：fedora是一个更好的发行版，是所有发行版中，更适合用来做开发环境的系统。]]></description>
			<content:encoded><![CDATA[<p>为了能用到linux下面那么多精炼的开发工具。我这两天一直在倒腾linux发行版， windows系统的局限性越来越明显了。在debian,ubuntu,fedora之间来回折腾良久之后，阿米豆腐，终于在把自己快折腾疯了的情况下，我得出一个结论：fedora是一个更好的发行版，是所有发行版中，更适合用来做开发环境的系统。</p>
<p>debian是最稳定的发行版，因为它只求稳定，故软件包版本老旧。一个发行版里面会有很多的软件包，软件包的品质不一，发行版想获得较高的全局稳定性，那其中的任竟一个软件包都要经过严格的测试和长时间稳定性检验，确认软件包稳定，无兼容性问题，不与其它软件包相冲突，这才能证明它是稳定的。所以我们拿到手的debian，哪怕是最新的版本号，里面的软件包们，其实也几乎己经老朽了。如果你是潮人，开发者，那么debian不适合你。用来做桌面开发环境，debian有点太老了。它应该被使用在那些对安全和稳定性要求更高的服务器上。</p>
<p>ubuntu真是个鸡肋。让人食之无味，弃之可惜。它的软件包版本，介乎于最新和最旧之间，比fedora的软件包版本通常要旧一些，比debian的软件包版本通常要新一些。同时由于Ubuntu发行版商业味道很浓，被强制捆绑了很多东西，使系统变得很臃肿，对系统资源的占用和消耗是三款发行版中最大的一个。</p>
<p>debian可以订制最小化安装，同时由于用了老旧稳定的软件包，系统资源占用控制得比较理想，内存占用可以控制在很小。ubuntu则不然，半年一次的发行频率，过度的商业化设计开发，产品质量反而不如fedora, debian。在同样配置的电脑上，开启firefox浏览器，后台跑着apache+mysql服务， ubuntu占用内存长期居高于450M以上，而fedora则仅250M＋. debian也差不多是这个水平。再看系统稳定性和是否可以平滑升级，ubuntu也做的不好。我的Ubuntu升级老出问题，甚至出现升级后连开机也开不了的 情况。我的老爷机只有768M内存，ubuntu可把我的PC累坏了，一下子就可以占掉将近500M内存，于是我只有把眼光投向fedora 13 了。</p>
<p>Fedora 13 前面的发行版我不是没用过，只是那时Fedora问题相当多，BUG也很多，不堪使用。现在拿到手的Fedora 13，让我感觉焕然一新，首先Fedora 13安装过程比以前简化了许多。对老爷机的硬件驱动支持的相当不错，可以自动安装好硬件驱动，唯一遗憾的是我的Fx 5200显卡开不了Compiz特效，一开就花屏，不过我主要用linux来做开发环境的，这个问题倒也不是很严重。安装很顺利，跟ubuntu相比，没有很差的地方，友好度不相上下。</p>
<p>安装Fedora后，我很顺利的用YUM安装了httpd和mysql以及php, 跟ubuntu的操作方式有着大同小异，操作不甚难，一些不懂的地方，Google一下就可以找到答案。</p>
<p>把httpd＋mysql跑起来，再开Firefox找几个网页点开。看看这个时候的CPU，内存的占用情况。发现情况比ubuntu下面要好得多。CPU起伏不定，不好计算，但内存占用却是令我满意，仅占用250M上下，相比之下ubuntu占用内存450M以上。Fedora省下更多的内存给应用程序来使用，ubuntu自己吃掉一大半内存，留给应用程序的就不多了。</p>
<p>再来看应用界面，Fedora的整个界面，看起来更专业一点。整 个图标，整个UI窗口，控件，观感统一而协调，蓝色默认皮肤，看起来很IT，很专业。Ubuntu黑漆漆的界面，给人感觉很压抑。黑色啊！！！。。。</p>
<p>Fedora安装之后，很干净，连用视频播放器放个MKV视频，都找不到视频编码器，而且Firefox还没有装flash插件，我的个神啊！你看到这里，会不会跟我刚装好Fedora一样，手足无措呢。不过好在天无绝人之路，我找到了Fedora的第三方安装辅助工具<a href="http://www.easylifeproject.org/">http://www.easylifeproject.org/</a>，可以一次性帮你把系统所需的flash,视屏解码器，显卡驱动，更多的皮肤，Sun Java都安装好了。你所需要做的就是挑选好需要安装的组件，然后点安装就好了。同时它还可以帮你初步调优系统，增加可用性。</p>
<p>有了安装辅助工具，Fedora的配置就比ubuntu还要简单。相比之下，Ubuntu优势就不再那么突出了。</p>
<p>别急，没完呢。Fedora下面的软件包版本，是所有linux发行版中最前卫的一个，如果你是软件更新升级狂人，那么Fedora是你最好的归宿。Fedora 13里面，Git是1.7.2，VIM是7.2.411， 都比debian和ubuntu下面要新。</p>
<p>我估摸着Fedora系统资源占用控制得比较好的主要原因，也许是因为它用的软件都是新版。稳定性这东西，没有绝对的。有的时候，很老很老的版本，会表现很稳定，有的时候，最新版本往往修复了BUG,而比旧一些的版本要稳定。那么在中间，上不上，下不下的版本，就很不行了。一些软件的BUG被显露出来以后，软件作者也发布了新版，你再不升级，就只有享受被BUG所折磨了。有些修复是在内存控制，CPU占用优化，或者算法改进上面，因此而带来的优化效果是很明显的，及时保持更新，是系统效率优化的关键因素之一。</p>
<p>Ubuntu在软件包升级方面，相对要保守一些，所以很多软件，更新都不实时，往往要等一些时间，才可以被升级到最新版.</p>
<p>Fedora的稳定性还可以，在两天的过程中，没有经常出现崩溃，卡死的现象。应用程序之间的冲突，倒是有之的。这个时候，我们很容易发现起充突的两个程序，手动关掉其中一个，就可以保证系统平稳运行。比如Fedora 13的 firefox  adobe flash插件，跟dropbox可能会有冲突会造成CPU占用狂飙，我们需要在看视频的时候，把dropbox先退出。这样就行了。</p>
<p>Fedora对于开发者来说，拥有更新的开发工具，意味着可以享用工具软件新的特性，更好的性能，更好的使用体验。</p>
<p>推荐使用Fedora作为你的开发环境，让我们跟<em>Linus</em> Torvalds 一起用Fedora吧！</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-188.html" title="Fedora12正式发布">Fedora12正式发布</a></li><li><a href="http://www.netroby.com/article-3134.html" title="Fedora 13配置nginx + php-fpm教程">Fedora 13配置nginx + php-fpm教程</a></li><li><a href="http://www.netroby.com/article-3095.html" title="Fedora 13 gvim 菜单乱码">Fedora 13 gvim 菜单乱码</a></li><li><a href="http://www.netroby.com/article-2805.html" title="linux下面快速删除大量文件">linux下面快速删除大量文件</a></li><li><a href="http://www.netroby.com/article-1743.html" title="监控你的VPS,保障安全">监控你的VPS,保障安全</a></li><li><a href="http://www.netroby.com/article-1730.html" title="Crontab的一些使用提示">Crontab的一些使用提示</a></li><li><a href="http://www.netroby.com/article-1721.html" title="推荐一本git的好书ProGit">推荐一本git的好书ProGit</a></li><li><a href="http://www.netroby.com/article-1679.html" title="Linux基金会首次在中国设立分支机构">Linux基金会首次在中国设立分支机构</a></li><li><a href="http://www.netroby.com/article-1659.html" title="linux Shell编程基本知识">linux Shell编程基本知识</a></li><li><a href="http://www.netroby.com/article-871.html" title="Linux 内核 2.6.32.9 发布">Linux 内核 2.6.32.9 发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3098.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fedora 13 gvim 菜单乱码</title>
		<link>http://www.netroby.com/article-3095.html</link>
		<comments>http://www.netroby.com/article-3095.html#comments</comments>
		<pubDate>Sun, 22 Aug 2010 05:57:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[gvim]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3095</guid>
		<description><![CDATA[Fedora 13安装 gvim后，会出现菜单乱码，我们需要在~/.bashrc中增加一句export LANG="zh_CN.UTF-8"并保存。]]></description>
			<content:encoded><![CDATA[<p>Fedora 13安装 gvim后，会出现菜单乱码，我们需要在~/.bashrc中增加一句export LANG=&#8221;zh_CN.UTF-8&#8243;并保存。</p>
<p>退出终端，然后再打开一终端。输入Gvim，出来的gvim界面菜单己经没有乱码了。</p>
<p>Fedora的gvim 版本非常新。很好用。</p>
<p>再附一个配置文件，可以用于替换/etc/vimrc</p>
<pre id="bash" class="geshi">set fileencodings=utf-8,gb2312,gbk,gb18030
set nu!
set nowritebackup
set nocompatible
set bs=indent,eol,start
set ai
set nobackup
set viminfo='20,\"50
set history=50
set ruler
set sw=4
set ff=unix
set guioptions-=T
set cindent
set smartindent
set tabstop=4
set softtabstop=4
syntax on
colorscheme desert
set showcmd
if has("autocmd")
augroup fedora
autocmd!
autocmd BufReadPost *
\ if line("'\"") &gt; 0 &amp;&amp; line ("'\"") &lt;= line("mce_markerquot;) |
\ exe "normal! g'\"" |
\ endif
autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec  augroup END
endif
if has("cscope") &amp;&amp; filereadable("/usr/bin/cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
if filereadable("cscope.out")
cs add cscope.out
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
endif
if &amp;t_Co &gt; 2 || has("gui_running")
syntax on
set hlsearch
endif
filetype plugin on
if &amp;term=="xterm"
set t_Co=8
set t_Sb=[4%dm
set t_Sf=[3%dm
endif
let &amp;guicursor = &amp;guicursor . ",a:blinkon0"</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3134.html" title="Fedora 13配置nginx + php-fpm教程">Fedora 13配置nginx + php-fpm教程</a></li><li><a href="http://www.netroby.com/article-3098.html" title="Fedora 13 更好的linux发行版">Fedora 13 更好的linux发行版</a></li><li><a href="http://www.netroby.com/article-188.html" title="Fedora12正式发布">Fedora12正式发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3095.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu git gui spell check错误解决方案和diff设置</title>
		<link>http://www.netroby.com/article-3092.html</link>
		<comments>http://www.netroby.com/article-3092.html#comments</comments>
		<pubDate>Sat, 21 Aug 2010 02:10:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3092</guid>
		<description><![CDATA[ubuntu git gui spell check错误解决方案，主要是为了解决在ubuntu 下面，安装使用git gui时会出现的spell check错误。会提示你没有找到zh-cn字典。]]></description>
			<content:encoded><![CDATA[<p>ubuntu git gui spell check错误解决方案，主要是为了解决在ubuntu 下面，安装使用git gui时会出现的spell check错误。会提示你没有找到zh-cn字典。</p>
<p>解决方法就是执行下面命令，配置git全局变量，关掉spell字典检查功能。</p>
<pre id="bash" class="geshi">git config --global gui.spellingdictionary none</pre>
<p>现在打开git gui就不会再出现错误提示了。</p>
<p>git gui 的diff默认设置不对，我们要自行设置diff程序，测试过，可用的diff程序是 gvimdiff。</p>
<p>需要自行安装vim-gnome。然后gvim才可用。</p>
<pre id="bash" class="geshi">sudo aptitude install vim-gnome</pre>
<p>附我正使用的vim配置. /etc/vim/vimrc</p>
<blockquote><p>runtime! debian.vim<br />
set nobackup<br />
set nowritebackup<br />
set nu!<br />
set ai<br />
set cindent<br />
set smartindent<br />
set sw=4<br />
set tabstop=4<br />
set softtabstop=4<br />
set guioptions-=T<br />
set fileencodings=utf-8,gb2312,gbk,gb18030<br />
set showmatch<br />
set nocompatible<br />
syntax on<br />
colorscheme desert<br />
set showcmd<br />
set showmatch</p></blockquote>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3142.html" title="Git Update邮件通知设置">Git Update邮件通知设置</a></li><li><a href="http://www.netroby.com/article-3104.html" title="VIM+Dropbox安全存放你的密码">VIM+Dropbox安全存放你的密码</a></li><li><a href="http://www.netroby.com/article-3080.html" title="GIT从现有git仓库中移除跟踪对象">GIT从现有git仓库中移除跟踪对象</a></li><li><a href="http://www.netroby.com/article-3076.html" title="Debian配置彩色shell和彩色的VIM">Debian配置彩色shell和彩色的VIM</a></li><li><a href="http://www.netroby.com/article-3074.html" title="两本开源Git中文专业教程(译本)">两本开源Git中文专业教程(译本)</a></li><li><a href="http://www.netroby.com/article-3066.html" title="windows实战Git：msysGit+TortoiseGit环境配置">windows实战Git：msysGit+TortoiseGit环境配置</a></li><li><a href="http://www.netroby.com/article-3064.html" title="放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)">放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)</a></li><li><a href="http://www.netroby.com/article-3054.html" title="Vim-custom 0.2.0 发布(vim7.3正式版)">Vim-custom 0.2.0 发布(vim7.3正式版)</a></li><li><a href="http://www.netroby.com/article-3033.html" title="Vim-custom 0.1.9发布基于vim 7.3 Beta F">Vim-custom 0.1.9发布基于vim 7.3 Beta F</a></li><li><a href="http://www.netroby.com/article-2996.html" title="Vim-custom 更新0.1.8(VIM 7.3 Beta e)">Vim-custom 更新0.1.8(VIM 7.3 Beta e)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3092.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu 自启动SSH 转发</title>
		<link>http://www.netroby.com/article-3090.html</link>
		<comments>http://www.netroby.com/article-3090.html#comments</comments>
		<pubDate>Sat, 21 Aug 2010 02:03:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3090</guid>
		<description><![CDATA[ubuntu下面，可以通过SSH命令实现Pro那hx个xy, 并且可以实现启动时自动加载脚本。]]></description>
			<content:encoded><![CDATA[<p>ubuntu下面，可以通过SSH命令实现Pro那hx个xy, 并且可以实现启动时自动加载脚本。<br />
先写好sshpx.sh放到~/sshpx.sh</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">#!/bin/sh
killall -9 ssh
ssh -qTfnN -D 127.0.0.1:7070 -p 8822 root@domain.com</pre>
<p>-D 后面跟的是本地监听 的IP和端口号，-p是远程连接的端口，如果你有修改sshd的端口，就需要指定-p，默认-p 是22端口。<br />
接下来我们执行vim ~/.bash_login来建立一个启动时自动加载的脚本。</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">#!/bin/sh
/bin/sh ~/sshpx.sh</pre>
<p>保存一下。下次启动系统之后。就会自动执行sshpx脚本了。</p>
<p>如果发现ssh pro那hx个xy不能用了。就执行一下~/sshpx.sh,重新创建一个通道连接。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3058.html" title="自动更改SSH密码，定时断开SSH连接">自动更改SSH密码，定时断开SSH连接</a></li><li><a href="http://www.netroby.com/article-2874.html" title="防止SSH连接超时或者冻结">防止SSH连接超时或者冻结</a></li><li><a href="http://www.netroby.com/article-1903.html" title="SSH VS OpenVPN速度测试">SSH VS OpenVPN速度测试</a></li><li><a href="http://www.netroby.com/article-1776.html" title="部署SSH公匙，免密登录SSHD">部署SSH公匙，免密登录SSHD</a></li><li><a href="http://www.netroby.com/article-1724.html" title="ubuntu远程无密码登录ssh设置">ubuntu远程无密码登录ssh设置</a></li><li><a href="http://www.netroby.com/article-1446.html" title="SSH登录服务器很慢的解决方法">SSH登录服务器很慢的解决方法</a></li><li><a href="http://www.netroby.com/article-1094.html" title="Free* SSH file transfer, terminal and tunneling!">Free* SSH file transfer, terminal and tunneling!</a></li><li><a href="http://www.netroby.com/article-206.html" title="Windows下配置tortoise免输入密码登陆ssh">Windows下配置tortoise免输入密码登陆ssh</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3090.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>迷你飞信 测试版(v0.9.0530)</title>
		<link>http://www.netroby.com/article-3084.html</link>
		<comments>http://www.netroby.com/article-3084.html#comments</comments>
		<pubDate>Fri, 20 Aug 2010 00:38:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[飞信]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3084</guid>
		<description><![CDATA[欢迎您使用轻巧、敏捷、绿色的迷你飞信!迷你飞信是飞信PC客户端的精简版本,提供了飞信最核心的即时消息和短信功能,程序体积小(1M)、运行速度快、资源占用低、绿色免安装.]]></description>
			<content:encoded><![CDATA[<p>欢迎您使用轻巧、敏捷、绿色的迷你飞信!迷你飞信是飞信PC客户端的精简版本,提供了飞信最核心的即时消息和短信功能,程序体积小(1M)、运行速度快、资源占用低、绿色免安装.迷你飞信 测试版(v0.9.0530)产品功能特点如下:</p>
<p>*真正迷你轻巧的主界面吸附于屏幕边缘,随心所欲.<br />
*简洁而高效的消息会话模式,收发自如.<br />
*输入移动手机号即可给非好友发送短信,舒适快捷.<br />
*主界面可以锁定在所有窗口最前端,显而易见.<br />
*使用快捷键即可完成所有操作,一键抵达.<br />
*仅输入手机号即可添加好友,简单清爽.<br />
*通过首字母、拼音、昵称或手机号均可快速定位好友,轻松畅聊.</p>
<p>迷你飞信键盘快捷使用帮助：</p>
<table style="width: 539px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="155">快捷方式</td>
<td width="200">功能</td>
<td width="184">适用界面</td>
</tr>
<tr>
<td width="155">Alt+2</td>
<td width="200">隐藏或显示主界面，可自定义</td>
<td width="184">主界面</td>
</tr>
<tr>
<td width="155">Ctrl+Enter<br />
Alt+Enter<br />
Alt+S</td>
<td width="200">发送消息</td>
<td width="184">发送消息界面</td>
</tr>
<tr>
<td width="155">Ctrl+R</td>
<td width="200">回复当前消息</td>
<td width="184">收到消息界面</td>
</tr>
<tr>
<td width="155">Enter</td>
<td width="200">消息换行、确认操作</td>
<td width="184">所有面板</td>
</tr>
<tr>
<td width="155">Esc</td>
<td width="200">关闭当前窗口</td>
<td width="184">除主界面外所有面板</td>
</tr>
<tr>
<td width="155">PageDown/PageUp</td>
<td width="200">多条消息翻页</td>
<td width="184">收到消息界面</td>
</tr>
<tr>
<td width="155">鼠标单击</td>
<td width="200">激活（显示）主界面</td>
<td width="184">托盘图标</td>
</tr>
<tr>
<td width="155">鼠标滚轮</td>
<td width="200">上下滚动好友列表</td>
<td width="184">好友列表</td>
</tr>
<tr>
<td width="155">输入非好友手机号</td>
<td width="200">发送直接短信</td>
<td width="184">主界面</td>
</tr>
<tr>
<td width="155">输入好友名字、拼音、或缩写</td>
<td width="200">快速筛选好友</td>
<td width="184">主界面</td>
</tr>
</tbody>
</table>
<p><strong>下载:</strong><a href="http://fetion.chinacache.net/FetionSmart_0.9.0530.rar" target="_blank">迷你飞信测试版（v0.9.0530）</a></p>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-109.html" title="不要相信meta refresh">不要相信meta refresh</a></li><li><a href="http://www.netroby.com/article-1120.html" title="ZoomVps $5 VPS热售中">ZoomVps $5 VPS热售中</a></li><li><a href="http://www.netroby.com/article-851.html" title="openvz的缺点">openvz的缺点</a></li><li><a href="http://www.netroby.com/article-151.html" title="zend studio 7.1beta使用sun jre Version 6 Update 17 ">zend studio 7.1beta使用sun jre Version 6 Update 17 </a></li><li><a href="http://www.netroby.com/article-2472.html" title="最适合作为服务器系统的linux为debian">最适合作为服务器系统的linux为debian</a></li><li><a href="http://www.netroby.com/article-1098.html" title="Mozilla Firefox 3.6.2 正式版发布">Mozilla Firefox 3.6.2 正式版发布</a></li><li><a href="http://www.netroby.com/article-181.html" title="为什么女人出门会这么慢">为什么女人出门会这么慢</a></li><li><a href="http://www.netroby.com/article-1154.html" title="感冒时,别喝牛奶！">感冒时,别喝牛奶！</a></li><li><a href="http://www.netroby.com/article-375.html" title="晚上地震，逃出去躲半天，现在才回">晚上地震，逃出去躲半天，现在才回</a></li><li><a href="http://www.netroby.com/article-30.html" title="那些故事">那些故事</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3084.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIT从现有git仓库中移除跟踪对象</title>
		<link>http://www.netroby.com/article-3080.html</link>
		<comments>http://www.netroby.com/article-3080.html#comments</comments>
		<pubDate>Thu, 19 Aug 2010 07:45:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3080</guid>
		<description><![CDATA[今天用Git时遇到一个问题，我把一个缓存目录加入了Git，这个缓存目录不应该被加入Git的。因为它会生成大量的缓存文件，时时刻刻都在发生变化。这样会给git仓库带来很大的压力。]]></description>
			<content:encoded><![CDATA[<p>今天用Git时遇到一个问题，我把一个缓存目录加入了Git，这个缓存目录不应该被加入Git的。因为它会生成大量的缓存文件，时时刻刻都在发生变化。这样会给git仓库带来很大的压力。<br />
于是仔细研究分析了我所处的状况，发现我只要这些文件在生产服务器端有保留。本地开发环境下面，缓存目录可以为空。因此，我就前往生产服务器端，执行下面的命令，以从下一个提交起，不跟踪此目录。</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">git rm --cached -r data/cache</pre>
<p>git rm &#8211;cached意为保留当前文件，但此文件在Git库中移除。接下来我们还要在.gitignore中增加一行</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">data/cache/*</pre>
<p>然后git add . 并提交 git commit -m &#8220;remove cache directory&#8221;</p>
<p>这样就能移除不需要加入git的文件和目录，同时保存生产环境现有的缓存文件。这样做是安全的。</p>
<p>记住千万不能搞反了。如果你在本地执行移除操作，那么下次提交到服务器时，你就等着杯具吧。</p>
<p>因为现有的目录和文件得以保留，所以后面我们在生产服务器端再执行pull和checkout -f操作，这些未跟踪的目录也将不会受到影响。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3142.html" title="Git Update邮件通知设置">Git Update邮件通知设置</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3074.html" title="两本开源Git中文专业教程(译本)">两本开源Git中文专业教程(译本)</a></li><li><a href="http://www.netroby.com/article-3066.html" title="windows实战Git：msysGit+TortoiseGit环境配置">windows实战Git：msysGit+TortoiseGit环境配置</a></li><li><a href="http://www.netroby.com/article-3064.html" title="放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)">放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)</a></li><li><a href="http://www.netroby.com/article-1782.html" title="在ubuntu server 10.04下面编译安装git 和mercurial最新版本 ">在ubuntu server 10.04下面编译安装git 和mercurial最新版本 </a></li><li><a href="http://www.netroby.com/article-1728.html" title="Git Hooks脚本研究及中文支持探讨">Git Hooks脚本研究及中文支持探讨</a></li><li><a href="http://www.netroby.com/article-1726.html" title="Git强制checkout解决代码仓库不同步的问题">Git强制checkout解决代码仓库不同步的问题</a></li><li><a href="http://www.netroby.com/article-1721.html" title="推荐一本git的好书ProGit">推荐一本git的好书ProGit</a></li><li><a href="http://www.netroby.com/article-1719.html" title="ubuntu 安装git进行版本管理">ubuntu 安装git进行版本管理</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3080.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian配置彩色shell和彩色的VIM</title>
		<link>http://www.netroby.com/article-3076.html</link>
		<comments>http://www.netroby.com/article-3076.html#comments</comments>
		<pubDate>Wed, 18 Aug 2010 21:32:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3076</guid>
		<description><![CDATA[Debian默认安装没有ubuntu般华丽，shell和vim都只有单调的一种颜色显示，如果需要显示彩色的，请跟我一起动手配置吧。]]></description>
			<content:encoded><![CDATA[<p>Debian默认安装没有ubuntu般华丽，shell和vim都只有单调的一种颜色显示，如果需要显示彩色的，请跟我一起动手配置吧。</p>
<p>首先我们升级并安装一下我们的软件包, 安装多彩term，升级vim。debian默认的shell只显示8位颜色，我们要让它多显示一些颜色。</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">aptitude -t testing install ncurses-term vim
echo 'runtime! debian.vim
set nobackup
set nu!
set ai
set cindent
set smartindent
set sw=4
set tabstop=4
set softtabstop=4
set fileencodings=utf-8,gb2312,gbk,gb18030
set guifont=Courier_New:h10
set showmatch
set nocompatible
syntax on
colorscheme desert
set showcmd
set showmatch' &gt; /etc/vim/vimrc
</pre>
<p>修改~/.bashrc配置文件，以显示256位颜色，并且显示彩色的ls.</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; "># ~/.bashrc: executed by bash(1) for non-login shells.
export TERM=xterm-256color

export PS1='\h:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'</pre>
<p>保存配置文件，退出并重新用putty登录ssh.界面应该有新的面貌了。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3104.html" title="VIM+Dropbox安全存放你的密码">VIM+Dropbox安全存放你的密码</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3054.html" title="Vim-custom 0.2.0 发布(vim7.3正式版)">Vim-custom 0.2.0 发布(vim7.3正式版)</a></li><li><a href="http://www.netroby.com/article-3033.html" title="Vim-custom 0.1.9发布基于vim 7.3 Beta F">Vim-custom 0.1.9发布基于vim 7.3 Beta F</a></li><li><a href="http://www.netroby.com/article-2996.html" title="Vim-custom 更新0.1.8(VIM 7.3 Beta e)">Vim-custom 更新0.1.8(VIM 7.3 Beta e)</a></li><li><a href="http://www.netroby.com/article-2966.html" title="Debian 6.0 &#8220;Squeeze&#8221; frozen">Debian 6.0 &#8220;Squeeze&#8221; frozen</a></li><li><a href="http://www.netroby.com/article-2959.html" title="Debian安装nginx,php,mysql,wordpress教程">Debian安装nginx,php,mysql,wordpress教程</a></li><li><a href="http://www.netroby.com/article-2891.html" title="Debian混合安装软件包，稳定版，测试版">Debian混合安装软件包，稳定版，测试版</a></li><li><a href="http://www.netroby.com/article-2863.html" title="VIM Grep使用教程">VIM Grep使用教程</a></li><li><a href="http://www.netroby.com/article-2807.html" title="Vim Custom 0.1.6发布，还原纯正vim使用体验">Vim Custom 0.1.6发布，还原纯正vim使用体验</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3076.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>两本开源Git中文专业教程(译本)</title>
		<link>http://www.netroby.com/article-3074.html</link>
		<comments>http://www.netroby.com/article-3074.html#comments</comments>
		<pubDate>Wed, 18 Aug 2010 05:52:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3074</guid>
		<description><![CDATA[最近大肆折腾Git，原因是Mercurial己经被遗弃。Git的学习曲线并不陡，简单的说来，10分钟就能上手，但是日常工作需要进一步深入Git, 这个时候，我们就迫切需要一本好的教程了。]]></description>
			<content:encoded><![CDATA[<p>最近大肆折腾<a href="http://www.netroby.com/?s=git">Git</a>，原因是<a href="http://www.netroby.com/article-3064.html">Mercurial己经被遗弃</a>。Git的<a href="http://www.netroby.com/?s=%E5%AD%A6%E4%B9%A0">学习</a>曲线并不陡，简单的说来，10分钟就能上手，但是日常工作中需要进一步深入Git, 这个时候，我们就迫切需要一本好的<a href="http://www.netroby.com/?s=git+%E6%95%99%E7%A8%8B">教程</a>了。</p>
<p>下面看一下简单的Git<a href="http://www.netroby.com/?s=%E5%91%BD%E4%BB%A4">命令</a>。</p>
<div>
<div>
<h3><a href="http://www.netroby.com/?s=%E5%85%8B%E9%9A%86">克隆</a>（<a href="http://www.netroby.com/?s=clone">clone</a>）和创建一个补丁</h3>
<pre>$ git clone git://github.com/git/hello-world.git
$ cd hello-world
$ (edit files)
$ git add (files)
$ git commit -m 'Explain what I changed'
$ git format-patch origin/master
</pre>
</div>
</div>
<div>
<h3>新建<a href="http://www.netroby.com/?s=%E9%A1%B9%E7%9B%AE">项目</a>和<a href="http://www.netroby.com/?s=%E6%8F%90%E4%BA%A4">提交</a></h3>
<pre>$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
$ git commit -m 'Initial commit'
</pre>
</div>
<p>是不是很干净利落呢？日常<a href="http://www.netroby.com/?s=%E5%BA%94%E7%94%A8+%E5%BC%80%E5%8F%91">应用开发</a>过程中简单到只需聊聊几句命令即可。<br />
接下来重磅推荐的是两本教程，一本是《<a href="http://progit.org/book/zh/">Pro Git</a>》,一本是《<a href="http://sites.google.com/site/nanjunjie/download/Git_Magic_CN.pdf">Git Magic</a>》.<br />
《Pro Git》一书非常简单易懂，深入浅出的道出了Git的应用知识之方方面面。日常应用开发，读完此书足够。<br />
《Git Magic》一书内如其名，是一本非常深的书，在看完Pro Git之后，如需进一步深入了解Git,可以再看一看Git Magic。</p>
<p>Pro Git需要在线观看，Git Magic可以下载到编译好的<a href="http://www.netroby.com/?s=PDF">PDF</a>，大家可以根据自己需要，做出相应的选择。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3142.html" title="Git Update邮件通知设置">Git Update邮件通知设置</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3080.html" title="GIT从现有git仓库中移除跟踪对象">GIT从现有git仓库中移除跟踪对象</a></li><li><a href="http://www.netroby.com/article-3066.html" title="windows实战Git：msysGit+TortoiseGit环境配置">windows实战Git：msysGit+TortoiseGit环境配置</a></li><li><a href="http://www.netroby.com/article-3064.html" title="放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)">放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)</a></li><li><a href="http://www.netroby.com/article-1782.html" title="在ubuntu server 10.04下面编译安装git 和mercurial最新版本 ">在ubuntu server 10.04下面编译安装git 和mercurial最新版本 </a></li><li><a href="http://www.netroby.com/article-1728.html" title="Git Hooks脚本研究及中文支持探讨">Git Hooks脚本研究及中文支持探讨</a></li><li><a href="http://www.netroby.com/article-1726.html" title="Git强制checkout解决代码仓库不同步的问题">Git强制checkout解决代码仓库不同步的问题</a></li><li><a href="http://www.netroby.com/article-1721.html" title="推荐一本git的好书ProGit">推荐一本git的好书ProGit</a></li><li><a href="http://www.netroby.com/article-1719.html" title="ubuntu 安装git进行版本管理">ubuntu 安装git进行版本管理</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3074.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>巧用RAMDisk为firefox提速，兼济chrome,opera,IE</title>
		<link>http://www.netroby.com/article-3071.html</link>
		<comments>http://www.netroby.com/article-3071.html#comments</comments>
		<pubDate>Wed, 18 Aug 2010 02:25:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[内存]]></category>
		<category><![CDATA[加速]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3071</guid>
		<description><![CDATA[现在内存己经越来越大容量，随便一台机器都是1G，2G,我们在日常应用中，有一部分内存是空余的，没有发挥应有的作用。因此，不妨使用内存来做一个虚拟硬盘，把浏览器缓存目录设置在内存虚拟硬盘上，让内存快取快存来加速浏览器的页面呈现。]]></description>
			<content:encoded><![CDATA[<p>现在内存己经越来越大容量，随便一台机器都是1G，2G,我们在日常应用中，有一部分内存是空余的，没有发挥应有的作用。因此，不妨使用内存来做一个虚拟硬盘，把浏览器缓存目录设置在内存虚拟硬盘上，让内存快取快存来加速浏览器的页面呈现。</p>
<p>首先我们需要安装一个Ram disk虚拟软件。这里推荐一款免费的Ram disk虚拟软件。它就是Dataram RAMDisk, 你可以从<a href="http://memory.dataram.com/products-and-services/software/ramdisk/download-ramdisk">这里</a>下载对应操作系统的软件。</p>
<p>一路next安装没难度，安装好后，点击开始菜单，Dataram RAMDisk , Dataram RAMDisk configuration utility. 在打开的设置界面里设置Disksize为512M,如果你内存不够，设置64M的大小也就可以了 。选取Fat32 partition，其它选项默认，然后点击Start RAMDisk 就可以启用一块虚拟硬盘。</p>
<p>不过为了下次启动的时候能自动挂载虚拟硬盘，我们还需要进一步设置。点击Load and Save 标签，然后点下面的Save Disk Image Now,保存一下做好的虚拟硬盘镜象，然后勾选上面的Load Disk Image on Start up 复选框，好了，点击File 菜单=》 save setting,或者直接按Ctrl + S快捷键，保存配置。下次系统启动的时候，这些就可以生效了。</p>
<p>现在我们内存虚拟硬盘做好了，就可以开始设置我们的Firefox缓存目录。打开Firefox，输入about:config进入参数配置，新建一个String（字符串）变量。</p>
<p>browser.cache.disk.parent_directory <span style="color: #ff0000;"> h:\\</span></p>
<p>红色盘符是你刚刚做成功的内存虚拟硬盘。重启Firefox，输入about:cache，查看设置是否有生效。</p>
<p>chrome更改缓存目录的方法，在桌面快捷方式上，点右键，属性，我们要在目标这一栏里边加点料。</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">"C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome SxS\Application\chrome.exe" --disk-cache-dir=h:\temp\</pre>
<p>&#8211;disk-cache-dir=h:\temp\ 指定的就是内存虚拟盘的目录。</p>
<p>opera更改缓存目录的方法，打开opera浏览器。然后输入about:config，搜索Cache Directory4，在显示出来的两个选项的框里面，都设置成H:\opera\cache\ 保存并重启opera。即可生效。</p>
<p>IE更改缓存目录的方法，在Interenet Explorer快捷方式上点鼠标右键，属性，Interenet临时文件，点设置，移动文件夹，选H盘，系统会要求你重启下，以便让设置生效。</p>
<p>经过一番设置，电脑上的所有浏览器都用上了内存虚拟硬盘缓存，上网速度会变得很快。</p>
<p>内存虚拟硬盘，还可以用来放windows的各种临时目录，需要设置的话，右键点击我的电脑，属性，高级，环境变量，设置对应的环境变量，重启系统后生效。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-81.html" title="谷歌研究报告显示内存引起的故障率极高">谷歌研究报告显示内存引起的故障率极高</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3071.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz哪个版本最好？康盛专家告诉你。</title>
		<link>http://www.netroby.com/article-3069.html</link>
		<comments>http://www.netroby.com/article-3069.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 09:33:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[discuz]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3069</guid>
		<description><![CDATA[
综合考虑各种因素后，康盛创想的专家技术团队提出，使用Discuz!6.1.0产品能够完全符合合作方的要求，它技术成熟可靠，功能强大，性价比高，能在满足需求的前提下，为合作方最大程度地节省资金。]]></description>
			<content:encoded><![CDATA[<p>综合考虑各种因素后，康盛创想的专家技术团队提出，使用Discuz!6.1.0产品能够完全符合合作方的要求，它技术成熟可靠，功能强大，性价比高，能在满足需求的前提下，为合作方最大程度地节省资金。</p>
<p>Discuz!6.1.0产品优点众多：</p>
<p>首先，它是一款具有康盛创想创立之时，便拥有自身知识产权的拳头产品，之后，更是经过不断研发、改进，通过数以百万计网站的运营实践检验，其卓越的性能，得到业界一致首肯。</p>
<p>其次，它还提供了很大限度的个性化设定。众多功能在后台预留开关，可按企业需要启用。尤其是中华网这样的政府网站，需要面对众多突发性事件，方便、友好，全面的后台管理是重中之重。</p>
<p>再其次，Discuz!产品具有周密的安全部署和攻击防护，可以将安全检查运用于每一个Discuz!代码之中。</p>
<p>此外，基于长期对社区运营管理的丰富经验，康盛创想的专家团队可以提供专业的客户培训。</p>
<p>通过密切交流，合作方愉快地接受了康盛创想提出的技术实施方案。</p>
<p>Discuz! v6.1.0F 简体中文版 GBK<br />
<a href="http://down.chinaz.com/soft/22572.htm" target="_blank">http://down.chinaz.com/soft/22572.htm</a><br />
Discuz! v6.1.0F 简体中文版 UTF-8<br />
<a href="http://down.chinaz.com/soft/23025.htm" target="_blank">http://down.chinaz.com/soft/23025.htm</a><br />
Discuz! v6.1.0F 繁体中文版 UTF-8<br />
<a href="http://down.chinaz.com/soft/23026.htm" target="_blank">http://down.chinaz.com/soft/23026.htm</a><br />
Discuz! v6.1.0F 繁体中文版 Big5<br />
<a href="http://down.chinaz.com/soft/23027.htm" target="_blank">http://down.chinaz.com/soft/23027.htm</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-2484.html" title="Comsenz要被收购了？被我不幸猜中了">Comsenz要被收购了？被我不幸猜中了</a></li><li><a href="http://www.netroby.com/article-1841.html" title="Comsenz的未来很迷茫，谁的错？！">Comsenz的未来很迷茫，谁的错？！</a></li><li><a href="http://www.netroby.com/article-1011.html" title="Discuz！X 即将开启公测，永不过期的邀请欢迎你">Discuz！X 即将开启公测，永不过期的邀请欢迎你</a></li><li><a href="http://www.netroby.com/article-735.html" title="discuz 7.2和supesite7.5设置rewrite的方法">discuz 7.2和supesite7.5设置rewrite的方法</a></li><li><a href="http://www.netroby.com/article-618.html" title="discuz首页版块列表调用最新贴子的解决方案">discuz首页版块列表调用最新贴子的解决方案</a></li><li><a href="http://www.netroby.com/article-488.html" title="Discuz官方论坛挂了，有图为证">Discuz官方论坛挂了，有图为证</a></li><li><a href="http://www.netroby.com/article-398.html" title="discuz 7.2插件开发(1.入门指引)">discuz 7.2插件开发(1.入门指引)</a></li><li><a href="http://www.netroby.com/article-221.html" title="discuz7.2不能上传附件的BUG(高!!!)">discuz7.2不能上传附件的BUG(高!!!)</a></li><li><a href="http://www.netroby.com/article-216.html" title="今天论坛更新到discuz7.2版本">今天论坛更新到discuz7.2版本</a></li><li><a href="http://www.netroby.com/article-210.html" title="discuz7.2 1126再次更新">discuz7.2 1126再次更新</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3069.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows实战Git：msysGit+TortoiseGit环境配置</title>
		<link>http://www.netroby.com/article-3066.html</link>
		<comments>http://www.netroby.com/article-3066.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 06:46:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3066</guid>
		<description><![CDATA[Git是一个分布式源代码版本管理控制程序. “Git 是一个由林纳斯·托瓦兹为了更好地管理linux内核开发而创立的分布式版本控制／软件配置管理软件。”- 维基百科中文。]]></description>
			<content:encoded><![CDATA[<p>Git是一个分布式源代码版本管理控制程序. <strong>“Git</strong> 是一个由林纳斯·托瓦兹为了更好地管理linux内核开发而创立的分布式版本控制／软件配置管理软件。”- 维基百科中文。<a href="http://zh.wikipedia.org/zh-cn/Git">http://zh.wikipedia.org/zh-cn/Git</a></p>
<p>当msysgit和TortoiseGit的开发，如火如荼的进行着，我们可以在windows上使用的git，也越来越强大了。虽然远未达到如同在linux上一样强力。但足够打败其它版本控制系统了。</p>
<p>1. 它足够稳定，linux的核心就是用它来托管的。数G大的源码仓库，依然稳定如山。</p>
<p>2. 它足够快，是所有版本控制程序中最快的一个。</p>
<p>3. 它被人们所高度关注，有很多人为它写书，出教程。<a href="http://progit.org/book/zh/">pro Git就是其中很好的一本书</a>。</p>
<p>4. 易学易用，几乎不存在门槛。</p>
<p>5. 无需花费成本，它是开源免费软件。</p>
<p>6. 跨平台，所有熟知的平台下面，都跑得很欢畅。</p>
<p>在介绍了一堆优点之后，让我们来进入Git的世界吧。linuxers 们，你们就不用看这里了。因为你们git骄子。linux下面铁定好使。windows下面的用户就需要自己动手，打造可用的git环境了。</p>
<p>感谢msysGit(<a href="http://code.google.com/p/msysgit/">http://code.google.com/p/msysgit/</a>)和tortoiseGit(<a href="http://code.google.com/p/tortoisegit/">http://code.google.com/p/tortoisegit/</a>)项目，让我们可以一次性装好所需的软件，而不用纯手动编译安装Git.</p>
<p>让我们按照先后顺序，下载msysgit 1.71 和tortoiseGit 1.5.2吧。</p>
<p>msysGit: <a href="http://msysgit.googlecode.com/files/Git-1.7.1-preview20100612.exe">http://msysgit.googlecode.com/files/Git-1.7.1-preview20100612.exe</a></p>
<p>TortoiseGit: <a href="http://tortoisegit.googlecode.com/files/TortoiseGit-1.5.2.0-32bit.msi">http://tortoisegit.googlecode.com/files/TortoiseGit-1.5.2.0-32bit.msi</a></p>
<p>下载完成后。先行安装msysgit，完毕后，再安装TortoiseGit.安装选项无妨使用。大家可以放心点下一步。</p>
<p>如果你不需要图形化界面，你甚至无需安装TortoiseGit，但是如果你跟我一样，还是喜欢TortoiseSVN的操作方式，你一定想安装TortoiseGit.</p>
<p>装上它们之后。需要重启一下系统。等windows重启后，你的电脑，己经可以使用git了。在桌面任意位置，点击鼠标右键，就应该可以看到TortoiseGit的菜单了。</p>
<p>尽情享用Git吧！</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3142.html" title="Git Update邮件通知设置">Git Update邮件通知设置</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3080.html" title="GIT从现有git仓库中移除跟踪对象">GIT从现有git仓库中移除跟踪对象</a></li><li><a href="http://www.netroby.com/article-3074.html" title="两本开源Git中文专业教程(译本)">两本开源Git中文专业教程(译本)</a></li><li><a href="http://www.netroby.com/article-3064.html" title="放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)">放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)</a></li><li><a href="http://www.netroby.com/article-1782.html" title="在ubuntu server 10.04下面编译安装git 和mercurial最新版本 ">在ubuntu server 10.04下面编译安装git 和mercurial最新版本 </a></li><li><a href="http://www.netroby.com/article-1728.html" title="Git Hooks脚本研究及中文支持探讨">Git Hooks脚本研究及中文支持探讨</a></li><li><a href="http://www.netroby.com/article-1726.html" title="Git强制checkout解决代码仓库不同步的问题">Git强制checkout解决代码仓库不同步的问题</a></li><li><a href="http://www.netroby.com/article-1721.html" title="推荐一本git的好书ProGit">推荐一本git的好书ProGit</a></li><li><a href="http://www.netroby.com/article-1719.html" title="ubuntu 安装git进行版本管理">ubuntu 安装git进行版本管理</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3066.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>放弃Mercurial和TortoiseHg，转用git(msysGit+TortoiseGit)</title>
		<link>http://www.netroby.com/article-3064.html</link>
		<comments>http://www.netroby.com/article-3064.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 06:15:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mercurial]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3064</guid>
		<description><![CDATA[我决定自现在起，放弃Mercrurial和TortoiseHg，转用git(msysGit+TortoiseGit)。Git己经越来越好用了。在windows平台下和linux平台下的表现越来越好。]]></description>
			<content:encoded><![CDATA[<p>我决定自现在起，放弃Mercrurial和TortoiseHg，转用git(msysGit+TortoiseGit)。Git己经越来越好用了。在windows平台下和linux平台下的表现越来越好。</p>
<p>Mercurial曾几何时是我最常用的版本控制软件，当时它优越的跨平台性，快速的开发和发布，让我很为之心动。并且确实在一段时间之内，很好的帮我管理好了我的代码。</p>
<p>但是由于它一直没有源生的系统界面，只依托于python，很难从根本上提高效率。它慢于Git, Git是c语言写就的，速度上有绝对优势。在windows下面，虽然Git表现要比linux下面差一些，但是TortoiseGit原生的界面要比TortoiseHg界面要好得多。从界面设计，到字体渲染，都比TortoiseHg的Python做的界面要好看得多。对，能给你一种非常专业的美感。</p>
<p>从设计层面上来说。Git的设计要优于Mercurial。Git才是真正的分布式版本控制系统。你完全可以在本地进行开发，而无需网络连接，只有需要的时候，同步一下远程源码仓库就可以了。</p>
<p>首先，感谢Git开发人员，创造出如此神奇的版本控制软件，然后，感谢msysGit和TortoiseGit的开发团队，你们为windows下面的Git用户，做出了许多至关重要的工作。你们让Git的普及工作进行得如此深入。</p>
<p>因为我对版本控制软件的研究还不是非常深入，所以总结我现在切换到Git的主要原因，一是因为辅助工具TortoiseHg和TortoiseGit的界面，二是因为Git效率要高于Mercurial. 三是学Git比较容易。四是网上有丰富的专业教程。推荐这本：<a href="http://progit.org/book/zh/">http://progit.org/book/zh/</a> 相比之下，Mercurial的专业教程不够多，关注它的人，也还不够。</p>
<p>此外，还有一些别人写的比较各种版本控制系统优劣的文章：<a href="http://zh-cn.whygitisbetterthanx.com/">http://zh-cn.whygitisbetterthanx.com/</a></p>
<p>希望看了以后，大家有一些启发，选择你喜欢的版本控制系统。</p>
<p>推荐使用Git的朋友，关注一下github.com, 一个很火的git社区 。赞美git的极客们。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-1782.html" title="在ubuntu server 10.04下面编译安装git 和mercurial最新版本 ">在ubuntu server 10.04下面编译安装git 和mercurial最新版本 </a></li><li><a href="http://www.netroby.com/article-3142.html" title="Git Update邮件通知设置">Git Update邮件通知设置</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3080.html" title="GIT从现有git仓库中移除跟踪对象">GIT从现有git仓库中移除跟踪对象</a></li><li><a href="http://www.netroby.com/article-3074.html" title="两本开源Git中文专业教程(译本)">两本开源Git中文专业教程(译本)</a></li><li><a href="http://www.netroby.com/article-3066.html" title="windows实战Git：msysGit+TortoiseGit环境配置">windows实战Git：msysGit+TortoiseGit环境配置</a></li><li><a href="http://www.netroby.com/article-2969.html" title="TortoiseHg 1.1.2发布">TortoiseHg 1.1.2发布</a></li><li><a href="http://www.netroby.com/article-1927.html" title="TortoiseHg 1.0.4">TortoiseHg 1.0.4</a></li><li><a href="http://www.netroby.com/article-1900.html" title="VPS安装最新版Mercurial">VPS安装最新版Mercurial</a></li><li><a href="http://www.netroby.com/article-1897.html" title="跨平台团队协作项目源码管理软件Mercurial前景无限">跨平台团队协作项目源码管理软件Mercurial前景无限</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3064.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>自动更改SSH密码，定时断开SSH连接</title>
		<link>http://www.netroby.com/article-3058.html</link>
		<comments>http://www.netroby.com/article-3058.html#comments</comments>
		<pubDate>Mon, 16 Aug 2010 06:14:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[教程]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3058</guid>
		<description><![CDATA[看到网上有很多免费提供SSH账号的。他们可以实现自动定时更改SSH密码，比如10分钟改一次。并且隔一段时间，还可以自动定时断开SSH。]]></description>
			<content:encoded><![CDATA[<p>看到网上有很多免费提供SSH账号的。他们可以实现<strong>自动定时更改SSH密码</strong>，比如10分钟改一次。并且隔一段时间，还可以<strong>自动定时断开SSH</strong>。</p>
<p>于是一时兴起，研究了一下他们是怎么实现<strong>自动定时更改SSH密码</strong>，<strong>自动定时断开SSH</strong>。并把研究的结果，分享给大家。</p>
<p>大家先用Root账号登录进VPS, 建立一个autofreessh的文件夹</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">mkdir /usr/share/autofreessh
cd /usr/share/autofreessh
</pre>
<p>然后大家建立两个文件/usr/share/autofreessh/renew_freessh.sh和/usr/share/autofreessh/close_freessh.sh</p>
<p>renew_freessh.sh文件内容</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">#!/bin/sh
userdel freessh
/usr/bin/php -r '$pwd=substr(md5("saltsecne99cc".time()),5,5);file_put_contents("/usr/share/autofreessh/pwd.txt",$pwd);file_put_contents("/usr/share/autofreessh/crypt.txt",crypt($pwd));'
PASSWORD=$(cat /usr/share/autofreessh/pwd.txt)
CPT=$(cat /usr/share/autofreessh/crypt.txt)
useradd  -N -s /usr/sbin/nologin -p $CPT freessh
echo "User: freessh"
echo "Password: $PASSWORD"
echo ""
unlink /usr/share/autofreessh/crypt.txt
</pre>
<p>close_freessh.sh文件内容</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">#!/bin/sh
killall -u freessh</pre>
<p>接下来设置他们的执行权限</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">chmod a+x /usr/share/autofreessh/*.sh</pre>
<p>加入CronTab，执行crontab -e</p>
<p>输入以下内容</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; "># m h  dom mon dow   command
*/10 * * * * /usr/share/autofreessh/renew_freessh.sh
*/30 * * * * /usr/share/autofreessh/close_freessh.sh</pre>
<p>每十分钟，自动更改一次freessh账号密码</p>
<p>每30分钟，自动断开freessh的链接。</p>
<p>保存crontab,重启一下cron服务/etc/init.d/cron restart</p>
<p>现在己经实现<strong>自动定时更改SSH密码</strong>和<strong>自动定时断开SSH</strong>了。</p>
<p>如果你想要在web页面展示当前的密码。可以用php来读取/usr/share/autofreessh/pwd.txt文件。这是未加密的明文密码。</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">&lt;?php
echo "Current freessh password:". file_get_contents("/usr/share/autofreessh/pwd.txt");</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3090.html" title="ubuntu 自启动SSH 转发">ubuntu 自启动SSH 转发</a></li><li><a href="http://www.netroby.com/article-2874.html" title="防止SSH连接超时或者冻结">防止SSH连接超时或者冻结</a></li><li><a href="http://www.netroby.com/article-1903.html" title="SSH VS OpenVPN速度测试">SSH VS OpenVPN速度测试</a></li><li><a href="http://www.netroby.com/article-1776.html" title="部署SSH公匙，免密登录SSHD">部署SSH公匙，免密登录SSHD</a></li><li><a href="http://www.netroby.com/article-1724.html" title="ubuntu远程无密码登录ssh设置">ubuntu远程无密码登录ssh设置</a></li><li><a href="http://www.netroby.com/article-1446.html" title="SSH登录服务器很慢的解决方法">SSH登录服务器很慢的解决方法</a></li><li><a href="http://www.netroby.com/article-1094.html" title="Free* SSH file transfer, terminal and tunneling!">Free* SSH file transfer, terminal and tunneling!</a></li><li><a href="http://www.netroby.com/article-206.html" title="Windows下配置tortoise免输入密码登陆ssh">Windows下配置tortoise免输入密码登陆ssh</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3058.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim-custom 0.2.0 发布(vim7.3正式版)</title>
		<link>http://www.netroby.com/article-3054.html</link>
		<comments>http://www.netroby.com/article-3054.html#comments</comments>
		<pubDate>Mon, 16 Aug 2010 00:44:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3054</guid>
		<description><![CDATA[vim 7.3经过6个Beta测试版之后。今天终于面世了。第一时间Vim custom 就跟进了vim 7.3的正式版。]]></description>
			<content:encoded><![CDATA[<p>vim 7.3经过6个Beta测试版之后。今天终于面世了。第一时间Vim custom 就跟进了vim 7.3的正式版。</p>
<p>当前Vim-custom版本为0.2.0， 对应vim版本为7.3正式版。</p>
<p>下载地址：<a href="http://vim-custom.googlecode.com/files/Vim-custom.0.2.0.7z">http://vim-custom.googlecode.com/files/Vim-custom.0.2.0.7z</a></p>
<p>Vim-custom是一个开源项目，它主旨是打造一款绿色，环保，高度可用的PHP程序员编辑器软件。</p>
<p>项目地址：<a href="http://vim-custom.googlecode.com">http://vim-custom.googlecode.com</a></p>
<p>如果您对vim -custom有什么好的建议和需要更好的插件，欢迎留言。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3104.html" title="VIM+Dropbox安全存放你的密码">VIM+Dropbox安全存放你的密码</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3076.html" title="Debian配置彩色shell和彩色的VIM">Debian配置彩色shell和彩色的VIM</a></li><li><a href="http://www.netroby.com/article-3033.html" title="Vim-custom 0.1.9发布基于vim 7.3 Beta F">Vim-custom 0.1.9发布基于vim 7.3 Beta F</a></li><li><a href="http://www.netroby.com/article-2996.html" title="Vim-custom 更新0.1.8(VIM 7.3 Beta e)">Vim-custom 更新0.1.8(VIM 7.3 Beta e)</a></li><li><a href="http://www.netroby.com/article-2863.html" title="VIM Grep使用教程">VIM Grep使用教程</a></li><li><a href="http://www.netroby.com/article-2807.html" title="Vim Custom 0.1.6发布，还原纯正vim使用体验">Vim Custom 0.1.6发布，还原纯正vim使用体验</a></li><li><a href="http://www.netroby.com/article-2392.html" title="vim custom 0.1.5 更新">vim custom 0.1.5 更新</a></li><li><a href="http://www.netroby.com/article-1925.html" title="Vim Custom 0.1.4 正式发布">Vim Custom 0.1.4 正式发布</a></li><li><a href="http://www.netroby.com/article-1764.html" title="vim custom 0.1.3 发布">vim custom 0.1.3 发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3054.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickWeb SoftLayer西雅图机房VPS母机维护完毕</title>
		<link>http://www.netroby.com/article-3049.html</link>
		<comments>http://www.netroby.com/article-3049.html#comments</comments>
		<pubDate>Sun, 15 Aug 2010 04:29:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[公告]]></category>
		<category><![CDATA[quickweb]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3049</guid>
		<description><![CDATA[QuickWeb SoftLayer西雅图机房VPS母机维护完毕]]></description>
			<content:encoded><![CDATA[<p>前天收到通知，说今天会有一个维护，早上起来看推的时候，发现维护己经完成了。</p>
<p>根据我的监测显示，只用了15分钟，QuickWeb的效率不是一般的高。</p>
<p>现在SoftLayer西雅图机房的VPS母机己经OK了，维护己经完毕。数据正常，无损伤。赞一个。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3140.html" title="QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠">QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠</a></li><li><a href="http://www.netroby.com/article-3029.html" title="Softlayer西雅图Explorer母机维护升级新西兰时间8/15上午10点">Softlayer西雅图Explorer母机维护升级新西兰时间8/15上午10点</a></li><li><a href="http://www.netroby.com/article-3000.html" title="QuickWeb 20%优惠码，8月有效">QuickWeb 20%优惠码，8月有效</a></li><li><a href="http://www.netroby.com/article-2852.html" title="QuickWeb VPS三个月使用报告">QuickWeb VPS三个月使用报告</a></li><li><a href="http://www.netroby.com/article-2835.html" title="QuickWeb增加SolusVM控制面板中文语言">QuickWeb增加SolusVM控制面板中文语言</a></li><li><a href="http://www.netroby.com/article-2794.html" title="QuickWeb七月中国特惠出炉">QuickWeb七月中国特惠出炉</a></li><li><a href="http://www.netroby.com/article-2700.html" title="QuickWeb现在所有的优惠码都停了">QuickWeb现在所有的优惠码都停了</a></li><li><a href="http://www.netroby.com/article-2694.html" title="选vps，找准好机房非常重要">选vps，找准好机房非常重要</a></li><li><a href="http://www.netroby.com/article-2684.html" title="QuickWeb VPS产品列表(openvz和xen方案) &#038; 选购指南">QuickWeb VPS产品列表(openvz和xen方案) &#038; 选购指南</a></li><li><a href="http://www.netroby.com/article-2672.html" title="QuickWeb 位于San Jose的xen VPS售罄了">QuickWeb 位于San Jose的xen VPS售罄了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3049.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>万能五笔输入法_最好的五笔输入法</title>
		<link>http://www.netroby.com/article-3046.html</link>
		<comments>http://www.netroby.com/article-3046.html#comments</comments>
		<pubDate>Sun, 15 Aug 2010 03:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[五笔]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3046</guid>
		<description><![CDATA[如果你们在找一款好用的五笔输入法，或者你们在找一款最好的五笔输入法，那么，请试试万能五笔输入法吧。万能五笔输入法是最好的五笔输入法。没有之一。]]></description>
			<content:encoded><![CDATA[<p>三十年河东，四十年河西，原本在我眼中如丑小鸭般的万能五笔，新版8.0惊艳动人。令人爱不释手。如今，己然成为电脑上唯一保留，长期使用着的输入法软件。</p>
<p>万能五笔输入法倒底有怎样的魔力。让我这个老网民为之倾心不已？</p>
<p>话说自搜狗拼音输入法，打响输入法革命第一枪以来。中文输入法的世界，大变样了。不再是那些腐朽不堪，即将入土的渣滓了。很多新秀脱颖而出。搜狗拼音输入法，谷歌输入法，QQ输入法。</p>
<p>搜狗眼光很毒，开发了拼音输入法之后，又开发了五笔输入法，意图夺掠原本属于极点等老牌五笔输入法的市场份额。敏锐的腾讯，也抓着了这个契机，马上跟着推出QQ五笔输入法。一时间五笔输入法的江湖风起云涌，变幻莫测。</p>
<p>在江湖血雨腥风骤起的时代。老版五笔输入法，万能五笔，也不等闲。毅然涅盤重生了。8.0的推出，令人感觉焕然一新。界面完全按照时尚流行的输入法来打造，哪里有一点垂老之态。配置上传同步，输入流畅，大字符集支持，同时支持五笔，拼音，笔划，等多种输入模式。哥找的不就是这样的输入法吗？</p>
<p>这些年来，哥用过不少输入法，拼音也用过，但老五笔的思想，怎能被拼音所改造？我还是用着我的五笔。我用微软内置五笔86，我用极点五笔。我用搜狗五笔，我还用QQ五笔，最后我用的是万能五笔。</p>
<p>万能五笔因为开发五笔输入法的经验最丰富，因此产品也打造的极为殷实。没有哪个输入法，能有万能五笔这样的境地。打开选项设置菜单，你就会被那一屏屏详尽的设置选项所震惊，这些细致入微的调节选项，需要多少时光的历炼才能锤炼出这般百炼绕指柔的精钢啊。</p>
<p>哥被打动了。决定就用这款输入法了。如今，哥己经用了有将近三个月时间了。一直很安逸。回头再来看极点五笔，搜狗五笔，QQ五笔，对比万能五笔，你们都是雏！</p>
<p>万能五笔输入法的更新频率是所有输入法中，最勤快的。在没有影响大的使用性能的条件下，功能的添加，BUG的修复速度，远远超过其它五笔输入法。</p>
<p>极点五笔，哥等你等得花儿都谢了，为何那每一次的输入法的升级，都让哥等得望眼欲穿。</p>
<p>搜狗，你只是个笑话，现在快有一年没有更新五笔输入法了吧。</p>
<p>QQ，你有屌的本钱，用户的诉求你置之耳后不理。输入法多久没升级了。捞不到钱的产品，你也没用心做是吧。</p>
<p>万能五笔。你让哥感动。产品做得好，更新又积极。哥拿什么来谢你。</p>
<p>说再多，哥也帮不了你的什么忙，只有把你推荐给更多新老五笔用户。<strong>如果你们在找一款好用的五笔输入法，或者你们在找一款最好的五笔输入法，那么，请试试万能五笔输入法吧。万能五笔输入法是最好的五笔输入法。没有之一。</strong></p>
<p><strong>万能五笔输入法网站：</strong><a href="http://user.wnwb.com/" target="_blank">http://user.wnwb.com/</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-2847.html" title="弃拼音，用五笔，搞定提笔忘字">弃拼音，用五笔，搞定提笔忘字</a></li><li><a href="http://www.netroby.com/article-1548.html" title="QQ五笔输入法v1.0">QQ五笔输入法v1.0</a></li><li><a href="http://www.netroby.com/article-1426.html" title="QQ五笔输入法1.0">QQ五笔输入法1.0</a></li><li><a href="http://www.netroby.com/article-1173.html" title="极点五笔7.1版修正己知BUG">极点五笔7.1版修正己知BUG</a></li><li><a href="http://www.netroby.com/article-904.html" title="2010年2月28日 『极点五笔』7.0 (x86/x64) 纪念版">2010年2月28日 『极点五笔』7.0 (x86/x64) 纪念版</a></li><li><a href="http://www.netroby.com/article-462.html" title="搜狗五笔输入法第八版(2.0)发布 (2009.12.28)">搜狗五笔输入法第八版(2.0)发布 (2009.12.28)</a></li><li><a href="http://www.netroby.com/article-219.html" title="qq五笔输入法测试版更新">qq五笔输入法测试版更新</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3046.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>异步加载图片广告,优化提升页面载入速度</title>
		<link>http://www.netroby.com/article-3042.html</link>
		<comments>http://www.netroby.com/article-3042.html#comments</comments>
		<pubDate>Sat, 14 Aug 2010 07:47:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3042</guid>
		<description><![CDATA[图片广告的特点是体积大，载入时间长。同时由于它的载入会占用整 个页面的总载入时间，因此网页需要等待整个页面及广告载入完毕后，才能在浏览器显示出来。等待载入的过程是痛苦的。用户体验糟糕到极致。]]></description>
			<content:encoded><![CDATA[<p>图片广告的特点是体积大，载入时间长。同时由于它的载入会占用整 个页面的总载入时间，因此网页需要等待整个页面及广告载入完毕后，才能在浏览器显示出来。等待载入的过程是痛苦的。用户体验糟糕到极致。<br />
我们应该寻找更积极的方法，来解决这个载入的问题。是不是有一种方法，让我们把图片广告或者大图片，与整个页面分离开来加载。让用户最先看到页面的主要内容，然后再让用户看到广告呢？<br />
答案是有的。我们可以利用javascript的async特性，再加DHTML的DOM处理，动态载入页面广告。</p>
<p>先看一段示例。<br />
vd.js 广告代码</p>
<pre class="brush: jscript;fontsize: 100; first-line: 1; ">var vdb = document.getElementById('vd_banner');
if(vdb != null)
{
	vdb.innerHTML = '&lt;a href="hmh.jpg"&gt;&lt;img src="hmh.jpg" style="width:237px;height:350px;border:0px" /&gt;&lt;/a&gt;';
}</pre>
<p>main.html 页面</p>
<pre class="brush: bash;fontsize: 100; first-line: 1; ">&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta charset="utf-8"&gt;
		&lt;title&gt;广告测试&lt;/title&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id="vd_banner"&gt;&lt;/div&gt;
		&lt;script&gt;
			(function(){
				var loadvds = document.createElement('script');
				loadvds.type = 'text/javascript';
				loadvds.async = true;
				loadvds.src = 'vd.js';
				document.getElementsByTagName('body')[0].appendChild(loadvds);
			})();
		&lt;/script&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre>
<p>vd.js里面可以放广告内容，广告内容通过innerHTML插入到div为vd_banner的div中去。appendChild方法将vd.js写到Body之前的页面最底部。<br />
main.html是要放置广告的页面。这儿我们只需要放置一个广告容器，并且在body前面插入javascript的载入代码，就可以异步加载广告至main.html.</p>
<p>经过这样优化我们的广告代码后。网页打开速度明显会加快。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-2865.html" title="JavaScript定时跳转网址的写法">JavaScript定时跳转网址的写法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3042.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim-custom 0.1.9发布基于vim 7.3 Beta F</title>
		<link>http://www.netroby.com/article-3033.html</link>
		<comments>http://www.netroby.com/article-3033.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 22:51:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3033</guid>
		<description><![CDATA[Vim-custom 0.1.9发布基于vim 7.3 Beta F]]></description>
			<content:encoded><![CDATA[<p>Vim-custom 0.1.9发布基于vim 7.3 Beta F</p>
<p>下载地址：</p>
<p><a href="http://vim-custom.googlecode.com/files/Vim-custom.0.1.9.7z">http://vim-custom.googlecode.com/files/Vim-custom.0.1.9.7z</a></p>
<p>项目地址：<a href="http://vim-custom.googlecode.com/">http://vim-custom.googlecode.com/</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3104.html" title="VIM+Dropbox安全存放你的密码">VIM+Dropbox安全存放你的密码</a></li><li><a href="http://www.netroby.com/article-3092.html" title="ubuntu git gui spell check错误解决方案和diff设置">ubuntu git gui spell check错误解决方案和diff设置</a></li><li><a href="http://www.netroby.com/article-3076.html" title="Debian配置彩色shell和彩色的VIM">Debian配置彩色shell和彩色的VIM</a></li><li><a href="http://www.netroby.com/article-3054.html" title="Vim-custom 0.2.0 发布(vim7.3正式版)">Vim-custom 0.2.0 发布(vim7.3正式版)</a></li><li><a href="http://www.netroby.com/article-2996.html" title="Vim-custom 更新0.1.8(VIM 7.3 Beta e)">Vim-custom 更新0.1.8(VIM 7.3 Beta e)</a></li><li><a href="http://www.netroby.com/article-2863.html" title="VIM Grep使用教程">VIM Grep使用教程</a></li><li><a href="http://www.netroby.com/article-2807.html" title="Vim Custom 0.1.6发布，还原纯正vim使用体验">Vim Custom 0.1.6发布，还原纯正vim使用体验</a></li><li><a href="http://www.netroby.com/article-2392.html" title="vim custom 0.1.5 更新">vim custom 0.1.5 更新</a></li><li><a href="http://www.netroby.com/article-1925.html" title="Vim Custom 0.1.4 正式发布">Vim Custom 0.1.4 正式发布</a></li><li><a href="http://www.netroby.com/article-1764.html" title="vim custom 0.1.3 发布">vim custom 0.1.3 发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3033.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Softlayer西雅图Explorer母机维护升级新西兰时间8/15上午10点</title>
		<link>http://www.netroby.com/article-3029.html</link>
		<comments>http://www.netroby.com/article-3029.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 11:23:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[公告]]></category>
		<category><![CDATA[quickweb]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3029</guid>
		<description><![CDATA[Please be advised that we will be doing routine server maintenance of node : Exploroer  (Softlayer Seattle) on  Sunday 15th August 2010 10AM (NZDT), we will be applying latest OS patches and security audit to keep the server in top shape. ]]></description>
			<content:encoded><![CDATA[<p>QuickWeb VPS母机升级维护通知，西雅图SoftLayer Explorer母机维护升级，时间是新西兰时间08月15日上午10点整。</p>
<p>Please be advised that we will be doing routine server maintenance of  node : Exploroer  (Softlayer Seattle) on  Sunday 15th August</p>
<p>2010 10AM  (NZDT), we will be applying latest OS patches and security audit to keep  the server in top shape.</p>
<p>The server will going to be rebooted on the final phase hence there  will be service interruption of about 30 minutes, we encourage everyone  to always keep a backup of your files.</p>
<p>We apologize for inconvenience and please feel free to contact us if you have questions.<br />
Sincerely,</p>
<p>QuickWeb Hosting Admin Team</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3140.html" title="QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠">QuickWeb SoftLayer西雅图XEN VPS发售，首月特价30%优惠</a></li><li><a href="http://www.netroby.com/article-3049.html" title="QuickWeb SoftLayer西雅图机房VPS母机维护完毕">QuickWeb SoftLayer西雅图机房VPS母机维护完毕</a></li><li><a href="http://www.netroby.com/article-3000.html" title="QuickWeb 20%优惠码，8月有效">QuickWeb 20%优惠码，8月有效</a></li><li><a href="http://www.netroby.com/article-2852.html" title="QuickWeb VPS三个月使用报告">QuickWeb VPS三个月使用报告</a></li><li><a href="http://www.netroby.com/article-2835.html" title="QuickWeb增加SolusVM控制面板中文语言">QuickWeb增加SolusVM控制面板中文语言</a></li><li><a href="http://www.netroby.com/article-2794.html" title="QuickWeb七月中国特惠出炉">QuickWeb七月中国特惠出炉</a></li><li><a href="http://www.netroby.com/article-2700.html" title="QuickWeb现在所有的优惠码都停了">QuickWeb现在所有的优惠码都停了</a></li><li><a href="http://www.netroby.com/article-2694.html" title="选vps，找准好机房非常重要">选vps，找准好机房非常重要</a></li><li><a href="http://www.netroby.com/article-2684.html" title="QuickWeb VPS产品列表(openvz和xen方案) &#038; 选购指南">QuickWeb VPS产品列表(openvz和xen方案) &#038; 选购指南</a></li><li><a href="http://www.netroby.com/article-2672.html" title="QuickWeb 位于San Jose的xen VPS售罄了">QuickWeb 位于San Jose的xen VPS售罄了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3029.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>拒绝xss攻击，加固Firefox安全</title>
		<link>http://www.netroby.com/article-3026.html</link>
		<comments>http://www.netroby.com/article-3026.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 06:10:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[NoScript]]></category>

		<guid isPermaLink="false">http://www.netroby.com/?p=3026</guid>
		<description><![CDATA[Firefox默认对xss攻击抵抗不足，很容易就上了钓鱼网站的当。今天在被阿里的xss漏洞惊了一下之后，险些丢了淘宝账号和密码。可恶的骗子们，我要代表人民除掉你。]]></description>
			<content:encoded><![CDATA[<p>Firefox默认对xss攻击抵抗不足，很容易就上了钓鱼网站的当。今天在被阿里的xss漏洞惊了一下之后，险些丢了淘宝账号和密码。可恶的骗子们，我要代表人民除掉你。</p>
<p>虽然Firefox没有抵抗能力，但Firefox丰富的插件可以帮我们搞定这个问题，你可以下载一个NoScript插件（<a href="https://addons.mozilla.org/zh-CN/firefox/addon/722/">https://addons.mozilla.org/zh-CN/firefox/addon/722/</a>）,安装后，重启Firefox，它就可以帮你抵抗XSS攻击。</p>
<p>不过默认安装的NoScript很麻烦，它老是自做聪明的帮你禁用掉Js,在现如今大量使用Javascript的情况下，这种行为，会让你浏览网页时头大如斗。为了最自由的掌握网页显示效果，我们不得不启用允许全局脚本。</p>
<p>在你发现某个域名下面的网站很可疑的时候，你可以把这个域名加入不信任列表，这样，Firefox就不会解析javascript了。最大程度保障你的安全，同时也不会牺牲浏览器的可用性。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.netroby.com/article-3225.html" title="Firefox 3.6.9 及 4.0 Beta 5发布了">Firefox 3.6.9 及 4.0 Beta 5发布了</a></li><li><a href="http://www.netroby.com/article-3109.html" title="Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持">Firefox 4.0 Beta4发布，d2d渲染加速功能未普遍支持</a></li><li><a href="http://www.netroby.com/article-3107.html" title="浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。">浏览器dns及网页预加载特性请求(firefox和chrome),恳请大家支持。</a></li><li><a href="http://www.netroby.com/article-3003.html" title="推荐T&#038;T的Firefox插件版客户端">推荐T&#038;T的Firefox插件版客户端</a></li><li><a href="http://www.netroby.com/article-2942.html" title="Firefox GreaseMonkey脚本推荐">Firefox GreaseMonkey脚本推荐</a></li><li><a href="http://www.netroby.com/article-2854.html" title="Firefox的品质下滑稳定性降低？">Firefox的品质下滑稳定性降低？</a></li><li><a href="http://www.netroby.com/article-2842.html" title="Firefox 3.6.7更新">Firefox 3.6.7更新</a></li><li><a href="http://www.netroby.com/article-2584.html" title="Firefox 3.6.6发布，修正崩溃及插件分离外置机置">Firefox 3.6.6发布，修正崩溃及插件分离外置机置</a></li><li><a href="http://www.netroby.com/article-2556.html" title="想要个性化Firefox界面？Personas帮你搞定">想要个性化Firefox界面？Personas帮你搞定</a></li><li><a href="http://www.netroby.com/article-2552.html" title="Firefox 3.6.4正式发布">Firefox 3.6.4正式发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netroby.com/article-3026.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.netroby.com/feed ) in 1.20002 seconds, on Sep 9th, 2010 at 3:45 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Sep 9th, 2010 at 4:45 pm UTC -->