<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" 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/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/louyuhang" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/louyuhang" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 09 Oct 2008 16:00:00 GMT</lastBuildDate><title>David Lou</title><description>David Lou的个人博客</description><link>http://blog.louyuhang.com</link><language>en</language><pubDate>Wed, 10 Sep 2008 02:41:04 GMT</pubDate><item><title>美味书签 [2008-10-10]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-10-10</link><guid>http://delicious.com/louyuhang#2008-10-10</guid><pubDate>Fri, 10 Oct 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://laughingmeme.org/2007/02/27/looking-at-php5s-datetime-and-datetimezone/' title='link to ..'&gt;Looking at PHP5's DateTime and DateTimeZone - Laughing Meme&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.phpclasses.org/blog/post/82-PHP-ObjectRelational-Mapping-ORM-or-ROM.html' title='link to ..'&gt;PHP-ObjectRelational-Mapping-ORM-or-ROM&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.toosweettobesour.com/2008/09/13/imageplane-and-some-simple-oop-designs/' title='link to ..'&gt;Tower Of Power&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.phpfreaks.com/tutorial/design-patterns---introduction' title='link to ..'&gt;PHP Freaks - Tutorial: Design Patterns - Introduction&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.mikebernat.com/blog/My_PHP_Best_Practices' title='link to ..'&gt;My PHP Best Practices&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://phpdox.net/' title='link to ..'&gt;PHP Dox: Ajax Powered PHP Documentation&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://laughingmeme.org/2007/02/27/looking-at-php5s-datetime-and-datetimezone/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/122587605/5144691</fs:itemid></item><item><title>美味书签 [2008-10-09]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-10-09</link><guid>http://delicious.com/louyuhang#2008-10-09</guid><pubDate>Thu, 09 Oct 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.phpbench.com/' title='link to ..'&gt;The PHP Benchmark&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.phpbench.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/122045248/5144691</fs:itemid></item><item><title>美味书签 [2008-10-08]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-10-08</link><guid>http://delicious.com/louyuhang#2008-10-08</guid><pubDate>Wed, 08 Oct 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://devzone.zend.com/article/2757-The-ZendCon-Sessions-Podcast-Homepage' title='link to ..'&gt;The ZendCon Sessions Podcast Homepage&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.phpcaptcha.org/' title='link to ..'&gt;Securimage PHP CAPTCHA - Free PHP Captcha Script&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://devzone.zend.com/article/2757-The-ZendCon-Sessions-Podcast-Homepage</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121812616/5144691</fs:itemid></item><item><title>美味书签 [2008-10-07]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-10-07</link><guid>http://delicious.com/louyuhang#2008-10-07</guid><pubDate>Tue, 07 Oct 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.blogjava.net/BlueDavy/archive/2008/09/03/226749.html' title='link to ..'&gt;大型网站架构演变和知识体系&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.blogjava.net/BlueDavy/archive/2008/09/03/226749.html</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515878/5144691</fs:itemid></item><item><title>美味书签 [2008-09-20]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-20</link><guid>http://delicious.com/louyuhang#2008-09-20</guid><pubDate>Sat, 20 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.boc.cn/' title='link to ..'&gt;中国银行&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.boc.cn/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515879/5144691</fs:itemid></item><item><title>美味书签 [2008-09-19]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-19</link><guid>http://delicious.com/louyuhang#2008-09-19</guid><pubDate>Fri, 19 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://inside.e-novative.de/archives/126-End-to-end-Web-Testing-with-Selenium-ZendCon-2008.html' title='link to ..'&gt;End-to-end Web Testing with Selenium - ZendCon 2008 - Inside &gt;e-novative&gt;&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://inside.e-novative.de/archives/126-End-to-end-Web-Testing-with-Selenium-ZendCon-2008.html</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515880/5144691</fs:itemid></item><item><title>美味书签 [2008-09-18]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-18</link><guid>http://delicious.com/louyuhang#2008-09-18</guid><pubDate>Thu, 18 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.handdrawngames.com/' title='link to ..'&gt;Desktop Tower Defense&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.handdrawngames.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/116241061/5144691</fs:itemid></item><item><title>美味书签 [2008-09-12]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-12</link><guid>http://delicious.com/louyuhang#2008-09-12</guid><pubDate>Fri, 12 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.tdplayer.cn/' title='link to ..'&gt;塔防世界-提供在线Flash塔防,魔兽塔防TD,桌面硬盘塔防及Flash网游等等&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.tdplayer.cn/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515881/5144691</fs:itemid></item><item><title>美味书签 [2008-09-11]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-11</link><guid>http://delicious.com/louyuhang#2008-09-11</guid><pubDate>Thu, 11 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.pearsonvue.com.cn/' title='link to ..'&gt;Pearson VUE 欢迎您!&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.pearsonvue.com.cn/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515882/5144691</fs:itemid></item><item><title>美味书签 [2008-09-09]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-09</link><guid>http://delicious.com/louyuhang#2008-09-09</guid><pubDate>Tue, 09 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.lighttpd.net/' title='link to ..'&gt;lighttpd fly light&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.lighttpd.net/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515883/5144691</fs:itemid></item><item><title>美味书签 [2008-09-08]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-08</link><guid>http://delicious.com/louyuhang#2008-09-08</guid><pubDate>Mon, 08 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.greensql.net/' title='link to ..'&gt;GreenSQL | Open Source Database Security&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.greensql.net/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/121515889/5144691</fs:itemid></item><item><title>美味书签 [2008-09-04]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-09-04</link><guid>http://delicious.com/louyuhang#2008-09-04</guid><pubDate>Thu, 04 Sep 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.ganso.com.cn/' title='link to ..'&gt;ganso&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.ganso.com.cn/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992722/5144691</fs:itemid></item><item><title>美味书签 [2008-08-15]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-08-15</link><guid>http://delicious.com/louyuhang#2008-08-15</guid><pubDate>Fri, 15 Aug 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.w3schools.com/default.asp' title='link to ..'&gt;W3Schools Online Web Tutorials&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.w3schools.com/default.asp</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992723/5144691</fs:itemid></item><item><title>美味书签 [2008-08-14]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-08-14</link><guid>http://delicious.com/louyuhang#2008-08-14</guid><pubDate>Thu, 14 Aug 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.faceyourmanga.com/homepage.php?lang=eng' title='link to ..'&gt;FaceYourManga.com | Shake Yourself!&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.faceyourmanga.com/homepage.php?lang=eng</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992724/5144691</fs:itemid></item><item><title>美味书签 [2008-08-07]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-08-07</link><guid>http://delicious.com/louyuhang#2008-08-07</guid><pubDate>Thu, 07 Aug 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.aeebi.com/' title='link to ..'&gt;Aeebi-站长工具 | 最专业的站长工具网站&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.aeebi.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992725/5144691</fs:itemid></item><item><title>美味书签 [2008-08-04]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-08-04</link><guid>http://delicious.com/louyuhang#2008-08-04</guid><pubDate>Mon, 04 Aug 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.myhappyplanet.com/' title='link to ..'&gt;My Happy Planet | Learn &amp; Practice English, French, Spanish and More with Partners Around the World&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.myhappyplanet.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992726/5144691</fs:itemid></item><item><title>美味书签 [2008-08-01]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-08-01</link><guid>http://delicious.com/louyuhang#2008-08-01</guid><pubDate>Fri, 01 Aug 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.nownb.com/index.php' title='link to ..'&gt;NOWNB IBM笔记本论坛|苹果笔记本论坛 IBM笔记本电脑|水货笔记本|水货IBM|笔记本报价|笔记本电脑|IBM论坛|ThinkPad|IBM报价|T61|X61|X300|&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.youtube.com/googlebusiness' title='link to ..'&gt;YouTube - GoogleBusiness's Channel&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.nownb.com/index.php</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992727/5144691</fs:itemid></item><item><title>关于mbstring多字节字符串处理模块的相关设置</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882072/5144691/1/item.html</link><content:encoded>&lt;p&gt;今天正好在网上看到一篇关于如何设置mbstring系列函数为php默认使用函数的一篇&lt;a title=&quot;mbstring Functions by default in PHP&quot; href=&quot;http://blogs.vinuthomas.com/2008/07/18/mbstring-functions-by-default-in-php/&quot; target=&quot;_blank&quot;&gt;文章&lt;/a&gt;，顺便也就仔细看了看php.ini中mbstring部分的设置参数。mbstring系列函数在涉及到中文及其它亚洲字符集的开发中是经常使用的，研究一下还是有必要的。&lt;/p&gt;
&lt;p&gt;先说文章中提及的一个参数：mbstring.func_overload。这个参数的好处在于当你已经开发了大量程序后发现需要处理多字节字符集的时候，不可能将之前的程序全部检查，将相关函数替换成mbstring多字节字符处理函数。这个时候你可以通过设置这个参数来使php默认使用mbstring系列函数来重载替代相对应的php内置函数（例如常用的substr()会被自动替换为mb_substr()）。有5个可选值：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;0：代表不重载任何函数（默认值）；&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;1：代表重载mail()函数；&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;2：代表重载str系列字符串处理函数；&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;4：代表重载ereg系列正则处理函数；&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;7：代表重载所有以上提及的函数。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;不过在php手册中也提及了这么一句：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;It is not recommended to use the function overloading option in the  per-directory context, because it&amp;#8217;s not confirmed yet to be stable enough in a  production environment and may lead to undefined behaviour.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;哈哈，慎用慎用，毕竟这么强大无视的参数还是谨慎使用为好，影响太大。打开后影响的函数列表如下：&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;mail()		-&amp;gt; mb_send_mail()
strlen()	-&amp;gt; mb_strlen()
strpos()	-&amp;gt; mb_strpos()
strrpos()	-&amp;gt; mb_strrpos()
substr()	-&amp;gt; mb_substr()
strtolower()	-&amp;gt; mb_strtolower()
strtoupper()	-&amp;gt; mb_strtoupper()
substr_count()	-&amp;gt; mb_substr_count()
ereg()		-&amp;gt; mb_ereg()
eregi()		-&amp;gt; mb_eregi()
ereg_replace()	-&amp;gt; mb_ereg_replace()
eregi_replace()	-&amp;gt; mb_eregi_replace()
split()		-&amp;gt; mb_split()&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;接下来几个参数也简略介绍一下，自己看注释理解的，可能有误：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.language：设置默认语言。默认值为neutral，就是UTF-8，这样就不错。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.internal_encoding：设置默认的内部编码。如果设置过mbstring.language，必须放置在之后，不然无法覆盖之前的设置。默认值NULL。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.http_input：默认的http输入编码。默认值pass，就是不处理。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.http_output：默认的http输出编码，前提是必须将output_buffering打开并将output_handler设置为mb_output_handler。默认值pass，也是不处理。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.encoding_translation：打开后将会自动将输入编码转换为internal_encoding所指定的编码（同样慎用，都交给机器未必是好事）。默认值Off，万幸。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.detect_order：设置编码的检测顺序，在使用&lt;span id=&quot;pageTitle&quot;&gt;mb_detect_encoding而又没有在第二个参数中指明检测编码顺讯列表时，将会以这里设置的为准。默认值auto，在&lt;/span&gt;language为neutral时&lt;span id=&quot;pageTitle&quot;&gt;也就是代表检测顺序为(&lt;/span&gt;ASCII, UTF-8&lt;span id=&quot;pageTitle&quot;&gt;)。&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.substitute_character：当编码无法转换时的处理方式。默认值为NULL，也就是不显示无法转换的字符。你也可以设置为long，显示字符的hex编码；或者指定其他特定字符（例如&amp;#8221;@_@&amp;#8221;，呵呵）。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.strict_detection：是否打开严格的编码检测模式，这个找了半天才知道什么意思，在处理有不同编码或错误编码字符混杂情况（例如mb_detect_encoding(&amp;#8221;testä&amp;#8221;)）下打开这个参数能够防止&lt;span id=&quot;pageTitle&quot;&gt;mb_detect_encoding返回错误的编码。可以参见&lt;a title=&quot;PHP Bug #24309 mb_detect_encoding return EUC-JP for invalid EUC-JP char sequence&quot; href=&quot;http://bugs.php.net/bug.php?id=24309&quot; target=&quot;_blank&quot;&gt;PHP Bug&lt;/a&gt;&lt;/span&gt;&lt;a title=&quot;PHP Bug #24309 mb_detect_encoding return EUC-JP for invalid EUC-JP char sequence&quot; href=&quot;http://bugs.php.net/bug.php?id=24309&quot; target=&quot;_blank&quot;&gt;24309&lt;/a&gt;。默认值为Off。&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;mbstring.script_encoding：PHP脚本的默认编码。默认值为NULL。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;大多数情况下默认值好像工作的就挺好，而且最好程序中也不要显式依赖于ini设置。使用mbstring系列函数时明确指明编码类型也许是一种更好的处理方式。在Unicode情况下，可以考虑设置为以下形式。&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;mbstring.language		= neutral
mbstring.internal_encoding	= UTF-8
mbstring.encoding_translation	= Off
mbstring.http_input		= auto
mbstring.http_output		= UTF-8
mbstring.detect_order		= auto
mbstring.substitute_character	= none&lt;/pre&gt;
&lt;/blockquote&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/99/feed</wfw:commentRss><description>今天正好在网上看到一篇关于如何设置mbstring系列函数为php默认使用函数的一篇文章，顺便也就仔细看了看php.ini中mbstring部分的设置参数。mbstring系列函数在涉及到中文及其它亚洲字符集的开发中是经常使用的，研究一下还是有必要的。
先说文章中提及的一个参数：mbstring.func_overload。这个参数的好处在于当你已经开发了大量程序后发现需要处理多字节字符集的时候，不可能将之前的程序全部检查，将相关函数替换成mbstring多字节字符处理函数。这个时候你可以通过设置这个参数来使php默认使用mbstring系列函数来重载替代相对应的php内置函数（例如常用的substr()会被自动替换为mb_substr()）。有5个可选值：

