<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
  <title>good good study, day day up</title>
  <link>http://aleung.blogbus.com</link>
  <description><![CDATA[aleung的学习笔记, aleung的idea]]></description>
  <generator> by blogbus.com </generator>
  <lastBuildDate>Sat, 05 Dec 2009 02:21:38 +0800</lastBuildDate>
  <image>
									<url>http://public.blogbus.com/profile/6/0/2/3206/avatar_3206_96.jpg</url>
									<title>good good study, day day up</title>
									<link>http://aleung.blogbus.com</link>
								</image>  <item>
   <title>重拾 “清风白云艳阳天” blog</title>
   <description><![CDATA[<p>&ldquo;清风白云艳阳天: 摄影-旅行-生活&rdquo; 是我的第一个blog，大概是在2000/2001年左右开始的吧，搬过好多次家，最初放在公司的服务器上，又放过在绿野上，后来放在朋友的服务器。2006年朋友的服务器关了，这个blog就没有着落了。随着对摄影的兴趣减淡，也一直没有提起心情来把它重新建起来。反倒是后来的 &ldquo;Goog good study day day up&rdquo; 断断续续的一直坚持了下来。</p>
<p>Blogbus用了这么久，感觉还不错，就在这里再安一个家吧。不一定会更新得多勤快，反正想写就写，想贴就贴。及时性是肯定不能保证的了，我好多照片都是等一年后才扫描出来，再不知道等多久才会处理好。</p>
<p>下面是链接，建议用RSS订阅，免得每次打开都看不到新内容 :)</p>
<h1 class="blogName"><a title="http://sunnywind.blogbus.com" href="http://sunnywind.blogbus.com/">SunnyDay &amp; FeelingWind</a></h1><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/43389442.html">擦镜子不是简单的任务</a> 2009-08-02</div><div><a href="http://aleung.blogbus.com/logs/34961339.html">防身自卫术</a> 2009-02-10</div><div><a href="http://aleung.blogbus.com/logs/10111129.html">公交查询网站</a> 2007-10-01</div><div><a href="/logs/40985133.html">8.27km 48'57&quot;</a> 2009-06-14</div><div><a href="/logs/29066197.html">在线备份</a> 2008-09-15</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F52804160.html&title=%E9%87%8D%E6%8B%BE+%E2%80%9C%E6%B8%85%E9%A3%8E%E7%99%BD%E4%BA%91%E8%89%B3%E9%98%B3%E5%A4%A9%E2%80%9D+blog">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/52804160.html</link>
   <author>aleung</author>
   <pubDate>Thu, 03 Dec 2009 00:05:20 +0800</pubDate>
  </item>
  <item>
   <title>The world can change in a day</title>
   <description><![CDATA[<p>8 November 1989</p>
<p><a href="http://www.bababian.com/phoinfo/9578CEE8C2383B74375E4E0C40CB8EB4DT" target="_blank">
</a></p>
<p><a href="http://www.bababian.com/phoinfo/9578CEE8C2383B74375E4E0C40CB8EB4DT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091103/9578CEE8C2383B74375E4E0C40CB8EB4_800.jpg" alt="" /></a></p>
<p>9 November 1989, the wall fell. </p>
<p>栢林人民踴躍飜墻的塲景：</p>
<p>
<p><a href="http://www.bababian.com/phoinfo/CE5297E3308E7584FCD30F2B2E063B1CDT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091103/CE5297E3308E7584FCD30F2B2E063B1C.jpg" alt="" /></a></p>
</p>
<p>当年栢林是被这样的高墻分隔的：</p>
<p>
<p><a href="http://www.bababian.com/phoinfo/3B666ADB403159B4CDA7891A546A80E9DT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091103/3B666ADB403159B4CDA7891A546A80E9_800.jpg" alt="" /></a></p>
</p>
<p>如今残存的墙上的壁画，反映了当年飜墻的种种途径：</p>
<p>
<p><a href="http://www.bababian.com/phoinfo/553B6F08561392D0A96026AC1F793581DT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091103/553B6F08561392D0A96026AC1F793581_800.jpg" alt="" /></a></p>
<p><a href="http://www.bababian.com/phoinfo/5B63D6517BA472FF5E9F5F7556DA4D4BDT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091103/5B63D6517BA472FF5E9F5F7556DA4D4B_800.jpg" alt="" /></a></p>
</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/43825464.html">为了支持推动社会公平正义，我给公盟捐款</a> 2009-08-10</div><div><a href="http://aleung.blogbus.com/logs/41459072.html">抗议有关部门封锁Google网络服务</a> 2009-06-24</div><div><a href="http://aleung.blogbus.com/logs/40462746.html">噤声</a> 2009-06-04</div><div><a href="http://aleung.blogbus.com/logs/36237163.html">地铁安全知多D</a> 2009-03-07</div><div><a href="http://aleung.blogbus.com/logs/34641072.html">有没有更无聊的？</a> 2009-02-05</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F50015144.html&title=The+world+can+change+in+a+day">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/50015144.html</link>
   <author>aleung</author>
   <pubDate>Tue, 03 Nov 2009 00:39:49 +0800</pubDate>
  </item>
  <item>
   <title>Android软件：Wallpaper Label</title>
   <description><![CDATA[<p><a href="http://www.bababian.com/phoinfo/C870642A2D16445D5DD70D07ED9B85DCDT" target="_blank"><img style="border: NaNpx solid black; float: right; margin: 5px;" src="http://photo2.bababian.com/upload1/20091031/C870642A2D16445D5DD70D07ED9B85DC.jpg" alt="" /></a><a href="http://www.bababian.com/phoinfo/36D2EE718E1AFC581FCD7EDAF99A0E7DDT" target="_blank"><img style="float: right; margin: 5px;" src="http://photo2.bababian.com/upload1/20091031/36D2EE718E1AFC581FCD7EDAF99A0E7D.jpg" alt="" /></a></p>
<p>Android与IPhone类似，都是有多个桌面屏幕，用手指划一下就可以左右切换屏幕。Android缺省设置只有3屏，但一些mod可以修改屏幕个数，例如设置为5屏。</p>
<p>在IPhone上，屏幕的数量以及当前处于第几个屏幕是通过界面中下方的小圆点来指示的。但在Android上就没有类似的指示，有时候用户不知道现在正显示的是哪一屏，应该往左还是往右翻屏。</p>
<p>我开发的这个软件 Wallpaper Label 可以为Android手机的桌面每个屏幕添加一个文字标签，这样就很清晰的知道当前打开的是哪一屏了。标签位于在屏幕下方的正中位置，并不会影响图标的显示。</p>
<p>Wallpaper Label 软件的另外一个作用是设置Android手机的桌面墙纸。Android系统自带的墙纸设置工具需要把图片剪切为4:3比例，无法设置其他比例的墙纸。4:3比例对于缺省的3屏是比较合适的，但当桌面屏幕数量更多的时候，这个比例就显得太窄了，左右切换屏幕时墙纸的画面基本没有多少移动。用 Home Screen Label 来设置墙纸没有4:3比例的限制，可以设置宽屏墙纸。</p>
<p>用作墙纸的图片文件需要存放在SD卡的wallpapers目录中。软件也提供了保存当前墙纸的功能，可将现在正使用的墙纸保存到SD卡上。</p>
<p>这是5个屏幕合成的效果图，可以看出宽屏墙纸画面效果：</p>
<p><a href="http://www.bababian.com/phoinfo/693DF2E21666A9723F6BA581F4289C5ADT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091031/693DF2E21666A9723F6BA581F4289C5A_500.jpg" alt="" /></a></p>
<p>软件在Android Market上下载安装，搜索&ldquo;Wallpaper Label&rdquo;就可以找到。也可以用条码扫描器扫描这个二维码进行安装：
</p>
<p><a href="http://www.bababian.com/phoinfo/C402D51461C5E09B16FD050D9A1395D7DT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20091031/C402D51461C5E09B16FD050D9A1395D7.jpg" alt="" /></a></p>
<p>&nbsp;</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/40981175.html">《Android手机G1入手感受》更新</a> 2009-06-14</div><div><a href="http://aleung.blogbus.com/logs/40616070.html">HereIm 1.4.2 beta</a> 2009-06-07</div><div><a href="http://aleung.blogbus.com/logs/38155944.html">无意插柳</a> 2009-04-20</div><div><a href="http://aleung.blogbus.com/logs/38092084.html">Better My Location, 准确定位当前位置</a> 2009-04-18</div><div><a href="http://aleung.blogbus.com/logs/37558170.html">写了个软件，期望可解决Android中地图偏移的问题</a> 2009-04-07</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F49542469.html&title=Android%E8%BD%AF%E4%BB%B6%EF%BC%9AWallpaper+Label">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/49542469.html</link>
   <author>aleung</author>
   <pubDate>Sat, 31 Oct 2009 01:14:39 +0800</pubDate>
  </item>
  <item>
   <title>WebLogic的classloading</title>
   <description><![CDATA[<p>一直对classloading的了解不是很清晰，每次遇到涉及WebLogic的classpath设置、classloading问题debug时都要去网上搜索资料。现在把资料整理下来。
</p>
<p><a href="http://www.bababian.com/phoinfo/76F5903D1007108FB5872779F1122FCFDT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20090927/76F5903D1007108FB5872779F1122FCF.jpg" alt="" /></a></p>
<p>&nbsp;</p>
<h3><br /></h3>
<h3>各层级classloader加载的类的范围</h3>
<p>Bootstrap classloader</p>
<ul>
<li>Core Java libraries (&lt;jre&gt;/lib)</li>
</ul>
<p>Extension classloader</p>
<ul>
<li>JRE extensions directory (&lt;jre&gt;/lib/ext)</li>
</ul>
<p>WebLogic Server system classloader</p>
<ul>
<li>Classpath</li>
<li>&lt;domain&gt;/lib</li>
</ul>
<p>Filtering classloader</p>
<ul>
<li>nothing</li>
</ul>
<p>Application classloader</p>
<ul>
<li>EJB JARs</li>
<li>APP-INF/lib</li>
<li>APP-INF/classes</li>
<li>Manifest Class-Path in EJB JARs</li>
</ul>
<p>Web application classloader</p>
<ul>
<li>WAR</li>
<li>Manifest Class-Path in WAR</li>
</ul>
<p>&nbsp;</p>
<h3>类加载的优先级</h3>
<p>每个classloader在要加载一个class之前都会先请求它的上层classloader，如此逐级传递。因此效果就是越上层的classloader优先级越高，一个class如果在上层classloader能加载到，就不会让下面的classloader加载。</p>
<p>但是web application classloader是个特例，通过在weblogic.xml中配置&lt;prefer-web-inf-classes&gt;，可以让web application classloader优先在自己war范围内加载类，找不到的类才会请求上层classloader。</p>
<p>Filtering classloader是个特殊的classloader，它并不会加载任何类，而是起到控制类加载优先级的作用。在weblogic-application.xml中配置&lt;prefer-application-packages&gt;，可以限制对于指定的类不再向上层classloader请求，也就是限制在EAR的范围之内加载。</p>
<p>&nbsp;</p>
<h3>其他</h3>
<p>以上仅仅描述了缺省情况下classloading的行为。WebLogic对于一个application (EAR)内的classloader的层次结构是可以自定义的。Shared library和optional package，也会影响到classloading。另外，resource adapter (RAR)也有独立的classloader。还有其他的一些细节，需要查阅<a href="http://download.oracle.com/docs/cd/E13222_01/wls/docs100/programming/classloading.html" target="_blank">Understanding WebLogic Server Application Classloading</a>。</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/46607279.html">How to setup hg (Mercurial) web access</a> 2009-09-16</div><div><a href="http://aleung.blogbus.com/logs/32090434.html">Java的volatile关键字的作用</a> 2008-12-03</div><div><a href="http://aleung.blogbus.com/logs/25354824.html">Line break in MANIFEST class-path</a> 2008-06-18</div><div><a href="http://aleung.blogbus.com/logs/6301154.html">How to customize Eclipse</a> 2007-07-03</div><div><a href="http://aleung.blogbus.com/logs/4900374.html">ClearCaseWeb</a> 2007-03-30</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F47194806.html&title=WebLogic%E7%9A%84classloading">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/47194806.html</link>
   <author>aleung</author>
   <pubDate>Sat, 26 Sep 2009 23:23:26 +0800</pubDate>
  </item>
  <item>
   <title>准备10km跑</title>
   <description><![CDATA[<p>一直都想体验一下正式的长跑活动，也可以给自己跑步一个动力。得知10月24日在广州大学城<a href="https://www.nike.com.cn/humanrace2009/index.html" target="_blank">Nike举办10公里跑</a>活动，就报名参加了。</p>
<p>上个月感觉腰椎的问题有一点点要复发的迹象，就停止了跑步。接下来9月份都在北京出差，跑鞋也没有带过来。算下来一个月没有跑步了。离活动只剩1个月了，怎么也得训练一下，于是今天去迪卡侬把T-shirt、短裤、袜子、跑鞋买了一套回来，去附近的公园跑步。</p>
<p>开始从住处到公园的500多米没有记录时间，从公园里跑了4.5km平均步速6'03"/km，看来这样的状态10km一小时都进不了 :( 不过速度慢点就慢点，这次我没有速度目标，只是体验一下。我至今还只是跑过两次十公里，平常都是跑5公里距离。但最担心的还是膝痛的问题，最近几个月来每次跑完步左膝外侧都有疼痛的现象。</p>
<p>&nbsp;</p>
<p>&nbsp;</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/40985133.html">8.27km 48'57&quot;</a> 2009-06-14</div><div><a href="http://aleung.blogbus.com/logs/39632425.html">5km, 29:17</a> 2009-05-18</div><div><a href="http://aleung.blogbus.com/logs/39543672.html">6km 38:50</a> 2009-05-17</div><div><a href="/logs/43469449.html">Outlook2007日历的改进</a> 2009-08-03</div><div><a href="/logs/40981175.html">《Android手机G1入手感受》更新</a> 2009-06-14</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F47079557.html&title=%E5%87%86%E5%A4%8710km%E8%B7%91">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/47079557.html</link>
   <author>aleung</author>
   <pubDate>Thu, 24 Sep 2009 21:21:01 +0800</pubDate>
  </item>
  <item>
   <title>How to setup hg (Mercurial) web access</title>
   <description><![CDATA[<p>(Platform: Windows Vista)</p>
<ol>
<li>Mercurial is already installed. 
</li>
<li>Install Apache. 
</li>
<li>Download mercurial source package to get the file hgwebdir.cgi. This file 
isn't included in the Windows binary package. 
</li>
<li>Copy hgwebdir.cgi into Apache's cgi-bin folder and rename to hgwebdir.py 
</li>
<li>Create a file named hgweb.config in the same folder. Config the name and the 
path of the&nbsp;repositories in this file. 
</li>
<li>Install python 2.5 and make sure to check the option to register&nbsp;it as the 
default handler of .py file.<br />The hgwebdir.cgi from Mercurial 1.x&nbsp;requires 
python 2.5. Error "Invalid Magic Number" will be got when running on other 
version python. 
</li>
<li>Extract the file library.zip in Mercurial installation folder into a 
directory. Use 7zip to unzip, other zip tools might fail. 
</li>
<li>In Mercurial installation directory there is a folder&nbsp;named 
Templates.&nbsp;Move&nbsp;it into the&nbsp;library folder. 
</li>
<li>Edit hgwebdir.py, add following&nbsp;lines to add the library folder&nbsp;into python 
library path:<br /><span style="font-family: Consolas;">import sys<br />sys.path.insert(0, 
"C:\Program Files\Mercurial\library")</span> 
</li>
<li>Start apache, try to access in browser<br /><a href="http://localhost/cgi-bin/hgwebdir.py">http://localhost/cgi-bin/hgwebdir.py</a> 

</li>
<li>If the repositories index page can shown, that's fine. If got 500 internal 
error, check apache error log.<br />If the error information is like this:<br /><em>The 
system cannot find the path specified.&nbsp; : couldn't create child process: 720003: 
hgwebdir.py</em><br />it means Apache can't locate the python executer. 
<ol>
<li>Edit Apache's config file httpd.conf,&nbsp;uncomment 
the&nbsp;line:<br /><span style="font-family: Consolas;">ScriptInterpreterSource registry</span><br />This will enable Apache to skip 
the script's shebang line and use default registered handler.</li>
</ol>
</li>
<li>When the index is successfully shown in browser, edit the .hg\hgrc file in 
each repositories to add following lines. It will enable push to repository by 
web access (default is read only) and enable push by http (default is requiring 
ssl).<br /><span style="font-family: Consolas;">[web]<br />allow_push = *<br />push_ssl = false</span> 
</li>
<li>Try to clone a repository by web access and modify something then push back. 
It should be ok. 
</li>
<li>Add a line in Apache http.conf to make the URL more friendly:<br /><span style="font-family: Consolas;">ScriptAliasMatch ^/hg(.*) "C:/Program 
Files/Apache2.2/cgi-bin/hgwebdir.py$1"</span><br />Now the url will be:<br /><a href="http://localhost/hg">http://localhost/hg</a></li>
</ol>
<p>Just record the installation steps in case I need to do it again&nbsp;some time in 
the furture. Hope that&nbsp;I&nbsp;haven't missed any step :)</p>
<p>Reference:</p>
<ul>
<li><a href="http://mercurial.selenic.com/wiki/PublishingRepositories" target="_blank">http://mercurial.selenic.com/wiki/PublishingRepositories</a></li>
<li><a href="http://mercurial.selenic.com/wiki/HgWebDirStepByStep">http://mercurial.selenic.com/wiki/HgWebDirStepByStep</a></li>
<li><a href="http://www.imladris.com/Scripts/PythonForWindows.html">http://www.imladris.com/Scripts/PythonForWindows.html</a></li>
</ul><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/47194806.html">WebLogic的classloading</a> 2009-09-26</div><div><a href="http://aleung.blogbus.com/logs/32090434.html">Java的volatile关键字的作用</a> 2008-12-03</div><div><a href="http://aleung.blogbus.com/logs/25354824.html">Line break in MANIFEST class-path</a> 2008-06-18</div><div><a href="http://aleung.blogbus.com/logs/6301154.html">How to customize Eclipse</a> 2007-07-03</div><div><a href="http://aleung.blogbus.com/logs/4900374.html">ClearCaseWeb</a> 2007-03-30</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F46607279.html&title=How+to+setup+hg+%28Mercurial%29+web+access">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/46607279.html</link>
   <author>aleung</author>
   <pubDate>Wed, 16 Sep 2009 19:08:55 +0800</pubDate>
  </item>
  <item>
   <title>当体检结果为阳性</title>
   <description><![CDATA[<p>假设你在体检后，发现体检报告里面有一个项目的检验结果为阳性，你去问医生：这是什么意思？医生一面阴沉的告诉你：这个检查项目结果为阳性，说明你有可能患上了XXX病，虽然这个病不算常见，根据统计数据，患病率约为十万分之一，但是，患上的后果非常严重，基本上是不治之症。啊？！你抱着侥幸的心理再问医生：没理由啊？我身体好好的，有没有可能是检查出错了啊？医生一面严肃的说：不排除这样的可能性，但是，这个检查的可靠性是相当高的，达到99.9%。</p>
<p>&nbsp;</p>
<p><em>思考时间：根据这个检查结果，真正患上此病的可能性是多大？</em></p>
<p><em><br /></em></p>
<p>&nbsp;</p>
<p><em><br /></em></p>
<p>你犹如五雷轰顶一般：99.9%？！那意味着我有99.9%的可能性得了这个病！天哪，怎么六合彩就轮不到我啊，我居然成为了那十万分之一。该怎么办呢？等等，先别丧气，问清楚医生那检查99.9%的可靠性是什么回事。医生告诉你，那就是说，1000个患者进行这项检查，999个为阳性，1000个正常人进行这项检查，只有一个为阳性（误检）。嗯，这是相当准确的检查。</p>
<p>&nbsp;</p>
<p><em>思考时间：医生解释之后，是否改变了你的结论？真正患上此病的可能性是多大？</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><em><br /></em></p>
<p>假如上面的对话真的发生了，估计有不少人立马就感觉浑身不对劲了&mdash;&mdash;没病都吓出病了。其实并不需要恐慌，根据上面给出的数据，检验出现阳性后真正患病的几率其实只有1%。问题出在这个"准确性99.9%"的定义上，这并不是说1000个检出阳性的人有999个可以确诊患病，而是确诊患病的1000个人里面有999个可以检出阳性。咋一看，这两者好像一样，只是表述不同而已，其实差别大了。</p>
<p>用这个表格看就清晰了：</p>
<p>
<table class="MsoNormalTable" style="width: 100%;" border="1" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="border: medium none #f0f0f0; padding: 0.75pt; background-color: transparent;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><strong><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;</span></strong></p>
</td>
<td style="border: medium none #f0f0f0; padding: 0.75pt; background: #76923c none repeat scroll 0% 0%;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><strong><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;</span></strong><strong><span style="font-size: 7pt; font-family: 宋体;">健康</span></strong><strong></strong></p>
</td>
<td style="border: medium none #f0f0f0; padding: 0.75pt; background: #d99594 none repeat scroll 0% 0%;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><strong><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;</span></strong><strong><span style="font-size: 7pt; font-family: 宋体;">患者</span></strong><strong></strong></p>
</td>
</tr>
<tr>
<td style="border: medium none #f0f0f0; padding: 0.75pt; background-color: transparent;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><strong><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;</span></strong></p>
</td>
<td style="border: medium none #f0f0f0; padding: 0.75pt; background: #76923c none repeat scroll 0% 0%;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><span style="font-size: 7pt; color: white; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;99.999%</span></p>
</td>
<td style="border: medium none #f0f0f0; padding: 0.75pt; background: #d99594 none repeat scroll 0% 0%;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><span style="font-size: 7pt; color: white; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;0.001%</span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background-color: transparent; border: 1pt medium 1pt 1pt inset none outset inset #f0f0f0;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><strong><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;</span></strong><strong><span style="font-size: 7pt; font-family: 宋体;">阳性</span></strong><strong><span style="font-size: 7pt; font-family: 宋体;">(+)</span></strong><strong></strong></p>
</td>
<td style="padding: 0.75pt; background: #76923c none repeat scroll 0% 0%; border: 1pt medium inset none outset #f0f0f0;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;0.1% 
&times; <strong><span style="color: white;">99.999%</span></strong> = 
0.00099999</span></p>
</td>
<td style="padding: 0.75pt; background: #d99594 none repeat scroll 0% 0%; border: 1pt 1pt 1pt medium inset outset outset none #f0f0f0;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;99.9% 
&times; <strong><span style="color: white;">0.001%</span></strong> = 
0.00000999</span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background-color: transparent; border: 1pt medium 1pt 1pt inset none outset inset #f0f0f0;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><strong><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;</span></strong><strong><span style="font-size: 7pt; font-family: 宋体;">阴性</span></strong><strong><span style="font-size: 7pt; font-family: 宋体;">(-)</span></strong><strong></strong></p>
</td>
<td style="padding: 0.75pt; background: #76923c none repeat scroll 0% 0%; border: 1pt medium inset none #f0f0f0;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;99.9% 
&times; <strong><span style="color: white;">99.999%</span></strong> = 
0.99899001</span></p>
</td>
<td style="padding: 0.75pt; background: #d99594 none repeat scroll 0% 0%; border: 1pt 1pt 1pt medium inset outset outset none #f0f0f0;">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal;"><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif','sans-serif';">&nbsp;0.1% 
&times; <strong><span style="color: white;">0.001%</span></strong> = 
0.00000001</span></p>
</td>
</tr>
</tbody>
</table>
</p>
<p>表中列出健康但结果为阳性（误检），健康并且结果阴性，患病并且结果为阳性，患病结果为阴性（漏检）这四种情况发生的概率。现在检查结果为阳性这一条件已经确定下来，就看阳性那行，健康与患病的概率之比为0.0099999:0.00000999，也就是大约100:1，真正得病的可能性比1%还小一点点。</p>
<p>上面的东西其实是根据《环球科学》杂志2009-8的文章《被误读的患病率和死亡率》中的一个例子改写的，我觉得类似的与统计、概率相关的误区在日常生活中见得不少，很有必要学习一下。最后总结一下：</p>
<ul>
<li>体检很重要，但是也不要自己吓自己 
</li>
<li>概率的知识很有用，实际结果往往与直觉不一致 
</li>
<li>统计调查的结果不一定靠谱，即使数据是真实的，也要看解释是否合理，是否符合逻辑。那种数字很有迷惑性。至于误导的原因，有些是因为说的人自己也没搞清楚，有些是故意忽悠人</li>
</ul>
<p>&nbsp;</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="/logs/40462746.html">噤声</a> 2009-06-04</div><div><a href="/logs/39687957.html">Google Chrome 启动时crash的解决方法</a> 2009-05-21</div><div><a href="/logs/29066197.html">在线备份</a> 2008-09-15</div><div><a href="/logs/23087706.html">How to allow remote application setting display to the SUSE linux desktop</a> 2008-06-17</div><div><a href="/logs/4712392.html">了解JVM的内存管理与垃圾回收</a> 2007-03-07</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F44359200.html&title=%E5%BD%93%E4%BD%93%E6%A3%80%E7%BB%93%E6%9E%9C%E4%B8%BA%E9%98%B3%E6%80%A7">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/44359200.html</link>
   <author>aleung</author>
   <pubDate>Sun, 16 Aug 2009 23:42:59 +0800</pubDate>
  </item>
  <item>
   <title>为了支持推动社会公平正义，我给公盟捐款</title>
   <description><![CDATA[<h4>公盟是什么</h4>
<p>首先，这是在一些资料中对公盟的介绍：<em>公盟是一家以个案援助和法律研究为依托致力于推动国家的民主法治进程和实现社会公平正义的公益性民间组织，坚持&ldquo;法治、理性、建设和非暴力&rdquo;的原则对具有制度变革意义的典型个案进行法律援助、实证调察和法律研究，倡导公民行动，维护公平正义，推动社会进步</em>。它的口号是&ldquo;<strong>为了公共利益</strong>&rdquo;。</p>
<p>自2003年以来，公盟做了很多的工作，包括参与代理维权官司，撰写研究报告，举办研讨会等。为了让大家直观的知道公盟是一个怎么的组织，我在这里仅列出公盟参与的众所周知的案件，其余的可见参考资料：</p>
<ul>
<li>在<strong>孙志刚案</strong>发生后，推动废除收容遣送制度； 
</li>
<li>为&ldquo;<strong>黑砖窑</strong>&rdquo;受害人提供法律援助； 
</li>
<li>为<strong>三聚氰胺毒奶粉事件</strong>受害者提供法律援助； 
</li>
<li>为<strong>邓玉娇</strong>提供法律援助；</li>
</ul>
<p>其实&ldquo;公盟&rdquo;是以下两个机构的简称：</p>
<ol>
<li>北京公盟咨询有限责任公司 
</li>
<li>公盟法律研究中心</li>
</ol>
<p>公盟法律研究中心是北京公盟咨询有限责任公司内部的一个机构。其实，就是一套班子两个牌子。为什么要这样？因为中国对于民间组织(NGO)的严格限制，使得民间机构的注册几乎是不可能的，要合法运作，只能作为企业在工商部门注册。但实际上公盟是一个非盈利组织，主要靠捐款资助来支持运作。</p>
<p>许志永，北京大学法学博士，是公盟的创立者之一。</p>
<p>&nbsp;</p>
<h4>公盟发生了什么事情</h4>
<p>&nbsp;</p>
<ul>
<li>7月14日，北京市地方税务局、国家税务局以&ldquo;偷税24.8万&rdquo;(数字未核实)为由，将对公盟进行行政处罚，合共149万元。 
</li>
<li>7月17日，北京市民政局以&ldquo;未经登记擅自开展活动&rdquo;为由，宣布取缔&ldquo;公盟法律研究&rdquo;中心。 
</li>
<li>7月29日，公盟负责人许志永及财务负责人庄璐被警方以&ldquo;涉嫌偷税&rdquo;名义刑事拘留。</li>
</ul>
<p>尽管公盟否认偷税并正通过法规规定途径进行申辩，但另一方面公盟接受社会捐款以缴交罚款。这是公盟的公告：<a href="https://docs.google.com/View?id=dgrg4q87_34cfrdmxct">https://docs.google.com/View?id=dgrg4q87_34cfrdmxct</a></p>
<p>&nbsp;</p>
<h4>我为什么捐款</h4>
<p>我给公盟捐了50元。
</p>
<p><a href="http://www.bababian.com/phoinfo/D836FA2C0A915659F89910D3E83CCAE7DT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20090810/D836FA2C0A915659F89910D3E83CCAE7_500.jpg" alt="" /></a></p>
<p>&nbsp;</p>
<p>别的不说，就看公盟帮助毒奶粉受害者（结石宝宝）打官司，就应该支持。由于监管的失效甚至是包庇，这样丧尽天良残害儿童的事情发生了，并且影响如此严重，但是受害者依从法律途径来维护权益却被压制。类似毒奶粉这样的事件，以后依然很可能发生，而且受害者很可能就是我们。如果我们现在不支持公盟这样的维护公民大众利益的公益组织，如何期待在我们受害的时候有人能够帮助我们维护自己的权益？</p>
<p>我对未来是相当悲观的，看不到公平与正义。但还是有公盟以及类似的一些人以理性的方式做着些实实在在的事情，眼前总算不是一片漆黑。公盟所坚持的法治、理性、建设和非暴力的原则也是我们的社会所需要的。</p>
<p>至于捐款交付款是否有用，是否应该将捐款用来交罚款，我不知道。就像很多人觉得的那样，&ldquo;偷税&rdquo;很可能只是一个台面上的讲法。但既然公盟一直以来都是期望在规则内推动社会的进步，那它遇到的问题也得在规则内解决，现在这是一个解决的尝试。就我个人来说，捐的钱不多，即使白白被政府吞了，也不会很失落。</p>
<p>最后，无非就是一句：捐了钱，让我觉得良心过得去。</p>
<p>&nbsp;</p>
<h4>参考资料</h4>
<ul>
<li><a href="https://docs.google.com/View?id=dgrg4q87_34cfrdmxct" target="_blank">公盟受捐公告</a> 

</li>
<li>维基百科：<a href="http://zh.wikipedia.org/wiki/%E5%85%AC%E7%9B%9F" target="_blank">公盟</a></li>
</ul>
<p>&nbsp;</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/50015144.html">The world can change in a day</a> 2009-11-03</div><div><a href="http://aleung.blogbus.com/logs/41459072.html">抗议有关部门封锁Google网络服务</a> 2009-06-24</div><div><a href="http://aleung.blogbus.com/logs/40462746.html">噤声</a> 2009-06-04</div><div><a href="http://aleung.blogbus.com/logs/36237163.html">地铁安全知多D</a> 2009-03-07</div><div><a href="http://aleung.blogbus.com/logs/34641072.html">有没有更无聊的？</a> 2009-02-05</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F43825464.html&title=%E4%B8%BA%E4%BA%86%E6%94%AF%E6%8C%81%E6%8E%A8%E5%8A%A8%E7%A4%BE%E4%BC%9A%E5%85%AC%E5%B9%B3%E6%AD%A3%E4%B9%89%EF%BC%8C%E6%88%91%E7%BB%99%E5%85%AC%E7%9B%9F%E6%8D%90%E6%AC%BE">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/43825464.html</link>
   <author>aleung</author>
   <pubDate>Mon, 10 Aug 2009 00:49:24 +0800</pubDate>
  </item>
  <item>
   <title>Outlook2007日历的改进</title>
   <description><![CDATA[<p><a href="http://www.bababian.com/phoinfo/2A6C873735F74CCE3F9E4249C4E4754BDT" target="_blank"><img style="border:none;" src="http://photo2.bababian.com/upload1/20090803/2A6C873735F74CCE3F9E4249C4E4754B.jpg" alt="" align="right" /></a></p>
<p>之前在<a href="http://aleung.blogbus.com/logs/36648190.html">《为什么不能合在一起》</a>一文中，我提到期望的时间管理系统是这样的：</p>
<blockquote style="margin-right: 0px;" dir="ltr">
<p>在展现上，能够将一天里已经安排好具体时间的事件，和没有安排具体时间，但是需要在这天内做（根据Start date和Due 
date）的任务显示在同一界面上，什么时候该做什么就一目了然了。在操作上，将一个任务拖放到日历中，或者输入开始结束时间，就能为任务安排计划的执行时间，并且显示在日历中。</p>
</blockquote>
<p>最近升级到Outlook 
2007，发现它的日历界面基本上就是跟我想的差不多了。任务、事件的都可以通过鼠标拖放来建立：把邮件或者任务拖到具体的日期时间上，就创建了事件；把邮件或事件拖到任务窗格，就创建了任务。下面的任务窗格，会按天显示当天开始或到期的任务，这样一天该做什么事情，无论是否安排了具体时间，都在一个纵列上显示出来了。如果要推迟一个任务，非常简单，把它拖到另外一天就可以了。</p>
<p>Outlook 
2007还有一个改进，就是可以分类的个数不再是有限的几个，可以任意创建，一个项目也不再限于一个分类，而是可以标注多个分类，因此这个分类其实就是tag了。每个分类设成不同的颜色，很醒目。</p>
<p>Outlook 2007给了我不少惊喜的，其实我想的Microsoft早就做到了。</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="/logs/38424815.html">楼宇废水再用系统</a> 2009-04-24</div><div><a href="/logs/32090434.html">Java的volatile关键字的作用</a> 2008-12-03</div><div><a href="/logs/20986059.html">关注汶川地震——给民间救援力量一些支持</a> 2008-05-16</div><div><a href="/logs/5662051.html">第一次打110</a> 2007-06-05</div><div><a href="/logs/5545100.html">终于找到了最合适的文件同步/备份工具</a> 2007-05-27</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F43469449.html&title=Outlook2007%E6%97%A5%E5%8E%86%E7%9A%84%E6%94%B9%E8%BF%9B">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/43469449.html</link>
   <author>aleung</author>
   <pubDate>Mon, 03 Aug 2009 23:18:39 +0800</pubDate>
  </item>
  <item>
   <title>擦镜子不是简单的任务</title>
   <description><![CDATA[<p>镜子使用一段时间后，就会蒙上一层雾气，还有手指印或者水痕（浴室里的镜子），不像刚买回来那样明亮。怎么擦干净它呢？这可不是一件简单的任务，至少对我而言。</p>
<p>最初，我是用最常规的方法，用水浸湿抹布来擦，这样擦完之后手指印依然还在，因为手指印是油脂，并且留下一道道水痕，比擦之前更难看。后来，我看到公共场所的清洁工人擦玻璃是用洗涤剂抹湿玻璃，然后用橡皮刮把水刮干净，一点水痕都不会留，于是我也买了一个橡皮刮回来，但发现效果并不是那么理想，还是有水痕残留的，不知道是我技术不够还是刮子质量不好，反正我把它退掉了&mdash;&mdash;宜家的东西可以退货，不错。我又试了用玻璃水，使用说明上说：喷射到表面上，用干布轻轻擦净即可，不留水痕，不挂尘。但实践证明广告都是骗人的。喷上去，一擦，哇，真的很干净，可是过一会再看，抹过之处全是整片的抹痕，特别是从反光的角度上看，镜子变成花面猫一样。而且，抹布还会在镜面上留下很多细小的纤维。</p>
<p>后来，请钟点工来搞卫生的时候，才学到艺，她是用报纸来擦的。她擦过的镜子真是跟刚买回来的差不多的干净明亮，上面没有一点痕迹。不过，别看人家干得利索，自己试的时候就不是那么回事了。经过反复尝试，总算总结出一点经验：</p>
<ol>
<li>玻璃水不能喷太多，如果太湿了就会留下痕迹。</li>
<li>报纸是效果最好的，我试过布、纸巾、洗手间用的擦手纸，都不如报纸。一方面是报纸即使湿了也不会留下纤维，另外去痕的效果很好，不知道什么原因。</li>
<li>使劲擦。</li>
</ol>
<p>另外，如果有些东西粘在玻璃表面上面擦不掉，可以用刀片慢慢平推将其刮起，我是安装衣柜的时候看到师傅这样把贴在上面的不干胶清除掉的，完全不留痕迹。一般刀片（如美工刀）的钢硬度不够玻璃高，因此玻璃是不会被刮花的。</p>
<p>&nbsp;</p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://aleung.blogbus.com/logs/52804160.html">重拾 “清风白云艳阳天” blog</a> 2009-12-03</div><div><a href="http://aleung.blogbus.com/logs/34961339.html">防身自卫术</a> 2009-02-10</div><div><a href="http://aleung.blogbus.com/logs/10111129.html">公交查询网站</a> 2007-10-01</div><div><a href="/logs/40616070.html">HereIm 1.4.2 beta</a> 2009-06-07</div><div><a href="/logs/20685204.html">How does Google Map My Location work?</a> 2008-05-11</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Faleung.blogbus.com%2Flogs%2F43389442.html&title=%E6%93%A6%E9%95%9C%E5%AD%90%E4%B8%8D%E6%98%AF%E7%AE%80%E5%8D%95%E7%9A%84%E4%BB%BB%E5%8A%A1">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://aleung.blogbus.com/logs/43389442.html</link>
   <author>aleung</author>
   <pubDate>Sun, 02 Aug 2009 17:02:32 +0800</pubDate>
  </item>
 </channel>
</rss>
