<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/xslt/rss2.xsl" media="screen"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Latest from ChinaonRails's Consultant Team</title>
		<link>http://chinaonrails.com/go/team</link>
		<description>ChinaonRails | ChinaonRails are one of the very few China based web consultancies, who specialize in application development using RubyOnRails/Agile/Ajax.</description>
		<category>Technology</category>
		<language>zh_cn</language>
		<item>
			<title>Radix能转任何进制，62进制有啥缩骨神功 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/4401.html</link>
			<comments>http://chinaonrails.com/topic/view/4401.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://chinaonrails.com/topic/view/4184.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/4184.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Radix provides the means of converting to and from any base.&lt;br /&gt;
&lt;br /&gt;
In addition, representational notations need not be in ASCII order —any user-defined notation can be used up to base 62.&lt;br /&gt;
&lt;br /&gt;
根,基数&lt;br /&gt;
&lt;a href="http://github.com/rubyworks/radix#readme" rel="nofollow external" class="tpc"&gt;http://github.com/rubyworks/radix#readme&lt;/a&gt;&lt;br /&gt;
&lt;img class="code" src="http://www.hzjys.net/xkweb/shuxue/Article/UploadFiles/2004101420501734.jpg" border="0" /&gt;&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/1930.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/1930.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://github.com/k33l0r/radix62" rel="nofollow external" class="tpc"&gt;http://github.com/k33l0r/radix62&lt;/a&gt;&lt;br /&gt;
Radix62&lt;br /&gt;
Convert integers to base 62 strings and back.&lt;br /&gt;
&lt;br /&gt;
Base 62 includes the numbers 0-9 and characters A-Z (both lower and upper case). This can be useful for applications such as URL shorteners.&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/581.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/581.html&lt;/a&gt;
			</description>
			<pubDate>Mon, 06 Sep 2010 10:53:29 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4401.html</guid>
		</item>
		<item>
			<title>清点有关rails 配置的gems ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/4381.html</link>
			<comments>http://chinaonrails.com/topic/view/4381.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://viatropos.com/blog/the-missing-rails-key-value-gem/" rel="nofollow external" class="tpc"&gt;http://viatropos.com/blog/the-missing-rails-key-value-gem/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
介绍了rails configuration的相关配置技巧&lt;br /&gt;
&lt;br /&gt;
包含了作者的插件如cockpit&lt;br /&gt;
http://github.com/viatropos/cockpit&lt;br /&gt;
&lt;br /&gt;
常见的配置插件&lt;br /&gt;
&lt;div class="code"&gt;&lt;br /&gt;
    I18n (203 watchers): Translation gem, mapping nested keys to strings.&lt;br /&gt;
    Rails Settings (141 watchers): ActiveRecord setting model.&lt;br /&gt;
    Preferences (99 watchers): ActiveRecord preference model&lt;br /&gt;
    SettingsLogic (257 watchers): Settings&lt;br /&gt;
    SimpleConfig (58 watchers): Settings&lt;br /&gt;
    RailsConfig (18 watchers): Settings&lt;br /&gt;
    Settings (8 watchers): Settings&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;img class="code" src="http://a.imagehost.org/0893/Mig23Cockpit.jpg" border="0" /&gt;&lt;br /&gt;
外人看座驾，内行看座舱cockpit&lt;br /&gt;
&lt;br /&gt;
本站相关话题&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/1992.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/1992.html&lt;/a&gt;
			</description>
			<pubDate>Wed, 01 Sep 2010 10:59:30 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4381.html</guid>
		</item>
		<item>
			<title>笛米特法则Misunderstanding the Law of Demeter ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/4331.html</link>
			<comments>http://chinaonrails.com/topic/view/4331.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://www.dcmanges.com/blog/37" rel="nofollow external" class="tpc"&gt;http://www.dcmanges.com/blog/37&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
迪米特法则（Law of Demeter, LoD）又叫最少知识原则（Least Knowledge Principle, LKP）。&lt;br /&gt;
一个软件实体要尽可能的只与和它最近的实体进行通讯。&lt;br /&gt;
&lt;div class="quote"&gt;More formally, the Law of Demeter for&lt;br /&gt;
functions requires that a method M of&lt;br /&gt;
an object O may only invoke the methods&lt;br /&gt;
of the following kinds of objects:&lt;br /&gt;
&lt;br /&gt;
   1. O itself&lt;br /&gt;
   2. M's parameters&lt;br /&gt;
   3. any objects created/instantiated within M&lt;br /&gt;
   4. O's direct component objects&lt;br /&gt;
