<?xml version="1.0"  encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>Ruby-talk Mailing List Threads</title>
<link>http://readlist.com</link>
<description>Ruby-talk Mailing List - New Threads feed</description>
<language>en</language>
<image>
  <url>http://readlist.com/readlist-logo-tiny.gif</url>
  <title>ReadList.com</title>
  <link>http://readlist.com/</link>
  <width>156</width>
  <height>30</height>
</image>
<item>
  <title>iterate Array</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120754.html</link>
  <pubDate>Fri, 16 May 2008 11:47:50 GMT</pubDate>
  <description>Hi I have created an array like def checkdata(data) @passed_effort= data.split(':').collect! {|n| n} hours = @passed_effort[0] minutes = @passed_effort[1] @error_checked_value=Array.new if hours =~ /\D/ || minutes =~ /\D/ @error_checked_value &lt;&lt; 'nonnumeric' end if minutes.to_i &gt; 59 @error_checked_value &lt;&lt; 'notinrange' end ...</description>
</item>
<item>
  <title>Bug or feature?</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120751.html</link>
  <pubDate>Fri, 16 May 2008 10:43:28 GMT</pubDate>
  <description>Can anybody explain to me what does it mean? code -&gt; a1 = Array.new(1000000) a2 = Array.new(1000000) t = Time.now 1000000.times { |i| a1[i] = i; a2[i] = i } print "1. Elapsed time: ", Time.now - t, " seconds\n" t = Time.now 1000000.times { |i| a1[i], a2[i] = i, i } print "2. Elapsed time: ", Time.now - t, " seconds\n" results -&gt; ruby 1.8.6 1. Elapsed time: 0.882 seconds 2. Elapsed time: 11.436 ...</description>
</item>
<item>
  <title>Ruby gem newbie question</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120750.html</link>
  <pubDate>Fri, 16 May 2008 10:28:22 GMT</pubDate>
  <description>Hi, I am trying to create a ruby gem and I have a slight problem finding a file within it. The structure of the code in my gem is as follows: ./ bin/ ai lib/ app.rb app/ # src files templates/ default.txt .etc. The gem loads fine, my problem is that I cannot find the default.txt file in the templates dir from within the code in the app dir when it ...</description>
</item>
<item>
  <title>[ANN] rutema 0.7.0 Released</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120749.html</link>
  <pubDate>Fri, 16 May 2008 10:21:46 GMT</pubDate>
  <description>rutema version 0.7.0 has been released! ## DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes execution of automated and manual tests. It's purpose is to make testing in heterogeneous environments easier. For more information look at http://patir.rubyforge.org/rutema ## FEATURES/PROBLEMS: * ...</description>
</item>
<item>
  <title>A Couple of Questions Regarding Ruby Style</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120734.html</link>
  <pubDate>Fri, 16 May 2008 04:55:49 GMT</pubDate>
  <description>While working on my rational class I came up with a couple of questions regarding the accepted way to do things. I looked up a couple of Style guides on the net but they seemed to cover only the formatting of code and not what I was looking for. The first is when casting is it preferred to use Integer(x) or x.to_i? Being from a C background the first is more obvious to me as it states that I am converting x to an Integer. The second has ...</description>
</item>
<item>
  <title>Differing output for function moved from ruby 1.8 to 1.9</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120729.html</link>
  <pubDate>Fri, 16 May 2008 01:55:54 GMT</pubDate>
  <description>Sup, fools? This is the Levenshtein function I'm gankin' for my file comparison project (see "40 million comparison..." thread): # Levenshtein calculator # Author: Paul Battley (pbattley) # Modified slightly by John Perkins: # -- removed $KCODE call def distance(str1, str2) unpack_rule = 'C*' s = str1.unpack(unpack_rule) t = str2.unpack(unpack_rule) n = s.length m = t.length ...</description>
