# Ruby

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

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

---

## [Using assert() in a loop](https://www.ruby-forum.com/t/using-assert-in-a-loop/54280)

<div class="topic-metadata">

**Author:** [@toby](https://www.ruby-forum.com/u/toby)\
**Replies:** 2\
**Last updated:** [February 28, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/using-assert-in-a-loop/54280 "2006-02-28T17:01:01Z")

</div>

Hello everybody I hope this question isn’t answered somewhere else, but the search was disabled so i hope that excuses me. I have been introducted to Ruby thorugh the need to write Watir tests to do functional testin…

---

## [Ruby segfaults with rails app](https://www.ruby-forum.com/t/ruby-segfaults-with-rails-app/54154)

<div class="topic-metadata">

**Author:** [@Payton\_S](https://www.ruby-forum.com/u/Payton_S)\
**Replies:** 1\
**Last updated:** [February 28, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/ruby-segfaults-with-rails-app/54154 "2006-02-28T16:48:36Z")

</div>

Hi, this is something of a cross-post since I think I’ve exhausted the ideas from the rails list and I think this may be more generally ruby-related. Here’s the link to the original thread: http://wrath.rubyonrails.o…

---

## [Rdoc bug](https://www.ruby-forum.com/t/rdoc-bug/73905)

<div class="topic-metadata">

**Author:** [@pistos](https://www.ruby-forum.com/u/pistos)\
**Replies:** 4\
**Last updated:** [February 28, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/rdoc-bug/73905 "2006-02-28T16:30:05Z")

</div>

To Whom It May Concern: $ ruby --version ruby 1.8.4 (2005-12-24) \[i686-linux\] $ rdoc --version RDoc V1.0.1 - 20041108 — BEGIN rdoctest.rb — class A def foo end def bar end end class B def baz # This line cau…

---

## [Pine's book "Learning to Program" - Answer?](https://www.ruby-forum.com/t/pines-book-learning-to-program-answer/74509)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 10\
**Last updated:** [February 28, 2006, 3:49pm UTC](https://www.ruby-forum.com/t/pines-book-learning-to-program-answer/74509 "2006-02-28T15:49:47Z")

</div>

Hi! I’m stuck on Chapter 5, 5.4: “Write a program which asks for a person’s favorite number. Have your program add one to the number, then suggest the result as a bigger and better favorite number. (Do be tactful abou…

---

## [Support for audio recording and analysis using Ruby?](https://www.ruby-forum.com/t/support-for-audio-recording-and-analysis-using-ruby/54197)

<div class="topic-metadata">

**Author:** [@Wink\_Saville](https://www.ruby-forum.com/u/Wink_Saville)\
**Replies:** 3\
**Last updated:** [February 28, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/support-for-audio-recording-and-analysis-using-ruby/54197 "2006-02-28T15:32:58Z")

</div>

Hello, I was wondering if there were any modules available for Ruby to capture and analyze audio that runs on Linux. I’d like to capture short snippets of audio (0.5 to 1 second) and then do an FFT. Thanks, Wink Sav…

---

## [Q: How to initialize debugger's state when starting](https://www.ruby-forum.com/t/q-how-to-initialize-debuggers-state-when-starting/72456)

<div class="topic-metadata">

**Author:** [@Dumaiu](https://www.ruby-forum.com/u/Dumaiu)\
**Replies:** 6\
**Last updated:** [February 28, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/q-how-to-initialize-debuggers-state-when-starting/72456 "2006-02-28T15:24:31Z")

</div>

Quick question: When starting a Ruby script in debug (’-rdebug’) mode, what’s the simplest way to source an \*rc-type file for, say, setting breakpoints? Is it possible to do such during the invocation of ruby at the …

---

## [Bug in Ripper](https://www.ruby-forum.com/t/bug-in-ripper/74738)

<div class="topic-metadata">

**Author:** [@jonT](https://www.ruby-forum.com/u/jonT)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/bug-in-ripper/74738 "2006-02-28T14:57:41Z")

</div>

Hi, Minero A. has confirmed that the following is a bug. I’m not (yet!) sufficinetly familiar with the Ruby internals to have a go at fixing it though :(. Any ideas? - perhaps a patch or even a hint of where to look …

---

## [Irb cannot parse /\\^/](https://www.ruby-forum.com/t/irb-cannot-parse/74133)

<div class="topic-metadata">

**Author:** [@H.Yamamoto](https://www.ruby-forum.com/u/H.Yamamoto)\
**Replies:** 7\
**Last updated:** [February 28, 2006, 2:51pm UTC](https://www.ruby-forum.com/t/irb-cannot-parse/74133 "2006-02-28T14:51:33Z")

</div>

e$B;3K$G$9!#e(B http://rubyforge.org/tracker/index.php?func=detail&aid=3302&group\_id=426&atid=1698 e$B$NLdBj$J$N$G$9$,!"2\<$N%Q%C%A$G\<#$k$h$&$G$9!#$3$l$G4V0c$$$J$$$G$7$g$&$+!)e(B \[ruby-talk:181631\] e$B$NJ}$Ke(B rdoc e…

---

## [Bug in Racc?](https://www.ruby-forum.com/t/bug-in-racc/74700)

<div class="topic-metadata">

**Author:** [@jonT](https://www.ruby-forum.com/u/jonT)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/bug-in-racc/74700 "2006-02-28T14:30:05Z")

</div>

Hi all, The following was reported to Minero A. (Racc developer) a while ago; he hasn’t replied so I assume he’s busy. Thus I’m putting it out to the Ruby community, any ideas would be appreciated. Appologies for the …

---

## [RubyCocoa and DarwinPorts Ruby?](https://www.ruby-forum.com/t/rubycocoa-and-darwinports-ruby/73943)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 4\
**Last updated:** [February 28, 2006, 12:33pm UTC](https://www.ruby-forum.com/t/rubycocoa-and-darwinports-ruby/73943 "2006-02-28T12:33:57Z")

</div>

Can anyone point me to potential problems with setting up a RubyCocoa Framework if Ruby has been installed with DarwinPorts and thus resides in /opt/local? All comments welcome john

---

## [Is this Ruby warning making sense?](https://www.ruby-forum.com/t/is-this-ruby-warning-making-sense/74451)

<div class="topic-metadata">

**Author:** [@rubyrus](https://www.ruby-forum.com/u/rubyrus)\
**Replies:** 3\
**Last updated:** [February 28, 2006, 11:18am UTC](https://www.ruby-forum.com/t/is-this-ruby-warning-making-sense/74451 "2006-02-28T11:18:03Z")

</div>

Does anyone think if this the warning makes any sense? irb(main):002:0\> puts “abc” if (a=true) (irb):2: warning: found = in conditional, should be == abc I thought in ruby, everything is an expression, so a=true shou…

---

## [How to run a ruby program from another one](https://www.ruby-forum.com/t/how-to-run-a-ruby-program-from-another-one/74585)

<div class="topic-metadata">

**Author:** [@Navya\_A](https://www.ruby-forum.com/u/Navya_A)\
**Replies:** 2\
**Last updated:** [February 28, 2006, 9:56am UTC](https://www.ruby-forum.com/t/how-to-run-a-ruby-program-from-another-one/74585 "2006-02-28T09:56:43Z")

</div>

Hi, How can we run a a ruby program from another ruby program. I am working on one program where in i have to run another ruby program from it. I am stuck here. Please help. Thanks, Navya

---

## [This feels ugly](https://www.ruby-forum.com/t/this-feels-ugly/54268)

<div class="topic-metadata">

**Author:** [@travis\_laduke](https://www.ruby-forum.com/u/travis_laduke)\
**Replies:** 1\
**Last updated:** [February 28, 2006, 7:50am UTC](https://www.ruby-forum.com/t/this-feels-ugly/54268 "2006-02-28T07:50:49Z")

</div>

i better explain a little to get started. in my form for creating a Person, there’s a Company field. People belong to companies and companies have many people. in my person form i have: \<%= text\_field ‘person’, ‘Comp…

---

## [Documentation with rDoc and .chm-help](https://www.ruby-forum.com/t/documentation-with-rdoc-and-chm-help/74583)

<div class="topic-metadata">

**Author:** [@rbPete](https://www.ruby-forum.com/u/rbPete)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 7:49am UTC](https://www.ruby-forum.com/t/documentation-with-rdoc-and-chm-help/74583 "2006-02-28T07:49:01Z")

</div>

Hello! I hava a question about documentation with rDoc an the .chm-help (compiled HTML-help). I’d like to do my documentation with rDoc and the output should be a .chm-help. My problem is, that the entrys (by the aut…

---

## [Drawing a hierarchy w.r.t. class (instance) variables](https://www.ruby-forum.com/t/drawing-a-hierarchy-w-r-t-class-instance-variables/74581)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 7:44am UTC](https://www.ruby-forum.com/t/drawing-a-hierarchy-w-r-t-class-instance-variables/74581 "2006-02-28T07:44:31Z")

</div>

Hi group. Recently, I’ve read http://www.visibleworkings.com/little-ruby/Chapter3.pdf http://www.ruby-doc.org/docs/Understanding%20Ruby’s%20Object%20Model/ChrisPine\_UROM.ppt and PickAxe. I’m trying to draw a picture…

---

## [Curriculum for Teaching Ruby to C++ Professionals](https://www.ruby-forum.com/t/curriculum-for-teaching-ruby-to-c-professionals/74067)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 7\
**Last updated:** [February 28, 2006, 6:24am UTC](https://www.ruby-forum.com/t/curriculum-for-teaching-ruby-to-c-professionals/74067 "2006-02-28T06:24:28Z")

</div>

Hi Rubyists, I’m a game programmer by profession. I’m setting up a little “Learn Ruby” course for the rest of the programmers at work. Ruby may be useful for internal tools for us, but it’s not embeddable because of …

---

## [Dallas Ruby Brigade meets March 7th](https://www.ruby-forum.com/t/dallas-ruby-brigade-meets-march-7th/54265)

<div class="topic-metadata">

**Author:** [@therealadam](https://www.ruby-forum.com/u/therealadam)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 5:53am UTC](https://www.ruby-forum.com/t/dallas-ruby-brigade-meets-march-7th/54265 "2006-02-28T05:53:51Z")

</div>

The Dallas Ruby Brigade begins! Following in the proud tradition of Seattle.rb, NYC.rb and many others, Dallas has joined the crowd with its own local Ruby Brigade. We’ll be meeting Tuesday, March 7th in Addison. The …

---

## [Ruby Whitespace Semantics](https://www.ruby-forum.com/t/ruby-whitespace-semantics/54234)

<div class="topic-metadata">

**Author:** [@Almann\_G](https://www.ruby-forum.com/u/Almann_G)\
**Replies:** 20\
**Last updated:** [February 28, 2006, 4:36am UTC](https://www.ruby-forum.com/t/ruby-whitespace-semantics/54234 "2006-02-28T04:36:20Z")

</div>

Can someone please explain the semantics behind the following: irb(main):001:0\> a = ( 4 + 5 ) =\> 9 irb(main):002:0\> a = ( 4 irb(main):003:1\> + 5 ) =\> 5 irb(main):004:0\> a = ( 4 + irb(main):005:1\* 5 ) …

---

## [Extending an object](https://www.ruby-forum.com/t/extending-an-object/74024)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 2\
**Last updated:** [February 28, 2006, 3:51am UTC](https://www.ruby-forum.com/t/extending-an-object/74024 "2006-02-28T03:51:09Z")

</div>

I’m writing an extension for Ruby, and want to extend an object with methods from a module. I’m doing it like this: rb\_extend\_object(self, rb\_mAModuleExtension); But the methods added to self become private. I want th…

---

## [DRb and signals](https://www.ruby-forum.com/t/drb-and-signals/74411)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 28, 2006, 2:47am UTC](https://www.ruby-forum.com/t/drb-and-signals/74411 "2006-02-28T02:47:59Z")

</div>

Using DRb appears to disable signal handlers in Ruby, at least in 1.8.4. Is there any way to work around this? Compare: trap( “SIGINT” ) { puts “foo” ; exit 0 } loop do sleep 1 end with: require ‘drb’ DRb.start\_s…

---

## [Tar with ruby](https://www.ruby-forum.com/t/tar-with-ruby/74410)

<div class="topic-metadata">

**Author:** [@tomas](https://www.ruby-forum.com/u/tomas)\
**Replies:** 2\
**Last updated:** [February 28, 2006, 2:29am UTC](https://www.ruby-forum.com/t/tar-with-ruby/74410 "2006-02-28T02:29:29Z")

</div>

Hi, I have started using ruby. A current task is to get a tar.gz file from internet and extract it. I find the zlib class und so I can extract the downloaded file to a .tar one. How can I extract this file? I found…

---

## [Ruby-VPI 0.1](https://www.ruby-forum.com/t/ruby-vpi-0-1/74480)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [February 28, 2006, 1:46am UTC](https://www.ruby-forum.com/t/ruby-vpi-0-1/74480 "2006-02-28T01:46:19Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruby-VPI 0.1 has been released. http://ruby-vpi.rubyforge.org/ === What is Ruby-VPI? === Ruby-VPI is a Ruby extension for Verilog VPI which lets you create complex Veri…

---

## [Re: Ruby Whitespace Semantics](https://www.ruby-forum.com/t/re-ruby-whitespace-semantics/74188)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 5\
**Last updated:** [February 28, 2006, 1:30am UTC](https://www.ruby-forum.com/t/re-ruby-whitespace-semantics/74188 "2006-02-28T01:30:57Z")

</div>

Matz has said that a = (4 +5) will be supported in 1.9.

---

## [Authenticating distributed Ruby](https://www.ruby-forum.com/t/authenticating-distributed-ruby/74021)

<div class="topic-metadata">

**Author:** [@trejkaz](https://www.ruby-forum.com/u/trejkaz)\
**Replies:** 5\
**Last updated:** [February 28, 2006, 12:44am UTC](https://www.ruby-forum.com/t/authenticating-distributed-ruby/74021 "2006-02-28T00:44:34Z")

</div>

Hi all. I’ve been playing with DRb a fair bit lately, am planning to use it as part of a Rails-to-XMPP integration project. XMPP is relatively costly to authenticate with, and one of the ways around that is to login …

---

## [Current Temperature (#68)](https://www.ruby-forum.com/t/current-temperature-68/74404)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/current-temperature-68/74404 "2006-02-27T22:26:54Z")

</div>

require ‘uri’ require ‘open-uri’ require ‘rexml/document’ class Weather attr\_reader :location, :temperature, :unit def initialize(zip\_or\_city, unit=‘f’) raise “Error: Unit must be ‘C’ or ‘F’.” unless unit =~ /^\[cf\]…

---

## [Plugin type discovery/registration - How do I discover what](https://www.ruby-forum.com/t/plugin-type-discovery-registration-how-do-i-discover-what/74278)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 4\
**Last updated:** [February 27, 2006, 10:20pm UTC](https://www.ruby-forum.com/t/plugin-type-discovery-registration-how-do-i-discover-what/74278 "2006-02-27T22:20:25Z")

</div>

In my current project I am in need of a standard plugin mechanism where I discover what plugins are available by what exists in a directory. I was able to easily simply ‘require’ these ruby files in. However I want to …

---

## [Memory Question](https://www.ruby-forum.com/t/memory-question/73428)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 6\
**Last updated:** [February 27, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/memory-question/73428 "2006-02-27T21:40:59Z")

</div>

I am doing some large queries with Mysql and the memory that gets allocated never seems to go back to the system. In this test I am querying 47,000 records. My setup for my test is ubuntu breezy, rails 1.0, mysql 5.0.…

---

## [MySQL Bindings, Pather Server, existing MySQL - help](https://www.ruby-forum.com/t/mysql-bindings-pather-server-existing-mysql-help/73382)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 1\
**Last updated:** [February 27, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/mysql-bindings-pather-server-existing-mysql-help/73382 "2006-02-27T21:31:47Z")

</div>

I’m trying to install Ruby with the MySQL bindings via Darwinports on a Panther Server with an existing MySQL install. I’ve used Darwinports to install Ruby, Gems, and Rails, all went OK. Now I’m trying to install the…

---

## [Commit emails for RubyForge Subversion projects](https://www.ruby-forum.com/t/commit-emails-for-rubyforge-subversion-projects/74137)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [February 27, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/commit-emails-for-rubyforge-subversion-projects/74137 "2006-02-27T20:16:34Z")

</div>

Hi all - Commit emails are now available for folks with RubyForge projects that use Subversion! Short version: create a new email list: myproject-commits or some such put in a support request here: http://rubyf…

---

## [Empty field ( check form )](https://www.ruby-forum.com/t/empty-field-check-form/74276)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/empty-field-check-form/74276 "2006-02-27T18:44:06Z")

</div>

is there some function to check a form on empty fields or check the City is the first capital letter if not he will change this letter and put to database ? thanks

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

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