<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>歪歪猪作坊</title>
    <description></description>
    <link>https://googol4u.github.io/</link>
    <atom:link href="https://googol4u.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 06 Aug 2020 14:42:42 +0000</pubDate>
    <lastBuildDate>Thu, 06 Aug 2020 14:42:42 +0000</lastBuildDate>
    <generator>Jekyll v3.8.7-CVE.2020.14001</generator>
    
      <item>
        <title>Windows下如何批量更改文件名</title>
        <description>题目应该是普通用户Windows下如何不写脚本、程序，批量地更改文件名。借助了excel，但是尽量不要写VBA，因为VBA对于普通用户还是有一定的难度。

&lt;h2 id=&quot;获取文件名&quot;&gt;获取文件名&lt;/h2&gt;

尽量不使用Excel的VBA函数，如何能把一个目录的所有文件的文件名写到Excel里面？

首先，打开目录。

&lt;img src=&quot;/assets/post-images/1534181813236.png&quot; alt=&quot;1534181813236&quot; /&gt;

按Ctrl-C或者右键菜单复制：

&lt;img src=&quot;/assets/post-images/1534181929459.png&quot; alt=&quot;1534181929459&quot; /&gt;

打开浏览器，将复制的路径粘贴到地址栏并打回车：

&lt;img src=&quot;/assets/post-images/1534182042675.png&quot; alt=&quot;1534182042675&quot; /&gt;

出现文件夹内容：

&lt;img src=&quot;/assets/post-images/1534182103786.png&quot; alt=&quot;1534182103786&quot; /&gt;

按CTRL-A全选，再CTRL-C或者右键菜单复制。

&lt;img src=&quot;/assets/post-images/1534182226272.png&quot; alt=&quot;1534182226272&quot; /&gt;

再打开Excel，按CTRL-V粘贴进去。

&lt;img src=&quot;/assets/post-images/1534182310594.png&quot; alt=&quot;1534182310594&quot; /&gt;

删除第一、二行，再调整好宽度，顺序等。

&lt;img src=&quot;/assets/post-images/1534182392091.png&quot; alt=&quot;1534182392091&quot; /&gt;

至此，文件名导入EXCEL的工作完成

&lt;h2 id=&quot;生成目标文件名&quot;&gt;生成目标文件名&lt;/h2&gt;

一般这种批量更改的情况下，目标文件名都有规律的，无非就是对原来的文件名进行某种更改，比如在这个例子中，可以将DSC替换成PIC等，或者按照一定的排序，用序号方式对文件进行命名，例如：PIC001，PIC002等。这些都需要使用到一点EXCEL的公式。

&lt;h3 id=&quot;替换原文件名中的部分字符&quot;&gt;替换原文件名中的部分字符&lt;/h3&gt;

在这里，将用到EXCEL公式里面的SUBSTITUE这个函数。具体用法是：

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;=SUBSTITUTE(单元格, &quot;旧文本&quot;, &quot;新文本&quot;)
&lt;/code&gt;&lt;/pre&gt;

我们选中，D2单元格，在里面打入：

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;=SUBSTITUTE(A2, &quot;DSC_&quot;, &quot;PIC&quot;)
&lt;/code&gt;&lt;/pre&gt;

回车：

&lt;img src=&quot;/assets/post-images/1534183229290.png&quot; alt=&quot;1534183229290&quot; /&gt;

然后选中D2单元格，把光标移到右下角，光标变成实心十字时，双击，这样整列到最后一行都会应用这个公式。

&lt;img src=&quot;/assets/post-images/1534183386533.png&quot; alt=&quot;1534183386533&quot; /&gt;

这个是替换原文件字符的做法。

&lt;h3 id=&quot;用序号对文件进行命名&quot;&gt;用序号对文件进行命名&lt;/h3&gt;

在这里会用到EXCEL的几个公式的函数：