</item>
<item>
  <title>Create an empty file of certain size</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120719.html</link>
  <pubDate>Thu, 15 May 2008 22:11:31 GMT</pubDate>
  <description>Hi, I need to create an empty (or at least garbage) file of a certain size. I'm doing it the way below, but it is rather slow -- any ideas on a quicker way? File.open("tmp.txt", 'w') { |f| 10.megabytes.times { f.write "a" } } Thanks! ~ Mark -- Posted via http://www.ruby-forum.com/. ...</description>
</item>
<item>
  <title>Matz: can we have rescue/else/ensure available in all blocks?</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120718.html</link>
  <pubDate>Thu, 15 May 2008 22:03:43 GMT</pubDate>
  <description>Hi Matz, I recently posted a Ruby 1.9 wishlist (http://groups.google.com/group/ ruby-talk-google/browse_thread/thread/d771ffa9fe10b811/ c8b5b0b02bd1e2d4) and the #1 item was to have rescue/else/ensure available in all blocks w/o the need for begin/end. It turned out to be the one thing that everyone agreed on. I think anyone who has done a real project in Ruby has run into this. Is there any way you can get this in 1.9? ...</description>
</item>
<item>
  <title>Re: Randomizing an Array?</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120711.html</link>
  <pubDate>Thu, 15 May 2008 20:53:40 GMT</pubDate>
  <description>Florian Frank wrote: &gt; Daniel Waite wrote: &gt;&gt; Florian Frank wrote: &gt;&gt;&gt; Don't do this, better use (1..10).sort_by { rand }. Your version is &gt;&gt;&gt; equivalent to (1..10).sort { 1 } and *always* creates the same &gt;&gt;&gt; permutation for this array. &gt;&gt; &gt;&gt; It's random for me. Both work. &gt; &gt; No, really, it isn't. It may "look random", but try sorting (1..10) many &gt; times and ponder ...</description>
</item>
<item>
  <title>Ruby 1.9 compatibility and performance</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120699.html</link>
  <pubDate>Thu, 15 May 2008 18:18:24 GMT</pubDate>
  <description>I have pretty much committed to Ruby for several projects - and two things make me nervous: 1) Ruby seems to be changing fundamental things - like Strings - in 1.9. The changes are incompatible and seem fundamental (e.g. enumeration), which seems peculiar given the late date in the evolution of Ruby. Why make these changes now? (At least, trying to mix a handful of needed new modules out of top of tree with 1.8 obviously doesn't work - the ...</description>
</item>
<item>
  <title>Contionnal sum</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120680.html</link>
  <pubDate>Thu, 15 May 2008 16:28:16 GMT</pubDate>
  <description>Hi, I am wondering if it is possible to create a conditionnal sum. For instance I would like to do something like this: @total_amount = @orders.sum { |order| order.amount if order.paid == true } -- Posted via http://www.ruby-forum.com/. ...</description>
</item>
<item>
  <title>What is the bes Ruby's book for beginners?</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120679.html</link>
  <pubDate>Thu, 15 May 2008 16:26:51 GMT</pubDate>
  <description>Hi everybody, This is my first message to this forum. I'm interested in learning Ruby and would like to know what book you think I should start with. I've worked as a developer for over 17 years and as a Java developer for 3 and a half years. However I don't know anything about Ruby. So I need a book that teaches Ruby from the scratch. What book do you advice me reading? I want a book that is good both in content and ...</description>
</item>
<item>
  <title>Access Hash in the same order that was created</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120677.html</link>
  <pubDate>Thu, 15 May 2008 16:23:43 GMT</pubDate>
  <description>I need to access to a Hash in the same order that It was created: mh=Hash.new() mh["one"]="1" mh["two"]="2" mh["three"]="3" mh["four"]="4" mh.each {|val| puts val[0] } In this example I get: three two one four and I would like to get: one two three four is that possible? Thanks -- Posted via http://www.ruby-forum.com/. ...</description>
</item>
<item>
  <title>Re: openssl error - ubuntu</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120673.html</link>
  <pubDate>Thu, 15 May 2008 16:05:37 GMT</pubDate>
  <description>Thanks for all the help. The full story of how I installed Rails can be found in http://forum.eeeuser.com/viewtopic.php?pid=257583#p257583 http://forum.eeeuser.com/viewtopic.php?pid=257583 Gaius Centus Novus wrote: &gt; I solved my own problem: the make and make install should be run from &gt; the ext/openssl/ directory (and it's fine if there's "nothing to do for &gt; make"). &gt; &gt; -Gaius -- Posted ...</description>
</item>
<item>
  <title>ssh to execute remote ruby script</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120671.html</link>
  <pubDate>Thu, 15 May 2008 15:54:40 GMT</pubDate>
  <description>I'm using 'net/ssh' to ssh into a OS X server and run a ruby script, like this: Net::SSH.start( "xxx.xxx.xxx", :username =&gt; 'xxx', :password =&gt; 'xxx' ) do | session | shell = session.shell.open shell.exec "ruby /usr/local/pgsql/share/migrate.rb #{params['host']}" end The migrate.rb looks like this: require 'rubygems' ...some ruby code For some reason, the script fails to ...</description>
</item>
<item>
  <title>YARV Bytecode Documentation</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120668.html</link>
  <pubDate>Thu, 15 May 2008 15:20:25 GMT</pubDate>
  <description>Hello *, does anybody know any (if possible up-to-date) documentation/specification of the Ruby 1.9 (YARV) bytecodes? The only docs I could find are: http://www.atdot.net/yarv/insnstbl.html (a simple table of the opcodes) and http://www.atdot.net/yarv/yarvarch.en.html (not much more than a table) However, both sites seem to be outdated and are lacking some useful explanations (e.g., what is the op_flag ...</description>
</item>
<item>
  <title>unsuscribe</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120665.html</link>
  <pubDate>Thu, 15 May 2008 14:35:26 GMT</pubDate>
  <description>unsuscribe ************************** Si vous n'etes pas le destinataire designe de ce message ou une personne autorisee a l'utiliser, toute distribution, copie, publication ou usage a quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immediatement l'expediteur par messagerie, et, de detruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this ...</description>
</item>
<item>
  <title>finding current drive</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120662.html</link>
  <pubDate>Thu, 15 May 2008 13:45:40 GMT</pubDate>
  <description>hello, Is there a way to find out under what drive my current/active file is? if the .rb file i'm working on is sitting in c:/code/ruby/myfile.rb, i would like to find a way to retrieve "c". Thanks! -- Posted via http://www.ruby-forum.com/. ...</description>
</item>
<item>
  <title>[ANN] The Book Of Ruby - Free eBook</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120661.html</link>
  <pubDate>Thu, 15 May 2008 13:23:48 GMT</pubDate>
  <description>As some of you may know, a couple of years ago, I wrote a free Ruby eBook called The Little Book Of Ruby. This has been downloaded many tens of thousands of times in English and an unknown number of times in translation. The Little Book Of Ruby is a short (10 chapter, 87 page) eBook that covers the fundamentals of Ruby programming The Little Book now has a big brother called simply The Book Of Ruby. This will eventually run to over 400 ...</description>
</item>
<item>
  <title>RmtObj release</title>
  <link>http://readlist.com/lists/ruby-lang.org/ruby-talk/24/120658.html</link>
  <pubDate>Thu, 15 May 2008 11:14:29 GMT</pubDate>
  <description>Hi All, I released 'RmtObj' library on my web-site,which address shown below. http://amon.dip.jp/index.php?RmtObj_English 'RmtObj' is a platform, which enables you to control the ruby object placed on the web-server. Transferred ruby object will run on the web-server, but you can control it as if it is on the local machine. RmtObj is very similar to dRuby, but differ from it mainly following points. ...</description>
</item>
</channel>
</rss>
