<?xml version="1.0" encoding="utf-8" ?>
<!-- generator="FEEDCREATOR_VERSION" -->
<rss version="2.0" xmlns:sns="http://blog.sina.com.cn/sns">
    <channel>
        <title>sin新家园III'/*</title>
        <description></description>
        <link>http://blog.sina.com.cn/fteast</link>
        <lastBuildDate>Sun, 08 Jan 2012 20:01:31 +0800</lastBuildDate>
        <generator>FEEDCREATOR_VERSION</generator>
        <language>zh-cn</language>
        <copyright>Copyright 1996 - 2009 SINA Inc. All Rights Reserved.</copyright>
        <pubDate>Thu, 23 Feb 2012 10:18:16 +0800</pubDate>
        <item>
            <title>2011年即以前的博文小结</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100x4l7.html</link>
            <description><![CDATA[<div><span STYLE="line-height: 21px;">刚把文章都整理了一下，</SPAN><span STYLE="line-height: 21px;">主要是05-09年的文章。看这当时的一些文章，眼前浮现出当时的一些情节，当时肯定苦逼的不行，但它们都过去了，现在又怀念得不行。</SPAN></DIV>
<div><span STYLE="line-height: 21px;"><br /></SPAN></DIV>
去年就没在这里写过啥。估计以后也不会在这写了。留下最后一篇，做为最后的总结吧。
<div><br /></DIV>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100x4l7.html#comment</comments>
            <pubDate>Sun, 08 Jan 2012 20:01:31 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100x4l7.html</guid>
        </item>
        <item>
            <title>Deepin Linux (Ubuntu)设置笔记</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100nbxd.html</link>
            <description><![CDATA[最近安装了Deepin Linux，虽然总体还比较满意，但是也折腾了不少时间。记录如下：<br />
<br />
系统优化：<br />
<br />
Ubuntu下面Firefox鼠标设置：http://zhangcs3d.blog.163.com/blog/static/30301998200891971339235/<br />

-- 不清楚怎么设置全局的鼠标滚动行数，但是Firefox的找到了，解决了80%的问题。<br />
<br />
小小输入法：总体上满意。但是没有弄明白云（搜狗）和拼音和啥区别。它在freemind下会默认有问题。<br />
<br />
字体：用着用着就会有字体变成黑色方块。放大缩小又好了。有的时候字体会变成白色。<br />
<br />
<br />]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100nbxd.html#comment</comments>
            <pubDate>Mon, 06 Dec 2010 15:20:03 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100nbxd.html</guid>
        </item>
        <item>
            <title>我的博客今天5岁211天啦！</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100lc75.html</link>
            <description><![CDATA[		<div style="margin:0; padding:34px 0 20px 0; padding-top:33px\9; border:1px solid #fede88; background:#fcf8e7 url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/bg5.jpg) no-repeat center top; position:relative; text-align:center; font-family:'宋体',Arial,Helvetica,sans-serif; color:#000000; font-size:14px;">
    	<div style="margin:0; padding:0; position:absolute; right:36px; top:26px;"></div>
        <div style="margin:0 auto; padding:0 0 24px 0; min-height:257px; _height:257px; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/bg_conn.png) no-repeat center top; width:433px; font-size:12px; text-align:left;">    
        	<h3 style="margin: 0pt; padding: 0pt 0pt 0pt 30px; height: 32px; line-height: 32px; overflow: hidden; color: rgb(125, 80, 0); font-family: '微软雅黑'; font-size: 16px;">我的博客今天<span style="color: rgb(255, 54, 0);">5</span>岁<span style="color: rgb(255, 54, 0);">211</span>天啦！</h3>
                <div style="margin:0; padding:0 52px 0 30px; line-height:150%; color:#7d5000;">
                    <p style="margin:0; padding:18px 0 0; padding-top:15px\9;">2005年02月22日，在新浪博客安家。</p>
                    <p style="margin:0; padding:0;">2005年03月02日，写下了第一篇博文：<a href=http://blog.sina.com.cn/s/blog_3f3422fd01000003.html target=_blank>《在PHP中执行系统外部命令》</a>。</p>
                    <p style="margin:0; padding:0;">2007年03月30日，上传了第一张图片到相册。</p>
                    <p style="margin:0; padding:0 0 8px 0;">这些年来，新浪博客，陪伴着我一点一点谱写生活。</p>
                </div>
                <div style="margin:0 0 0 30px; padding:10px 0 0 10px; height:80px; height:85px\9; border:1px solid #cacaca; width:351px; overflow:hidden;">
                    <div style="margin:0; padding:0 0 8px 0; overflow:hidden; zoom:1;"><span style="float:left;">文&nbsp;章&nbsp;数</span><span style="float:left; height:10px; border:1px solid #cecece; margin:2px 10px 0 7px; overflow:hidden;"><cite style="display:inline-block; width:132px; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/img_long.png) repeat-x left top; height:10px;overflow: hidden;">&nbsp;</cite></span><span style="float:left;">233篇</span></div>
                    <div style="margin:0; padding:0 0 8px 0; overflow:hidden; zoom:1;"><span style="float:left;">图&nbsp;片&nbsp;数</span><span style="float:left; height:10px; border:1px solid #cecece; margin:2px 10px 0 7px; overflow:hidden;"><cite style="display:inline-block; width:66px; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/img_long.png) repeat-x left -10px; height:10px;overflow: hidden; ">&nbsp;</cite></span><span style="float:left;">10张</span></div>
                    <div style="margin:0; padding:0 0 8px 0; overflow:hidden; zoom:1;"><span style="float:left;">访问人数</span><span style="float:left; height:10px; border:1px solid #cecece; margin:2px 10px 0 7px; overflow:hidden;"><cite style="display:inline-block; width:198px; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/img_long.png) repeat-x left -20px; height:10px;overflow: hidden; ">&nbsp;</cite></span><span style="float:left;">25338次</span></div>
                </div>                                             
        </div>
        <div ACTIVITY_PAGECUT=""></div>
        <div style="margin:0; padding:20px 70px 19px 28px; text-align:left;">
        	<ul style="margin:0; padding:0; list-style:none;">
            	<li style="margin:0; padding:0 0 32px 0; list-style:none;">
                	<h4 style="margin:0; padding:0 0 2px 18px; line-height:180%; color:#f30d6f; font-family:'微软雅黑'; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/icon1.gif) no-repeat 0 4px; font-size:14px;">过去5年的总结：</h4>
                    <p style="margin: 0pt; padding: 0pt 0pt 0pt 18px; line-height: 1.8; word-wrap: break-word;">啥</p>
                </li>
                <li style="margin:0; padding:0 0 32px 0; list-style:none;">
                	<h4 style="margin:0; padding:0 0 2px 18px; line-height:180%; color:#6000ff; font-family:'微软雅黑'; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/icon2.gif) no-repeat 0 4px; font-size:14px;">我今天的心情：</h4>
                    <p style="margin: 0pt; padding: 0pt 0pt 0pt 18px; line-height: 1.8; word-wrap: break-word;">都</p>
                </li>
                <li style="margin:0; padding:0; list-style:none;">
                	<h4 style="margin:0; padding:0 0 2px 18px; line-height:180%; color:#007eff; font-family:'微软雅黑'; background:url(http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/icon3.gif) no-repeat 0 4px; font-size:14px;">向未来许下一个愿望：</h4>
                    <p style="margin: 0pt; padding: 0pt 0pt 0pt 18px; line-height: 1.8; word-wrap: break-word;">不想说</p>
                </li>
            </ul>
        </div>
        <div style="margin:0; padding:0 20px 0 0; text-align:right; height:46px;"><a href="http://joy.blog.sina.com.cn/blog_5years/index.php?from=blog" target="_blank"><img style="border:0;" src="http://simg.sinajs.cn/blog7actstyle/images/special/fiveyears/fiveimg.png" alt=""></a></div>
        <div style=" margin:0; padding:0; padding-left:28px; padding-top:40px; text-align:left; font-size:12px; color:#666;">如果您的勋章无法正常显示，纪念博文格式错乱，请点击查看<strong><a href="http://joy.blog.sina.com.cn/blog_5years/about.php#mark" style=" text-decoration:underline; color:#666;">常见问题解答</a></strong></div>
   		 </div>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100lc75.html#comment</comments>
            <pubDate>Mon, 20 Sep 2010 17:03:32 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100lc75.html</guid>
        </item>
        <item>
            <title>跳舞毯的论坛</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100hdhx.html</link>
            <description><![CDATA[<div>跳得比某人好，所以热请很高啊。</DIV>
<div>经常访问这两个论坛。推荐区看看。</DIV>
<div><br /></DIV>
<div>SMmax论坛&nbsp;<a HREF="http://www.smmax.cn/?fromuid=52667" TARGET="_blank">smmax.com</A>
<div>ddr论坛：<a HREF="http://www.ddrcn.com/?fromuid=11684" TARGET="_blank">ddrcn.com</A></DIV>
<div>这两个论坛都还不错。</DIV>
</DIV>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100hdhx.html#comment</comments>
            <pubDate>Tue, 16 Mar 2010 17:57:10 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100hdhx.html</guid>
        </item>
        <item>
            <title>用PHP扩展自定义全局变量和在Windows下编译的笔记</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100gfyy.html</link>
            <description><![CDATA[<div>我用《PHP扩展之自定义全局变量》的方法，在Linux下编译通过，在windows下没有通过。</DIV>
<div>因为对VC6和Windows下的编译不熟悉，所以还没有弄明白怎么回事。</DIV>
<div>后来看GLOBALs的实现，发现它用的是TSRMLS_CC，我改成这个后，就可以了。</DIV>
<div>PS：考虑对PHP的扩展，做深入学习。</DIV>
<div><br /></DIV>
<div>我用的是：</DIV>
<div>PHP_MINIT_FUNCTION(test)</DIV>
<div>{</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp;
&nbsp;zend_register_auto_global("_MING",
sizeof("_MING") - 1, NULL &nbsp;TSRMLS_DC);</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp;
&nbsp;//zend_register_auto_global("_MING",
sizeof("_MING") - 1, NULL &nbsp;TSRMLS_CC);
在windows下编译通过</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;return SUCCESS;</DIV>
<div>}</DIV>
<div><br /></DIV>
<div>PHP扩展之自定义全局变量</DIV>
<div>http://www.nd21.com/2009/08/php扩展之自定义全局变量/</DIV>
<div><br /></DIV>
<div>windows下编译，参考：</DIV>
<div>
windows下开发PHP扩展（无需Cygwin）http://blog.csdn.net/linvo/archive/2009/04/17/4086909.aspx</DIV>
<div>windows下开发并编译PHP扩展(步骤说明) http://sincebirth.cn/?p=1121</DIV>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100gfyy.html#comment</comments>
            <pubDate>Tue, 05 Jan 2010 10:55:07 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100gfyy.html</guid>
        </item>
        <item>
            <title>[转]freebsd下安装rz,sz上传下载工具(rzsz)</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100g2ah.html</link>
            <description><![CDATA[<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
<span STYLE="font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 13px; border-collapse: collapse;">
安装包下载：<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
<a HREF="http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz" STYLE="text-decoration: none; color: rgb(0, 102, 204);">http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz</A></SPAN></P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
tar -xzvf rzsz-3.48.tar.gz</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">cd
src<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
<br /></P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
修改Makefile第四行OFLAG= -O 为 OFLAG= -O -DREGISTERED<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
否则，编译后，在上传下载完成都会提示：</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;
&nbsp;**** UNREGISTERED COPY *****<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
Please read the License Agreement in rz.doc&lt;coolcode
linenum=”off”&gt;</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
xok# make posix<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
cc -O2 -fno-strict-aliasing
-pipe&nbsp;&nbsp; -O -DREGISTERED -DPOSIX
-DMD=2 rz.c -o rz<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
size rz<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
&nbsp;&nbsp;
text&nbsp;&nbsp;&nbsp;
data&nbsp;&nbsp;&nbsp;&nbsp;
bss&nbsp;&nbsp;&nbsp;&nbsp;
dec&nbsp;&nbsp;&nbsp;&nbsp;
hex filename<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
&nbsp;
29093&nbsp;&nbsp;&nbsp;&nbsp;
640&nbsp;&nbsp;&nbsp;
6328&nbsp;&nbsp;
36061&nbsp;&nbsp;&nbsp; 8cdd
rz<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
rm -f rb rx rc<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln rz rb<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln rz rx<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln rz rc<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
cc -O2 -fno-strict-aliasing
-pipe&nbsp;&nbsp; -O -DREGISTERED -DPOSIX
sz.c -o sz<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
size sz<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
&nbsp;&nbsp;
text&nbsp;&nbsp;&nbsp;
data&nbsp;&nbsp;&nbsp;&nbsp;
bss&nbsp;&nbsp;&nbsp;&nbsp;
dec&nbsp;&nbsp;&nbsp;&nbsp;
hex filename<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
&nbsp;
34632&nbsp;&nbsp;&nbsp;&nbsp;
704&nbsp;&nbsp;
38828&nbsp;&nbsp;
74164&nbsp;&nbsp; 121b4 sz<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
rm -f sb sx zcommand zcommandi<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln sz sb<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln sz sx<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln sz zcommand<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
ln sz zcommandi<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
cp rz sz /usr/sbin/<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
&lt;/coolcode&gt;<br STYLE="font: normal normal normal 12px/normal song, Verdana;" />
安装OK。</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
<br STYLE="font: normal normal normal 12px/normal song, Verdana;" /></P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
1.安装后，可以把sz 、 rz 复制到 /usr/local/bin 下</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
2.使用时如果遇到类似错误，</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
-bash-3.00$ sz sz.doc</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
/dev/pts/5: Permission denied</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
可以使用管理员修改&nbsp;/dev/pts/5 权限即可。</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
3.编译时，可能报 cc 找不到，修改Makefile 里的 cc 为gcc 即可</P>
<p STYLE="font: normal normal normal 12px/normal song, Verdana;">
4.编译时，如果报 size 找不到，把&nbsp;/usr/ccs/bin/
&nbsp;加入 $PATH 既可</P>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100g2ah.html#comment</comments>
            <pubDate>Thu, 03 Dec 2009 15:38:10 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100g2ah.html</guid>
        </item>
        <item>
            <title>SQL_CALC_FOUND_ROWS 的使用问题(笔记)</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100fxfg.html</link>
            <description><![CDATA[<div>mysql&gt; selecｔ SQL_CALC_FOUND_ROWS * FROM
tbl_name -&gt; WHERE id &gt; 100 LIMIT
10;&nbsp;</DIV>
<div>mysql&gt; selecｔ
FOUND_ROWS();&nbsp;</DIV>
<div><br /></DIV>
<div>
使用SQL_CALC_FOUND_ROWS能够在查询时为您事先准备好符合where条件的记录数目，然后只要在随后执行一句selecｔ
FOUND_ROWS(); 就能获得总记录数。</DIV>
<div><br /></DIV>
<div>
这个方法有一个副作用，当使用了SQL_CALC_FOUND_ROWS以后，将不能使用查询缓存、在特殊情况下反而或损失一些性能。</DIV>
<div><br /></DIV>
<div>例如，一个文章表，所有文章做了主键ID，并做了CREATE_TIME DESC的索引。这样在执行</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; SELECT &nbsp; &nbsp;*
&nbsp; &nbsp;FROM &nbsp;
&nbsp;ARTICLE &nbsp; ORDER
&nbsp; BY &nbsp;ID DESC LIMIT 10 或者
&nbsp;CREATE_TIME DESC LIMIT 20
时，数据库引擎可以完全根据索引返回最新文章而不会管你有多少符合的记录，但用了SQL_CALC_FOUND_ROWS后引擎不得不扫描全表以确定全部记录数。</DIV>
<div><br /></DIV>
<div>&nbsp;&nbsp;
&nbsp;但无论怎样，这个 SQL_CALC_FOUND_ROWS
非常适合where字句异常复杂耗时的情况。在频繁使用查询的应用中，这个方法能够带来1/3的数据库性能提升。</DIV>
<div><br /></DIV>
<div>Never, never use SQL_CALC_FOUND_ROWS it’s just equally slow
then “SELECT COUNT(*) FROM table”, but you have to do it on every
page. The count(*) variant you can cache at last, so you don’t have
to do it on every page.</DIV>
<div>（用SQL_CALC_FOUND_ROWS 每页每次查询都会做Count；用
count(*)，则可以自己缓存结果）</DIV>
<div><br /></DIV>
<div>And there’s even another way to avoid the count on paging.
It’s the way Facebook does paging on some places. Facebook don’t
give you the usually list of pages from 1 to n there, were you can
click at any page. They just give you the page before, the current
page and the next page, if there’s one. On the application side
it’s very easy to find out if you have a page before the current,
when you are on the second page there’s one before (so no surprise
here). But what about the next page if you don’t want to make a
count. Easy stuff, let me predict you display 10 items per page, so
query 11 items instead of 10 per page. This one extra item will
cost you nearly nothing and now you can count the returned rows in
your application. If you have more than ten rows you have a next
page and you can happily throw number eleven away.</DIV>
<div>（只显示上下页；程序很容易知道有没有上一页；判断下一页，只需要多查询1条，则可以判断有没有下一条记录了。）</DIV>
<div><br /></DIV>
<div>参考：</DIV>
<div><a HREF="http://toney.sharera.com/blog/BlogTopic/29396.htm">http://toney.sharera.com/blog/BlogTopic/29396.htm</A></DIV>
<div><a HREF="http://techblog.tilllate.com/2008/01/05/why-paging-needs-a-lot-of-performance/">
http://techblog.tilllate.com/2008/01/05/why-paging-needs-a-lot-of-performance/</A></DIV>
<div><br /></DIV>]]></description>
            <author>德洪（小电阻）</author>
            <category>mysql数据库</category>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100fxfg.html#comment</comments>
            <pubDate>Fri, 20 Nov 2009 17:31:34 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100fxfg.html</guid>
        </item>
        <item>
            <title>修改Hosts文件不用重启IE的方法</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100fvom.html</link>
            <description><![CDATA[<h3 STYLE="font-size: 20px; font-weight: bold; margin-top: 10px; padding-bottom: 0px; margin-bottom: 2px;">
<span STYLE="font-family: 'Lucida Grande', 'Lucida sans Unicode', 'Trebuchet Ms', Verdana, Helvetica, sans-serif; line-height: normal; font-size: 12px; color: rgb(51, 51, 51);">
测试了后好像可以，又好像不可以，读者自己拿主意吧。</SPAN></H3>
<div><span STYLE="font-family: 'Lucida Grande', 'Lucida sans Unicode', 'Trebuchet Ms', Verdana, Helvetica, sans-serif; line-height: normal; font-size: 12px; color: rgb(51, 51, 51);">
<br /></SPAN></DIV>
<div><span STYLE="font-family: 'Lucida Grande', 'Lucida sans Unicode', 'Trebuchet Ms', Verdana, Helvetica, sans-serif; line-height: normal; font-size: 12px; color: rgb(51, 51, 51);">
推荐用 firefox+dns flusher插件</SPAN></DIV>
<div><span STYLE="font-family: 'Lucida Grande', 'Lucida sans Unicode', 'Trebuchet Ms', Verdana, Helvetica, sans-serif; line-height: normal; font-size: 12px; color: rgb(51, 51, 51);">
<br /></SPAN></DIV>
<div><font COLOR="#FF0000">推荐 英文文章中的软件：IE timeout
tuner：</FONT></DIV>
<div><font COLOR="#FF0000">http://www.simplefailover.com/outbox/ietimeout-se.exe</FONT></DIV>
<div><font COLOR="#FF0000"><br /></FONT></DIV>
<div><font COLOR="#FF0000">文章一：<a HREF="http://www.hickwu.com/?p=226">http://www.hickwu.com/?p=226</A></FONT></DIV>
<h3 STYLE="font-size: 20px; font-weight: bold; margin-top: 10px; padding-bottom: 0px; margin-bottom: 2px;">
<a HREF="http://www.hickwu.com/?p=226" REL="bookmark" STYLE="color: rgb(0, 0, 0); border-bottom-color: rgb(255, 102, 0); border-bottom-width: 1px; border-bottom-style: dotted; text-decoration: none;">
windows 下浏览器和操作系统的 DNS cache</A></H3>
<div STYLE="font-size: 12px; color: rgb(0, 0, 153); font-weight: normal; letter-spacing: 0px;">
Posted in:&nbsp;<a HREF="http://www.hickwu.com/?cat=4" TITLE="View all posts in Web 开发" REL="category tag" STYLE="color: rgb(0, 0, 153); border-bottom-color: rgb(255, 102, 0); border-bottom-width: 1px; border-bottom-style: dotted; text-decoration: none; font-weight: normal; letter-spacing: 0px;">Web
开发</A>&nbsp;— Hick @ 2008/01/30 12:32:14</DIV>
<div>
<p STYLE="font-size: 12px;">一般来说，windows 下操作系统和浏览器把某域名解析为 ip
地址以后，都会把解析结果做 cache ，也就是在一定时间内，该域名会一直被解析为该 ip ，而不管该域名对应的 ip
是否变化或者还绑定了其他 ip 。而浏览器通常都会忽略操作系统的 dns cache 。操作系统的 cache 可以通过
ipconfig /flushdns 命令来清除，而浏览器的 dns cache ，则一般需要启动一个新的浏览器进程(ie 的浏览器
dns cache 是以进程为基本单元的)。</P>
<p STYLE="font-size: 12px;">在 ping 一个域名的时候，得到的 TTL 表示 Time To Live
，表示的就是建议操作系统对 dns 做 cache 的时间。浏览器的 dns cache 一般由浏览器自己控制，某些版本的 ie 中
默认 cache 是 30 分钟，也可以通过修改注册表来指定值，参考<a HREF="http://support.microsoft.com/default.aspx?scid=KB;en-us;263558" TARGET="_blank" STYLE="color: rgb(255, 102, 0); border-bottom-color: rgb(255, 102, 0); border-bottom-width: 1px; border-bottom-style: dotted; text-decoration: none;">&gt;http://support.microsoft.com/default.aspx?scid=KB;en-us;263558</A>&nbsp;：</P>
<p STYLE="font-size: 12px;">
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings\
中创建 DnsCacheTimeout 和 ServerInfoTimeOut ，类型为 DWORD 。都指定为 5 ，浏览器就的
dns cache 过期时间就是 5s 。</P>
<p STYLE="font-size: 12px;">一点比较奇怪的是&nbsp;<a HREF="http://support.microsoft.com/kb/813827" TARGET="_blank" STYLE="color: rgb(255, 102, 0); border-bottom-color: rgb(255, 102, 0); border-bottom-width: 1px; border-bottom-style: dotted; text-decoration: none;">http://support.microsoft.com/kb/813827</A>&nbsp;中说明建立值是以毫秒为单位。虽然针对
ie 不完全一致，但是有重合的版本。我希望的是尽快 timeout ，不再深究。</P>
<p STYLE="font-size: 12px;">firefox 也可以在 about:config
中找到相关的配置选项。</P>
<p STYLE="font-size: 12px;"><br /></P>
<p STYLE="font-size: 12px;"><span STYLE="color: rgb(255, 0, 0); line-height: 21px; font-size: 14px;">文章二：</SPAN></P>
<p STYLE="font-size: 12px;"><a HREF="http://www.technize.com/2007/07/11/how-to-change-internet-explorer-dns-cache-keepalive-and-server-info-timeouts/">
http://www.technize.com/2007/07/11/how-to-change-internet-explorer-dns-cache-keepalive-and-server-info-timeouts/</A></P>
<p STYLE="font-size: 12px;"><br /></P>
<p STYLE="font-size: 12px;"><span STYLE="color: rgb(255, 0, 0); line-height: 21px; font-size: 14px;">文章三：</SPAN></P>
<p STYLE="font-size: 12px;"><span STYLE="color: rgb(255, 0, 0); line-height: 21px; font-size: 14px;"><a HREF="http://netbus.javaeye.com/blog/426296">
http://netbus.javaeye.com/blog/426296</A></SPAN></P>
</DIV>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100fvom.html#comment</comments>
            <pubDate>Mon, 16 Nov 2009 12:49:25 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100fvom.html</guid>
        </item>
        <item>
            <title>Drop库表时加上IF EXISTS</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100fo3i.html</link>
            <description><![CDATA[<span STYLE="font-family: Verdana, 宋体, sans-serif; line-height: normal; color: rgb(102, 102, 102); white-space: pre;">
Drop库表时加上IF EXISTS</SPAN><br />
<div>好处是，辅库如果恰好没有相应的库表，则不会出错。
<div><br /></DIV>
</DIV>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100fo3i.html#comment</comments>
            <pubDate>Mon, 02 Nov 2009 19:13:43 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100fo3i.html</guid>
        </item>
        <item>
            <title>comm命令笔记</title>
            <link>http://blog.sina.com.cn/s/blog_3f3422fd0100f10k.html</link>
            <description><![CDATA[<div>comm命令会输出3列：</DIV>
<div>&nbsp;&nbsp; &nbsp;1 -
左边文件有的</DIV>
<div>&nbsp;&nbsp; &nbsp;2 -
右边文件有的</DIV>
<div>&nbsp;&nbsp; &nbsp;3 -
两边文件都有的</DIV>
<div><br /></DIV>
<div>组合就是去掉某些列的数据</DIV>
<div><br /></DIV>
<div>排序用的字符串排序，不能是数字排序；即sort，不是sort -n</DIV>
<div><br /></DIV>
<div><br /></DIV>
<div><br /></DIV>
<div><br /></DIV>
<div><br /></DIV>
<div>版权声明：转载时请以超链接形式标明文章原始出处和作者信息及本声明</DIV>
<div>http://michaels.blogbus.com/logs/44427299.html</DIV>
<div><br /></DIV>
<div><br /></DIV>
<div>In our work, we often encounter the following questions:</DIV>
<div>在我们的工作中，我经常遇到下面的问题：</DIV>
<div>I have two files: file1 and file2:</DIV>
<div>有两个文件：文件1和文件2：</DIV>
<div>1) How can I print out the lines that are only contained in
file1?</DIV>
<div>1) 如何打印出只存在于文件1中的内容？</DIV>
<div>2) How can I print out the lines that are only contained in
file2?</DIV>
<div>2) 如何打印出只存在于文件2中的内容？</DIV>
<div>3) How can I print out the lines that are contained both in
file1 and file2?</DIV>
<div>3) 如何打印出文件1和文件2都有的内容？</DIV>
<div><br /></DIV>
<div>There is a powerful shell command that can easily meet our
needs, it is: comm.&nbsp;</DIV>
<div>这有一个很好的shell命令能够满足我们的需求，它就是comm。</DIV>
<div><br /></DIV>
<div>When you meet the above questions, "comm" should be your first
choice:-)</DIV>
<div>当你遇到上面的问题，“comm”应该是你第一选择:-)</DIV>
<div><br /></DIV>
<div>comm [ -123 ]??file1??file2</DIV>
<div><br /></DIV>
<div>comm will read file1 and file2 and generate three columns of
output:&nbsp;</DIV>
<div>comm 将会读取文件1和文件2并且产生三列输出：</DIV>
<div>lines only in file1; lines only??in file2; and lines in both
files.&nbsp;</DIV>
<div>只存在文件1中的行；只存在文件2中的行；两个文件都存在的行。</DIV>
<div>For detailed explanation, pls man comm.</DIV>
<div>更详细的解释，请参阅man comm。</DIV>
<div><br /></DIV>
<div>Example:</DIV>
<div>例如：</DIV>
<div><br /></DIV>
<div>bash-2.03$ cat file1</DIV>
<div>11111111</DIV>
<div>22222222</DIV>
<div>33333333</DIV>
<div>44444444</DIV>
<div>55555555</DIV>
<div>66666666</DIV>
<div>77777777</DIV>
<div>88888888</DIV>
<div>99999999</DIV>
<div>bash-2.03$ cat file2</DIV>
<div>00000000</DIV>
<div>22222222</DIV>
<div>44444444</DIV>
<div>66666666</DIV>
<div>88888888</DIV>
<div><br /></DIV>
<div>1) suppress lines unique to FILE1</DIV>
<div>1) 过滤掉file1中的内容</DIV>
<div>bash-2.03$ comm -1 file1 file2&nbsp;</DIV>
<div>00000000</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;22222222</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;44444444</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;66666666</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;88888888</DIV>
<div><br /></DIV>
<div>2) suppress lines unique to FILE2</DIV>
<div>2) 过滤掉file2中的内容</DIV>
<div>bash-2.03$ comm -2 file1 file2&nbsp;</DIV>
<div>11111111</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;22222222</DIV>
<div>33333333</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;44444444</DIV>
<div>55555555</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;66666666</DIV>
<div>77777777</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;88888888</DIV>
<div>99999999</DIV>
<div><br /></DIV>
<div>3) suppress lines that appear in both files</DIV>
<div>3) 过滤掉file1和file2中都有的内容</DIV>
<div>bash-2.03$ comm -3 file1 file2&nbsp;</DIV>
<div>&nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;00000000</DIV>
<div>11111111</DIV>
<div>33333333</DIV>
<div>55555555</DIV>
<div>77777777</DIV>
<div>99999999</DIV>
<div><br /></DIV>
<div>4) Print out the lines that are only contained in file1?</DIV>
<div>4) 打印出只存在于文件1中的内容？</DIV>
<div>bash-2.03$ comm -23 file1 file2</DIV>
<div>11111111</DIV>
<div>33333333</DIV>
<div>55555555</DIV>
<div>77777777</DIV>
<div>99999999</DIV>
<div><br /></DIV>
<div>5) Print out the lines that are only contained in file2?</DIV>
<div>5) 打印出只存在于文件2中的内容？</DIV>
<div>bash-2.03$ comm -13 file1 file2</DIV>
<div>00000000</DIV>
<div><br /></DIV>
<div>6) Print out the lines that are contained both in file1 and
file2?</DIV>
<div>6) 打印出文件1和文件2都有的内容？</DIV>
<div>bash-2.03$ comm -12 file1 file2</DIV>
<div>22222222</DIV>
<div>44444444</DIV>
<div>66666666</DIV>
<div>88888888</DIV>
<div><br /></DIV>
<div>Besides the comm, we still have various ways to finish the
above tasks.</DIV>
<div>除了comm，我们还有其他方法来完成这些任务。</DIV>
<div><br /></DIV>
<div>4) Print out the lines that are only contained in file1?</DIV>
<div>4) 打印出只存在于文件1中的内容？</DIV>
<div>diff file1 file2 | grep "^&lt;"|sed
's/^&lt; //g'</DIV>
<div>for i in $(&lt;file1); do (grep $i file2)||echo
$i&gt;&gt;temp ; done;</DIV>
<div>cat temp</DIV>
<div><br /></DIV>
<div>In comparison, comm is much easier to remember. :-)</DIV>
<div>相比之下，comm更加便于记忆。</DIV>
<div><br /></DIV>
<div>
转自：http://hi.baidu.com/will_hu/blog/item/4b05fedf0276fd5fcdbf1a6d.html</DIV>]]></description>
            <author>德洪（小电阻）</author>
            <comments>http://blog.sina.com.cn/s/blog_3f3422fd0100f10k.html#comment</comments>
            <pubDate>Thu, 17 Sep 2009 14:56:27 +0800</pubDate>
            <guid>http://blog.sina.com.cn/s/blog_3f3422fd0100f10k.html</guid>
        </item>
    </channel>
</rss>

