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

<channel>
	<title>Becomin' Charles &#187; test</title>
	<atom:link href="http://sexywp.com/tags/test/feed" rel="self" type="application/rss+xml" />
	<link>http://sexywp.com</link>
	<description>Building another myself~~</description>
	<lastBuildDate>Thu, 29 Jul 2010 15:10:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://sexywp.com/cc/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://sexywp.com/cc/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=add&type=tag&id=140_1',cache:false,dataType:'script'});
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>折磨一下浏览器们，哈哈</title>
		<link>http://sexywp.com/make-all-my-browsers-tested.htm</link>
		<comments>http://sexywp.com/make-all-my-browsers-tested.htm#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:30:20 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[工作相关]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[Web Browsers]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://sexywp.com/make-all-my-browsers-tested.htm</guid>
		<description><![CDATA[The Web Standards Project Acid Tests

http://www.acidtests.org/

“An acid test is a test used to confirm that a material such as jewellery is gold.”&#160; ---&#160; Wikipedia

<span class="readmore"><a href="http://sexywp.com/make-all-my-browsers-tested.htm title="折磨一下浏览器们，哈哈>Keep Reading --- 828 words totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>The Web Standards Project <strong>Acid Tests</strong></p>
<p><a title="http://www.acidtests.org/" href="http://www.acidtests.org/">http://www.acidtests.org/</a></p>
<p>“An acid <a href="http://sexywp.com/tags/test" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with test">test</a> is a <a href="http://sexywp.com/tags/test" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with test">test</a> used to confirm that a material such as jewellery is gold.”&#160; ---&#160; Wikipedia</p>
<p> <span id="more-355"></span>
</p>
<p>Acid <a href="http://sexywp.com/tags/test" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with test">Test</a> 恰如其字面意思，酸性实验，拿来测试一种珠宝首饰是否是黄金制成。这个词，现在已经作为词组进入了牛津词典，其引申意义为“决定性的试验；严峻考验”。</p>
<p>The <a href="http://www.webstandards.org/">Web Standards Project</a> is a grassroots coalition fighting for standards which ensure simple, affordable access to web technologies for all.</p>
<p>这个Web Standards Project则是一个草根组织，致力于推广Web标准的。我现在这里说的这个Acid <a href="http://sexywp.com/tags/test" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with test">Test</a>就是他们推出的，用于检测浏览器对Web标准支持情况进行检测的一组测试。</p>
<p>每一种测试，都有其偏重的方面，能否通过测试和得分高低，并不能说明什么绝对问题，只是可以作为一种参考标准。因为执行测试很简单，所以我把自己手头的所有浏览器都测试了一遍。</p>
<table border="1" cellspacing="0" cellpadding="2" width="500">
<tbody>
<tr>
<td valign="top" width="174">浏览器</td>
<td valign="top" width="170">Acid3结果</td>
<td valign="top" width="154">用时</td>
</tr>
<tr>
<td valign="top" width="174">IE8</td>
<td valign="top" width="170">Fail 得分20</td>
<td valign="top" width="154">&#160;</td>
</tr>
<tr>
<td valign="top" width="174">Firefox 3.5.2</td>
<td valign="top" width="170">Pass 得分93</td>
<td valign="top" width="154">2.35s</td>
</tr>
<tr>
<td valign="top" width="174">Opera 9.27</td>
<td valign="top" width="170">Fail 得分47</td>
<td valign="top" width="154">&#160;</td>
</tr>
<tr>
<td valign="top" width="174">Opera 9.64</td>
<td valign="top" width="170">Pass 得分85</td>
<td valign="top" width="154">2.88s</td>
</tr>
<tr>
<td valign="top" width="174">Chrome 3.0</td>
<td valign="top" width="186">Pass 得分100</td>
<td valign="top" width="194">2.22s</td>
</tr>
<tr>
<td valign="top" width="174">Safari 4</td>
<td valign="top" width="186">Pass 得分100</td>
<td valign="top" width="194">2.68s</td>
</tr>
</tbody>
</table>
<p>Acid <a href="http://sexywp.com/tags/test" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with test">Test</a>有3组，鉴于上述所有浏览器都完美地展现了1和2的结果，我也就没有列进去了。</p>
<p>上述结果，只是一个参考，我们可以看到一些事情，Webkit内核已经率先做好了对标准的支持，包括CSS3和HTML，其实Opera公司的Presto也同样做好了准备，我前些日子再Opera10 beta上跑过Acid3，发现也是100分，不过没有看执行时间。所以，基于Webkit内核的Chrome和Safari都得了满分，不过呢，貌似Chrome的脚本引擎确实要更先进一些，所以呢，Chrome更快。</p>
<p>上述列表中的大输家是IE8和Opera 9.27。Opera 9.2还情有可原，IE8实在是让人抱歉了，折腾了半天，对标准兼容还是这么差。不过，我还是想强调，这个测试不能说明大部分问题。因为这两个大输家，正是我日常使用最多的浏览器。（我平时使用的，就只有IE8，Firefox和Opera 9.27，其他都是调试用的。）事实上，我觉得IE8是微软历史上最好的浏览器了，甚至我觉得比Firefox 3.5.2要好用很多。其实，我很实在的，IE8真的要快上一个数量级了。至少在我的机子上是这样。对各类垃圾网页的兼容也很好。以前，我最常用的浏览器是Firefox，现在重心在向IE8转移。正所谓“一快遮三丑”，就是这个样子的。另外一个因素，就是Firefox绝对是内存杀手，只要开的程序稍多，我一定会先杀死这只狐狸。</p>
<p>我记忆如果没有偏差IE7是无法通过Acid2的，而IE8轻易过关，这表明了微软的一种姿态，还是支持Web标准的。其他可能是一些市场因素的考虑吧，所以才会变成现在这种结局。</p>
<p>写到这里，我也不知道要说些啥了，貌似胡乱扯了一堆东西。就这样吧。</p>

	标签：<a href="http://sexywp.com/tags/test" title="test" rel="tag nofollow">test</a>, <a href="http://sexywp.com/tags/web-browsers" title="Web Browsers" rel="tag nofollow">Web Browsers</a>, <a href="http://sexywp.com/tags/web-design" title="web design" rel="tag nofollow">web design</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/make-all-my-browsers-tested.htm/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>建立WordPress测试环境</title>
		<link>http://sexywp.com/build-wp-test-env.htm</link>
		<comments>http://sexywp.com/build-wp-test-env.htm#comments</comments>
		<pubDate>Wed, 25 Mar 2009 06:07:25 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[enviornment]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://sexywp.com/?p=328</guid>
		<description><![CDATA[本文记录了建立WordPress测试环境的一种实践。]]></description>
			<content:encoded><![CDATA[<p>下载各个版本的<a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with WordPress">WordPress</a>:</p>
<p>wp2.5.1——http://<a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with WordPress">wordpress</a>.org/<a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with WordPress">wordpress</a>-2.5.1.zip<br />
wp2.6.3——http://<a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with WordPress">wordpress</a>.org/<a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with WordPress">wordpress</a>-2.6.3.zip<br />
当前版本——http://<a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with WordPress">wordpress</a>.org/latest.zip</p>
<p>其他版本依此类推。</p>
<p>建立磁盘目录：</p>
<p>www<br />
|—phpMyAdmin<br />
|—wp25<br />
|—wp26<br />
|—wp27<br />
|—plugins</p>
<p>我就是按照上面的样子建立的。plugins用来统一存放插件。（如果是xampp的话，根目录是htdocs，phpMyAdmin已经安装好了。）</p>
<p>建立测试数据库。三个wp使用同一个数据库。</p>
<p>配置wp-config.php</p>
<div class="hl-surround"><div class="hl-main"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li>&nbsp;<span style="color: Gray;">&nbsp;</span><span style="color: #ffa500;">//</span><span style="color: #ffa500;">wp263和wp271添加如下两行</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Green;">define</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">WP_PLUGIN_DIR</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: Blue;">dirname</span><span style="color: Olive;">(</span><span style="color: Blue;">dirname</span><span style="color: Olive;">(</span><span style="color: Green;">__FILE__</span><span style="color: Olive;">)</span><span style="color: Olive;">)</span><span style="color: Gray;"> . </span><span style="color: #8b0000;">'</span><span style="color: Red;">/plugins</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Green;">define</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">WP_PLUGIN_URL</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">'</span><span style="color: Red;">http://localhost/plugins</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: #ffa500;">//</span><span style="color: #ffa500;">三个版本都要最后两行</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Green;">define</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">WP_DEBUG</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: Green;">true</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Green;">define</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">PLUGINDIR</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">'</span><span style="color: Red;">../plugins</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">?&gt;</span></li></ol></div></div>
<p>关闭老版本WP的升级提示：</p>
<p>找到wp-includes/update.php</p>
<p>//add_action( 'init', 'wp_version_check' );</p>
<p>像上面那样注释掉上面那行字。</p>
<p>在plugins目录下，安装ozh的no-login插件。</p>
<p>现在这套测试环境，我自己使用下来感觉是WP 2.5的支持很不好。很多插件走不通。主要就是路径的问题。WP2.6和WP2.7的问题不大。但是如果插件需要引用wp_blog_head.php或者wp-config.php，在这样的环境下无法正常运行，我想这其实也是插件开发者的疏漏吧。</p>

	标签：<a href="http://sexywp.com/tags/development" title="development" rel="tag nofollow">development</a>, <a href="http://sexywp.com/tags/enviornment" title="enviornment" rel="tag nofollow">enviornment</a>, <a href="http://sexywp.com/tags/guide" title="guide" rel="tag nofollow">guide</a>, <a href="http://sexywp.com/tags/test" title="test" rel="tag nofollow">test</a>, <a href="http://sexywp.com/tags/wordpress" title="WordPress" rel="tag nofollow">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/build-wp-test-env.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