&lt;br /&gt;
In particular, an object should avoid invoking&lt;br /&gt;
methods of a member object returned by another method.&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
通常被表述为：talk only to your immediate friends ( 只和离你最近的朋友进行交互)。 &lt;br /&gt;
&lt;br /&gt;
   “talk”，其实就是对象间方法的调用。这条规则表明了对象间方法调用的原则：&lt;br /&gt;
&lt;br /&gt;
（1）       调用对象本身的方法；&lt;br /&gt;
&lt;br /&gt;
（2）       调用通过参数传入的对象的方法；&lt;br /&gt;
&lt;br /&gt;
（3）       在方法中创建的对象的方法；&lt;br /&gt;
&lt;br /&gt;
（4）       所包含对象的方法。&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/3521.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/3521.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://j.imagehost.org/0003/mJ0D6fx0a7WK2Q98.jpg" border="0" /&gt;
			</description>
			<pubDate>Thu, 19 Aug 2010 09:40:18 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4331.html</guid>
		</item>
		<item>
			<title>繁体导引：Rails 初上手指南 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/4274.html</link>
			<comments>http://chinaonrails.com/topic/view/4274.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://guides.ruby.tw/rails3/getting_started.html" rel="nofollow external" class="tpc"&gt;http://guides.ruby.tw/rails3/getting_started.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
其它的翻译项目&lt;br /&gt;
&lt;a href="http://ruby.tw/post/845803421/rails" rel="nofollow external" class="tpc"&gt;http://ruby.tw/post/845803421/rails&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="quote"&gt;完整的 Rails Guides 還有很多文章，中文翻譯的原始碼放在 GitHub 上，如果你有興趣幫忙翻譯，歡迎到這個 Wiki 來認領，然後 Fork 這個專案就可以進行了。完成之後請發 pull request。&lt;/div&gt;
&lt;br /&gt;
想看简体，比较简单的方法-用谷歌浏览器自动翻译&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://i.imagehost.org/0774/1414020.gif" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
RubyTaiwan  翻译项目进展比较顺利，原因很简单，有人&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;願意支付您每原英文字新台幣一元（不含程式碼，但含註解)。&lt;/strong&gt;
			</description>
			<pubDate>Fri, 06 Aug 2010 11:01:52 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4274.html</guid>
		</item>
		<item>
			<title>学rails的路线图 ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/4227.html</link>
			<comments>http://chinaonrails.com/topic/view/4227.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			经常性的话题，有人问如何学rails&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/891.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/891.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
不是个别的现象&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/1323.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/1323.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://techiferous.com/wp-content/uploads/2010/07/Learning-Rails-Roadmap.png" border="0" /&gt;&lt;br /&gt;
&lt;img class="code" src="http://techiferous.com/2010/07/roadmap-for-learning-rails/" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
按图而行，循序渐进， 希望打消困惑&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/3151.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/3151.html&lt;/a&gt;
			</description>
			<pubDate>Mon, 26 Jul 2010 09:18:58 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4227.html</guid>
		</item>
		<item>
			<title>明星梦 a Proc Star! 把to_proc 进行到底 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/4198.html</link>
			<comments>http://chinaonrails.com/topic/view/4198.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://rbjl.net/29-become-a-proc-star" rel="nofollow external" class="tpc"&gt;http://rbjl.net/29-become-a-proc-star&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
