<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="http://5uu8.com/blog">
 <title>百草园</title> 
  <link>http://5uu8.com/blog/index.php</link> 
  <description>网上精彩文章的汇集地</description> 
  <image rdf:resource="http://5uu8.com/ap/5uu8logo.gif" /> 
<items>
<rdf:Seq>
<rdf:li resource="" /> 
<rdf:li resource="http://5uu8.com/blog/index.php" /> 
</rdf:Seq>
</items>
</channel>
<image rdf:about="http://5uu8.com/ap/5uu8logo.gif">
<title>百草园</title> 
<link></link> 
<url>http://5uu8.com/ap/5uu8logo.gif</url> 
</image><item rdf:about='http://5uu8.com/blog/index.php?articleid=a_20100311_215042'>
<title>桌面上不可删除的IE图标原理解析</title> 
<link>http://5uu8.com/blog/index.php?articleid=a_20100311_215042</link> 
<description>
<![CDATA[ 
	经常遇到的桌面IE图标不能删除，右键也有几个选项，但多是牛头不对马嘴的那种。<br />双击打开，自动跳到某个网址导航的。<br />虽然这种IE图标可以用清理桌面工具清理，但现在好多电脑装的是精简过的版本，找不到清理桌面向导。<br />搞清它的原理，可以手动从注册表里清除。<br /><br />从网上搜过找到一段对应的代码<br /><div class="UBBPanel codePanel"><div class="UBBTitle"> 程序代码</div><div class="UBBContent">Windows Registry Editor Version 5.00<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }]<br /> at =&quot;Internet Explorer&quot;<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\DefaultIcon]<br />@=&quot;C:\\Program Files\\Internet Explorer\\IEXPLORE dot EXE&quot;<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\Shell]<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\Shell\Open]<br /> at =&quot;打开主页(&amp;H)&quot;<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\Shell\Open\Command]<br />@=&quot;C:\\Program Files\\Internet Explorer\\IEXPLORE dot EXE <span style="COLOR: red"><a href="http://www." target="_blank">http://www.</a>****.**</span>&quot;<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\Shell\属性(&amp;R)]<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\Shell\属性(&amp;R)\Command]<br /> at =&quot;Rundll32 dot exe Shell32.dll,Control_RunDLL Inetcpl.cpl&quot;<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{ 12346578-0102-0304-0506-9876543210AB }\ShellFolder]<br />&quot;Attributes&quot;=dword:00000000<br /><br />;下面是另一个键值,其中的GUID要与上面的相同<br /><br />[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{ 12346578-0102-0304-0506-9876543210AB }]<br /> at =&quot;Internet Explorer&quot;</div></div><br />这样导入就能生成一个桌面上的IE快捷方式，与系统的大同小异。打开指向的是红色部分的地址。<br /><br /><br />搞懂这原理，就可以反向操作来删除那种不可清除的恶意IE桌面快捷方式了。<br /><strong>打开注册表，F3搜索，输入“Internet Explorer”，勾上“全字匹配”，开始搜索后注意看搜索到的位置“HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\”下面，找到的依次点开“\Shell\Open\Command”，如果右边的后面有一个网址类似“C:\Program Files\Internet Explorer\IEXPLORE dot EXE <a href="http://www." target="_blank">http://www.</a>****.**”这样的，那把这个位置处的GUID整项删除即可。</strong> <br /><br />
	<br>   (<a href=http://5uu8.com/blog/index.php?articleid=a_20100311_215042 target=_blank> 网页浏览 </a>)
  ]]> 