&lt;ul&gt;
  &lt;li&gt;行号，表示目前是EXCEL表的第几行：&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;ROW()
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;取单元格或者字符串结束部分，因为文件的扩展名有可能不同，我们要保留原来的扩展名：&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;RIGHT(单元格，长度)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;替换单元格或者字符串的中间一段字符：&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;REPLACE(单元格, 开始位置, 结束位置, &quot;字符串&quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;格式化数字的输出，比如我们想文件名呈现0001、0002这样的编号，而不是1、2这样。&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;text(数值, 格式)
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;将将各个单元格或者字符串连接起来。&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-vbscript&quot;&gt;CONCATENATE(文本1, 文本2, ... )
&lt;/code&gt;&lt;/pre&gt;

</description>
        <pubDate>Tue, 14 Aug 2018 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2018/08/14/windows-batch-rename/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2018/08/14/windows-batch-rename/</guid>
        
        <category>windows</category>
        
        
        <category>技术</category>
        
      </item>
    
      <item>
        <title>测试</title>
        <description>&lt;img src=&quot;/assets/post-images/2014-05-05-bb7e673c-7441-477e-df28-828edd56b3da.png&quot; alt=&quot;image&quot; /&gt;
测试一下这个工具。
</description>
        <pubDate>Mon, 05 May 2014 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2014/05/05/test/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2014/05/05/test/</guid>
        
        
      </item>
    
      <item>
        <title>如何从blogger迁移到GitHub pages</title>
        <description>博客已经没有以前那么热门了，但是博客这种形式还是有存在的价值，确实像它原来的名字Web Logger所表示那样，它带有一种类似日记的功能，多年后回去翻看的时候，可以回想起自己当年在做什么。

Blogger的服务一直被屏蔽，当年选择它的原因是因为它支持生成全静态的网页，并可以FTP到一部服务上，这样可以把服务放在墙内，但后来Google宣布不支持这个功能了。所以一直没找到好的发布blog的方式。直到发现了GitHub pages，也是通过生成全静态的方式发布，比Blogger更好的地方是还有版本管理功能。暂时没有被墙。

找了个还不算丑的模板后，终于设置好了自己的GitHub Pages了，剩下的问题就如何把Blogger上的内容迁移过来了。研究了一下，发现Google takeout有包括Blogger的内容，试了一下，发现导出的是一个atom文件，内容和标签都保留了，但是图片没有，希望Google能改进一下把图片也导出就好多了。因为之前是全静态发布的，所以图片的目录我有备份，而且是和正文的链接对应的。

迁移的过程主要解决以下三个问题：

&lt;ol&gt;
  &lt;li&gt;读取和分析Blogger takeout出来的atom文件
 这个部分主要是借助Rome这个Java库。难点在于Google Takeout把博客的一些设置也做成了atom的entry，所以要区分entry的内容是设置还是正文，这个主要是通过entry下的category的一个特殊schema来区分的。除此之外，正文的标签也是保存在entry的category下，也必须读出来再转换成markdown的标签。&lt;br /&gt;
 模板部分的category是这个样子：
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; &amp;lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/blogger/2008/kind#template'/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    配置部分的category是这样的：
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; &amp;lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/blogger/2008/kind#settings'/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    帖子部分的category是这样的：
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; &amp;lt;category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/blogger/2008/kind#post'/&amp;gt;
 &amp;lt;category scheme='http://www.blogger.com/atom/ns#' term='STL'/&amp;gt;
 &amp;lt;category scheme='http://www.blogger.com/atom/ns#' term='VC'/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;将正文内容转换成markdown文件&lt;br /&gt;
这个部分主要是借助remark这个Java库。atom导出的正文是一个HTML文件，remark的作用就是将HTML转换成markdown格式 ，会自动转换一些格式，例如图片或者超链接。&lt;/li&gt;
  &lt;li&gt;其他的一些转换问题&lt;br /&gt;
由于原来的博客是有域名的，导出的正文的图片链接是加上了域名的，所以必须将域名替换成Github pages的域名。另外，Jekyll对于post的格式有一定的要求，在前面会加上一段yaml格式的标识，来加入分类、标签、摘要等一些信息，其中摘要要求是纯文本的，所以从正文取的摘要需要进行一些处理。图片链接的转换，是直接用查找替换完成的，post的格式使用了模板的方式实现，正文摘取了纯文本的摘要用了jsoup这个库。如果要更加完美的话，其实还需要对正文中指向自己域的一些链接也做转换，不过时间关系，就没有去写这部分的代码了。如果要对链接进行完美的替换，就要用到完整的jsoup的功能，个人非常喜欢jsoup这个html的parser，它支持用jquery的select语法来选择一个页面的元素，这对于抓取一些结构化的网页非常有帮助，例如：抓取x-art网站上列出的所有视频的详细资料。&lt;/li&gt;
&lt;/ol&gt;

好吧代码在这里：

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-java&quot; data-lang=&quot;java&quot;&gt;	&lt;span class=&quot;kn&quot;&gt;package&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.io.File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.io.FileInputStream&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.io.FileWriter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.io.IOException&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.net.URL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.nio.MappedByteBuffer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.nio.channels.FileChannel&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.nio.charset.Charset&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.text.SimpleDateFormat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.util.Iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;java.util.List&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.jsoup.Jsoup&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.jsoup.nodes.Document&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.jsoup.nodes.Element&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;org.jsoup.select.Elements&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;

	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.overzealous.remark.Remark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.sun.syndication.feed.synd.SyndCategoryImpl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.sun.syndication.feed.synd.SyndContentImpl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.sun.syndication.feed.synd.SyndEntry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.sun.syndication.feed.synd.SyndFeed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.sun.syndication.io.SyndFeedInput&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;com.sun.syndication.io.XmlReader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;

	&lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;TestMd&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;

		&lt;span class=&quot;cm&quot;&gt;/**
		 * @param args
		 */&lt;/span&gt;
		&lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;readFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;throws&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;IOException&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
			  &lt;span class=&quot;nc&quot;&gt;FileInputStream&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;stream&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;FileInputStream&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
			  &lt;span class=&quot;k&quot;&gt;try&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
			    &lt;span class=&quot;nc&quot;&gt;FileChannel&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;stream&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getChannel&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
			    &lt;span class=&quot;nc&quot;&gt;MappedByteBuffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;bb&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;FileChannel&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;MapMode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;READ_ONLY&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
			    &lt;span class=&quot;cm&quot;&gt;/* Instead of using default, pass in a decoder. */&lt;/span&gt;
			    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Charset&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;forName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;decode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bb&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
			  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
			  &lt;span class=&quot;k&quot;&gt;finally&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
			    &lt;span class=&quot;n&quot;&gt;stream&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
			  &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
			&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
		&lt;span class=&quot;kd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[]&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;args&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
			&lt;span class=&quot;c1&quot;&gt;// TODO Auto-generated method stub&lt;/span&gt;
			&lt;span class=&quot;nc&quot;&gt;XmlReader&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;reader&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dstPath&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;./_post/&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;srcImg&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;http://blog.yypig.net/uploaded_images/&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dstImg&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;/images/&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
	
			&lt;span class=&quot;k&quot;&gt;try&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
				&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;template&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;readFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;post.tpl&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;reader&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;XmlReader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;blog-05-05-2013.xml&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;));&lt;/span&gt;
				&lt;span class=&quot;nc&quot;&gt;SyndFeed&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;feed&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;SyndFeedInput&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;build&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
				&lt;span class=&quot;nc&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Feed Link: &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;feed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getLink&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
				&lt;span class=&quot;nc&quot;&gt;StringBuffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tags&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;StringBuffer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
				
				&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Iterator&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;feed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getEntries&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hasNext&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
					&lt;span class=&quot;nc&quot;&gt;SyndEntry&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;SyndEntry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
					&lt;span class=&quot;nc&quot;&gt;List&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;SyndCategoryImpl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;list&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getCategories&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
					&lt;span class=&quot;kt&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;isPost&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
					&lt;span class=&quot;kt&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;isFirst&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
					&lt;span class=&quot;n&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;setLength&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
					&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;SyndCategoryImpl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hasNext&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();){&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;SyndCategoryImpl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
						&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getTaxonomyUri&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;#kind&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)){&lt;/span&gt;
							&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;#post&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)){&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;isPost&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;k&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getTaxonomyUri&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;ns#&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)){&lt;/span&gt;
							&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;isFirst&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;isFirst&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
							&lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;, &quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						
					&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
					&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;isPost&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getTitle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
						&lt;span class=&quot;c1&quot;&gt;//title = title.replace(&quot;[&quot;, &quot;(&quot;);&lt;/span&gt;
						&lt;span class=&quot;c1&quot;&gt;//title = title.replace(&quot;]&quot;, &quot;)&quot;);&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tags1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;published&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;SimpleDateFormat&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sdf1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;SimpleDateFormat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;yyyy-MM-dd&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;publishDate&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sdf1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getPublishedDate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
						&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getLink&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()!=&lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getLink&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
							&lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;url&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getLink&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dstPath&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getPath&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
							&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;index&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;lastIndexOf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
	
							&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()+&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;.md&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
							&lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;substring&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)+&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;.md&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getParent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()+&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;separator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;publishDate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;-&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;published&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;SimpleDateFormat&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sdf&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;SimpleDateFormat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;yyyy/MM/&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dstPath&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sdf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getPublishedDate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;())+&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;publishDate&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;-&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Integer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;toHexString&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getTitle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hashCode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;())+&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;.md&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;published&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;kt&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hasPost&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;content1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
						&lt;span class=&quot;nc&quot;&gt;List&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;SyndContentImpl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;list1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;entry&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getContents&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
						&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;SyndContentImpl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;list1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hasNext&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();){&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;SyndContentImpl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;content&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
							&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getType&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;equals&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;html&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)){&lt;/span&gt;
								&lt;span class=&quot;c1&quot;&gt;//StringWriter writer = new StringWriter();&lt;/span&gt;
								&lt;span class=&quot;nc&quot;&gt;Remark&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;remark&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Remark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;content1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;remark&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;convertFragment&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getValue&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;());&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;content1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;content1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;srcImg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dstImg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
								&lt;span class=&quot;nc&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;content1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Jsoup&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getValue&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()).&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
								&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&amp;gt;&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;120&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
									&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;substring&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;120&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
									&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;\\&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;\\\\&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
									&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;\&quot;&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;\\\&quot;&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
								&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
	&lt;span class=&quot;c1&quot;&gt;//							Document doc = Jsoup.parse(content.getValue());&lt;/span&gt;
	&lt;span class=&quot;c1&quot;&gt;//							Elements elements = doc.select(&quot;img&quot;);&lt;/span&gt;
	&lt;span class=&quot;c1&quot;&gt;//							for (Iterator&amp;lt;Element&amp;gt; it2 = elements.iterator();it2.hasNext();){&lt;/span&gt;
	&lt;span class=&quot;c1&quot;&gt;//								Element element = it2.next();&lt;/span&gt;
	&lt;span class=&quot;c1&quot;&gt;//								System.out.println(element.attr(&quot;src&quot;));&lt;/span&gt;
	&lt;span class=&quot;c1&quot;&gt;//							}&lt;/span&gt;
								&lt;span class=&quot;c1&quot;&gt;//content1 = writer.toString();&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;hasPost&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
								&lt;span class=&quot;k&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
						&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hasPost&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;String&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;template&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;;&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;${title}&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;${published}&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;published&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;${tags}&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tags1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;${summary}&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;${content}&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;content1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;newFile&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fileName&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(!&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;newFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getParentFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;exists&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()){&lt;/span&gt;
								&lt;span class=&quot;n&quot;&gt;newFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;getParentFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;mkdirs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
							&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
							&lt;span class=&quot;nc&quot;&gt;FileWriter&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;writer2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;FileWriter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;newFile&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;writer2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;finalContent&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;);&lt;/span&gt;
							&lt;span class=&quot;n&quot;&gt;writer2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
						&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
					&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
				&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
			&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
			&lt;span class=&quot;k&quot;&gt;catch&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Exception&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
				&lt;span class=&quot;n&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;printStackTrace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
			&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
			&lt;span class=&quot;k&quot;&gt;finally&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
				&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reader&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
					&lt;span class=&quot;k&quot;&gt;try&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
						&lt;span class=&quot;n&quot;&gt;reader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
					&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
					&lt;span class=&quot;k&quot;&gt;catch&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;Exception&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;e1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;){&lt;/span&gt;
						&lt;span class=&quot;n&quot;&gt;e1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;printStackTrace&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;();&lt;/span&gt;
					&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;	
				&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
					
			&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
		&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
	
	&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

用到的jar的列表：

rome-1.0.jar&lt;br /&gt;
jdom-1.1.3.jar&lt;br /&gt;
remark-0.9.3.jar&lt;br /&gt;
jsoup-1.6.1.jar&lt;br /&gt;
commons-cli-1.2.jar&lt;br /&gt;
commons-lang3-3.1.jar

</description>
        <pubDate>Sun, 06 Oct 2013 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2013/10/06/how-to-migrate-from-blogger-to-github/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2013/10/06/how-to-migrate-from-blogger-to-github/</guid>
        
        <category>blogger</category>
        
        <category>互联网</category>
        
        <category>github</category>
        
        
        <category>技术</category>
        
      </item>
    
      <item>
        <title>如何快速地拷贝大量内容相近的文件</title>
        <description>这篇文章的标题想了很久，实际上也可以是《如何快速地向远端部署新版本的大应用》，《如何快速地发布新版本的大文件供下载》等等。

起因是因为在阿里云申请了一个服务器，因为在公网，而且有BGP，所以就想把原来提供客户下载版本的服务器从公司移到那边去。原来只有一条ADSL，所以客户下载时，相对于我们是上传，也就只有ADSL上传的512k的速度，而且部分客户用的是非电信的线路，下载时断时续，非常麻烦。公网服务器至少上下行都是2M，效果会好一点。一直以来为了体现我们的高端大气国际化，我们为每个客户都会保留从他们系统上线开始的全部的应用版本，主要也是为了吵架时方便，比如他们说，你们很早以前的版本就有什么什么的功能，为什么现在没有，我们可以拿早期的版本给他们看，说当初你们就没提过这种需求。

这样一来，我们就需要把全部客户，几年迭代更新下来的所有版本的应用，全部都从公司服务器上传到阿里云的服务器，依靠的是一条512k的ADSL线路，全部文件大约有20G，计算了一下，连续不断的传，全速传，至少也需要5天时间吧。对于急性子的处女座，这是不能接受的。

我们这些版本的打包文件都有一个重要的特点，版本与版本之间的变化是很小的，所以想到了之前帮客户做远程数据库备份文件拷贝时用到的一个工具：&lt;a href=&quot;https://code.google.com/p/xdelta/&quot;&gt;Xdelta&lt;/a&gt;。它利用了压缩算法中经常用到的&lt;a href=&quot;http://en.wikipedia.org/wiki/Delta_encoding&quot;&gt;delta encoding&lt;/a&gt; 方法，用于计算两个二进制的内容（可以是文件、视频的帧等）的不同。在我们这个例子中，只需要拿着最初的文件作为蓝本，逐步按时间顺序计算两个两个文件的差异，再把差异文件和最初文件传送到服务器端，再在服务器端恢复出来。所以写了这样一个脚本：

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;  
	&lt;span class=&quot;c&quot;&gt;#!/usr/local/bin/bash&lt;/span&gt;
	
	&lt;span class=&quot;nv&quot;&gt;FILES&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$1&lt;/span&gt;/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;
	&lt;span class=&quot;nv&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0
	&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'#!/usr/local/bin/bash'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; before.sh
	&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'#!/usr/local/bin/bash'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; after.sh
	&lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;f &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$FILES&lt;/span&gt;
	&lt;span class=&quot;k&quot;&gt;do
        	if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$pre&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
        	&lt;span class=&quot;k&quot;&gt;then
                	&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'xdelta delta '&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$pre&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$f&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$count&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'.diff'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;before.sh
                	&lt;span class=&quot;nv&quot;&gt;pre_base&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$pre&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
                	&lt;span class=&quot;nv&quot;&gt;f_base&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$f&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
                	&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'xdelta patch '&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$count&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'.diff'&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$pre_base&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$f_base&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;after.sh
        	&lt;span class=&quot;k&quot;&gt;fi
        	&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;pre&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$f&lt;/span&gt;
        	&lt;span class=&quot;nv&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;expr&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$count&lt;/span&gt; + 1&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
	&lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

根据某个目录下的所有文件，生成两个脚本文件，一个before.sh，一个after.sh，before.sh用于在原来服务器上，生成所有相邻文件的差异文件，after.sh用于在目标服务器上，以第一个文件为基础，根据差异文件，按顺序把所有文件恢复出来。

这样一来，需要传输的文件的大小，缩小到十分之一左右。一天之内就把所有文件都传输到公网服务器上了。

这个方法其实可以应用到很多场景。例如：做Java互联网应用最头疼的事情，应该是新版本的部署，Java应用，通常支撑的jar包的大小，都有几十到上百兆，要么就要把这些支持包做成应用服务器的公共包，但这样一来如果版本升级，或者有多个不同应用使用了不同版本的jar包就非常麻烦。要么每次升级，就要把一个几十到上百兆的war包传到公网上面，对于经常需要升级的应用来说就会非常耗时。使用xdelta，每次就只需传送差异部分，可以节省很多时间。

同样，做ROM、ISO或者游戏类apk发行的厂商，也可以使用这个方法，除了把各个版本的文件放上去，最好也放多一个和上个版本的diff文件，这样大家下载一个很小的diff文件，再patch到原来版本的文件上，就可以得到一个新版本的文件了。对于动辄上百兆的ROM、几百兆apk或者上G的ISO文件来说，可以节省很多带宽和时间。

</description>
        <pubDate>Mon, 30 Sep 2013 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2013/09/30/copy-batch-of-similar-files-quickly/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2013/09/30/copy-batch-of-similar-files-quickly/</guid>
        
        <category>互联网</category>
        
        
        <category>技术</category>
        
      </item>
    
      <item>
        <title>解决PPPoE拨号多个IP地址的问题</title>
        <description>我们的路由是一部FreeBSD的机器，用PPPoE拨号，虽然在ppp.linkdown里面，加入了delete MYADDR的语句，但是似乎不起作用，每次经过长时间运行后，ifconfig tun0总会返回下列的结果：
	tun0: flags=8051&amp;lt;UP,POINTOPOINT,RUNNING,MULTICAST&amp;gt; mtu 1492
        inet 183.5.143.228 –&amp;gt; 183.5.142.1 netmask 0xffffffff
        inet 183.5.131.132 –&amp;gt; 183.5.128.1 netmask 0xffffffff
        inet 118.129.216.62 –&amp;gt; 118.129.216.1 netmask 0xffffffff
        Opened by PID 245

这个似乎会影响MLDonkey判断外网地址，估计因为不知道哪个是真正的外网地址，就选了第一个，但往往第一个其实不是真正的IP。如何判断哪个才是真正的IP呢，很简单，用默认网关，打入netstat -n -r|grep default，显示：
	default            118.129.216.1      UGS         0 16058987   tun0

所以最后的那条记录才是真正的外网IP。按照这个原理，写了下面的脚本并用crontab定期判断并删除那些不是真正IP的条目：

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-sh&quot; data-lang=&quot;sh&quot;&gt;	&lt;span class=&quot;c&quot;&gt;#!/bin/sh&lt;/span&gt;
	
	&lt;span class=&quot;nv&quot;&gt;default_gw&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;netstat &lt;span class=&quot;nt&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-n&lt;/span&gt;|grep default|awk &lt;span class=&quot;s1&quot;&gt;'{print $2}'&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
	&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;default gateway:&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$default_gw&lt;/span&gt;
	
	ifconfig tun0 |sed &lt;span class=&quot;nt&quot;&gt;-n&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;/inet/p&quot;&lt;/span&gt;|awk &lt;span class=&quot;s1&quot;&gt;'{ if ($4!=input) system(&quot;ifconfig tun0 inet delete &quot;$2) }'&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$default_gw&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</description>
        <pubDate>Tue, 14 May 2013 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2013/05/14/tun0/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2013/05/14/tun0/</guid>
        
        <category>FreeBSD</category>
        
        
        <category>技术</category>
        
      </item>
    
      <item>
        <title>树莓派Raspberry Pi上手报告</title>
        <description>&lt;h2 id=&quot;背景&quot;&gt;背景&lt;/h2&gt;

关于&lt;a href=&quot;http://www.raspberrypi.org/&quot;&gt;树莓派&lt;/a&gt;的背景介绍在网上已经很多了，在树莓派的官方网站上也有一个&lt;a href=&quot;http://www.raspberrypi.org/about&quot;&gt;长篇大论&lt;/a&gt;。这里只是简单的列一下：

1、厄普顿（Eben Epton）在2006年已经意识到要为儿童提供一种廉价的计算机，因为他觉得从2000年之后，报读计算机系的优等生无论从数量上还是技术水平上都一年不如一年（the year-on-year decline in the numbers and skills levels of the A Level students applying to read Computer Science in each academic year，貌似这段是请中国人写的，因为除了中国人之外，想不出哪里的人会用read Computer Science来写报读计算机专业）。而90年代的学生大部分都是有经验的编程爱好者（experienced hobbyist programmers）。

2、厄普顿觉得这样的原因在于：家庭PC机过于昂贵，所以父母不肯给小孩在上面进行一些实验。所以他想做一个廉价的，可以和老式计算机一样，一启动就进入编程环境的计算机。（其实我觉得不是过于昂贵，当年的Apple II和中华学习机也是要几千块一台的，真正原因是PC从极客用品变成了一种日常消费品，父母同样不会让你拿家里的冰箱微波炉拆开做实验的）

后来的故事大家也知道了，由于他成立了树莓派基金运作这个事情，宣称要做一个只有25美金的家用电脑，而且体积和信用卡一样大，可以接电视，可以播高清视频，所以一下子吸引了眼球，以至于订购的人刷爆了他的网站。

淘宝上很早就有了，但是有点贵，我也不想断了人家的财路，也不想在这里帮别人做广告，反正最后我是以35美金加中国的17%的增值税加较高的运费（从上海到广州要40块钱）买到的，到手的价格还算合理。订购后2个星期内到货。

&lt;h2 id=&quot;开箱&quot;&gt;开箱&lt;/h2&gt;

整块板卡的做工不错，拿在手上确实觉得很小，SD卡的插槽有点粗糙，见照片。
&lt;img src=&quot;/images/raspberry-pi01.jpg&quot; alt=&quot;raspberry-pi01&quot; /&gt; 
&lt;img src=&quot;/images/raspberry-pi02.jpg&quot; alt=&quot;raspberry-pi02&quot; /&gt;

可能为了节省体积，电路板上没有任何可以用来固定的螺丝孔，所以一定要等有人做出专门的外壳或者专门的架子才能固定，树莓派基金承诺今年夏天会推出外壳。电源接口是microUSB而不是miniUSB，和我的C8500的接口一样，个人感觉如果是miniUSB会通用一点。由于只有两个USB口，但是正常使用除了接键盘鼠标外，大部分人还是需要接多一个USB硬盘的，所以需要配合一个USB HUB来使用，而且这种板卡的USB口的驱动能力不会很强的，所以还必须是有源的USB HUB才能接大点的硬盘。

没有插SD卡，加电时除了电源灯之外，不会有任何的反应，HDMI没有任何输出，树莓派的说明书中提到可以通过串口输入命令，但是它的串口是通过那两排GPIO的脚的其中三个脚印引出的，而且是TTL电平的，必须通过驱动芯片才能和PC机的串口连接。

&lt;h2 id=&quot;准备sd卡&quot;&gt;准备SD卡&lt;/h2&gt;

树莓派的官网提供了三个版本的镜像文件，还有无数第三方的镜像，由于是初次接触，还是用官网的Raspbian版本，因为是基于Debian的，所以Debian的一些命令和配置方法可以用得上。还要下载&lt;a href=&quot;https://launchpad.net/win32-image-writer/0.6/0.6/+download/win32diskimager-binary.zip&quot;&gt;Win32DiskImager&lt;/a&gt;工具，用于在Windows下将下载的IMG文件写入到SD卡中。至于为什么把镜像文件直接拷贝到SD卡中是无效的，一言难尽，就和刻录光碟的ISO镜像要用专门刻录镜像的功能，而不能直接把ISO文件刻录到光碟上的道理是一样的。在这里&lt;a href=&quot;http://files.velocix.com/c1410/images/raspbian/2012-07-15-wheezy-raspbian/2012-07-15-wheezy-raspbian.zip&quot;&gt;下载&lt;/a&gt;文件，然后把读卡器和SD卡插入计算机，运行Win32DiskImager，选择镜像文件和合适的盘符，如果原来机器上插有其他的USB硬盘或者SD卡，建议在做这件事之前全部拔掉，避免发生选错盘符，把整个USB硬盘资料全部洗掉的情况。

&lt;img src=&quot;/images/raspberry-pi03.png&quot; alt=&quot;raspberry-pi03&quot; /&gt;

写入完成后，就可以把SD卡插到树莓派上，把HDMI线、鼠标、键盘、网线全部插上。
&lt;img src=&quot;/images/raspberry-pi04.jpg&quot; alt=&quot;raspberry-pi04&quot; /&gt;

&lt;h2 id=&quot;首次启动&quot;&gt;首次启动&lt;/h2&gt;

加电后，如果电源灯旁边的绿色的灯(OK)会闪动，就说明SD卡是可用的。这时如果HDMI连接好电视了，电视上就会开始出现启动画面了。
&lt;img src=&quot;/images/raspberry-pi05.jpg&quot; alt=&quot;raspberry-pi05&quot; /&gt;

接着是熟悉的Linux启动界面，企鹅被替换成了树莓：
&lt;img src=&quot;/images/raspberry-pi06.jpg&quot; alt=&quot;raspberry-pi06&quot; /&gt;

首次启动将出现系统初始配置的界面，这个界面在也可以在之后的终端窗口中通过sudo raspi-config激活。
&lt;img src=&quot;/images/raspberry-pi07.png&quot; alt=&quot;raspberry-pi07&quot; /&gt;

由于在初始配置的界面上没有看到有网络配置的选项，所以建议在网络环境中一定要有DHCP，也就是能自动获取IP的网络环境。因为Raspbian的各种软件的安装是需要网络连接支持的。需要用到的功能说明如下：

&lt;strong&gt;expand_rootfs&lt;/strong&gt; - 将根分区扩展到整张SD卡，因为整个Image才400多兆，但是现在的SD卡基本都是几个G的，除非SD卡有其他用途，一般建议选择这项，这样可以有足够多的空间来安装各种程序。

&lt;strong&gt;overscan&lt;/strong&gt; - 可以扩充或者缩小屏幕的设置，除非一启动就发现显示的内容能刚好填满整个电视的画面。大部分情况下是不能填满或者超过，如果这样就要enable这个，然后在系统启动之后，更改config.txt中的overscan_left、overscan_right、overscan_top和overscan_bottom的内容，如果显示内容超出屏幕的范围（显示不全），就要设置这些值为正值，如果是1080p，一般设置为48。如果显示的内容不能填满屏幕，则设置这些值为负值，如果是1080p，一般设置为-48。具体可以更加显示的结果，以16为步长进行调整。

&lt;strong&gt;configure_keyboard&lt;/strong&gt; - 这个很重要，前面的屏幕选默认值：Generic 105-key (Intl) PC，但在Keyboard layout:时，显示出来的都是English（UK）的，要选择Other，然后在里面选择English（US），否则会出现键盘的一些符号不对或者对调，比如引号”和@符号对调，#号变成英镑符号等等。之后的两个屏幕都选择默认值就可以了，到了：Use Control+Alt+Backspace to terminate the X server? 时，选择Yes，表示用这个可以终止X Server，当整个X-Window死掉的时候可以用。

&lt;strong&gt;change_pass&lt;/strong&gt; - 默认的用户名是pi，密码是raspberry，一般登录时不需要输入，但是用ssh远程连接时要用到这个用户名和密码，这里可以更改密码。

&lt;strong&gt;change_locale&lt;/strong&gt; - 更改语言设置。在Locales to be generated: 中，选择en_US.UTF-8和zh_CN.UTF-8。在Default locale for the system environment:中，选择en_US.UTF-8（等启动完机器，装完中文字体，再改回zh_CN.UTF-8，否则第一次启动会出现方块）。

&lt;strong&gt;change_timezone&lt;/strong&gt; - 更改时区，这个很重要，因为树莓派没有内部时钟，是通过网络获取的时间，如果设错时区，那么时间就不正确了，选择Asia - Shanghai，没错是Shanghai，木有&lt;br /&gt;Beijing，这是Unix的传统。缩写是CST，不知道是China Shanghai Time还是China Standard Time。

&lt;strong&gt;memory_split&lt;/strong&gt; - 按照网上的说法，这个功能有Bug，会导致/boot/start.elf损坏使系统无法启动，所以&lt;strong&gt;__不要使用这个功能__&lt;/strong&gt;。可以通过拷贝/boot/下的arm128_start.elf、arm192_start.elf、arm224_start.elf覆盖start.elf来实现显存和内存的划分。为了能播放高清1080p的视频，至少要分配64M显存给GPU。所以arm224就不能播放1080p高清视频。

&lt;strong&gt;ssh&lt;/strong&gt; - 是否激活sshd服务，应该选择激活，这是当界面死掉后唯一进入机器的通道（如果Kernel没死的话），可以找另外一部机器，用putty或者其他ssh的工具连接到这部机器上，用pi这个用户登录，至少可以实现安全重启。

&lt;strong&gt;boot_behaviour&lt;/strong&gt; - 设置启动时启动图形界面，正常肯定是Yes。

设置完成后，选择Finish，会提示是否重启，选择Yes。

重启后，将进入LXDE的X-Window环境，反正都是有桌面图标和开始菜单，应该比较容易掌握使用。

&lt;h2 id=&quot;让raspbian支持中文&quot;&gt;让Raspbian支持中文&lt;/h2&gt;

一直令我很奇怪的是，即使你用Debian的安装光碟安装系统，如果你把Locale改成了中文的话，系统是不会自动安装中文字体的，直接的效果是系统的很多信息都用中文显示，但是由于没有安装字体，所以全部变成了方块，所以完全不知道信息的内容是什么， 这个作为系统安装工具我认为是有问题的，因为这样会直接造成系统不可用，基于Debian的Raspbian也有同样的问题。所以如果你在初始设置时，不小心把系统的Locale设置成了zh_CN.UTF-8，当你进入Raspbian的图像界面时，会马上傻眼了，不知道图标、菜单的内容是什么，因为全部是方块。所以建议初始设置时，locale尽量用en_US.UTF-8或者en_GB.UTF-8。启动后，双击桌面那个计算机显示器图标，出现提示符时打入：
	sudo apt-get install ttf-wqy-zenhei。

将安装&lt;a href=&quot;http://wenq.org/&quot;&gt;文泉驿&lt;/a&gt;的开源中文字体，在这里向文泉驿表示致敬，貌似它是唯一一个开源的中文字体库。郭嘉有钱建孔子学院，但是从来不会有钱搞一套比较完整的开源中文字库出来的。

中文是可以显示啦，输入呢？Linux下早就有啦，叫SCIM（&lt;strong&gt;Smart Common Input Method&lt;/strong&gt;），所以只要输入：
	sudo apt-get install scim-pinyin

就会安装拼音输入法，安装完成后，可以直接打入scim激活，下次启动是会自动启动的。快捷键也是Ctrl+空格。或者直接点击右下角图标选择。

接着运行：
	sudo raspi-config

然后选择change_locale，在Default locale for the system environment:中选择zh_CN.UTF-8。然后重启机器，就发现整个环境变成中文的了。

&lt;img src=&quot;/images/raspberry-pi07-1.jpg&quot; alt=&quot;raspberry-pi07-1&quot; /&gt;

&lt;h2 id=&quot;视频播放&quot;&gt;视频播放&lt;/h2&gt;

标准Raspbian版本中支持树莓派的GPU的播放器好像只有omxplayer，是个命令行程序，没有界面的，也不能拖动。它有很多参数，最常用的是-o，选项有local和hdmi，表示声音输出到audio out还是hdmi，omxplayer后面跟着要播放的文件名称，不支持wmv，不支持外置字幕。打开终端窗口，出现提示符后输入：
	omxplayer -o hdmi 文件名

也可以先用cd命令，将当前路径改变到文件所在的目录，文件名就不需要绝对路径了。其实大家会觉得命令行输入非常麻烦，但只要用Tab键进行命令补齐，用ls列出当前目录的文件，再配合鼠标选择文字，然后按中键（就是按下滚轮）进行连动的复制粘贴，即使没有资源管理器也会发现目录操作可以很快速的。

由于一般媒体文件都是放置在外置的硬盘中，所以这时需要将硬盘接入到USB口上，系统默认会在/media目录下创建和硬盘卷标一样的目录，并将USB硬盘挂接上去，之后就可以访问了。

测试的结果大部分用X.264编码的1080p视频都可以正常流畅播放。唯一一部无法播放的是：[魔术师和兔子].Pixar.Short.Presto.1080p.BluRay.x264.mkv。

这是《变形金刚3》的播放效果：
&lt;img src=&quot;/images/raspberry-pi08.jpg&quot; alt=&quot;raspberry-pi08&quot; /&gt;

omxplayer的快捷键如下：

&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;c29&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1 c20&quot; style=&quot;color: rgb(224, 224, 224);  font-size: 10pt; font-weight: bold;&quot;&gt;Key&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1 c20&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt; font-weight: bold;&quot;&gt;Action&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;加速&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;2&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;减速&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;j&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;上一条音轨&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;k&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;下一条音轨&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;i&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;上一节&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;o&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;下一节&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;n&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;上一条字幕轨&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;m&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;下一条字幕轨&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;s&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;显示/不显示字幕&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;q&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;退出&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;空格或 p&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;暂停/继续&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;-&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;减小音量&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;+&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;增加音量&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;左&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;&amp;nbsp;后退30&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;右&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;前进30&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;上&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;后退600&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c16&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 127pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;下&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c5&quot; style=&quot;border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(224, 224, 224); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(224, 224, 224); border-top-style: solid; border-top-width: 1pt; vertical-align: middle; width: 169pt;&quot;&gt;&lt;div class=&quot;c7 c9&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; text-align: center;&quot;&gt;&lt;span class=&quot;c1&quot; style=&quot;color: rgb(224, 224, 224); font-size: 10pt;&quot;&gt;前进600&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;h2 id=&quot;浏览器&quot;&gt;浏览器&lt;/h2&gt;

鬼佬在测试他们的浏览器时，经常都是打开几个英文网站，然后就观察一下载入网页的速度、内存占用情况，然后马上就宣称他们的浏览器在什么平台上运行非常平滑，内存占用有特别少，等等，我们先来看一下几个浏览器是怎么说他们自己的：

&lt;ul&gt;
  &lt;li&gt;Midori（日语“绿”的意思）- Midori is a web browser that aims to be lightweight and fast.（浏览器“绿”的目标是轻量级和速度快）&lt;/li&gt;
  &lt;li&gt;NetSurf - Small as a mouse, fast as a cheetah and available for free.（象老鼠一样小，象猎豹一样快速，免费）。&lt;/li&gt;
  &lt;li&gt;Uzbl - web interface tools which adhere to the unix philosophy（坚持unix哲学的万维网界面工具）。&lt;/li&gt;
&lt;/ul&gt;

他们没有想到在神秘的东方，有一些不可思议的网站在等着他们。如：新浪新闻的首页。我曾经拿iPhone4和高端的安卓机去访问，基本都是会卡死在那里。实际测试流量的结果，打开整个新浪首页耗费的流量大约在1MByte到2Mbyte，这还是当年Flash视频没那么流行的时候。反正上面的这几个浏览器，在树莓派上，打开新浪新闻首页，肯定整个界面就会卡死一段时间，等全部页面下完了，拉动起来也非常吃力。

我突然想到了Chrome，搜索了一下，发现Chrome的开源版本&lt;a href=&quot;http://hexxeh.net/?p=328117859&quot;&gt;Chromium也给port到了Raspbian上&lt;/a&gt;了，安装的方法如下：

打开终端窗口，出现提示符后，打入：
	wget http://goo.gl/go5yx -O install.sh

成功后，打入：
	chmod a+x install.sh

然后，输入（注意一定要加上前面的”点斜杆”）：
	./install.sh

就开始下载和安装一些必要的包，还有下载整个Chrome并安装，整个过程速度飞快，难道功夫网对Linux格外开恩？安装完成后，直接打入（&amp;amp;让它在背景运行）：
	chrome -disable-ipv6 &amp;amp;

就可以看到熟悉的Chrome界面了：

&lt;img src=&quot;/images/raspberry-pi09.png&quot; alt=&quot;raspberry-pi09&quot; /&gt;

在进行魔鬼测试前，我先做了一点点优化，不像其他浏览器，Chrome是一定要有磁盘缓存的，不能关闭的，在正常情况下，这不是什么大问题，因为磁盘的速度远高于网速，但是现在我们用的是SD卡，例如我的class 6的卡，读取速度就是6Mbps，比很多ADSL都慢，所以缓存在这种情况下成为瓶颈，但是它的内部设计有是必须有缓存的，网上有些说法是把缓存的size改成1K，相当于disable掉它。但是缓存对提升速度还是有帮助的，我的做法是用USB硬盘做缓存，启动时打入下列的命令：

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;chrome -disable-ipv6 --disk-cache-dir=USB硬盘的某个目录 &amp;amp;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

好，魔鬼测试开始，开新浪新闻：

&lt;img src=&quot;/images/raspberry-pi10.png&quot; alt=&quot;raspberry-pi10&quot; /&gt;

整个载入时间花了可能接近一分钟，但是载入的过程中是可以拉动网页的，载入后也可以上下拉动，其他浏览器是几乎死掉了。网页下载的过程中，CPU的占用一直是满的，但是下载完后，CPU的占用就基本很小了。

我还是太傻太天真了，以为新浪新闻就是魔鬼测试了，哪知道还有个更大的魔鬼在后面，那就是新浪微博：

&lt;img src=&quot;/images/raspberry-pi11.png&quot; alt=&quot;raspberry-pi11&quot; /&gt;

注意右下角的CPU占有率，微博在下载完页面后，还是保持基满的CPU占用率。这时整个浏览器拉动起来很费劲了，而且任何一个操作，比如点开图片都要等很久。用224的内存分配，情况好一点，但是基本没办法做到可用。原因应该是新浪微博用了大量的Javascript。

但是整体上来说，Chrome还是表现最佳。如果有人能用专业的测试工具测一下这几个浏览器的表现，看看瓶颈在哪里就好了。

&lt;h2 id=&quot;接下来玩什么&quot;&gt;接下来玩什么&lt;/h2&gt;

&lt;h3 id=&quot;1超频overclocking&quot;&gt;1、超频（overclocking）&lt;/h3&gt;

玩家型的CPU都是支持超频的，通过更改/boog/config.txt中的下列参数可以实现超频：

&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;c29&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;Option&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;Description&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;arm_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;frequency of ARM in MHz. Default 700.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;gpu_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;Sets core_freq, h264_freq, isp_freq, v3d_freq together.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;core_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;frequency of GPU processor core in MHz. It have an impact on ARM performance since it drives L2 cache. Default 250.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;h264_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;frequency of hardware video block in MHz. Default 250.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;isp_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;frequency of image sensor pipeline block in MHz. Default 250.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;v3d_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;frequency of 3D block in MHz. Default 250.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;sdram_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;frequency of SDRAM in MHz. Default 400.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;ARM/GPU core voltage adjust. [-16,8] equates to [0.8V,1.4V] with 0.025V steps. Default 0 (1.2V)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;c3 c13 c21&quot; style=&quot;background-color: white; color: #002bb8; font-size: 10pt;&quot;&gt;&lt;a class=&quot;c8&quot; href=&quot;http://elinux.org/RPi_config.txt#cite_note-voltages-0&quot; style=&quot;text-decoration: inherit;&quot;&gt;[1]&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage_sdram&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;Sets over_voltage_sdram_c, over_voltage_sdram_i, over_voltage_sdram_p together&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage_sdram_c&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;SDRAM controller voltage adjust. [-16,8] equates to [0.8V,1.4V] with 0.025V steps. Default 0 (1.2V)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;c21 c3 c13&quot; style=&quot;background-color: white; color: #002bb8; font-size: 10pt;&quot;&gt;&lt;a class=&quot;c8&quot; href=&quot;http://elinux.org/RPi_config.txt#cite_note-voltages-0&quot; style=&quot;text-decoration: inherit;&quot;&gt;[1]&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage_sdram_i&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;SDRAM I/O voltage adjust. [-16,8] equates to [0.8V,1.4V] with 0.025V steps. Default 0 (1.2V)&lt;/span&gt;&lt;span class=&quot;c21 c3 c13&quot; style=&quot;background-color: white; color: #002bb8; font-size: 10pt;&quot;&gt;&lt;a class=&quot;c8&quot; href=&quot;http://elinux.org/RPi_config.txt#cite_note-voltages-0&quot; style=&quot;text-decoration: inherit;&quot;&gt;[1]&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c10&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 120pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage_sdram_p&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c0&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 348pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;SDRAM phy voltage adjust. [-16,8] equates to [0.8V,1.4V] with 0.025V steps. Default 0 (1.2V)&lt;/span&gt;&lt;span class=&quot;c21 c3 c13&quot; style=&quot;background-color: white; color: #002bb8; font-size: 10pt;&quot;&gt;&lt;a class=&quot;c8&quot; href=&quot;http://elinux.org/RPi_config.txt#cite_note-voltages-0&quot; style=&quot;text-decoration: inherit;&quot;&gt;[1]&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c21 c3 c13&quot; style=&quot;background-color: white; color: #002bb8; font-size: 10pt;&quot;&gt;&lt;a class=&quot;c8&quot; href=&quot;http://elinux.org/RPi_config.txt#cite_note-voltages-0&quot; style=&quot;text-decoration: inherit;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

如何组合参照下表（注意：如果设置了over_voltage，质保就会失效，但是SD卡在你手上它怎么知道你设了？）

&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;c29&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;arm_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;gpu_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;core_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;h264_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;isp_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;v3d_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;sdram_freq&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;over_voltage_sdram&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;750&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;255&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;450&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;900&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;250&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;900&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;275&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;900&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;450&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;450&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;930&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;350&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;1000&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;450&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;6&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;1000&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c6&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 49.8pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c2&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 47.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c25&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 52pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c18&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 56.4pt;&quot;&gt;&lt;div class=&quot;c7&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;6&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;c12&quot; style=&quot;border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 69.6pt;&quot;&gt;&lt;div class=&quot;c4&quot; style=&quot;color: black; direction: ltr; font-family: Arial; font-size: 11pt; height: 11pt;&quot;&gt;&lt;span class=&quot;c3 c13&quot; style=&quot;background-color: white; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

但是本人没有玩过，会不会发生冒烟、地震、火山爆发或61年一遇的洪水等情况，就不得而知了。

&lt;h3 id=&quot;2razdroid&quot;&gt;2、Razdroid&lt;/h3&gt;

实际上就是 Android 4.0 (Ice Cream Sandwich) for Raspberry Pi。根据&lt;a href=&quot;http://www.raspberrypi.org/archives/1700&quot;&gt;这个帖子&lt;/a&gt;，安卓4.0已经在树莓派上跑起来了，很快就会发布了。这是我非常期待的一个东西，之后就有大量的应用程序可以用了，但是我还是对性能上的表现十分担心，毕竟现在很多手机都是1G以上的CPU和1G内存了。

&lt;img src=&quot;/images/raspberry-pi12.jpg&quot; alt=&quot;raspberry-pi12&quot; /&gt;

&lt;img src=&quot;/images/raspberry-pi13.jpg&quot; alt=&quot;raspberry-pi13&quot; /&gt;

&lt;h3 id=&quot;3xbian&quot;&gt;3、XBian&lt;/h3&gt;

XBMC是Linux的媒体中心版，&lt;a href=&quot;http://xbian.org/&quot;&gt;XBian&lt;/a&gt;就是XBMC和Raspbian结合的产物，作为播放器应用，这个也应该更加方便，支持的文件格式应该更多，尤其是能支持外置字幕。等我新买的SD卡到货后，就会马上刷这个试试。

现在网上已经有很多外壳的3D模型，用3D打印应该就可以打出来了，但是价格会非常昂贵，我询问了一下大概一个外壳要300块左右，如果有人能开模做出个低价的外壳出来就好了。

&lt;h2 id=&quot;总结&quot;&gt;总结&lt;/h2&gt;

很好玩的一块板，作为家庭的播放器和下载机应该是没什么问题的，普通的上网浏览也是可以胜任的，如果opera能port到上面来，用服务器端进行渲染，应该访问复杂的页面也是可以的。由于所有的系统文件和虚拟内存（SWAP）全部都是在SD卡上，所以SD卡的速度对性能可能会有很大影响，等换一块高速卡对比一下再看。我觉得在上面做应用应该采用专门系统的方式，很难一个系统解决所有问题，比如做一个系统是专门打游戏的、一个专门优化后进行上网的、一个进行视频播放的，一个专门拿来做编程学习的，然后通过换不同SD卡的方式实现不同的功能，和以前的红白机一样。

可以在新浪微博上关注我&lt;a href=&quot;http://weibo.com/u/2845589454&quot;&gt;@googol4u二世&lt;/a&gt;，我会不定期发布一些其他的测试结果。
</description>
        <pubDate>Sun, 05 Aug 2012 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2012/08/05/raspberry-pi/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2012/08/05/raspberry-pi/</guid>
        
        <category>Raspberry Pi</category>
        
        
      </item>
    
      <item>
        <title>Java SSL 客户端程序无法和服务器握手的解决办法</title>
        <description>很多HTTPS的网站的证书都有这样或者那样的问题，Google的网站我都见过证书有问题的，所以这些网站按照严格的标准是不应该被访问的，于是Java的SSL库当碰到这些网站时都会报错，具体体现在握手（Handshake）时，发了Client Hello，服务器回了Server Hello，SSL库发现证书有问题，马上回了Fatal: Unexpected Message，然后抛异常。解决的办法是：在运行时加上这个参数：
	-Dsun.security.ssl.allowUnsafeRenegotiation=true。

参考资料：&amp;lt;/span&amp;gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;

&lt;a href=&quot;http://stackoverflow.com/questions/2606873/sslexception-hellorequest-followed-by-an-unexpected-handshake-message&quot;&gt;http://stackoverflow.com/questions/2606873/sslexception-hellorequest-followed-by-an-unexpected-handshake-message&lt;/a&gt;

</description>
        <pubDate>Tue, 16 Aug 2011 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2011/08/16/java-ssl/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2011/08/16/java-ssl/</guid>
        
        <category>编程</category>
        
        <category>Java</category>
        
        
        <category>技术</category>
        
      </item>
    
      <item>
        <title>在mldonkey中使用无tracker的种子文件（torrent）</title>
        <description>mldonkey是一个功能强大的能用于unix系列服务器的p2p下载工具。支持多协议（包括edonkey和bittorrent），支持web界面，cli界面等等。cli命令强大无比，基本可以实现所有的操作。可以建一个目录，只要把torrent文件放到这个目录下，它会定期去扫描这个目录，发现有新的torrent文件就增加到下载里面去。所以是服务器端下载的最好工具。

但是mldoneky有个问题，一直不支持DHT，知道最新近在&lt;a href=&quot;http://repo.or.cz/w/mldonkey.git/shortlog/refs/heads/dev/dht&quot;&gt;代码库&lt;/a&gt;里面才有了DHT的支持，虽然是支持DHT，但对于无tracker的torrent文件，还是判为非法文件，无法下载。想了一下，发现直接更改torrent文件，随便加一个比较常用的tracker进去就可以解决这个问题。直接修改文件要用到&lt;a href=&quot;http://forum.utorrent.com/viewtopic.php?pid=288182&quot;&gt;BEncode Editor&lt;/a&gt;这个工具。

另外mldoneky的最新版本在添加DHT支持时，代码对64位系统支持不好，Random.Int 函数后面的参数要求最大不能超过2^30-1，但是max_int确却是2^60-1次，所以bT_DHT.ml文件中，要将max_int替换成1073741823才能在64位系统下正常运行。

&lt;strong&gt;更新&lt;/strong&gt;

最新的mldonkey已经支持DHT和Magnet磁力链接了。
</description>
        <pubDate>Thu, 23 Dec 2010 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2010/12/23/mldonkey-no-tracker-torrent/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2010/12/23/mldonkey-no-tracker-torrent/</guid>
        
        <category>BT</category>
        
        
        <category>技术</category>
        
      </item>
    
      <item>
        <title>[转贴]俄罗斯人建议将列宁遗体送给北京</title>
        <description>&lt;a href=&quot;http://info.wenweipo.com/index.php/action-viewnews-itemid-19320#&quot;&gt;http://info.wenweipo.com/index.php/action-viewnews-itemid-19320#&lt;/a&gt;

       俄罗斯媒体在列宁生日当天“集体沉默”，俄评论人士称，该把列宁遗体从红场迁出送给北京方面。

同此前针对将列宁墓从红场迁出问题而产生的激烈争论相比，俄罗斯社会在列宁诞辰 140周年的日子里却对列宁这个话题表现得异常冷漠，而俄罗斯媒体也在列宁生日当天如同事先约定了一样，集体实施沉默。头版既没有纪念列宁的文章，也没有批评他的文章。唯一一份被记者在报亭找到刊登关于列宁文章的小报上也仅写道：今年的列宁生日静悄悄。

&lt;img src=&quot;http://blog.wenweipo.com/attachments/2010/04/5517_201004251125541YJKV.gif&quot; alt=&quot;點擊圖片可在新窗口打開&quot; /&gt;

莫斯科红场列宁墓在22日早上开门的时候，门前也同样显得非常冷清，列宁墓前只有几个游客，其中包括两位来自乌拉尔地区的游客，两位来自荷兰的外国游客，一名记者。

对于此种冷清现象，俄罗斯民意调查中心负责人瓦列里. 菲德洛夫在星期四表示说：“关于列宁的话题已经不被人重视了，至少已经从报纸的头版头条消失了，虽然共产党人会在当天大造声势，但这不是说反对将列宁墓迁出红场的人占了优势，只是绝大多数俄罗斯人在用沉默表达自己的态度。”

他还表示说：俄罗斯共产党人仍然会举行活动造声势，但民意调查显示，实际上很多俄罗斯人希望将列宁墓迁出红场，但他们中的很多人希望，等到目前仍活着的那一小部分坚决反对的信仰列宁的老人们死去之后，毫无争议的迁出列宁墓。这也算是对信仰共产主义的人的一种怜悯吧。

同俄媒体实施集体沉默不同的是，中国官方媒体当天均在显著位置刊登了赞扬列宁的评论文章，一些文章甚至称，越来越多的俄罗斯人认同列宁。莫斯科《回声电台》在22日的一个评论节目中，主持人同嘉宾就此进行讨论时，找到了解决列宁遗体去向问题的出路：应该把列宁遗体从红场迁出，并送给北京方面。

相对于俄罗斯主流媒体对列宁的生日以沉默对待的态度相比，俄罗斯民间对列宁等前苏联共产党创始人的愤怒却有增无减，并利用各种方式表达希望审判前苏共领导人罪行的呼声。近期以来，俄罗斯各地不断发生针对前苏联共产党领导人雕像和塑像的破坏事件。其中最严重的是发生在2009年4月份， 圣彼得堡市中心火车站前广场列宁铜塑像被不明身份者用炸弹炸毁的事件。圣彼得堡红村地区一个列宁雕像被人实施“斩首”削去了头部。前苏联国家级文物，一幅山岩列宁壁画被人泼墨破坏、并涂写侮辱性文字等等新闻不断在俄罗斯报道。

俄罗斯最近的一起反对列宁的事件发生在 3月15日的莫斯科红场，莫斯科红场在当天发生了枪击事件，一名俄罗斯男子用汽枪打伤一名负责克林姆林宫前列宁墓保卫的警察并试图闯入列宁墓，称希望以此方式呼吁拆除红场上的列宁墓，警察重伤住院治疗。他在被审讯过程中对媒体明确表示说：我敢在红场开枪打伤警察，就是为了呼吁列宁墓应该被拆除，或者改建成为钟楼，但列宁遗体必须被迁出红场。

</description>
        <pubDate>Tue, 27 Apr 2010 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2010/04/27/blog-post/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2010/04/27/blog-post/</guid>
        
        <category>时事</category>
        
        
        <category>非技术</category>
        
      </item>
    
      <item>
        <title>[转贴]中国社会正在加速走向溃败</title>
        <description> http://blog.sina.com.cn/s/blog_64881cf00100hr22.html

中国社会正在加速走向溃败

作者：孙立平 清华社会学教授

1.我们是不是焦虑错了问题？现在人们都在关心社会矛盾、社会冲突、群体性事件等问题。之所以有这样的关心，是担心发生大的社会动荡。但事实上，对中国社会最大的威胁可能不是社会动荡，而是社会溃败。

2.社会动荡是指严重的社会冲突会威胁政权和制度的基本框架，而社会溃败则是社会肌体的细胞坏死，机能失效。说的形象一点，动荡好比是健康的身体被别人打伤了，而溃败则是自身的组织或细胞出了严重的毛病。费孝通先生的“社会侵蚀”和亨廷顿的“政治衰败”两个概念可以深化我们对这个现象的认识，尽管这两个概念与我们这里讨论的“社会溃败”的含义并不完全一样。其中后者的含义可能会更接近一些。

3.社会动荡的反面是社会稳定，社会溃败的反面是社会健康。尽管这两者经常是有关联的，但需要加以区别。现在的问题是，对前者的误判往往成为治愈后者的障碍。这就好比一个癌症病人，需要做手术。但医生误诊其有严重心脏病，无法做手术。实际上这个人可能并没有心脏病，或即使有也比较轻。但这种对前者的误判无疑会导致对后者的治疗。在现实社会生活中，对克服社会溃败所必须进行的一些变革，往往由于担心其威胁社会稳定而被束之高阁，结果是使社会溃败的趋势日益明显。

4.在最近的文章中我一再强调，尽管目前社会矛盾较多，甚至有激化的迹象，但中国发生大规模社会动荡的可能性并不大。对于这个问题，大约 10年前我就曾经写过文章，去年年初在南方周末上也有两个版的访谈，一再强调的就是这个观点。在过去的十几年中，由于对不稳定因素、对危机发生的可能性估计过高，使得我们形成了一种稳定压倒一切的思维定势。在这种思维定势中，稳定似乎成了一种终极性的否定因素，一切都要为稳定让路。结果是许多该做的事情无法去做。其实，一年365天，不是有这样的事情就是有那样的事情；一个国家13亿人口，大灾小难也总是免不了的。如果总是刻意寻找不稳定因素，当然会找得到的。更何况失控的权力还会不断制造出“群体性事件”（如最近贵州铜仁地区德江县的所谓群体性事件就是由政府异想天开的制止群众性娱乐活动引起的）。关键是用什么样的心态看待这些问题。世界上哪个国家像我们这样刻意地去寻找不稳定因素，都是找得出来的。但只有我们有稳定压倒一切，有“维稳办”这样的机构。

5.近些年来，社会溃败的迹象已经明显开始出现。其中最核心的是权力的失控。在过去30年改革的过程中，尽管建立起市场经济的基本框架，但权力仍然是我们社会的中枢。因此社会的溃败首先表现在权力的失控，腐败不过是其外在的表现。我这里所说的权力失控是指，权力成为不但外部无法约束而且内部也无法约束的力量，而在此之前，尽管外部约束是缺乏的，但内部约束是相对有效的；权威基础削弱，前几年就有所谓政令不出中南海一说，地方性权力、部门性权力已经成为既无上面约束，又无下面监督，同时还缺少左右制衡的力量，这意味着国家权力的碎片化；官员不能负责任地进行工作，为保官升官不惜牺牲体制利益（不要说社会利益了）。在此背景之下，腐败已经处于失控和“不可治理状态”。

6.这种社会的溃败蔓延到社会生活的各个领域：潜规则盛行于社会，甚至成为基本的为官为人之道，对此吴思先生有很好的分析；社会底线失守，道德沦丧；强势利益集团已经肆无忌惮，社会生活西西里化趋势出现；利益集团的肆无忌惮，对社会公平正义造成严重侵蚀；职业操守和职业道德的丧失是相当普遍的现象；整个社会的信息系统已经高度失真，统计数据的弄虚作假代表了体制性的对信息的扭曲。“村骗乡，乡骗县，一直骗到国务院”，几乎可以说是比官方统计数据还可靠的现实。

7.社会认同和社会向心力在急剧流失。正月元宵节央视一场大火，损失达几十个亿。然而，网络上一片幸灾乐祸之声。没有悲伤，没有痛心。幸灾乐祸中透露的是某种难以言表的快意。有人说，这表明了人们的冷漠；有人说，我们这个民族没救了；还有人问，那些幸灾乐祸的人就没想想烧掉的几十亿当中也有你的一份啊（央视毕竟是国有资产啊）？这让我想起大约是80年代沈阳的一场大火，当时许多人站在大街上痛哭失声。用国民性来解释说不过去吧？！问题在哪里？在对我们这个社会还认同不认同上。在沈阳大火中的痛哭失声，是他们感觉被烧掉的是“我们的”；而在这场央视大火中，有人这样说，几十个亿烧掉就烧掉吧，不被烧掉也会被吃掉。这里的吃喝当然是指公款吃喝。还有人说，心疼的是救火要用掉多少水啊，现在天旱啊。在这些议论的背后，实际上是一种心理上的疏离感，即那些“东西”是“他们的”，而不是“我们的”。心理的疏离是结构性疏离的反射。

8.社会失去进行长远思维的能力。在权贵资本主义上形成的既得利益集团又过于注重眼前，既无古代帝王对子孙后代的责任，又有无贵族的超脱和超越精神。在我们的社会中，一种倾向，即短期问题夸大症与长期行为麻木症并存。对于所有眼前遇到的问题，无一不草木皆兵；而对于关乎子孙后代、社会长远发展的问题，则一概视而不见。今朝有酒今朝醉，成为一种体制性行为。在资源和环境问题上的竭泽而渔，在体制的弊病上能拖就拖。邯郸十年换了七任市长，全国市长任期平均1.7年。新班子上马前半段是被“扶上马，送一程”，后半段则是寻找培养接班人。眼前的权力与利益分配就是一切，真正做事情的时间没有多少。

9.反腐败为什么不能有效进行？体现了从既得利益出发的一种权衡，即是腐败更可怕还是将反腐败的措施诉诸社会更可怕。这样的逻辑对于某一个具体的腐败分子而言，当然是成立的，但如果将其转化为一种体制性逻辑，问题就严重了。很不幸的是，上述逻辑远非是非体制性的。多年来的反腐败，基本停留在表演性和杀鸡儆猴的层面，而对于实质性的反腐败措施，尽管从上到下心知肚明，但一直没有根本性的推进，特别是将反腐败的措施诉诸社会，更是噤若寒蝉。

10.维护既得利益是一件很累的事情，而我们社会把精力和资源过多地用到了这个地方。为了维护既得利益，不得不压制言论自由。可以想想，为了压制那些言论，我们用了多少的精力和资源？为了维护既得利益，就不得不千方百计想绕过民主这个坎儿。可以想想，为了不民主我们费了多大的劲儿，编造了多少理由和理论。为了维护既得利益，我们就不得不压制民众正当的利益表达，于是酿出了多少群体性事件，为了解决群体性事件就花费了多大的精力？为了维护既得利益，很多在其他国家行之有效的反腐败措施我们都不敢采用，为此我们不得不使用那些笨拙而无效的运动型办法，为此又浪费了多少的资源和精力？须知，要同时实现既得利益最大化和维护社会的正常运行这两个目标，是一件相当困难和费力的事情。因此，我们这个体制是很累的，管理者也是很累的，从体制到管理者的心理负担都很重。更重要的是，为了维护既得利益，我们这个社会要付出更深远的代价。比如，为什么要如此大张旗鼓批普适价值？是普适价值中的什么让我们大动肝火？说穿了无非是民主自由，因为民主自由威胁既得利益。但直接批民主自由又不好听，只能拿普适价值说事了。但在信仰尽失、道德沦落的今天，连普适的价值也成了批判的对象，结果是可想而知的。但为了既得利益，又不得不如此。

11.造成社会衰败的根本原因是权贵资本主义的形成。过去很多人把权力和市场看成是截然对立的东西，现在看到这两个东西在中国结合起来了。好比原来人们眼中两个最不能结婚的人结婚了，不但结婚了，而且日子过得很好。过去认为权力在市场情况下会受到限制，现在恰恰是市场的出现使得权力有了更大的行使机会和场所。市场是权力在当中起作用的市场，权力是在市场当中行使的权力。而且，现在的权力因为市场化而有了更大的行使机会和场所，卖出了好价格。这是我们现在面对的问题。在2002年的时候，我曾经提出“断裂社会”的概念；权贵资本主义下的既得利益集团会形成一种“我们”与“他们”的区分或区隔。正如上面的分析所表明的，这种区隔已经在造成一种心理上的疏离感。

12.面对权钱结合时的中国思想界。对于权钱的结合，既要规范权力，也要规范市场。但更重要的是要切断两者结合的链条。最近茅于轼先生提出，不让有钱的人有势，不让有权的人捞钱。说的也是这个道理。要看到，关键的问题是权钱的结合。但目前中国思想界的情况好有一比：权力和金钱两个看起来不能结婚的两个人组成了一个小家庭，而且日子过的还相当不错。这时，左派和右派的分歧形成了，一派说，你家的丈夫是个好丈夫，妻子是个坏妻子；另一派说，他家的妻子才是好妻子，丈夫是个坏丈夫。并为此吵得不可开交。殊不知，人家小两口日子过得甜甜蜜蜜。

13.由于思路错误，“维护稳定”的种种措施导致使社会健康化的变革无法进行，结果是进一步加剧社会的溃败。社会动荡是可以用“维护稳定” 去对付的，而社会溃败却更难办。记得在菲律宾前总统埃斯特拉达因腐败而倒台的时候，美国的一家媒体评论道，这个国家的腐败所造成的内伤，可能需要这个社会的人用100年的时间为之付出代价。当腐败成为一种生活方式，当腐败成为一种无可厚非的价值，当腐败成为一种人人欲诛之又人人欲得之的东西的时候，整个社会生活开始进入变态的状态。历史将会证明，“稳定”不仅不会压倒一切，很可能会毁灭一切。因为这种僵硬的稳定压倒一切的思路，会将那些使我们这个国家健康起来的努力被消灭在萌芽状态。

14.权钱结合以及由此形成的腐败，从根本上扭曲了中国社会发展的进程。去年是中国改革30周年。本来，在这样一个重要时刻，人们期待着对改革的认真总结和深刻反思，期待将30年这样一个时刻作为发展新的起点。但遗憾的是，廉价的颂扬、言不及义的套话，使得这个大好的时机被放过。这说明，我们已经失去了面对现实，包括面对改革的勇气和能力。实际上，正如我在2005年的一系列文章中所强调的，改革从某种意义上说已经开始成为财富掠夺的战争，改革的共识已经基本破灭，改革的动力已经基本丧失。原因何在？就在于改革已经受制于既有的既得利益框架，即使是真正开明的改革者也无法摆脱这种制约。在这种情况下，扭曲改革的机制已经形成。即使是出发点良好的改革，最后的结果往往也是南辕北辙。

15.其实，中国的改革既没有有些人说的那么好，也没有有些人说的那么坏。我一直不同意将经济发展速度和人们物质生活的改善完全归功于改革，只要没有特殊的天灾人祸，经济本来就会发展。有人经常用今天的物质生活和30年前对比，以说明改革的成功，其实这当中除了在技术进步推动下社会正常发展的因素之外，生育率的下降和家庭平均人口的减少是一个重要的因素，试想如果今天城市中的许多家庭是3个孩子的话，其生活是一种什么样的生活？因此，可以说改革开放是沾了计划生育的光，改革是沾了开放的光（加快了技术进步）。我这样说不是否定改革，而是说对改革也要有一种理性的态度。改革的真正意义是使中国从一个扭曲和变态的社会转变为一个正常的社会，是汇入人类发展的主流文明。市场经济只是其中一个有限的部分。而这个过程其实远没有完成，近些年且有倒退之势。

16.中国的改革先天不足。回思改革的起点可以让我们重新认识一些问题。中国的改革其实并不是始于“国民经济到了崩溃的边缘”。改革的启动是几股力量合在一起的结果。这当中有民众改善经济状况的现实要求，有知识分子改变现状的理想，但其实更有力量的，是文革中失势者重归权力中心的要求。后者又有两部分人，一是想回到文革前的17年，一种是想借此走向一种新的文明。80年代初期改革即在这部分人的掌控之下了。不过，能够和当时形成对比的，是文革的荒唐岁月，所以掌握权力者充满自信。这种自信造成了80年代的开明。然而开明的表象掩盖了改革的根本缺陷，即没有一种真正的走向新文明的价值目标。

17.稳定已经开始演变为维护既有利益格局的一种手段。
</description>
        <pubDate>Sat, 20 Mar 2010 00:00:00 +0000</pubDate>
        <link>https://googol4u.github.io/2010/03/20/blog-post_20/</link>
        <guid isPermaLink="true">https://googol4u.github.io/2010/03/20/blog-post_20/</guid>
        
        <category>讲道理</category>
        
        
        <category>非技术</category>
        
      </item>
    
  </channel>
</rss>