0：代表不重载任何函数（默认值）；


1：代表重载mail()函数；


2：代表重载str系列字符串处理函数；


4：代表重载ereg系列正则处理函数；


7：代表重载所有以上提及的函数。

不过在php手册中也提及了这么一句：
It is not recommended to use the function overloading option in the  per-directory context, because it&amp;#8217;s not confirmed yet to be stable enough in a  production environment and may lead to undefined behaviour.
哈哈，慎用慎用，毕竟这么强大无视的参数还是谨慎使用为好，影响太大。打开后影响的函数列表如下：

mail()		-&amp;#62; mb_send_mail()
strlen()	-&amp;#62; mb_strlen()
strpos()	-&amp;#62; mb_strpos()
strrpos()	-&amp;#62; mb_strrpos()
substr()	-&amp;#62; mb_substr()
strtolower()	-&amp;#62; mb_strtolower()
strtoupper()	-&amp;#62; mb_strtoupper()
substr_count()	-&amp;#62; mb_substr_count()
ereg()		-&amp;#62; mb_ereg()
eregi()		-&amp;#62; mb_eregi()
ereg_replace()	-&amp;#62; mb_ereg_replace()
eregi_replace()	-&amp;#62; mb_eregi_replace()
split()		-&amp;#62; mb_split()

接下来几个参数也简略介绍一下，自己看注释理解的，可能有误：

mbstring.language：设置默认语言。默认值为neutral，就是UTF-8，这样就不错。


mbstring.internal_encoding：设置默认的内部编码。如果设置过mbstring.language，必须放置在之后，不然无法覆盖之前的设置。默认值NULL。


mbstring.http_input：默认的http输入编码。默认值pass，就是不处理。


mbstring.http_output：默认的http输出编码，前提是必须将output_buffering打开并将output_handler设置为mb_output_handler。默认值pass，也是不处理。


