11 Feb '12, 10am

Appending to an Array - Ruby Forum:

I am querying a database using DBI and ODBC. After I run the execute, I want to grab each row as an array, and add it to another array, essentially creating an Array of Arrays. I've tried this two ways with the same result: sth = dbh.execute("SELECT * FROM SOMETABLE") rows = sth.fetch_all and rows = sth.fetch do |row| rows << row end The result for both is that the last row is repeated in the array however many times there are rows. Why isn't it appending correctly? Thanks, Anthony

Full article: http://www.ruby-forum.com/topic/3602742

Tweets

Mailer Behaviour... Testing with Rails Console ...

ruby-forum.com 11 Feb '12, 9pm

Ok, even though I haven't gotten the Mailer behaviour to work on my site yet. I have some notes here that might help other...

Ruby 1.9.3-p125 をリリースした

ruby-lang.org 16 Feb '12, 12pm

a security fixes of the Ruby OpenSSL extension . And many bugs are fixed in this release.

Ruby GSSAPI v1.1.0

rubyflow.com 10 Feb '12, 3pm

Posted by zenchild on February 10, 2012 — 0 comments I just pushed out version 1.1.0 of the Ruby GSSAPI library. Changes i...

@alkanphel Then you need this #BBBMTL

@alkanphel Then you need this #BBBMTL

cathayphoto.com.sg 11 Feb '12, 4am

Please note that all the following offers are: Inclusive of 7% Goods and Services Tax (GST), applicable for local purchase...

this is freaking awesome, stumbled across it to...

isitruby19.com 12 Feb '12, 11pm

The Ruby community needs your help. Install Ruby 1.9.1 then try out your favourite gems and provide feedback here. We can ...

Ruby 1.9.3-p125 and 1.8.7-p358 have been released

ruby-lang.org 16 Feb '12, 12pm

Security Fix for Ruby OpenSSL module: Allow "0/n splitting" as a prevention for the TLS BEAST attack. Denial of service at...

Convert Ruby 1.8 to 1.9 hash syntax

robots.thoughtbot.com 11 Feb '12, 10pm

thoughtbot giant robots smashing into other giant robots We are thoughtbot , a web design and development agency in Boston...

Do you know Ruby Doctest?

rubylearning.com 11 Feb '12, 7pm

USAGE: rubydoctest [options] rubydoctest parses Ruby files (.rb) or DocTest files (.doctest) for irb-style sessions in com...

Array - Rubyリファレンスマニュアル:

ruby-lang.org 24 Feb '12, 6am

配列を生成します。size を指定したときにはその大きさの配列を 生成し nil で初期化します。第二引数 val も指定したとき には nil の代わりにそのオブジェクトを全要素にセットします。 (要素毎に val が複製されるわけではないこ...

RubyDrop: A Dropbox Clone in Ruby:

rubyinside.com 09 Feb '12, 7pm

Ever used Dropbox ? It's awesome. A cross-platform (Windows, Mac, Linux, and even mobile) file syncing and backup service ...

Ruby Programming 31st Batch: Registrations now ...

rubylearning.com 10 Feb '12, 9am

The Mentors shall give you URL’s of pages and sometimes some extra notes; you need to read through. Read the pre-class rea...

any ruby gems for /programmes other than

rubygems.org 14 Feb '12, 3pm

Ruby client library for the BBC Programmes website.

Ruby Rogues 041 - Code Metrics

rubyflow.com 10 Feb '12, 3am

Ruby Rogues 041 - Code Metrics Posted by woody2shoes on February 10, 2012 — 0 comments This week the Ruby Rogues welcome t...

Some interesting work on benchmarking #Ruby

on-ruby.blogspot.com 07 Feb '12, 10pm

Work on my book hasn't been going as well as I'd wanted (it's amazing how procrastination and laziness can throw you off a...