<?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>王一的Blog - a one and a two &#187; TechNote</title>
	<atom:link href="http://www.mudone.com/category/technote/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mudone.com</link>
	<description>Reborn - 治疗拖延症最好的方法就是立刻开始</description>
	<lastBuildDate>Tue, 07 Feb 2012 02:20:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.mudone.com/?pushpress=hub'/>
		<item>
		<title>Arch Linux是个好玩意儿。</title>
		<link>http://www.mudone.com/2011/12/arch-linux/</link>
		<comments>http://www.mudone.com/2011/12/arch-linux/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 04:53:43 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1816</guid>
		<description><![CDATA[Arch Linux是个好玩意儿。 一个轻量级发行版。 滚动更新对于我这个升级控来说很好用。 BSD风格的启动框架，对于我这个FreeBSD的粉丝来说用起来很舒服。 pacman对包依赖解决的也很好。 在/etc/rc.conf文件里就可以解决掉很多配置项。 软件仓库163有镜像。 ArchLinux哲学 轻便灵活，符合KISS原则。 采用BSD风格的启动脚本，集中管理，易懂易改。 统一的目录架构，避免一般软件分属/bin，/usr/local/bin等多个目录的弊病，将所有的包集中在/bin，/lib，/usr/man,/usr/share/man中。 精简的打包方式，删去部分说明，但保留了man page，从而使包装后的二进制包比一般的Linux小（例如：安装基础包和X视窗，仅需约100MB）。 软件初次安装后，仅为默认配置。可能需要包手册，才能了解后续配置。]]></description>
			<content:encoded><![CDATA[<p>Arch Linux是个好玩意儿。<br />
一个轻量级发行版。<br />
滚动更新对于我这个升级控来说很好用。<br />
BSD风格的启动框架，对于我这个FreeBSD的粉丝来说用起来很舒服。<br />
pacman对包依赖解决的也很好。<br />
在/etc/rc.conf文件里就可以解决掉很多配置项。<br />
软件仓库163有镜像。</p>
<p>ArchLinux哲学</p>
<ul>
<li>轻便灵活，符合KISS原则。
<ul>
<li>采用BSD风格的启动脚本，集中管理，易懂易改。</li>
<li>统一的目录架构，避免一般软件分属/bin，/usr/local/bin等多个目录的弊病，将所有的包集中在/bin，/lib，/usr/man,/usr/share/man中。</li>
<li>精简的打包方式，删去部分说明，但保留了man page，从而使包装后的二进制包比一般的Linux小（例如：安装基础包和X视窗，仅需约100MB）。</li>
<li>软件初次安装后，仅为默认配置。可能需要包手册，才能了解后续配置。</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/12/arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http协议版本号导致的问题</title>
		<link>http://www.mudone.com/2011/11/http-version-fault/</link>
		<comments>http://www.mudone.com/2011/11/http-version-fault/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 14:18:39 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1808</guid>
		<description><![CDATA[一台小内存（主要是想说在小内存的机器上使用apache2作为后端关闭keep-alive比php-fpm稳定的多）机器上使用nginx作为前端，apache2作为后端。 今天在部署一个网站(基于slim framework)的时候访问提示如下错误： 内容编码错误 无法显示您尝试查看的页面，因为它使用了无效或者不支持的压缩格式。 网上搜了一些结果大部分都是碰到gzip头空白的问题。 搜索了一下代码并无相关gzip操作的代码。 遂继续搜索header操作的代码，发现一个Slim_Http_Response类里的属性$httpVersion默认是1.1，而nginx不支持1.1的后端服务。 于是就会提示错误。 相关链接：http://wiki.nginx.org/HttpProxyModule It is an HTTP/1.0 proxy without the ability for keep-alive requests yet. (As a result, backend connections are created and destroyed on every request.) Nginx talks HTTP/1.1 to the browser &#8230; <a href="http://www.mudone.com/2011/11/http-version-fault/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>一台小内存（主要是想说在小内存的机器上使用apache2作为后端关闭keep-alive比php-fpm稳定的多）机器上使用nginx作为前端，apache2作为后端。</p>
<p>今天在部署一个网站(基于slim framework)的时候访问提示如下错误：</p>
<blockquote><p>内容编码错误<br />
无法显示您尝试查看的页面，因为它使用了无效或者不支持的压缩格式。</p></blockquote>
<p>网上搜了一些结果大部分都是碰到gzip头空白的问题。<br />
搜索了一下代码并无相关gzip操作的代码。</p>
<p>遂继续搜索header操作的代码，发现一个Slim_Http_Response类里的属性$httpVersion默认是1.1，而nginx不支持1.1的后端服务。<br />
于是就会提示错误。</p>
<p>相关链接：http://wiki.nginx.org/HttpProxyModule</p>
<blockquote><p>It is an HTTP/1.0 proxy without the ability for keep-alive requests yet. (As a result, backend connections are created and destroyed on every request.) Nginx talks HTTP/1.1 to the browser and HTTP/1.0 to the backend server. As such it handles keep-alive to the browser. </p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/11/http-version-fault/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用nautilus-share打开Windows Share提示：“Failed to retrieve share list from server”解决方法。</title>
		<link>http://www.mudone.com/2011/11/nautilus-share-windows-share-failed-to-retrieve-share-list-from-server/</link>
		<comments>http://www.mudone.com/2011/11/nautilus-share-windows-share-failed-to-retrieve-share-list-from-server/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 03:49:50 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1804</guid>
		<description><![CDATA[Access it directly by ip address: nautilus smb://192.168.0.100 参考：http://ubuntuforums.org/showthread.php?t=1815360]]></description>
			<content:encoded><![CDATA[<p>Access it directly by ip address:</p>
<p>nautilus smb://192.168.0.100</p>
<p>参考：http://ubuntuforums.org/showthread.php?t=1815360</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/11/nautilus-share-windows-share-failed-to-retrieve-share-list-from-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clearstatcache</title>
		<link>http://www.mudone.com/2011/11/clearstatcache/</link>
		<comments>http://www.mudone.com/2011/11/clearstatcache/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 03:45:17 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1800</guid>
		<description><![CDATA[在进行stat()相关操作的时候先运行一下clearstatcache。 受影响的函数： stat(), lstat(), file_exists(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), filectime(), fileatime(), filemtime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), and fileperms()。 http://php.net/manual/en/function.clearstatcache.php]]></description>
			<content:encoded><![CDATA[<p>在进行stat()相关操作的时候先运行一下clearstatcache。<br />
受影响的函数： stat(), lstat(), file_exists(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), filectime(), fileatime(), filemtime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), and fileperms()。</p>
<p><a href="http://php.net/manual/en/function.clearstatcache.php" target="_blank">http://php.net/manual/en/function.clearstatcache.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/11/clearstatcache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在VirtualHost里设置RewriteCond中%{REQUEST_FILENAME}无效的问题</title>
		<link>http://www.mudone.com/2011/11/virtualhost-invalid-request_file-of-rewritecond/</link>
		<comments>http://www.mudone.com/2011/11/virtualhost-invalid-request_file-of-rewritecond/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 16:00:19 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1796</guid>
		<description><![CDATA[问题发生在将.htaccess里的rewrite规则转移到VirtualHost里之后。 原因是%{REQUEST_FILENAME}依然指向相对路径。 RewriteCond %{REQUEST_FILENAME} 改为： RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} 问题解决。 Rewrite的调试可以开启RewriteLog来跟踪： http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog 参考文章： http://lufei-99999.blog.163.com/blog/static/748495420115845922988/]]></description>
			<content:encoded><![CDATA[<p>问题发生在将.htaccess里的rewrite规则转移到VirtualHost里之后。<br />
原因是%{REQUEST_FILENAME}依然指向相对路径。</p>
<p>RewriteCond %{REQUEST_FILENAME}<br />
改为：<br />
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}<br />
问题解决。</p>
<p>Rewrite的调试可以开启RewriteLog来跟踪：<br />
<a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog">http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog</a></p>
<p>参考文章：</p>
<p>http://lufei-99999.blog.163.com/blog/static/748495420115845922988/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/11/virtualhost-invalid-request_file-of-rewritecond/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Supervisord &amp; monit</title>
		<link>http://www.mudone.com/2011/11/supervisord-monit/</link>
		<comments>http://www.mudone.com/2011/11/supervisord-monit/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 15:56:29 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1794</guid>
		<description><![CDATA[用monit监控系统关键进程 monit是一款功能强大的系统状态、进程、文件、目录和设备的监控软件，用于*nix平台， 它可以自动重启那些已经挂掉的程序，非常适合监控系统关键的进程和资源，如：nginx、apache、mysql和cpu占有率等。 http://feilong.me/2011/02/monitor-core-processes-with-monit Supervisord是用Python实现的一款非常实用的进程管理工具，类似于monit(关于monit见我的博客:用monit监控系统关键进程)，monit和supervisord的一个比较大的差异是supervisord管理的进程必须由supervisord来启动，monit可以管理已经在运行的程序。 http://feilong.me/2011/03/monitor-processes-with-supervisord]]></description>
			<content:encoded><![CDATA[<p>用monit监控系统关键进程<br />
monit是一款功能强大的系统状态、进程、文件、目录和设备的监控软件，用于*nix平台， 它可以自动重启那些已经挂掉的程序，非常适合监控系统关键的进程和资源，如：nginx、apache、mysql和cpu占有率等。</p>
<p>http://feilong.me/2011/02/monitor-core-processes-with-monit</p>
<p>Supervisord是用Python实现的一款非常实用的进程管理工具，类似于monit(关于monit见我的博客:用monit监控系统关键进程)，monit和supervisord的一个比较大的差异是supervisord管理的进程必须由supervisord来启动，monit可以管理已经在运行的程序。</p>
<p>http://feilong.me/2011/03/monitor-processes-with-supervisord</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/11/supervisord-monit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php5-fpm SIGBUS</title>
		<link>http://www.mudone.com/2011/11/php5-fpm-sigbus/</link>
		<comments>http://www.mudone.com/2011/11/php5-fpm-sigbus/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 00:52:50 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1792</guid>
		<description><![CDATA[child 19142 exited on signal 7 (SIGBUS) after 304.356752 seconds from start 做了两个设置： php5-fpm : emergency_restart_threshold 设置一个合适的值 php.ini : cgi.fix_pathinfo = 0 参考文章：http://blog.51osos.com/opensource/nginx-emergency-restart-threshold-sigsegv/]]></description>
			<content:encoded><![CDATA[<p>child 19142 exited on signal 7 (SIGBUS) after 304.356752 seconds from start</p>
<p>做了两个设置：<br />
php5-fpm : emergency_restart_threshold 设置一个合适的值<br />
php.ini : cgi.fix_pathinfo = 0</p>
<p>参考文章：http://blog.51osos.com/opensource/nginx-emergency-restart-threshold-sigsegv/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/11/php5-fpm-sigbus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proxy auto config</title>
		<link>http://www.mudone.com/2011/09/proxy-auto-config/</link>
		<comments>http://www.mudone.com/2011/09/proxy-auto-config/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 05:32:04 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1767</guid>
		<description><![CDATA[土鳖了，今天才发现还有这个玩意儿： http://en.wikipedia.org/wiki/Proxy_auto-config 这下方便多了，不用每次都往&#8221;No Proxy For&#8221;里添加条目了(-_-!)。。 我的PAC (Proxy_auto-config) 文件： function isBlockedHost(host) { if (shExpMatch(host, &#8220;*google.*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*ggpht.*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*alexa.com*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*blogspot.com*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*facebook.com*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*twitter.com*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*youtube.com*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*appspot.com*&#8221;) &#124;&#124; shExpMatch(host, &#8220;*fc2.com&#8221;) ) { &#8230; <a href="http://www.mudone.com/2011/09/proxy-auto-config/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>土鳖了，今天才发现还有这个玩意儿：</p>
<p><a href="http://en.wikipedia.org/wiki/Proxy_auto-config">http://en.wikipedia.org/wiki/Proxy_auto-config</a></p>
<p>这下方便多了，不用每次都往&#8221;No Proxy For&#8221;里添加条目了(-_-!)。。</p>
<p>我的PAC (Proxy_auto-config) 文件：</p>
<blockquote><p>function isBlockedHost(host)<br />
{<br />
    if (shExpMatch(host, &#8220;*google.*&#8221;) ||<br />
        shExpMatch(host, &#8220;*ggpht.*&#8221;) ||<br />
        shExpMatch(host, &#8220;*alexa.com*&#8221;) ||<br />
        shExpMatch(host, &#8220;*blogspot.com*&#8221;) ||<br />
        shExpMatch(host, &#8220;*facebook.com*&#8221;) ||<br />
        shExpMatch(host, &#8220;*twitter.com*&#8221;) ||<br />
        shExpMatch(host, &#8220;*youtube.com*&#8221;) ||<br />
        shExpMatch(host, &#8220;*appspot.com*&#8221;) ||<br />
        shExpMatch(host, &#8220;*fc2.com&#8221;) ) {<br />
        return true;<br />
    }<br />
    return false;<br />
}</p>
<p>// browser&#8217;s API<br />
function FindProxyForURL(url, host)<br />
{<br />
    var direct      = &#8220;DIRECT&#8221;;<br />
    var socksProxy  = &#8220;SOCKS5 127.0.0.1:9999&#8243;; // <strong>注意这里需要指定为SOCKS5，才会进行remote dns resolve</strong></p>
<p>    if (isBlockedHost(host))<br />
    {<br />
        return socksProxy;<br />
    }</p>
<p>    return direct;<br />
}
</p></blockquote>
<p>参考文章：</p>
<p>http://blog.solrex.org/articles/remote-dns-lookup.html</p>
<p>http://fanqiangchinagfw.blogspot.com/2010/08/dnsfirefox-dns-resolving.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/09/proxy-auto-config/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>两个轻量的PHP框架</title>
		<link>http://www.mudone.com/2011/08/2-lightweight-php-framework/</link>
		<comments>http://www.mudone.com/2011/08/2-lightweight-php-framework/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 11:23:20 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1754</guid>
		<description><![CDATA[MicroMVC (PHP 5.3+) Laravel (PHP 5.3+) Slim : http://www.slimframework.com/ Fat-Free : http://fatfree.sourceforge.net/ (PHP 5.3+)]]></description>
			<content:encoded><![CDATA[<p>MicroMVC (PHP 5.3+)<br />
Laravel (PHP 5.3+)<br />
Slim : http://www.slimframework.com/<br />
Fat-Free : http://fatfree.sourceforge.net/ (PHP 5.3+)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/08/2-lightweight-php-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clean broken gnome applications items</title>
		<link>http://www.mudone.com/2011/08/clean-broken-gnome-applications-items/</link>
		<comments>http://www.mudone.com/2011/08/clean-broken-gnome-applications-items/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 03:08:57 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[TechNote]]></category>

		<guid isPermaLink="false">http://www.mudone.com/?p=1751</guid>
		<description><![CDATA[remove broken items in /usr/share/app-install/desktop/ then /usr/share/gnome-menus/update-gnome-menus-cache /usr/share/applications/ > /usr/share/applications/desktop.en_US.utf8.cache]]></description>
			<content:encoded><![CDATA[<p>remove broken items in /usr/share/app-install/desktop/</p>
<p>then </p>
<p>/usr/share/gnome-menus/update-gnome-menus-cache /usr/share/applications/ > /usr/share/applications/desktop.en_US.utf8.cache</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mudone.com/2011/08/clean-broken-gnome-applications-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

