<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title>寻回自己....</title>
    <description>Jason</description>
    <link>http://fghost.javaeye.com</link>
    <language>UTF-8</language>
    <copyright>Copyright 2003-2008, JavaEye.com</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>JavaEye - 做最棒的软件开发交流社区</generator>
      <item>
        <title>C3P0连接池详细配置</title>
        <author>FGhost</author>
        <description>
          <![CDATA[
          <br/>
          作者: <a href="http://fghost.javaeye.com">FGhost</a>&nbsp;
          链接：<a href="http://fghost.javaeye.com/blog/221144" style="color:red;">http://fghost.javaeye.com/blog/221144</a>&nbsp;
          发表时间: 2008年07月29日
          <br/><br/>
          声明：本文系JavaEye网站发布的原创博客文章，未经作者书面许可，严禁任何网站转载本文，否则必将追究法律责任！
          <br/><br/>
          <div>原文作者：ja-zone&nbsp; 原文出处：<a href="http://jacreater.spaces.live.com/blog/cns!BE44984C5949B55B!120.entry" title="原文出处" target="_blank">http://jacreater.spaces.live.com/blog/cns!BE44984C5949B55B!120.entry</a>
<br />
&lt;c3p0-config&gt;<br />
&nbsp; &lt;default-config&gt;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--当连接池中的连接耗尽的时候c3p0一次同时获取的连接数。Default: 3 --&gt;<br />
</span>
&nbsp;&lt;property name=&quot;acquireIncrement&quot;&gt;3&lt;/property&gt;<br />
&nbsp;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--定义在从数据库获取新连接失败后重复尝试的次数。Default: 30 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;acquireRetryAttempts&quot;&gt;30&lt;/property&gt;<br />
&nbsp;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--两次连接中间隔时间，单位毫秒。Default: 1000 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;acquireRetryDelay&quot;&gt;1000&lt;/property&gt;<br />
&nbsp;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--连接关闭时默认将所有未提交的操作回滚。Default: false --&gt;<br />
</span>
&nbsp;&lt;property name=&quot;autoCommitOnClose&quot;&gt;false&lt;/property&gt;<br />
&nbsp;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--c3p0将建一张名为Test的空表，并使用其自带的查询语句进行测试。如果定义了这个参数那么<br />
&nbsp;&nbsp;属性preferredTestQuery将被忽略。你不能在这张Test表上进行任何操作，它将只供c3p0测试<br />
&nbsp;&nbsp;使用。Default: null--&gt;<br />
</span>
&nbsp;&lt;property name=&quot;automaticTestTable&quot;&gt;Test&lt;/property&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;<span style="color: #ff0000;">&lt;!--获取连接失败将会引起所有等待连接池来获取连接的线程抛出异常。但是数据源仍有效<br />
&nbsp;&nbsp;保留，并在下次调用getConnection()的时候继续尝试获取连接。如果设为true，那么在尝试<br />
&nbsp;&nbsp;获取连接失败后该数据源将申明已断开并永久关闭。Default: false--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;breakAfterAcquireFailure&quot;&gt;false&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--当连接池用完时客户端调用getConnection()后等待获取新连接的时间，超时后将抛出<br />
&nbsp;&nbsp;SQLException,如设为0则无限期等待。单位毫秒。Default: 0 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;checkoutTimeout&quot;&gt;100&lt;/property&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;<span style="color: #ff0000;">&lt;!--通过实现ConnectionTester或QueryConnectionTester的类来测试连接。类名需制定全路径。<br />
&nbsp;&nbsp;Default: com.mchange.v2.c3p0.impl.DefaultConnectionTester--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;connectionTesterClassName&quot;&gt;&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--指定c3p0 libraries的路径，如果（通常都是这样）在本地即可获得那么无需设置，默认null即可<br />
&nbsp;&nbsp;Default: null--&gt;<br />
</span>
&nbsp;&lt;property name=&quot;factoryClassLocation&quot;&gt;null&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--Strongly disrecommended. Setting this to true may lead to subtle and bizarre bugs. <br />
&nbsp;&nbsp;（文档原文）作者强烈建议不使用的一个属性--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;forceIgnoreUnresolvedTransactions&quot;&gt;false&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--每60秒检查所有连接池中的空闲连接。Default: 0 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;idleConnectionTestPeriod&quot;&gt;60&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--初始化时获取三个连接，取值应在minPoolSize与maxPoolSize之间。Default: 3 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;initialPoolSize&quot;&gt;3&lt;/property&gt;<br />
&nbsp;<br />
<span style="color: #ff0000;">&nbsp;&lt;!--最大空闲时间,60秒内未使用则连接被丢弃。若为0则永不丢弃。Default: 0 --&gt;<br />
</span>
&nbsp;&lt;property name=&quot;maxIdleTime&quot;&gt;60&lt;/property&gt;<br />
&nbsp;<br />
<span style="color: #ff0000;">&nbsp;&lt;!--连接池中保留的最大连接数。Default: 15 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;maxPoolSize&quot;&gt;15&lt;/property&gt;<br />
&nbsp;<br />
<span style="color: #ff0000;">&nbsp;&lt;!--JDBC的标准参数，用以控制数据源内加载的PreparedStatements数量。但由于预缓存的statements<br />
&nbsp;&nbsp;属于单个connection而不是整个连接池。所以设置这个参数需要考虑到多方面的因素。<br />
&nbsp;&nbsp;如果maxStatements与maxStatementsPerConnection均为0，则缓存被关闭。Default: 0--&gt;<br />
</span>
&nbsp;&lt;property name=&quot;maxStatements&quot;&gt;100&lt;/property&gt;<br />
&nbsp;<br />
<span style="color: #ff0000;">&nbsp;&lt;!--maxStatementsPerConnection定义了连接池内单个连接所拥有的最大缓存statements数。Default: 0&nbsp; --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;maxStatementsPerConnection&quot;&gt;&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--c3p0是异步操作的，缓慢的JDBC操作通过帮助进程完成。扩展这些操作可以有效的提升性能<br />
&nbsp;&nbsp;通过多线程实现多个操作同时被执行。Default: 3--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;numHelperThreads&quot;&gt;3&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--当用户调用getConnection()时使root用户成为去获取连接的用户。主要用于连接池连接非c3p0<br />
&nbsp;&nbsp;的数据源时。Default: null--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;overrideDefaultUser&quot;&gt;root&lt;/property&gt;<br />
&nbsp;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--与overrideDefaultUser参数对应使用的一个参数。Default: null--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;overrideDefaultPassword&quot;&gt;password&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--密码。Default: null--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;password&quot;&gt;&lt;/property&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;<span style="color: #ff0000;">&lt;!--定义所有连接测试都执行的测试语句。在使用连接测试的情况下这个一显著提高测试速度。注意：<br />
&nbsp;&nbsp;测试的表必须在初始数据源的时候就存在。Default: null--&gt;<br />
</span>
&nbsp;&lt;property name=&quot;preferredTestQuery&quot;&gt;select id from test where id=1&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--用户修改系统配置参数执行前最多等待300秒。Default: 300 --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;propertyCycle&quot;&gt;300&lt;/property&gt;<br />
&nbsp;<br />
&nbsp;<span style="color: #ff0000;">&lt;!--因性能消耗大请只在需要的时候使用它。如果设为true那么在每个connection提交的<br />
&nbsp;&nbsp;时候都将校验其有效性。建议使用idleConnectionTestPeriod或automaticTestTable<br />
&nbsp;&nbsp;等方法来提升连接测试的性能。Default: false --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;testConnectionOnCheckout&quot;&gt;false&lt;/property&gt;<br />
&nbsp;<br />
<span style="color: #ff0000;">&nbsp;&lt;!--如果设为true那么在取得连接的同时将校验连接的有效性。Default: false --&gt;</span>
<br />
&nbsp;&lt;property name=&quot;testConnectionOnCheckin&quot;&gt;true&lt;/property&gt;</div>
<div>&nbsp;</div>
<div><span style="color: #ff0000;">&nbsp;&lt;!--用户名。Default: null--&gt;<br />
</span>
&nbsp;&lt;property name=&quot;user&quot;&gt;root&lt;/property&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;<span style="color: #ff0000;">&lt;!--早期的c3p0版本对JDBC接口采用动态反射代理。在早期版本用途广泛的情况下这个参数<br />
&nbsp;&nbsp;允许用户恢复到动态反射代理以解决不稳定的故障。最新的非反射代理更快并且已经开始<br />
&nbsp;&nbsp;广泛的被使用，所以这个参数未必有用。现在原先的动态反射与新的非反射代理同时受到<br />
&nbsp;&nbsp;支持，但今后可能的版本可能不支持动态反射代理。Default: false--&gt;</span>
<br />
&nbsp;&lt;property name=&quot;usesTraditionalReflectiveProxies&quot;&gt;false&lt;/property&gt;</div>
<div><br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;automaticTestTable&quot;&gt;con_test&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;checkoutTimeout&quot;&gt;30000&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;idleConnectionTestPeriod&quot;&gt;30&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;initialPoolSize&quot;&gt;10&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;maxIdleTime&quot;&gt;30&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;maxPoolSize&quot;&gt;25&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;minPoolSize&quot;&gt;10&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;maxStatements&quot;&gt;0&lt;/property&gt;</div>
<div>&nbsp;&nbsp;&nbsp; &lt;user-overrides user=&quot;swaldman&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/user-overrides&gt;</div>
<div>&nbsp; &lt;/default-config&gt;<br />
&nbsp; &lt;named-config name=&quot;dumbTestConfig&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;property name=&quot;maxStatements&quot;&gt;200&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;user-overrides user=&quot;poop&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;maxStatements&quot;&gt;300&lt;/property&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/user-overrides&gt;<br />
&nbsp;&nbsp; &lt;/named-config&gt;<br />
&lt;/c3p0-config&gt;</div>
          <br/>
          <span style="color:red;">
            <a href="http://fghost.javaeye.com/blog/221144#comments" style="color:red;">本文的讨论也很精彩，浏览讨论>></a>
          </span>
          <br/><br/><br/>
          <span style="color:#E28822;">JavaEye推荐</span>
          <br/>
          <ul class='adverts'><li><a href='/adverts/41' target='_blank'><span style="color:red;font-weight:bold;">北京: 千橡集团暨校内网诚聘软件研发工程师</span></a></li><li><a href='/adverts/42' target='_blank'><span style="color:red;font-weight:bold;">搜狐网站诚聘Java、PHP和C++工程师</span></a></li></ul>
          <br/><br/><br/>
          ]]>
        </description>
        <pubDate>Tue, 29 Jul 2008 16:20:43 +0800</pubDate>
        <link>http://fghost.javaeye.com/blog/221144</link>
        <guid>http://fghost.javaeye.com/blog/221144</guid>
      </item>
      <item>
        <title>UNIX两个后台执行命令的区别</title>
        <author>FGhost</author>
        <description>
          <![CDATA[
          <br/>
          作者: <a href="http://fghost.javaeye.com">FGhost</a>&nbsp;
          链接：<a href="http://fghost.javaeye.com/blog/218978" style="color:red;">http://fghost.javaeye.com/blog/218978</a>&nbsp;
          发表时间: 2008年07月24日
          <br/><br/>
          声明：本文系JavaEye网站发布的原创博客文章，未经作者书面许可，严禁任何网站转载本文，否则必将追究法律责任！
          <br/><br/>
          <p><span style="font-family: Courier New;"><span style="color: #ff0000;"><strong>&amp;命令</strong>
</span>
:<br />
&nbsp;&nbsp;&nbsp; 使用这个命令可以解放出终端接着做别的事情,但是需要用户交互的程序就不能放在后台<br />
&nbsp;&nbsp;&nbsp;&nbsp;格式: command
 <span style="color: #800000;"><strong>&amp;&nbsp;</strong>
</span>
&nbsp;&nbsp; 注意标准输出一样会显示在屏幕上,可以使用重定向方法解决</span>
</p>
<p>
<span style="font-family: Courier New;"><span style="color: #ff0000;"><strong>nohup命令</strong>
</span>
:<br />
&nbsp;&nbsp;&nbsp;&nbsp;格式: <span style="color: #800000;"><strong>nohup</strong>
</span>
 command <strong>&amp;</strong>
&nbsp;&nbsp;&nbsp;&nbsp; 这样在这个用户退出之后,进程一样会继续运行,不会中断<br />
&nbsp;&nbsp;&nbsp; 使用这个命令,缺省该作业的输出都会定向到一个名为nohup.out的文件中</span>
</p>
          <br/>
          <span style="color:red;">
            <a href="http://fghost.javaeye.com/blog/218978#comments" style="color:red;">本文的讨论也很精彩，浏览讨论>></a>
          </span>
          <br/><br/><br/>
          <span style="color:#E28822;">JavaEye推荐</span>
          <br/>
          <ul class='adverts'><li><a href='/adverts/41' target='_blank'><span style="color:red;font-weight:bold;">北京: 千橡集团暨校内网诚聘软件研发工程师</span></a></li><li><a href='/adverts/42' target='_blank'><span style="color:red;font-weight:bold;">搜狐网站诚聘Java、PHP和C++工程师</span></a></li></ul>
          <br/><br/><br/>
          ]]>
        </description>
        <pubDate>Thu, 24 Jul 2008 11:37:50 +0800</pubDate>
        <link>http://fghost.javaeye.com/blog/218978</link>
        <guid>http://fghost.javaeye.com/blog/218978</guid>
      </item>
      <item>
        <title>Cluster cache 的选择?</title>
        <author>FGhost</author>
        <description>
          <![CDATA[
          <br/>
          作者: <a href="http://fghost.javaeye.com">FGhost</a>&nbsp;
          链接：<a href="http://fghost.javaeye.com/blog/214747" style="color:red;">http://fghost.javaeye.com/blog/214747</a>&nbsp;
          发表时间: 2008年07月14日
          <br/><br/>
          声明：本文系JavaEye网站发布的原创博客文章，未经作者书面许可，严禁任何网站转载本文，否则必将追究法律责任！
          <br/><br/>
          <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 自从认识hibernate以来就知道 Cluster cache,但当时听说 只有JBoss TreeCache支持Cluster,而且不成熟，不知道现在的Cluster Cache是否成熟？</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近要写一个高并发的IM Server (需要cluster),于是在网上查了一下，现在支持 Cluster的Cache在Java领域比较受欢迎的有三个，分别是&nbsp; JBoss的TreeCache 、OpenSymphony的OSCache和Apache的JCA(Java Cache System)。对于缓存类型来说，我不需要事务型缓存。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 要求：1、会修改缓存中数据，但修改的数据不需要同步到数据库。 &nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2、 cluster</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3、定时做 数据库到缓存的同步</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 请有相关经验的同志帮忙做一个选择，谢谢！</p>
          <br/>
          <span style="color:red;">
            <a href="http://fghost.javaeye.com/blog/214747#comments" style="color:red;">本文的讨论也很精彩，浏览讨论>></a>
          </span>
          <br/><br/><br/>
          <span style="color:#E28822;">JavaEye推荐</span>
          <br/>
          <ul class='adverts'><li><a href='/adverts/41' target='_blank'><span style="color:red;font-weight:bold;">北京: 千橡集团暨校内网诚聘软件研发工程师</span></a></li><li><a href='/adverts/42' target='_blank'><span style="color:red;font-weight:bold;">搜狐网站诚聘Java、PHP和C++工程师</span></a></li></ul>
          <br/><br/><br/>
          ]]>
        </description>
        <pubDate>Mon, 14 Jul 2008 23:17:44 +0800</pubDate>
        <link>http://fghost.javaeye.com/blog/214747</link>
        <guid>http://fghost.javaeye.com/blog/214747</guid>
      </item>
      <item>
        <title>[输入法]ubuntu在英文环境下启用scim</title>
        <author>FGhost</author>
        <description>
          <![CDATA[
          <br/>
          作者: <a href="http://fghost.javaeye.com">FGhost</a>&nbsp;
          链接：<a href="http://fghost.javaeye.com/blog/198051" style="color:red;">http://fghost.javaeye.com/blog/198051</a>&nbsp;
          发表时间: 2008年05月28日
          <br/><br/>
          声明：本文系JavaEye网站发布的原创博客文章，未经作者书面许可，严禁任何网站转载本文，否则必将追究法律责任！
          <br/><br/>
          <div class="blog_content">
      简单办法 通过 im-switch</div>
<div class="blog_content">
1: install im-switch, by using &quot;apt-get install im-switch&quot;
</div>
<div class="blog_content">2: &quot;im-switch -s none&quot;  to remove all installed input methods
</div>
<div class="blog_content">3: &quot;im-switch-s scim&quot; to integrate scim with your windows</div>
<div class="blog_content">
4: reboot and see what you get
  </div>
          <br/>
          <span style="color:red;">
            <a href="http://fghost.javaeye.com/blog/198051#comments" style="color:red;">本文的讨论也很精彩，浏览讨论>></a>
          </span>
          <br/><br/><br/>
          <span style="color:#E28822;">JavaEye推荐</span>
          <br/>
          <ul class='adverts'><li><a href='/adverts/42' target='_blank'><span style="color:red;font-weight:bold;">搜狐网站诚聘Java、PHP和C++工程师</span></a></li><li><a href='/adverts/41' target='_blank'><span style="color:red;font-weight:bold;">北京: 千橡集团暨校内网诚聘软件研发工程师</span></a></li></ul>
          <br/><br/><br/>
          ]]>
        </description>
        <pubDate>Wed, 28 May 2008 23:52:08 +0800</pubDate>
        <link>http://fghost.javaeye.com/blog/198051</link>
        <guid>http://fghost.javaeye.com/blog/198051</guid>
      </item>
      <item>
        <title>［输入法］ 基于SCIM 搞了个“万能五笔” （支持五笔、拼音 、英文 输入 ）</title>
        <author>FGhost</author>
        <description>
          <![CDATA[
          <br/>
          作者: <a href="http://fghost.javaeye.com">FGhost</a>&nbsp;
          链接：<a href="http://fghost.javaeye.com/blog/108909" style="color:red;">http://fghost.javaeye.com/blog/108909</a>&nbsp;
          发表时间: 2007年08月04日
          <br/><br/>
          声明：本文系JavaEye网站发布的原创博客文章，未经作者书面许可，严禁任何网站转载本文，否则必将追究法律责任！
          <br/><br/>
          刚从Win 转到ubuntu 很多地方还不习惯 ，特别是输入法。<br />
在Win下一直用&ldquo;万能五笔&rdquo;－－（支持五笔、拼音 、英文 输入 ），但在ubuntu下找了好久都没找到，<br />
于是看到这篇<a href="http://www.readfree.net/bbs/simple/t4480650.html" target="_blank">www.readfree.net/bbs/simple/t4480650.html </a><br />
很有想法，就看了一下Win下的万能五笔目录，找到了编码文件，太兴奋了。<br />
于是开始搞ubuntu下的wnwb。<br />
<ul>
    <li>处理万能五笔编码文件 </li>
</ul>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 发现原万能五笔里有重码，重码的Key后都跟着&ldquo;&lsquo;&rdquo;（猜想跟权重有关系），于是自己写了个程序处理了一下。<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 重码：<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ably 干练地 <br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ably' 干练地&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 处理结果： <br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 共：301900&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 去掉重码： 21434 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最后剩下： 280466&nbsp;&nbsp;&nbsp;&nbsp; 最长的key为：12<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 文件名：wnwb.txt
<ul>
    <li>SCIM下的五笔码表 </li>
</ul>
<ol>
    <ul>
        <li>进入SCIM码表存放的目录：/usr/share/scim/tables，执行scim-make-table Wubi.bin -o Wubi.txt。 </li>
        <li>通过&nbsp; uuidgen&nbsp; 生成的字符串 替换了 Wubi.txt&nbsp; 里的 uuid </li>
        <li>将上一步的结果 最长的key值加到
        <div class="code_title">Wubu.txt 代码</div>
        <div class="dp-highlighter">
        <div class="bar">&nbsp;</div>
        <ol class="dp-j">
            <li class="alt"><span><span>MAX_KEY_LENGTH&nbsp;=&nbsp;</span><span class="number">12</span><span>&nbsp; <br />
            </span></span></li>
        </ol>
        </div>
        <br />
        </li>
        <li>将上一步的结果wnwb.txt 替换 Wubi.txt 里
        <div class="code_title">Wubi.txt代码</div>
        <div class="dp-highlighter">
        <ol class="dp-j">
            <li class="alt"><span><span>###&nbsp;Begin&nbsp;Table&nbsp;data.&nbsp;&nbsp;</span></span> </li>
            <li class=""><span>BEGIN_TABLE&nbsp;&nbsp;</span> </li>
            <li class="alt"><span>...要替换的内容....&nbsp;&nbsp;</span> </li>
            <li class=""><span>END_TABLE&nbsp;&nbsp;</span> </li>
        </ol>
        </div>
        </li>
    </ul>
</ol>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Wubi.txt 里原来编码记录数：&nbsp; 80121<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 修改后文件另存为：Wnwb.txt<br />
<br />
<ul>
    <li>生成bin文件
    <ul>
        <li>scim-make-table Wnwb.txt -b -o /usr/share/scim/tables/Wnwb.bin </li>
    </ul>
    </li>
    <li>重进XWindow </li>
</ul>
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 思考：<br />
<blockquote>
<ul>
    <li>&nbsp;原Wubt.txt的编码中最后有一个数字，那一定是权重
    <div class="code_title">原Wubi.txt代码</div>
    <div class="dp-highlighter">
    <div class="bar">&nbsp;</div>
    <ol class="dp-j">
        <li class="alt"><span><span>yuwf&nbsp;&nbsp;&nbsp;&nbsp;夜总会&nbsp;</span><span class="number">159</span><span>&nbsp;&nbsp;</span></span> </li>
    </ol>
    </div>
    </li>
    <li>本来担心会不会现在没有权重会不会很乱。试用结果表明没有权重后是用原来编码出文件中出现的顺序。这一点&ldquo;万能五笔&rdquo;的编码文件已经是这样的。&nbsp; <img src="/javascripts/fckeditor/editor/images/smiley/msn/regular_smile.gif" alt="" /> </li>
    <li>本想更换 icon ,试了一下PS，这玩意还真不是我能耍的。<img src="/javascripts/fckeditor/editor/images/smiley/msn/teeth_smile.gif" alt="" />&nbsp; <br />
    还是用原来的icon吧。呵呵 </li>
</ul>
万能五笔的使用：<br />
<ul>
    <li>支持&nbsp; 五笔、拼音、英文 输入<br />
    如：&nbsp; <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nihao&nbsp; ====&gt;&nbsp;&nbsp; 你好<br />
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wqvb&nbsp; =====&gt;&nbsp;&nbsp;&nbsp; 你好<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hello ======&gt;&nbsp; 你好 </li>
    <li>特殊字符：<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zz<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zzb<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zzbd<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zzt<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zzts<br />
    &nbsp;&nbsp;&nbsp; 自己选吧<br />
    <br />
    <h4>附上处理后的结果 bin 文件</h4>
    </li>
</ul>
</blockquote><br />
<br />
          <br/>
          <span style="color:red;">
            <a href="http://fghost.javaeye.com/blog/108909#comments" style="color:red;">本文的讨论也很精彩，浏览讨论>></a>
          </span>
          <br/><br/><br/>
          <span style="color:#E28822;">JavaEye推荐</span>
          <br/>
          <ul class='adverts'><li><a href='/adverts/42' target='_blank'><span style="color:red;font-weight:bold;">搜狐网站诚聘Java、PHP和C++工程师</span></a></li><li><a href='/adverts/41' target='_blank'><span style="color:red;font-weight:bold;">北京: 千橡集团暨校内网诚聘软件研发工程师</span></a></li></ul>
          <br/><br/><br/>
          ]]>
        </description>
        <pubDate>Sat, 04 Aug 2007 14:27:06 +0800</pubDate>
        <link>http://fghost.javaeye.com/blog/108909</link>
        <guid>http://fghost.javaeye.com/blog/108909</guid>
      </item>
  </channel>
</rss>