</description>
</item><item rdf:about='http://5uu8.com/blog/index.php?articleid=a_20100217_172844'>
<title>清理无用的CSS比较有用的几个工具</title> 
<link>http://5uu8.com/blog/index.php?articleid=a_20100217_172844</link> 
<description>
<![CDATA[ 
	<p><font color="#dc6900">【简 介】<br /></font>在我们写样式的时候，页面的CSS在经历几个版本的修改之后，可能有些样式已经用不到了，或许将某些样式更名了而原来的忘了删除，总之页面中可能存在着一些无用的样式。这些无用的浪费了一些服务器空间和带宽消耗，也会增大我们的维护成本。那么有没有一些办法来清理那些无用的样式呢？今天就让我们来了解一下几个比较有用的工具。</p><p>在我们写样式的时候，页面的CSS在经历几个版本的修改之后，可能有些样式已经用不到了，或许将某些样式更名了而原来的忘了删除，总之页面中可能存在着一些无用的样式。这些无用的浪费了一些<a class="article" href="http://product.enet.com.cn/price/plist70.shtml" target="_blank">服务器</a>空间和带宽消耗，也会增大我们的维护成本。那么有没有一些办法来清理那些无用的样式呢？今天就让我们来了解一下几个比较有用的工具。</p><p><strong>Dust-Me selectors</strong></p><p>Dust-Me是一个很有用也很好用的Firefox插件，它可以分析到你的页面中调用的所有CSS文件并分析那些在页面中没有被用到。</p><p>支持本地和远程样式文件，包括使用link标签、&lt; ?xml-stylesheet?&gt;处理指令、 at import语句等方式引入的样式文件；(但是不支持页面中的style块和内联样式)<br />支持IE条件注释中引入的样式文件；<br />可以检查一个页面，也可以检查整个网站；<br />支持CSS1选择器、大部分CSS2和CSS3选择器；<br />理解通用的CSS hack，比如 “* html #fuck-ie”将会被认为是”html #fuck-ie”；<br />支持Firefox 3 dot 5和Firefox 3.0，事实上得益于FF 3.5的js引擎的改进，FF 3.5中的性能比FF 3.0要高50%。</p><p>安装：<a href="https://addons.mozilla.org/en-US/firefox/downloads/latest/5392/addon-5392-latest.xpi"><font color="#7b3e00">点击这里</font></a>。了解更多请访问<a href="http://www.sitepoint.com/dustmeselectors/" target="_blank"><font color="#7b3e00"> Dust-Me selector官方页面</font></a>。</p><p><strong>Page Speed</strong></p><p>Page Speed是Google提供的一个前端性能分析工具，有些类似于YSlow，但是提供了一些比较个性且很有用的工具，比如Remove unused CSS.</p><p>Page Speed和YSlow一样依赖Firebug，<a href="http://code.google.com/speed/page-speed/" target="_blank"><font color="#7b3e00">了解详情和安装请访问这里</font></a>。<br /><strong><br />CSS Redundancy Checker</strong></p><p>CSS Redundancy Checker 是一个免费的在线应用，可以检查所有的使用某个CSS文件的页面中无用的样式。可以同时检查某一个样式在多个页面中的使用情况。该工具的不足是虽然一次能检查多个HTML页面，但每次只能检查一个CSS文件，而且还要手动输入</p><p><a href="http://services.immike.net/css-checker/" target="_blank">http://services.immike.net/css-checker/</a></p><p><strong>IntelliJ IDEA</strong></p><p>IntelliJ IDEA 这是一个颇强大的IDE，类似于DreamWeaver，不过在国内用的不多。该<a class="article" href="http://www.enet.com.cn/esoftware" target="_blank">软件</a>包括一个即时代码分析工具(On-the-fly Code Analysis)，可以分析CSS文件中未用到的class和id。</p><p><strong>Expression Web</strong></p><p>Expression Web作为<a class="article" href="http://www.enet.com.cn/ezone/2291/index.shtml" target="_blank">微软</a>的新一代网站开发工具，还是有很多人使用的，其CSS Report功能可以检查未用到需要被清除的CSS（我的确没有使用EW开发过网站，希望使用该软件的童鞋可以帮忙确认一下这一点）</p>
	<br>   (<a href=http://5uu8.com/blog/index.php?articleid=a_20100217_172844 target=_blank> 网页浏览 </a>)
  ]]> 
</description>
</item><item rdf:about='http://5uu8.com/blog/index.php?articleid=a_20100217_171926'>
<title>CSS网页布局DIV水平居中的各种方法</title> 
<link>http://5uu8.com/blog/index.php?articleid=a_20100217_171926</link> 
<description>
<![CDATA[ 
	<p><font color="#dc6900">【简 介】<br /></font>在Web标准中的页面布局是使用Div配合CSS来实现的。这其中最常用到的就是使整个页面水平居中的效果，这是在页面布局中基本，也是最应该首先掌握的知识。不过，还是经常会有人问到这个问题，在这里我简单总结一下使用Div和CSS实现页面水平居中的方法：</p><p>　　在Web标准中的页面布局是使用Div配合CSS来实现的。这其中最常用到的就是使整个页面水平居中的效果，这是在页面布局中基本，也是最应该首先掌握的知识。不过，还是经常会有人问到这个问题，在这里我简单总结一下使用Div和CSS实现页面水平居中的方法： <br /><br />　　<b>一、margin:auto 0 与 text-aligh:center</b> <br /><br />　　在现代浏览器（如Internet Explorer 7、Firefox、Opera等）现代浏览器实现水平居中的方法很简单，只要设定到左右两侧的空白为自动即可。意即： <br /><br />#wrap {  margin:0 auto; } <br /><br />　　上面这段代码的意思是说使wrap这个div到左右两侧的距离自动设置，上下为0（可以为任意）。请在现代浏览器（如Internet Explorer 7、Firefox、Opera等）中运行现在的代码： <br /><br />＜!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;＞" target="_blank">http://www.w3.org/TR/xhtm......1-transitional.dtd&amp;quot;＞</a> <br />＜html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml&quot;＞" target="_blank">http://www.w3.org/1999/xhtml&quot;＞</a> <br />＜head＞ <br />＜title＞ new document ＜/title＞ <br />＜meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /＞ <br />＜style type=&quot;text/css&quot;＞ <br />div#wrap {  <br />width:760px; <br />margin:0 auto; <br />border:1px solid #333; <br />background-color:#ccc; <br /> } <br />＜/style＞ <br />＜/head＞ <br />＜body＞ <br />＜div id=&quot;wrap&quot;＞ <br /><br />　　在Firefox等现代浏览器设定页面元素的水平居中，只要指定margin:0 auto;即可 <br /><br />＜pre＞ <br />div#wrap {  <br />width:760px; <br />margin:0 auto; /*这里的0可以任意值*/ <br />border:1px solid #ccc; <br />background-color:#999; <br /> } <br />＜/pre＞ <br />＜/div＞ <br />＜/body＞ <br />＜/html＞ <br /><br />　　上面的效果很好。但是这在Internet Explorer 6及改正的版本中是不起作用的，不过幸好它有自己的解决办法。在Internet Explorer中text-align属性是可继承的，即在父元素中设置后在子元素中就默认具有了该属性。因此我们可以在body标签中设置text-align属性值为center，这样页面内所有的元素都会自动居中，同时我们还要加一个hook把页面中的文字变成我们习惯的阅读方式——居左对齐。因此我们要如此来写代码： <br /><br />body { text-align:center; } <br />#wrap { text-align:left; } <br /><br />　　这样在Internet Explorer中我们就轻松实现了Div的居中对齐。因此要在所有的浏览器中显示居中的效果，我们就可以这样写我们的代码： <br /><br />body {  text-align:center;  } <br />#wrap {  text-align:left; <br />margin:0 auto; <br /> } <br />＜!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;＞" target="_blank">http://www.w3.org/TR/xhtm......1-transitional.dtd&amp;quot;＞</a> <br />＜html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml&quot;＞" target="_blank">http://www.w3.org/1999/xhtml&quot;＞</a> <br />＜head＞ <br />＜title＞ CSS+Div实现水平居中对齐的页面布局 ＜/title＞ <br />＜meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /＞ <br />＜style type=&quot;text/css&quot;＞ <br />body {  text-align:center;  } <br />div#wrap {  <br />text-align:left; <br />width:760px; <br />margin:0 auto; <br />border:1px solid #333; <br />background-color:#ccc; <br /> } <br />＜/style＞ <br />＜/head＞ <br />＜body＞ <br />＜div id=&quot;wrap&quot;＞ <br /><br />　　在Firefox等现代浏览器设定页面元素的水平居中，只要指定margin:0 auto;即可 <br /><br />＜pre＞ <br />div#wrap {  <br />width:760px; <br />margin:0 auto; /*这里的0可以任意值*/ <br />border:1px solid #ccc; <br />background-color:#999; <br /> } <br /><br />　　在Internet Explorer 6 及以下的版本中我们还要做以下的设置： <br /><br />body {  text-align:center;  } <br />div#wrap {  <br />text-align:left; <br /> } <br />＜/pre＞ <br />＜/div＞ <br />＜/body＞ <br />＜/html＞ <br /><br />　　不过这里有一个前提，就是设置居中的元素要有固定的宽度，比如这里我们设定了为760像素。 <br /><br />　　<b>二、相对定位与负的边距</b> <br /><br />　　对于wrap进行相对定位，然后使用负的边距抵消偏移量。这种方法比较简单还很容易实现： <br /><br />#wrap {  <br />position:relative; <br />width:760px; <br />left:50%; <br />margin-left:-380px <br /> } <br /><br />　　这段代码的意思是，设置wrap的定位是相对于其父元素body标签的，然后将其左边框移动到页面的正中间（也就是left:50%含意）；最后我们再从中间位置向左偏移回一半的距离来，这样就实现了水平居中了。 <br /><br />＜!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;＞" target="_blank">http://www.w3.org/TR/xhtm......1-transitional.dtd&amp;quot;＞</a> <br />＜html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml&quot;＞" target="_blank">http://www.w3.org/1999/xhtml&quot;＞</a> <br />＜head＞ <br />＜title＞ CSS+Div实现水平居中对齐的页面布局 ＜/title＞ <br />＜meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /＞ <br />＜style type=&quot;text/css&quot;＞ <br />div#wrap {  <br />position:relative; <br />width:760px; <br />left:50%; <br />margin-left:-380px; <br />border:1px solid #333; <br />background-color:#ccc; <br /> } <br />＜/style＞ <br />＜/head＞ <br /><br />＜body＞ <br />＜div id=&quot;wrap&quot;＞ <br /><br />　　在所有浏览器中都有效的方法： <br /><br />＜pre＞ <br />div#wrap {  <br />position:relative; <br />width:760px; <br />left:50%; <br />margin-left:-380px; <br />border:1px solid #333; <br />background-color:#ccc; <br /> } <br />＜/pre＞ <br />＜/div＞ <br />＜/body＞ <br />＜/html＞ <br /><br />　　同样，在设定水平居中前你需要设定一个固定的宽度。 <br /><br />　　P.S.究竟选择哪个方法？ <br /><br />　　上面两个方法究竟选择哪种方法好呢？在第一种方法中貌似使用了Hack技术，其实并没有，它是中规中矩的Web标准写法，完全符合规范，因此，两个种方法中完全可以随便的选取其中的任一种进行使用，他们不存在CSS hack的问题。 <br /><br />　　<b>三、其它的居中方式</b> <br /><br />　　上面所说的都是设定了具体宽度的情况下水平居中的实现。有时候我们想做一个弹性布局，或者当一个元素处于一个容器中时我们只想让它居中并不想设定一个具体的宽度。其实这并不是真正的居中布局，就像对一个100%长度的元素来说，你说它是居中对齐还是居左对齐呢？所以所有不高宽度的居中都不是真正的居中。这样的设计我们是使用的像元素的padding来设置的，实际中我们是改变了父元素的容器大小： <br /><br />如我们希望wrap元素长度随窗口而改变，同时又维持居中，我们就可以这样写： <br /><br />body {  <br />padding:10px 150px; <br /> } <br /><br />　　这里，我们只需要保持父元素左右两侧的填充是相等的就可以了。 <br /><br />＜!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;＞" target="_blank">http://www.w3.org/TR/xhtm......1-transitional.dtd&amp;quot;＞</a> <br />＜html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml&quot;＞" target="_blank">http://www.w3.org/1999/xhtml&quot;＞</a> <br />＜head＞ <br />＜title＞ 随浏览器窗口大小而改变的具有弹性的居中布局 ＜/title＞ <br />＜meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /＞ <br />＜style type=&quot;text/css&quot;＞ <br />body {  <br />padding:10px 150px; <br /> } <br />div#wrap {  <br />border:1px solid #333; <br />background-color:#ccc; <br /> } <br />＜/style＞ <br />＜/head＞ <br />＜body＞ <br />＜div id=&quot;wrap&quot;＞ <br /><br />　　一种随浏览器窗口大小而改变的具有弹性的居中布局： <br /><br />＜pre＞ <br />body {  <br />padding:10px 150px; <br /> } <br /><br />　　这里，我们只需要保持父元素左右两侧的填充是相等的就可以了。 <br /><br />＜/pre＞ <br />＜/div＞ <br />＜/body＞ <br />＜/html＞ <br /><br />　　当然这只是“貌似居中”，不过却常常很有用处。 <br /></p>
	<br>   (<a href=http://5uu8.com/blog/index.php?articleid=a_20100217_171926 target=_blank> 网页浏览 </a>)
  ]]> 
</description>
</item><item rdf:about='http://5uu8.com/blog/index.php?articleid=a_20100204_171417'>
<title>将2000下的数据源(ODBC)下的系统DSN导出并导入到另外一台机子上</title> 
<link>http://5uu8.com/blog/index.php?articleid=a_20100204_171417</link> 
<description>
<![CDATA[ 
	按以下的注册表路径导出注册表   <br />  HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI,到另外一台电脑执行该导出文件
	<br>   (<a href=http://5uu8.com/blog/index.php?articleid=a_20100204_171417 target=_blank> 网页浏览 </a>)
  ]]> 
</description>
</item><item rdf:about='http://5uu8.com/blog/index.php?articleid=a_20100131_171449'>
<title>删除无法删除目录或文件夹</title> 
<link>http://5uu8.com/blog/index.php?articleid=a_20100131_171449</link> 
<description>
<![CDATA[ 
	<span class="Apple-style-span" style="font-family: Simsun; font-size: 14px; color: rgb(51, 51, 51); line-height: 25px; ">   我在命令行提示符界面中删除一个目录的时候，系统提示无法读取，使用rd＼＼．＼命令删除也不行，请问这是什么原因？ <br />   <br />    因为该目录包含非法的字符，导致Windows不能正确识别。解决方法是：打开命令行提示符界面，切换到不能被删除目录的上一层目录，然后输入dir／x命令，强行使用MS-DOS的8.3格式显示目录结构，最后使用rd+8-3格式的目录名删除该目录即可。</span><br/><br/>
	<br>   (<a href=http://5uu8.com/blog/index.php?articleid=a_20100131_171449 target=_blank> 网页浏览 </a>)
  ]]> 
</description>
</item><item rdf:about='http://5uu8.com/blog/index.php?articleid=a_20100130_213114'>
<title>proftpd 1.3.2 解决客户端乱码问题</title> 
<link>http://5uu8.com/blog/index.php?articleid=a_20100130_213114</link> 
<description>
<![CDATA[ 
	<p>centos5.4 编译安装proftpd1.3.2，locale为utf-8。在windows里上传的中文名文件在linux中看正常，但是在windows中看是乱码，google了一下，在proftpd.conf中加入了一行：</p><p>UseEncoding UTF-8 GBK</p><p>但是启动的时候出现错误，不认UseEncoding 选项，于是重新编译：</p><p>./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/usr/local/mysql/include/mysql --with-libraries=/usr/local/mysql/lib/mysql --enable-ctrls --enable-nls --enable-shadow --enable-dso --enable-autoshadow --enable-auth-pam<br />make<br />make install</p><p>完成后重启proftpd，问题解决</p>
	<br>   (<a href=http://5uu8.com/blog/index.php?articleid=a_20100130_213114 target=_blank> 网页浏览 </a>)
  ]]> 
</description>
</item></rdf:RDF>