# Ruby

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

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

---

## [Comparison operations in case statements](https://www.ruby-forum.com/t/comparison-operations-in-case-statements/52475)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 1\
**Last updated:** [January 14, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/comparison-operations-in-case-statements/52475 "2006-01-14T22:34:41Z")

</div>

This looks kind of cute, as a way to mix class-matching tests with comparison operator tests in case statements. Too bad it’s not really practical (the commented out caching may help a bit, but may also use too much m…

---

## [Ruby-GetText-Package-1.1.1](https://www.ruby-forum.com/t/ruby-gettext-package-1-1-1/52459)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [January 14, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-1-1/52459 "2006-01-14T16:30:26Z")

</div>

Hi, Ruby-GetText-Package-1.1.1 is now available. Changes Bugfixes. Added Greek locale by damphyr. Support tests for Ruby on Rails. Thanks to: Kazuhiro NISHIYAMA, Nick S., damphyr, Karel M… Screenshots in 10 langua…

---

## [Emacs syntax highlighting error](https://www.ruby-forum.com/t/emacs-syntax-highlighting-error/95083)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 1\
**Last updated:** [January 14, 2006, 2:56am UTC](https://www.ruby-forum.com/t/emacs-syntax-highlighting-error/95083 "2006-01-14T02:56:40Z")

</div>

I am getting an error in GNU Emacs with ruby syntax highlighting. \<\<\< CODE \>\>\> foo = “’?” def blah end \<\<\< CODE \>\>\> The highlighting for the string goes on. – Daniel

---

## [Question about require](https://www.ruby-forum.com/t/question-about-require/52403)

<div class="topic-metadata">

**Author:** [@mr\_ra88it](https://www.ruby-forum.com/u/mr_ra88it)\
**Replies:** 5\
**Last updated:** [January 14, 2006, 1:17am UTC](https://www.ruby-forum.com/t/question-about-require/52403 "2006-01-14T01:17:09Z")

</div>

Hello all, I am under the impression that Kernel#require returns false if the argument is already loaded. However, this morning I encountered behavior that confused me. I was trying to require the RedCloth gem, and I…

---

## [Catching exceptions from embedded ruby](https://www.ruby-forum.com/t/catching-exceptions-from-embedded-ruby/52427)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 1\
**Last updated:** [January 14, 2006, 12:16am UTC](https://www.ruby-forum.com/t/catching-exceptions-from-embedded-ruby/52427 "2006-01-14T00:16:39Z")

</div>

I’m embedding Ruby in a C program. If the Ruby program throws an exception, I’d like to catch it and print out the error. How could I do that?

---

## [CGI library for Ruby](https://www.ruby-forum.com/t/cgi-library-for-ruby/52360)

<div class="topic-metadata">

**Author:** [@Salvatore\_S](https://www.ruby-forum.com/u/Salvatore_S)\
**Replies:** 3\
**Last updated:** [January 13, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/cgi-library-for-ruby/52360 "2006-01-13T22:37:06Z")

</div>

Hello! I want to port a web application to Ruby. I know about Ruby on Rails and other powerful frameworks but this project is simple enough and I’m new enough to Ruby that all I want is a reliable CGI library with a …

---

## [Mailing list for Ruby TK](https://www.ruby-forum.com/t/mailing-list-for-ruby-tk/52396)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [January 13, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/mailing-list-for-ruby-tk/52396 "2006-01-13T22:30:36Z")

</div>

Is there a dedicated mailing list for Ruby Tk?

---

## [Dice Roller (#61)](https://www.ruby-forum.com/t/dice-roller-61/95085)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 12\
**Last updated:** [January 13, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/dice-roller-61/95085 "2006-01-13T21:32:22Z")

</div>

My reason for choosing a dice roller is somewhat selfish: I was interested to see how people would solve a problem that required parsing a mini-language. I’ve written lexers and parsers before, years ago, but I wante…

---

## [Availability of Ruby 1.8.4 Windows (One Click Install)](https://www.ruby-forum.com/t/availability-of-ruby-1-8-4-windows-one-click-install/95081)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [January 13, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/availability-of-ruby-1-8-4-windows-one-click-install/95081 "2006-01-13T21:29:19Z")

</div>

1.8.2-15 was the last release of Ruby (Windows One Click Install) in April 2005. Since then there has been an 1.8.3 and 1.8.4 to other platforms. The Windows One Click Install package contained the Ruby product plus …

---

## [Widget-like API for DOM objects?](https://www.ruby-forum.com/t/widget-like-api-for-dom-objects/52395)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [January 13, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/widget-like-api-for-dom-objects/52395 "2006-01-13T20:55:58Z")

</div>

Hi all, Is there something out there that would let me create DOM objects in a more Rubyesque manner? For example, say I want to create a ‘select’ object in a web page. I’d like an API something along these lines: …

---

## [Nothern VA RUG to meet](https://www.ruby-forum.com/t/nothern-va-rug-to-meet/52333)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 24\
**Last updated:** [January 13, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/nothern-va-rug-to-meet/52333 "2006-01-13T20:16:18Z")

</div>

January 25…details can be found here: http://www.novarug.org I will be posting an itinerary soon, but we will be showing the app were are working on at InfoEther (Ruby + Flash). Best, Rich

---

## [Calling all Freebsders](https://www.ruby-forum.com/t/calling-all-freebsders/102409)

<div class="topic-metadata">

**Author:** [@dishkuvek](https://www.ruby-forum.com/u/dishkuvek)\
**Replies:** 5\
**Last updated:** [January 13, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/calling-all-freebsders/102409 "2006-01-13T17:19:25Z")

</div>

Quick heads up for any FreeBSD users on list - the FreeBSD ports tree is being bumped to include 1.8.4 Any Day Now (it’s been 1.8.2 for ages). See below if you fancy a preview, the URL has patches you can apply to yo…

---

## [Calling all Freebsders](https://www.ruby-forum.com/t/calling-all-freebsders/52393)

<div class="topic-metadata">

**Author:** [@dishkuvek](https://www.ruby-forum.com/u/dishkuvek)\
**Replies:** 0\
**Last updated:** [January 13, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/calling-all-freebsders/52393 "2006-01-13T16:24:35Z")

</div>

Quick heads up for any FreeBSD users on list - the FreeBSD ports tree is being bumped to include 1.8.4 Any Day Now (it’s been 1.8.2 for ages). See below if you fancy a preview, the URL has patches you can apply to yo…

---

## [Looking up properties and speed](https://www.ruby-forum.com/t/looking-up-properties-and-speed/52219)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 13\
**Last updated:** [January 13, 2006, 4:06pm UTC](https://www.ruby-forum.com/t/looking-up-properties-and-speed/52219 "2006-01-13T16:06:22Z")

</div>

Hi, In Javascript, if one were to use the same property value twice or more, one would store it in a local variable because looking up the property slows things down. Is the situation the same in Ruby? Is there any s…

---

## [Newbie question about multiple assignments](https://www.ruby-forum.com/t/newbie-question-about-multiple-assignments/52266)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 11\
**Last updated:** [January 13, 2006, 3:34pm UTC](https://www.ruby-forum.com/t/newbie-question-about-multiple-assignments/52266 "2006-01-13T15:34:59Z")

</div>

irb(main):091:0\> a=1 =\> 1 irb(main):092:0\> b=2 =\> 2 irb(main):093:0\> a,b=b,a =\> \[2, 1\] irb(main):094:0\> a=1 =\> 1 irb(main):095:0\> b=2 =\> 2 irb(main):096:0\> a, b = b, a = a, b =\> \[2, 1, 2\] …

---

## [ABS |ruby|](https://www.ruby-forum.com/t/abs-ruby/95117)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 3\
**Last updated:** [January 13, 2006, 12:28pm UTC](https://www.ruby-forum.com/t/abs-ruby/95117 "2006-01-13T12:28:17Z")

</div>

Quick question, In math the absolute value is typically the double pipe: |x| = 27 This reminds me stuff like: Stuff.each { |x| puts 'hello '+x } Are these two related in any way? I dont really see why they would b…

---

## [Problem passing parameters to execute sql-query](https://www.ruby-forum.com/t/problem-passing-parameters-to-execute-sql-query/52373)

<div class="topic-metadata">

**Author:** [@davidbe](https://www.ruby-forum.com/u/davidbe)\
**Replies:** 0\
**Last updated:** [January 13, 2006, 10:51am UTC](https://www.ruby-forum.com/t/problem-passing-parameters-to-execute-sql-query/52373 "2006-01-13T10:51:16Z")

</div>

Hi, I’m using Ruby to manipulate data and store it in a (oracle) database (using dbi). One column of the table is a NUMBER(6,2) type – so it accepts floating point values. The SQL-code I want to execute is: @sql\_sch…

---

## [Problems with Zlib::Inflate.inflate](https://www.ruby-forum.com/t/problems-with-zlib-inflate-inflate/52370)

<div class="topic-metadata">

**Author:** [@Chris\_Malek](https://www.ruby-forum.com/u/Chris_Malek)\
**Replies:** 1\
**Last updated:** [January 13, 2006, 8:45am UTC](https://www.ruby-forum.com/t/problems-with-zlib-inflate-inflate/52370 "2006-01-13T08:45:32Z")

</div>

I am running on windows xp and trying to inflate a string and decode it. I am getting a When I try to execute this script I get the following error: deflateBase64.rb:11: uninitialized constant Zlib (NameError) Ruby …

---

## [Tk error](https://www.ruby-forum.com/t/tk-error/95112)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 2\
**Last updated:** [January 13, 2006, 7:02am UTC](https://www.ruby-forum.com/t/tk-error/95112 "2006-01-13T07:02:31Z")

</div>

$ ruby widget /usr/local/lib/ruby/site\_ruby/1.8/tk.rb:3339:in \_symbolkey2str': hash modified (RuntimeError) from /usr/local/lib/ruby/site\_ruby/1.8/tk.rb:3339:ininitialize’ from /usr/local/lib/ruby/site\_ruby/1.8/tk/root…

---

## [Ruby code to send start/stop messages to a RADIUS AAA server](https://www.ruby-forum.com/t/ruby-code-to-send-start-stop-messages-to-a-radius-aaa-server/52357)

<div class="topic-metadata">

**Author:** [@Kenosis](https://www.ruby-forum.com/u/Kenosis)\
**Replies:** 1\
**Last updated:** [January 13, 2006, 5:40am UTC](https://www.ruby-forum.com/t/ruby-code-to-send-start-stop-messages-to-a-radius-aaa-server/52357 "2006-01-13T05:40:28Z")

</div>

Greetings, I’m hoping to find some existing Ruby code to send start/stop messages to a RADIUS AAA server. Found the RADIUSLib in the RAA but it does not appear to support this functionality. THANKS for any help you …

---

## [Ri cross-referencing](https://www.ruby-forum.com/t/ri-cross-referencing/52277)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 2\
**Last updated:** [January 13, 2006, 5:37am UTC](https://www.ruby-forum.com/t/ri-cross-referencing/52277 "2006-01-13T05:37:27Z")

</div>

Hello persons, ri’s help is very handy, but there are no cross-references to related classes/methods other than by chance mention in the text of the method’s/class’s docs. This is especially important when trying to f…

---

## [Ripper status, English docs?](https://www.ruby-forum.com/t/ripper-status-english-docs/61121)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 13, 2006, 4:01am UTC](https://www.ruby-forum.com/t/ripper-status-english-docs/61121 "2006-01-13T04:01:03Z")

</div>

What’s the status of ripper? I thought it was supposed to be in the standard Ruby dist now, but that doesn’t seem to be the case. Are there any English available for Ripper? Phil

---

## [Ruby 1.8.4 with readline support on OSX](https://www.ruby-forum.com/t/ruby-1-8-4-with-readline-support-on-osx/52226)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 6\
**Last updated:** [January 13, 2006, 2:39am UTC](https://www.ruby-forum.com/t/ruby-1-8-4-with-readline-support-on-osx/52226 "2006-01-13T02:39:38Z")

</div>

I tried installing readline (following a how-to for 1.8.4 on OSX) and I get the following: install: you may need to run ldconfig I do not find ldconfig anywhere. Has anyone else gotten this message? Robert

---

## [Looking for better Ruby/Tk references](https://www.ruby-forum.com/t/looking-for-better-ruby-tk-references/50830)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 13\
**Last updated:** [January 13, 2006, 1:39am UTC](https://www.ruby-forum.com/t/looking-for-better-ruby-tk-references/50830 "2006-01-13T01:39:25Z")

</div>

… or better GUI APIs for Ruby. (Primary questions at the bottom) Long Version/Background - Hello all and sorry for the disruption, but I’m mid-stream of learning Ruby and I have some GUIs I want to write. However R…

---

## [Merge two arrays?](https://www.ruby-forum.com/t/merge-two-arrays/95086)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 10\
**Last updated:** [January 13, 2006, 12:41am UTC](https://www.ruby-forum.com/t/merge-two-arrays/95086 "2006-01-13T00:41:59Z")

</div>

Hi all What’s the easiest way to merge two arrays? Thanks a lot, Josh

---

## [Fxri - gems - fxruby](https://www.ruby-forum.com/t/fxri-gems-fxruby/52290)

<div class="topic-metadata">

**Author:** [@kilivor](https://www.ruby-forum.com/u/kilivor)\
**Replies:** 3\
**Last updated:** [January 12, 2006, 11:33pm UTC](https://www.ruby-forum.com/t/fxri-gems-fxruby/52290 "2006-01-12T23:33:15Z")

</div>

I am using Ruby 1.8.2 (2004-12-25) \[i386-mswin32\] on Windows XP. fxri working perfectly before installing Fxruby. Then, after installing, stops working: Am I missing something? The output follows. Thanks a lot. E:\\…

---

## [Fxtable and SEL\_REPLACED?](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078)

<div class="topic-metadata">

**Author:** [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Replies:** 4\
**Last updated:** [January 12, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078 "2006-01-12T22:43:24Z")

</div>

Hi there i’ve been using fxruby 1.4 and it’s very good. one wrinkle though is i’m trying to get an event back from a table after i’ve entered data into a cell and don’t find any events that do the job by perusing the …

---

## [Important Algorithm Finally Ported](https://www.ruby-forum.com/t/important-algorithm-finally-ported/52304)

<div class="topic-metadata">

**Author:** [@Hampton](https://www.ruby-forum.com/u/Hampton)\
**Replies:** 7\
**Last updated:** [January 12, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/important-algorithm-finally-ported/52304 "2006-01-12T22:07:05Z")

</div>

After months of work, gruelling hours, and a nice cup of coffee, the world’s most famous (and infamous) algorithm has been ported to the ruby language! {applause} Thank you, thank you. The Slim Shady algorithm is a …

---

## [Hash in hash, iterating the members](https://www.ruby-forum.com/t/hash-in-hash-iterating-the-members/52269)

<div class="topic-metadata">

**Author:** [@Depili](https://www.ruby-forum.com/u/Depili)\
**Replies:** 5\
**Last updated:** [January 12, 2006, 8:42pm UTC](https://www.ruby-forum.com/t/hash-in-hash-iterating-the-members/52269 "2006-01-12T20:42:01Z")

</div>

I’m quite new to ruby and I’m learning with ruby on rails, but I have hit a brick wall, because I want to parse several fields from a web form which give the same data in a loop and maintaining the order from the web …

---

## [Question about using DISTINCT in ActiveRecord find method](https://www.ruby-forum.com/t/question-about-using-distinct-in-activerecord-find-method/52309)

<div class="topic-metadata">

**Author:** [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Replies:** 1\
**Last updated:** [January 12, 2006, 7:44pm UTC](https://www.ruby-forum.com/t/question-about-using-distinct-in-activerecord-find-method/52309 "2006-01-12T19:44:33Z")

</div>

Hi, Am relatively new to the RoR world. My question is quite simple. I have a query like such: shipmentNumbers = Order.find\_by\_sql(\[“select distinct s.id from orders o, line\_items li, shipment\_lines sl, shipments s w…

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

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