# Ruby

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

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

---

## [Prototypes](https://www.ruby-forum.com/t/prototypes/111884)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [August 12, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/prototypes/111884 "2007-08-12T23:07:34Z")

</div>

Hi all I have finished off my naive Prototype implementation, all critics are welcome, ok I can accept Kudos too if I have to :wink: http://ruby-smalltalk.blogspot.com/ Cheers Robert

---

## [Ri problem](https://www.ruby-forum.com/t/ri-problem/111853)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [August 12, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/ri-problem/111853 "2007-08-12T20:46:21Z")

</div>

in ruby 1.8.4 (2006-04-14) \[i386-mswin32\] how to get help for Fox::FXApp#threadsEnabled? because already two same method are there try it… ri Fox::FXApp#threadsEnabled?

---

## [Retry neglects signals](https://www.ruby-forum.com/t/retry-neglects-signals/111564)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [August 12, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/retry-neglects-signals/111564 "2007-08-12T20:05:19Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B0J2\<$N$h$&$K$9$k$He(B Ctrl-C e$B$G;\_$a$i$l$J$/$J$j$^$9!#e(B ./ruby -ve ‘1.times { retry }’ ruby 1.9.0 (2007-08-08 patchlevel 0) \[i686-linux\] (e$B8G$^$ke(B) e$B%\*!\<%P!\<%X%C%I$,$"$k$+$b$G$9$,…

---

## [Infinite loop at peephole optimization](https://www.ruby-forum.com/t/infinite-loop-at-peephole-optimization/111561)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [August 12, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/infinite-loop-at-peephole-optimization/111561 "2007-08-12T20:04:19Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B while true; redo; end e$B$Ge(B YARV e$B$N%3%s%Q%$%k$,;\_$^$i$J$/$J$j$^$9!#e(B $ ./ruby -ve ‘VM::InstructionSequence.compile(“while true; redo; end”)’ ruby 1.9.0 (2007-08-08 patchlevel 0) \[i686-l…

---

## [Invalid error message by illegal regexp](https://www.ruby-forum.com/t/invalid-error-message-by-illegal-regexp/111052)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 6\
**Last updated:** [August 12, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/invalid-error-message-by-illegal-regexp/111052 "2007-08-12T20:03:19Z")

</div>

e$BLZB\<$G$9!#e(B 1.9e$B$NJ}$N$\_$G$9$,!"e(B ruby -e “/a(?=b)?/.match(‘a’)” e$B$H$+e(B ruby -e “/a(?=b?/.match(‘a’)” e$B$H$7$?$H$-$K!"e(B 0: uninitialized Regexp (TypeError) e$B$H$$$&E,@Z$G$O$J$$$G$"$m$&%(%i!\<%a%C%;…

---

## [Launchy 0.1.2 Released](https://www.ruby-forum.com/t/launchy-0-1-2-released/111849)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 18\
**Last updated:** [August 12, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/launchy-0-1-2-released/111849 "2007-08-12T19:47:17Z")

</div>

launchy version 0.1.2 has been released. http://copiousfreetime.rubyforge.org/launchy/ Example: Launchy.do\_magic("http://www.rubyforge.org") or Launchy::Spawnable::Browser.new.visit("http://www.ruby-lang.org/") Lau…

---

## [Logger](https://www.ruby-forum.com/t/logger/111857)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 1\
**Last updated:** [August 12, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/logger/111857 "2007-08-12T15:43:42Z")

</div>

Hi … may not be directly related to this forum, but all the big shots are here, so i was considering asking if anyone has heard of some plugin / code / snippets / ideas / links of using the rails logger for gathering …

---

## [NameError - Scruffy and Gruff -](https://www.ruby-forum.com/t/nameerror-scruffy-and-gruff/111846)

<div class="topic-metadata">

