<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>肖建彬的博客 &#187; TIPS</title>
	<atom:link href="http://www.xiaojb.com/archives/category/tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaojb.com</link>
	<description>奋斗无止境 爱拼才会赢</description>
	<lastBuildDate>Tue, 06 Oct 2009 08:07:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>当爱已成往事&#8211;人生没有你会不同</title>
		<link>http://www.xiaojb.com/archives/personal/the-best-of-leslie-cheung.shtml</link>
		<comments>http://www.xiaojb.com/archives/personal/the-best-of-leslie-cheung.shtml#comments</comments>
		<pubDate>Tue, 01 Apr 2008 10:40:04 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[有一说一]]></category>
		<category><![CDATA[霸王别姬]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[张国荣]]></category>
		<category><![CDATA[当爱已成往事]]></category>
		<category><![CDATA[歌曲]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/?p=618</guid>
		<description><![CDATA[当爱已成往事
张国荣

往事不要再提
人生已多风雨
纵然记忆抹不去
爱与恨都还在心里
真的要断了过去
让明天好好继续
你就不要再苦苦追问我的消息
爱情它是个难题
让人目眩神迷
忘了痛或许可以
忘了你却太不容易
你不曾真的离去
你始终在我心里
我对你仍有爱意
我对自己无能为力
因为我仍有梦
依然将你放在我心中
总是容易被往事打动
总是为了你心痛
别留恋岁月中
我无意的柔情万种
不要问我是否再相逢
不要管我是否言不由衷
为何你不懂
只要有爱就有痛
有一天你会知道
人生没有我并不会不同
人生已经太匆匆
我好害怕总是泪眼朦胧
忘了我就没有痛
将往事留在风中
]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.xiaojb.com/archives/personal/the-best-of-leslie-cheungthe-best-of-leslie-cheung.shtml">当爱已成往事</a></strong></p>
<p><a href="http://www.xiaojb.com/archives/tag/%e5%bc%a0%e5%9b%bd%e8%8d%a3">张国荣</a></p>
<p><embed src="http://player.youku.com/player.php/sid/XMTk3OTE4ODg=/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed></p>
<p>往事不要再提<br />
人生已多风雨<br />
纵然记忆抹不去<br />
爱与恨都还在心里<br />
真的要断了过去<br />
让明天好好继续<br />
你就不要再苦苦追问我的消息<br />
爱情它是个难题<br />
让人目眩神迷<br />
忘了痛或许可以<br />
忘了你却太不容易<br />
你不曾真的离去<br />
你始终在我心里<br />
我对你仍有爱意<br />
我对自己无能为力<br />
因为我仍有梦<br />
依然将你放在我心中<br />
总是容易被往事打动<br />
总是为了你心痛<br />
别留恋岁月中<br />
我无意的柔情万种<br />
不要问我是否再相逢<br />
不要管我是否言不由衷<br />
为何你不懂<br />
只要有爱就有痛<br />
有一天你会知道<br />
人生没有我并不会不同<br />
人生已经太匆匆<br />
我好害怕总是泪眼朦胧<br />
忘了我就没有痛<br />
将往事留在风中</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/personal/the-best-of-leslie-cheung.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox下拷贝/复制文本到剪切板</title>
		<link>http://www.xiaojb.com/archives/tips/firefox-copy-text-cutboard.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/firefox-copy-text-cutboard.shtml#comments</comments>
		<pubDate>Thu, 13 Dec 2007 13:55:25 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/firefox-copy-text-cutboard.shtml</guid>
		<description><![CDATA[Firefox下拷贝/复制文本到剪切板的javascript代码：

function copy(text2copy) {
	if (window.clipboardData) {
		window.clipboardData.setData(&#8221;Text&#8221;,text2copy);
	} else {
		var flashcopier = &#8216;flashcopier&#8217;;
		if(!$(flashcopier)) {
		var divholder = document.createElement(&#8217;div&#8217;);
		divholder.id = flashcopier;
		document.body.appendChild(divholder);
		}
		$(flashcopier).innerHTML = &#8221;;
		var divinfo = &#8216;&#8216;;
		$(flashcopier).innerHTML = divinfo;
	}
}

众所周知Firefox下是没有clipboardData这个对象的，windows.clipboardData属于IE的标准，所以Firefox下是不能做到复制文本的，这个方法把javascript不能完成的工作交给flash，是一个不错的处理方法。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xiaojb.com/archives/tag/firefox">Firefox</a>下拷贝/复制文本到剪切板的<a href="http://www.xiaojb.com/archives/tag/javascript">javascript</a>代码：<br />
<coolcode lang="javascript"><br />
function copy(text2copy) {<br />
	if (window.clipboardData) {<br />
		window.clipboardData.setData(&#8221;Text&#8221;,text2copy);<br />
	} else {<br />
		var flashcopier = &#8216;flashcopier&#8217;;<br />
		if(!$(flashcopier)) {<br />
		var divholder = document.createElement(&#8217;div&#8217;);<br />
		<a target="_blank" href="http://divholder.id"><span class="yshortcuts" id="lw_1197738616_0">divholder.id</span></a> = flashcopier;<br />
		document.body.appendChild(divholder);<br />
		}</p>
<p>		$(flashcopier).innerHTML = &#8221;;<br />
		var divinfo = &#8216;<embed src="./clipboard.swf" FlashVars="clipboard='+escape(text2copy)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>&#8216;;<br />
		$(flashcopier).innerHTML = divinfo;</p>
<p>	}<br />
}<br />
</coolcode></p>
<p>众所周知<strong><a href="http://www.xiaojb.com/archives/tag/firefox">Firefox</a></strong>下是没有clipboardData这个对象的，windows.clipboardData属于IE的标准，所以<a href="http://www.xiaojb.com/archives/tag/firefox">Firefox</a>下是不能做到复制文本的，这个方法把<a href="http://www.xiaojb.com/archives/tag/javascript">javascript</a>不能完成的工作交给flash，是一个不错的处理方法。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/firefox-copy-text-cutboard.shtml/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>php+fastcgi遭遇No input file specified.错误</title>
		<link>http://www.xiaojb.com/archives/tips/php-fastcgi-no-input-file-specified.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/php-fastcgi-no-input-file-specified.shtml#comments</comments>
		<pubDate>Mon, 05 Nov 2007 11:02:09 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/phpfastcgi%e9%81%ad%e9%81%87no-input-file-specified%e9%94%99%e8%af%af.shtml</guid>
		<description><![CDATA[   最近经常搞lighttpd+fastcgi+php或者nginx+fastcgi+php，时常被php的“No input file specified.”给郁闷了，把我遇到的情况说一下
首先php.ini的配置中
cgi.fix_pathinfo=1
doc_root=
doc_root曾经被我设置过一个路径，结果php老提示“No input file specified.”，只有一个虚机好使。改掉后就正常了。
nginx中的配置有些麻烦
fastcgi_pass   127.0.0.1:1234;
fastcgi_index  index.php;
fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;
每个虚机要根据自己不通的虚机设置不能的目录，要保证这个路径正确。
fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;不能在fastcgi_pass   127.0.0.1:1234;的前面。
记得修改了php.ini要重启fastcgi服务。
其实都是因为粗心造成的，本来很简单，写出来也给自己提个醒。
]]></description>
			<content:encoded><![CDATA[<p>   最近经常搞<a href="http://www.xiaojb.com/archives/tag/lighttpd">lighttpd</a>+fastcgi+<a href="http://www.xiaojb.com/archives/tag/php">php</a>或者nginx+fastcgi+<a href="http://www.xiaojb.com/archives/tag/php">php</a>，时常被<a href="http://www.xiaojb.com/archives/tag/php">php</a>的“No input file specified.”给郁闷了，把我遇到的情况说一下</p>
<p>首先php.ini的配置中<br />
cgi.fix_pathinfo=1<br />
doc_root=</p>
<p>doc_root曾经被我设置过一个路径，结果php老提示“No input file specified.”，只有一个虚机好使。改掉后就正常了。</p>
<p>nginx中的配置有些麻烦</p>
<p>fastcgi_pass   127.0.0.1:1234;<br />
fastcgi_index  index.php;<br />
fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;</p>
<p>每个虚机要根据自己不通的虚机设置不能的目录，要保证这个路径正确。<br />
fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;不能在fastcgi_pass   127.0.0.1:1234;的前面。</p>
<p>记得修改了php.ini要重启fastcgi服务。</p>
<p>其实都是因为粗心造成的，本来很简单，写出来也给自己提个醒。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/php-fastcgi-no-input-file-specified.shtml/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu桌面UTF-8环境下水木社区灌水</title>
		<link>http://www.xiaojb.com/archives/tips/ubuntu-utf-8-gbk-newsmth.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/ubuntu-utf-8-gbk-newsmth.shtml#comments</comments>
		<pubDate>Fri, 13 Jul 2007 18:34:25 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UTF-8]]></category>
		<category><![CDATA[桌面]]></category>
		<category><![CDATA[水木社区]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/ubuntu-utf-8-gbk-newsmth.shtml</guid>
		<description><![CDATA[    自从到了ubuntu环境下后，一直为UTF-8环境下上水木社区的问题困扰，用GBK的mrxvt，不能用scim输入文字，qterm我不喜欢，今天浏览了大部分linuxapp的帖子，终于把这个问题终于解决了。
我使用的term是gnome自带的gnome-terminal，安装了luit，他支持GB2312和UTF-8之间的转换。

luit -encoding GBK telnet newsmth.net

注意gnome-terminal的字体需要是中文字体，我使用的是文泉驿。
目前输入和显示汉字都没有问题。
]]></description>
			<content:encoded><![CDATA[<p>    自从到了ubuntu环境下后，一直为UTF-8环境下上<a href="http://www.newsmth.net/">水木社区</a>的问题困扰，用GBK的mrxvt，不能用scim输入文字，qterm我不喜欢，今天浏览了大部分linuxapp的帖子，终于把这个问题终于解决了。<br />
我使用的term是gnome自带的gnome-terminal，安装了luit，他支持GB2312和UTF-8之间的转换。<br />
<coolcode linenum="off"><br />
luit -encoding GBK telnet newsmth.net<br />
</coolcode></p>
<p>注意gnome-terminal的字体需要是中文字体，我使用的是文泉驿。<br />
目前输入和显示汉字都没有问题。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/ubuntu-utf-8-gbk-newsmth.shtml/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>不同编码页面调用javascript文件防乱码方法</title>
		<link>http://www.xiaojb.com/archives/tips/javascript-charset.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/javascript-charset.shtml#comments</comments>
		<pubDate>Sat, 28 Apr 2007 14:16:04 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/javascript-charset.shtml</guid>
		<description><![CDATA[
&#60;script type="text/javascript" src="http://profile.5d6d.com/js/regions.js" charset="utf-8"&#62;&#60;script&#62;

我这个js的编码是UTF-8，字是中文简体，使用这种方法调用js，在gbk页面看到的是简体中文，在big5页面看到的是大五码。
]]></description>
			<content:encoded><![CDATA[<pre>
&lt;script type="text/javascript" src="http://profile.5d6d.com/js/regions.js" charset="utf-8"&gt;&lt;script&gt;
</pre>
<p>我这个js的编码是UTF-8，字是中文简体，使用这种方法调用js，在gbk页面看到的是简体中文，在big5页面看到的是大五码。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/javascript-charset.shtml/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>关闭linux的SElinux不重启linux的方法</title>
		<link>http://www.xiaojb.com/archives/tips/disabled-selinux.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/disabled-selinux.shtml#comments</comments>
		<pubDate>Fri, 13 Apr 2007 04:56:06 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SELINUX]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/disabled-selinux.shtml</guid>
		<description><![CDATA[Redhat系统，修改/etc/sysconfig/selinux文件：
#SELINUX=enforcing
SELINUX=disabled
重启生效，如果不想重启，用命令
setenforce 0
]]></description>
			<content:encoded><![CDATA[<p>Redhat系统，修改/etc/sysconfig/selinux文件：<br />
#SELINUX=enforcing<br />
SELINUX=disabled</p>
<p>重启生效，如果不想重启，用命令<br />
setenforce 0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/disabled-selinux.shtml/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux下用命令关闭显示器</title>
		<link>http://www.xiaojb.com/archives/tips/linux_display_off.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/linux_display_off.shtml#comments</comments>
		<pubDate>Sat, 17 Mar 2007 03:26:39 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/linux_display_off.shtml</guid>
		<description><![CDATA[$ xset dpms force off
需要显示器支持DPMS (Energy Star)，xorg.conf中也要打开相应选项
$ xset q #查看相关信息
]]></description>
			<content:encoded><![CDATA[<p>$ xset dpms force off</p>
<p>需要显示器支持DPMS (Energy Star)，xorg.conf中也要打开相应选项</p>
<p>$ xset q #查看相关信息</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/linux_display_off.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下修改网卡的物理地址</title>
		<link>http://www.xiaojb.com/archives/tips/linux_nic_mac.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/linux_nic_mac.shtml#comments</comments>
		<pubDate>Sat, 17 Mar 2007 03:22:29 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[修改网卡物理地址]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/linux_nic_mac.shtml</guid>
		<description><![CDATA[/sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE
]]></description>
			<content:encoded><![CDATA[<p>/sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/linux_nic_mac.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装perl的模块(CPAN)</title>
		<link>http://www.xiaojb.com/archives/tips/perl-module.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/perl-module.shtml#comments</comments>
		<pubDate>Mon, 30 Oct 2006 02:18:07 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/perl-module.shtml</guid>
		<description><![CDATA[命令行下
perl -MCPAN -e shell
perl -MCPAN -e &#8216;install &#8220;Unix::Syslog&#8221;&#8216;
头一次运行的时候会问是否配置，选no即可。
CPAN(Comprehensive Perl Archive Network)
www.cpan.org
search.cpan.org
]]></description>
			<content:encoded><![CDATA[<p>命令行下<br />
perl -MCPAN -e shell<br />
perl -MCPAN -e &#8216;install &#8220;Unix::Syslog&#8221;&#8216;</p>
<p>头一次运行的时候会问是否配置，选no即可。</p>
<p>CPAN(Comprehensive Perl Archive Network)<br />
www.cpan.org<br />
search.cpan.org</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/perl-module.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux看网卡流量的命令</title>
		<link>http://www.xiaojb.com/archives/tips/linux-nic-traffic.shtml</link>
		<comments>http://www.xiaojb.com/archives/tips/linux-nic-traffic.shtml#comments</comments>
		<pubDate>Mon, 18 Sep 2006 02:52:14 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[TIPS]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/tips/linux-nic-traffic.shtml</guid>
		<description><![CDATA[除了使用mrtg/rrdtool绘图来看网卡的流量，linux下也有命令可以实现。

iftop
http://www.ex-parrot.com/~pdw/iftop/

iftraf&#8211;Linux Interface Traffic Monitor
http://freshmeat.net/projects/iftraf/
nload&#8211;monitors network traffic and bandwidth usage
http://www.roland-riegel.de/nload/index.html


]]></description>
			<content:encoded><![CDATA[<p>除了使用mrtg/rrdtool绘图来看网卡的流量，linux下也有命令可以实现。</p>
<ul>
<li>iftop</li>
<p><a href="http://www.ex-parrot.com/~pdw/iftop/">http://www.ex-parrot.com/~pdw/iftop/</a></p>
<p><img src="http://www.ex-parrot.com/~pdw/iftop/iftop_normal.png" alt="iftop" /></p>
<li>iftraf&#8211;Linux Interface Traffic Monitor</li>
<p><a href="http://freshmeat.net/projects/iftraf/">http://freshmeat.net/projects/iftraf/</a></p>
<li>nload&#8211;monitors network traffic and bandwidth usage</li>
<p><a href="http://www.roland-riegel.de/nload/index.html">http://www.roland-riegel.de/nload/index.html</a><br />
<img src="http://www.roland-riegel.de/nload/screenshots/shot1.png" alt="nload" />
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/tips/linux-nic-traffic.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
