# Ruby

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

[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:** 1582

---

## [Reverting module changes](https://www.ruby-forum.com/t/reverting-module-changes/80328)

<div class="topic-metadata">

**Author:** [@azreal](https://www.ruby-forum.com/u/azreal)\
**Replies:** 7\
**Last updated:** [December 24, 2006, 2:33pm UTC](https://www.ruby-forum.com/t/reverting-module-changes/80328 "2006-12-24T14:33:52Z")

</div>

Hi, I want to mock standard Kernel.system with my own method and then revert back to the original version. I was able to do the former, but not the latter. Currently I’m overwriting Kernel.system method definition wi…

---

## ["su user -c 'command'" from within ruby](https://www.ruby-forum.com/t/su-user-c-command-from-within-ruby/80334)

<div class="topic-metadata">

**Author:** [@crytyca](https://www.ruby-forum.com/u/crytyca)\
**Replies:** 1\
**Last updated:** [December 24, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/su-user-c-command-from-within-ruby/80334 "2006-12-24T14:21:48Z")

</div>

Hi, I want to invoke a shell command from within ruby but as another user in a Linux environment. I start the ruby script itself as root and in the script I do something like this: %x{su some\_user -c “some\_command”} …

---

## [jRuby error using het/https](https://www.ruby-forum.com/t/jruby-error-using-het-https/80331)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 24, 2006, 12:21pm UTC](https://www.ruby-forum.com/t/jruby-error-using-het-https/80331 "2006-12-24T12:21:43Z")

</div>

when using : require ‘net/https’ under jRuby 0.92 i get the following error : /Users/yvon/bin/jruby/lib/ruby/1.8/openssl/cipher.rb:57:in \`new’ wrong argument. this is using the script given by “jin” at \<www.jinsync…

---

## [External Ruby Script in HTML](https://www.ruby-forum.com/t/external-ruby-script-in-html/80163)

<div class="topic-metadata">

**Author:** [@nakedsushi](https://www.ruby-forum.com/u/nakedsushi)\
**Replies:** 16\
**Last updated:** [December 24, 2006, 11:59am UTC](https://www.ruby-forum.com/t/external-ruby-script-in-html/80163 "2006-12-24T11:59:42Z")

</div>

This probably has a simple answer, but I don’t know it. Let’s say I have a ruby script called hello.rb #!/usr/bin/ruby def greeting () return “Hello world!” end I want to call that script from within an HTML docume…

---

## [\- Bible 1.0.1 - A bible reference parsing and text retrieval](https://www.ruby-forum.com/t/bible-1-0-1-a-bible-reference-parsing-and-text-retrieval/79182)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 12\
**Last updated:** [December 24, 2006, 4:34am UTC](https://www.ruby-forum.com/t/bible-1-0-1-a-bible-reference-parsing-and-text-retrieval/79182 "2006-12-24T04:34:47Z")

</div>

All, I’m proud to announce the release of Bible 1.0.1, a library for parsing Bible references and retrieving the text from the web. == What is it? Mainly, an interactive application for retrieving and displaying book…

---

## [Beginner issues](https://www.ruby-forum.com/t/beginner-issues/80326)

<div class="topic-metadata">

**Author:** [@animejunkie](https://www.ruby-forum.com/u/animejunkie)\
**Replies:** 4\
**Last updated:** [December 24, 2006, 3:00am UTC](https://www.ruby-forum.com/t/beginner-issues/80326 "2006-12-24T03:00:14Z")

</div>

Hello all, I’m not much of a developer but will be supporting RoR in the near future and thought I would familiarize myself with Ruby a bit. I’m using the “Programming Ruby” book and find that a lot of the examples …

---

## [Ruby and SDL?](https://www.ruby-forum.com/t/ruby-and-sdl/80320)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 4\
**Last updated:** [December 24, 2006, 1:30am UTC](https://www.ruby-forum.com/t/ruby-and-sdl/80320 "2006-12-24T01:30:26Z")

</div>

Hi, I was wondering if there was a decent binding for SDL in ruby? The only thing I can find is Web page of ohai, but that one doesn’t look all that reliable. Is there anyone with some experience with this binding? I…

---

## [Ruby-misc (was Re: where have all the experienced users gone](https://www.ruby-forum.com/t/ruby-misc-was-re-where-have-all-the-experienced-users-gone/80312)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 5\
**Last updated:** [December 23, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/ruby-misc-was-re-where-have-all-the-experienced-users-gone/80312 "2006-12-23T23:05:55Z")

</div>

2006/12/23, Tom P. removed\_email\_address@domain.invalid: TomP Nothing personal Tom, it just happened that yours is the last message I’ve received from this thread. Just look at you guys. Talking and talking. It’s t…

---

## [Question: Downloading files with open(-uri)?](https://www.ruby-forum.com/t/question-downloading-files-with-open-uri/80293)

<div class="topic-metadata">

**Author:** [@Mariano\_K](https://www.ruby-forum.com/u/Mariano_K)\
**Replies:** 14\
**Last updated:** [December 23, 2006, 10:35pm UTC](https://www.ruby-forum.com/t/question-downloading-files-with-open-uri/80293 "2006-12-23T22:35:53Z")

</div>

Hi, I could need a quick hand here. I want to watch the RailsConf 2006 videos and want to download them with a script. Unfortunately open(“http:/xx”) never comes back? Any idea what I am doing wrong here? I tested …

---

## [Nitro + Og 0.40.0](https://www.ruby-forum.com/t/nitro-og-0-40-0/75777)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 16\
**Last updated:** [December 23, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/nitro-og-0-40-0/75777 "2006-12-23T20:27:38Z")

</div>

Hello everyone, New versions of Nitro (Web Application Framework) and Og (Object Relational Mapping) were released: Homepage: http://www.nitroproject.org Download: http://rubyforge.org/projects/ nitro Mailing List: h…

---

## [ANN: eric3 3.9.3 released](https://www.ruby-forum.com/t/ann-eric3-3-9-3-released/80291)

<div class="topic-metadata">

**Author:** [@Detlev\_Offenbach](https://www.ruby-forum.com/u/Detlev_Offenbach)\
**Replies:** 0\
**Last updated:** [December 23, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/ann-eric3-3-9-3-released/80291 "2006-12-23T13:36:49Z")

</div>

Hi, this is to inform you about the availability of eric3 version 3.9.3. This release fixes a few bugs and enhances compatibility with subversion 1.4. It is available via Eric Integrated Development Environment - Br…

---

## [Problem installing Ruby/Tk](https://www.ruby-forum.com/t/problem-installing-ruby-tk/79722)

<div class="topic-metadata">

**Author:** [@christopherl](https://www.ruby-forum.com/u/christopherl)\
**Replies:** 13\
**Last updated:** [December 23, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/problem-installing-ruby-tk/79722 "2006-12-23T13:28:47Z")

</div>

Installed Linux Ruby 1.8.5 from source I dont’t know if I have Tcl/Tk installed already, but I found this folder: /home/christopherl/ruby-1.8.5/ext/tk /home/christopherl/ruby-1.8.5/lib/test/unit/ui/tk I have also R…

---

## [GtkTreeview signal "row-activated"](https://www.ruby-forum.com/t/gtktreeview-signal-row-activated/80229)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 2\
**Last updated:** [December 23, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/gtktreeview-signal-row-activated/80229 "2006-12-23T12:46:45Z")

</div>

Hello, I have a problem with the TreeView of RubyGTK. Catching the signal works very well, but I don’t know which row of the list was activated :-(. Does anyone know how to figure out which line was activated? I’ve w…

---

## [Gets in ruby](https://www.ruby-forum.com/t/gets-in-ruby/80212)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 2\
**Last updated:** [December 23, 2006, 8:54am UTC](https://www.ruby-forum.com/t/gets-in-ruby/80212 "2006-12-23T08:54:32Z")

</div>

I’m a newbie in Ruby. And, after a first couple of tutorials, I came across the function ‘gets’. Being similar to the function in C, I was wondering if this would expose programs written in Ruby to buffer overflow vu…

---

## [\[ANN\] Ruby-VPI 12.1.0](https://www.ruby-forum.com/t/ann-ruby-vpi-12-1-0/80285)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 23, 2006, 7:13am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-12-1-0/80285 "2006-12-23T07:13:24Z")

</div>

Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Web site: http://ruby-vpi.rubyforge.org RSS feed: http://ruby-vpi.rubyforge.org/doc/rss.xml I…

---

## [Subversion stats on RubyForge](https://www.ruby-forum.com/t/subversion-stats-on-rubyforge/80283)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [December 23, 2006, 4:44am UTC](https://www.ruby-forum.com/t/subversion-stats-on-rubyforge/80283 "2006-12-23T04:44:21Z")

</div>

They work now! http://rubyforge.org/scm/?group\_id=797 Yours, Tom

---

## [Re: Randomizing an Array?](https://www.ruby-forum.com/t/re-randomizing-an-array/80255)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 23, 2006, 4:26am UTC](https://www.ruby-forum.com/t/re-randomizing-an-array/80255 "2006-12-23T04:26:20Z")

</div>

From: Gavin K. You might search the mailing list archive on this topic if ‘true’ randomness (or close to it) is important to you. Nevermind, I did it for you. Here’s the thread: http://rubyurl.com/5v8 Here’s batsm…

---

## [Ruby replacement for ab?](https://www.ruby-forum.com/t/ruby-replacement-for-ab/80169)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 24\
**Last updated:** [December 23, 2006, 12:11am UTC](https://www.ruby-forum.com/t/ruby-replacement-for-ab/80169 "2006-12-23T00:11:57Z")

</div>

So I’ve been hunting for a way to stress test a web application and haven’t been terribly satisfied so far. I’d really love something where I could define a script that determined the way an agent would behave. Basic…

---

## [Re: Randomizing an Array?](https://www.ruby-forum.com/t/re-randomizing-an-array/80252)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [December 22, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/re-randomizing-an-array/80252 "2006-12-22T21:16:29Z")

</div>

From: jwcooper \[mailto:removed\_email\_address@domain.invalid\] Gavin K. wrote: From: jwcooper \[mailto:removed\_email\_address@domain.invalid\] I’m trying to randomize an array…\[snip\] randomized = my\_array.sort\_by{ ran…

---

## [Re: Randomizing an Array?](https://www.ruby-forum.com/t/re-randomizing-an-array/80249)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 22, 2006, 9:10pm UTC](https://www.ruby-forum.com/t/re-randomizing-an-array/80249 "2006-12-22T21:10:28Z")

</div>

From: jwcooper \[mailto:removed\_email\_address@domain.invalid\] I’m trying to randomize an array…\[snip\] randomized = my\_array.sort\_by{ rand }

---

## [Nuby question regarding classes and ARGV](https://www.ruby-forum.com/t/nuby-question-regarding-classes-and-argv/80235)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 1\
**Last updated:** [December 22, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/nuby-question-regarding-classes-and-argv/80235 "2006-12-22T19:02:08Z")

</div>

I just took a program that works using a command line argument and turned it into a class so that I could require it from . Anyway, I was just wondering how you would pass somethign to it now as an argument. if the…

---

## [How to run the new jirb console](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211)

<div class="topic-metadata">

**Author:** [@Robert\_Sheehan](https://www.ruby-forum.com/u/Robert_Sheehan)\
**Replies:** 3\
**Last updated:** [December 22, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211 "2006-12-22T18:56:08Z")

</div>

Can someone tell me how to run the new JRuby irb console. I tried: java -cp jruby.jar org.jruby.demo.IRBConsole Exception in thread “main” java.lang.NoClassDefFoundError: jline/Completor at org.jruby.ext.Readline$S…

---

## [Fxirb-0.3.1: now with .gem and setup.rb](https://www.ruby-forum.com/t/fxirb-0-3-1-now-with-gem-and-setup-rb/80039)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [December 22, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/fxirb-0-3-1-now-with-gem-and-setup-rb/80039 "2006-12-22T18:14:02Z")

</div>

Get it at: http://rubyforge.org/projects/fxirb/ This is mostly a packaging release - fxirb now comes as a gem or a tarball with setup.rb, a rakfile that uses hoe to create the aforementioned gem, and a separate fxirb …

---

## [Matrix class for ruby? -example](https://www.ruby-forum.com/t/matrix-class-for-ruby-example/80113)

<div class="topic-metadata">

**Author:** [@seepee](https://www.ruby-forum.com/u/seepee)\
**Replies:** 5\
**Last updated:** [December 22, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/matrix-class-for-ruby-example/80113 "2006-12-22T18:10:01Z")

</div>

On Thu, 21 Dec 2006 09:12:47 +0200, seepee wrote: Does anyone know of a functional Matrix math class for ruby that could multiply, add and substract 3x2 or larger matrices. The matrix.rb that is in Ruby API cannot mu…

---

## [Remove Ruby 1.8.5?](https://www.ruby-forum.com/t/remove-ruby-1-8-5/80112)

<div class="topic-metadata">

**Author:** [@christopherl](https://www.ruby-forum.com/u/christopherl)\
**Replies:** 20\
**Last updated:** [December 22, 2006, 1:09pm UTC](https://www.ruby-forum.com/t/remove-ruby-1-8-5/80112 "2006-12-22T13:09:16Z")

</div>

How do I remove Ruby 1.8.5 from linux? I have built it from source.

---

## [Unbuffered IO](https://www.ruby-forum.com/t/unbuffered-io/80223)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 1\
**Last updated:** [December 22, 2006, 12:47pm UTC](https://www.ruby-forum.com/t/unbuffered-io/80223 "2006-12-22T12:47:14Z")

</div>

Hi, this used to work in an older version/environment: I read from a usb joystick: irb(main):001:0\> f = File.new “/dev/input/event0” =\> #\<File:/dev/input/event0\> irb(main):002:0\> i=0 =\> 0 irb(main):003:0\> loop { a…

---

## [Does Ruby generate WINDOWS and dialog boxes?](https://www.ruby-forum.com/t/does-ruby-generate-windows-and-dialog-boxes/79590)

<div class="topic-metadata">

**Author:** [@Ken\_Laninga](https://www.ruby-forum.com/u/Ken_Laninga)\
**Replies:** 57\
**Last updated:** [December 22, 2006, 12:21pm UTC](https://www.ruby-forum.com/t/does-ruby-generate-windows-and-dialog-boxes/79590 "2006-12-22T12:21:12Z")

</div>

I just heard about Ruby and it looks fascinating. I see lots of code being discussed but I see no mention of the actual windows and input/output boxes/windows which it may or may not produce. Does it make windows? – …

---

## [Iterator behaviour](https://www.ruby-forum.com/t/iterator-behaviour/79916)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 1\
**Last updated:** [December 22, 2006, 12:13pm UTC](https://www.ruby-forum.com/t/iterator-behaviour/79916 "2006-12-22T12:13:47Z")

</div>

I have a harness I’m using for testing with Watir. It has become apparent that the iterator is loading the tests defined based on the order they appear in the directory as opposed to the order in the testlist. File.o…

---

## [Class method](https://www.ruby-forum.com/t/class-method/80214)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 5\
**Last updated:** [December 22, 2006, 11:39am UTC](https://www.ruby-forum.com/t/class-method/80214 "2006-12-22T11:39:08Z")

</div>

One thing that I don’t understand is the following code. sample = \[1,2,3\] p sample.class #=\> Array p sample.class.is\_a?(Array) #=\> false p sample.class.is\_a?(Array.class) #=\> true (why???)

---

## [ActiveRecord::Extensions 0.2.0 Released](https://www.ruby-forum.com/t/activerecord-extensions-0-2-0-released/80210)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [December 22, 2006, 9:00am UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-2-0-released/80210 "2006-12-22T09:00:52Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ActiveRecord::Extensions 0.2.0 ActiveRecord::Extensions is a library built to add additional functionality and a more modular design of adding capabilities to ActiveRec…

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

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