mbstring.encoding_translation：打开后将会自动将输入编码转换为internal_encoding所指定的编码（同样慎用，都交给机器未必是好事）。默认值Off，万幸。


mbstring.detect_order：设置编码的检测顺序，在使用mb_detect_encoding而又没有在第二个参数中指明检测编码顺讯列表时，将会以这里设置的为准。默认值auto，在language为neutral时也就是代表检测顺序为(ASCII, UTF-8)。


mbstring.substitute_character：当编码无法转换时的处理方式。默认值为NULL，也就是不显示无法转换的字符。你也可以设置为long，显示字符的hex编码；或者指定其他特定字符（例如&amp;#8221;@_@&amp;#8221;，呵呵）。


mbstring.strict_detection：是否打开严格的编码检测模式，这个找了半天才知道什么意思，在处理有不同编码或错误编码字符混杂情况（例如mb_detect_encoding(&amp;#8221;testä&amp;#8221;)）下打开这个参数能够防止mb_detect_encoding返回错误的编码。可以参见PHP Bug24309。默认值为Off。


mbstring.script_encoding：PHP脚本的默认编码。默认值为NULL。

大多数情况下默认值好像工作的就挺好，而且最好程序中也不要显式依赖于ini设置。使用mbstring系列函数时明确指明编码类型也许是一种更好的处理方式。在Unicode情况下，可以考虑设置为以下形式。

mbstring.language		= neutral
mbstring.internal_encoding	= UTF-8
mbstring.encoding_translation	= Off
mbstring.http_input		= auto
mbstring.http_output		= UTF-8
mbstring.detect_order		= [...]</description><category>PHP</category><category>技术</category><pubDate>Tue, 22 Jul 2008 18:03:36 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/99#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=99</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/99</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882072/5144691</fs:itemid></item><item><title>美味书签 [2008-07-22]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-07-22</link><guid>http://delicious.com/louyuhang#2008-07-22</guid><pubDate>Tue, 22 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.digitaljunkies.ca/dompdf/index.php' title='link to ..'&gt;dompdf - The PHP 5 HTML to PDF Converter&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.digitaljunkies.ca/dompdf/index.php</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992729/5144691</fs:itemid></item><item><title>美味书签 [2008-07-16]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-07-16</link><guid>http://del.icio.us/louyuhang#2008-07-16</guid><pubDate>Wed, 16 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.ibm.com/developerworks/cn/webservices/redbooks/soa-case/' title='link to ..'&gt;IBM developerWorks 中国 : SOA 案例分析系列&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.friv.com/' title='link to ..'&gt;friv.com&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.ibm.com/developerworks/cn/webservices/redbooks/soa-case/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723314/5144691</fs:itemid></item><item><title>美味书签 [2008-07-16]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-07-16</link><guid>http://delicious.com/louyuhang#2008-07-16</guid><pubDate>Wed, 16 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.ibm.com/developerworks/cn/webservices/redbooks/soa-case/' title='link to ..'&gt;IBM developerWorks 中国 : SOA 案例分析系列&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.ibm.com/developerworks/cn/webservices/redbooks/soa-case/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992730/5144691</fs:itemid></item><item><title>美味书签 [2008-07-08]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-07-08</link><guid>http://del.icio.us/louyuhang#2008-07-08</guid><pubDate>Tue, 08 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://labs.mozilla.com/' title='link to ..'&gt;Mozilla Labs&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://chinese.scottrade.com/' title='link to ..'&gt;史考特公司主頁&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.interactivebrokers.com.hk/cn/main.php?red=1' title='link to ..'&gt;全球直接期权、期货、外汇、股票、基金网上交易&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.bloomberg.com/apps/quote?ticker=MIGWMFA:LX' title='link to ..'&gt;Bloomberg.com: Investment Tools&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://labs.mozilla.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723316/5144691</fs:itemid></item><item><title>美味书签 [2008-07-08]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-07-08</link><guid>http://delicious.com/louyuhang#2008-07-08</guid><pubDate>Tue, 08 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://labs.mozilla.com/' title='link to ..'&gt;Mozilla Labs&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://chinese.scottrade.com/' title='link to ..'&gt;史考特公司主頁&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.interactivebrokers.com.hk/cn/main.php?red=1' title='link to ..'&gt;全球直接期权、期货、外汇、股票、基金网上交易&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.bloomberg.com/apps/quote?ticker=MIGWMFA:LX' title='link to ..'&gt;Bloomberg.com: Investment Tools&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://labs.mozilla.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992732/5144691</fs:itemid></item><item><title>美味书签 [2008-07-07]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-07-07</link><guid>http://del.icio.us/louyuhang#2008-07-07</guid><pubDate>Mon, 07 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.phpunit.de/' title='link to ..'&gt;PHPUnit - Trac&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.standardchartered.com.cn/zh/index.html' title='link to ..'&gt;渣打银行(中国)有限公司 | 主页&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.phpunit.de/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723320/5144691</fs:itemid></item><item><title>美味书签 [2008-07-07]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-07-07</link><guid>http://delicious.com/louyuhang#2008-07-07</guid><pubDate>Mon, 07 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.phpunit.de/' title='link to ..'&gt;PHPUnit - Trac&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.phpunit.de/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/110992736/5144691</fs:itemid></item><item><title>美味书签 [2008-07-02]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-07-02</link><guid>http://del.icio.us/louyuhang#2008-07-02</guid><pubDate>Wed, 02 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.chinasearchdaily.com/' title='link to ..'&gt;China Search Daily&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='https://www.photoshop.com/express/landing.html' title='link to ..'&gt;Photoshop Express - Online Photo Sharing and Photo Editing&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.chinasearchdaily.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723322/5144691</fs:itemid></item><item><title>美味书签 [2008-07-02]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-07-02</link><guid>http://delicious.com/louyuhang#2008-07-02</guid><pubDate>Wed, 02 Jul 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.chinasearchdaily.com/' title='link to ..'&gt;China Search Daily&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.chinasearchdaily.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/101717665/5144691</fs:itemid></item><item><title>美味书签 [2008-06-30]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-06-30</link><guid>http://del.icio.us/louyuhang#2008-06-30</guid><pubDate>Mon, 30 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.oracle.com/technology/tech/php/index.html' title='link to ..'&gt;Oracle | PHP Developer Center&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.oracle.com/technology/tech/php/index.html</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723324/5144691</fs:itemid></item><item><title>美味书签 [2008-06-30]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-06-30</link><guid>http://delicious.com/louyuhang#2008-06-30</guid><pubDate>Mon, 30 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.oracle.com/technology/tech/php/index.html' title='link to ..'&gt;Oracle | PHP Developer Center&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.oracle.com/technology/tech/php/index.html</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/99782475/5144691</fs:itemid></item><item><title>顺利解决 Firefox 3 无法保存设置的问题</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882073/5144691/1/item.html</link><content:encoded>&lt;p&gt;安装了Firefox 3之后的日子，出现了一件怪事，单位的Firefox 3.0用的好好的，家里的出现了所有设置在关闭浏览器后消失，再开启变为原始状态的怪毛病。网上搜索了一下，发现是与\Documents and Settings\{你所使用的用户名}\Application Data\Mozilla\Firefox\Profiles\{一串随机字符}.default下的pref.js有关。无论我如何设置浏览器，pref.js始终不变。尝试删除pref.js让浏览器重建，却发现无法删除，关闭Firefox 3后依然无法删除，始终提示有进程在使用。下了个&lt;a title=&quot;WhoLockMe&quot; href=&quot;http://www.dr-hoiby.com/WhoLockMe/&quot; target=&quot;_blank&quot;&gt;WhoLockMe&lt;/a&gt;看看是何方神圣，发现是PPLive所带的一个PP加速器锁定了该文件，删除PP加速器后一切正常。不过至于为何就不瞭了，如果有其它同学碰到这个问题，也请重点关注pref.js，这是保持所有firefox设置的文件，也是about:config中看到的那些。&lt;/p&gt;
&lt;p&gt;另：今天看到了一个Firefox 3的小彩蛋，在地址栏中输入about:robots看看：）总算知道为啥Volcano老大之前的msn签名是“机器人有咬不得的闪亮的金属屁股。”，哈哈，小生愚钝了。。。&lt;/p&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/91/feed</wfw:commentRss><description>安装了Firefox 3之后的日子，出现了一件怪事，单位的Firefox 3.0用的好好的，家里的出现了所有设置在关闭浏览器后消失，再开启变为原始状态的怪毛病。网上搜索了一下，发现是与\Documents and Settings\{你所使用的用户名}\Application Data\Mozilla\Firefox\Profiles\{一串随机字符}.default下的pref.js有关。无论我如何设置浏览器，pref.js始终不变。尝试删除pref.js让浏览器重建，却发现无法删除，关闭Firefox 3后依然无法删除，始终提示有进程在使用。下了个WhoLockMe看看是何方神圣，发现是PPLive所带的一个PP加速器锁定了该文件，删除PP加速器后一切正常。不过至于为何就不瞭了，如果有其它同学碰到这个问题，也请重点关注pref.js，这是保持所有firefox设置的文件，也是about:config中看到的那些。
另：今天看到了一个Firefox 3的小彩蛋，在地址栏中输入about:robots看看：）总算知道为啥Volcano老大之前的msn签名是“机器人有咬不得的闪亮的金属屁股。”，哈哈，小生愚钝了。。。</description><category>软件</category><category>Firefox</category><category>技术</category><pubDate>Thu, 26 Jun 2008 01:15:06 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/91#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=91</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/91</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882073/5144691</fs:itemid></item><item><title>美味书签 [2008-06-20]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-06-20</link><guid>http://del.icio.us/louyuhang#2008-06-20</guid><pubDate>Fri, 20 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://wikipedia.jaylee.cn/' title='link to ..'&gt;维基百科（Wikipedia）——访问英文、中文维基百科全书网站&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://wikipedia.jaylee.cn/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723326/5144691</fs:itemid></item><item><title>美味书签 [2008-06-20]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-06-20</link><guid>http://delicious.com/louyuhang#2008-06-20</guid><pubDate>Fri, 20 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://wikipedia.jaylee.cn/' title='link to ..'&gt;维基百科（Wikipedia）——访问英文、中文维基百科全书网站&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://wikipedia.jaylee.cn/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/99782476/5144691</fs:itemid></item><item><title>Firefox 3.0 正式发布</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882074/5144691/1/item.html</link><content:encoded>&lt;p&gt;2008.6.18北京时间01:00正式发布Firefox3的&lt;a title=&quot;Firefox 3.0 下载&quot; href=&quot;http://www.mozilla.com/zh-CN/firefox?p=downloadday&quot; target=&quot;_blank&quot;&gt;下载&lt;/a&gt;，本来想等到1点抢鲜下载的，最后还是没有熬住，顺带着连意法大战都没精神看了。到单位后立马开始下载了一份，安装速度倒是很快，之后使用的感觉也是区别不大。毕竟从RC到Release不会有大的区别，事实上也不会区别，可以参看&lt;a title=&quot;Firefox 3.0就是RC3&quot; href=&quot;http://www.ooso.net/index.php/archives/425&quot; target=&quot;_blank&quot;&gt;Volcano老大的说法&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;具体使用上面的差别之前提过一些，对于页面开发人员来说，对于js和css的支持改进是绝对值得关注的。可以尝试着在ff环境下使用些更高级的手段来得到更好的页面效果。&lt;/p&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/90/feed</wfw:commentRss><description>2008.6.18北京时间01:00正式发布Firefox3的下载，本来想等到1点抢鲜下载的，最后还是没有熬住，顺带着连意法大战都没精神看了。到单位后立马开始下载了一份，安装速度倒是很快，之后使用的感觉也是区别不大。毕竟从RC到Release不会有大的区别，事实上也不会区别，可以参看Volcano老大的说法。
具体使用上面的差别之前提过一些，对于页面开发人员来说，对于js和css的支持改进是绝对值得关注的。可以尝试着在ff环境下使用些更高级的手段来得到更好的页面效果。</description><category>CSS</category><category>Firefox</category><category>技术</category><pubDate>Wed, 18 Jun 2008 10:39:39 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/90#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=90</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/90</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882074/5144691</fs:itemid></item><item><title>美味书签 [2008-06-11]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-06-11</link><guid>http://del.icio.us/louyuhang#2008-06-11</guid><pubDate>Wed, 11 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://geoquake.jp/en/webgame/DrivingSimulatorGM/' title='link to ..'&gt;2D Driving Simulator on Google Maps&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://htmlplayground.com/#tag_tt' title='link to ..'&gt;HTML Playground, html, css reference by example&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://geoquake.jp/en/webgame/DrivingSimulatorGM/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723327/5144691</fs:itemid></item><item><title>美味书签 [2008-06-11]:louyuhang @ del.icio.us</title><link>http://delicious.com/louyuhang#2008-06-11</link><guid>http://delicious.com/louyuhang#2008-06-11</guid><pubDate>Wed, 11 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://geoquake.jp/en/webgame/DrivingSimulatorGM/' title='link to ..'&gt;2D Driving Simulator on Google Maps&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://htmlplayground.com/#tag_tt' title='link to ..'&gt;HTML Playground, html, css reference by example&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://geoquake.jp/en/webgame/DrivingSimulatorGM/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/99782477/5144691</fs:itemid></item><item><title>美味书签 [2008-06-09]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-06-09</link><guid>http://del.icio.us/louyuhang#2008-06-09</guid><pubDate>Mon, 09 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://ditu.google.cn/transit' title='link to ..'&gt;Google 公交&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://ditu.google.cn/transit</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723329/5144691</fs:itemid></item><item><title>美味书签 [2008-06-03]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-06-03</link><guid>http://del.icio.us/louyuhang#2008-06-03</guid><pubDate>Tue, 03 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.fritzhoffmann.com/' title='link to ..'&gt;FRITZ HOFFMANN - photographer&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.cnbeta.com/articles/56988.htm' title='link to ..'&gt;cnBeta.COM_cnBeta 网站推介_ PDF相关的Web2.0服务网站列表&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://tangjun8114.spaces.live.com/' title='link to ..'&gt;ADIDAS 三叶草&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.fritzhoffmann.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723330/5144691</fs:itemid></item><item><title>美味书签 [2008-06-02]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-06-02</link><guid>http://del.icio.us/louyuhang#2008-06-02</guid><pubDate>Mon, 02 Jun 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://regex.larsolavtorvik.com/' title='link to ..'&gt;Regular expression tool - regex.larsolavtorvik.com&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://regex.larsolavtorvik.com/</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723333/5144691</fs:itemid></item><item><title>Firefox 3.0 RC1使用初体验之二</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882075/5144691/1/item.html</link><content:encoded>&lt;p&gt;自从下载Firefox 3.0 RC1（以下简称FF3）后，使用已近十天。这里就简单说说感受。&lt;/p&gt;
&lt;p&gt;FF3总体来说，毕竟还不是正式版本，不稳定的情况还是有不少。比如在Vista上表现不佳，据同事反映，FF3在Vista上的第一次启动时就出现界面上的bug。另外在Vista上会出现频繁崩溃的情况。以我个人在XP上的使用来说，大部分时间表现正常，但是内存和CPU占用还是不小。CPU可能飚至80-90，内存大致在3位数。假死情况也是时有发生，不过就是有时候能恢复正常，比FF2表现略佳。&lt;/p&gt;
&lt;p&gt;好的方面也是有，Tab切换的速度，页面的流畅度都有提升，但是这个是感觉，因人而异。智能地址栏还是很有特点，包括一键站点信息，还是很方便的。书签方面的改进并没有去体验，还是保持使用del.icio.us的插件，所有的书签也是存放在&lt;a title=&quot;louyuhang's bookmarks&quot; href=&quot;http://del.icio.us/louyuhang&quot; target=&quot;_blank&quot;&gt;上面&lt;/a&gt;，本地完全不存放。&lt;/p&gt;
&lt;p&gt;插件方面不必有大的担心，总是会有更新保证你的使用，需要的是等待。一些插件的使用情况可以参见&lt;a title=&quot;Firefox 3.0 RC1使用初体验&quot; href=&quot;http://blog.louyuhang.com/archives/87&quot; target=&quot;_blank&quot;&gt;前一篇&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;FF3RC2的话应该在6.6能够面世，不清楚还有没有RC3。RC多些倒也无所谓，我只希望FF3面世有一个稳定的表现，对于FF3的市场拓展应该是很有好处。FF目前也有一个&lt;a title=&quot;承诺在下载日下载Firefox 3来帮助创造吉尼斯世界记录&quot; href=&quot;http://www.spreadfirefox.com/zh-CN/worldrecord&quot; target=&quot;_blank&quot;&gt;活动&lt;/a&gt;，是承诺在下载日下载Firefox 3来创造吉尼斯世界记录。我也参加了，不过要是参加的人都能发些纪念品就好了，哈哈哈。。。&lt;/p&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/88/feed</wfw:commentRss><description>自从下载Firefox 3.0 RC1（以下简称FF3）后，使用已近十天。这里就简单说说感受。
FF3总体来说，毕竟还不是正式版本，不稳定的情况还是有不少。比如在Vista上表现不佳，据同事反映，FF3在Vista上的第一次启动时就出现界面上的bug。另外在Vista上会出现频繁崩溃的情况。以我个人在XP上的使用来说，大部分时间表现正常，但是内存和CPU占用还是不小。CPU可能飚至80-90，内存大致在3位数。假死情况也是时有发生，不过就是有时候能恢复正常，比FF2表现略佳。
好的方面也是有，Tab切换的速度，页面的流畅度都有提升，但是这个是感觉，因人而异。智能地址栏还是很有特点，包括一键站点信息，还是很方便的。书签方面的改进并没有去体验，还是保持使用del.icio.us的插件，所有的书签也是存放在上面，本地完全不存放。
插件方面不必有大的担心，总是会有更新保证你的使用，需要的是等待。一些插件的使用情况可以参见前一篇。
FF3RC2的话应该在6.6能够面世，不清楚还有没有RC3。RC多些倒也无所谓，我只希望FF3面世有一个稳定的表现，对于FF3的市场拓展应该是很有好处。FF目前也有一个活动，是承诺在下载日下载Firefox 3来创造吉尼斯世界记录。我也参加了，不过要是参加的人都能发些纪念品就好了，哈哈哈。。。</description><category>软件</category><category>Firefox</category><category>技术</category><pubDate>Thu, 29 May 2008 11:33:16 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/88#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=88</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/88</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882075/5144691</fs:itemid></item><item><title>美味书签 [2008-05-29]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-05-29</link><guid>http://del.icio.us/louyuhang#2008-05-29</guid><pubDate>Thu, 29 May 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.eioba.com/a75890/effective_eclipse_ii_shortcut_keys' title='link to ..'&gt;Effective Eclipse: II. Shortcut keys&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.eioba.com/a75888/effective_eclipse_i_setup' title='link to ..'&gt;Effective Eclipse: I. Setup&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.eioba.com/a74961/getting_started_with_eclipse_php_development_tools_pdt' title='link to ..'&gt;Getting Started with Eclipse PHP Development Tools (PDT)&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.epson.com.sg/ideas/papercraft/index.htm' title='link to ..'&gt;Epson - Exceed Your Vision&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.yamaha-motor.co.jp/global/entertainment/papercraft/index.html' title='link to ..'&gt;Paper Crafts | YAMAHA MOTOR&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://cp.c-ij.com/english/3D-papercraft/' title='link to ..'&gt;Canon 3D Papercraft&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.4kids.tv/papercraft' title='link to ..'&gt;Papercraft - 4Kids TV&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.cubeecraft.com/index.html' title='link to ..'&gt;cubeecraft.com&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.eioba.com/a75890/effective_eclipse_ii_shortcut_keys</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723334/5144691</fs:itemid></item><item><title>Firefox 3.0 RC1使用初体验</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882076/5144691/1/item.html</link><content:encoded>&lt;p&gt;今天终于对于firefox 2.0版本的内存及CPU使用问题忍无可忍！在本身就很慢的破机器上，firefox更是日趋不稳定。偏巧我又是个已经离不开firefox的使用者了，于是下决心试试之前还不是很想切换的3.0RC1。不想切换的原因很简单，做小白鼠是辛苦的，要面对很多问题。不过既然RC1了，而且3.0也不是出来一时半会了，想来能从www上获得相当的支持。&lt;/p&gt;
&lt;p&gt;&lt;a title=&quot;Firefox 3.0 RC1 download&quot; href=&quot;http://www.mozilla.com/en-US/firefox/all-beta.html&quot; target=&quot;_blank&quot;&gt;下载&lt;/a&gt;安装不表。安装是全新的，之前把FF2的所有目录全部删除，迎接3的到来。&lt;/p&gt;
&lt;p&gt;安装以后打开的第一感觉就是快。界面上改动不表，并没有太注意这些细节。但是地址栏还是值得提一提，确实方便，提示功能比以前要更实用，打入关键字后会搜索历史并显示标题及链接，关键字有下划线表示，中文支持亦备。&lt;/p&gt;
&lt;p&gt;打开附加组件菜单，首先默认显示推荐组件，个人倒以为未必好。虽然推荐的都是很好的东西，但未必各个用得到。但是集成了组件搜索，还是不错的，只要记得大概的名字，获取还是很快的，值得推荐。&lt;/p&gt;
&lt;p&gt;不过说到组件，还是有很多不能兼容的。相信并不是问题，并且这也是一次洗牌的过程，FF的插件极大丰富，功能无可避免有重复的。这次正好可以淘汰一批已经无人或无能力维护的组件，让新人崭露头角。下面是张列表，其中包括我原来FF2中使用的组件，列出在FF3中的情况：&lt;/p&gt;
&lt;table style=&quot;text-align: left;&quot; border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;组件名&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;FF3RC1兼容与否&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;FF3中可替代组件&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adblock Plus&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adblock Filterset.G Updater&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Better Gmail 2&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Customize Google&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delicious Bookmarks&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;已有&lt;a title=&quot;Delicious Bookmarks&quot; href=&quot;http://blog.delicious.com/blog/2008/04/firefox-3-delicious-and-you.html&quot; target=&quot;_blank&quot;&gt;测试版本&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fasterfox&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firebug&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;已有&lt;a title=&quot;Firebug&quot; href=&quot;http://getfirebug.com/&quot; target=&quot;_blank&quot;&gt;测试版本&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fire Cookie&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gladder&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gmail Manager&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;a title=&quot;Gmail Notifier&quot; href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/173&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gspace&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Browser Sync&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Notes&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Toolbar&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Html Validator&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;已有&lt;a title=&quot;HTML Validator 0.8.X&quot; href=&quot;http://users.skynet.be/mgueury/mozilla/download.html&quot; target=&quot;_blank&quot;&gt;测试版本&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IE Tab&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Media Wrap&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search Status&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Selenium IDE&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Super DragAndGo&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;&lt;a title=&quot;Easy DragToGo&quot; href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/6639&quot; target=&quot;_blank&quot;&gt;Easy DragToGo&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TabMixPlus&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web Developer&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #339966;&quot;&gt;Y&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;YSlow&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;text-align: center; color: #ff9900;&quot;&gt;N&lt;/span&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;总的来说，大部分组件还是有问题，尤其是外部提供，未收录在firefox组件目录中的，如google的相关等。好在基本功能还能满足，因此问题不大，还能凑合。而且很多组件都在新版本开发中，应该过段时间会好很多。开源社区的热情是不能被低估的。再者说来，就冲着FF3带来的性能提升，也是值得升级的。&lt;/p&gt;
&lt;p&gt;关于组件的情况，可以参考&lt;a title=&quot;Firefox 3.0 扩展 夏日火热推荐！&quot; href=&quot;http://hall.sociz.com/index.php?showtopic=20075&quot; target=&quot;_blank&quot;&gt;这个帖子&lt;/a&gt;，列的很详细了，包括了一些beta版的老组件。&lt;/p&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/87/feed</wfw:commentRss><description>今天终于对于firefox 2.0版本的内存及CPU使用问题忍无可忍！在本身就很慢的破机器上，firefox更是日趋不稳定。偏巧我又是个已经离不开firefox的使用者了，于是下决心试试之前还不是很想切换的3.0RC1。不想切换的原因很简单，做小白鼠是辛苦的，要面对很多问题。不过既然RC1了，而且3.0也不是出来一时半会了，想来能从www上获得相当的支持。
下载安装不表。安装是全新的，之前把FF2的所有目录全部删除，迎接3的到来。
安装以后打开的第一感觉就是快。界面上改动不表，并没有太注意这些细节。但是地址栏还是值得提一提，确实方便，提示功能比以前要更实用，打入关键字后会搜索历史并显示标题及链接，关键字有下划线表示，中文支持亦备。
打开附加组件菜单，首先默认显示推荐组件，个人倒以为未必好。虽然推荐的都是很好的东西，但未必各个用得到。但是集成了组件搜索，还是不错的，只要记得大概的名字，获取还是很快的，值得推荐。
不过说到组件，还是有很多不能兼容的。相信并不是问题，并且这也是一次洗牌的过程，FF的插件极大丰富，功能无可避免有重复的。这次正好可以淘汰一批已经无人或无能力维护的组件，让新人崭露头角。下面是张列表，其中包括我原来FF2中使用的组件，列出在FF3中的情况：



组件名
FF3RC1兼容与否
FF3中可替代组件


Adblock Plus
Y
 


Adblock Filterset.G Updater
Y
 


Better Gmail 2
Y
 


Customize Google
Y
 


Delicious Bookmarks
N
已有测试版本


Fasterfox
N
 


Firebug
N
已有测试版本


Fire Cookie
N
 


Gladder
N
 


Gmail Manager
Y




Gspace
Y
 


Google Browser Sync
N
 


Google Notes
Y
 


Google Toolbar
N
 


Html Validator
N
已有测试版本


IE Tab
Y
 


Media Wrap
Y
 


Search Status
Y
 


Selenium IDE
N
 


Super DragAndGo
N
Easy DragToGo


TabMixPlus
N
 


Web Developer
Y
 


YSlow
N
 



总的来说，大部分组件还是有问题，尤其是外部提供，未收录在firefox组件目录中的，如google的相关等。好在基本功能还能满足，因此问题不大，还能凑合。而且很多组件都在新版本开发中，应该过段时间会好很多。开源社区的热情是不能被低估的。再者说来，就冲着FF3带来的性能提升，也是值得升级的。
关于组件的情况，可以参考这个帖子，列的很详细了，包括了一些beta版的老组件。</description><category>软件</category><category>Firefox</category><category>技术</category><pubDate>Tue, 20 May 2008 23:51:49 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/87#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=87</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/87</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882076/5144691</fs:itemid></item><item><title>哀悼国难</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882077/5144691/1/item.html</link><content:encoded>&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;二零零八年五月十二日&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;国难&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;二零零八年五月十九日至二零零八年五月二十一日&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;全国哀悼日&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;深切哀悼在5.12地震大灾难中逝去的人们&lt;/strong&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;衷心祝愿在5.12地震大灾难中身体和心灵受伤的人们早日康复&lt;/strong&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;&lt;strong&gt;愿国难永远被人们铭记&lt;/strong&gt;&lt;/h3&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/86/feed</wfw:commentRss><description>二零零八年五月十二日

国难

二零零八年五月十九日至二零零八年五月二十一日

全国哀悼日

深切哀悼在5.12地震大灾难中逝去的人们
衷心祝愿在5.12地震大灾难中身体和心灵受伤的人们早日康复
愿国难永远被人们铭记</description><category>纪念</category><category>悲伤</category><category>心情</category><pubDate>Mon, 19 May 2008 12:58:35 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/86#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=86</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/86</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882077/5144691</fs:itemid></item><item><title>美味书签 [2008-05-19]:louyuhang @ del.icio.us</title><link>http://del.icio.us/louyuhang#2008-05-19</link><guid>http://del.icio.us/louyuhang#2008-05-19</guid><pubDate>Mon, 19 May 2008 00:00:00 +0800</pubDate><description>&lt;ul&gt;&lt;li&gt;&lt;a href='http://www.xo08.com/?p=77' title='link to ..'&gt;用eclipse (PDT)和XAMPP搭建wordpress的本地debug环境 | 森林木十&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.eclipse.org/pdt/index.php' title='link to ..'&gt;PDT Project&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration' title='link to ..'&gt;Plugging Aptana into an existing Eclipse configuration - Aptana&lt;/a&gt;&lt;br/&gt;&lt;div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description><fs:burntype>mark day</fs:burntype><fs:srclink>http://www.xo08.com/?p=77</fs:srclink><fs:srcfeed>http://del.icio.us/rss/louyuhang</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7096682/96723342/5144691</fs:itemid></item><item><title>URL最大长度限制</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882078/5144691/1/item.html</link><content:encoded>&lt;p&gt;在开发调试支付宝接口时，突然发现支付宝接口的URL很长，远远大于之前自己印象中的255个字符。赶紧搜索查证了一番，理解如下：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;URL不能大于255bytes的说法确实存在，在&lt;a title=&quot;RFC2616&quot; href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616.html&quot; target=&quot;_blank&quot;&gt;RFC2616&lt;/a&gt;中提到：&lt;br /&gt;
&lt;blockquote&gt;&lt;p&gt;The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15).&lt;/p&gt;
&lt;p&gt;Note: &lt;span style=&quot;color: #ff0000;&quot;&gt;Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;从上一点也可以看出，255bytes的说法也是为了兼容性考虑。实际上现代浏览器的限制如下：&lt;br /&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Microsoft Internet Explorer (Browser)&lt;/strong&gt;&lt;br /&gt;
Microsoft states that the maximum length of a URL in Internet Explorer is &lt;a title=&quot;Maximum URL length is 2,083 characters in Internet Explorer&quot; href=&quot;http://support.microsoft.com/kb/q208427/&quot; target=&quot;_blank&quot;&gt;2,083 characters&lt;/a&gt;, with no more than 2,048 characters in the path portion of the URL. In my tests, attempts to use URLs longer than this produced a clear error message in Internet Explorer.&lt;br /&gt;
&lt;strong&gt;Firefox (Browser)&lt;/strong&gt;&lt;br /&gt;
After 65,536 characters, the location bar no longer displays the URL in Windows Firefox 1.5.x. However, longer URLs will work. I stopped testing after 100,000 characters.&lt;br /&gt;
&lt;strong&gt;Safari (Browser)&lt;/strong&gt;&lt;br /&gt;
At least 80,000 characters will work. I stopped testing after 80,000 characters.&lt;br /&gt;
&lt;strong&gt;Opera (Browser)&lt;/strong&gt;&lt;br /&gt;
At least 190,000 characters will work. I stopped testing after 190,000 characters. Opera 9 for Windows continued to display a fully editable, copyable and pasteable URL in the location bar even at 190,000 characters.&lt;br /&gt;
&lt;strong&gt;Apache (Server)&lt;/strong&gt;&lt;br /&gt;
My early attempts to measure the maximum URL length in web browsers bumped into a server URL length limit of approximately 4,000 characters, after which Apache produces a &amp;#8220;413 Entity Too Large&amp;#8221; error. I used the current up to date Apache build found in Red Hat Enterprise Linux 4. The official Apache documentation only mentions an 8,192-byte limit on an individual field in a request.&lt;br /&gt;
&lt;strong&gt;Microsoft Internet Information Server&lt;/strong&gt;&lt;br /&gt;
The default limit is 16,384 characters (yes, Microsoft&amp;#8217;s web server accepts longer URLs than Microsoft&amp;#8217;s web browser). This is configurable.&lt;br /&gt;
&lt;strong&gt;Perl HTTP::Daemon (Server)&lt;/strong&gt;&lt;br /&gt;
Up to 8,000 bytes will work. Those constructing web application servers with Perl&amp;#8217;s HTTP::Daemon module will encounter a 16,384 byte limit on the combined size of all HTTP request headers. This does not include POST-method form data, file uploads, etc., but it does include the URL. In practice this resulted in a 413 error when a URL was significantly longer than 8,000 characters. This limitation can be easily removed. Look for all occurrences of 16&amp;#215;1024 in Daemon.pm and replace them with a larger value. Of course, this does increase your exposure to denial of service attacks.&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;另外值得注意的是，有文章提到作为&amp;lt;a&amp;gt;的href属性时，URL不能超过1024bytes，这点没有详细查证&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;综上，URL还是不适合太长，不是不得已，尽量不要通过GET方式提交大量参数，可以考虑用POST方式（大约在2M左右，应该是和服务器及设定有关）。另外这么长的URL在访问和收藏（有文章提到有些浏览器在收藏超长地址时也是会出现问题）时也是相当不友好的。当然，之前数据库字段设置时还是作为255bytes处理，现在可能要考虑扩充一下了。&lt;/p&gt;
&lt;p&gt;参考：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a title=&quot;What is the maximum length of a URL?&quot; href=&quot;http://www.boutell.com/newfaq/misc/urllength.html&quot; target=&quot;_blank&quot;&gt;What is the maximum length of a URL?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;What is the limit on QueryString / GET / URL parameters?&quot; href=&quot;http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html&quot; target=&quot;_blank&quot;&gt;What is the limit on QueryString / GET / URL parameters?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/85/feed</wfw:commentRss><description>在开发调试支付宝接口时，突然发现支付宝接口的URL很长，远远大于之前自己印象中的255个字符。赶紧搜索查证了一番，理解如下：

URL不能大于255bytes的说法确实存在，在RFC2616中提到：
The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI [...]</description><category>网站</category><category>优化</category><category>技术</category><pubDate>Tue, 06 May 2008 17:03:00 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/85#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=85</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/85</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882078/5144691</fs:itemid></item><item><title>计划重新设计一个自己的主题</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882079/5144691/1/item.html</link><content:encoded>&lt;p&gt;(Last Update: 计划暂时搁置，目前使用&lt;a title=&quot;访问作者主页&quot; href=&quot;http://xuyiyang.com/&quot;&gt;Xu Yiyang&lt;/a&gt; 的 RGB 1.1主题)&lt;/p&gt;
&lt;p&gt;搬家到这里开始使用wordpress后，挑选了好几个主题，加了一些插件，可是还是觉得有些不爽和不合适的地方。虽然关于插件方面还没有整理出自己的需求，但是主题可以先着手做起来，也可以顺带熟悉一下wordpress这个不错的blog系统，还可以练练很久没写的css。不过估计设计就没法做了，肯定不如人家的好看，毕竟photoshop这个东西自己始终没提起勇气去学。当然，主要是自己也没那方面的感觉，呵呵。&lt;/p&gt;
&lt;p&gt;从简单做起，期待自己的WP主题诞生。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;页脚 (footer.php)&lt;/li&gt;
&lt;li&gt;页眉 (header.php)&lt;/li&gt;
&lt;li&gt;主页面模板 (index.php)&lt;/li&gt;
&lt;li&gt;CSS 样式表 (style.css)&lt;/li&gt;
&lt;li&gt;Archives (archives.php)&lt;/li&gt;
&lt;li&gt;评论 (comments.php)&lt;/li&gt;
&lt;li&gt;存档页 (archive.php)&lt;/li&gt;
&lt;li&gt;404 页 (404.php)&lt;/li&gt;
&lt;li&gt;Links (links.php)&lt;/li&gt;
&lt;li&gt;弹出式评论 (comments-popup.php)&lt;/li&gt;
&lt;li&gt;image.php (image.php)&lt;/li&gt;
&lt;li&gt;模板函数 (functions.php)&lt;/li&gt;
&lt;li&gt;页面模板 (page.php)&lt;/li&gt;
&lt;li&gt;搜索结果页 (search.php)&lt;/li&gt;
&lt;li&gt;搜索表单 (searchform.php)&lt;/li&gt;
&lt;li&gt;侧边栏 (sidebar.php)&lt;/li&gt;
&lt;li&gt;单篇日志页 (single.php)&lt;/li&gt;
&lt;/ul&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/83/feed</wfw:commentRss><description>(Last Update: 计划暂时搁置，目前使用Xu Yiyang 的 RGB 1.1主题)
搬家到这里开始使用wordpress后，挑选了好几个主题，加了一些插件，可是还是觉得有些不爽和不合适的地方。虽然关于插件方面还没有整理出自己的需求，但是主题可以先着手做起来，也可以顺带熟悉一下wordpress这个不错的blog系统，还可以练练很久没写的css。不过估计设计就没法做了，肯定不如人家的好看，毕竟photoshop这个东西自己始终没提起勇气去学。当然，主要是自己也没那方面的感觉，呵呵。
从简单做起，期待自己的WP主题诞生。

页脚 (footer.php)
页眉 (header.php)
主页面模板 (index.php)
CSS 样式表 (style.css)
Archives (archives.php)
评论 (comments.php)
存档页 (archive.php)
404 页 (404.php)
Links (links.php)
弹出式评论 (comments-popup.php)
image.php (image.php)
模板函数 (functions.php)
页面模板 (page.php)
搜索结果页 (search.php)
搜索表单 (searchform.php)
侧边栏 (sidebar.php)
单篇日志页 (single.php)</description><category>Wordpress</category><category>优化</category><category>技术</category><pubDate>Mon, 05 May 2008 22:05:26 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/83#comments</comments><guid isPermaLink="false">http://blog.louyuhang.com/?p=83</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/83</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882079/5144691</fs:itemid></item><item><title>在数据库上发生的一些有趣的事</title><link>http://item.feedsky.com/~feedsky/louyuhang/~7036751/112882080/5144691/1/item.html</link><content:encoded>&lt;p&gt;这段时间网站的数据在不断增长,数据量不断加大,同时并发的数据操作也比较频繁了起来,一些问题就慢慢浮出水面了.症状就是网站的前后台都是不定期的突然很缓慢,页面读取的进度条一直在缓慢读取,一般来说大概需要一分钟的时间才变得正常.但是过一会又会突然卡死,一时不知道是什么原因导致,之前都很正常.有一个小细节是但是重启了数据库以后一切恢复正常,但是好景不长,过了一段时间又会复现,游魂不散.&lt;/p&gt;
&lt;p&gt;日子在困惑中过去,直到有一天在本地编写程序时,使用SQL Manager 2005 For MySQL连接局域网的数据库查看数据,突然发现读取一个视图巨慢,高达50多秒,太不正常了&amp;#8230;于是滑行到部门大牛老大身边讨论这个不寻常的情况,一番讨论和实验后发现视图的写法有小小问题,在视图语句中使用了一个UNION操作,开始怀疑,search一番后改成UNION ALL,情况基本没大改善.继续研究,发现把UNION的两个部分分拆开执行都是巨快,瞬间觉得光明大神出现,将视图拆分成两个视图,然后跑了跑前台程序,发现有快,觉得应该是解决问题.初步断定是因为视图中不合适的UNION操作拖累了整个数据库,导致其它的读取写入操作不能迅速执行,周四在快乐中结束.&lt;/p&gt;
&lt;p&gt;第二天一早回归单位,才发现问题依然存在,在怀疑了一遍程序中有遗留的地方仍然在读老视图后又被结果无情推翻后,再度无限迷惑,不知道这个缓慢瘟神什么时候才离开宝贝数据库&amp;#8230;Anyway,新网站还是上线了(www.easytvc.com),虽然有如水土不服脸上小爆了几个火气的美女&amp;#8230;&lt;/p&gt;
&lt;p&gt;时间滑过了两天,今天回到单位时,听闻媒体部周末加班录数据时状况惨烈,整个网页操作慢到如同回归33.6K小猫时代,显然这不是什么网络问题,数据库啊&amp;#8230;&lt;/p&gt;
&lt;p&gt;大拿上午已经开始研究了,我边看自己的事,然后不断滑行过去以崇拜和无奈的眼光看着大拿操作&amp;#8230;后来发现表经常有死锁,是在命令行下用show processlist(很奇怪在phpmyadmin里并看不到有lock的进程),然后发现有个sql可疑的很,号称在copying to tmp table,然后要3XX(单位不明,可能是秒)的时间,无奈看不到完整的sql语句,后来改用show all processlist,显示出一句话:&lt;br /&gt;
SELECT channel_id, channel_name&lt;br /&gt;
FROM channel&lt;br /&gt;
JOIN normal ON normal_id = normal_channel_id&lt;br /&gt;
JOIN package ON channel_id = package_channel_id&lt;br /&gt;
WHERE channel_valid = &amp;#8216;T&amp;#8217;&lt;br /&gt;
AND normal_valid = &amp;#8216;T&amp;#8217;&lt;br /&gt;
AND package_valid = &amp;#8216;T&amp;#8217;&lt;br /&gt;
GROUP BY channel_name&lt;/p&gt;
&lt;p&gt;首先发现group by操作有问题:&lt;/p&gt;
&lt;li&gt;1.channel_name未索引;&lt;/li&gt;
&lt;li&gt;2.channel_name是个字符型字段;&lt;/li&gt;
&lt;li&gt;3.据称mysql在执行group by的时候会自动再做一个order by.&lt;/li&gt;
&lt;p&gt;后来加上了一个order by null,可以强制mysql不再排序,速度有快很多,欣喜一下.然后发现如果不加那个order by null,即使是group by channel_id(主键)时,或者是直接order by channel_id时,都是巨慢,再度困惑,觉得mysql可以去撞墙,怎么会这么差&amp;#8230;不过&amp;#8230;.只见大拿眼睛一亮,发现normal_id和normal_channel_id同属normal表,构成了一个完美的自链接,如此一来,大致会产生40G左右的数据,无怪乎执行一个copying to tmp table要那么久,说起来还算快地&amp;#8230;&lt;/p&gt;
&lt;p&gt;所以,这个故事告诉我们:&lt;/p&gt;
&lt;li&gt;1.show all processlist用来监视进程很好,可以确定出问题的语句;&lt;/li&gt;
&lt;li&gt;2.mysql也许是聪明过头,group还再搭个order,当然以后不管是group还是order,尽量避开字符型字段为好,总是会降低性能的;&lt;/li&gt;
&lt;li&gt;3.join语句写的时候要小心,不要手一抖就产生了一个巨量的数据&amp;#8230;&lt;/li&gt;</content:encoded><wfw:commentRss>http://blog.louyuhang.com/archives/14/feed</wfw:commentRss><description>这段时间网站的数据在不断增长,数据量不断加大,同时并发的数据操作也比较频繁了起来,一些问题就慢慢浮出水面了.症状就是网站的前后台都是不定期的突然很缓慢,页面读取的进度条一直在缓慢读取,一般来说大概需要一分钟的时间才变得正常.但是过一会又会突然卡死,一时不知道是什么原因导致,之前都很正常.有一个小细节是但是重启了数据库以后一切恢复正常,但是好景不长,过了一段时间又会复现,游魂不散.
日子在困惑中过去,直到有一天在本地编写程序时,使用SQL Manager 2005 For MySQL连接局域网的数据库查看数据,突然发现读取一个视图巨慢,高达50多秒,太不正常了&amp;#8230;于是滑行到部门大牛老大身边讨论这个不寻常的情况,一番讨论和实验后发现视图的写法有小小问题,在视图语句中使用了一个UNION操作,开始怀疑,search一番后改成UNION ALL,情况基本没大改善.继续研究,发现把UNION的两个部分分拆开执行都是巨快,瞬间觉得光明大神出现,将视图拆分成两个视图,然后跑了跑前台程序,发现有快,觉得应该是解决问题.初步断定是因为视图中不合适的UNION操作拖累了整个数据库,导致其它的读取写入操作不能迅速执行,周四在快乐中结束.
第二天一早回归单位,才发现问题依然存在,在怀疑了一遍程序中有遗留的地方仍然在读老视图后又被结果无情推翻后,再度无限迷惑,不知道这个缓慢瘟神什么时候才离开宝贝数据库&amp;#8230;Anyway,新网站还是上线了(www.easytvc.com),虽然有如水土不服脸上小爆了几个火气的美女&amp;#8230;
时间滑过了两天,今天回到单位时,听闻媒体部周末加班录数据时状况惨烈,整个网页操作慢到如同回归33.6K小猫时代,显然这不是什么网络问题,数据库啊&amp;#8230;
大拿上午已经开始研究了,我边看自己的事,然后不断滑行过去以崇拜和无奈的眼光看着大拿操作&amp;#8230;后来发现表经常有死锁,是在命令行下用show processlist(很奇怪在phpmyadmin里并看不到有lock的进程),然后发现有个sql可疑的很,号称在copying to tmp table,然后要3XX(单位不明,可能是秒)的时间,无奈看不到完整的sql语句,后来改用show all processlist,显示出一句话:
SELECT channel_id, channel_name
FROM channel
JOIN normal ON normal_id = normal_channel_id
JOIN package ON channel_id = package_channel_id
WHERE channel_valid = &amp;#8216;T&amp;#8217;
AND normal_valid = &amp;#8216;T&amp;#8217;
AND package_valid = &amp;#8216;T&amp;#8217;
GROUP BY channel_name
首先发现group by操作有问题:
1.channel_name未索引;
2.channel_name是个字符型字段;
3.据称mysql在执行group by的时候会自动再做一个order by.
后来加上了一个order by null,可以强制mysql不再排序,速度有快很多,欣喜一下.然后发现如果不加那个order by null,即使是group by channel_id(主键)时,或者是直接order by channel_id时,都是巨慢,再度困惑,觉得mysql可以去撞墙,怎么会这么差&amp;#8230;不过&amp;#8230;.只见大拿眼睛一亮,发现normal_id和normal_channel_id同属normal表,构成了一个完美的自链接,如此一来,大致会产生40G左右的数据,无怪乎执行一个copying to tmp table要那么久,说起来还算快地&amp;#8230;
所以,这个故事告诉我们:
1.show all processlist用来监视进程很好,可以确定出问题的语句;
2.mysql也许是聪明过头,group还再搭个order,当然以后不管是group还是order,尽量避开字符型字段为好,总是会降低性能的;
3.join语句写的时候要小心,不要手一抖就产生了一个巨量的数据&amp;#8230;</description><category>数据库</category><category>优化</category><category>技术</category><pubDate>Mon, 11 Jun 2007 15:32:30 +0800</pubDate><author>David Lou</author><comments>http://blog.louyuhang.com/archives/14#comments</comments><guid isPermaLink="false">http://louyuhang.spaces.live.com/Blog/cns!52C03783C026BE30!664.entry</guid><dc:creator>David Lou</dc:creator><fs:srclink>http://blog.louyuhang.com/archives/14</fs:srclink><fs:srcfeed>http://blog.louyuhang.com/feed</fs:srcfeed><fs:itemid>feedsky/louyuhang/~7036751/112882080/5144691</fs:itemid></item></channel></rss>