# Ruby

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

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

---

## [Re: How to speed up ruby and make it as fast as possible](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98432)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [July 14, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98432 "2006-07-14T19:10:57Z")

</div>

Your misrepresentations of my position and attacks on me are unbecoming. Jamal

---

## [\[ANN\] ruby-debug 0.1.3](https://www.ruby-forum.com/t/ann-ruby-debug-0-1-3/98134)

<div class="topic-metadata">

**Author:** [@kent](https://www.ruby-forum.com/u/kent)\
**Replies:** 13\
**Last updated:** [July 14, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/ann-ruby-debug-0-1-3/98134 "2006-07-14T18:50:22Z")

</div>

Hello Everyone, I’m pleasant to announce the release of ruby-debug 0.1.3. If you think that ruby-breakpoint is too limited for your needs and debug.rb brings your application to its knees, you might find this small e…

---

## [How to pack/unpack nested structures?](https://www.ruby-forum.com/t/how-to-pack-unpack-nested-structures/98123)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 2\
**Last updated:** [July 14, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/how-to-pack-unpack-nested-structures/98123 "2006-07-14T18:00:54Z")

</div>

I am accessing the Win32 API from Ruby, and am having trouble dealing with structures that nest structures. How should I pack/unpack these objects? Ruby/DL looks like it would give me a hand but I’m not sure how to us…

---

## [Recursion and Ruby](https://www.ruby-forum.com/t/recursion-and-ruby/98225)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 29\
**Last updated:** [July 14, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/recursion-and-ruby/98225 "2006-07-14T18:00:41Z")

</div>

As a practice to learn ruby I tried to create a recursive program (Fibonacci sequence), as a step up from “hello world”, but I get a stack level too deap error, any ideas what I am doing wrong? def fib ( n ) if n ==…

---

## [Re: How to speed up ruby and make it as fast as possible](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98426)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 0\
**Last updated:** [July 14, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98426 "2006-07-14T17:57:15Z")

</div>

\-----Original Message----- From: Kent S. \[mailto:removed\_email\_address@domain.invalid\] Sent: Friday, July 14, 2006 11:13 AM I find this attitude is quite amazing. We all know that Ruby is not a best language in term…

---

## [A newbie would like some code criticism, please](https://www.ruby-forum.com/t/a-newbie-would-like-some-code-criticism-please/97361)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 13\
**Last updated:** [July 14, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/a-newbie-would-like-some-code-criticism-please/97361 "2006-07-14T17:57:04Z")

</div>

I’m learning Ruby and I’d like some criticism on a program that I wrote. It interfaces with iTunes and runs through all the songs, (reasonably) ensuring proper title capitalization. It’s a small program and I would h…

---

## [File::FNM\_CASEFOLD doesn't work for Dir.glob?](https://www.ruby-forum.com/t/file-fnm-casefold-doesnt-work-for-dir-glob/98408)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [July 14, 2006, 5:46pm UTC](https://www.ruby-forum.com/t/file-fnm-casefold-doesnt-work-for-dir-glob/98408 "2006-07-14T17:46:17Z")

</div>

It’s no fun to have to do: Dir.glob(’\[fF\]\[oO\]\[oO\]\[dD\]\[iI\]\[rR\]/\*’) That makes two oddiites between File.fnmatch? and Dir.glob. The other is that. File.fnmatch? doesn’t support \*\*. Wouldn’t it be better if these two fu…

---

## [How to use Plist?](https://www.ruby-forum.com/t/how-to-use-plist/98381)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [July 14, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/how-to-use-plist/98381 "2006-07-14T16:11:55Z")

</div>

i try to use the gem plist by : #!/usr/bin/env ruby require ‘plist’ plist=Plist.parse\_xml(my\_info\_path) and i get : NameError: uninitialized constant Plist how do i initialize this constant, i thought it was done i…

---

## [ODBC Database Connectivity](https://www.ruby-forum.com/t/odbc-database-connectivity/94357)

<div class="topic-metadata">

**Author:** [@alan](https://www.ruby-forum.com/u/alan)\
**Replies:** 6\
**Last updated:** [July 14, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/odbc-database-connectivity/94357 "2006-07-14T15:09:21Z")

</div>

Hi, I am having such hard time to connect to a ODBC data source. (Windows XP) I have C# and ADO.NET background and I am shocked when I see there is so little database connectivity support for Ruby! Am I missing some…

---

## [Ruby on OpenVMS](https://www.ruby-forum.com/t/ruby-on-openvms/98236)

<div class="topic-metadata">

**Author:** [@ollin](https://www.ruby-forum.com/u/ollin)\
**Replies:** 3\
**Last updated:** [July 14, 2006, 2:48pm UTC](https://www.ruby-forum.com/t/ruby-on-openvms/98236 "2006-07-14T14:48:15Z")

</div>

Hi all interested! Does anybody have some experience with Ruby on OpenVMS? e.g. link to document describing differenies for Ruby on this platform … for example quote and single quote … and other differences. ollin

---

## [Tls?](https://www.ruby-forum.com/t/tls/98310)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [July 14, 2006, 1:59pm UTC](https://www.ruby-forum.com/t/tls/98310 "2006-07-14T13:59:48Z")

</div>

Hi, I’m creating a ruby jabber client (I know there’s a library for this, but I want to do it myself) and need to establish a tls connection to the server, however I can’t find a module to do this with. Can anyone su…

---

## [Prototype-0.1.0](https://www.ruby-forum.com/t/prototype-0-1-0/98205)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [July 14, 2006, 1:10pm UTC](https://www.ruby-forum.com/t/prototype-0-1-0/98205 "2006-07-14T13:10:27Z")

</div>

NAME prototype.rb URIS http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ SYNOPSIS prototype.rb implements the prototype design pattern http://en.wikipedia.org/wiki/Prototype-based\_pr…

---

## [Return parsed object from REXML::StreamListener](https://www.ruby-forum.com/t/return-parsed-object-from-rexml-streamlistener/98390)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 14, 2006, 10:37am UTC](https://www.ruby-forum.com/t/return-parsed-object-from-rexml-streamlistener/98390 "2006-07-14T10:37:07Z")

</div>

I’ve successfully created a Listener class that creates a number of objects and can access these using methods within the Listener class but have no idea how to get at the objects once the Listener has finished parsin…

---

## [Receiving faxes and interacting with them in ruby?](https://www.ruby-forum.com/t/receiving-faxes-and-interacting-with-them-in-ruby/98382)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [July 14, 2006, 10:33am UTC](https://www.ruby-forum.com/t/receiving-faxes-and-interacting-with-them-in-ruby/98382 "2006-07-14T10:33:22Z")

</div>

I wasn’t sure if anyone here knew how to interact with a fax service via ruby, but if you have any insight on this I would greatly appreciate it. Basically what I’m looking to do is…when a fax is sent to a fax number…

---

## [Good way to write a C extension to Ruby?](https://www.ruby-forum.com/t/good-way-to-write-a-c-extension-to-ruby/97968)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 9\
**Last updated:** [July 14, 2006, 8:56am UTC](https://www.ruby-forum.com/t/good-way-to-write-a-c-extension-to-ruby/97968 "2006-07-14T08:56:52Z")

</div>

Hi, Whats a good way to write a C extension to Ruby? I’m aware that there’s a chapter about in the Pickaxe book (I think), and will be checking that out, and also SWIG, if it supports Ruby. But looking for replies fr…

---

## [FOSCON II: The Ruby Rodeo!](https://www.ruby-forum.com/t/foscon-ii-the-ruby-rodeo/98369)

<div class="topic-metadata">

**Author:** [@philthompson](https://www.ruby-forum.com/u/philthompson)\
**Replies:** 0\
**Last updated:** [July 14, 2006, 6:35am UTC](https://www.ruby-forum.com/t/foscon-ii-the-ruby-rodeo/98369 "2006-07-14T06:35:36Z")

</div>

Last year FOSCON was a big hit… So mark your calendars, get your transportation reservations and make sure you joing us for: FOSCON II: The Ruby Rodeo at FreeGeek on Wednesday July 26 from 1930-2200+ in Portland, Ore…

---

## ["Self" Reference](https://www.ruby-forum.com/t/self-reference/98345)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 3\
**Last updated:** [July 14, 2006, 5:49am UTC](https://www.ruby-forum.com/t/self-reference/98345 "2006-07-14T05:49:06Z")

</div>

Is it possible to define new classes that behave like standard datatypes when an instance is referred to? For example: class ListOfBuddies def initialize self = \[\] self.push(Guy.new(name)) end end buddy\_list = Li…

---

## [Installing gems for a single user](https://www.ruby-forum.com/t/installing-gems-for-a-single-user/98290)

<div class="topic-metadata">

**Author:** [@jennyw](https://www.ruby-forum.com/u/jennyw)\
**Replies:** 2\
**Last updated:** [July 14, 2006, 4:06am UTC](https://www.ruby-forum.com/t/installing-gems-for-a-single-user/98290 "2006-07-14T04:06:51Z")

</div>

I’m used to using gems locally where I can install them systemwide. But in a shared hosting environment, where there might be several systemwide gems installed by the host, there may be gems I want to install just in …

---

## [Equivalent of attr\_accessor for class variables?](https://www.ruby-forum.com/t/equivalent-of-attr-accessor-for-class-variables/98333)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 9\
**Last updated:** [July 14, 2006, 3:44am UTC](https://www.ruby-forum.com/t/equivalent-of-attr-accessor-for-class-variables/98333 "2006-07-14T03:44:56Z")

</div>

It is simple to set a class constant in ruby: class Foo CLASS\_CONSTANT = “never to change” end And accessed like this: Foo::CLASS\_CONSTANT However, I’d like to be able to create a class variable that is easily acc…

---

## [Initialize a variable in an extended class](https://www.ruby-forum.com/t/initialize-a-variable-in-an-extended-class/98355)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 6\
**Last updated:** [July 14, 2006, 3:44am UTC](https://www.ruby-forum.com/t/initialize-a-variable-in-an-extended-class/98355 "2006-07-14T03:44:48Z")

</div>

Interesting problem. There is undoubtedly much to will learn from suggested solutions. Here it is: I’m working with xhtml data, and want to extend the REXML Element type with an inline? method that returns true when …

---

## [Re: prototype design pattern](https://www.ruby-forum.com/t/re-prototype-design-pattern/98110)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 6\
**Last updated:** [July 14, 2006, 3:19am UTC](https://www.ruby-forum.com/t/re-prototype-design-pattern/98110 "2006-07-14T03:19:24Z")

</div>

regards. -a Hm, it’s not at http://wiki.rubygarden.org/Ruby/page/show/ExampleDesignPatternsInRuby Anyway, it looks to me like some combination of .clone plus a factory. I’m not sure there’s any real savings in Rub…

---

## [Problem with HTree installation](https://www.ruby-forum.com/t/problem-with-htree-installation/98360)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 0\
**Last updated:** [July 14, 2006, 2:48am UTC](https://www.ruby-forum.com/t/problem-with-htree-installation/98360 "2006-07-14T02:48:48Z")

</div>

I added HTree to my installation at /my/ruby/1.8.4/bin/ruby The installation seemed to go fine. Afterwards, I found the htree.rb and htree/ directory in site\_ruby/1.8, as expected. But the require statement (require…

---

## [Zerenity 0.8](https://www.ruby-forum.com/t/zerenity-0-8/98350)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 2\
**Last updated:** [July 14, 2006, 2:02am UTC](https://www.ruby-forum.com/t/zerenity-0-8/98350 "2006-07-14T02:02:15Z")

</div>

= Zerenity == Version 0.8 == Author Farrel L. http://www.lifson.info http://www.aimred.com == Synopsis Zerenity is an almost clone of {Zenity}\[Best Open Source Mac Software Development Software 2023\] for Ruby. It …

---

## [Prototype-0.2.0](https://www.ruby-forum.com/t/prototype-0-2-0/98354)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 14, 2006, 1:48am UTC](https://www.ruby-forum.com/t/prototype-0-2-0/98354 "2006-07-14T01:48:23Z")

</div>

NAME prototype.rb URIS http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ SYNOPSIS prototype.rb facilitates a prototype based coding style http://en.wikipedia.org/wiki/Prototype-based…

---

## [I am new to Ruby](https://www.ruby-forum.com/t/i-am-new-to-ruby/97752)

<div class="topic-metadata">

**Author:** [@shakeel](https://www.ruby-forum.com/u/shakeel)\
**Replies:** 2\
**Last updated:** [July 14, 2006, 1:32am UTC](https://www.ruby-forum.com/t/i-am-new-to-ruby/97752 "2006-07-14T01:32:42Z")

</div>

For creating web based application with Ruby and back end mysql what things I would b needed. Please if anybody help me. I am first to start work with Ruby. Regards Shakeel

---

## [ActiveRecord alternatives](https://www.ruby-forum.com/t/activerecord-alternatives/98341)

<div class="topic-metadata">

**Author:** [@elriba](https://www.ruby-forum.com/u/elriba)\
**Replies:** 4\
**Last updated:** [July 14, 2006, 1:20am UTC](https://www.ruby-forum.com/t/activerecord-alternatives/98341 "2006-07-14T01:20:11Z")

</div>

Hi, I have a database application running under sybase anywhere SQL server. I would like to develop modules in Ruby to access that database. I started to look at ActiveRecord, but it seems that one requirement is tha…

---

## [Choosing among object/class/module/top-level methods](https://www.ruby-forum.com/t/choosing-among-object-class-module-top-level-methods/98343)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 3\
**Last updated:** [July 14, 2006, 1:00am UTC](https://www.ruby-forum.com/t/choosing-among-object-class-module-top-level-methods/98343 "2006-07-14T01:00:49Z")

</div>

Hi, Rubyists! Whenever I try to make a quick solution program, I stop for a moment to think which approach I should take. Let’s say that you want to make a puzzle-solver (like Sudoku-solver) and it’s made up of one ‘…

---

## [Route plotter for the London Underground network](https://www.ruby-forum.com/t/route-plotter-for-the-london-underground-network/98315)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 2\
**Last updated:** [July 13, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/route-plotter-for-the-london-underground-network/98315 "2006-07-13T22:41:04Z")

</div>

Hi I have a facility which uses css and ajax to perform live plotting of routes between two London underground stations. The css plots are overlayed over a London Underground map, with each station as a hotspot. The …

---

## [Negative Numbers](https://www.ruby-forum.com/t/negative-numbers/98294)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 7\
**Last updated:** [July 13, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/negative-numbers/98294 "2006-07-13T22:14:44Z")

</div>

Hey all, I’m just getting started with Ruby and was wondering if there is a way to translate negative numbers into their positive equals. i.e turning -7 into 7. Thanks for any help.

---

## [Weird behavior of case/when](https://www.ruby-forum.com/t/weird-behavior-of-case-when/98059)

<div class="topic-metadata">

**Author:** [@Nicolas\_DesprSSSSs](https://www.ruby-forum.com/u/Nicolas_DesprSSSSs)\
**Replies:** 4\
**Last updated:** [July 13, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/weird-behavior-of-case-when/98059 "2006-07-13T21:46:19Z")

</div>

I’m getting a very weird result using case/when. $ cat test.rb def test(a) case a.class when Class puts “class” when String puts “string” else puts “else” end end test(Float) test(“hello”) test(42) $ ruby …

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

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