# Ruby

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

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

---

## [Spacing issues when using Inferior-Ruby Emacs mode](https://www.ruby-forum.com/t/spacing-issues-when-using-inferior-ruby-emacs-mode/74230)

<div class="topic-metadata">

**Author:** [@Josh\_Staiger](https://www.ruby-forum.com/u/Josh_Staiger)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/spacing-issues-when-using-inferior-ruby-emacs-mode/74230 "2006-02-27T17:28:27Z")

</div>

Hello, I’m seeing some rather strange behavior when using Inferior-Ruby-Mode in Emacs (on Windows XP). It’s a bit difficult to describe what the problem is, but here goes. Whenever I hit enter my cursor is positioned…

---

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

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/re-support-for-audio-recording-and-analysis-using-ruby/74185 "2006-02-27T15:27:42Z")

</div>

Dear Wink, I would be interested in other audio software too… By the way, Snack itself is last updated in late 2004, if my Google tells me correctly. So maybe you’re stuck with using and maybe editing the Ruby bindin…

---

## [Ruby-gnome2/gtk error on mac](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 27, 2006, 1:05pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570 "2006-02-27T13:05:33Z")

</div>

I’m running Ruby 1.8.4 (installed via darwinports) on OS 10.4 with gtk 2.8.12 (installed via darwinports) and ruby-gnome2 0.14.1 (configured using extconf.rb and installed in the /opt/local location of ruby). When I r…

---

## [Re: Undefined Method](https://www.ruby-forum.com/t/re-undefined-method/74064)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 8:33am UTC](https://www.ruby-forum.com/t/re-undefined-method/74064 "2006-02-27T08:33:52Z")

</div>

Hi William, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscriptio…

---

## [Undefined Method](https://www.ruby-forum.com/t/undefined-method/74022)

<div class="topic-metadata">

