<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marshal&#039;s Blog</title>
	<atom:link href="http://marshal.easymorse.com/feed" rel="self" type="application/rss+xml" />
	<link>http://marshal.easymorse.com</link>
	<description>It&#039;s swap of marshal&#039;s memory.</description>
	<lastBuildDate>Thu, 11 Mar 2010 05:24:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JavaME SDK 3.0不支持Windows7 x64</title>
		<link>http://marshal.easymorse.com/archives/2307</link>
		<comments>http://marshal.easymorse.com/archives/2307#comments</comments>
		<pubDate>Thu, 11 Mar 2010 05:24:22 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javame]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2307</guid>
		<description><![CDATA[前两天成功的在win7 32位系统下安装了eclipse+mtj+javame sdk3.0的。虽然在javame sdk的官方网站只列出支持windows xp和vista 32位系统。
因此这回没多想，直接在windows7 x64下面安装了javame sdk3，没有任何报错。
然后安装了eclipse 64位系统和mtj，结果配置javame的时候，就是找不到javame设备。
到网上查了一下，可以下结论了，确实不支持。
]]></description>
			<content:encoded><![CDATA[<p>前两天成功的在win7 32位系统下安装了eclipse+mtj+javame sdk3.0的。虽然在javame sdk的官方网站只列出支持windows xp和vista 32位系统。</p>
<p>因此这回没多想，直接在windows7 x64下面安装了javame sdk3，没有任何报错。</p>
<p>然后安装了eclipse 64位系统和mtj，结果配置javame的时候，就是找不到javame设备。</p>
<p>到网上查了一下，可以下结论了，确实不支持。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2307/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>s60第三版的截图工具</title>
		<link>http://marshal.easymorse.com/archives/2306</link>
		<comments>http://marshal.easymorse.com/archives/2306#comments</comments>
		<pubDate>Wed, 10 Mar 2010 09:39:04 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[nokia s60]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2306</guid>
		<description><![CDATA[以前没用过symbian的手机，这次为了开发抓图方便，进了一部nokia 6120ci，便宜，s60第三版，应该是支持截图工具的。
安装了ScreenSnapS60，见：
http://www.terramobilis.com/

以前在其他测试手机上没有问题。
可是安装到6120ci上才发现，该手机没有了edit按键，这是近两年nokia手机的趋势吧，取消了“铅笔”键。说是合到#键了。可是使用ScreenSnapS60的默认组合键edit+*或者#+*，就是不管用。
在网上找了另外一个工具，见：
http://www.antonypranata.com/screenshot/download-screenshot-symbian-os-s60

不错，很好用，可以用c键作为热键，见抓图：
 
很好。而且，如果需要用到c键的时候，可以将热键改为#+*。
]]></description>
			<content:encoded><![CDATA[<p>以前没用过symbian的手机，这次为了开发抓图方便，进了一部nokia 6120ci，便宜，s60第三版，应该是支持截图工具的。</p>
<p>安装了ScreenSnapS60，见：</p>
<blockquote><p><a href="http://www.terramobilis.com/">http://www.terramobilis.com/</a></p>
</blockquote>
<p>以前在其他测试手机上没有问题。</p>
<p>可是安装到6120ci上才发现，该手机没有了edit按键，这是近两年nokia手机的趋势吧，取消了“铅笔”键。说是合到#键了。可是使用ScreenSnapS60的默认组合键edit+*或者#+*，就是不管用。</p>
<p>在网上找了另外一个工具，见：</p>
<blockquote><p><a href="http://www.antonypranata.com/screenshot/download-screenshot-symbian-os-s60">http://www.antonypranata.com/screenshot/download-screenshot-symbian-os-s60</a></p>
</blockquote>
<p>不错，很好用，可以用c键作为热键，见抓图：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0009.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0009" border="0" alt="Screenshot0009" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0009_thumb.jpg" width="184" height="244" /></a> </p>
<p>很好。而且，如果需要用到c键的时候，可以将热键改为#+*。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2306/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>同步android手机联系人到iphone和S60系统</title>
		<link>http://marshal.easymorse.com/archives/2303</link>
		<comments>http://marshal.easymorse.com/archives/2303#comments</comments>
		<pubDate>Wed, 10 Mar 2010 09:30:46 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google contacts]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[nokia s60]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2303</guid>
		<description><![CDATA[手里面本来有两部手机，一部iphone，一部android（以前是HTC HERO，现在是NEXUS ONE）。
它们之间的联系人同步，采用的方式是，iphone通过itunes，然后设置google帐号来实现的。每次都记录在android系统中，android系统会在能够上网的时候和google联系人（http://www.google.com/contacts）网站同步。iphone再通过itunes软件做同步。
现在又增加了个nokia S60手机，nokia 6120ci，如何同步android中的联系人呢？
还是想用google联系人网站，查了一下没有问题。不用安装任何软件。使用手机自带的功能即可。通过syncml协议和google联系人网址通信，同步联系人信息。
具体步骤，看图吧。
 
选择设置，然后：
 

 
选择连接功能，然后
 
选择同步处理，然后
 
选择，然后，新同步情景模式，这样创建一个新的同步连接。
然后，选应用程序，在里面只选名片夹即可，目前只能和google同步联系人，其他的都无法同步。
 
在里面写成这样
 
然后返回，选择连接设置，这部分比较关键。
 
主机地址。
 
端口号，默认是80，改为443。
 
再有，就是google邮箱帐号信息。

只有的一些选项。
这样配置好以后，就可以用这个连接做同步了。6120ci看起来不起眼，还是3G手机，加上我用的是3G联通的卡，几百个联系人很快就同步过来，很方便啦。
]]></description>
			<content:encoded><![CDATA[<p>手里面本来有两部手机，一部iphone，一部android（以前是HTC HERO，现在是NEXUS ONE）。</p>
<p>它们之间的联系人同步，采用的方式是，iphone通过itunes，然后设置google帐号来实现的。每次都记录在android系统中，android系统会在能够上网的时候和google联系人（<a href="http://www.google.com/contacts">http://www.google.com/contacts</a>）网站同步。iphone再通过itunes软件做同步。</p>
<p>现在又增加了个nokia S60手机，nokia 6120ci，如何同步android中的联系人呢？</p>
<p>还是想用google联系人网站，查了一下没有问题。不用安装任何软件。使用手机自带的功能即可。通过syncml协议和google联系人网址通信，同步联系人信息。</p>
<p>具体步骤，看图吧。</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0014.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0014" border="0" alt="Screenshot0014" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0014_thumb.jpg" width="184" height="244" /></a> </p>
<p>选择设置，然后：</p>
<p> <span id="more-2303"></span>
</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0015.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0015" border="0" alt="Screenshot0015" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0015_thumb.jpg" width="184" height="244" /></a> </p>
<p>选择连接功能，然后</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0016.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0016" border="0" alt="Screenshot0016" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0016_thumb.jpg" width="184" height="244" /></a> </p>
<p>选择同步处理，然后</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0017.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0017" border="0" alt="Screenshot0017" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0017_thumb.jpg" width="184" height="244" /></a> </p>
<p>选择，然后，新同步情景模式，这样创建一个新的同步连接。</p>
<p>然后，选应用程序，在里面只选名片夹即可，目前只能和google同步联系人，其他的都无法同步。</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0018.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0018" border="0" alt="Screenshot0018" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0018_thumb.jpg" width="184" height="244" /></a> </p>
<p>在里面写成这样</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0023.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0023" border="0" alt="Screenshot0023" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0023_thumb.jpg" width="184" height="244" /></a> </p>
<p>然后返回，选择连接设置，这部分比较关键。</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0019.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0019" border="0" alt="Screenshot0019" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0019_thumb.jpg" width="184" height="244" /></a> </p>
<p>主机地址。</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0020.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0020" border="0" alt="Screenshot0020" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0020_thumb.jpg" width="184" height="244" /></a> </p>
<p>端口号，默认是80，改为443。</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0021.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0021" border="0" alt="Screenshot0021" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0021_thumb.jpg" width="184" height="244" /></a> </p>
<p>再有，就是google邮箱帐号信息。</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0022.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Screenshot0022" border="0" alt="Screenshot0022" src="http://marshal.easymorse.com/wp-content/uploads/2010/03/Screenshot0022_thumb.jpg" width="184" height="244" /></a></p>
<p>只有的一些选项。</p>
<p>这样配置好以后，就可以用这个连接做同步了。6120ci看起来不起眼，还是3G手机，加上我用的是3G联通的卡，几百个联系人很快就同步过来，很方便啦。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2303/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ubuntu下安装websvn</title>
		<link>http://marshal.easymorse.com/archives/2282</link>
		<comments>http://marshal.easymorse.com/archives/2282#comments</comments>
		<pubDate>Wed, 24 Feb 2010 03:13:36 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[websvn]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2282</guid>
		<description><![CDATA[使用apache+svn的方式，可以通过浏览器访问，但是这次比如xml和java文件都要下载，而不能在浏览器中直接显示。
忘记在哪个里面修改了，还是因为svn版本升级的问题。
试试websvn，通过apt-get，虽然不是最新版本，但是安装很简单，使用也方便。
安装：
sudo apt-get install websvn

访问也很简单，直接：
http://ip/websvn

websvn截图：
 
 
这是源代码显示的截图：

]]></description>
			<content:encoded><![CDATA[<p>使用apache+svn的方式，可以通过浏览器访问，但是这次比如xml和java文件都要下载，而不能在浏览器中直接显示。</p>
<p>忘记在哪个里面修改了，还是因为svn版本升级的问题。</p>
<p>试试websvn，通过apt-get，虽然不是最新版本，但是安装很简单，使用也方便。</p>
<p>安装：</p>
<blockquote><p>sudo apt-get install websvn</p>
</blockquote>
<p>访问也很简单，直接：</p>
<blockquote><p><font style="background-color: #ffffff"><a href="http://ip/websvn">http://ip/websvn</a></font></p>
</blockquote>
<p>websvn截图：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image11.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb11.png" width="467" height="203" /></a> </p>
<p> <span id="more-2282"></span>
<p>这是源代码显示的截图：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image12.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb12.png" width="465" height="282" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2282/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ubuntu下使用svnmanager集成svn和apache</title>
		<link>http://marshal.easymorse.com/archives/2276</link>
		<comments>http://marshal.easymorse.com/archives/2276#comments</comments>
		<pubDate>Tue, 23 Feb 2010 08:13:20 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svnmanager]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2276</guid>
		<description><![CDATA[集成svn和apache，使用了svnmanager。如果纯手工的配置，很麻烦，而且，密码也不好管理。
首先，需要安装一下基本的软件和包：
sudo apt-get install apache2 libapache2-mod-python libapache2-svn python-setuptools subversion python-subversion

另外，svnmanager需要php的支持，需要安装pear：
sudo apt-get install php-pear

安装svnmanager所需的库：
sudo pear install VersionControl_SVN-0.3.3

下载svnmanager的包：
wget http://prdownloads.sourceforge.net/svnmanager/svnmanager-1.08.tar.gz

之后，按照svnmanager的安装进行，基本可以将svn和apache集成起来。见：
http://svnmanager.org/index.php?page=install

这里需要注意，如果ubuntu是用中文安装的，那么locale应该：
$lang&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; = &#34;zh_CN.UTF-8&#34;;

 
需要将svnmanager目录设置为apache用户所有，否则访问中会有问题。
另外，需要创建数据库，我这里使用mysql。
]]></description>
			<content:encoded><![CDATA[<p>集成svn和apache，使用了svnmanager。如果纯手工的配置，很麻烦，而且，密码也不好管理。</p>
<p>首先，需要安装一下基本的软件和包：</p>
<blockquote><p>sudo apt-get install apache2 libapache2-mod-python libapache2-svn python-setuptools subversion python-subversion</p>
</blockquote>
<p>另外，svnmanager需要php的支持，需要安装pear：</p>
<blockquote><p>sudo apt-get install php-pear</p>
</blockquote>
<p>安装svnmanager所需的库：</p>
<blockquote><p>sudo pear install VersionControl_SVN-0.3.3</p>
</blockquote>
<p>下载svnmanager的包：</p>
<blockquote><p>wget <a href="http://prdownloads.sourceforge.net/svnmanager/svnmanager-1.08.tar.gz">http://prdownloads.sourceforge.net/svnmanager/svnmanager-1.08.tar.gz</a></p>
</blockquote>
<p>之后，按照svnmanager的安装进行，基本可以将svn和apache集成起来。见：</p>
<blockquote><p><a href="http://svnmanager.org/index.php?page=install">http://svnmanager.org/index.php?page=install</a></p>
</blockquote>
<p>这里需要注意，如果ubuntu是用中文安装的，那么locale应该：</p>
<blockquote><p>$lang&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; = &quot;zh_CN.UTF-8&quot;;</p>
</blockquote>
<p> <span id="more-2276"></span>
<p>需要将svnmanager目录设置为apache用户所有，否则访问中会有问题。</p>
<p>另外，需要创建数据库，我这里使用mysql。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2276/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gnway在ubuntu下安装</title>
		<link>http://marshal.easymorse.com/archives/2275</link>
		<comments>http://marshal.easymorse.com/archives/2275#comments</comments>
		<pubDate>Tue, 23 Feb 2010 06:43:45 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[gnway]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2275</guid>
		<description><![CDATA[gnwayhost是动态域名服务商，网站一直使用他们的服务。
该软件因为比较简单，已经多年没有更新，最新版本是1.3.2，2005年发布的。下载地址见：
http://www.gnway.com/service/serviceDownload.php?item=gnhost

不过，该版本之适用于比如redhat，对于ubuntu，因为服务的目录有区别，所以安装脚本会报错。需要手工将gnhostlinuxd复制到/etc/init.d目录下。另外，需要手工编辑：
/etc/gnhostlinux.conf 

内容类似这样：
USERNAME=zhangsan     PASSWORD=p      serverIP=210.51.190.207

 
以前安装均未出现过大的问题，这次安装后运行脚本总是报：
找不到文件或目录

因此怀疑是缺少相关库文件，这次使用的是64位的系统。安装了如下工具和类库后，问题解决。
sudo apt-get install autoconf autoconf2.59 automake1.9 autotools-dev binfmt-support binutils-avr gcc-4.4-multilib

估计是gcc-4.4-multilib。
然后，使用ubuntu下设置tomcat自启动中的方法设为自启动即可。
]]></description>
			<content:encoded><![CDATA[<p>gnwayhost是动态域名服务商，网站一直使用他们的服务。</p>
<p>该软件因为比较简单，已经多年没有更新，最新版本是1.3.2，2005年发布的。下载地址见：</p>
<blockquote><p><a title="http://www.gnway.com/service/serviceDownload.php?item=gnhost" href="http://www.gnway.com/service/serviceDownload.php?item=gnhost">http://www.gnway.com/service/serviceDownload.php?item=gnhost</a></p>
</blockquote>
<p>不过，该版本之适用于比如redhat，对于ubuntu，因为服务的目录有区别，所以安装脚本会报错。需要手工将gnhostlinuxd复制到/etc/init.d目录下。另外，需要手工编辑：</p>
<blockquote><p>/etc/gnhostlinux.conf </p>
</blockquote>
<p>内容类似这样：</p>
<blockquote><p>USERNAME=zhangsan     <br />PASSWORD=p      <br />serverIP=210.51.190.207</p>
</blockquote>
<p> <span id="more-2275"></span>
<p>以前安装均未出现过大的问题，这次安装后运行脚本总是报：</p>
<blockquote><p><font style="background-color: #ffffff">找不到文件或目录</font></p>
</blockquote>
<p>因此怀疑是缺少相关库文件，这次使用的是64位的系统。安装了如下工具和类库后，问题解决。</p>
<blockquote><p>sudo apt-get install autoconf autoconf2.59 automake1.9 autotools-dev binfmt-support binutils-avr gcc-4.4-multilib</p>
</blockquote>
<p>估计是gcc-4.4-multilib。</p>
<p>然后，使用<a href="http://marshal.easymorse.com/archives/2274" title="ubuntu下设置tomcat自启动">ubuntu下设置tomcat自启动</a>中的方法设为自启动即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2275/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu下设置tomcat自启动</title>
		<link>http://marshal.easymorse.com/archives/2274</link>
		<comments>http://marshal.easymorse.com/archives/2274#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:59:21 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2274</guid>
		<description><![CDATA[按照在ubuntu上手工安装tomcat6脚本可以启动和关闭tomcat，如果要让tomcat自启动，可以使用sysv的启动配置工具。
首先安装:
sudo apt-get install sysv-rc-conf

然后，找到tomcat，将2/3/4/5都选中即可，然后按q退出。如下图：

]]></description>
			<content:encoded><![CDATA[<p>按照<a href="http://marshal.easymorse.com/archives/1100" title="在ubuntu上手工安装tomcat6">在ubuntu上手工安装tomcat6</a>脚本可以启动和关闭tomcat，如果要让tomcat自启动，可以使用sysv的启动配置工具。</p>
<p>首先安装:</p>
<blockquote><p>sudo apt-get install sysv-rc-conf</p>
</blockquote>
<p>然后，找到tomcat，将2/3/4/5都选中即可，然后按q退出。如下图：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image10.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb10.png" width="523" height="259" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2274/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tomcat与日志处理</title>
		<link>http://marshal.easymorse.com/archives/2271</link>
		<comments>http://marshal.easymorse.com/archives/2271#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:50:17 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2271</guid>
		<description><![CDATA[tomcat6，使用log4j做日志，tomcat默认使用的是java logging api，功能不够强大，以前，我们使用混合linux脚本的方式做日志的滚动（每天一个日志）。
如果使用log4j的话，可以很容易实现这些功能。
具体做法，见：
http://tomcat.apache.org/tomcat-6.0-doc/logging.html

 
参见该文档的log4j部分。按照步骤，需要到：
http://apache.freelamp.com/tomcat/tomcat-6/v6.0.24/bin/extras/

这里下载两个文件，替代默认的日志实现库。
文档中是按照日志大小做的滚动策略，这里给出按照日期的配置：
log4j.rootLogger=INFO, R     log4j.appender.R=org.apache.log4j.DailyRollingFileAppender      log4j.appender.R.File=${catalina.base}/logs/tomcat.log      log4j.appender.R.DatePattern=&#8217;.'yyyy-MM-dd      log4j.appender.R.Append=true      log4j.appender.R.layout=org.apache.log4j.PatternLayout      log4j.appender.R.layout.ConversionPattern=%p %t %c &#8211; %m%n

]]></description>
			<content:encoded><![CDATA[<p>tomcat6，使用log4j做日志，tomcat默认使用的是java logging api，功能不够强大，以前，我们使用混合linux脚本的方式做日志的滚动（每天一个日志）。</p>
<p>如果使用log4j的话，可以很容易实现这些功能。</p>
<p>具体做法，见：</p>
<blockquote><p><a href="http://tomcat.apache.org/tomcat-6.0-doc/logging.html">http://tomcat.apache.org/tomcat-6.0-doc/logging.html</a></p>
</blockquote>
<p> <span id="more-2271"></span>
<p>参见该文档的log4j部分。按照步骤，需要到：</p>
<blockquote><p><a href="http://apache.freelamp.com/tomcat/tomcat-6/v6.0.24/bin/extras/">http://apache.freelamp.com/tomcat/tomcat-6/v6.0.24/bin/extras/</a></p>
</blockquote>
<p>这里下载两个文件，替代默认的日志实现库。</p>
<p>文档中是按照日志大小做的滚动策略，这里给出按照日期的配置：</p>
<blockquote><p>log4j.rootLogger=INFO, R     <br />log4j.appender.R=org.apache.log4j.DailyRollingFileAppender      <br />log4j.appender.R.File=${catalina.base}/logs/tomcat.log      <br />log4j.appender.R.DatePattern=&#8217;.'yyyy-MM-dd      <br />log4j.appender.R.Append=true      <br />log4j.appender.R.layout=org.apache.log4j.PatternLayout      <br />log4j.appender.R.layout.ConversionPattern=%p %t %c &#8211; %m%n</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2271/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>测试公司服务器和家里服务器的性能差别</title>
		<link>http://marshal.easymorse.com/archives/2264</link>
		<comments>http://marshal.easymorse.com/archives/2264#comments</comments>
		<pubDate>Mon, 22 Feb 2010 10:06:58 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[家用服务器]]></category>
		<category><![CDATA[性能测试]]></category>
		<category><![CDATA[测试]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2264</guid>
		<description><![CDATA[公司服务器是几年前的至强服务器（DELL PowerEdge 2850），主频3GHz，双CPU。家里服务器，是atom 1.6GHz的双核四线程的N270。
操作系统是相同的，ubuntu 9.10 server，64位。
使用ffmpeg转码视频，运行结果，公司服务器快一倍左右。
这是公司服务器的：
 
这是家里服务器的：

差距还是很大的。
 
可以通过lscpu查看cpu的具体信息。
这是dell 2850的：
 
这是家里服务器的：

]]></description>
			<content:encoded><![CDATA[<p>公司服务器是几年前的至强服务器（DELL PowerEdge 2850），主频3GHz，双CPU。家里服务器，是atom 1.6GHz的双核四线程的N270。</p>
<p>操作系统是相同的，ubuntu 9.10 server，64位。</p>
<p>使用ffmpeg转码视频，运行结果，公司服务器快一倍左右。</p>
<p>这是公司服务器的：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image6.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb6.png" width="247" height="117" /></a> </p>
<p>这是家里服务器的：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image7.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb7.png" width="225" height="116" /></a></p>
<p>差距还是很大的。</p>
<p> <span id="more-2264"></span>
<p>可以通过lscpu查看cpu的具体信息。</p>
<p>这是dell 2850的：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image8.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb8.png" width="260" height="199" /></a> </p>
<p>这是家里服务器的：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/image9.png" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/image_thumb9.png" width="260" height="206" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2264/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>滚筒洗衣机备选型号</title>
		<link>http://marshal.easymorse.com/archives/2259</link>
		<comments>http://marshal.easymorse.com/archives/2259#comments</comments>
		<pubDate>Sat, 20 Feb 2010 06:10:55 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[家务实践]]></category>
		<category><![CDATA[洗衣机]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/2259</guid>
		<description><![CDATA[西门子Silver WD7125
 
官方介绍网址：
http://www.siemens-ha.com.cn/pdt_detail.php?f=25&#38;t=44&#38;productId=81&#38;seriesId=21&#38;categoryId=49&#38;categoryName=%B9%F6%CD%B2%CF%B4%D2%C2%B8%C9%D2%C2%BB%FA&#38;seriesName=%CC%EC%B8%B3%CF%B5%C1%D0%CF%B4%D2%C2%B8%C9%D2%C2%BB%FA#2

选择理由：

西门子品牌； 
使用皮带电机，而不是dd电机，松下dd电机较贵，皮带电机噪音大一些，但是成熟，质量文档，性价比较好； 
使用直筒，而不是松下的10度斜筒，斜筒衣物容易堆积到底部，直筒安装的时候，可能要有一个台子，这样不用弯腰； 
使用上排水，而不是下排水，后者筒内容易残留污水，前者也可以将筒内水蒸汽中霉菌排出； 
电机转速高，据说国内的西门子电机只有1000转以上的才是博世的。 

在京东商城看到的价格：6000元。
]]></description>
			<content:encoded><![CDATA[<h4>西门子Silver WD7125</h4>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2010/02/56ce1504f92f.jpg" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="点击查看下一张" border="0" alt="点击查看下一张" src="http://marshal.easymorse.com/wp-content/uploads/2010/02/thumb.jpg" width="436" height="333" /></a> </p>
<p>官方介绍网址：</p>
<blockquote><p><a href="http://www.siemens-ha.com.cn/pdt_detail.php?f=25&amp;t=44&amp;productId=81&amp;seriesId=21&amp;categoryId=49&amp;categoryName=%B9%F6%CD%B2%CF%B4%D2%C2%B8%C9%D2%C2%BB%FA&amp;seriesName=%CC%EC%B8%B3%CF%B5%C1%D0%CF%B4%D2%C2%B8%C9%D2%C2%BB%FA#2">http://www.siemens-ha.com.cn/pdt_detail.php?f=25&amp;t=44&amp;productId=81&amp;seriesId=21&amp;categoryId=49&amp;categoryName=%B9%F6%CD%B2%CF%B4%D2%C2%B8%C9%D2%C2%BB%FA&amp;seriesName=%CC%EC%B8%B3%CF%B5%C1%D0%CF%B4%D2%C2%B8%C9%D2%C2%BB%FA#2</a></p>
</blockquote>
<p>选择理由：</p>
<ul>
<li>西门子品牌； </li>
<li>使用皮带电机，而不是dd电机，松下dd电机较贵，皮带电机噪音大一些，但是成熟，质量文档，性价比较好； </li>
<li>使用直筒，而不是松下的10度斜筒，斜筒衣物容易堆积到底部，直筒安装的时候，可能要有一个台子，这样不用弯腰； </li>
<li>使用上排水，而不是下排水，后者筒内容易残留污水，前者也可以将筒内水蒸汽中霉菌排出； </li>
<li>电机转速高，据说国内的西门子电机只有1000转以上的才是博世的。 </li>
</ul>
<p>在京东商城看到的价格：6000元。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/2259/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
