<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>Cash.PLK</title>
		<link>http://www.cashplk.com/</link>
		<description>生如夏花，学无止境！</description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20080806</generator>
		<lastBuildDate>Tue, 06 Jan 2009 08:15:14 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=51</guid>
			<title>SJ-- XPath信息收集</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">XPath介绍：</font></p>
<p><font size="2">XPath语法类似于在一个文件系统中定位文件,如果路径以斜线 / 开始, 那么该路径就表示到一个元素的绝对路径。</font></p>
<p><font size="2">XPath 术语：<br />
节点（Node）</font></p>
<p><font size="2">&nbsp;&nbsp;&nbsp; 在 XPath 中，有七种类型的节点：元素、属性、文本、命名空间、处理指令、注释以及文档（根）节点。XML 文档是被作为节点树来对待的。树的根被称为文档节点或者根节点。</font></p>
<p><font size="2">XPath语法：</font></p>
<p><font size="2">选取节点<br />
XPath 使用路径表达式在 XML 文档中选取节点。节点是通过沿着路径或者 step 来选取的。</font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=51" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=51</link>
			<category domain="http://www.cashplk.com/?cid=2">技术</category>
			<pubDate>2008-09-09 18:14</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=50</guid>
			<title>手机随机铃声</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">手机随机铃声<br />
<br />
如果联系人没有设定自定义铃声，就随机使用默认的音乐库音乐文件当作来电铃声，当然也要跳过那些已经被定义为自定义铃声的声音文件。同理可以推广到短信铃声。<br />
<br />
问题是：<br />
1，效率问题，必须由这个软件来管理所有的来电铃声，就是说所有的来电必须通过它过滤才行，就必须讲效率控制得很好。将反应时间控制在1秒之内。<br />
<br />
2，系统安全问题，如果达到完全控制来电的问题，就需要在系统级别进行控制，需要针对系统进行一定级别的控制，针对具体系统，实现方式不同。<br />
</font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=50" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=50</link>
			<category domain="http://www.cashplk.com/?cid=10">瞎扯</category>
			<pubDate>2008-09-03 23:57</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=49</guid>
			<title>Picasa 3 Beta试用</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">今天同步发布的还有Picasa 3 Beta，据说增加了新的人脸辨识功能，新闻请看这里<strong>：</strong></font><a href="http://news.mydrivers.com/1/115/115616.htm"><strong><font size="2">Google 发布全新 Picasa 3 Beta</font></strong></a><font size="2">。<br />
<br />
使用感受：<br />
&nbsp;&nbsp; &nbsp;&nbsp; 1，人脸扫描的时候很慢，也没有提示，我以为扫描完了，怎么结果不对。仔细一看，原来是缓慢的在增加。有点类似于本地google desktop扫描本地文件，第一次生成索引的过程。完全不同于重复照片扫描，一下就显示出来了。不知道人脸扫描的原理是什么？<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2，以前对于别人共享的相册，可以采用 查看源码-&gt; 搜索&ldquo;下载相册&rdquo; -&gt; 复制链接，贴到IE中，就会弹出picase的下载提示，接受就可以自动启动picasa下载了。<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 现在新的picasa 3，完全把那个选项取消了，界面也改过了。总之研究了一下，没找到怎么下载的。<br />
</font></p>
<hr width="100%" size="2" />
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PS:用chrome登陆blog发贴的时候，发现上面的一排富文本的选项，没有load出来，只好转回FF下，不知道算不算chrome的bug。</p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=49" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=49</link>
			<category domain="http://www.cashplk.com/?cid=2">技术</category>
			<pubDate>2008-09-03 23:52</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=48</guid>
			<title>SJ--ruby小技巧</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">看到这个帖子 <strong><a href="http://www.javaeye.com/topic/200008" id="c_jp">Ruby - 条条道路通罗马</a></strong> 中提到的一些ruby小技巧：</font></p>