对 Symbol#to_proc 方法 经常见到“和冒号”已经不惊讶了&lt;br /&gt;
&lt;br /&gt;
&lt;div class="quote"&gt; %w|1 2 3 4|.map(&amp;:to_i)&lt;/div&gt;
&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/457.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/457.html&lt;/a&gt;&lt;br /&gt;
&lt;img class="code" src="http://i.imagehost.org/0258/2010-07-15_104925.jpg" border="0" /&gt;&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/304.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/304.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
其它的数据类型&lt;br /&gt;
比如Array 加上to_proc&lt;br /&gt;
&lt;a href="http://www.sanityinc.com/articles/adding-array-to-proc-to-ruby" rel="nofollow external" class="tpc"&gt;http://www.sanityinc.com/articles/adding-array-to-proc-to-ruby&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
字符串 String#to_proc&lt;br /&gt;
&lt;a href="http://weblog.raganwald.com/2007/10/stringtoproc.html" rel="nofollow external" class="tpc"&gt;http://weblog.raganwald.com/2007/10/stringtoproc.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hash ， Regexp&lt;br /&gt;
还有Class&lt;br /&gt;
都能转Proc&lt;br /&gt;
&lt;br /&gt;
 权宜之计 还是为成名的紧急手段呢？ 想当ProcStar，是第一眼看到有to_proc, 就把其它的给“潜过程"了
			</description>
			<pubDate>Thu, 15 Jul 2010 10:48:46 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4198.html</guid>
		</item>
		<item>
			<title>视频教学 ：Google PageRank 算法用 Ruby 五行代码来解释 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/4086.html</link>
			<comments>http://chinaonrails.com/topic/view/4086.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://vimeo.com/9945353" rel="nofollow external" class="tpc"&gt;http://vimeo.com/9945353&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Google PageRank是Google给网页的计分机制，透过这个机制Google就能决定哪个网页可能比较重要，比较是人们想要找的。 &lt;br /&gt;
&lt;br /&gt;
官方说法如下： &lt;br /&gt;
PageRank如同个别网页价值的指示器，透过庞大的连结架构来信赖网站独特地民主性质。简单来说，Google说明网页A连结至网页B时，则视为网页A投给网页B一票。当然，Google会查看票数来源，或是连结网页接收的票数；同时它也会分析参予投票的网页。透过「重要的」网页来参予投票，并且帮助其它的网页也成为「重要的」网页资料。 &lt;br /&gt;
&lt;img class="code" src="http://h.imagehost.org/0184/4ab9c327240b4.jpg" border="0" /&gt;&lt;br /&gt;
重要、优质的网站会得到较高的PageRank，同时Google会记住每次所处理的查询情况。当然，如果查询出来的网页结果并不符合您的需求，重要的网页对您也不具任何意义。因此，Google将PageRank和精密的内文比对技术结合，来找出重要并且与您的查询相关的网页。 Google会将出现于网页上的字词显示出来，并且检查所有的网页内容﹝及连结到此网页的其他网页内容﹞以决定这样的查询结果是否最符合您的需求。 &lt;br /&gt;
&lt;br /&gt;
pagerank decoder&lt;br /&gt;
http://www.rubyinside.com/retrieve-google-pagerank-from-ruby-357.html
			</description>
			<pubDate>Fri, 11 Jun 2010 08:26:38 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4086.html</guid>
		</item>
		<item>
			<title>BlogKit , 往现有的rails项目里加个博客吧 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/4068.html</link>
			<comments>http://chinaonrails.com/topic/view/4068.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://github.com/ryanstout/blog_kit" rel="nofollow external" class="tpc"&gt;http://github.com/ryanstout/blog_kit&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
