# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1622

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1623

---

## [Net::SSH Data Stream Problem](https://www.ruby-forum.com/t/net-ssh-data-stream-problem/75270)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 11\
**Last updated:** [November 8, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/net-ssh-data-stream-problem/75270 "2006-11-08T20:58:24Z")

</div>

Hello, I am trying to copy a file from my local machine to a remote machine using Net::SSH. The copy fails part way leaving the file partly written on the remote machine. The size of the remote file portion is alwa…

---

## [Can you rubyfy this?](https://www.ruby-forum.com/t/can-you-rubyfy-this/75160)

<div class="topic-metadata">

**Author:** [@Boris\_Schulz](https://www.ruby-forum.com/u/Boris_Schulz)\
**Replies:** 13\
**Last updated:** [November 8, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/can-you-rubyfy-this/75160 "2006-11-08T20:56:24Z")

</div>

Hi, I often read something about code being “rubystyle” though I am not exactly sure what it means. Maybe someone can help me out and put the couple of lines below into a typical ruby style? greets, B. #!/usr/bin/r…

---

## [Windows commands and error handling](https://www.ruby-forum.com/t/windows-commands-and-error-handling/75280)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 1\
**Last updated:** [November 8, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/windows-commands-and-error-handling/75280 "2006-11-08T20:22:20Z")

</div>

I am attempting to handle windows native command errors within a Ruby script on windows xp. Commands in backticks like net use ... do not allow for this. I tried open3, but it is unsupported on windows because of the…

---

## [CGI and POST/PUT URL Variables](https://www.ruby-forum.com/t/cgi-and-post-put-url-variables/75071)

<div class="topic-metadata">

**Author:** [@Trevor\_Elliott](https://www.ruby-forum.com/u/Trevor_Elliott)\
**Replies:** 2\
**Last updated:** [November 8, 2006, 7:38pm UTC](https://www.ruby-forum.com/t/cgi-and-post-put-url-variables/75071 "2006-11-08T19:38:09Z")

</div>

Hi Everyone, I encountered a strange problem when trying to write a cgi script to handle a PUT/POST scenario for a set of REST-style web services I’m writing in Ruby. If I do a normal post to a url, say: /cgi-bin/cg…

---

## [Matz podcast, and, streaming data in Ruby?](https://www.ruby-forum.com/t/matz-podcast-and-streaming-data-in-ruby/75272)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/matz-podcast-and-streaming-data-in-ruby/75272 "2006-11-08T18:41:56Z")

</div>

matz presentation on ruby design: streaming data in Ruby – anybody know of media servers in Ruby? I need to stream media files to a restful web service. (I know Rails has lots of support for rest, but it all seems to…

---

## [Eclipse Ruby Development Tools debugger problem](https://www.ruby-forum.com/t/eclipse-ruby-development-tools-debugger-problem/75052)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 8, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/eclipse-ruby-development-tools-debugger-problem/75052 "2006-11-08T18:01:47Z")

</div>

I followed the instructions in this article on how to setup RDT in Eclipse: http://www-128.ibm.com/developerworks/opensource/library/os-rubyeclipse/?ca=dgr-lnxw01Ruby4Eclipse I was able to run the unit tests but I don…

---

## [Suprise in Ruby](https://www.ruby-forum.com/t/suprise-in-ruby/75262)

<div class="topic-metadata">

**Author:** [@friedrich](https://www.ruby-forum.com/u/friedrich)\
**Replies:** 4\
**Last updated:** [November 8, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/suprise-in-ruby/75262 "2006-11-08T17:17:43Z")

</div>

I can not remember having read about it before, however the following happens here: irb(main):015:0\> arr = Array.new(3, Array.new) \[\[\], \[\], \[\]\] irb(main):016:0\> arr\[0\].push(1) \[1\] irb(main):017:0\> arr \[\[1\], \[1\], \[…

---

## [Can't bind a singleton method to a subclass?](https://www.ruby-forum.com/t/cant-bind-a-singleton-method-to-a-subclass/75191)

<div class="topic-metadata">

**Author:** [@David\_Walker](https://www.ruby-forum.com/u/David_Walker)\
**Replies:** 10\
**Last updated:** [November 8, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/cant-bind-a-singleton-method-to-a-subclass/75191 "2006-11-08T16:47:38Z")

</div>

The behavior of this snippet doesn’t make sense to me: class A def A.class\_method puts “Class method worked in #{self}” end end class B \< A; end aklass = (class \<\< A; self; end) bklass = (class \<\< B; self; end) p…

---

## [Book wanted: Concurrent Ruby Programming (was Re: Book wante](https://www.ruby-forum.com/t/book-wanted-concurrent-ruby-programming-was-re-book-wante/75105)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 4\
**Last updated:** [November 8, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/book-wanted-concurrent-ruby-programming-was-re-book-wante/75105 "2006-11-08T16:29:35Z")

</div>

Ola B. wrote: Ruby Wish List resident expert, I think … But concurrency in Ruby is still green threads, so that would have to be either concurrency with YARV, or concurrency with separate Ruby processes communi…

---

## [Session Eruby.noheader problem](https://www.ruby-forum.com/t/session-eruby-noheader-problem/75252)

<div class="topic-metadata">

**Author:** [@mbubi](https://www.ruby-forum.com/u/mbubi)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/session-eruby-noheader-problem/75252 "2006-11-08T14:21:13Z")

</div>

Hi i have installed Ruby and Apache on Windows Machine. I tried to work with session but i have a problem. the script se1.rhtml work fine: \<% require “cgi” require “cgi/session” begin ERuby.noheader = true cgi =…

---

## [ActiveRecord-Mimer 0.0.1](https://www.ruby-forum.com/t/activerecord-mimer-0-0-1/75247)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/activerecord-mimer-0-0-1/75247 "2006-11-08T14:15:02Z")

</div>

The initial version of ActiveRecord-Mimer have been released. The project aims to provide complete ActiveRecord support for the Mimer SQL database engine. This initial release provides the basis for that. Most operati…

---

## [Get Stock Quote](https://www.ruby-forum.com/t/get-stock-quote/74413)

<div class="topic-metadata">

**Author:** [@vikashkumar051](https://www.ruby-forum.com/u/vikashkumar051)\
**Replies:** 2\
**Last updated:** [November 8, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/get-stock-quote/74413 "2006-11-08T12:30:04Z")

</div>

class RubyStock def initialize end require ‘net/http’ def RubyStock::getStocks(symbols) Hash\[(symbols.collect{|symbol|\[symbol,Hash\[ \*(Net::HTTP.get(‘quote.yahoo.com’,‘/d?f=nl1&s=’+symbol).chop .split(‘,’).unshift(…

---

## [Rexml](https://www.ruby-forum.com/t/rexml/75041)

<div class="topic-metadata">

**Author:** [@pdg](https://www.ruby-forum.com/u/pdg)\
**Replies:** 21\
**Last updated:** [November 8, 2006, 11:36am UTC](https://www.ruby-forum.com/t/rexml/75041 "2006-11-08T11:36:28Z")

</div>

Hi All, As a first exercise with Ruby, I am going through the Pickaxe book and creating a jukebox. I haven’t even tried to create an array of songs yet, because I got distracted and wanted to work this out. I am tryin…

---

## [Inter-thread synchronization](https://www.ruby-forum.com/t/inter-thread-synchronization/75155)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 4\
**Last updated:** [November 8, 2006, 11:30am UTC](https://www.ruby-forum.com/t/inter-thread-synchronization/75155 "2006-11-08T11:30:26Z")

</div>

At his presentation for RubyConf, Koichi Sasada said that Thread.critical= may be going away in the future. I stood up afterwards and requested that it stay. Charles Nutter stood up and requested that it go. After tal…

---

## [Ruby questions](https://www.ruby-forum.com/t/ruby-questions/75120)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 1\
**Last updated:** [November 8, 2006, 10:12am UTC](https://www.ruby-forum.com/t/ruby-questions/75120 "2006-11-08T10:12:16Z")

</div>

Is it possible to use a ruby variable to pass information to a mysql query? If it is not possible what is the work around? Is it Bindtag.rb? How do you test for data captured at a button event? When do you place a t…

---

## ['exec': Operation not supported](https://www.ruby-forum.com/t/exec-operation-not-supported/75183)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [November 8, 2006, 10:10am UTC](https://www.ruby-forum.com/t/exec-operation-not-supported/75183 "2006-11-08T10:10:16Z")

</div>

I’m on Mac OS X / Powerbook and I’m trying to figure out why Mongrel doesn’t restart on it. When I do ‘mongrel\_rails restart’ (which reportedly works fine on other platforms, except Windows), I get this error in my lo…

---

## [1.8$BLdBj$^$H$a(B](https://www.ruby-forum.com/t/1-8-bldbj-h-a-b/75220)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 1\
**Last updated:** [November 8, 2006, 10:04am UTC](https://www.ruby-forum.com/t/1-8-bldbj-h-a-b/75220 "2006-11-08T10:04:15Z")

</div>

e$BKNIt$G$9!#e(B e$B$H$j$"$($:e(Bruby -ve$B$I$&$9$s$N$H$+$N\<c43$NL$2r7h;v9\`$O$"$k$b$N$N!"e(B RUBY\_PATCHLEVELe$B$NF3F~$=$N$b$N$K4X$7$F$O9g0U$,F@$i$l$?\>uBV$G$O$J$$$+$H;We(B e$B$$$^$9!#e(B e$B$$$^5DO@$K$J$C$F$$$k$N$O$=…

---

## [Ruby-oci8 install problem. Oracle instant client + os x + ra](https://www.ruby-forum.com/t/ruby-oci8-install-problem-oracle-instant-client-os-x-ra/75122)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [November 8, 2006, 9:52am UTC](https://www.ruby-forum.com/t/ruby-oci8-install-problem-oracle-instant-client-os-x-ra/75122 "2006-11-08T09:52:11Z")

</div>

Hi all, Perhaps some of you may be able to shed some light on the following. I have oracle express installed on a window machine. I have installed oracle instant client on my macbook and can connect with sqlplus and …

---

## [Understanding send](https://www.ruby-forum.com/t/understanding-send/75201)

<div class="topic-metadata">

**Author:** [@gaurav\_bagga](https://www.ruby-forum.com/u/gaurav_bagga)\
**Replies:** 1\
**Last updated:** [November 8, 2006, 9:20am UTC](https://www.ruby-forum.com/t/understanding-send/75201 "2006-11-08T09:20:05Z")

</div>

class MyNewClass attr\_accessor :name,:place,:age end a=\[\] 1.upto(3) do val=MyNewClass.new val.instance\_variables.each do |met| val.send(met.delete("@")+"=",gets.chomp!) end a\<\<val end a.each do |val| val.inst…

---

## [Ruby-ncurses related problems](https://www.ruby-forum.com/t/ruby-ncurses-related-problems/75190)

<div class="topic-metadata">

**Author:** [@Stanislaw\_Halik](https://www.ruby-forum.com/u/Stanislaw_Halik)\
**Replies:** 2\
**Last updated:** [November 8, 2006, 8:20am UTC](https://www.ruby-forum.com/t/ruby-ncurses-related-problems/75190 "2006-11-08T08:20:00Z")

</div>

Heya, I’m trying to learn the Ncurses module. However, nonblocking getch() doesn’t work. A simple test case: –\>-- #!/usr/bin/env ruby require ‘ncurses’ Ncurses.initscr Ncurses.start\_color Ncurses.noecho Ncurses.…

---

## [Milwaukee Ruby User Group meeting toniight @ 5:30 to 8](https://www.ruby-forum.com/t/milwaukee-ruby-user-group-meeting-toniight-5-30-to-8/75202)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 8:15am UTC](https://www.ruby-forum.com/t/milwaukee-ruby-user-group-meeting-toniight-5-30-to-8/75202 "2006-11-08T08:15:58Z")

</div>

It’s that time again to hear great presentations about my favorite language \>Ruby\< In the spotlight: “How to make version control so easy that even your grandmother could use it!” by Grant Rettke …and… “JRuby” by…

---

## [How can I get Ruby interact with my C++ program?](https://www.ruby-forum.com/t/how-can-i-get-ruby-interact-with-my-c-program/75198)

<div class="topic-metadata">

**Author:** [@wangdong2](https://www.ruby-forum.com/u/wangdong2)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 6:11am UTC](https://www.ruby-forum.com/t/how-can-i-get-ruby-interact-with-my-c-program/75198 "2006-11-08T06:11:14Z")

</div>

Does Ruby have any C++ lib just like boost/python? Or thess’s some other better solution?

---

## [Help with a program to determin leap years](https://www.ruby-forum.com/t/help-with-a-program-to-determin-leap-years/75130)

<div class="topic-metadata">

**Author:** [@Shiloh\_M](https://www.ruby-forum.com/u/Shiloh_M)\
**Replies:** 8\
**Last updated:** [November 8, 2006, 5:33am UTC](https://www.ruby-forum.com/t/help-with-a-program-to-determin-leap-years/75130 "2006-11-08T05:33:43Z")

</div>

So, I’m trying to go through the Teach Yourself Programming book by Pragmatic Press and I am encountering a few hurdles. The chapter I am working on now is asking me to create a program which will ask for a start and …

---

## [How to make a cycling counter from commandline?](https://www.ruby-forum.com/t/how-to-make-a-cycling-counter-from-commandline/75121)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 11\
**Last updated:** [November 8, 2006, 4:53am UTC](https://www.ruby-forum.com/t/how-to-make-a-cycling-counter-from-commandline/75121 "2006-11-08T04:53:37Z")

</div>

Hi, I’m looking for a way to implement this idea: count=1 total=15 until count\>total print “Record #{count} of #{total} processed.” count+=1 end I want this to print out in a Linux shell. However, I’d prefer it i…

---

## [FasterCSV 1.0.0 -- The "Sorry it's late, Ara" release!](https://www.ruby-forum.com/t/fastercsv-1-0-0-the-sorry-its-late-ara-release/74974)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [November 8, 2006, 3:33am UTC](https://www.ruby-forum.com/t/fastercsv-1-0-0-the-sorry-its-late-ara-release/74974 "2006-11-08T03:33:22Z")

</div>

FasterCSV 1.0.0 Released Ara strikes again, adding his second awesome enhancement to FasterCSV. Here’s some example code showing off FasterCSV::Table: #!/usr/local/bin/ruby -w csv\_table.rb Created by James Edward…

---

## [IRB on a text widget of Ruby/Tk](https://www.ruby-forum.com/t/irb-on-a-text-widget-of-ruby-tk/75187)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 3:15am UTC](https://www.ruby-forum.com/t/irb-on-a-text-widget-of-ruby-tk/75187 "2006-11-08T03:15:16Z")

</div>

Hi, A sample tool of Ruby/Tk is available. It uses a text widget as a console I/O. If you have troubles about thread-switching on IRB (for example, IRB on a command-prompt of Windows), it may be able to help you. C…

---

## [\[ANN\] DrySQL](https://www.ruby-forum.com/t/ann-drysql/75175)

<div class="topic-metadata">

**Author:** [@bsevans](https://www.ruby-forum.com/u/bsevans)\
**Replies:** 0\
**Last updated:** [November 8, 2006, 12:20am UTC](https://www.ruby-forum.com/t/ann-drysql/75175 "2006-11-08T00:20:14Z")

</div>

If any of you use ActiveRecord for Object-Relational Mapping in your Ruby apps, you may find the DrySQL plug-in helpful: http://drysql.rubyforge.org DrySQL is a plug-in that extends ActiveRecord to provide a complete …

---

## [Ruby script auto-closes at completion](https://www.ruby-forum.com/t/ruby-script-auto-closes-at-completion/74421)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 10\
**Last updated:** [November 8, 2006, 12:06am UTC](https://www.ruby-forum.com/t/ruby-script-auto-closes-at-completion/74421 "2006-11-08T00:06:47Z")

</div>

Hi I am a newbie. I am trying to run some small ruby programs to learn a bit about ruby. everytime i run the following program in windows it auto closes when it is done, so there is no time to see the final result i…

---

## [Linux authentification check?](https://www.ruby-forum.com/t/linux-authentification-check/75109)

<div class="topic-metadata">

**Author:** [@rhaus](https://www.ruby-forum.com/u/rhaus)\
**Replies:** 9\
**Last updated:** [November 7, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/linux-authentification-check/75109 "2006-11-07T23:48:45Z")

</div>

Is there a library or some other way to simply check whether a user/password combination is valid for the Linux machine I am running on? No need to actually switch the current user, change the effective group or user …

---

## [How to copy a file to a non existing directory?](https://www.ruby-forum.com/t/how-to-copy-a-file-to-a-non-existing-directory/75170)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/how-to-copy-a-file-to-a-non-existing-directory/75170 "2006-11-07T23:44:40Z")

</div>

Is there a way to copy a file to a directory that does not exist ? If I try require ‘fileutils’ FileUtils.cp(‘c:/trash.txt’, ‘c:/mart/martin.txt’) I get the following message : c:/ruby/lib/ruby/1.8/fileutils.rb:1246…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1621)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1623)