<p><font size="2">1，<strong><a target="_blank" href="http://www.javaeye.com/problems/117" id="abwr">ruby 怎么利用正则表达式在把一个字符串数组中的数字放到一个数组中？</a></strong></font></p>
<p>问题： ruby 怎么利用正则表达式在把一个字符串中的数字放到一个数组中？</p>
<p>例如：将 str='100good200bad300ok'   处理为 100 200 300</p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=48" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=48</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-29 17:04</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=47</guid>
			<title>关于Rails的一些讨论</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2"><a href="http://javaeye.com/">javaeye</a>上看到的不错的讨论：<a href="http://www.javaeye.com/topic/232415" id="pcgb">主题：我怎么就觉得rails适合做大型应用</a><br />
<br />
部分自己觉得有用的的摘抄：</font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=47" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=47</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-29 11:18</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=46</guid>
			<title>SJ-Google App Engineer Oil Fraomwork介绍</title>
			<author>plk</author>
			<description><![CDATA[<p>一个关于Goolge App Engineer Oil Framework (web开放框架)的一个PPT：<a href="http://docs.google.com/Present?docid=ajj7kcj4d635_164c8g2vdgc">Lightning Talk - GAEO</a></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=46" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=46</link>
			<category domain="http://www.cashplk.com/?cid=8">Python</category>
			<pubDate>2008-08-25 11:27</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=44</guid>
			<title>RESTful Web Services 中文版 读后摘抄（一）</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2" id="lxo:"><strong id="rh-b">RESTful Web Services 中文版 读后摘抄（一）</strong></font></p>
<p><font size="2" id="lxo:"><strong id="rh-b"><font size="3">第 1 章 Programmable Web及其分类</font><br id="efxm" />
<br id="fou1" />
</strong><font id="fou10">1.传统网（human web）</font><font id="lp7:">返回HTML文档。<br id="jkds" />
2.可编程网（programmable web）返回XML文档。<br id="i00h" />
<br id="i00h0" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Amazon S3的作用是&ldquo;在桶（一种带标签的容器）里存放对象（一种带标签的数据）&rdquo;。<br id="xknd" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Programmmable web是基于HTTP和XML技术的。<br id="fw9d" />
<br id="fw9d0" />
<font id="q5_u"><strong id="q5_u0"><font size="3">HTTP：信封里的文档</font><br id="q5_u1" />
</strong><br id="ql7t" />
</font></font></font><font size="2" id="lxo:"><font id="lp7:">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></font><font size="2" id="lxo:"><font id="lp7:"><font id="q5_u"><font id="ql7t0">HTTP是一种基于文档的协议。客户端把文档放在</font><font id="iiad">信封里，然后发给服务器，作为回应，服务器把响应文档放在信封里，然后发给客户端。<br id="ulxu" />
<br id="r7ut" />
HTTP响应可分为三个部分：<br id="r7ut0" />
1.HTTP响应代码（HTTP response code）<br id="b:xh" />
2.相应报头（request headers）<br id="v5w6" />
3.实体主体（entity-body）或表示（representation）<br id="hdz1" />
<br id="rabv" />
<strong id="dywk">XPath介绍</strong><br id="t:7u" />
</font></font></font></font><font size="2" id="lxo:"><font id="lp7:">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></font><font size="2" id="lxo:"><font id="lp7:"><font id="q5_u"><font id="iiad">利用它，可以方便的将XML文档进行切分。关键的一点是：把XPath表达式看成一种从XML文档里提取标签（tag）或元素（elements）的规则。</font><font id="kg4p">要知道一个XPath表达式是什么意思，只要从右边往左读就是了。<br id="niz3" />
<br id="j:hh" />
比如：表达式 //photo 的意思是：<br id="guyv" />
寻找所有photo标签&nbsp; photo<br id="ob53" />
无论它在文档里何处&nbsp; //<br id="gefl" />
<br id="j:hh0" />
</font></font></font></font><font size="2" id="lxo:"><font id="lp7:">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></font><font size="2" id="lxo:"><font id="lp7:"><font id="q5_u"><font id="kg4p">用REXML::XPath.each(doc,'//photo')这行简单的Ruby代码可以实现遍历每一个photo标签，而不必遍历整个XML树。</font></font></font></font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=44" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=44</link>
			<category domain="http://www.cashplk.com/?cid=4">REST</category>
			<pubDate>2008-08-21 00:43</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=43</guid>
			<title>Trans-- 简单 Conditional-get 支持(e-tag)</title>
			<author>plk</author>
			<description><![CDATA[<p id="dn9q0"><font face="Verdana" size="2" id="nvuo0"><strong id="nvuo1">翻译： </strong></font><font size="3"><strong><a href="http://ryandaigle.com/articles/2008/8/14/what-s-new-in-edge-rails-simpler-conditional-get-support-etags">What's New in Edge Rails: Simpler Conditional Get Support (ETags)</a></strong></font></p>
<p id="dn9q0"><font face="Verdana" size="2" id="nvuo0"><strong id="nvuo1"><font size="3">简单 Conditional-get 支持(e-tag)</font><br />
</strong></font></p>
<p id="dn9q0"><font face="Verdana" size="2" id="nvuo0"><strong id="nvuo1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Conditional-gets</strong> 是一个规定的HTTP规格，对于服务器来是，它提供了一种方法告诉浏览器，自从上次要求之后，GET所请求的响应没有改变，可以安全的退出浏览器。</font></p>
<p id="yvz41"><font face="Verdana" size="2" id="nvuo2">&nbsp;&nbsp;&nbsp;&nbsp; 他们使用 <strong id="bks4">HTTP_IF_NONE_MATCH</strong> 和 <strong id="w1c5">HTTP_IF_MODIFIED_SINCE </strong>头传递一个独特的内容识别标志和时间戳，表示内容的变更。如果浏览器这次请求的内容标识符（etag）或时间戳和服务器上的相同，那服务器只需要发送一个空的响应和一个未更改的状态值就可以了。</font></p>
<div id="result_box" dir="ltr"><font face="Verdana" size="2" id="nvuo3">&nbsp;&nbsp;&nbsp;&nbsp; 这是服务器的责任去寻找一个 上次修改的时间戳和 如果没有匹配的头， 并决定是否返回响应。 使用这个新的 <a title="conditional-get" href="http://github.com/JackDanger/rails/commit/b7529ed1cc7cfd8df5fd1b069e2881d39d3d984c" id="t13k">conditional-get support</a> 实现会是一件相当简单的事情：</font></div><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=43" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=43</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-18 17:51</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=42</guid>
			<title>Trans -- ActiveRecord 只读模式</title>
			<author>plk</author>
			<description><![CDATA[<h2 class="entry-title"><font size="2">翻译：<a href="http://ariejan.net/2008/08/17/activerecord-read-only-models/">ActiveRecord Read Only Model</a></font></h2>
<h2 class="entry-title" id="w74o" style="font-family: Verdana;">&nbsp;</h2>
<h2 class="entry-title" id="w74o" style="font-family: Verdana;"><font size="2"><span class="entry-source-title-parent" id="w74o3">ActiveRecord 只读模式</span></font></h2>
<div id="w74o9" style="font-family: Verdana;">
<p id="v78b0"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp; ActiveRecord 在为数据模型提供CRUD操作方面是伟大的。 在某些情况下，它需要对于模型的写入进行权限控制。 这些数据既可以由额外的源码提供也可以在你的应用程序中使用。例如：<br id="u56:" />
</font></p>
<p id="j8br"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp; 我将演示如何简单地标记一个model 为只读属性。 我有一个 Item Model:</font></p>
</div><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=42" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=42</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-18 12:01</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=41</guid>
			<title>DIV+CSS学习</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近空闲的很，正好用ruby写写东西，看ruby这么久了，也做个简单的工程出来练练手。后端的东西熟悉一下就行了，HTML页面编写差很多，还是先看看 DIV + CSS先。</font></p>
<p>&nbsp;</p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=41" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=41</link>
			<category domain="http://www.cashplk.com/?cid=9">HTML</category>
			<pubDate>2008-08-15 15:35</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=40</guid>
			<title>SQL学习总结</title>
			<author>plk</author>
			<description><![CDATA[<p><strong id="nlef">SQL 学习总结:</strong><br id="nlef0" />
<br id="nlef1" />
<strong id="nlef2">DISTINCT：</strong> 剔除字段值中的重复值<br id="nlef3" />
<strong id="nlef4">IN：</strong>字段值在（）中，多个请用，隔开，处理一个或者多个不连续值。<br id="nlef5" />
<strong id="nlef6">BETWEEN：</strong>可以运用一个范围 (range) 内抓出数据库中的值。<br id="nlef7" />
<strong id="nlef8">LIKE：</strong>%%匹配字符。<br id="nlef9" />
<br id="nlef10" />
<strong id="qbk1">Orderby：</strong><br id="nlef11" />
<strong id="id0h">ASC：</strong>ascending，升序, <strong id="id0h0">DEC:</strong> descending，降序。<br id="nlef12" />
<br id="nlef13" />
SQL 基本函数：<strong id="mcq."><br id="nlef14" />
AVG (平均)<br id="nlef15" />
COUNT (计数)<br id="nlef16" />
MAX (最大值)<br id="nlef17" />
MIN (最小值)<br id="nlef18" />
SUM (总合) </strong></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=40" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=40</link>
			<category domain="http://www.cashplk.com/?cid=6">数据库</category>
			<pubDate>2008-08-15 14:43</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=39</guid>
			<title>ruby 安全总结</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">看到几篇关于安全的文章，学习了，顺便总结一下。<br id="xncd" />
<br id="u.:i" />
用RoR开发需要注意的问题：<br id="jd8s0" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.使用open source的framework好处是显而易见的，觉得不够好的时候可以更改。但是如果framework有bug，就需要等待开发者出新的patch，或者自己去改。 要不就依靠patch，不然就需要自己学习一下隐藏方法。</font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=39" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=39</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-12 15:04</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=38</guid>
			<title>SJ--Hadoop介绍</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">分布式计算开源框架Hadoop介绍――<br />
<br />
</font><strong><font size="2"><a href="http://www.infoq.com/cn/articles/hadoop-intro">分布式计算开源框架Hadoop入门实践（一）</a><br />
<a href="http://www.infoq.com/cn/articles/hadoop-config-tip">Hadoop中的集群配置和使用技巧</a></font></strong></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=38" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=38</link>
			<category domain="http://www.cashplk.com/?cid=2">技术</category>
			<pubDate>2008-08-11 17:40</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=37</guid>
			<title>Ruby request里的值</title>
			<author>plk</author>
			<description><![CDATA[<p>Ruby request里的值：<br />
<br />
1. User-Agent(浏览器提交出来的，可以判断操作系统，浏览器类型): request.user_agent  <br />
2. Referer(引用，可以判断上一层网页): request.referer  <br />
3. remote ip(客户IP，可以判断城市地区): request.remote_ip</p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=37" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=37</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-07 18:44</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=36</guid>
			<title>SJ--关于ruby的惯用写法</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">放狗搜inject的时候找到的。<br />
原帖：http://www.javaeye.com/topic/24642?page=1<br id="wswn" />
<br id="sk:10" />
Ruby有不少惯用法，这里略作一些介绍，也方便阅读他人代码： <br id="s3lw" />
<br id="s3lw0" />
<strong id="s3lw1"><span style="color: green;" id="s3lw2">迭代</span></strong><br id="s3lw3" />
一般写法: <br id="s3lw4" />
&nbsp;for i in (1..10) 	puts i end<br id="s3lw5" />
<br id="s3lw6" />
习惯写法: <br id="s3lw7" />
(1..10).each{|i| puts i} 或 1.upto(10){|i| puts i} # from njmzhang<br id="s3lw8" />
<br id="s3lw9" />
<br id="s3lw10" />
<strong id="s3lw11"><span style="color: green;" id="s3lw12">||=赋值</span></strong><br id="s3lw13" />
一般写法： <br id="s3lw14" />
&nbsp;number = 1 if number.nil? number = 1 unless number<br id="s3lw15" />
习惯写法： <br id="s3lw16" />
&nbsp;number ||= 1</font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=36" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=36</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-04 15:19</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=35</guid>
			<title>SJ--对于inject的使用</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font size="2">看到<a id="sdna" href="http://blackanger.blog.51cto.com/" title="Alex">Alex</a>的<a id="npjv" href="http://blackanger.blog.51cto.com/140924/90539" title="Alex学Ruby[ inject需要注意的地方 ]">Alex学Ruby[ inject需要注意的地方 ]</a> ，节选部分如下：<br />
</font><font size="2"><br />
</font><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font size="2">inject([]) do |item ,i |这样的写法，每一步，item都会被设置为block的返回值。<br />
<br />
如下：<br />
<div class="codeText">
<div class="codeHead"><font>Ruby代码</font></div>
<ol start="1" class="dp-rb"><font>
    <li class="alt"><span><span>arr1&nbsp;=&nbsp;[]&nbsp;&nbsp;</span></span></li>
    <li class=""><span>arr2&nbsp;=&nbsp;[1,2,3]&nbsp;&nbsp;</span></li>
    <li class="alt"><span>arr2.<span class="keyword">each</span><span>&nbsp;</span><span class="keyword">do</span><span>&nbsp;|i|&nbsp;&nbsp;</span></span></li>
    <li class=""><span>arr1&nbsp;&lt;&lt;&nbsp;i&nbsp;+&nbsp;1&nbsp;&nbsp;</span></li>
    <li class="alt"><span><span class="keyword">end</span><span>&nbsp;&nbsp;</span></span></li>
    <li class=""><span>p&nbsp;arr1&nbsp;&nbsp;</span></li>
    <li class="alt"><span><span class="comment">#=&gt;&nbsp;[2,&nbsp;3,&nbsp;4]</span><span>&nbsp; <br />
    </span></span></li>
    </font></ol>
    </div>
    使用inject，则可以写为：<br />
    <br />
    <div class="codeText">
    <div class="codeHead"><font>Ruby代码</font></div>
    <ol start="1" class="dp-rb"><font>
        <li class="alt"><span><span>arr2&nbsp;=&nbsp;[1,2,3]&nbsp;&nbsp;</span></span></li>
        <li class=""><span>arr&nbsp;=&nbsp;arr2.inject([])&nbsp;<span class="keyword">do</span><span>|arr1,&nbsp;i|&nbsp;&nbsp;</span></span></li>
        <li class="alt"><span>arr1&nbsp;&lt;&lt;&nbsp;i&nbsp;+&nbsp;1&nbsp;&nbsp;</span></li>
        <li class=""><span><span class="keyword">end</span><span>&nbsp;&nbsp;</span></span></li>
        <li class="alt"><span>p&nbsp;arr&nbsp;&nbsp;</span></li>
        <li class=""><span><span class="comment">#=&gt;[2,3,4]</span><span>&nbsp; </span></span></li>
        </font></ol>
        </div>
        </font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=35" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=35</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-08-04 15:16</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=34</guid>
			<title>zt--改造RoR实现功能</title>
			<author>plk</author>
			<description><![CDATA[<p>javaeye上的一篇文章，通过改造RoR实现。不错的思路。<br id="uanx" />
<br id="uanx0" />
<a id="ix3j" href="http://www.javaeye.com/topic/219826" title="Ruby/Rails: 不一样的'Web'应用">Ruby/Rails: 不一样的'Web'应用</a> <br id="hd9s" />
<br id="hd9s0" />
<a href="http://www.javaeye.com/topic/220771" title="Ruby/Rails: 不一样的'Web'应用（续）">Ruby/Rails: 不一样的'Web'应用（续）</a></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=34" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=34</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-07-31 18:17</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=33</guid>
			<title>关于SQL</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2"><strong id="vr3h">关于SQL的一些知识：</strong></font></p>
<p><font size="2"><strong id="vr3h"> 1.查询条件的每个组件都有一个point count，查询速度越快，花的时间越少，points越高</strong><br id="vr3h0" />
</font></p>
<pre name="code" id="vr3h1"><font size="2">操作符、操作数                           points<br id="vr3h2" />=                                          10<br id="vr3h3" />&gt;                                           5<br id="vr3h4" />&gt;=                                          5<br id="vr3h5" />&lt;                                           5<br id="vr3h6" />&lt;=                                          5<br id="vr3h7" />LIKE                                        3<br id="vr3h8" />&lt;&gt;                                          0<br id="vr3h9" />Literal alone                              10<br id="vr3h10" />Column alone                                5<br id="vr3h11" />Parameter alone                             5<br id="vr3h12" />Multioperand expression                     3<br id="vr3h13" />Exact numeric data type                     2<br id="vr3h14" />Other numeric data type                     1<br id="vr3h15" />Temporal data type                          1<br id="vr3h16" />Character data type                         0<br id="vr3h17" />NULL                                        0<br id="vr3h18" /></font></pre><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=33" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=33</link>
			<category domain="http://www.cashplk.com/?cid=2">技术</category>
			<pubDate>2008-07-28 18:10</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=32</guid>
			<title>收集--使用Django创建Google App Engine应用</title>
			<author>plk</author>
			<description><![CDATA[<p><span class="subject_font">Beijing </span>Open Party上的session.<br />
<br />
<a href="http://www.haokanbu.com/story/84942/?page=1"><span class="subject_font">使用Django创建Google App Engine应用</span></a></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=32" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=32</link>
			<category domain="http://www.cashplk.com/?cid=8">Python</category>
			<pubDate>2008-07-28 15:29</pubDate>
		</item>
		<item>
			<guid>http://www.cashplk.com/?action=show&amp;id=31</guid>
			<title>ruby、rails及REST资料整理</title>
			<author>plk</author>
			<description><![CDATA[<p><font size="2">手边一大堆纸质的Ruby资料，整理顺便一下。<br id="riih" />
<br id="taiw" />
--------------------------------------------------------------------------------<br id="riih0" />
<br id="flds" />
Ruby:<br id="ozin0" />
</font><font size="2">&nbsp;&nbsp;&nbsp; </font><font size="2">&nbsp;&nbsp; </font><font size="2">Ruby中的多态性被称为&quot;duck typing&quot;（意思是如果它走起来像鸭子，叫起来也像鸭子，那么它一定是鸭子！）这种多态性只是对方法名进行匹配的问题。<br id="ij5:" />
<br id="tfaf" />
</font><font size="2">&nbsp;&nbsp;&nbsp; </font><font size="2">&nbsp;&nbsp; </font><font size="2">Ruby是动态语言，所以它不需要接口。但确实存在，是以更灵活的方式表现出来。就是mix-in。可以将其看成多重继承，mix-ins是模块（不能被实例化），其中包含类可以选择包含的方法。这些模块方法会变成包含它们的类的实例方法。<br id="wy5l" />
<br id="wy5l0" />
Ruby是高度反射的，并采用反射的形式查询数据库系统表的定义。<br id="a:jm" />
<br id="u7m_" />
Rails：专长是Web站点开发。</font></p><br /><br /><a href="http://www.cashplk.com/?action=show&amp;id=31" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.cashplk.com/?action=show&amp;id=31</link>
			<category domain="http://www.cashplk.com/?cid=1">ruby</category>
			<pubDate>2008-07-25 17:34</pubDate>
		</item>
	</channel>
</rss>
