# Ruby

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

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

---

## [Autoindenting ruby](https://www.ruby-forum.com/t/autoindenting-ruby/123279)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 11\
**Last updated:** [December 17, 2007, 12:36am UTC](https://www.ruby-forum.com/t/autoindenting-ruby/123279 "2007-12-17T00:36:02Z")

</div>

Something most of the “IDE roundup” threads seem to pass over lightly is the autoindent feature - for me, that is the make-or-break feature. How do the various IDEs and editors out there stack up? I’m pretty happy wit…

---

## [Chunky bacon for vegetarians!](https://www.ruby-forum.com/t/chunky-bacon-for-vegetarians/123343)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/chunky-bacon-for-vegetarians/123343 "2007-12-16T19:28:14Z")

</div>

I apologize for the offtopic post, but this was just too funny. It’s a seasoning salt that claims to “make everything taste like bacon.” So, um, for those of you who really felt left out of the Poignant action by the …

---

## [Wx ruby notify window?](https://www.ruby-forum.com/t/wx-ruby-notify-window/122409)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 5\
**Last updated:** [December 16, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/wx-ruby-notify-window/122409 "2007-12-16T19:13:35Z")

</div>

Hey I want to create a growl like notification system for a ruby application. I’m using the wxruby toolkit. Is there a component that allows such a behavior (display text, not shown in taskbar…). I had a look at the s…

---

## [Net::Telnet won't close properly](https://www.ruby-forum.com/t/net-telnet-wont-close-properly/123339)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/net-telnet-wont-close-properly/123339 "2007-12-16T18:57:44Z")

</div>

Hi Ruby Forum! I’m hoping you can help my code to close properly. The script logs into a cisco router, logs into enable mode then runs “show clock” and prints the output…this all works fine. The problem is, the scrip…

---

## [MI5-Persecution: No Justice for the Victims of MI5 (29014)](https://www.ruby-forum.com/t/mi5-persecution-no-justice-for-the-victims-of-mi5-29014/123336)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/mi5-persecution-no-justice-for-the-victims-of-mi5-29014/123336 "2007-12-16T18:30:43Z")

</div>

MI5 Persecution Update: Friday 11 June, 1999 Harassment in a pub in Clapham, Tuesday lunchtime Once a month, or once every other month, I meet a Polish friends of mine who lives in Clapham North, and sometimes we go t…

---

## [Logging irb stdin & stdout to file but still remain showing](https://www.ruby-forum.com/t/logging-irb-stdin-stdout-to-file-but-still-remain-showing/122858)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 5\
**Last updated:** [December 16, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/logging-irb-stdin-stdout-to-file-but-still-remain-showing/122858 "2007-12-16T17:47:20Z")

</div>

Hi, I search the ruby-talk and find a few discussion on redirecting the STDIN, STDOUT and STDERR. However, I still couldn’t get it to work on redirecting the IO to file and also to the console. I am working on window…

---

## [Utility Belt version 1.0.5 - hash math and Windows documentation](https://www.ruby-forum.com/t/utility-belt-version-1-0-5-hash-math-and-windows-documentation/123304)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 3\
**Last updated:** [December 16, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/utility-belt-version-1-0-5-hash-math-and-windows-documentation/123304 "2007-12-16T17:00:25Z")

</div>

Lots of bug fixes in the past few days. This dot release is worth highlighting because it adds something I think is pretty cool. You can now do addition and subtraction on hashes in Utility Belt: {:a =\> :b} + {:c =\> :…

---

## [An idiomatic way to traverse all pairs in an enumerable?](https://www.ruby-forum.com/t/an-idiomatic-way-to-traverse-all-pairs-in-an-enumerable/123288)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 6\
**Last updated:** [December 16, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/an-idiomatic-way-to-traverse-all-pairs-in-an-enumerable/123288 "2007-12-16T16:06:25Z")

</div>

I seem to end up doing the following quite a lot: enum.each do |a| enum.each do |b| next if a \>= b # do\_something with a and b end end In general, Iâ€™m looking for an idiomatic way of traversing each possible pa…

---

## [How t owrite an OR statement](https://www.ruby-forum.com/t/how-t-owrite-an-or-statement/123306)

<div class="topic-metadata">

**Author:** [@dannypotta](https://www.ruby-forum.com/u/dannypotta)\
**Replies:** 8\
**Last updated:** [December 16, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/how-t-owrite-an-or-statement/123306 "2007-12-16T14:30:55Z")

</div>

Ok folks I know this is an easy question, I am trying to write a while loop with a logical or statement and am new to ruby. The online guide I am using does not seem to cover and and or statements for some reason. My…

---

## [Re: I need help debugging my program](https://www.ruby-forum.com/t/re-i-need-help-debugging-my-program/123323)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 16, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/re-i-need-help-debugging-my-program/123323 "2007-12-16T12:55:19Z")

</div>

\----- Original Message ---- From: Icarus D. removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_address@domain.invalid Sent: Sunday, December 16, 2007 11:48:23 AM Subject: I need help debugging my pr…

---

## [I need help debugging my program](https://www.ruby-forum.com/t/i-need-help-debugging-my-program/123322)

<div class="topic-metadata">

**Author:** [@phrak](https://www.ruby-forum.com/u/phrak)\
**Replies:** 2\
**Last updated:** [December 16, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/i-need-help-debugging-my-program/123322 "2007-12-16T12:29:36Z")

</div>

I’m new to Ruby and I’m trying out a very basic user input program. The codes below and also I’ve indicated the line giving me grief. puts “What is your name?” name = gets.chomp puts “How old are you?” age = gets.ch…

---

## [Splitting string into array keeping delimiters](https://www.ruby-forum.com/t/splitting-string-into-array-keeping-delimiters/123262)

<div class="topic-metadata">

**Author:** [@skeptic](https://www.ruby-forum.com/u/skeptic)\
**Replies:** 6\
**Last updated:** [December 16, 2007, 11:52am UTC](https://www.ruby-forum.com/t/splitting-string-into-array-keeping-delimiters/123262 "2007-12-16T11:52:42Z")

</div>

Hi, I’ve been playing Ruby for a few months now. Yesterday I came across an interesting problem. If I have this string: abcd1234abc123 Now I want to separate the digit group with the non-digit group into an array li…

---

## [String to code?](https://www.ruby-forum.com/t/string-to-code/123291)

<div class="topic-metadata">

**Author:** [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Replies:** 3\
**Last updated:** [December 16, 2007, 10:23am UTC](https://www.ruby-forum.com/t/string-to-code/123291 "2007-12-16T10:23:42Z")

</div>

is it possible to get user input, and put that in as a code. like lets say i ask for command and the user types types something like twice 3 which would refer to to a method twice n??

---

## [Automatic Range?](https://www.ruby-forum.com/t/automatic-range/123289)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 3\
**Last updated:** [December 16, 2007, 9:59am UTC](https://www.ruby-forum.com/t/automatic-range/123289 "2007-12-16T09:59:10Z")

</div>

Problem is simple: I want to know if an integer is within the range of x and y. However, I don’t automatically know which of x & y is the largest. Ruby accepts ranges like (5…2), although there seems to be no real use …

---

## [Importing module to local namespace](https://www.ruby-forum.com/t/importing-module-to-local-namespace/123310)

<div class="topic-metadata">

**Author:** [@neko18](https://www.ruby-forum.com/u/neko18)\
**Replies:** 2\
**Last updated:** [December 16, 2007, 8:40am UTC](https://www.ruby-forum.com/t/importing-module-to-local-namespace/123310 "2007-12-16T08:40:49Z")

</div>

I’m trying to do something like: File: blah.rb module Blah def something puts “something” end def another puts “another” end end File: blahtest.rb require ‘blah’ Blah.something #-\> “something” Blah.another #…

---

## [\_id2ref in finalize or how get object.var from class.finalize](https://www.ruby-forum.com/t/id2ref-in-finalize-or-how-get-object-var-from-class-finalize/123274)

<div class="topic-metadata">

**Author:** [@Andrey\_Nikitin](https://www.ruby-forum.com/u/Andrey_Nikitin)\
**Replies:** 1\
**Last updated:** [December 16, 2007, 4:47am UTC](https://www.ruby-forum.com/t/id2ref-in-finalize-or-how-get-object-var-from-class-finalize/123274 "2007-12-16T04:47:06Z")

</div>

Hi, all. #!/usr/bin/ruby1.8 include ObjectSpace class MyClass attr\_reader :var def initialize(var) @var = var puts “from initialize: #{@var}” define\_finalizer(self, self.class.method(:finalize).to\_proc) end def…

---

## [CSS Filtration](https://www.ruby-forum.com/t/css-filtration/122841)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [December 16, 2007, 1:13am UTC](https://www.ruby-forum.com/t/css-filtration/122841 "2007-12-16T01:13:43Z")

</div>

Is there anything already out there for sanitizing/optimizing CSS? Thanks, T.

---

## [Ruby + OpenOffice Was: Re: Problem with using win32ole in Linux server](https://www.ruby-forum.com/t/ruby-openoffice-was-re-problem-with-using-win32ole-in-linux-server/123286)

<div class="topic-metadata">

**Author:** [@Jano\_S](https://www.ruby-forum.com/u/Jano_S)\
**Replies:** 1\
**Last updated:** [December 16, 2007, 12:29am UTC](https://www.ruby-forum.com/t/ruby-openoffice-was-re-problem-with-using-win32ole-in-linux-server/123286 "2007-12-16T00:29:49Z")

</div>

On Dec 15, 2007 6:20 PM, Steckly, Ron removed\_email\_address@domain.invalid wrote: Yes, but if you use OpenOffice, how do you script it? Does Ruby have a library that works with OO? Ron I found this: http://blade…

---

## [Reinstalling Gems after updating Ruby](https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/reinstalling-gems-after-updating-ruby/123093 "2007-12-15T23:16:04Z")

</div>

If I update to a newer version of Ruby using the 1-click installer, do I have to reinstall all of the gems I currently have installed (such as RMagick)? Or is there a way of updating Ruby without having to update eve…

---

## [Doing require on some relateive path](https://www.ruby-forum.com/t/doing-require-on-some-relateive-path/123214)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 5\
**Last updated:** [December 15, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/doing-require-on-some-relateive-path/123214 "2007-12-15T20:51:22Z")

</div>

hello I have the following 2 files Someopath/Dir1/File1.rb Someopath/Dir2/File2.rb How can i do a require ‘relativepath/Dir2/File2.rb’ from File1.rb appreciate any help.

---

## [JRubyHub.com: The hub to all JRuby and JRuby on Rails (JRoR) resources](https://www.ruby-forum.com/t/jrubyhub-com-the-hub-to-all-jruby-and-jruby-on-rails-jror-resources/123276)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/jrubyhub-com-the-hub-to-all-jruby-and-jruby-on-rails-jror-resources/123276 "2007-12-15T20:30:49Z")

</div>

Hello all I’m very pleased to announce the launch of JRubyHub.com : a One-Stop Knowlwdge Base dedicated to JRuby. JRuby is an interpreter of the Ruby language written in Java. JRuby allows Java code to be easily call…

---

## [Problem with using win32ole in Linux server](https://www.ruby-forum.com/t/problem-with-using-win32ole-in-linux-server/123251)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/problem-with-using-win32ole-in-linux-server/123251 "2007-12-15T18:22:56Z")

</div>

Hi Every body, I’m Having one excel file. I want this file using ruby, for this I used win32ole. Here the code is. require ‘win32ole’ excel = WIN32OLE.new(‘excel.application’) excel.visible = false excel.workbooks.…

---

## [Question about sockets/listeners](https://www.ruby-forum.com/t/question-about-sockets-listeners/123257)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 5\
**Last updated:** [December 15, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/question-about-sockets-listeners/123257 "2007-12-15T18:17:40Z")

</div>

hi, i’m very new to ruby and so i’d be very grateful of any help on this. I am writing a script that listens for UDP packets on a particular port. This is very easy using ‘socket’. I then want to make a script that…

---

## [\_id2ref in finalize or how get object.var from class.finalize](https://www.ruby-forum.com/t/id2ref-in-finalize-or-how-get-object-var-from-class-finalize/123268)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/id2ref-in-finalize-or-how-get-object-var-from-class-finalize/123268 "2007-12-15T18:11:48Z")

</div>

\#!/usr/bin/ruby1.8 include ObjectSpace class MyClass attr\_reader :var def initialize(var) @var = var puts “from initialize: #{@var}” define\_finalizer(self, self.class.method(:finalize).to\_proc) end def MyClass.f…

---

## [Work with Audio Files](https://www.ruby-forum.com/t/work-with-audio-files/123129)

<div class="topic-metadata">

**Author:** [@ajsicek](https://www.ruby-forum.com/u/ajsicek)\
**Replies:** 11\
**Last updated:** [December 15, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/work-with-audio-files/123129 "2007-12-15T18:06:59Z")

</div>

Hi, I am new to Ruby on Rails and I consider converting my application written in Java into Ruby. The question is, however, is there any plugin or other way to handle MP3 and other audio files? I need to Ruby to be a…

---

## [Zerenity 1.2](https://www.ruby-forum.com/t/zerenity-1-2/123265)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/zerenity-1-2/123265 "2007-12-15T17:48:55Z")

</div>

== Synopsis Zerenity is an almost clone of Zenity(Best Open Source Mac Software Development Software 2023) for Ruby. It allows for the easy creation of simple graphical dialogs from a Ruby script. == Changelog for Z…

---

## [AVL Tree](https://www.ruby-forum.com/t/avl-tree/123196)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 4\
**Last updated:** [December 15, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/avl-tree/123196 "2007-12-15T15:26:00Z")

</div>

Hello! I have a quick question about the AVL tree. Isn’t this a lot like the Rope quiz? When I wrote my Rope entry, I made it into a self- balancing tree like this (although I forsaked all heap properties). Hmm. Mayb…

---

## [$! == 8](https://www.ruby-forum.com/t/topic/123256)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/topic/123256 "2007-12-15T15:24:50Z")

</div>

e$B0J2\<$N$h$&$K$9$k$H!"e(B$! e$B$,e(B 8 e$B$K$J$k$N$G$9$,!"JQ$G$O$J$$$G$7$ge(B e$B$&$+!#e(B % ./ruby -v -e ’ t = Thread.new { begin sleep 2 ensure p $!, $!.class end } sleep 1 t.kill t.join ’ ruby 1.9.0 (2…

---

## [A self.method! returning a changing self attributes](https://www.ruby-forum.com/t/a-self-method-returning-a-changing-self-attributes/123254)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/a-self-method-returning-a-changing-self-attributes/123254 "2007-12-15T14:31:31Z")

</div>

say, i’ve a class “Clazz” i’ve a method #revert\_to\_saved who returns a revert to saved instance of Clazz BUT i want to implement also #revert\_to\_saved! that is having all self attributes modified to the revert to sav…

---

## [SIGCHLD handler not working correctly](https://www.ruby-forum.com/t/sigchld-handler-not-working-correctly/123235)

<div class="topic-metadata">

**Author:** [@Asfand\_Yar\_Q](https://www.ruby-forum.com/u/Asfand_Yar_Q)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/sigchld-handler-not-working-correctly/123235 "2007-12-15T14:18:37Z")

</div>

Hi, Here’s some test code that demonstrates what I’m doing: ----------------------cut here---------------------- #!/usr/bin/ruby -w trap\_quit = lambda { |sig| signame = Signal.list.find {|k, v| v == sig }\[0\] STDERR…

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

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