<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>comp.lang.ruby Google Group</title>
  <link>http://groups.google.com/group/comp.lang.ruby</link>
  <description>The Ruby dynamic OO programming language.</description>
  <language>en</language>
  <item>
  <title>Re: newbie question</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0fa3dbb99a99c982/6235154ae7d7ca8a?show_docid=6235154ae7d7ca8a</link>
  <description>
  Is because &#39;aaa&#39; is undefined, while :aaa is a symbol &lt;br&gt; Get a free PDF version of The Book of Ruby to learn more about Ruby &lt;br&gt; syntax: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.sapphiresteel.com/The-Book-Of-Ruby&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0fa3dbb99a99c982/6235154ae7d7ca8a?show_docid=6235154ae7d7ca8a</guid>
  <author>
  luislav...@gmail.com
  (Luis Lavena)
  </author>
  <pubDate>Sun, 22 Nov 2009 15:12:43 UT
</pubDate>
  </item>
  <item>
  <title>newbie question</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0fa3dbb99a99c982/40fc7a5f557c2986?show_docid=40fc7a5f557c2986</link>
  <description>
  Hello &lt;br&gt; I noticed the following example somewhere &lt;br&gt; def mymethod(opts) &lt;br&gt; p opts &lt;br&gt; end &lt;br&gt; mymethod(:aaa =&amp;gt; &amp;quot;something&amp;quot;) &lt;br&gt; I&#39;m wondering what this :aaa stands for. If I omit the &lt;br&gt; colon before the dummy aaa, it doesn&#39;t works. &lt;br&gt; Thanks for any hint/light.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0fa3dbb99a99c982/40fc7a5f557c2986?show_docid=40fc7a5f557c2986</guid>
  <author>
  c...@live.fr
  (cmic)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:55:55 UT
</pubDate>
  </item>
  <item>
  <title>Re: really crazy about this (do/while)</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/995b00a60a03d178/28fa8bc4dc03ac72?show_docid=28fa8bc4dc03ac72</link>
  <description>
  Another possibility is using a small, but &amp;gt;0, epsilon and check if the &lt;br&gt; distance between the number and the limit is less than its value. Ruby &lt;br&gt; does this automatically for you, if you use its #step functions: &lt;br&gt; &amp;gt;&amp;gt; 98.3.step(98.6, 0.1).to_a &lt;br&gt; # =&amp;gt; [98.3, 98.4, 98.5, 98.6] &lt;br&gt; &amp;gt;&amp;gt; 98.4.step(98.6, 0.1).to_a &lt;br&gt; # =&amp;gt; [98.4, 98.5, 98.6]
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/995b00a60a03d178/28fa8bc4dc03ac72?show_docid=28fa8bc4dc03ac72</guid>
  <author>
  fl...@ping.de
  (Florian Frank)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:49:46 UT
</pubDate>
  </item>
  <item>
  <title>Re: Pseudo array for Rails migration</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0e4bf01ff258b2e0/1de69df8c24cbfb5?show_docid=1de69df8c24cbfb5</link>
  <description>
  What stops you from doing &lt;br&gt; N_X = 20 # size of pseudo array &lt;br&gt; class CreatePeople &amp;lt; ActiveRecord::Migration &lt;br&gt; create_table :people do |t| &lt;br&gt; t.string :first_name , :null =&amp;gt; false &lt;br&gt; . &lt;br&gt; . &lt;br&gt; . &lt;br&gt; N_X.times do |i| &lt;br&gt; t.integer((&amp;quot;x%02d&amp;quot; % i).to_sym) &lt;br&gt; end &lt;br&gt; t.timestamps
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0e4bf01ff258b2e0/1de69df8c24cbfb5?show_docid=1de69df8c24cbfb5</guid>
  <author>
  shortcut...@googlemail.com
  (Robert Klemme)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:50:50 UT
</pubDate>
  </item>
  <item>
  <title>Re: really crazy about this (do/while)</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/995b00a60a03d178/17331366640b03e0?show_docid=17331366640b03e0</link>
  <description>
  [Note: parts of this message were removed to make it a legal post.] &lt;br&gt; BigDecimal is probably easier to code with, but can kill performance as has &lt;br&gt; been mentioned previously. Recalling the old Fortran days, we always had a &lt;br&gt; constant called EPS we used in these kind of situations. EPS (short for &lt;br&gt; epsilon) was set to a small number, usually 1e-7. Anytime we needed to
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/995b00a60a03d178/17331366640b03e0?show_docid=17331366640b03e0</guid>
  <author>
  d...@dseifert.net
  (Douglas Seifert)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:42:34 UT