**Author:** [@amslonewolf](https://www.ruby-forum.com/u/amslonewolf)\
**Replies:** 5\
**Last updated:** [August 12, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/nameerror-scruffy-and-gruff/111846 "2007-08-12T14:56:42Z")

</div>

I am trying to generate some charts using Scruffy or Gruff… But both of them are failing with NameError. I am a noob and googled a lot. Any help on how to fix these errors. D:/Screener/Scruffy.rb:2: uninitialized cons…

---

## [Bug or bad documentation for Array.insert()](https://www.ruby-forum.com/t/bug-or-bad-documentation-for-array-insert/111678)

<div class="topic-metadata">

**Author:** [@Markus\_E](https://www.ruby-forum.com/u/Markus_E)\
**Replies:** 3\
**Last updated:** [August 12, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/bug-or-bad-documentation-for-array-insert/111678 "2007-08-12T14:01:36Z")

</div>

I just came across ruby and noticed a difference between the behavior of Array.insert() and its documentation. Method: http://www.ruby-doc.org/core/classes/Array.src/M002195.html From the RDoc it seems that two argume…

---

## [Sorting a logfile, how would you write it?](https://www.ruby-forum.com/t/sorting-a-logfile-how-would-you-write-it/111789)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 14\
**Last updated:** [August 12, 2007, 10:31am UTC](https://www.ruby-forum.com/t/sorting-a-logfile-how-would-you-write-it/111789 "2007-08-12T10:31:19Z")

</div>

I’ve written a little ruby program which can sort logfiles with the following format: 4.text text text 1.text text text 2.text text text 10.text text text 2.text2 text2 text2 The file is given as a command line pa…

---

## [Heel 0.2.0 Released](https://www.ruby-forum.com/t/heel-0-2-0-released/111850)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [August 12, 2007, 9:16am UTC](https://www.ruby-forum.com/t/heel-0-2-0-released/111850 "2007-08-12T09:16:14Z")

</div>

heel version 0.2.0 has been released. http://copiousfreetime.rubyforge.org/heel/ Heel is a mongrel based web server to quickly and easily serve up the contents of a directory as webpages. Beyond just serving up webpa…

---

## [Expect.rb](https://www.ruby-forum.com/t/expect-rb/111848)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 12, 2007, 8:11am UTC](https://www.ruby-forum.com/t/expect-rb/111848 "2007-08-12T08:11:11Z")

</div>

Hello, I am in desperate need of some documentation on how to use Expect in a ruby script. Can anyone help me? Thanks, An

---

## [Pipelining](https://www.ruby-forum.com/t/pipelining/111841)

<div class="topic-metadata">

**Author:** [@fara77](https://www.ruby-forum.com/u/fara77)\
**Replies:** 2\
**Last updated:** [August 12, 2007, 3:02am UTC](https://www.ruby-forum.com/t/pipelining/111841 "2007-08-12T03:02:36Z")

</div>

Hello everyone I urgently some help with this code. I am trying to implement the following pipeline and i keep getting this error Erro:ENOENT can anybody please help me to get this code working #input is the command …

---

## [Get host by addr](https://www.ruby-forum.com/t/get-host-by-addr/111837)

<div class="topic-metadata">

**Author:** [@Nikos\_Kanellopoulos](https://www.ruby-forum.com/u/Nikos_Kanellopoulos)\
**Replies:** 2\
**Last updated:** [August 12, 2007, 12:58am UTC](https://www.ruby-forum.com/t/get-host-by-addr/111837 "2007-08-12T00:58:44Z")

</div>

Hello everybody. I am trying to do something simple. I have an IP address and need to do a reverse DNS lookup. However, I consistently get a “host not found” error. I have tried this in at least 2 different machines. …

---

## [Stderr stdout redirection with Ruby?](https://www.ruby-forum.com/t/stderr-stdout-redirection-with-ruby/111742)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 7\
**Last updated:** [August 11, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/stderr-stdout-redirection-with-ruby/111742 "2007-08-11T17:28:03Z")

</div>

i do have a shell script doing : man "#{arg}" 2\> "#{tmp}/#{fm}" PIPE man2html \> "#{tmp}/#{f1}" because i want to know if there is “No manual entry for “#{arg}”” then for the time being i’m using an tmp file “#{tmp}/#{…

---

## [Changing Test::Unit::Assertion messages](https://www.ruby-forum.com/t/changing-test-assertion-messages/111731)

<div class="topic-metadata">

**Author:** [@curt\_s](https://www.ruby-forum.com/u/curt_s)\
**Replies:** 3\
**Last updated:** [August 11, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/changing-test-assertion-messages/111731 "2007-08-11T13:50:32Z")

</div>

In many of my tests, I do something along the lines of assert\_match(/foobar/, content) When the assertion fails, it prints out something resembling the inspect of the content. In some cases, it’s much more readable t…

---

## [Excel without ole](https://www.ruby-forum.com/t/excel-without-ole/111761)

<div class="topic-metadata">

**Author:** [@ar43r](https://www.ruby-forum.com/u/ar43r)\
**Replies:** 4\
**Last updated:** [August 11, 2007, 9:42am UTC](https://www.ruby-forum.com/t/excel-without-ole/111761 "2007-08-11T09:42:14Z")

</div>

Hi, everybody, Do somebody know how to manipulate the existing excel document without win32ole on Mac os or linux? Best regards

---

## [Creating a \<span\> over a range while preserving nesting](https://www.ruby-forum.com/t/creating-a-span-over-a-range-while-preserving-nesting/111771)

<div class="topic-metadata">

**Author:** [@burke](https://www.ruby-forum.com/u/burke)\
**Replies:** 2\
**Last updated:** [August 11, 2007, 7:35am UTC](https://www.ruby-forum.com/t/creating-a-span-over-a-range-while-preserving-nesting/111771 "2007-08-11T07:35:06Z")

</div>

While this is a rails-related question, it has more to do with ruby in general. The user selects a range by highlighting it. This is detected with javascript and fed to ruby. I want to take this range and highlight it…

---

## [Quick Float question](https://www.ruby-forum.com/t/quick-float-question/111808)

<div class="topic-metadata">

**Author:** [@beaon](https://www.ruby-forum.com/u/beaon)\
**Replies:** 4\
**Last updated:** [August 11, 2007, 5:38am UTC](https://www.ruby-forum.com/t/quick-float-question/111808 "2007-08-11T05:38:00Z")

</div>

I’m doing some math with Ruby and I’d really like to know why: irb(main):002:0\> 10.0 / 3.0 =\> 3.33333333333333 but irb(main):003:0\> (10.0 / 3.0) == 3.33333333333333 is =\> false Thanks :slight\_smile: Cliff

---

## [Rinda: start\_keeper bug? Looking for second opinion](https://www.ruby-forum.com/t/rinda-start-keeper-bug-looking-for-second-opinion/111736)

<div class="topic-metadata">

**Author:** [@dazuma](https://www.ruby-forum.com/u/dazuma)\
**Replies:** 1\
**Last updated:** [August 11, 2007, 3:25am UTC](https://www.ruby-forum.com/t/rinda-start-keeper-bug-looking-for-second-opinion/111736 "2007-08-11T03:25:54Z")

</div>

I believe I’ve found a race condition in Rinda. But it seems a little “too easy”, so I wonder if I’m missing something. I’d like a second opinion from someone more familiar with the implementation before I file a bug …

---

## [Sudden problems with gem](https://www.ruby-forum.com/t/sudden-problems-with-gem/111783)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 1\
**Last updated:** [August 11, 2007, 3:18am UTC](https://www.ruby-forum.com/t/sudden-problems-with-gem/111783 "2007-08-11T03:18:53Z")

</div>

I believe it’s in response to trying to consolidate where gems are kept. (why ARE there so many directories used for this? the difference between say /var/lib/gems, /usr/lib/ruby/1.8, /usr/lib/ruby/gems/1.8/gems seems…

---

## [ARP Ping and ICMP in Ruby?](https://www.ruby-forum.com/t/arp-ping-and-icmp-in-ruby/111762)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 5\
**Last updated:** [August 11, 2007, 1:55am UTC](https://www.ruby-forum.com/t/arp-ping-and-icmp-in-ruby/111762 "2007-08-11T01:55:48Z")

</div>

What would I have to do in order to be able to send an ARP Ping or a regular ICMP\_ECHO\_REQUEST in Ruby? Is it possible?

---

## [Using the spaceship operator to compare nil?](https://www.ruby-forum.com/t/using-the-spaceship-operator-to-compare-nil/111693)

<div class="topic-metadata">

**Author:** [@thechak](https://www.ruby-forum.com/u/thechak)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/using-the-spaceship-operator-to-compare-nil/111693 "2007-08-10T23:50:41Z")

</div>

Hey folks, I have a test helper in a Rails app called assert\_ordered\_by def assert\_ordered\_by(attribute, collection, direction) collection = collection.to\_s return true if assigns\[“#{collection}”\].length \< 2 option\_…

---

## [POG 0.3 Public Beta released](https://www.ruby-forum.com/t/pog-0-3-public-beta-released/111796)

<div class="topic-metadata">

**Author:** [@Travis\_D\_Warlick\_Jr](https://www.ruby-forum.com/u/Travis_D_Warlick_Jr)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/pog-0-3-public-beta-released/111796 "2007-08-10T21:59:30Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 POG – Password Operations Gem version 0.3 (Public beta) is now released on RubyForge. Site: http://pog.rubyforge.org RDocs: http://pog.rubyforge.org/doc Tracker:…

---

## [ANN: Sequel 0.1.9.3 Released](https://www.ruby-forum.com/t/ann-sequel-0-1-9-3-released/111793)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-9-3-released/111793 "2007-08-10T21:43:28Z")

</div>

Sequel version 0.1.9.3 has just been released. This release adds new database migration functionality and support for specifying field sizes in schema definitions. Following is a discussion of the main changes: Data…

---

## [Unwanted behavior with "define" method an Test::Unit](https://www.ruby-forum.com/t/unwanted-behavior-with-define-method-an-test-unit/111785)

<div class="topic-metadata">

**Author:** [@cidol](https://www.ruby-forum.com/u/cidol)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/unwanted-behavior-with-define-method-an-test-unit/111785 "2007-08-10T20:47:20Z")

</div>

I’m using “define\_method” to build some unit test helpers. They look as such: class Test::Unit::TestCase def self.name\_of\_test\_helper define\_method(“test\_whatever\_for\_#{custom\_name}”) { assert something\_about(custom…

---

## [\`rake\` fails: Exec format error](https://www.ruby-forum.com/t/rake-fails-exec-format-error/111717)

<div class="topic-metadata">

**Author:** [@lfast](https://www.ruby-forum.com/u/lfast)\
**Replies:** 7\
**Last updated:** [August 10, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/rake-fails-exec-format-error/111717 "2007-08-10T20:34:18Z")

</div>

I’m trying to start rake running for a sub-component of our system. However Ruby doesn’t like rake and produces the following error… ruby -e “rake” (it gives the same error inside my .rb files) -e:1:in \`\`’: Exec fo…

---

## [Mkmf question](https://www.ruby-forum.com/t/mkmf-question/111787)

<div class="topic-metadata">

**Author:** [@Terry\_Dineen](https://www.ruby-forum.com/u/Terry_Dineen)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/mkmf-question/111787 "2007-08-10T20:03:15Z")

</div>

Hi, I am trying to build ruby-xslt on Windows XP. The first step is to run ruby extconf.rb which fails. mkmf.log contains the following which can’t work on my system since there is no cl in my path; I assume that’s…

---

## [What the...? Hash does not have a key it really should have!](https://www.ruby-forum.com/t/what-the-hash-does-not-have-a-key-it-really-should-have/111784)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 5\
**Last updated:** [August 10, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/what-the-hash-does-not-have-a-key-it-really-should-have/111784 "2007-08-10T19:58:15Z")

</div>

Hi all irb(main):001:0\> conversion\_classes = { irb(main):002:1\* ‘Music labels’ =\> ‘MusicLabel’, irb(main):003:1\* ‘Music artists’ =\> ‘MusicArtist’, irb(main):004:1\* ‘Online Shops’ =\> ‘OnlineShop’…

---

## [3d library](https://www.ruby-forum.com/t/3d-library/111780)

<div class="topic-metadata">

**Author:** [@Zufynet](https://www.ruby-forum.com/u/Zufynet)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/3d-library/111780 "2007-08-10T19:26:11Z")

</div>

I’m working to a 3d library Ruby http://ruby-3d.projects.zufy.net :slight\_smile:

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

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