<?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://imcat.in/feed/" rel="self" type="application/rss+xml" />
	<link>http://imcat.in</link>
	<description>人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的……</description>
	<lastBuildDate>Sun, 06 May 2012 05:40:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>将sqlserver表中的数据导出sql语句</title>
		<link>http://imcat.in/sqlserver-table-data-export-sql-statement/</link>
		<comments>http://imcat.in/sqlserver-table-data-export-sql-statement/#comments</comments>
		<pubDate>Wed, 02 May 2012 15:39:11 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[个人收藏]]></category>
		<category><![CDATA[sqlserver]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1467</guid>
		<description><![CDATA[输入表名，生成插入语句 drop proc proc_insert go create proc proc_insert (@tablename varchar(256)) as begin set nocount on declare @sqlstr varchar(4000) declare @sqlstr1 varchar(4000) declare @sqlstr2 varchar(4000) select @sqlstr='select ''insert '+@tablename select @sqlstr1='' select @sqlstr2=' (' select @sqlstr1= ' values ( ''+' select @sqlstr1=@sqlstr1+col+'+'',''+' ,@sqlstr2=@sqlstr2+name +',' from (select case -- when a.xtype =173 then 'case when '+a.name+' is [...]]]></description>
			<content:encoded><![CDATA[<p>输入表名，生成插入语句</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">drop proc proc_insert<br />
go<br />
create proc proc_insert (@tablename varchar(256))<br />
as<br />
begin<br />
set nocount on<br />
declare @sqlstr varchar(4000)<br />
declare @sqlstr1 varchar(4000)<br />
declare @sqlstr2 varchar(4000)<br />
select @sqlstr='select ''insert '+@tablename<br />
select @sqlstr1=''<br />
select @sqlstr2=' ('<br />
select @sqlstr1= ' values ( ''+'<br />
select @sqlstr1=@sqlstr1+col+'+'',''+' ,@sqlstr2=@sqlstr2+name +',' from (select case<br />
-- when a.xtype =173 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.length*2+2)+'),'+a.name +')'+' end'<br />
when a.xtype =127 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(20),'+a.name +')'+' end'<br />
when a.xtype =104 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(1),'+a.name +')'+' end'<br />
when a.xtype =175 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end'<br />
when a.xtype =61 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'convert(varchar(23),'+a.name +',121)'+ '+'''''''''+' end'<br />
when a.xtype =106 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.xprec+2)+'),'+a.name +')'+' end'<br />
when a.xtype =62 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(23),'+a.name +',2)'+' end'<br />
when a.xtype =56 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(11),'+a.name +')'+' end'<br />
when a.xtype =60 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(22),'+a.name +')'+' end'<br />
when a.xtype =239 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end'<br />
when a.xtype =108 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.xprec+2)+'),'+a.name +')'+' end'<br />
when a.xtype =231 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end'<br />
when a.xtype =59 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(23),'+a.name +',2)'+' end'<br />
when a.xtype =58 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'convert(varchar(23),'+a.name +',121)'+ '+'''''''''+' end'<br />
when a.xtype =52 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(12),'+a.name +')'+' end'<br />
when a.xtype =122 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(22),'+a.name +')'+' end'<br />
when a.xtype =48 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(6),'+a.name +')'+' end'<br />
-- when a.xtype =165 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.length*2+2)+'),'+a.name +')'+' end'<br />
when a.xtype =167 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end'<br />
else '''NULL'''<br />
end as col,a.colid,a.name<br />
from syscolumns a where a.id = object_id(@tablename) and a.xtype &lt;&gt;189 and a.xtype &lt;&gt;34 and a.xtype &lt;&gt;35 and a.xtype &lt;&gt;36<br />
)t order by colid<br />
<br />
select @sqlstr=@sqlstr+left(@sqlstr2,len(@sqlstr2)-1)+') '+left(@sqlstr1,len(@sqlstr1)-3)+')'' from '+@tablename<br />
-- print @sqlstr<br />
exec( @sqlstr)<br />
set nocount off<br />
end<br />
go</div></div>
<p><span id="more-1467"></span><br />
使用方法：</p>
<p>exec proc_insert 你的表名</p>
<p>选择【执行模式】为“以文本显示结果”，然后将运行后的结果存成.sql，加上用SQL Server生成的数据库脚本就可以了。</p>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li><a href="http://imcat.in/some-foreign-free-dns/" title="一些国外免费DNS">一些国外免费DNS</a> (0)</li><li><a href="http://imcat.in/free-computer-to-send-pictures-procedures-mp3/" title=" 电脑免费向手机发送图片、程序、MP3 "> 电脑免费向手机发送图片、程序、MP3 </a> (1)</li><li><a href="http://imcat.in/yanzhao-doors-picture-spread-illegal-joke-articles/" title="传播艳照门图片违法之笑话篇">传播艳照门图片违法之笑话篇</a> (1)</li><li><a href="http://imcat.in/firefox-accelerate-skills-collections-standby/" title="Firefox 加速技巧（收藏备用）">Firefox 加速技巧（收藏备用）</a> (0)</li><li><a href="http://imcat.in/how-to-use-gfw-to-stop-ddos-attacks-from-china/" title="利用功夫网来防止来自中国的DDOS攻击">利用功夫网来防止来自中国的DDOS攻击</a> (16)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/sqlserver-table-data-export-sql-statement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>安装Google perftools出现错误</title>
		<link>http://imcat.in/install-google-perftools-error/</link>
		<comments>http://imcat.in/install-google-perftools-error/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 17:55:10 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Google perftools]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1466</guid>
		<description><![CDATA[刚刚在64位的centos系统安装Google perftools时,出现下面错误 error Cannot calculate stack trace: need either libunwind or frame-pointers 解决方法是在编译参数里增加 --enable-frame-pointers 随机日志找个合适的女朋友可真难那 (8)这样的生活?有么? (1)分享个不错的英文站推广小工具-综合书签站 (0)韩寒经典语录 &#8211; [语录] (1)Google Toolbar for Firefox3 (2)]]></description>
			<content:encoded><![CDATA[<p>刚刚在64位的centos系统安装Google perftools时,出现下面错误</p>
<p>error Cannot calculate stack trace: need either libunwind or frame-pointers</p>
<p>解决方法是在编译参数里增加</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--enable-frame-pointers</div></div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li><a href="http://imcat.in/23-world-of-warcraft-various-ethnic-nudity-female-underwear-transparent-patch-download/" title="魔兽世界各种族裸体(女性内衣透明化)补丁下载">魔兽世界各种族裸体(女性内衣透明化)补丁下载</a> (10)</li><li><a href="http://imcat.in/yizhangyouyisidehuanjuetu/" title="一张有意思的幻觉图">一张有意思的幻觉图</a> (2)</li><li><a href="http://imcat.in/ten-of-the-seo-optimization-techniques-wordpress/" title="十大WordPress的SEO优化技巧">十大WordPress的SEO优化技巧</a> (0)</li><li><a href="http://imcat.in/tui-jian-ji-ge-ke-yi-chuan-tou-gfw-di-zai-xian-dai-li-wang-zhan/" title="推荐几个可以穿透GFW的在线代理网站">推荐几个可以穿透GFW的在线代理网站</a> (3)</li><li><a href="http://imcat.in/iobit-smart-defrag-free-defragmentation-process/" title="IObit Smart Defrag:免费的碎片整理程序">IObit Smart Defrag:免费的碎片整理程序</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/install-google-perftools-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>centos下添加多个IP地址的方法</title>
		<link>http://imcat.in/centos-add-ip-addresses/</link>
		<comments>http://imcat.in/centos-add-ip-addresses/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 16:37:35 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[IP]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1464</guid>
		<description><![CDATA[操作如下，登陆SSH: vi /etc/syscionfig/network-scripts/ifcfg-eth0:0 第二个IP,就是 vi /etc/syscionfig/network-scripts/ifcfg-eth0:1 第三个IP,就是 ifcfg-eth0:2(由此类推) DEVICE=eth0:0 网卡设备名称 onboot=YES &#160; &#160;随机启动 BOOTPROTO=static &#160;静态分配IP IPADDR=*.*.*.* &#160;要添加的IP地址 NETMASK=255.255.255.0 &#160;子网掩码（以实际为准） GATEWAY=*.*.*.* &#160;路由 如果IP是连续的，可以使用下面的方法。 vi /etc/sysconfig/network-scripts/ifcfg-eth0-range DEVICE=eth0 BOOTPROTO=static IPADDR_START=起始IP IPADDR_END=结束IP CLONENUM_START=网卡起始编号 NETMASK=子网掩码 ONBOOT=yes 保存文件然后重启网络服务立即生效 /etc/init.d/network restart centos add IP addresses 暧味日志CentOS 安装pptpd VPN服务 (7)在Linux系统centos 上安装7-ZIP (11)在Linux系统centos上安装RAR (4)CentOS安装crontab及使用方法 (7)]]></description>
			<content:encoded><![CDATA[<p>操作如下，登陆SSH:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vi /etc/syscionfig/network-scripts/ifcfg-eth0:0</div></div>
<p>第二个IP,就是</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vi /etc/syscionfig/network-scripts/ifcfg-eth0:1</div></div>
<p>第三个IP,就是<br />
ifcfg-eth0:2(由此类推)<br />
<span id="more-1464"></span></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DEVICE=eth0:0 网卡设备名称<br />
onboot=YES &nbsp; &nbsp;随机启动<br />
BOOTPROTO=static &nbsp;静态分配IP<br />
IPADDR=*.*.*.* &nbsp;要添加的IP地址<br />
NETMASK=255.255.255.0 &nbsp;子网掩码（以实际为准）<br />
GATEWAY=*.*.*.* &nbsp;路由</div></div>
<p>如果IP是连续的，可以使用下面的方法。</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vi /etc/sysconfig/network-scripts/ifcfg-eth0-range<br />
DEVICE=eth0<br />
BOOTPROTO=static<br />
IPADDR_START=起始IP<br />
IPADDR_END=结束IP<br />
CLONENUM_START=网卡起始编号<br />
NETMASK=子网掩码<br />
ONBOOT=yes</div></div>
<p>保存文件然后重启网络服务立即生效</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/etc/init.d/network restart</div></div>
<p>centos add IP addresses</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/centos-install-pptpd-vpn-services/" title="CentOS 安装pptpd VPN服务">CentOS 安装pptpd VPN服务</a> (7)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li><li><a href="http://imcat.in/linux-system-install-rar-centos/" title="在Linux系统centos上安装RAR">在Linux系统centos上安装RAR</a> (4)</li><li><a href="http://imcat.in/centos-installation-use-crontab/" title="CentOS安装crontab及使用方法">CentOS安装crontab及使用方法</a> (7)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/centos-add-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Centos 5.6 yum 安装 openssl 出错</title>
		<link>http://imcat.in/centos-yum-install-openssl-error/</link>
		<comments>http://imcat.in/centos-yum-install-openssl-error/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 11:53:05 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Centos 5.6]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1463</guid>
		<description><![CDATA[Centos 5.6连这样的错误都有!!!! Transaction Check Error: package openssl-0.9.8e-12.el5_5.7.i686 is already installed file /lib/.libcrypto.so.0.9.8e.hmac from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /lib/.libssl.so.0.9.8e.hmac from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /lib/libcrypto.so.0.9.8e from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386 file /lib/libssl.so.0.9.8e from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file [...]]]></description>
			<content:encoded><![CDATA[<p>Centos 5.6连这样的错误都有!!!!</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Transaction Check Error:<br />
package openssl-0.9.8e-12.el5_5.7.i686 is already installed<br />
file /lib/.libcrypto.so.0.9.8e.hmac from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /lib/.libssl.so.0.9.8e.hmac from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /lib/libcrypto.so.0.9.8e from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /lib/libssl.so.0.9.8e from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/bin/openssl from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/lib4758cca.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libaep.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libatalla.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libchil.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libcswift.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libgmp.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libnuron.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libsureware.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386<br />
file /usr/lib/openssl/engines/libubsec.so from install of openssl-0.9.8e-12.el5_5.7.i686 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i386</div></div>
<p>解决方法很简单:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpm -e --justdb --nodeps openssl.i386<br />
yum install openssl</div></div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li><a href="http://imcat.in/firefox3-to-a-guinness-book-of-world-records/" title="Firefox3要创吉尼斯世界纪录?">Firefox3要创吉尼斯世界纪录?</a> (7)</li><li><a href="http://imcat.in/avg-anti-virus-free-commercial-version-75-professional/" title="AVG Anti-Virus 7.5 Professional 免费商业版本">AVG Anti-Virus 7.5 Professional 免费商业版本</a> (0)</li><li><a href="http://imcat.in/flickr-tools-upload-large-pool/" title="Flickr上传工具大集合">Flickr上传工具大集合</a> (0)</li><li><a href="http://imcat.in/the-new-diana/" title="The new diana">The new diana</a> (0)</li><li><a href="http://imcat.in/how-in-the-streets-identified-wanmoshou-the-world/" title="怎样在大街上认出玩魔兽世界的人！">怎样在大街上认出玩魔兽世界的人！</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/centos-yum-install-openssl-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux命令tar压缩排除指定目录的方法</title>
		<link>http://imcat.in/linux-tar-exclude/</link>
		<comments>http://imcat.in/linux-tar-exclude/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 06:04:17 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1461</guid>
		<description><![CDATA[例如我要压缩 /cat/backup 这个文件夹 (绝对路径),但是不将里面的图片文件夹img也压缩了.可以用tar命令的--exclude 排除掉.方法 tar -zcvf backup.tar.gz --exclude=/cat/backup/img &#160;/cat/backup 排除多个目录 tar -zcvf backup.tar.gz --exclude=/cat/backup/img --exclude=/cat/backup/a --exclude=/cat/backup/b /cat/backup 暧味日志iptables限制同一IP连接数 (4)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (4)在Linux系统centos 上安装7-ZIP (11)]]></description>
			<content:encoded><![CDATA[<p>例如我要压缩 /cat/backup 这个文件夹 (绝对路径),但是不将里面的图片文件夹img也压缩了.可以用tar命令的--exclude 排除掉.方法</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -zcvf backup.tar.gz --exclude=/cat/backup/img &nbsp;/cat/backup</div></div>
<p>排除多个目录</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -zcvf backup.tar.gz --exclude=/cat/backup/img --exclude=/cat/backup/a --exclude=/cat/backup/b /cat/backup</div></div>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (4)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (4)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-tar-exclude/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables限制同一IP连接数</title>
		<link>http://imcat.in/iptables-limit-number-connections-same-ip/</link>
		<comments>http://imcat.in/iptables-limit-number-connections-same-ip/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 07:49:35 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1397</guid>
		<description><![CDATA[最近无聊人太多了,一直拿我的小博客来压力测试,所以不得不限制同一个IP的连接数,用iptables就可以简单设置了... &#160; iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 10 -j DROP 限制单个地址并发连接数不大于10 暧味日志Linux命令tar压缩排除指定目录的方法 (0)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (4)在Linux系统centos 上安装7-ZIP (11)]]></description>
			<content:encoded><![CDATA[<p>最近无聊人太多了,一直拿我的小博客来压力测试,所以不得不限制同一个IP的连接数,用iptables就可以简单设置了...</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 10 -j DROP</div></div>
<p>限制单个地址并发连接数不大于10</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (4)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/iptables-limit-number-connections-same-ip/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress在Nginx中启用Apache的mod_rewrite</title>
		<link>http://imcat.in/wordpress-on-nginx-apache-mod_rewrite-enabled/</link>
		<comments>http://imcat.in/wordpress-on-nginx-apache-mod_rewrite-enabled/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 04:48:30 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1396</guid>
		<description><![CDATA[其实不是真的可以另到 Nginx 支持 Apache 的 mod_rewrite 的.因为如果你的web服务器是 Nginx ,那么你的 WordPress 就会提示你的服务器环境不支持 mod_rewrite 了,但实际上是支持的,例如安装了 WP Super Cache 这插件就有这样的提示了,现在我们只要添加一行代码就可以关闭这个提示,欺骗WordPress ,让它认为是支持 mod_rewrite 方法是在主题的 functions.php 文件添加下面的代码: add_filter('got_rewrite', 'nginx_has_rewrites'); function nginx_has_rewrites() { &#160; &#160; return true; } 另外,因为Nginx运行PHP是用PHP-FPM的,所以有时会导致WordPress认为php没有写权限,表现为无法自动升级,和升级插件等,下面这个代码可以修改这个错误. add_filter('filesystem_method', 'nginx_make_filesystem_direct'); function nginx_make_filesystem_direct() { &#160; &#160; return 'direct'; } 暧味日志WordPress的Nginx 301重定向 (3)关闭 WordPress 3.1 的管理工具条 (3)简单配置Nginx前端处理静态文件,LiteSpeed后端处理动态文件 (32)WordPress首页不显示某些分类的文章 (6)LNMP 一键安装包平滑升级 Nginx 到最新版本 [...]]]></description>
			<content:encoded><![CDATA[<p>其实不是真的可以另到 Nginx 支持 Apache 的 mod_rewrite 的.因为如果你的web服务器是 Nginx ,那么你的 WordPress 就会提示你的服务器环境不支持 mod_rewrite 了,但实际上是支持的,例如安装了 WP Super Cache 这插件就有这样的提示了,现在我们只要添加一行代码就可以关闭这个提示,欺骗WordPress ,让它认为是支持 mod_rewrite 方法是在主题的 functions.php 文件添加下面的代码:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_filter('got_rewrite', 'nginx_has_rewrites');<br />
function nginx_has_rewrites() {<br />
&nbsp; &nbsp; return true;<br />
}</div></div>
<p>另外,因为Nginx运行PHP是用PHP-FPM的,所以有时会导致WordPress认为php没有写权限,表现为无法自动升级,和升级插件等,下面这个代码可以修改这个错误.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_filter('filesystem_method', 'nginx_make_filesystem_direct');<br />
function nginx_make_filesystem_direct() {<br />
&nbsp; &nbsp; return 'direct';<br />
}</div></div>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/nginx-301-redirect-in-wordpress/" title="WordPress的Nginx 301重定向">WordPress的Nginx 301重定向</a> (3)</li><li><a href="http://imcat.in/close-wordpress-3-1-toolbar/" title="关闭 WordPress 3.1 的管理工具条">关闭 WordPress 3.1 的管理工具条</a> (3)</li><li><a href="http://imcat.in/simple-configuration-nginx-litespeed/" title="简单配置Nginx前端处理静态文件,LiteSpeed后端处理动态文件">简单配置Nginx前端处理静态文件,LiteSpeed后端处理动态文件</a> (32)</li><li><a href="http://imcat.in/wordpress-home-not-display-categories-articles/" title="WordPress首页不显示某些分类的文章">WordPress首页不显示某些分类的文章</a> (6)</li><li><a href="http://imcat.in/lnmp-installation-package-upgrade-latest-version-nginx/" title="LNMP 一键安装包平滑升级 Nginx 到最新版本">LNMP 一键安装包平滑升级 Nginx 到最新版本</a> (10)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/wordpress-on-nginx-apache-mod_rewrite-enabled/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>关闭 WordPress 3.1 的管理工具条</title>
		<link>http://imcat.in/close-wordpress-3-1-toolbar/</link>
		<comments>http://imcat.in/close-wordpress-3-1-toolbar/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 04:33:40 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 3.1]]></category>
		<category><![CDATA[管理工具条]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1394</guid>
		<description><![CDATA[升级到 WordPress 3.1 ,感觉没有什么两样,唯一无法忍受的就是它的管理工具条.所以要干掉它.方法是在后台用户资料哪里选择隐藏它就OK了. 或者在主题的functions.php文件添加一行代码: add_filter( 'show_admin_bar', '__return_false' ); 这样那个管理工具条就消失了.. 暧味日志WordPress在Nginx中启用Apache的mod_rewrite (7)WordPress首页不显示某些分类的文章 (6)修改Google Sitemaps 支持 Wordress 3.0 (10)WordPress的Nginx 301重定向 (3)推荐WordPress插件 &#8211; WP Widget Cache (27)]]></description>
			<content:encoded><![CDATA[<p>升级到 WordPress 3.1 ,感觉没有什么两样,唯一无法忍受的就是它的管理工具条.所以要干掉它.方法是在后台用户资料哪里选择隐藏它就OK了.<br />
<img src="http://imcat.in/wp-content/uploads/2011/02/043341Cp0.png" alt="043341Cp0 关闭 WordPress 3.1 的管理工具条" width="588" height="286" title="关闭 WordPress 3.1 的管理工具条" /></p>
<p>或者在主题的functions.php文件添加一行代码:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_filter( 'show_admin_bar', '__return_false' );</div></div>
<p>这样那个管理工具条就消失了..</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/wordpress-on-nginx-apache-mod_rewrite-enabled/" title="WordPress在Nginx中启用Apache的mod_rewrite">WordPress在Nginx中启用Apache的mod_rewrite</a> (7)</li><li><a href="http://imcat.in/wordpress-home-not-display-categories-articles/" title="WordPress首页不显示某些分类的文章">WordPress首页不显示某些分类的文章</a> (6)</li><li><a href="http://imcat.in/google-sitemaps-support-wordpress/" title="修改Google Sitemaps 支持 Wordress 3.0">修改Google Sitemaps 支持 Wordress 3.0</a> (10)</li><li><a href="http://imcat.in/nginx-301-redirect-in-wordpress/" title="WordPress的Nginx 301重定向">WordPress的Nginx 301重定向</a> (3)</li><li><a href="http://imcat.in/recommended-wordpress-plugin-wp-widget-cache/" title="推荐WordPress插件 &#8211; WP Widget Cache">推荐WordPress插件 &#8211; WP Widget Cache</a> (27)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/close-wordpress-3-1-toolbar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux下替换文件名中的空格</title>
		<link>http://imcat.in/linux-replace-the-file-name-space/</link>
		<comments>http://imcat.in/linux-replace-the-file-name-space/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 03:16:01 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1393</guid>
		<description><![CDATA[find . -type f -name &#34;* *&#34; -print &#124; while read name; do na=$(echo $name &#124; tr ' ' '_') if [[ $name != $na ]]; then mv &#34;$name&#34; $na fi done 暧味日志Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (4)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (4)在Linux系统centos 上安装7-ZIP (11)]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">find . -type f -name &quot;* *&quot; -print |<br />
while read name; do<br />
na=$(echo $name | tr ' ' '_')<br />
if [[ $name != $na ]]; then<br />
mv &quot;$name&quot; $na<br />
fi<br />
done</div></div>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (4)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (4)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-replace-the-file-name-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用功夫网来防止来自中国的DDOS攻击</title>
		<link>http://imcat.in/how-to-use-gfw-to-stop-ddos-attacks-from-china/</link>
		<comments>http://imcat.in/how-to-use-gfw-to-stop-ddos-attacks-from-china/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 02:36:43 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DDOS]]></category>
		<category><![CDATA[DDOS攻击]]></category>
		<category><![CDATA[功夫网]]></category>
		<category><![CDATA[攻击]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1392</guid>
		<description><![CDATA[功夫网终于有贡献了.. 不过可能会有副作用,就是连自己的网站都给功夫网封了... 下面是php代码.. &#60;?php &#160; if(strpos($_SERVER['REQUEST_URI'],'minghui') === false) { &#160; header('Location:'. $_SERVER['REQUEST_URI'] . '?minghui'); &#160; exit; &#160; } &#160; ?&#62; 演示:http://vii.im/gfw-test.php 随机日志刻录工具ImgBurn：软件虽小，能耐不小 (0)魔兽世界每日任务：灵翼水晶 (0)国外自动免费VPN代理Hotspot Shield (1)年底五部大片的启示 (0)Firefox终极优化软件 (0)]]></description>
			<content:encoded><![CDATA[<p>功夫网终于有贡献了..<br />
不过可能会有副作用,就是连自己的网站都给功夫网封了...<br />
下面是php代码..</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php &nbsp;<br />
if(strpos($_SERVER['REQUEST_URI'],'minghui') === false) { &nbsp;<br />
header('Location:'. $_SERVER['REQUEST_URI'] . '?minghui'); &nbsp;<br />
exit; &nbsp;<br />
} &nbsp;<br />
?&gt;</div></div>
<p>演示:http://vii.im/gfw-test.php</p>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li><a href="http://imcat.in/google-sitemaps-support-wordpress/" title="修改Google Sitemaps 支持 Wordress 3.0">修改Google Sitemaps 支持 Wordress 3.0</a> (10)</li><li><a href="http://imcat.in/skype-ye-ke-yi-tong-yi-tai-dian-nao-duo-yong-hu-deng-lu/" title="Skype也可以同一台电脑多用户登录">Skype也可以同一台电脑多用户登录</a> (1)</li><li><a href="http://imcat.in/wordpress-template-test-plug-in-theme-test-drive/" title="WordPress 模板测试插件 &#8211; Theme Test Drive">WordPress 模板测试插件 &#8211; Theme Test Drive</a> (0)</li><li><a href="http://imcat.in/starcraft-2-wu-yao-wang-of-anger-as-a-screenshot/" title="星际争霸2|巫妖王之怒最新截图">星际争霸2|巫妖王之怒最新截图</a> (4)</li><li><a href="http://imcat.in/production-of-non-mainstream-information-tool-personality/" title="非主流个性资料制作工具">非主流个性资料制作工具</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/how-to-use-gfw-to-stop-ddos-attacks-from-china/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