BlogKit is a rails plugin to add a blog to your app. The goal is to provide common blog functionality that integrates into your existing app while keeping things simple.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://github.com/wbharding/bloggity" rel="nofollow external" class="tpc"&gt;http://github.com/wbharding/bloggity&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Bloggity &lt;br /&gt;
is a plugin by Bill Harding (http://www.williambharding.com/blog/) that aims to make it brain-dead simple to &lt;br /&gt;
integrate a fully-featured blog into your Rails site as a plugin.&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://j.imagehost.org/0764/a_2.jpg" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.agileproductions.com/blog_posts/4-BlogKit-a-Plugin-to-Add-a-Blog-to-your-Rails-App" rel="nofollow external" class="tpc"&gt;http://www.agileproductions.com/blog_posts/4-BlogKit-a-Plugin-to-Add-a-Blog-to-your-Rails-App&lt;/a&gt;
			</description>
			<pubDate>Mon, 07 Jun 2010 14:05:28 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4068.html</guid>
		</item>
		<item>
			<title>phashion 检查会不会撞衫的时尚插件 Detecting duplicate images with Ruby ... no reply</title>
			<link>http://chinaonrails.com/topic/view/4015.html</link>
			<comments>http://chinaonrails.com/topic/view/4015.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;img class="code" src="http://www.tornadotom.com/images/phashion_lg.png" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://github.com/mperham/phashion" rel="nofollow external" class="tpc"&gt;http://github.com/mperham/phashion&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
其实可检测的对象不光是图像，也包括其它的多媒体文件&lt;br /&gt;
Ruby wrapper around pHash, the perceptual hash library for detecting duplicate multimedia files &lt;br /&gt;
&lt;br /&gt;
利用pHash，这个带感受能力的hash应该理解成算法，而不是ruby的数据结构&lt;br /&gt;
&lt;br /&gt;
&lt;div class="quote"&gt;pHash是各种感知哈希算法的C++实现。感知哈希是一个多媒体指纹文件来自不同的特点，从它的内容。不同的加密散列函数对输入的微小变化，在雪崩，导 致在输出急剧变动的影响，依赖，知觉哈希“接近”，如果彼此的特点是相似的。潜在应用包括版权保护的媒体文件，甚至数字取证，相似性搜索。&lt;/div&gt;
The open source perceptual hash library&lt;br /&gt;
&lt;a href="http://phash.org/download/" rel="nofollow external" class="tpc"&gt;http://phash.org/download/&lt;/a&gt;
			</description>
			<pubDate>Fri, 21 May 2010 14:16:14 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/4015.html</guid>
		</item>
		<item>
			<title>写一个ruby的命令行程序的”骨架“ ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/3937.html</link>
			<comments>http://chinaonrails.com/topic/view/3937.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://blog.infinitered.com/entries/show/5" rel="nofollow external" class="tpc"&gt;http://blog.infinitered.com/entries/show/5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
这个帖子是很早写的，但如今看也挺有趣，尤其是初学者&lt;br /&gt;
&lt;br /&gt;
Creating a command-line application &lt;img class="code" src="http://www.infinitered.com/blog_extras/common_fx/ruby_cl.jpg" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
步骤如下&lt;br /&gt;
&lt;br /&gt;
Make a copy of the skeleton code 可以在上面link下模板&lt;br /&gt;
&lt;br /&gt;
Make your file executable ( chmod +x your_file )&lt;br /&gt;
Replace all instances of ruby_cl_skeleton with your application name&lt;br /&gt;
Locate all the "# TO DO"s and make your changes&lt;br /&gt;
Insert your functionality&lt;br /&gt;
Distribute your application by placing the file anywhere in the user's path ( ~/bin /usr/bin )
			</description>
			<pubDate>Wed, 28 Apr 2010 09:17:11 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3937.html</guid>
		</item>
		<item>
			<title>活动记录加上 劝谏锁 Advisory locking with ActiveRecord ... no reply</title>
			<link>http://chinaonrails.com/topic/view/3912.html</link>
			<comments>http://chinaonrails.com/topic/view/3912.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://www.perfectline.co.uk/blog/advisory-locking-with-activerecord#more-96" rel="nofollow external" class="tpc"&gt;http://www.perfectline.co.uk/blog/advisory-locking-with-activerecord#more-96&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Unix文件系统和PostgreSQL数据库的锁分成“劝告式（advisory）”锁还有就是“强制（mandatory）”锁&lt;br /&gt;
&lt;br /&gt;
文件系统锁&lt;br /&gt;
ADVISORY表示该锁不阻止其他进程访问被锁定的数据，它只是阻止企图锁定它的其他进程。&lt;br /&gt;
MANDATORY表示当锁被锁定的时候不允许访问被许可的数据。&lt;br /&gt;
&lt;br /&gt;
Mysql里不这么叫，作者说&lt;br /&gt;
对应的是“named locks”（没有找到真正的对应，锁表锁行）&lt;br /&gt;
&lt;br /&gt;
PostgreSQL提供了一种被称为建议锁的锁机制。&lt;br /&gt;
&lt;div class="quote"&gt;建议锁的含义是有应用程序自己特定的，何时得到和释放建议锁也是由应用程序自己控制的，数据库只是提供得到和释放建议锁的接口供用户使用。建议锁同事务没有任何关系，在一个事务中得到的建议锁，即使在事务被回滚以后仍然存在。建议锁的所有者是会话而非事务，一个会话可以多次得到同一个建议锁（如果一个会话执行了n次得到同一个建议锁的操作，那么它必须执行n次释放这个建议锁的操作，否则该建议锁不会被真正地释放，仍然被这个会话所有）。在一个会话结束后，该会话持有的所有建议锁都会被自动释放。 &lt;/div&gt;
&lt;br /&gt;
翻译成汉语名称不一，用途其实就是检查表中field的值做唯一性约束，比如有叫约翰的，别搞重复了，AR的id就是incrementing 的，你也打算搞一个叫number的跟id一样成唯一的而且按顺序增长&lt;br /&gt;
&lt;br /&gt;
看其对AR的增强代码ActiveRecord extension, providing obtain_advisory_lock(key, type, &amp;block) method.&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://farm3.static.flickr.com/2234/2379530595_fba9c62569.jpg?v=0" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
作者感慨，能少用锁就不用-有真正的需要才用吧
			</description>
			<pubDate>Wed, 21 Apr 2010 17:48:01 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3912.html</guid>
		</item>
		<item>
			<title>RubySlide.com ... 10 replies</title>
			<link>http://chinaonrails.com/topic/view/3752.html</link>
			<comments>http://chinaonrails.com/topic/view/3752.html#reply</comments>
			<dc:creator>flyerhzm</dc:creator>
			<author>flyerhzm</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/1229.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/1229_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/1229_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			上周做了一个网站，http://rubyslide.com，主要是受rubytu.be的启发，收集与ruby有关的slides和presentations，希望对大家有帮助
			</description>
			<pubDate>Tue, 23 Feb 2010 20:42:48 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3752.html</guid>
		</item>
		<item>
			<title>rails server之后发生了什么？ rails3代码启动过程代码分析 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/3722.html</link>
			<comments>http://chinaonrails.com/topic/view/3722.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://ryanbigg.com/guides/initialization.html" rel="nofollow external" class="tpc"&gt;http://ryanbigg.com/guides/initialization.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
目前很多网站的头header上都打着导游guides的旗号&lt;br /&gt;
&lt;br /&gt;
The Rails Initialization Process&lt;br /&gt;
This guide explains how the initialization process in Rails works as of Rails 3.&lt;br /&gt;
&lt;br /&gt;
rails改变了命令行的习惯，对windows的用户不友好，没有顾忌他们的感受&lt;br /&gt;
&lt;br /&gt;
Using rails server&lt;br /&gt;
Using Passenger&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://www.freepicsupload.com/pics/phpYI0od3-20090923_00ON.gif" border="0" /&gt;
			</description>
			<pubDate>Tue, 09 Feb 2010 13:40:24 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3722.html</guid>
		</item>
		<item>
			<title>贝叶斯分类 on rails ... 4 replies</title>
			<link>http://chinaonrails.com/topic/view/3682.html</link>
			<comments>http://chinaonrails.com/topic/view/3682.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			本站提到过&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/1189.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/1189.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
贝叶斯分类器的分类原理是通过某对象的先验概率，利用贝叶斯公式计算出其后验概率，即该对象属于某一类的概率，选择具有最大后验概率的类作为该对象所属的类。目前研究较多的贝叶斯分类器主要有四种，分别是：Naive Bayes、TAN、BAN和GBN。&lt;br /&gt;
&lt;br /&gt;
听起来高深的理论，只有经历实践才容易理解&lt;br /&gt;
&lt;br /&gt;
下面的教程应用Twitter API把Bayesian Classification&lt;br /&gt;
运用到让Rails应用识别用户感兴趣的tweets &lt;br /&gt;
&lt;br /&gt;
丰富了机器学习的技巧 &lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://www2.isye.gatech.edu/~brani/isyebayes/bank/car1bayes.jpg" border="0" /&gt;
			</description>
			<pubDate>Wed, 27 Jan 2010 08:38:38 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3682.html</guid>
		</item>
		<item>
			<title>用Redis做在线统计 who is online 且看朋友在线 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/3665.html</link>
			<comments>http://chinaonrails.com/topic/view/3665.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://www.lukemelia.com/blog/archives/2010/01/17/redis-in-practice-whos-online/" rel="nofollow external" class="tpc"&gt;http://www.lukemelia.com/blog/archives/2010/01/17/redis-in-practice-whos-online/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
效果图&lt;br /&gt;
&lt;a href="http://www.lukemelia.com/images/blog/presence-screengrab.png" rel="nofollow external" class="tpc"&gt;http://www.lukemelia.com/images/blog/presence-screengrab.png&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
利用redis抽象数据结构set特性-不重复的0——N元素而且无序&lt;br /&gt;
&lt;br /&gt;
这样执行add操作，不管怎么加union后都不会重复&lt;br /&gt;
&lt;br /&gt;
按1分钟激活一个set，把用户登录请求记录到set里就是add， 5分钟（固定的时间段）union就是做统计&lt;br /&gt;
&lt;br /&gt;
也可以intersect 得出重叠的部分&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://www.lukemelia.com/images/blog/presence-online-friends-diagram.png" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
本站相关&lt;br /&gt;
Redis&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/1290.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/1290.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/3125.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/3125.html&lt;/a&gt;
			</description>
			<pubDate>Wed, 20 Jan 2010 08:48:07 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3665.html</guid>
		</item>
		<item>
			<title>yaml cookbook ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/3663.html</link>
			<comments>http://chinaonrails.com/topic/view/3663.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://www.yaml.org/YAML_for_ruby.html" rel="nofollow external" class="tpc"&gt;http://www.yaml.org/YAML_for_ruby.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Yaml是什么？&lt;br /&gt;
&lt;a href="http://www.ibm.com/developerworks/cn/xml/x-cn-yamlintro/" rel="nofollow external" class="tpc"&gt;http://www.ibm.com/developerworks/cn/xml/x-cn-yamlintro/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="code"&gt;GNU对UNIX说不，YAML说不的对象是XML。&lt;/div&gt;
&lt;br /&gt;
本站还提过另外的Yaml&lt;br /&gt;
&lt;a href="http://chinaonrails.com/topic/view/908.html" rel="nofollow external" class="tpc"&gt;http://chinaonrails.com/topic/view/908.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://css-tricks.com/wp-content/uploads/2007/10/yaml.gif" border="0" /&gt;
			</description>
			<pubDate>Tue, 19 Jan 2010 08:23:28 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3663.html</guid>
		</item>
		<item>
			<title>Acts As Adjacent 房前屋后 接毗邻居 ... 4 replies</title>
			<link>http://chinaonrails.com/topic/view/3656.html</link>
			<comments>http://chinaonrails.com/topic/view/3656.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://github.com/scsmith/ActsAsAdjacent" rel="nofollow external" class="tpc"&gt;http://github.com/scsmith/ActsAsAdjacent&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Simple rails plugin for adding the ability to get the next and previous activerecord objects.&lt;br /&gt;
&lt;br /&gt;
一前一后，还有随机的活动记录&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://steve.dynedge.co.uk/2010/01/random-previous-and-next-entries-from-active-record-models-using-offset/" rel="nofollow external" class="tpc"&gt;http://steve.dynedge.co.uk/2010/01/random-previous-and-next-entries-from-active-record-models-using-offset/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://static-p4.fotolia.com/jpg/00/07/29/23/400_F_7292365_HUnIouPdbZr6JfP2wmSkLyInj6iiVv8d.jpg" border="0" /&gt;
			</description>
			<pubDate>Thu, 14 Jan 2010 10:53:25 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3656.html</guid>
		</item>
		<item>
			<title>RCapture给任何方法下钩子 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/3640.html</link>
			<comments>http://chinaonrails.com/topic/view/3640.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://code.google.com/p/rcapture/" rel="nofollow external" class="tpc"&gt;http://code.google.com/p/rcapture/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
RCapture is a Ruby library that allows placing hooks on methods using a convenient interface.&lt;br /&gt;
&lt;br /&gt;
&lt;img class="code" src="http://www.tbotech.com/images/ninja/ninja-grappling-hook.jpg" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
RCapture offers the following core features&lt;br /&gt;
&lt;br /&gt;
Capturing of instance and class methods of individual objects or entire population of objects.&lt;br /&gt;
Capturing pre or post method invocation.&lt;br /&gt;
Multiple capturings per method.&lt;br /&gt;
Modify method arguments and return values.&lt;br /&gt;
Filter method calls.&lt;br /&gt;
Developed with multithreaded environments in mind&lt;br /&gt;
Example&lt;br /&gt;
&lt;br /&gt;
require 'rcapture'&lt;br /&gt;
&lt;br /&gt;
class Array&lt;br /&gt;
  # RCapture::Interceptable is a module mixin that provides capturing capatibilities.&lt;br /&gt;
  include RCapture::Interceptable&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
Array.capture_post :methods =&amp;gt; [:&amp;lt;&amp;lt;, :push] do |cs|&lt;br /&gt;
  puts "#{cs.args.first} was inserted to array #{cs.sender}"&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
[] &amp;lt;&amp;lt; 1 &amp;lt;&amp;lt; 2&lt;br /&gt;
[].push 3&lt;br /&gt;
&lt;br /&gt;
#=&amp;gt; 1 was inserted to array [1]&lt;br /&gt;
#=&amp;gt; 2 was inserted to array [1, 2]&lt;br /&gt;
#=&amp;gt; 3 was inserted to array [3]&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://cheind.wordpress.com/2010/01/07/introducing-rcapture/" rel="nofollow external" class="tpc"&gt;http://cheind.wordpress.com/2010/01/07/introducing-rcapture/&lt;/a&gt;
			</description>
			<pubDate>Fri, 08 Jan 2010 11:47:11 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3640.html</guid>
		</item>
		<item>
			<title>phone处理电话号码格式的插件 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/3636.html</link>
			<comments>http://chinaonrails.com/topic/view/3636.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			http://github.com/carr/phone&lt;br /&gt;
&lt;br /&gt;
&lt;div class="code"&gt;pn = Phone.parse('+385915125486')&lt;br /&gt;
  pn.to_s # =&amp;gt; "+385915125486"&lt;br /&gt;
  pn.format("%A/%f-%l") # =&amp;gt; "091/512-5486"&lt;br /&gt;
  pn.format("+ %c (%a) %n") # =&amp;gt; "+ 385 (91) 5125486"&lt;/div&gt;
&lt;br /&gt;
&lt;img class="code" src="http://www.dottyparker.com/blog/images/traincall.jpg" border="0" /&gt;&lt;br /&gt;
&lt;br /&gt;
待解决的是解析不同国家的区号&lt;br /&gt;
目前已经测试过的国家有&lt;br /&gt;
 US, South Africa, Croatia, Slovenia, Hungary, Serbia, Bosnia and Herzegovina, Germany.
			</description>
			<pubDate>Thu, 07 Jan 2010 08:32:22 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3636.html</guid>
		</item>
		<item>
			<title>具名的（方法）参数named arguments 或者叫 keyword parameters ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/3627.html</link>
			<comments>http://chinaonrails.com/topic/view/3627.html#reply</comments>
			<dc:creator>bd7lx</dc:creator>
			<author>bd7lx</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/9.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/9_n.jpg" type="image/jpeg" />-->
			<category>Consultant Team</category>
			<description>
			&lt;a href="http://github.com/maca/arguments" rel="nofollow external" class="tpc"&gt;http://github.com/maca/arguments&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://github.com/rdp/arguments" rel="nofollow external" class="tpc"&gt;http://github.com/rdp/arguments&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
arguments&lt;br /&gt;
Keyword arguments support now!&lt;br /&gt;
&lt;img class="code" src="http://www.freepicsupload.com/pics/phpRWuOwG-2010-01-04_124639.jpg" border="0" /&gt;&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
You don’t have to wait until Ruby 2.0 to get (named|keyword) arguments support. Arguments has been tested with Ruby 1.8.6 and ruby 1.9.1 and eventually will work with JRuby (if someone is interested in contributing, I guess is possible since merb-action-args works with JRuby)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="code"&gt;require 'arguments'&lt;br /&gt;
&lt;br /&gt;
    class Example&lt;br /&gt;
      def meth(a = :a, b = :b, c = :c)&lt;br /&gt;
        [a,b,c]&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      class &amp;lt;&amp;lt; self&lt;br /&gt;
        def class_method(a = :a, b = :b, c = :c)&lt;br /&gt;
          [a,b,c]&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        def other_class_method(a = :a, b = :b, c = :c)&lt;br /&gt;
          [a,b,c]&lt;br /&gt;
        end&lt;br /&gt;
        named_args_for :class_method&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      named_args_for :meth, :'self.other_class_method'&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    nu = Example.new&lt;br /&gt;
    nu.meth #=&amp;gt; [:a,:b,:c]&lt;br /&gt;
    nu.meth(1, :c =&amp;gt; Class) #=&amp;gt; [1,:b,Class]&lt;br /&gt;
    nu.meth(:b =&amp;gt; nil, :a =&amp;gt; 'something') #=&amp;gt; ['something', nil, :c]&lt;br /&gt;
&lt;br /&gt;
    Example.class_method(:b =&amp;gt; nil, :a =&amp;gt; 'something') #=&amp;gt; ['something', nil, :c]&lt;br /&gt;
    Example.other_class_method(:b =&amp;gt; nil, :a =&amp;gt; 'something') #=&amp;gt; ['something', nil, :c]&lt;/div&gt;
			</description>
			<pubDate>Mon, 04 Jan 2010 12:01:33 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/3627.html</guid>
		</item>
	</channel>
</rss>