</pubDate>
  </item>
  <item>
  <title>Re: How to match and count</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/3948f56cb5d7573f/59b1086dd4571d5b?show_docid=59b1086dd4571d5b</link>
  <description>
  The code above does not close the file handle properly. Also if can be &lt;br&gt; done shorter: &lt;br&gt; File.foreach &amp;quot;file.txt&amp;quot; do |line| &lt;br&gt; ... &lt;br&gt; end &lt;br&gt; You can even use Ruby like awk which seems to be rarely done - but it&#39;s &lt;br&gt; possible. &lt;br&gt; Can be done like &lt;br&gt; ruby -nae &#39;BEGIN {$i=0}; $i+=1 if /something/ =~ $F[3]; END {puts $i}&#39;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/3948f56cb5d7573f/59b1086dd4571d5b?show_docid=59b1086dd4571d5b</guid>
  <author>
  shortcut...@googlemail.com
  (Robert Klemme)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:45:50 UT
</pubDate>
  </item>
  <item>
  <title>Re: Finding the closest value from a matrix</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/6c1e2006c4bce337/6c487b4a91897923?show_docid=6c487b4a91897923</link>
  <description>
  Create a one-dimensional array where each entry records the value, row &lt;br&gt; and column number (or row and column headers). &lt;br&gt; Descriptor = Struct.new :row, :col, :value &lt;br&gt; a = [ &lt;br&gt; Descriptor.new(0, 0, 1.183), &lt;br&gt; Descriptor.new(0, 1, 1.118), &lt;br&gt; Descriptor.new(0, 1, 1.006), &lt;br&gt; # ..etc. &lt;br&gt; ] &lt;br&gt; a = a.sort_by{ |desc| desc.value }
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/6c1e2006c4bce337/6c487b4a91897923?show_docid=6c487b4a91897923</guid>
  <author>
  phr...@mac.com
  (Phrogz)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:42:04 UT
</pubDate>
  </item>
  <item>
  <title>Pseudo array for Rails migration</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0e4bf01ff258b2e0/0f14a6c2c5b36fae?show_docid=0f14a6c2c5b36fae</link>
  <description>
  Consider &lt;br&gt; N_X = 20 # size of pseudo array &lt;br&gt; class CreatePeople &amp;lt; ActiveRecord::Migration &lt;br&gt; create_table :people do |t| &lt;br&gt; t.string :first_name , :null =&amp;gt; false &lt;br&gt; . &lt;br&gt; . &lt;br&gt; . &lt;br&gt; t.integer :x00 &lt;br&gt; t.integer :x01 &lt;br&gt; t.integer :x02 &lt;br&gt; . &lt;br&gt; . &lt;br&gt; . &lt;br&gt; t.integer :x18
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/0e4bf01ff258b2e0/0f14a6c2c5b36fae?show_docid=0f14a6c2c5b36fae</guid>
  <author>
  ral...@dos32.com
  (Ralph Shnelvar)
  </author>
  <pubDate>Sun, 22 Nov 2009 14:06:02 UT
</pubDate>
  </item>
  <item>
  <title>Re: COW-friendly Ruby 1.9?</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/86c6570111778d9a/178990d8a3369306?show_docid=178990d8a3369306</link>
  <description>
  Hi, &lt;br&gt; In message &amp;quot;Re: COW-friendly Ruby 1.9?&amp;quot; &lt;br&gt; The REE patch made Ruby so slow on some non-Web cases. AuthorNari &lt;br&gt; made the faster patch. But it&#39;s still (much) slower than the original &lt;br&gt; GC for non forking programs. Besides that, the patch had the serious &lt;br&gt; bug which we could not identify for long time. &lt;br&gt; Ko1 is working on improvement on Ruby&#39;s memory management (not GC).
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/86c6570111778d9a/178990d8a3369306?show_docid=178990d8a3369306</guid>
  <author>
  m...@ruby-lang.org
  (Yukihiro Matsumoto)
  </author>
  <pubDate>Sun, 22 Nov 2009 13:44:31 UT
</pubDate>
  </item>
  <item>
  <title>cheaper nike shoes g-satr kidrobot hoodies ed hardy star red monkey gino green global true</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/55906154479204d9/8d19c7f9cf17efe3?show_docid=8d19c7f9cf17efe3</link>
  <description>
  Get Nike Shoes at Super Cheap Prices &lt;br&gt; Discount Ed hardy tshirt (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.withadream.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy jean (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.withadream.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy shoes (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.withadream.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy handbag (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.withadream.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Ed hardy other porduct (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.withadream.com&quot;&gt;[link]&lt;/a&gt;) &lt;br&gt; Discount Nike air jordans (&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.withadream.com&quot;&gt;[link]&lt;/a&gt;)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/55906154479204d9/8d19c7f9cf17efe3?show_docid=8d19c7f9cf17efe3</guid>
  <author>
  ooshop...@msn.com
  (ooshopsky@msn.com)
  </author>
  <pubDate>Sun, 22 Nov 2009 13:41:43 UT
</pubDate>
  </item>
  <item>
  <title>OCR of PDF-documents using GData</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/c14a52d87d406b49/6498e993f68939d5?show_docid=6498e993f68939d5</link>
  <description>
  Hi, &lt;br&gt; Has anybody been able to perform OCR on a pdf document using GData? &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://googledataapis.blogspot.com/2009/09/import-scans-or-go-multilingual.html&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Png and jpgs work fine after setting @client.version = &#39;3&#39; in &lt;br&gt; GData::Client::DocList but when I try pdf-files I get: &lt;br&gt; xmlns=&#39;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://schemas.google.com/g/2005&#39;&quot;&gt;[link]&lt;/a&gt;&amp;gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/c14a52d87d406b49/6498e993f68939d5?show_docid=6498e993f68939d5</guid>
  <author>
  grap...@walala.org
  (Abigail Headroom)
  </author>
  <pubDate>Sun, 22 Nov 2009 13:40:19 UT
</pubDate>
  </item>
  <item>
  <title>Re: confuse about initialize hash</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ba531ac6f8a475e2/57c218d054b4ab62?show_docid=57c218d054b4ab62</link>
  <description>
  the hash options I saw in atom_feed , but it doesn&#39;t the last argument. &lt;br&gt; ============================== ============================== == &lt;br&gt; def atom_feed(options = {}, &amp;amp;block) &lt;br&gt; 95: if options[:schema_date] &lt;br&gt; 96: options[:schema_date] = &lt;br&gt; options[:schema_date].strftime (&amp;quot;%Y-%m-%d&amp;quot;) if &lt;br&gt; options[:schema_date].respond_ to?(:strftime)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ba531ac6f8a475e2/57c218d054b4ab62?show_docid=57c218d054b4ab62</guid>
  <author>
  g.zhen.n...@gmail.com
  (Zhenning Guan)
  </author>
  <pubDate>Sun, 22 Nov 2009 13:20:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: where to find the help document?</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/564554dcae348661/fffe817cbc55e9e4?show_docid=fffe817cbc55e9e4</link>
  <description>
  man ri
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/564554dcae348661/fffe817cbc55e9e4?show_docid=fffe817cbc55e9e4</guid>
  <author>
  ax...@126.com
  (Haoqi Haoqi)
  </author>
  <pubDate>Sun, 22 Nov 2009 10:39:54 UT
</pubDate>
  </item>
  <item>
  <title>Re: Removing optional white space - doh! - refined</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/18727048f0c45b93/289c9059026d7432?show_docid=289c9059026d7432</link>
  <description>
  Because it avoids accidentally doing the substitution of other text &lt;br&gt; which consists of two characters. Even if that text is not supposed to &lt;br&gt; appear in your input, using the explicit form helps documenting what&#39;s &lt;br&gt; intended. And the code is more robust: it will not break if the input &lt;br&gt; changes. &lt;br&gt; Cheers
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/18727048f0c45b93/289c9059026d7432?show_docid=289c9059026d7432</guid>
  <author>
  shortcut...@googlemail.com
  (Robert Klemme)
  </author>
  <pubDate>Sun, 22 Nov 2009 10:33:06 UT
</pubDate>
  </item>
  <item>
  <title>Re: Same name for class and instance method</title>
  <link>http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/f0796f1481b6af67/15767bd223915ec3?show_docid=15767bd223915ec3</link>
  <description>
  Yes. &lt;br&gt; First of all, using the same name for a class and instance method can &lt;br&gt; cause confusion, so it&#39;s probably not a too good idea in the general &lt;br&gt; case. That doesn&#39;t mean that there aren&#39;t valid use cases for this though. &lt;br&gt; The way you seem to be using a block (definition of c is missing in your &lt;br&gt; example) is a bit unusual. Usually you would do
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/f0796f1481b6af67/15767bd223915ec3?show_docid=15767bd223915ec3</guid>
  <author>
  shortcut...@googlemail.com
  (Robert Klemme)
  </author>
  <pubDate>Sun, 22 Nov 2009 10:29:25 UT
</pubDate>
  </item>
  </channel>
</rss>