**Author:** [@William\_Wilcox](https://www.ruby-forum.com/u/William_Wilcox)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 6:14am UTC](https://www.ruby-forum.com/t/undefined-method/74022 "2006-02-27T06:14:23Z")

</div>

After messing around with PHP for over a year, I took one look at Ruby on Rails and fell in love. But it’s one of those confused “Men are from Mars, Women are from Venus” type things… I’ve written a method which does…

---

## [C Extensions not working on Windows XP 64](https://www.ruby-forum.com/t/c-extensions-not-working-on-windows-xp-64/72527)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 3\
**Last updated:** [February 27, 2006, 6:02am UTC](https://www.ruby-forum.com/t/c-extensions-not-working-on-windows-xp-64/72527 "2006-02-27T06:02:14Z")

</div>

I can not for the life of me get even the simplest C extension example to load into ruby on Windows XP. The first case I tried actually was the example provided by SWIG (the simple example). It fails with the messa…

---

## [Ruby vtk bindings](https://www.ruby-forum.com/t/ruby-vtk-bindings/73902)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [February 27, 2006, 5:47am UTC](https://www.ruby-forum.com/t/ruby-vtk-bindings/73902 "2006-02-27T05:47:03Z")

</div>

I’m wanting to use ruby with VTK (http://public.kitware.com/VTK/). Currently I’m getting errors compiling the ruby bindings (VTK-Ruby): g++ -fPIC -Wall -g -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ru…

---

## [Subversion ruby bindings for win32](https://www.ruby-forum.com/t/subversion-ruby-bindings-for-win32/54161)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 27, 2006, 5:01am UTC](https://www.ruby-forum.com/t/subversion-ruby-bindings-for-win32/54161 "2006-02-27T05:01:33Z")

</div>

Already have tried contact subversion ppl, all without luck. I’m limited to a winbox at the office, and wanted to run collaboa (which uses svn ruby bindings). The thing is that officialy there isn’t (nor will be) offi…

---

## [WxRuby widget borders](https://www.ruby-forum.com/t/wxruby-widget-borders/73979)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 0\
**Last updated:** [February 27, 2006, 3:09am UTC](https://www.ruby-forum.com/t/wxruby-widget-borders/73979 "2006-02-27T03:09:23Z")

</div>

I can add a border around widgets in WxRuby using the ALL flag, but the LEFT, RIGHT, TOP and BOTTOM flags aren’t recognized. Are those not supported? Here’s some simple code that demonstates this. I really want to cha…

---

## [Inconsistent Behavior Converting String to Integer/Float](https://www.ruby-forum.com/t/inconsistent-behavior-converting-string-to-integer-float/73192)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 5\
**Last updated:** [February 27, 2006, 12:58am UTC](https://www.ruby-forum.com/t/inconsistent-behavior-converting-string-to-integer-float/73192 "2006-02-27T00:58:41Z")

</div>

$ruby-yarv -v ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) \[powerpc-darwin8.5.0\] YARVCore 0.4.0 Rev: 466 (2006-02-22) \[opts: \] $ruby -v ruby 1.8.4 (2005-12-24) \[powerpc-darwin8.3.0\] Correct behavior num = “+3” Float(nu…

---

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

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 27, 2006, 12:52am UTC](https://www.ruby-forum.com/t/re-support-for-audio-recording-and-analysis-using-ruby/54200 "2006-02-27T00:52:35Z")

</div>

Dear Wank, There is a sound toolkit “Snack” you can use: \_http://www.speech.kth.se/snack/\_ (Snack Home Page) There are Ruby bindings for it available under: \_http://rbsnack.sourceforge.net/intro.html\_ (Snack Home Pa…

---

## [Scope of constants in instance\_eval](https://www.ruby-forum.com/t/scope-of-constants-in-instance-eval/73531)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 9\
**Last updated:** [February 27, 2006, 12:10am UTC](https://www.ruby-forum.com/t/scope-of-constants-in-instance-eval/73531 "2006-02-27T00:10:13Z")

</div>

I’m writing a DSL, and I want to use some constants. To be clean, I don’t want to pollute the global constant space. To be tight, I also don’t want the user to have to scope the constant using Foo::BAR, but instead be…

---

## [Using attr\_writer?](https://www.ruby-forum.com/t/using-attr-writer/73942)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 5\
**Last updated:** [February 26, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/using-attr-writer/73942 "2006-02-26T23:06:08Z")

</div>

I’m confused about attr\_writer. I thought it worked like this: class Foo attr\_writer :bar def do\_stuff puts @bar end end foo = Foo.new foo.bar = ‘baz’ foo.do\_stuff # gives nil error Can somebody enlighten me? :…

---

## [Uttk 0.3 is released!](https://www.ruby-forum.com/t/uttk-0-3-is-released/73903)

<div class="topic-metadata">

**Author:** [@Nicolas\_DesprSSSSs](https://www.ruby-forum.com/u/Nicolas_DesprSSSSs)\
**Replies:** 1\
**Last updated:** [February 26, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/uttk-0-3-is-released/73903 "2006-02-26T20:56:13Z")

</div>

Hi there, We are proud to announce that the version 0.3 of Uttk, aka KID, is available on-line on Rubyforge (http://rubyforge.org/frs/?group\_id=621). This release comes with the version 0.5 of core\_ex and 0.4 of ruby…

---

## [In doubt with sqlite3-ruby](https://www.ruby-forum.com/t/in-doubt-with-sqlite3-ruby/73477)

<div class="topic-metadata">

**Author:** [@aurelianito](https://www.ruby-forum.com/u/aurelianito)\
**Replies:** 2\
**Last updated:** [February 26, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/in-doubt-with-sqlite3-ruby/73477 "2006-02-26T19:09:47Z")

</div>

Hi! I have a table with an AUTOINCREMENT primary key and I would like to know how to retrieve this primary key when a new row is inserted. Is it possible? Below, I written some sample ruby code for you to see my prob…

---

## [Tk horizontal scrollbar infinite loop](https://www.ruby-forum.com/t/tk-horizontal-scrollbar-infinite-loop/72703)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 10\
**Last updated:** [February 26, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/tk-horizontal-scrollbar-infinite-loop/72703 "2006-02-26T19:03:37Z")

</div>

Hi, I’m having a bizarre problem with Ruby/Tk. I’m running OS X 10.4 with the standard ruby: ruby 1.8.2 (2004-12-25) \[powerpc-darwin8.0\] The code below is the simplest code that reproduces the problem. Namely, when…

---

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

<div class="topic-metadata">

**Author:** [@Rudolfs\_O](https://www.ruby-forum.com/u/Rudolfs_O)\
**Replies:** 2\
**Last updated:** [February 26, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/current-temperature-68/73530 "2006-02-26T19:00:35Z")

</div>

Hello everyone ! Here is my solution, actually it’s my first ruby program, I just started learning… Suggestions on how to improve my code are welcome :slight\_smile: This is how it looks when executed, I couldn’t find…

---

## [N00b request help with scaffold- undefined method 'body=' er](https://www.ruby-forum.com/t/n00b-request-help-with-scaffold-undefined-method-body-er/73378)

<div class="topic-metadata">

**Author:** [@nanana](https://www.ruby-forum.com/u/nanana)\
**Replies:** 4\
**Last updated:** [February 26, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/n00b-request-help-with-scaffold-undefined-method-body-er/73378 "2006-02-26T18:44:13Z")

</div>

Hey guys, I’m trying to work my way through the Ruby on Rails tutorial building CRUD actions using scaffold based on a single database table. the “list” action seems to work well, but all other actions result in erro…

---

## [ANN: next meeting of codefesters in Columbia Maryland is Mon](https://www.ruby-forum.com/t/ann-next-meeting-of-codefesters-in-columbia-maryland-is-mon/54201)

<div class="topic-metadata">

**Author:** [@Jeff\_Waltzer](https://www.ruby-forum.com/u/Jeff_Waltzer)\
**Replies:** 0\
**Last updated:** [February 26, 2006, 6:29pm UTC](https://www.ruby-forum.com/t/ann-next-meeting-of-codefesters-in-columbia-maryland-is-mon/54201 "2006-02-26T18:29:42Z")

</div>

Us folk who have been teaching ourselves Ruby on Rails development in the Columbia Maryland area are still meeting up each Monday to learn more about it. We’ve expanded the scope of our meetings to be more about lear…

---

## [Re: N00b request help with scaffold- undefined method 'body=](https://www.ruby-forum.com/t/re-n00b-request-help-with-scaffold-undefined-method-body/73503)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [February 26, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/re-n00b-request-help-with-scaffold-undefined-method-body/73503 "2006-02-26T17:48:36Z")

</div>

Hi na, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription and…

---

## [HighLine 1.0.2 Released](https://www.ruby-forum.com/t/highline-1-0-2-released/71087)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [February 26, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/highline-1-0-2-released/71087 "2006-02-26T17:45:27Z")

</div>

HighLine 1.0.2 Released Fixed all outstanding issues. What is HighLine? (from the README) HighLine was designed to ease the tedious tasks of doing console input and output with low-level methods like gets() and puts…

---

## [Win32-sound 0.4.0](https://www.ruby-forum.com/t/win32-sound-0-4-0/73478)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [February 26, 2006, 5:24pm UTC](https://www.ruby-forum.com/t/win32-sound-0-4-0/73478 "2006-02-26T17:24:05Z")

</div>

Hi all, The Win32Utils team is happy to announce the release of win32-sound 0.4.0. What’s new? This release replaces the C code with a pure Ruby version that uses the Win32API package. It also adds a gemspec, and a …

---

## [Lazy.rb 0.9.5 -- transparent futures!](https://www.ruby-forum.com/t/lazy-rb-0-9-5-transparent-futures/70247)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 42\
**Last updated:** [February 26, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/lazy-rb-0-9-5-transparent-futures/70247 "2006-02-26T17:14:55Z")

</div>

I’d like to announce a new version of lazy.rb – this one offering thread safety and transparent futures! Here’s the web site, complete with gem and tarball downloads, plus a bit of documentation: http://moonbase.rydi…

---

## [Fwd: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-ruby-quiz-submission/73476)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [February 26, 2006, 4:56pm UTC](https://www.ruby-forum.com/t/fwd-ruby-quiz-submission/73476 "2006-02-26T16:56:38Z")

</div>

Begin forwarded message: open(“weather - Google Search”) do |page| page.readlines.join =~ /Weather\</b\> for (.?)\</b\>.\>(\\d+) °F/ puts “The temperature in #{$1} is #{$2} degrees F.” end Begin forwarded message:

---

## [Rdoc mode for Emacs](https://www.ruby-forum.com/t/rdoc-mode-for-emacs/102565)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 0\
**Last updated:** [February 26, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/rdoc-mode-for-emacs/102565 "2006-02-26T16:25:32Z")

</div>

I’ve whipped together this Emacs mode for editing rdoc files. It’s based off of generic-mode. I’ve set it to be active when you open README\_FOR\_APP or any .rdoc file. Share and enjoy. Jim

---

## [\[ANN\] rdoc-mode for emacs](https://www.ruby-forum.com/t/ann-rdoc-mode-for-emacs/73472)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 0\
**Last updated:** [February 26, 2006, 4:25pm UTC](https://www.ruby-forum.com/t/ann-rdoc-mode-for-emacs/73472 "2006-02-26T16:25:29Z")

</div>

I’ve whipped together this Emacs mode for editing rdoc files. It’s based off of generic-mode. I’ve set it to be active when you open README\_FOR\_APP or any .rdoc file. Share and enjoy. Jim

---

## ['require' does not work under mod\_ruby](https://www.ruby-forum.com/t/require-does-not-work-under-mod-ruby/73431)

<div class="topic-metadata">

**Author:** [@Frantisek\_Fuka](https://www.ruby-forum.com/u/Frantisek_Fuka)\
**Replies:** 4\
**Last updated:** [February 26, 2006, 4:22pm UTC](https://www.ruby-forum.com/t/require-does-not-work-under-mod-ruby/73431 "2006-02-26T16:22:25Z")

</div>

When using: “require ‘engine.rbx’” under mod\_ruby, I get “File does not exist” error. However, if I change “require” to “load”, it gets loaded allright. the file and it directory has correct permissions (755). “Untain…

---

## [Perl equiv](https://www.ruby-forum.com/t/perl-equiv/71078)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 3\
**Last updated:** [February 26, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/perl-equiv/71078 "2006-02-26T15:52:14Z")

</div>

I’m looking for something equivelant to the perl modules: Net::Server. It’s rather complete as a server. Not sure what comparable items might be available for Ruby. I’m putting something together in Perl because that…

---

## [Private methods - only available to oneself?](https://www.ruby-forum.com/t/private-methods-only-available-to-oneself/65745)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 42\
**Last updated:** [February 26, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/private-methods-only-available-to-oneself/65745 "2006-02-26T15:33:53Z")

</div>

Hi, all. I’m a somewhat newbie in ruby realm, and trying to write some codes. Yesterday, I’ve found very strange characteristics in ruby. Please see the following: irb(main):001:0\> class Foo irb(main):002:1\> private …

---

## [FOX widget layout](https://www.ruby-forum.com/t/fox-widget-layout/73318)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [February 26, 2006, 10:04am UTC](https://www.ruby-forum.com/t/fox-widget-layout/73318 "2006-02-26T10:04:05Z")

</div>

Does FOX have a layout manager that can layout widgets in rows and columns AND allow a widget to span more than one row and/or column? Tk can do this. In Java Swing I do this with GridBagLayout. FOX has the layout F…

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

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