<?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>Ursob &#187; ripflowers</title>
	<atom:link href="http://ursob.org/author/ripflowers/feed/" rel="self" type="application/rss+xml" />
	<link>http://ursob.org</link>
	<description>Code &#38;&#38; Riff</description>
	<lastBuildDate>Thu, 02 Sep 2010 11:58:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>android是什么意思-更好的方式认识Android</title>
		<link>http://ursob.org/2010/09/02/android-mean/</link>
		<comments>http://ursob.org/2010/09/02/android-mean/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 11:57:44 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=501</guid>
		<description><![CDATA[Android已经是目前炙手可热的移动操作系统。但是android是什么意思，其实更重要的是，它是否适合你？

android是什么意思


Android是一个智能手机操作系统。有Google在2007年底推出，推出伊始变被认为认为是Google用来抵御苹果iPhone的武器。不同于iPhone/iOS的是，Android手机由不同的手机制造商制造。Google，作为Android的拥有者，并不直接生产手机。Android为我们提供多任务的服务，所以当你打开一个新的应用程序的时候，你可以在后台继续运行当前正在运行的应用，而不是像iPhone一样要将它关掉。同时基于Google强大的云计算能力和业务支撑体系，Android能够简单，方便的在不同的设备之间同步联系人，邮件，日历，甚至是文件，同时可以方便的使用Google的各种优秀的应用服务。
同时Android也能够运行第三方应用程序，Android Market上面有数不清的第三方应用程序可以下载使用。

Android的竞争力
Android的主要卖点之一，是在不同设备之间轻松同步资料：“使用Android平台能够轻松的同步日历，文件和联系人，而无需通过USB电缆将手机连接到电脑上升，特别是当我在两台Android手机之间同步资料的时候”阿西库雷希，一个Android用户如是说。
但它并不是Android唯一的优势。Android手机很容易被使用，像其他智能手机一样，用户可以根据自己的需要下载不同的应用程序。库雷希正是冲着这一点才购买Android的：“当我第一次拿到Android手机时便通过Android Market下载了各种应用，包括 reader，listen，maps， voice， gesture search， goggles， buzz  ——几乎所有的有趣的互联网应用，我最感兴趣的真正的多任务处理的一个明显的优势是在主屏幕上添加各种widgets。，轻轻的扫过手指，并能获得Facebook和Twitter的更新。”
相比其他竞争对手，Android提供了一个更加开放的系统。库雷希希望，智能手机能够远离底层系统是由一家公司控制的时代：“我觉得，一个开源的手机操作系统能够提供更多的服务，特别是创新的应用程序，不需要得到“big brother”的批准。”

Android能够提供给商业客户什么？
在很多方面，Android并不只是一个手机操作系统那么简单，如果你愿意，它可以为您的整个商业生态系统提供计算支撑。David Hathiramani是一家在线服装定制网站的的老板，同时也是Android的商业客户。作为一个小企业主，他发现通过一个在线的通讯录系统和雇员保持联系的代价十分昂贵 &#8211; 但不是在每一个25英镑的谷歌应用服务（google.com收取年的头/ 1）。后来他选择了Android， “它是免费的，并且和google应用完美结合，如完全的同步联系人，邮件和日历。我们的团队可以在移动中工作。我们在火车上都可以完成交易——这是在其他平台上是贵得惊人的。”
值得强调的是惊喜不仅仅来自Android手机本身，更多的来至谷歌服务，对谷歌服务的完美集成，如集成邮件，联系人，日历和文档使Hathiramani显得非常高兴，这意味着他可以放弃其他平台所需要支付的昂贵的的费用，在Android上非常便宜的办公。
Android究竟有多么受欢迎？
很多分析家都在惊呼Android今年在市场上取得的巨大成果。在美国市场，Android的占有率已经达到23%以上，仅次于BlackBerry，而已经超过iPhone。许多经济学家都在预测Android将成为在不久的将来，Android的占有率将达到第一。
但是，无论Android是什么或什么都不是，这都不重要，说实话，很少有用户会关心Android是否占有市场，又是否成为市场的领导者。我们只关心我们选择的手机，是否好用，能否根据我们的工作和使用习惯方便的为我们组织信息组织，而不需要我们获得计算机专业的学位才能够操纵它们。
文章转载自：APP虎——你想要的质优android软件 [http://apphu.com]
本文标题： android是什么意思-更好的方式认识Android
本文地址: http://apphu.com/android-mean
]]></description>
			<content:encoded><![CDATA[<p>Android已经是目前炙手可热的移动操作系统。但是<strong>android是什么意思</strong>，其实更重要的是，它是否适合你？</p>
<h4><a href="http://apphu.com/android-mean"><br />
android是什么意思</a></h4>
<p>
<img src="http://blog.donews.com/apphu/files/2010/08/pirate-225x300.jpg" alt="android是什么意思"/></p>
<p><a href="http://apphu.com">Android</a>是一个智能手机操作系统。有Google在2007年底推出，推出伊始变被认为认为是Google用来抵御苹果iPhone的武器。不同于iPhone/iOS的是，<a href="http://apphu.com/android2-0">Android手机</a>由不同的手机制造商制造。Google，作为Android的拥有者，并不直接生产手机。Android为我们提供多任务的服务，所以当你打开一个新的应用程序的时候，你可以在后台继续运行当前正在运行的应用，而不是像iPhone一样要将它关掉。同时基于Google强大的云计算能力和业务支撑体系，Android能够简单，方便的在不同的设备之间同步联系人，邮件，日历，甚至是文件，同时可以方便的使用Google的各种优秀的应用服务。</p>
<p>同时Android也能够运行第三方应用程序，<a href="http://apphu.com/androidmarket">Android Market</a>上面有数不清的第三方应用程序可以下载使用。<br />
<strong><br />
Android的竞争力</strong></p>
<p>Android的主要卖点之一，是在不同设备之间轻松同步资料：“使用Android平台能够轻松的同步日历，文件和联系人，而无需通过USB电缆将手机连接到电脑上升，特别是当我在两台Android手机之间同步资料的时候”阿西库雷希，一个Android用户如是说。</p>
<p>但它并不是Android唯一的优势。<a href="http://apphu.com/all-android-phone">Android手机</a>很容易被使用，像其他智能手机一样，用户可以根据自己的需要下载不同的应用程序。库雷希正是冲着这一点才购买Android的：“当我第一次拿到Android手机时便通过<a href="http://apphu.com/download-android-market">Android Market下载</a>了各种应用，包括 reader，listen，maps， voice， gesture search， goggles， buzz  ——几乎所有的有趣的互联网应用，我最感兴趣的真正的多任务处理的一个明显的优势是在主屏幕上添加各种widgets。，轻轻的扫过手指，并能获得Facebook和Twitter的更新。”</p>
<p>相比其他竞争对手，Android提供了一个更加开放的系统。库雷希希望，智能手机能够远离底层系统是由一家公司控制的时代：“我觉得，一个开源的手机操作系统能够提供更多的服务，特别是创新的应用程序，不需要得到“big brother”的批准。”<br />
<strong><br />
Android能够提供给商业客户什么？</strong></p>
<p>在很多方面，Android并不只是一个手机操作系统那么简单，如果你愿意，它可以为您的整个商业生态系统提供计算支撑。David Hathiramani是一家在线服装定制网站的的老板，同时也是Android的商业客户。作为一个小企业主，他发现通过一个在线的通讯录系统和雇员保持联系的代价十分昂贵 &#8211; 但不是在每一个25英镑的谷歌应用服务（google.com收取年的头/ 1）。后来他选择了Android， “它是免费的，并且和google应用完美结合，如完全的同步联系人，邮件和日历。我们的团队可以在移动中工作。我们在火车上都可以完成交易——这是在其他平台上是贵得惊人的。”</p>
<p>值得强调的是惊喜不仅仅来自Android手机本身，更多的来至谷歌服务，对谷歌服务的完美集成，如集成邮件，联系人，日历和文档使Hathiramani显得非常高兴，这意味着他可以放弃其他平台所需要支付的昂贵的的费用，在Android上非常便宜的办公。</p>
<p><strong>Android究竟有多么受欢迎？</strong></p>
<p>很多分析家都在惊呼Android今年在市场上取得的巨大成果。在美国市场，Android的占有率已经达到23%以上，仅次于BlackBerry，而已经超过iPhone。许多经济学家都在预测Android将成为在不久的将来，Android的占有率将达到第一。</p>
<p>但是，无论Android是什么或什么都不是，这都不重要，说实话，很少有用户会关心<a href="http://apphu.com">Android</a>是否占有市场，又是否成为市场的领导者。我们只关心我们选择的手机，是否好用，能否根据我们的工作和使用习惯方便的为我们组织信息组织，而不需要我们获得计算机专业的学位才能够操纵它们。</p>
<p>文章转载自：APP虎——你想要的质优<a href="http://apphu.com">android软件</a> [http://apphu.com]</p>
<p>本文标题： <a href="http://apphu.com/android-mean">android是什么意思-更好的方式认识Android</a></p>
<p>本文地址: <a href="http://apphu.com/android-mean">http://apphu.com/android-mean</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/09/02/android-mean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一些想法</title>
		<link>http://ursob.org/2010/08/20/someview/</link>
		<comments>http://ursob.org/2010/08/20/someview/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 07:31:00 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=489</guid>
		<description><![CDATA[
自己一直想做几个自己比较满意的“软件”，之前做的好像都有点受人限制，想法很多，想有自己的一套CRM，还有就是想做一个“记账软件”，需求还在征集中，今天抽点空记录了一些关于记账软件的东西，只是初级版本：


记账软件基本需求：
第一部分：在线理财（说的有点大）

个人记账，家庭记账，消费计划，报表统计，数据的导出和导入（网上银行交易记录的导入等）。
个人记账包括个人的收支管理。收支流水帐。
个人定时任务，即自动记账，平时固定的收入和支出可以实现自动记账，比如房租、物业费都可以设定一下，系统自动帮你记账。
家庭记账，以下为摘抄：注册一个用户并登录后，可以给每个家庭成员设置单独的子用户，您可以看到每个子用户的账务信息，而子用户成员却不能查看您的财务情况，非常适合妻子给老公开设子账户，以防存私房钱，轻松了解老公的每笔钱去处；老公也可以设置私人存款，反向控制老婆的控制。或爸妈可以给儿女开设子账户，全面了解子女的花钱情况；或公司老板给员工开设子用户，掌握每个员工的报销开支和公司开支。
消费计划包括老婆想买的东西，如果没有空的话先记下来，或者是未来的一些消费，先计划一下，方便到时候统一购买，也可以计划一下手中的钞票是否够用，或者是分清轻重缓急，向最重要的事情投入资金。
统计报表，收支走势图，收入分布图（对比图），支出分布图（对比图）。
设置银行帐号，根据从网上银行导出的收入支出数据导入到当前的金库。数据导出备份。


第二部分：模拟股票
暂时没有想法。
第三部分：模拟基金
暂时没有想法。

第四部分：模拟外汇交易
首先自我批评一下（吃一&#8221;喊单&#8221;长一智吧）
自动获取外汇货币对信息。(想办法获取）。
用户进行模拟交易，交易的单子有系统自动计算进场以及盈利值。
价格变动时序图。
实现不同货币对有不同的保证金。保证金是在交易的时候需要扣除的金额，相当于押金。
实现货币信息的及时获取。
参考网站：https://demo.webtradingonline.com/web/webtrading.aspx
用户名： u2314051密码： u2314051


暂时就这么多吧，再补充！
]]></description>
			<content:encoded><![CDATA[<p>
自己一直想做几个自己比较满意的“软件”，之前做的好像都有点受人限制，想法很多，想有自己的一套CRM，还有就是想做一个“记账软件”，需求还在征集中，今天抽点空记录了一些关于记账软件的东西，只是初级版本：
</p>
<blockquote><p>
记账软件基本需求：</p>
<p>第一部分：在线理财（说的有点大）</p>
<ul>
<li>个人记账，家庭记账，消费计划，报表统计，数据的导出和导入（网上银行交易记录的导入等）。</li>
<li>个人记账包括个人的收支管理。收支流水帐。</li>
<li>个人定时任务，即自动记账，平时固定的收入和支出可以实现自动记账，比如房租、物业费都可以设定一下，系统自动帮你记账。</li>
<li>家庭记账，以下为摘抄：注册一个用户并登录后，可以给每个家庭成员设置单独的子用户，您可以看到每个子用户的账务信息，而子用户成员却不能查看您的财务情况，非常适合妻子给老公开设子账户，以防存私房钱，轻松了解老公的每笔钱去处；老公也可以设置私人存款，反向控制老婆的控制。或爸妈可以给儿女开设子账户，全面了解子女的花钱情况；或公司老板给员工开设子用户，掌握每个员工的报销开支和公司开支。</li>
<li>消费计划包括老婆想买的东西，如果没有空的话先记下来，或者是未来的一些消费，先计划一下，方便到时候统一购买，也可以计划一下手中的钞票是否够用，或者是分清轻重缓急，向最重要的事情投入资金。</li>
<li>统计报表，收支走势图，收入分布图（对比图），支出分布图（对比图）。</li>
<li>设置银行帐号，根据从网上银行导出的收入支出数据导入到当前的金库。数据导出备份。</li>
</ul>
</blockquote>
<blockquote><p>第二部分：模拟股票<br />
暂时没有想法。</p></blockquote>
<blockquote><p>第三部分：模拟基金<br />
暂时没有想法。</p></blockquote>
<blockquote><ul>
第四部分：模拟外汇交易</p>
<p>首先自我批评一下（吃一&#8221;喊单&#8221;长一智吧）</p>
<li>自动获取外汇货币对信息。(想办法获取）。</li>
<li>用户进行模拟交易，交易的单子有系统自动计算进场以及盈利值。</li>
<li>价格变动时序图。</li>
<li>实现不同货币对有不同的保证金。保证金是在交易的时候需要扣除的金额，相当于押金。</li>
<li>实现货币信息的及时获取。</li>
<p>参考网站：https://demo.webtradingonline.com/web/webtrading.aspx<br />
用户名： u2314051密码： u2314051
</ul>
</blockquote>
<p>暂时就这么多吧，再补充！</p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/08/20/someview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.lang.NoSuchFieldError: deferredExpression错误解决</title>
		<link>http://ursob.org/2010/08/19/eferredexpression/</link>
		<comments>http://ursob.org/2010/08/19/eferredexpression/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 06:35:07 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[javaWeb]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=487</guid>
		<description><![CDATA[原因是因为项目中有多个jstl的包，产生了冲突，多半是因为项目使用了J2EE 5的包，J2EE 5中自带了jstl的包，而项目中又自己引入了不同版本的jslt包，这样就会引起冲突。]]></description>
			<content:encoded><![CDATA[<p>原因是因为项目中有多个jstl的包，产生了冲突，多半是因为项目使用了J2EE 5的包，J2EE 5中自带了jstl的包，而项目中又自己引入了不同版本的jslt包，这样就会引起冲突。</p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/08/19/eferredexpression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora配置源</title>
		<link>http://ursob.org/2010/08/04/fedora-source/</link>
		<comments>http://ursob.org/2010/08/04/fedora-source/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 09:10:44 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=477</guid>
		<description><![CDATA[
1、删除已经缓存的yum 站点信息

sudo yum clean all



2、安装fastestmirror,让yum自动找最快的源进行下载

sudo yum -y install yum-fastestmirror



3，安装 rpmfusion这个最新特性的源，它包含了很多库，包括多媒体支持库，这样你就不用安装以前常用的freshrpm,和livna等源了

sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm



4，安装fastestmirror,让yum自动找最快的源进行下载

yum -y install yum-fastestmirror

]]></description>
			<content:encoded><![CDATA[<p>
1、删除已经缓存的yum 站点信息</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:Courier New, Courier;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> yum clean all</pre></div></div>

</p>
<p>
2、安装fastestmirror,让yum自动找最快的源进行下载</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:Courier New, Courier;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> yum-fastestmirror</pre></div></div>

</p>
<p>
3，安装 rpmfusion这个最新特性的源，它包含了很多库，包括多媒体支持库，这样你就不用安装以前常用的freshrpm,和livna等源了</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:Courier New, Courier;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download1.rpmfusion.org<span style="color: #000000; font-weight: bold;">/</span>free<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>rpmfusion-free-release-stable.noarch.rpm
<span style="color: #c20cb9; font-weight: bold;">sudo</span> rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download1.rpmfusion.org<span style="color: #000000; font-weight: bold;">/</span>nonfree<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>rpmfusion-nonfree-release-stable.noarch.rpm</pre></div></div>

</p>
<p>
4，安装fastestmirror,让yum自动找最快的源进行下载</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:Courier New, Courier;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> yum-fastestmirror</pre></div></div>
</p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/08/04/fedora-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora安装GCC和Kernel-devel包</title>
		<link>http://ursob.org/2010/08/04/fedaro-gcc-kernel-devel/</link>
		<comments>http://ursob.org/2010/08/04/fedaro-gcc-kernel-devel/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 07:52:54 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=474</guid>
		<description><![CDATA[
NND，在虚拟机上安装完Fedora13之后，想弄个VIM玩玩，但是在./configure的时候提示没有C的编译器，所以就终端安装，翻过头来安装GCC。


#首先执行以下命令，稍带着也把kernel-devel包也安装上
su -c 'yum install gcc kernel-devel'
#等待提示安装，回车即可，安装完毕之后继续再把vmware tools安装上
su -c './vmware-install.pl'


OK，继续转过头去弄我的VIM，不知道会再次遇见什么样的问题，来者不拒。

]]></description>
			<content:encoded><![CDATA[<p>
NND，在虚拟机上安装完Fedora13之后，想弄个VIM玩玩，但是在./configure的时候提示没有C的编译器，所以就终端安装，翻过头来安装GCC。
</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:Courier New, Courier;"><span style="color: #666666; font-style: italic;">#首先执行以下命令，稍带着也把kernel-devel包也安装上</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'yum install gcc kernel-devel'</span>
<span style="color: #666666; font-style: italic;">#等待提示安装，回车即可，安装完毕之后继续再把vmware tools安装上</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'./vmware-install.pl'</span></pre></div></div>

<p>
OK，继续转过头去弄我的VIM，不知道会再次遇见什么样的问题，来者不拒。
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/08/04/fedaro-gcc-kernel-devel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora13下配置当前用户使用sudo命令</title>
		<link>http://ursob.org/2010/08/04/fedora13-sudo/</link>
		<comments>http://ursob.org/2010/08/04/fedora13-sudo/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 07:02:49 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=470</guid>
		<description><![CDATA[
刚安装了fedora13，发现默认的用户是不能使用sudo命令的，G了一下，发现配置非常简单，配置方法如下：


#首先打开文件，命令如下，执行之后提示输入密码
su -c ‘visudo’
#打开之后找到如下代码
## Allow root to run any commands anywhere
root          ALL=&#40;ALL&#41;       ALL
#然后在此代码下添加如下代码
‘你的用户名’  ALL=&#40;ALL&#41;    ALL
#比如我的用户名为ripflowers，则添加代码为：
ripflowers     ALL=&#40;ALL&#41;     ALL



操作完毕保存，保存完毕之后你就可以随意的使用sudo了。
]]></description>
			<content:encoded><![CDATA[<p>
刚安装了fedora13，发现默认的用户是不能使用sudo命令的，G了一下，发现配置非常简单，配置方法如下：
</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:Courier New, Courier;"><span style="color: #666666; font-style: italic;">#首先打开文件，命令如下，执行之后提示输入密码</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> ‘visudo’
<span style="color: #666666; font-style: italic;">#打开之后找到如下代码</span>
<span style="color: #666666; font-style: italic;">## Allow root to run any commands anywhere</span>
root          <span style="color: #007800;">ALL</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL<span style="color: #7a0874; font-weight: bold;">&#41;</span>       ALL
<span style="color: #666666; font-style: italic;">#然后在此代码下添加如下代码</span>
‘你的用户名’  <span style="color: #007800;">ALL</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL<span style="color: #7a0874; font-weight: bold;">&#41;</span>    ALL
<span style="color: #666666; font-style: italic;">#比如我的用户名为ripflowers，则添加代码为：</span>
ripflowers     <span style="color: #007800;">ALL</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL<span style="color: #7a0874; font-weight: bold;">&#41;</span>     ALL</pre></div></div>

</p>
<p>
操作完毕保存，保存完毕之后你就可以随意的使用sudo了。</p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/08/04/fedora13-sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora13 root用户登录</title>
		<link>http://ursob.org/2010/08/03/fedaro13-root/</link>
		<comments>http://ursob.org/2010/08/03/fedaro13-root/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 03:21:01 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=466</guid>
		<description><![CDATA[
在虚拟机上刚装了Fedora13，感觉不错，不过默认root用户是不允许登录到图形界面的，下面是查到的解决方法，也非常简单。


首先在终端中切换到root用户，使用“su”命令，输入密码即可进入。


然后修改/etc/pam.d/gdm和/etc/pam.d/gdm-password两个文件，两个文件中都有一句相同的代码”auth required pam_succeed_if.so user != root quiet“，把两个文件中的这句代码注释掉即可解决，重启之后你就可以用root身份使用你的系统了，不过这样是非常危险的，切记！！！

]]></description>
			<content:encoded><![CDATA[<p>
在虚拟机上刚装了Fedora13，感觉不错，不过默认root用户是不允许登录到图形界面的，下面是查到的解决方法，也非常简单。
</p>
<p>
首先在终端中切换到root用户，使用“su”命令，输入密码即可进入。
</p>
<p>
然后修改/etc/pam.d/gdm和/etc/pam.d/gdm-password两个文件，两个文件中都有一句相同的代码”auth required pam_succeed_if.so user != root quiet“，把两个文件中的这句代码注释掉即可解决，重启之后你就可以用root身份使用你的系统了，不过这样是非常危险的，切记！！！</p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/08/03/fedaro13-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wp-Syntax支持的标签</title>
		<link>http://ursob.org/2010/07/29/wp-syntax/</link>
		<comments>http://ursob.org/2010/07/29/wp-syntax/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 09:34:10 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=448</guid>
		<description><![CDATA[
每次写文章都要查一次，放到这里易于查阅:

&#60;!--1，使用方法--&#62;
&#60;pre lang=&#34;bash&#34;&#62;#这里省略千行代码 &#60; /pre&#62;


/**支持的所有标签**/
'actionscript' =&#62; array&#40;'as'&#41;,
'ada' =&#62; array&#40;'a', 'ada', 'adb', 'ads'&#41;,
'apache' =&#62; array&#40;'conf'&#41;,
'asm' =&#62; array&#40;'ash', 'asm', 'inc'&#41;,
'asp' =&#62; array&#40;'asp'&#41;,
'bash' =&#62; array&#40;'sh'&#41;,
'bf' =&#62; array&#40;'bf'&#41;,
'c' =&#62; array&#40;'c', 'h'&#41;,
'c_mac' =&#62; array&#40;'c', 'h'&#41;,
'caddcl' =&#62; array&#40;&#41;,
'cadlisp' =&#62; array&#40;&#41;,
'cdfg' =&#62; array&#40;'cdfg'&#41;,
'cobol' =&#62; array&#40;'cbl'&#41;,
'cpp' =&#62; array&#40;'cpp', 'hpp', 'C', 'H', 'CPP', 'HPP'&#41;,
'csharp' =&#62; array&#40;'cs'&#41;,
'css' =&#62; array&#40;'css'&#41;,
'd' =&#62; array&#40;'d'&#41;,
'delphi' =&#62; array&#40;'dpk', 'dpr', 'pp', 'pas'&#41;,
'diff' [...]]]></description>
			<content:encoded><![CDATA[<p>
每次写文章都要查一次，放到这里易于查阅:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:Courier New, Courier;"><span style="color: #808080; font-style: italic;">&lt;!--1，使用方法--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bash&quot;</span>&gt;</span>#这里省略千行代码 <span style="color: #009900;">&lt; <span style="color: #66cc66;">/</span>pre&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:Courier New, Courier;"><span style="color: #009933; font-style: italic;">/**支持的所有标签**/</span>
<span style="color: #0000ff;">'actionscript'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'as'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'ada'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'a'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ada'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'adb'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ads'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'apache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'conf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'asm'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ash'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'asm'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'inc'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'asp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'asp'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'bash'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sh'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'bf'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'bf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'c'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'c'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'h'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'c_mac'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'c'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'h'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'caddcl'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'cadlisp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'cdfg'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cdfg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'cobol'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cbl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'cpp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cpp'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hpp'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'C'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'H'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'CPP'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'HPP'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'csharp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cs'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'css'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'css'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'d'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'d'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'delphi'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dpk'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dpr'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pp'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pas'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'diff'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'diff'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'patch'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'dos'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'bat'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'cmd'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'gettext'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'po'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pot'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'gml'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'gml'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'gnuplot'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'plt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'groovy'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'groovy'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'haskell'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'hs'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'html4strict'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'html'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'htm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'ini'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ini'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'desktop'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'java'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'java'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'javascript'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'klonec'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'kl1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'klonecpp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'klx'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'latex'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tex'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'lisp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lisp'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'lua'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lua'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'matlab'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'m'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'mpasm'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'mysql'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sql'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'nsis'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'objc'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'oobas'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'oracle8'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'oracle10'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'pascal'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pas'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'perl'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pl'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'php'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'php'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'php5'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'phtml'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'phps'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'povray'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pov'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'providex'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pvc'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pvx'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'prolog'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'python'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'py'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'qbasic'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'bi'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'reg'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'reg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'ruby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rb'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'sas'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sas'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'scala'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'scala'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'scheme'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'scm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'scilab'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sci'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'smalltalk'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'st'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'smarty'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'tcl'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tcl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'vb'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'bas'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'vbnet'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'visualfoxpro'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'whitespace'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ws'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'xml'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'xml'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'svg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'z80'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'z80'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'asm'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'inc'</span><span style="color: #009900;">&#41;</span></pre></div></div>
</p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/07/29/wp-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win下批处理部署J2EE工程</title>
		<link>http://ursob.org/2010/07/29/windows-bat-j2ee/</link>
		<comments>http://ursob.org/2010/07/29/windows-bat-j2ee/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 09:09:49 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Struts]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=406</guid>
		<description><![CDATA[
前段时间需要弄一个自动安装J2EE工程的东西，想到用installanywhere，不过还想用更简单的方法，所以就用到了用批处理文件部署J2EE项目，用到的数据库为Mysql，原理很简单就是把注册Mysql服务、启动Tomcat、配置JAVA_HOME、配置PATH这些命令都堆到了一个bat文件下，原来一牛逼哥们儿已经实现了放到硬盘的固定目录下实现这样的功能，之后在本人的狗尾续貂下已经实现放到硬盘的任务目录都能执行，下边记录一下总过程:



1，文件准备，文件目录如下图：





相信看到这几个文件都不会陌生，这几个文件的重点就在于startup.bat，这个文件中聚集了所有的命令，jdk就不说了；mysql为noinstall版本，数据库已经创建完毕，并且已经导入数据，如果noinstall-mysql还有疑问的话请参考本站的Mysql noinstall版本的配置和使用；tomcat的webapps下已经放置了将要部署的项目；index.html中的内容为：


&#60;html&#62;
  &#60;head&#62;&#60;/head&#62;
  &#60;body&#62;
    &#60;script&#62;window.location.href='http://localhost:8088/项目名称';&#60;/script&#62;
  &#60;/body&#62;
&#60;/html&#62;
&#60;!--不再赘述--&#62;





2，startup.bat详解，一下是bat文件中的全部内容，注释中会说的更明白一点：


&#160;
@echo off
rem echo off命令关闭命令在dos窗口中的显示，如果需要显示修改为echo on
rem @echo off行的上面最好空一行，因为测试发现如果它放到第一行的话有时候会失效

rem 以下两行代码的功能是获取当前路径，并把当前路径付给变量&#34;INSTALL_HOME&#34;
setlocal enabledelayedexpansion
set &#34;INSTALL_HOME=%~dp0&#34;

rem 以下三行代码的功能是清空mysql目录下my.ini中的内容，
rem 因为路径是可变的，所以需要修改my.ini中的内容，
rem 向文件中插入内容好像不是很容易实现，所以干脆全部清空，然后再向中写数据
for /f &#34;delims=&#34; %%i in &#40;'dir/b &#34;%INSTALL_HOME%\mysql\my.ini&#34;'&#41; do call :del_ &#34;%%i&#34; 
goto :eof 
:del_ 

rem 以下N行代码的功能配置my.ini
&#62;c:\tmp1.tmp &#40;
	echo &#91;WinMySQLAdmin&#93; 
	echo Server=%INSTALL_HOME%\mysql\mysqld-nt.exe
	echo &#91;mysqld&#93; 
	echo basedir=%INSTALL_HOME%\mysql
	echo datadir=%INSTALL_HOME%\mysql\data
	echo &#91;client&#93;
	echo port		= 3306
	echo socket		= /tmp/mysql.sock
	echo default-character-set=utf8
	echo &#91;mysqld&#93;
	echo port		= [...]]]></description>
			<content:encoded><![CDATA[<p>
前段时间需要弄一个自动安装J2EE工程的东西，想到用installanywhere，不过还想用更简单的方法，所以就用到了用批处理文件部署J2EE项目，用到的数据库为Mysql，原理很简单就是把注册Mysql服务、启动Tomcat、配置JAVA_HOME、配置PATH这些命令都堆到了一个bat文件下，原来一牛逼哥们儿已经实现了放到硬盘的固定目录下实现这样的功能，之后在本人的狗尾续貂下已经实现放到硬盘的任务目录都能执行，下边记录一下总过程:
</p>
<blockquote>
<p>
1，文件准备，文件目录如下图：
</p>
<p>
<a title="Image Title" rel="lightbox" href="http://ursob.org/wp-content/uploads/2010/06/files.jpg"><img src="http://ursob.org/wp-content/uploads/2010/06/files.jpg" alt="Key documents" title="Key documents" width="300" height="187" class="size-medium wp-image-364" /></a>
</p>
<p>
相信看到这几个文件都不会陌生，这几个文件的重点就在于startup.bat，这个文件中聚集了所有的命令，jdk就不说了；mysql为noinstall版本，数据库已经创建完毕，并且已经导入数据，如果noinstall-mysql还有疑问的话请参考本站的<a title="Permanent Link to Mysql noinstall版本的配置和使用" rel="bookmark" href="http://ursob.org/2009/09/30/mysql-noinstall/">Mysql noinstall版本的配置和使用</a>；tomcat的webapps下已经放置了将要部署的项目；index.html中的内容为：
</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:Courier New, Courier;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span>&gt;</span>window.location.href='http://localhost:8088/项目名称';<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!--不再赘述--&gt;</span></pre></div></div>

</p>
</blockquote>
<blockquote>
<p>
2，startup.bat详解，一下是bat文件中的全部内容，注释中会说的更明白一点：
</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:Courier New, Courier;">&nbsp;
<span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> off
<span style="color: #808080; font-style: italic;">rem echo off命令关闭命令在dos窗口中的显示，如果需要显示修改为echo on</span>
<span style="color: #808080; font-style: italic;">rem @echo off行的上面最好空一行，因为测试发现如果它放到第一行的话有时候会失效</span>
<span style="color: #808080; font-style: italic;">
rem 以下两行代码的功能是获取当前路径，并把当前路径付给变量&quot;INSTALL_HOME&quot;</span>
<span style="color: #b1b100; font-weight: bold;">setlocal</span> enabledelayedexpansion
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">&quot;INSTALL_HOME</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">~dp0</span>&quot;
<span style="color: #808080; font-style: italic;">
rem 以下三行代码的功能是清空mysql目录下my.ini中的内容，</span>
<span style="color: #808080; font-style: italic;">rem 因为路径是可变的，所以需要修改my.ini中的内容，</span>
<span style="color: #808080; font-style: italic;">rem 向文件中插入内容好像不是很容易实现，所以干脆全部清空，然后再向中写数据</span>
<span style="color: #00b100; font-weight: bold;">for</span> /f &quot;delims=&quot; <span style="color: #33cc33;">%%</span><span style="color: #448888;">i</span> <span style="color: #00b100; font-weight: bold;">in</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #b1b100; font-weight: bold;">dir</span>/b &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\my.ini&quot;'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">do</span> <span style="color: #00b100; font-weight: bold;">call</span> :<span style="color: #b100b1; font-weight: bold;">del_ &quot;%%<span style="color: #448888;">i</span>&quot; </span>
<span style="color: #00b100; font-weight: bold;">goto</span> <span style="color: #b100b1; font-weight: bold;">:eof </span>
:<span style="color: #b100b1; font-weight: bold;">del_ </span>
<span style="color: #808080; font-style: italic;">
rem 以下N行代码的功能配置my.ini</span>
&gt;c:\tmp1.tmp <span style="color: #66cc66;">&#40;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>WinMySQLAdmin<span style="color: #66cc66;">&#93;</span> 
	<span style="color: #b1b100; font-weight: bold;">echo</span> Server=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\mysqld-nt.exe
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>mysqld<span style="color: #66cc66;">&#93;</span> 
	<span style="color: #b1b100; font-weight: bold;">echo</span> basedir=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql
	<span style="color: #b1b100; font-weight: bold;">echo</span> datadir=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\data
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>client<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> port		= <span style="color: #cc66cc;">3306</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> socket		= /tmp/mysql.sock
	<span style="color: #b1b100; font-weight: bold;">echo</span> default-character-<span style="color: #b1b100; font-weight: bold;">set</span>=utf8
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>mysqld<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> port		= <span style="color: #cc66cc;">3306</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> socket		= /tmp/mysql.sock
	<span style="color: #b1b100; font-weight: bold;">echo</span> skip-locking
	<span style="color: #b1b100; font-weight: bold;">echo</span> key_buffer = 16K
	<span style="color: #b1b100; font-weight: bold;">echo</span> max_allowed_packet = 12M
	<span style="color: #b1b100; font-weight: bold;">echo</span> table_cache = <span style="color: #cc66cc;">4</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> sort_buffer_size = 64K
	<span style="color: #b1b100; font-weight: bold;">echo</span> read_buffer_size = 256K
	<span style="color: #b1b100; font-weight: bold;">echo</span> read_rnd_buffer_size = 256K
	<span style="color: #b1b100; font-weight: bold;">echo</span> net_buffer_length = 2K
	<span style="color: #b1b100; font-weight: bold;">echo</span> thread_stack = 64K
	<span style="color: #b1b100; font-weight: bold;">echo</span> default-character-<span style="color: #b1b100; font-weight: bold;">set</span>=utf8
	<span style="color: #b1b100; font-weight: bold;">echo</span> default-storage-engine=innodb
	<span style="color: #b1b100; font-weight: bold;">echo</span> server-id	= <span style="color: #cc66cc;">1</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>mysqldump<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> quick
	<span style="color: #b1b100; font-weight: bold;">echo</span> max_allowed_packet = 16M
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>mysql<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> no-auto-rehash
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>isamchk<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> key_buffer = 8M
	<span style="color: #b1b100; font-weight: bold;">echo</span> sort_buffer_size = 8M
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>myisamchk<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> key_buffer = 8M
	<span style="color: #b1b100; font-weight: bold;">echo</span> sort_buffer_size = 8M
	<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #66cc66;">&#91;</span>mysqlhotcopy<span style="color: #66cc66;">&#93;</span>
	<span style="color: #b1b100; font-weight: bold;">echo</span> interactive-timeout
<span style="color: #66cc66;">&#41;</span>
<span style="color: #00b100; font-weight: bold;">for</span> /f &quot;tokens=* delims=&quot; <span style="color: #33cc33;">%%</span><span style="color: #448888;">i</span> <span style="color: #00b100; font-weight: bold;">in</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #b1b100; font-weight: bold;">dir</span> /b <span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\my.ini'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">do</span> <span style="color: #66cc66;">&#40;</span>
	<span style="color: #b1b100; font-weight: bold;">copy</span> c:\tmp1.tmp+&quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\<span style="color: #33cc33;">%%</span><span style="color: #448888;">i</span>&quot; c:\tmp2.tmp /y &gt;<span style="color: #0000ff; font-weight: bold;">nul</span>
	<span style="color: #b1b100; font-weight: bold;">copy</span> c:\tmp2.tmp &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\<span style="color: #33cc33;">%%</span><span style="color: #448888;">i</span>&quot; /y &gt;<span style="color: #0000ff; font-weight: bold;">nul</span>
<span style="color: #66cc66;">&#41;</span>
<span style="color: #b1b100; font-weight: bold;">del</span> c:\tmp1.tmp /f /q
<span style="color: #b1b100; font-weight: bold;">del</span> c:\tmp2.tmp /f /q
<span style="color: #808080; font-style: italic;">
rem 设置PATH、CLASSPATH、CATALINA_HOME、JAVA_HOME，</span>
<span style="color: #808080; font-style: italic;">rem 其中路径都是相对于“INSTALL_HOME”的，可见获取这个路径的重要性</span>
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">PATH</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\jdk\bin;<span style="color: #33cc33;">%</span><span style="color: #448888;">PATH</span><span style="color: #33cc33;">%</span>
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">CLASSPATH</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\jdk\jre\lib\rt.jar;.
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">CATALINA_HOME</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\tomcat
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">JAVA_HOME</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\jdk
<span style="color: #808080; font-style: italic;">
rem 在测试中得知sc命令有时候在运用时，需要依赖telnet服务，</span>
<span style="color: #808080; font-style: italic;">rem 所以将telnet服务设置为自动并且启动它</span>
sc config TlntSvr start= auto 
net start telnet
<span style="color: #808080; font-style: italic;">
rem &quot;noinstallmysql&quot;是将要注册的mysql服务名称，</span>
<span style="color: #808080; font-style: italic;">rem 所以安全起见不管机器上有没有这个服务，先停掉，然后再删掉</span>
net stop noinstallmysql
sc delete noinstallmysql 
<span style="color: #808080; font-style: italic;">
rem 注册mysql服务，名称为“noinstallmysql”</span>
<span style="color: #808080; font-style: italic;">rem 以下两行在执行时请务必放到一行中，要不会执行出错</span>
<span style="color: #00b100; font-weight: bold;">Call</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>/mysql/bin/mysqld-nt&quot; --install noinstallmysql 
                                  --defaults-file=<span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\mysql\my.ini
<span style="color: #808080; font-style: italic;">
rem 配置mysql服务，设置为自动</span>
sc config noinstallmysql start= auto
<span style="color: #808080; font-style: italic;">
rem 启动mysql服务</span>
net start noinstallmysql
<span style="color: #808080; font-style: italic;">
rem 进入tomcat下的bin目录，启动它，大功告成！</span>
<span style="color: #b1b100; font-weight: bold;">cd</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\tomcat\bin
<span style="color: #00b100; font-weight: bold;">call</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">INSTALL_HOME</span><span style="color: #33cc33;">%</span>\tomcat\bin\startup.bat</pre></div></div>

</p>
<p>
启动成功之后，还记得那个index.html吗，直接点击就可以进入你的项目，如果启动不成功的话自己调整一下或者mail给我一起交流都可以。E-mail:ripflowers@gmail.com，OK，下班走人。
</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/07/29/windows-bat-j2ee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>儿子和女儿——解释器和编译器的区别与联系</title>
		<link>http://ursob.org/2010/07/12/interpreter-and-compiler/</link>
		<comments>http://ursob.org/2010/07/12/interpreter-and-compiler/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 03:31:14 +0000</pubDate>
		<dc:creator>ripflowers</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://ursob.org/?p=419</guid>
		<description><![CDATA[儿子和女儿——解释器和编译器的区别与联系]]></description>
			<content:encoded><![CDATA[<p>转自：http://www.cnblogs.com/sword03/archive/2010/06/27/1766147.html</p>
<p><strong style="font-size:16px;">儿子和女儿——解释器和编译器的区别与联系</strong></p>
<p>
菜鸟经常将编译器和解释器弄混淆，无奈之下，于是向高手请教。
</p>
<p>
高手说：“解释器是一条一条的解释执行源语言。比如php，postscritp，javascript就是典型的解释性语言。编译器是把源代码整个编译成目标代码，执行时不在需要编译器，直接在支持目标代码的平台上运行，这样执行效率比解释执行快很多。比如C语言代码被编译成二进制代码（exe程序），在windows平台上执行。”
</p>
<p>
菜鸟说：“我还是不明白，能给个形象的比喻么？”
</p>
<p>
高手说：“给你讲个故事。”</p>
<p>母亲打电话给儿子说：“你爸最近身体不好，家里人少不热闹”。</p>
<p>儿子想，对啊，爸年纪大了，身体不好，买点牦牛骨髓壮骨粉不错，于是儿子就去超市买了牦牛骨髓壮骨粉。</p>
<p>儿子又想啊，最近黄金搭档很火，买点给爸试试。于是儿子又去买了黄金搭档。</p>
<p>从超市回来后，儿子又寻思母亲说的“家里不热闹”，嗯，家里的小皇帝自从上寄宿学校后就比较少回来，估计是老人家想孙子了。儿子于是给上高中的儿子打了个电话，让他周末回来看看。</p>
<p>母亲打电话给女儿说：“你爸最近身体不好，家里人少不热闹”。</p>
<p>女儿就想，应该给爸做点什么呢？于是她拿出张纸开始罗列条目，先写上了壮骨粉和黄金搭档。然后，想着让老人家看看外孙应该不错，于是就在纸上加上了一句，一家人回爸妈那里看望看望。最后纸上就写着：</p>
<p>1.壮骨粉和黄金搭档</p>
<p>2.一家人去看望爸妈</p>
<p>女儿见到女婿后，就将这张纸上的信息编成短信发给了工作的女婿。</p>
<p>女婿一看就明白了，下班后先去超市买了补品，然后开车回家带着妻儿就去看望岳父岳母了。</p>
<p>想到什么了吗？
</p>
<p>
菜鸟说：</p>
<p>我这样说不知道对不对：儿子就像是解释器，是想到一点做一点。女儿就像编译器，女婿就像平台，女儿听完后，在纸上罗列出所有要做的事情，女婿就按着指示办事了。
</p>
<p>
高手说：</p>
<p>就是这样的。儿子对于母亲的话是一条一条执行，女儿是将母亲的话整个翻译成平台能理解的目标语言&#8211;短信，整个由女婿直接执行。后者的执行效率会更高。</p>
<p>从功能上看，解释器和编译器确实不一样。</p>
<p>然而，从流程和结构上看，二者却非常相似。</p>
<p>儿子和女儿听到母亲的话以后，都是从两个方面来思考：老人的身体和老人对小辈的思念。以此为据，儿子和女儿都做出了自己的决定。只不过一个直接去做了，另一个却将所要做的事情翻译成另一种载体&#8211;短信&#8211;给存储起来。</p>
<p>解释器和编译器也是如此，读入源语言后，解释器和编译器都要进行词法分析、语法分析和语义分析，之后，二者开始有所分别。解释器在语义分析后选择了直接执行语句；编译器在语义分析后选择将将语义存储成某一种中间语言，之后通过不同的后端翻译成不同的机器语言（可执行程序）。如下图所示：<br />
<a title="Image Title" rel="lightbox" href="http://ursob.org/wp-content/uploads/2010/07/untitled.bmp"><img src="http://ursob.org/wp-content/uploads/2010/07/untitled.bmp" alt="解释器和编译器的区别和联系" title="解释器和编译器的区别和联系" width="600" height="400" class="size-medium wp-image-364" /></a><br />
总之，解析器和编译器它们在功能上是不一样的，然而从结构上看却有诸多相同，而且在开发时也并没有本质上的差别，这也是很多人将二者混淆的原因之一。究竟是开发解析器还是编译器？只需要依据功能上的实际需要来做出决定就ok了。</p>
]]></content:encoded>
			<wfw:commentRss>http://ursob.org/2010/07/12/interpreter-and-compiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
