<?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>atppp&#039;s Blog &#187; atppp</title>
	<atom:link href="http://blog.wuxinan.net/archives/author/atppp/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.wuxinan.net</link>
	<description></description>
	<lastBuildDate>Tue, 08 Dec 2009 08:20:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Google Wi-Fi</title>
		<link>http://blog.wuxinan.net/archives/540</link>
		<comments>http://blog.wuxinan.net/archives/540#comments</comments>
		<pubDate>Sun, 06 Dec 2009 20:37:01 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=540</guid>
		<description><![CDATA[话说上个月初我飞去东部的时候，Virgin American 飞机上有 Wi-Fi，是 Gogo Inflight 提供的。当年看到 dreamhost 一哥门显摆的时候，我就琢磨着速度到底如何。用了一下，速度奇快无比，看 Hulu 480p 完全没有问题，价格也不贵。 结果回程的时候，Google 来插了一腿，推出了 Free in-flight Wi-Fi，登机口还发免费 T 恤上书“I surfed at 35,000 ft”。虽然服务提供商一点没变，Google 只是付了个账而已，但是在几乎所有的相关宣传和登录页面，都已经看不到 Gogo Inflight 标志了。同事说，Google 里想出这个主意来的人真是英明神武，大家肯定都在飞机上给亲朋好友发信 IM 打 Skype 说俺在平流层跟你说话呢，而且大家都只会说，Google 太伟大了。 结果呢，下飞机的时候，大家都明白了，这是一个反广告。飞机上 Wi-Fi 奇慢无比，同事用 ssh 配交换机，五个小时只配了两个口（嘴？）。 免费的东西，用的人多了，就变差了…… 这和 Mountain View 的 Google Wi-Fi 是一个道理……]]></description>
			<content:encoded><![CDATA[<p>话说上个月初我飞去东部的时候，Virgin American 飞机上有 Wi-Fi，是 <a href="http://www.gogoinflight.com/jahia/Jahia/site/gogo/lang/en/participatingairlines">Gogo Inflight</a> 提供的。当年看到 dreamhost 一哥门<a href="http://blog.dreamhost.com/2009/01/16/i-cant-complain/">显摆</a>的时候，我就琢磨着速度到底如何。用了一下，速度奇快无比，看 Hulu 480p 完全没有问题，价格也不贵。</p>
<p>结果回程的时候，Google 来插了一腿，推出了 <a href="http://google.virginamerica.com/">Free in-flight Wi-Fi</a>，登机口还发免费 T 恤上书“I surfed at 35,000 ft”。虽然服务提供商一点没变，Google 只是付了个账而已，但是在几乎所有的相关宣传和登录页面，都已经看不到 Gogo Inflight 标志了。同事说，Google 里想出这个主意来的人真是英明神武，大家肯定都在飞机上给亲朋好友发信 IM 打 Skype 说俺在平流层跟你说话呢，而且大家都只会说，Google 太伟大了。</p>
<p>结果呢，下飞机的时候，大家都明白了，这是一个反广告。飞机上 Wi-Fi 奇慢无比，同事用 ssh 配交换机，五个小时只配了两个口（嘴？）。</p>
<p>免费的东西，用的人多了，就变差了…… 这和 Mountain View 的 Google Wi-Fi 是一个道理……</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/540/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>mysql/5.0.45 &#8230;</title>
		<link>http://blog.wuxinan.net/archives/537</link>
		<comments>http://blog.wuxinan.net/archives/537#comments</comments>
		<pubDate>Wed, 12 Aug 2009 21:09:04 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[lang:en]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=537</guid>
		<description><![CDATA[I recently did some performance testing with a few big tables on mysql/5.0.45 under CentOS and noticed a sharp drop in query speed a few minutes after restarting mysql. More tests showed mysql/5.0.51a or newer don&#8217;t have this problem. OK, I guess a picture is worth a thousand words&#8230; (SELECT queries only, and also mysql [...]]]></description>
			<content:encoded><![CDATA[<p>I recently did some performance testing with a few big tables on mysql/5.0.45 under CentOS and noticed a sharp drop in query speed a few minutes after restarting mysql. More tests showed mysql/5.0.51a or newer don&#8217;t have this problem. OK, I guess a picture is worth a thousand words&#8230; (SELECT queries only, and also mysql buffer size is huge, so disk I/O is minimal during test.)<br />
<a href="http://blog.wuxinan.net/wp-content/uploads/2009/08/mysql_performance.png"><img title="mysql_performance" src="http://blog.wuxinan.net/wp-content/uploads/2009/08/mysql_performance.png" alt="mysql_performance" width="600" height="452" /></a><br />
It&#8217;s most likely due to <a href="http://bugs.mysql.com/bug.php?id=21074">mysql bug 21075</a> (fixed in mysql/5.0.50). Unfortunately mysql/5.0.45 is the version that ships with CentOS 5.3 and some other Redhat-derived Linux distro. Consider upgrading if you are using mysql/5.0.45 and your mysql server appears to be heavily CPU-bound.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/537/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>康神的 FreeBSD 广告片脚本</title>
		<link>http://blog.wuxinan.net/archives/534</link>
		<comments>http://blog.wuxinan.net/archives/534#comments</comments>
		<pubDate>Wed, 12 Aug 2009 07:08:25 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[kxn]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=534</guid>
		<description><![CDATA[前几天重温康神的 FreeBSD 广告片脚本时…… 发信人: kxn (进入全面灌水状态), 信区: FreeBSD 标 题: [闲聊] FreeBSD 广告片脚本 发信站: BBS 水木清华站 (Mon Jan 28 19:20:09 2002) 作者：kxn@SMTH 时间: 不明 地点：不明 (一开始镜头里一片黑暗， 忽然远处轰隆一声，地道门被打开了 一束光线射进地道 几个人影在门口晃动， 是几个背着包，手持 鹤嘴锄，头戴矿灯的考古人员） (镜头切换，考古人员在地下室内四处翻找，给考古人员 A 拿着烟灰缸一个特写） 考古人员 A(自言自语): 这个烟灰缸怕不得有 100 年历史了？ （突然考古人员 A的动作停止了，对其他人做出“嘘”的动作， 这时背景声放大，出现微微的咯～咯声音，考古人员们四处环视开始寻找） 考古人员 B(忽然招手，用嗓子里的声气说）: hi , come and see (众人跟进，镜头也跟进，B 揭开一块覆盖布, 下面是一台脏兮兮的 PC, 机箱盖歪着放在上面，软驱光驱地方都空着东东，屏幕上没有图像 只有硬盘灯偶尔闪一下，B 碰了一下看不出键来的键盘， [...]]]></description>
			<content:encoded><![CDATA[<p>前几天重温康神的 <a href="http://www.newsmth.net/bbsanc.php?path=%2Fgroups%2Fcomp.faq%2FFreeBSD%2Fdiscuss%2Fwater%2Fad4freebsd">FreeBSD 广告片脚本</a>时……</p>
<blockquote><p>发信人: kxn (进入全面灌水状态), 信区: FreeBSD<br />
标  题: [闲聊] FreeBSD 广告片脚本<br />
发信站: BBS 水木清华站 (Mon Jan 28 19:20:09 2002)</p>
<p>作者：kxn@SMTH</p>
<p>时间: 不明<br />
地点：不明</p>
<p>(一开始镜头里一片黑暗， 忽然远处轰隆一声，地道门被打开了<br />
一束光线射进地道 几个人影在门口晃动， 是几个背着包，手持<br />
鹤嘴锄，头戴矿灯的考古人员）</p>
<p>(镜头切换，考古人员在地下室内四处翻找，给考古人员 A 拿着烟灰缸一个特写）</p>
<p>考古人员 A(自言自语): 这个烟灰缸怕不得有 100 年历史了？</p>
<p>（突然考古人员 A的动作停止了，对其他人做出“嘘”的动作，<br />
这时背景声放大，出现微微的咯～咯声音，考古人员们四处环视开始寻找）</p>
<p>考古人员 B(忽然招手，用嗓子里的声气说）: hi , come and see</p>
<p>(众人跟进，镜头也跟进，B 揭开一块覆盖布, 下面是一台脏兮兮的 PC,<br />
机箱盖歪着放在上面，软驱光驱地方都空着东东，屏幕上没有图像<br />
只有硬盘灯偶尔闪一下，B 碰了一下看不出键来的键盘， 于是屏幕一闪<br />
出现下面的字样)</p>
<p>FreeBSD/i386 (utopia.net) on ttyv0</p>
<p>Login:root<br />
password:</p>
<p>[root@utopia$] uptime<br />
7:12PM  up 365000 days,  9:35, 1 user, load averages: 0.08, 0.05, 0.06<br />
[root@utopia$] <span style="text-decoration:blink; background-color:#88F;">_</span></p>
<p>(此时音乐响起, 一群考古人员脸露微笑，不住点头，同时镜头拉远<br />
屏幕上出现 FreeBSD 的字样和 daemon 图案，<br />
下面是 FreeBSD , Rock-stable Unix OS 字样<br />
同时画外音说这句话)</p>
<p>完</p>
<p>faint, 我好像太无聊乐</p>
<p>to huxw: 这就是你要我写的东西，我写乐，hoho</p>
<p>&#8211;</p>
<p>※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.164.206]</p></blockquote>
<p>我突然想到一个问题，怎么一直有电？</p>
<p>然后发现后面回复的人七年前就想到过这个问题了……</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/534/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>sort&#8230;</title>
		<link>http://blog.wuxinan.net/archives/532</link>
		<comments>http://blog.wuxinan.net/archives/532#comments</comments>
		<pubDate>Mon, 10 Aug 2009 04:35:48 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[lang:en]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=532</guid>
		<description><![CDATA[I recently noticed CentOS 5.3&#8242;s sort is way slower than Ubuntu 9.04&#8242;s. Apparently the i18n patch used in coreutils-5.97 CentOS rpm is a performance killer: $ LANG=C time -p sort --buffer-size=128M -n -k1 -k2 test.info &#62; /dev/null real 92.58 user 86.04 sys 6.52 $ time -p sort --buffer-size=128M -n -k1 -k2 test.info &#62; /dev/null real [...]]]></description>
			<content:encoded><![CDATA[<p>I recently noticed CentOS 5.3&#8242;s <code>sort</code> is way slower than Ubuntu 9.04&#8242;s. Apparently the i18n patch used in coreutils-5.97 CentOS rpm is a performance killer:</p>
<pre>$ LANG=C time -p sort --buffer-size=128M -n -k1 -k2 test.info &gt; /dev/null
real 92.58
user 86.04
sys 6.52
$ time -p sort --buffer-size=128M -n -k1 -k2 test.info &gt; /dev/null
real 463.04
user 456.01
sys 6.64</pre>
<p>P.S. <code>grep</code> and other locale sensitive utilities have similar issue.</p>
<p>BTW, if your disk is slow, <code>--buffer-size</code> is a parameter you might want to play with to optimize performance. By default <code>sort</code> uses very conservative buffer size while your seemingly used memory is actually just used for cache. [<a href="http://www.mail-archive.com/bug-coreutils@gnu.org/msg16953.html">ref</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/532/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>上班时间图</title>
		<link>http://blog.wuxinan.net/archives/529</link>
		<comments>http://blog.wuxinan.net/archives/529#comments</comments>
		<pubDate>Tue, 07 Jul 2009 05:08:03 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[gps]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=529</guid>
		<description><![CDATA[我对老板说，最近上班越来越迟了。 老板说，没发现啊。 于是我写了个脚本画了个图…… 纵轴零点是面试的时候老板告诉我的标准上班时间。数据源：车载 GPS 自动 tracklog。]]></description>
			<content:encoded><![CDATA[<p>我对老板说，最近上班越来越迟了。</p>
<p>老板说，没发现啊。</p>
<p>于是我写了个脚本画了个图……</p>
<p><img title="ooo" src="http://blog.wuxinan.net/wp-content/uploads/2009/07/ooo.png" alt="ooo" width="478" height="330" /></p>
<p>纵轴零点是面试的时候老板告诉我的标准上班时间。数据源：车载 GPS 自动 tracklog。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/529/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>写博客有益身心健康</title>
		<link>http://blog.wuxinan.net/archives/525</link>
		<comments>http://blog.wuxinan.net/archives/525#comments</comments>
		<pubDate>Mon, 22 Jun 2009 00:06:57 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Study]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[delphij]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[louis]]></category>
		<category><![CDATA[myspace]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=525</guid>
		<description><![CDATA[几个月前看到一篇论文，大致是说写博客有益身心健康，Discovery 有个评论。博客和日记的功能有些类似之处，而日记的心理学作用研究由来已久，所以关于博客的心理学影响也不是什么新鲜研究。尽管如此，博客的公开化以及交互功能还是比日记要高出一个层次，所以我相信写博客比写日记（或限制访问的博客）应该是更有益于身心健康一些。写博客满足人的表达欲，有利于理清思路、消除孤独，并更有效的和朋友建立联系。 这篇论文所调查的人群是 Myspace 的一些人。在社交网络快速发展的今天，代沟也有了新的含义：我们常常以一个人在 Myspace 还是在 Facebook 更活跃来判断其属于“老人”还是“年轻人”。这篇论文的取样“N = 134, mean age 24.5 years”使得有人怀疑其取样的典型性。这是一个很有趣的怀疑，因为在很多研究中，取样的 bias 或者不正确的数据分析方法都有可能会倒置结果，但身在庐山中的研究工作者却不一定会意识到这一点。 一个例子是，很多微软的程序都会问你是否允许他们收集数据以便更好的改进产品，而这个反馈正是开发者决定工具条按钮顺序等一系列用户界面设计问题的重要依据。大神 delphij 曾提到，这个流程有问题，因为一开始的取样就是非常 bias 的，愿意被收集数据的用户是有一定特点的，比如心态比较开放、机器上没有敏感数据（不在大公司工作）。同样的，在软件开发中，用户反馈呼声最高的功能并不一定是最需要的功能，因为愿意参与反馈的用户群很小，并不一定代表整体利益。 现在很多领域的理工背景越来越重，强调纯粹的数学模型成为了一种趋势。几个月前，谷歌首席视觉设计师 Douglas Bowman 因不满公司痴迷数据而离职，他在博客中写道： Yes, it’s true that a team at Google couldn’t decide between two blues, so they’re testing 41 shades between each blue to see which one performs better. I had [...]]]></description>
			<content:encoded><![CDATA[<p>几个月前看到一篇<a href="http://dx.doi.org/10.1089/cpb.2007.9930">论文</a>，大致是说写博客有益身心健康，Discovery 有个<a href="http://dsc.discovery.com/news/2008/03/03/blogging-social-health.html">评论</a>。博客和日记的功能有些类似之处，而日记的心理学作用研究由来已久，所以关于博客的心理学影响也不是什么新鲜研究。尽管如此，博客的公开化以及交互功能还是比日记要高出一个层次，所以我相信写博客比写日记（或限制访问的博客）应该是更有益于身心健康一些。写博客满足人的表达欲，有利于理清思路、消除孤独，并更有效的和朋友建立联系。</p>
<p>这篇论文所调查的人群是 Myspace 的一些人。在社交网络快速发展的今天，代沟也有了新的含义：我们常常以一个人在 Myspace 还是在 Facebook 更活跃来判断其属于“老人”还是“年轻人”。这篇论文的取样“<em>N</em> = 134, mean age 24.5 years”使得有人怀疑其取样的典型性。这是一个很有趣的怀疑，因为在很多研究中，取样的 bias 或者不正确的数据分析方法都有可能会倒置结果，但身在庐山中的研究工作者却不一定会意识到这一点。</p>
<p>一个例子是，很多微软的程序都会问你是否允许他们收集数据以便更好的改进产品，而这个反馈正是开发者决定工具条按钮顺序等一系列用户界面设计问题的重要依据。大神 <a href="http://blog.delphij.net/">delphij</a> 曾提到，这个流程有问题，因为一开始的取样就是非常 bias 的，愿意被收集数据的用户是有一定特点的，比如心态比较开放、机器上没有敏感数据（不在大公司工作）。同样的，在软件开发中，用户反馈呼声最高的功能并不一定是最需要的功能，因为愿意参与反馈的用户群很小，并不一定代表整体利益。</p>
<p>现在很多领域的理工背景越来越重，强调纯粹的数学模型成为了一种趋势。几个月前，谷歌首席视觉设计师 Douglas Bowman 因不满公司痴迷数据而离职，他在博客中<a href="http://stopdesign.com/archive/2009/03/20/goodbye-google.html">写道</a>：</p>
<blockquote><p>Yes, it’s true that a team at Google couldn’t decide between two blues, so they’re testing 41 shades between each blue to see which one performs better. I had a recent debate over whether a border should be 3, 4 or 5 pixels wide, and was asked to prove my case. I can’t operate in an environment like that. I’ve grown tired of debating such minuscule design decisions. There are more exciting design problems in this world to tackle.</p></blockquote>
<p>我认为，这是一个很有意义的提醒。数字是会骗人的，解释其含义需要谨慎再谨慎。</p>
<p>因为类似的原因，总有人认为心理学全是骗人的。Sheldon 在 <a href="http://en.wikipedia.org/wiki/List_of_The_Big_Bang_Theory_episodes#Season_2:_2008-2009">TBBT S2E13</a> 中提到：“The social sciences are largely hokum.”不过，在大爆炸宇宙学也<a href="http://songshuhui.net/archives/15383.html">逐渐成为定量科学</a>的今天，心理学依靠 fMRI 等也早已成为了一门可靠的科学。<a href="http://blog.wuxinan.net/archives/tag/louis">路易</a>在物理学界打拼多年后涉足（物理）教育心理学，发现人思考量子力学和经典力学的时候 fMRI 很不一样。hmm&#8230; 不知道是不是骗人的，不过路易认为生物学和心理学的联姻将会像化学和生物学结婚生出了分子生物学一样伟大。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/525/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Google PR 更新</title>
		<link>http://blog.wuxinan.net/archives/527</link>
		<comments>http://blog.wuxinan.net/archives/527#comments</comments>
		<pubDate>Fri, 29 May 2009 05:08:14 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=527</guid>
		<description><![CDATA[6]]></description>
			<content:encoded><![CDATA[<p>6</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/527/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>1000+</title>
		<link>http://blog.wuxinan.net/archives/526</link>
		<comments>http://blog.wuxinan.net/archives/526#comments</comments>
		<pubDate>Tue, 28 Apr 2009 07:07:56 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=526</guid>
		<description><![CDATA[Re: Live.com 还有，%s permalink 换了，导致 rss reader 里面像洪水一样刷出几十屏的 %s。Alpha 对此评论说：“Live space 隔个一年半载就来这么一遭” 还不到半载，又来一遭。记一下。 Fishy: &#8220;这个部门怎么还活着&#8221; Broom: &#8220;最讨厌的是它还是一波一波的抽风&#8221;]]></description>
			<content:encoded><![CDATA[<p>Re: <a href="http://blog.wuxinan.net/archives/473">Live.com</a></p>
<blockquote><p>还有，%s permalink 换了，导致 rss reader 里面像洪水一样刷出几十屏的 %s。Alpha 对此评论说：“Live space 隔个一年半载就来这么一遭”</p></blockquote>
<p>还不到半载，又来一遭。记一下。</p>
<p><a href="http://wang.yuxuan.org/blog/">Fishy</a>: &#8220;这个部门怎么还活着&#8221;</p>
<p><a href="http://b2.broom9.com/">Broom</a>: &#8220;最讨厌的是它还是一波一波的抽风&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/526/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>纪念一个 Bug</title>
		<link>http://blog.wuxinan.net/archives/522</link>
		<comments>http://blog.wuxinan.net/archives/522#comments</comments>
		<pubDate>Sun, 29 Mar 2009 08:13:27 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[bbs]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=522</guid>
		<description><![CDATA[长期上水木的人可能知道一个 bug，有些 id 如果打完整可以 u 到，但是却不能空格补全。这个 bug 在 2001 年前就存在（之前没有 cvs 可查），2004 年末就被发现而且有了补丁，补丁注释写道：“这个bug导致的问题是使用smthbbs的站上有大概1/374的id是不可以通过id补全看到的”。2005 年又有人深入的研究了这个问题并且独立给出了一模一样的补丁（dvlt @ newsmth）。但是出于种种原因，这个补丁直到最近才递交进 svn。Bug 存在近 10 年之久，修正耗时 5 年，而补丁实际上只是增加 2 个字符，真是叹为观止。 类似的事情其实也不少，比如，libid3tag 不支持重写改变了长度的 id3v2 [1]；又比如，断词换行大战。 [1] libid3tag-0.15-1b (2004), file.c:594: /* hard general case: rewrite entire file */ /* &#8230; */ 画外音：点点点……（实际上修正这个问题的补丁早已在网络上流传四年之久）]]></description>
			<content:encoded><![CDATA[<p>长期上水木的人可能知道一个 bug，有些 id 如果打完整可以 u 到，但是却不能空格补全。这个 bug 在 2001 年前就存在（之前没有 cvs 可查），2004 年末就被发现而且有了补丁，补丁注释写道：“这个bug导致的问题是使用smthbbs的站上有大概1/374的id是不可以通过id补全看到的”。2005 年又有人深入的研究了这个问题并且独立给出了一模一样的补丁（dvlt @ newsmth）。但是出于种种原因，这个补丁直到最近才<a href="http://trac.kcn.cn/kbs/changeset/10502">递交</a>进 svn。Bug 存在近 10 年之久，修正耗时 5 年，而补丁实际上只是增加 2 个字符，真是叹为观止。</p>
<p>类似的事情其实也不少，比如，libid3tag 不支持重写改变了长度的 id3v2 [1]；又比如，<a href="http://blog.wuxinan.net/archives/265">断词换行大战</a>。</p>
<p>[1] libid3tag-0.15-1b (2004), file.c:594:</p>
<blockquote><p>/* hard general case: rewrite entire file */</p>
<p>/* &#8230; */</p></blockquote>
<p>画外音：点点点……（实际上修正这个问题的补丁早已在网络上流传四年之久）</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/522/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>偏振太阳镜</title>
		<link>http://blog.wuxinan.net/archives/520</link>
		<comments>http://blog.wuxinan.net/archives/520#comments</comments>
		<pubDate>Sun, 22 Mar 2009 23:45:38 +0000</pubDate>
		<dc:creator>atppp</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[polarization]]></category>
		<category><![CDATA[sunglasses]]></category>

		<guid isPermaLink="false">http://blog.wuxinan.net/?p=520</guid>
		<description><![CDATA[偏振太阳镜里有块竖偏振片，用来滤掉横偏振光。大部分 LCD 发出来的光是 45 度偏振的，比如 iPhone 横握和纵握都可以透过偏振太阳镜看。但是也有设计的比较糟糕的 LCD 的，比如有人这样抱怨道： &#8230; my car stereo LCD is unreadable with my sunglasses on. I have to tilt my head 45 degrees to read it, and it makes me look like a dog that just heard a weird noise. &#8230; “像狗一样”，回想起来我戴着偏振太阳镜就常常会那样，有的超市刷卡机也有这个问题。最近发现有些 Canon 新相机的 LCD 是竖偏振，有人说，这不挺好吗，透过偏振太阳镜看恰好是最佳角度。可是如果要竖握相机拍照，我就啥都看不见了！真不知道 Canon 怎么搞的，甚至有的相机是用的横偏振 LCD（Canon SD [...]]]></description>
			<content:encoded><![CDATA[<p>偏振太阳镜里有块竖偏振片，用来滤掉横偏振光。大部分 LCD 发出来的光是 45 度偏振的，比如 iPhone 横握和纵握都可以透过偏振太阳镜看。但是也有设计的比较糟糕的 LCD 的，比如有人<a href="http://ask.metafilter.com/42401/Why-are-my-sunglasses-polarized-diagonally#651787">这样</a>抱怨道：</p>
<blockquote><p>&#8230; my car stereo LCD is unreadable with my sunglasses on. I have to tilt my head 45 degrees to read it, and it makes me look like a dog that just heard a weird noise. &#8230;</p></blockquote>
<p>“像狗一样”，回想起来我戴着偏振太阳镜就常常会那样，有的超市刷卡机也有这个问题。最近发现有些 Canon 新相机的 LCD 是竖偏振，有人说，这不挺好吗，透过偏振太阳镜看恰好是最佳角度。可是如果要竖握相机拍照，我就啥都看不见了！真不知道 Canon 怎么搞的，甚至有的相机是用的横偏振 LCD（Canon SD 系列里，至少两款是竖偏振，一款横偏振）。</p>
<p>由于偏振太阳镜的推广，可能会在阳光下使用的设备其 LCD 的偏振性已经成为用户体验中很重要的一个部分。45 度偏振算是一个标准的解决方案，不过很多新的设备已经开始用非偏振 LCD 了，保证戴偏振太阳镜怎么歪头都一样，比如 Garmin 比较新的几款 GPS。</p>
<p><span style="text-decoration: underline;">背景：偏振</span></p>
<p>想象你手里有一根绳子，绳子另一头穿过一片竖篱笆栏拴在树上。如果你上下晃动绳子，绳子上的波可以顺利传播到树上，篱笆像“透明”的一样；而如果你左右晃动绳子，绳子就会撞到篱笆的竹子，波也就只能传播到篱笆为止。这两种波，我们分别称作竖偏振波和横偏振波，描述的是绳子的振动方向。光是一种电磁波，也有类似的性质，而这个篱笆所对应的，就是一种叫做偏振片的东西。竖偏振光可以顺利通过竖偏振片，而横偏振光则不行；如果把这个竖偏振片转 90 度成为横偏振片，则情况会反过来。</p>
<p>大部分自然光，比如阳光，是非偏振光，也就是说没有一个特定的偏振方向，经过任意角度的偏振片之后都会损失掉一半的光。而自然光在水面反射之后，则会大部分变成横偏振光。如果透过一个竖偏振片去看波光粼粼的水面，则会<a href="http://en.wikipedia.org/wiki/Photographic_filter#Polarizer">发现</a>波光几乎完全消失。同样的在玻璃上反射的光线也会有类似的性质，摄影时转动镜头前的偏振片，可以用来强调玻璃上反射的景物，或者强调透过玻璃看到的景物。偏振太阳镜，基本就是墨镜 + 竖偏振片。因为地面和前车玻璃反射的阳光基本是横偏振，几乎都被偏振太阳镜滤掉，所以通常推荐在开车的时候使用这类墨镜。</p>
<p>Wikipedia <a href="http://en.wikipedia.org/wiki/Polarization#Technology">说</a>：</p>
<blockquote><p>Technological applications of polarization are extremely widespread. Perhaps the most commonly encountered examples are liquid crystal displays and polarized sunglasses.</p></blockquote>
<p>果然，我一篇文章就涉及到了这俩。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wuxinan.net/archives/520/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

