# Ruby

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

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

---

## [\\n on windows?](https://www.ruby-forum.com/t/n-on-windows/70726)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 3\
**Last updated:** [February 21, 2006, 4:00am UTC](https://www.ruby-forum.com/t/n-on-windows/70726 "2006-02-21T04:00:07Z")

</div>

improper output: irb(main):034:0\> YAML::dump m =\> “— !ruby/object:MailTruck \\ndriver: Harold\\nroute: \\n- 12 Corrigan Way\\n- 2 3 Antler Ave\\n” irb(main):034:0\> expected output: irb(main):033:0\> YAML::dump m — !rub…

---

## [Whats the difference of ActiveRuby and "regular" Ruby instal](https://www.ruby-forum.com/t/whats-the-difference-of-activeruby-and-regular-ruby-instal/70777)

<div class="topic-metadata">

**Author:** [@jeisma](https://www.ruby-forum.com/u/jeisma)\
**Replies:** 5\
**Last updated:** [February 21, 2006, 3:07am UTC](https://www.ruby-forum.com/t/whats-the-difference-of-activeruby-and-regular-ruby-instal/70777 "2006-02-21T03:07:22Z")

</div>

hello! as the subject goes, what’s the difference of ActiveRuby and “regular” Ruby install? on windows, ActiveRuby defaults to C:\\program files, while “regular” ruby on c:\\ruby. do i need both if i use ruby as wsh sc…

---

## [Re: How to make Ruby on Rails working with appache 2.0?](https://www.ruby-forum.com/t/re-how-to-make-ruby-on-rails-working-with-appache-2-0/71124)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 2:06am UTC](https://www.ruby-forum.com/t/re-how-to-make-ruby-on-rails-working-with-appache-2-0/71124 "2006-02-21T02:06:21Z")

</div>

Hi Mark, 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 a…

---

## [How to make Ruby on Rails working with appache 2.0?](https://www.ruby-forum.com/t/how-to-make-ruby-on-rails-working-with-appache-2-0/71045)

<div class="topic-metadata">

**Author:** [@news](https://www.ruby-forum.com/u/news)\
**Replies:** 1\
**Last updated:** [February 21, 2006, 2:06am UTC](https://www.ruby-forum.com/t/how-to-make-ruby-on-rails-working-with-appache-2-0/71045 "2006-02-21T02:06:21Z")

</div>

I need to know how to set Ruby on Rails working with Apache web server. It is better to developer a “hello world” application. I do not know how to make RoR structure on Apache server.Thanks Mark

---

## [If statement and if modifier not equivalent?](https://www.ruby-forum.com/t/if-statement-and-if-modifier-not-equivalent/70424)

<div class="topic-metadata">

**Author:** [@elucify](https://www.ruby-forum.com/u/elucify)\
**Replies:** 8\
**Last updated:** [February 21, 2006, 1:45am UTC](https://www.ruby-forum.com/t/if-statement-and-if-modifier-not-equivalent/70424 "2006-02-21T01:45:00Z")

</div>

I was under the impression that the if modifier and the if statememt were equivalent, but for the following code calling A.test raises an exception, while calling A.test2 succeeds. This is with Ruby 1.8.4. class A d…

---

## [Re: DB2 Driver on RHEL 4 x86\_64](https://www.ruby-forum.com/t/re-db2-driver-on-rhel-4-x86-64/54021)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 5\
**Last updated:** [February 21, 2006, 1:04am UTC](https://www.ruby-forum.com/t/re-db2-driver-on-rhel-4-x86-64/54021 "2006-02-21T01:04:43Z")

</div>

FWIW, I’m using DB2 8.1, and have set DB2DIR=/opt/IBM/db2/V8.1 ; I’m pretty sure the path is correct, and I’m installing as root. I’m trying to install from ruby-db2-0.4.4 Is your Ruby 32 or 64 bit (i.e. what doe…

---

## [Making my internal speaker beep](https://www.ruby-forum.com/t/making-my-internal-speaker-beep/54019)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 6\
**Last updated:** [February 21, 2006, 1:04am UTC](https://www.ruby-forum.com/t/making-my-internal-speaker-beep/54019 "2006-02-21T01:04:43Z")

</div>

Hello. I’m trying to execute a beep on my computer with ruby as an alert, but I can’t seem to get it to work. I’ve looked online and I have this. require “Win32API” def beep o = Win32API.new(“kernel32”,“Beep”,%w(i i…

---

## [Unexpected syntax error](https://www.ruby-forum.com/t/unexpected-syntax-error/70649)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 4\
**Last updated:** [February 21, 2006, 12:58am UTC](https://www.ruby-forum.com/t/unexpected-syntax-error/70649 "2006-02-21T00:58:34Z")

</div>

$ ruby -v ruby 1.8.4 (2005-12-24) \[powerpc-darwin8.3.0\] Example to illustrate the problem def foo1 p (1…10).method(:each) end def foo2() p((1…10).method(:each)) end def foo3() p (1…10).method(:each) end foo1 #…

---

## [My "ri" died!](https://www.ruby-forum.com/t/my-ri-died/71081)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 0\
**Last updated:** [February 21, 2006, 12:19am UTC](https://www.ruby-forum.com/t/my-ri-died/71081 "2006-02-21T00:19:02Z")

</div>

Hello, Without any real explanation, all of the sudden, my “ri” died: $ ri dyld: NSLinkModule() error dyld: Symbol not found: \_st\_init\_numtable Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/ syck.bun…

---

## [How to pass a group of arguments?](https://www.ruby-forum.com/t/how-to-pass-a-group-of-arguments/54005)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 9\
**Last updated:** [February 21, 2006, 12:06am UTC](https://www.ruby-forum.com/t/how-to-pass-a-group-of-arguments/54005 "2006-02-21T00:06:41Z")

</div>

I want to use a function which expects three arguments GL.Scale(2.0, 0.4, 1.0); I assumed I could put the parameters in an array scale=\[2.0, 0.4, 1.0\] pass it to an object def initialize(scale) @scale = scale end …

---

## [Pandora Early Beta Program](https://www.ruby-forum.com/t/pandora-early-beta-program/70527)

<div class="topic-metadata">

**Author:** [@Julian\_ISKamil](https://www.ruby-forum.com/u/Julian_ISKamil)\
**Replies:** 10\
**Last updated:** [February 20, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/pandora-early-beta-program/70527 "2006-02-20T23:54:27Z")

</div>

I am happy to announce the Pandora Early Beta Program which will allow a limited number of participants to access Pandora 0.3 code next week in order to test its general usability. Please read more about the program …

---

## [Openssl library?](https://www.ruby-forum.com/t/openssl-library/54022)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 6\
**Last updated:** [February 20, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/openssl-library/54022 "2006-02-20T23:08:22Z")

</div>

Hi, Where I work we have an Ubuntu server. I installed Ruby by compiling the 1.8.4 sources. According to the standard library documentation at RDoc Documentation, the openssl library should be included in the standar…

---

## [Camping error](https://www.ruby-forum.com/t/camping-error/71042)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 0\
**Last updated:** [February 20, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/camping-error/71042 "2006-02-20T23:02:01Z")

</div>

Trying to learn to do cool and interesting. But failing at it. Any ideas? The camping.rb is just a horrible condensed mash otherwise I would post the significant lines of code from the file, here is my error. C:\\ruby…

---

## [Yaml & SortKeys in 1.8.4](https://www.ruby-forum.com/t/yaml-sortkeys-in-1-8-4/71001)

<div class="topic-metadata">

**Author:** [@Ron\_M](https://www.ruby-forum.com/u/Ron_M)\
**Replies:** 1\
**Last updated:** [February 20, 2006, 10:23pm UTC](https://www.ruby-forum.com/t/yaml-sortkeys-in-1-8-4/71001 "2006-02-20T22:23:25Z")

</div>

IIRC, in a previous version, I was able to make more human-friendly YAML using the :SortKeys option as shown below. Since upgrading to 1.8.4 the keys seem not to be sorted anymore. Has the way of doing this changed? …

---

## [Segmentation fault with OneClickInstaller 1.8.4](https://www.ruby-forum.com/t/segmentation-fault-with-oneclickinstaller-1-8-4/70606)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 2\
**Last updated:** [February 20, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/segmentation-fault-with-oneclickinstaller-1-8-4/70606 "2006-02-20T16:15:02Z")

</div>

Hi, all. I am using Stemmer4r library in my application. And it work perfect on 1.8.2-15 (as you gess I am under Windows) But after upgrading ruby to 184 I start getting \[BUG\] Segmentation fault in my application in…

---

## [Subversion 1.3.0 released](https://www.ruby-forum.com/t/subversion-1-3-0-released/51526)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 6\
**Last updated:** [February 20, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/subversion-1-3-0-released/51526 "2006-02-20T16:05:57Z")

</div>

Hi, Subversion 1.3.0 is released: http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=42941 All functions of Subversion can be used with Ruby from this release. There are some known bugs, little memory ma…

---

## [Site is down](https://www.ruby-forum.com/t/site-is-down/70864)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 20, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/site-is-down/70864 "2006-02-20T15:32:37Z")

</div>

This is what is displayed: Routing Error Recognition failed for “/welcome/main”

---

## [Port of Perl's Parse::AFP?](https://www.ruby-forum.com/t/port-of-perls-parse-afp/53869)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 3\
**Last updated:** [February 20, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/port-of-perls-parse-afp/53869 "2006-02-20T15:20:32Z")

</div>

Has anyone had the need to port the Perl library Parse::AFP to Ruby? I’m trying to use the Perl version right now and I’m having some nasty memory usage issues (iterating through a 21MB AFP file consumes over 1GB of R…

---

## [Can not access constants from Time module](https://www.ruby-forum.com/t/can-not-access-constants-from-time-module/70776)

<div class="topic-metadata">

**Author:** [@akbarhome](https://www.ruby-forum.com/u/akbarhome)\
**Replies:** 3\
**Last updated:** [February 20, 2006, 2:28pm UTC](https://www.ruby-forum.com/t/can-not-access-constants-from-time-module/70776 "2006-02-20T14:28:33Z")

</div>

Hi, I want to know how many days a month has. So I lookup here: http://www.ruby-doc.org/core/classes/Time.html CommonYearMonthDays and LeapYearMonthDays constants do what I need. But I cannot access them. $ irb irb…

---

## [Microsoft Access Automation](https://www.ruby-forum.com/t/microsoft-access-automation/54012)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 2\
**Last updated:** [February 20, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/microsoft-access-automation/54012 "2006-02-20T13:28:14Z")

</div>

Hey everyone I struggled a bit on trying to get data out of an Access database using Ruby, so I thought I’d share the results here in case someone else needs this. I found OLEDB automation to be the easiest method. E…

---

## [RUBY :: Unit test](https://www.ruby-forum.com/t/ruby-unit-test/70820)

<div class="topic-metadata">

**Author:** [@Squeak\_S](https://www.ruby-forum.com/u/Squeak_S)\
**Replies:** 1\
**Last updated:** [February 20, 2006, 11:39am UTC](https://www.ruby-forum.com/t/ruby-unit-test/70820 "2006-02-20T11:39:21Z")

</div>

Hi, I’m new with ruby. Where can I find some examples about unit testing with ruby ? Best Regards W.

---

## [Ruby TK GUI question](https://www.ruby-forum.com/t/ruby-tk-gui-question/102539)

<div class="topic-metadata">

**Author:** [@rubyman](https://www.ruby-forum.com/u/rubyman)\
**Replies:** 2\
**Last updated:** [February 20, 2006, 10:56am UTC](https://www.ruby-forum.com/t/ruby-tk-gui-question/102539 "2006-02-20T10:56:50Z")

</div>

Hi, I am writing a Ruby GUI TK application where the top-most portion of the screen is a line of static menu buttons. I would like the remaining lower portion of the screen to be dynamic - as an example, one of the t…

---

## [Ruby Method Lookup Flow](https://www.ruby-forum.com/t/ruby-method-lookup-flow/70379)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 5\
**Last updated:** [February 20, 2006, 6:49am UTC](https://www.ruby-forum.com/t/ruby-method-lookup-flow/70379 "2006-02-20T06:49:26Z")

</div>

I sat down to diagram Ruby’s object model in something better than ascii, and ended up getting confused on how to label ‘objects’ or ‘spaces’ where methods lived. So instead, I diagrammed\[1\] the flow of how method loo…

---

## [Ruby Object Graph visualizer](https://www.ruby-forum.com/t/ruby-object-graph-visualizer/70730)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 20, 2006, 6:43am UTC](https://www.ruby-forum.com/t/ruby-object-graph-visualizer/70730 "2006-02-20T06:43:22Z")

</div>

Any pointers to a tool to generate some type of object (dependency) graph, for Ruby classes or objects (perhaps reading ObjectSpace). Something like Order Customer Name Address Products Product

---

## [Login script](https://www.ruby-forum.com/t/login-script/70689)

<div class="topic-metadata">

**Author:** [@jeisma](https://www.ruby-forum.com/u/jeisma)\
**Replies:** 1\
**Last updated:** [February 20, 2006, 4:29am UTC](https://www.ruby-forum.com/t/login-script/70689 "2006-02-20T04:29:49Z")

</div>

hello! on windows 2003. id like to use ruby to process my login script. how do you read all mapped drives, map a drive or disconnect a mapped drive with ruby? can someone point me to any documentation with regards to…

---

## [Maximum number of module methods?](https://www.ruby-forum.com/t/maximum-number-of-module-methods/53974)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 11\
**Last updated:** [February 20, 2006, 3:02am UTC](https://www.ruby-forum.com/t/maximum-number-of-module-methods/53974 "2006-02-20T03:02:11Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a limit on how many methods you can define for a module? I’m getting a SystemStackError when defining three or more module methods using rb\_define\_module\_functio…

---

## [Finding out if a Mysql database contains a certain table](https://www.ruby-forum.com/t/finding-out-if-a-mysql-database-contains-a-certain-table/53991)

<div class="topic-metadata">

**Author:** [@ngw](https://www.ruby-forum.com/u/ngw)\
**Replies:** 3\
**Last updated:** [February 20, 2006, 2:01am UTC](https://www.ruby-forum.com/t/finding-out-if-a-mysql-database-contains-a-certain-table/53991 "2006-02-20T02:01:46Z")

</div>

Hi \*, I need to find out if a MySQL db contains a certain table, if not I have to create it. I’m using the SHOW TABLES instruction that returns a Mysql::Result object, but after that I’m stuck, I don’t know how to pr…

---

## [Odd break behavior?](https://www.ruby-forum.com/t/odd-break-behavior/70105)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 5\
**Last updated:** [February 20, 2006, 1:52am UTC](https://www.ruby-forum.com/t/odd-break-behavior/70105 "2006-02-20T01:52:36Z")

</div>

Run the code snippet below: class A def outer inner do break end end def inner while true yield end puts “Should never appear” end end \[‘something’\].each do A.new.outer puts “1” end A.new.outer puts “2…

---

## [Passing a proc as block to a method from a C extension](https://www.ruby-forum.com/t/passing-a-proc-as-block-to-a-method-from-a-c-extension/70135)

<div class="topic-metadata">

**Author:** [@Dominik\_B](https://www.ruby-forum.com/u/Dominik_B)\
**Replies:** 2\
**Last updated:** [February 20, 2006, 1:49am UTC](https://www.ruby-forum.com/t/passing-a-proc-as-block-to-a-method-from-a-c-extension/70135 "2006-02-20T01:49:34Z")

</div>

Hi, I am looking for a way to do the equivalent of the following ruby function in a C extension: def foo(my\_proc) bar(&my\_proc) end (and it should also work if bar is instance\_eval or module\_eval) I couldn’t find…

---

## [Facets units not working](https://www.ruby-forum.com/t/facets-units-not-working/70600)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 2\
**Last updated:** [February 20, 2006, 1:00am UTC](https://www.ruby-forum.com/t/facets-units-not-working/70600 "2006-02-20T01:00:55Z")

</div>

I tried to give Units a try to find out the date difference between two days, and ran into this: irb(main):001:0\> require ‘facet/units’ Errno::ENOENT: No such file or directory /usr/share/calibre/units/standard.yam…

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

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