# Ruby

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

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

---

## [Hibernate on Ruby](https://www.ruby-forum.com/t/hibernate-on-ruby/50090)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 8\
**Last updated:** [December 13, 2005, 11:03am UTC](https://www.ruby-forum.com/t/hibernate-on-ruby/50090 "2005-12-13T11:03:50Z")

</div>

Any ideas on using Hibernate OR/M from within Ruby?

---

## [Dynaload-0.2.0](https://www.ruby-forum.com/t/dynaload-0-2-0/99881)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 13, 2005, 7:48am UTC](https://www.ruby-forum.com/t/dynaload-0-2-0/99881 "2005-12-13T07:48:27Z")

</div>

URIS http://raa.ruby-lang.org/project/dynaload/ http://www.codeforpeople.com/lib/ruby/dynaload/ NAME dynaload.rb DESCRIPTION a simple toolset to make dynamic loading of classes and modules easier imagine you have…

---

## [Phoenix.rb : The Phoenix Ruby Users Group](https://www.ruby-forum.com/t/phoenix-rb-the-phoenix-ruby-users-group/50120)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 13, 2005, 6:48am UTC](https://www.ruby-forum.com/t/phoenix-rb-the-phoenix-ruby-users-group/50120 "2005-12-13T06:48:20Z")

</div>

A kickoff meeting of the Phoenix Ruby U. Group has been scheduled for December 19th, 2005, 6:00 PM, at Cyclone Commerce, Inc. Cyclone Commerce Inc 8388 E Hartford Dr # 100 Scottsdale, AZ Google map: http://rubyurl.c…

---

## [Re: How to exit Ruby program properly](https://www.ruby-forum.com/t/re-how-to-exit-ruby-program-properly/50116)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [December 13, 2005, 6:03am UTC](https://www.ruby-forum.com/t/re-how-to-exit-ruby-program-properly/50116 "2005-12-13T06:03:15Z")

</div>

Process.exit is the way to go (or just putting the rest of your logic into the else section of that if statement). There is nothing unclean about the fact that Process.exit raises an exception. The fact that it raises…

---

## [How to catch Timeout::ERROR?](https://www.ruby-forum.com/t/how-to-catch-timeout-error/50106)

<div class="topic-metadata">

**Author:** [@Verestiuc\_Vlad](https://www.ruby-forum.com/u/Verestiuc_Vlad)\
**Replies:** 1\
**Last updated:** [December 13, 2005, 5:39am UTC](https://www.ruby-forum.com/t/how-to-catch-timeout-error/50106 "2005-12-13T05:39:11Z")

</div>

Is there any way to catch Timeout::ERROR exception throw by timeout () ? ====\[cut here\]====== #!/usr/bin/env ruby require ‘open-uri’ require ‘timeout’ begin open(“http://6.6.6.6/”){} rescue =\> e puts e.message …

---

## [Memory Usage](https://www.ruby-forum.com/t/memory-usage/100835)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 5\
**Last updated:** [December 13, 2005, 4:05am UTC](https://www.ruby-forum.com/t/memory-usage/100835 "2005-12-13T04:05:56Z")

</div>

I have a ruby script that reads data from a database, processes the data (long texts) and saves the results back to the database. I works great and at good speed. The problem is that I ran the script on friday and l…

---

## [1.8.4 preview 2](https://www.ruby-forum.com/t/1-8-4-preview-2/50105)

<div class="topic-metadata">

**Author:** [@Gene\_T](https://www.ruby-forum.com/u/Gene_T)\
**Replies:** 0\
**Last updated:** [December 13, 2005, 3:29am UTC](https://www.ruby-forum.com/t/1-8-4-preview-2/50105 "2005-12-13T03:29:53Z")

</div>

http://www.ruby-lang.org/ja/ (my Dad’s been pressuring me to re-learn Japanese, i might as well…)

---

## [Rendering charts via rails](https://www.ruby-forum.com/t/rendering-charts-via-rails/50081)

<div class="topic-metadata">

**Author:** [@larry](https://www.ruby-forum.com/u/larry)\
**Replies:** 5\
**Last updated:** [December 13, 2005, 2:59am UTC](https://www.ruby-forum.com/t/rendering-charts-via-rails/50081 "2005-12-13T02:59:51Z")

</div>

Is there a recommended way to render charts from a ruby-based web application like rails? I need a solution that is thread-safe without serializing access to the chart generator. thanks

---

## [Way to combing Hash Definition sans =\> with %w()?](https://www.ruby-forum.com/t/way-to-combing-hash-definition-sans-with-w/50099)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 7\
**Last updated:** [December 13, 2005, 1:32am UTC](https://www.ruby-forum.com/t/way-to-combing-hash-definition-sans-with-w/50099 "2005-12-13T01:32:38Z")

</div>

I have a large amount of text pairs (no spaces inthe text) that I need to turn into a hash. Is there a shorcut that will allow me to create the hash without entering the quotes and arrows? %w(apple bananna orange grap…

---

## [Ruby-gnome2: catching middle clicks on tabs](https://www.ruby-forum.com/t/ruby-gnome2-catching-middle-clicks-on-tabs/50027)

<div class="topic-metadata">

**Author:** [@Clayton\_Smith](https://www.ruby-forum.com/u/Clayton_Smith)\
**Replies:** 6\
**Last updated:** [December 13, 2005, 12:50am UTC](https://www.ruby-forum.com/t/ruby-gnome2-catching-middle-clicks-on-tabs/50027 "2005-12-13T00:50:29Z")

</div>

What I am trying to do is capture the button-press-event when a person middle-clicks on a tab(similar to how Firefox tabs work). As I learned in #gtk+ using the EventBox should be able to do this After a quick scouti…

---

## [How to time the duration of a script](https://www.ruby-forum.com/t/how-to-time-the-duration-of-a-script/50094)

<div class="topic-metadata">

**Author:** [@muychingon](https://www.ruby-forum.com/u/muychingon)\
**Replies:** 2\
**Last updated:** [December 13, 2005, 12:29am UTC](https://www.ruby-forum.com/t/how-to-time-the-duration-of-a-script/50094 "2005-12-13T00:29:21Z")

</div>

If I wanted to find something like the “time” feature on shell… where you can do: time ls and it will tell you how long it took to execute… How would I do this in Ruby or what is the packaged that can do this for me…

---

## [Lib for optional static typing](https://www.ruby-forum.com/t/lib-for-optional-static-typing/49506)

<div class="topic-metadata">

**Author:** [@robert\_kuzelj](https://www.ruby-forum.com/u/robert_kuzelj)\
**Replies:** 28\
**Last updated:** [December 13, 2005, 12:05am UTC](https://www.ruby-forum.com/t/lib-for-optional-static-typing/49506 "2005-12-13T00:05:12Z")

</div>

hi, before i begin a word of warning: if you, after reading this post, feel the almost unbearable urge to answer me; if you feel that my poor soul must be saved from the evil soothing of static typedness; if you thin…

---

## [Equivalent to Perl's Tk::Tiler?](https://www.ruby-forum.com/t/equivalent-to-perls-tk-tiler/49527)

<div class="topic-metadata">

**Author:** [@fkc\_email-news](https://www.ruby-forum.com/u/fkc_email-news)\
**Replies:** 6\
**Last updated:** [December 12, 2005, 10:40pm UTC](https://www.ruby-forum.com/t/equivalent-to-perls-tk-tiler/49527 "2005-12-12T22:40:50Z")

</div>

Hi All: I making arbitrarily large forms and in doing similar in Perl, I’ve used Tk::Tiler, a scrollable frame. I’d just pack my various entries into the form, and set a max size, from which the form would automatic…

---

## [Migration with Dynamic Table Names?](https://www.ruby-forum.com/t/migration-with-dynamic-table-names/50070)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 12, 2005, 9:46pm UTC](https://www.ruby-forum.com/t/migration-with-dynamic-table-names/50070 "2005-12-12T21:46:41Z")

</div>

(This is my first real Ruby/Rails project, so please bare with me…) I am working on a project that, effectively, has the following database structure: A master table: Projects - id - project\_name - etc… Many slav…

---

## [Problems with missing collection method in has\_many relation](https://www.ruby-forum.com/t/problems-with-missing-collection-method-in-has-many-relation/97197)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 12, 2005, 8:43pm UTC](https://www.ruby-forum.com/t/problems-with-missing-collection-method-in-has-many-relation/97197 "2005-12-12T20:43:41Z")

</div>

I have a layered one to many relationship situation that is having some weird problems. I’ve been trying to look for a solution but I can’t seem to find it, or am not certain what keywords I should search on. Okay let…

---

## [Rant 0.5.2](https://www.ruby-forum.com/t/rant-0-5-2/98954)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 0\
**Last updated:** [December 12, 2005, 8:16pm UTC](https://www.ruby-forum.com/t/rant-0-5-2/98954 "2005-12-12T20:16:26Z")

</div>

Rant is a flexible build tool written entirely in Ruby, similar to Rake. == What’s new in this release? Gems created with Ruby 1.8.3 won’t work with other Ruby versions (because of a YAML bug). This no longer affe…

---

## [GC in lambdas?](https://www.ruby-forum.com/t/gc-in-lambdas/98953)

<div class="topic-metadata">

**Author:** [@akoSS](https://www.ruby-forum.com/u/akoSS)\
**Replies:** 3\
**Last updated:** [December 12, 2005, 8:16pm UTC](https://www.ruby-forum.com/t/gc-in-lambdas/98953 "2005-12-12T20:16:25Z")

</div>

hello, someone said in another conversation: also note that lambda will prevent everything in it’s scope from ever being garbage collected. could someone please confirm this? i am also interested to know why GC is…

---

## [Module variables](https://www.ruby-forum.com/t/module-variables/50063)

<div class="topic-metadata">

**Author:** [@akoSS](https://www.ruby-forum.com/u/akoSS)\
**Replies:** 1\
**Last updated:** [December 12, 2005, 8:13pm UTC](https://www.ruby-forum.com/t/module-variables/50063 "2005-12-12T20:13:24Z")

</div>

hello, module MyModule def MyModule.mymethod(var) @var = var end end when module method MyModule.mymethod creates module variable @var, and no class mixes in this module, where is this variable created? modul…

---

## [Test/unit and pp](https://www.ruby-forum.com/t/test-unit-and-pp/50031)

<div class="topic-metadata">

**Author:** [@pgundlach](https://www.ruby-forum.com/u/pgundlach)\
**Replies:** 4\
**Last updated:** [December 12, 2005, 8:04pm UTC](https://www.ruby-forum.com/t/test-unit-and-pp/50031 "2005-12-12T20:04:20Z")

</div>

Hi, given the following program: #!/opt/ruby/1.8/bin/ruby -w require ‘test/unit’ class FooTester \< Test::Unit::TestCase def setup @foo=Array.new @foo \<\< \[:a,:b,\[:c\]\] end def test\_foo assert\_instance\_of Hash,@f…

---

## [Interception method\_added for blocks](https://www.ruby-forum.com/t/interception-method-added-for-blocks/50060)

<div class="topic-metadata">

**Author:** [@robertj](https://www.ruby-forum.com/u/robertj)\
**Replies:** 2\
**Last updated:** [December 12, 2005, 7:40pm UTC](https://www.ruby-forum.com/t/interception-method-added-for-blocks/50060 "2005-12-12T19:40:13Z")

</div>

hi, is it possible to somehow intercept method\_added for defs defined within a block? y = Proc.new { def x end } for example in the code above who gets notfied of the existance of x? ciao robertj

---

## [AJAX in Ruby on Rails](https://www.ruby-forum.com/t/ajax-in-ruby-on-rails/50057)

<div class="topic-metadata">

**Author:** [@charlieuk](https://www.ruby-forum.com/u/charlieuk)\
**Replies:** 2\
**Last updated:** [December 12, 2005, 7:31pm UTC](https://www.ruby-forum.com/t/ajax-in-ruby-on-rails/50057 "2005-12-12T19:31:48Z")

</div>

I’m having some trouble getting AJAX working properly for me in Rails. I’ve tried the example in “Agile Web D. with Rails” on page 391 using form\_remote\_tag(), and instead of updating a like it should, it renders …

---

## [They say I write Ruby like Perl](https://www.ruby-forum.com/t/they-say-i-write-ruby-like-perl/49724)

<div class="topic-metadata">

**Author:** [@slitt](https://www.ruby-forum.com/u/slitt)\
**Replies:** 57\
**Last updated:** [December 12, 2005, 7:13pm UTC](https://www.ruby-forum.com/t/they-say-i-write-ruby-like-perl/49724 "2005-12-12T19:13:09Z")

</div>

Hi all, I wrote some hierarchy handling classes in Node.rb (Node.rb), and I’ve been told I write Ruby in Perl style. In future software, what could I do to write in a more Ruby-like fashion? Thanks SteveT Steve …

---

## [Strange bahaviour of "Set"](https://www.ruby-forum.com/t/strange-bahaviour-of-set/50024)

<div class="topic-metadata">

**Author:** [@thoepfner](https://www.ruby-forum.com/u/thoepfner)\
**Replies:** 1\
**Last updated:** [December 12, 2005, 6:49pm UTC](https://www.ruby-forum.com/t/strange-bahaviour-of-set/50024 "2005-12-12T18:49:06Z")

</div>

Hi, I already mentioned this in another thread, but I think this is of general interest. So sorry, if you read it twice. While working on something involving the “Set” class of the Ruby standard library, I came acros…

---

## [Re: AJAX in Ruby on Rails](https://www.ruby-forum.com/t/re-ajax-in-ruby-on-rails/50056)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 1\
**Last updated:** [December 12, 2005, 6:31pm UTC](https://www.ruby-forum.com/t/re-ajax-in-ruby-on-rails/50056 "2005-12-12T18:31:00Z")

</div>

Hi Charlie, 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…

---

## [Calculating single-digit summands](https://www.ruby-forum.com/t/calculating-single-digit-summands/50003)

<div class="topic-metadata">

**Author:** [@draq](https://www.ruby-forum.com/u/draq)\
**Replies:** 13\
**Last updated:** [December 12, 2005, 6:12pm UTC](https://www.ruby-forum.com/t/calculating-single-digit-summands/50003 "2005-12-12T18:12:56Z")

</div>

I have tried to make an algorithm that finds all possible combinations of single-digit summands for a number. After an afternoon of hard and desperate work I got something inefficient (although it works). Maybe someon…

---

## [How To Turn Off Net::HTTP w/SSL Certificate Warnings?](https://www.ruby-forum.com/t/how-to-turn-off-net-http-w-ssl-certificate-warnings/50050)

<div class="topic-metadata">

**Author:** [@keith2koool](https://www.ruby-forum.com/u/keith2koool)\
**Replies:** 3\
**Last updated:** [December 12, 2005, 5:36pm UTC](https://www.ruby-forum.com/t/how-to-turn-off-net-http-w-ssl-certificate-warnings/50050 "2005-12-12T17:36:49Z")

</div>

Hi, I’ve got a little Ruby script that needs to use SSL but doesn’t really worry about authentication at all. Here’s the relevant code: https = Net::HTTP.new(URL, 443) https.use\_ssl = true data = "" https.star…

---

## [Re: A question about recursive programming](https://www.ruby-forum.com/t/re-a-question-about-recursive-programming/50052)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [December 12, 2005, 4:45pm UTC](https://www.ruby-forum.com/t/re-a-question-about-recursive-programming/50052 "2005-12-12T16:45:36Z")

</div>

temp=arr.delete\_at(arr.length-1) b=all\_sum(arr)+all\_sum(arr).collect{|i| i+temp} end c=\[1,2\] p all\_sum© Error: in \`all\_sum’: stack level too deep (SystemStackError) Can anyone give me some advice? Hmm, the b= li…

---

## [Ruby + yaml = warnings?](https://www.ruby-forum.com/t/ruby-yaml-warnings/50012)

<div class="topic-metadata">

**Author:** [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Replies:** 3\
**Last updated:** [December 12, 2005, 4:31pm UTC](https://www.ruby-forum.com/t/ruby-yaml-warnings/50012 "2005-12-12T16:31:30Z")

</div>

% ruby --version ruby 1.8.3 (2005-09-21) \[i686-linux\] % cat a.rb require ‘yaml’ o = \[ ‘array’, ‘of’, ‘items’ \] o2 = YAML::load( o.to\_yaml ) % ruby -w a.rb (eval):2: warning: method redefined; discarding old taguri …

---

## [Sync.rb difference between Sync::UN, Sync::EX and Sync::SH](https://www.ruby-forum.com/t/sync-rb-difference-between-sync-un-sync-ex-and-sync-sh/49787)

<div class="topic-metadata">

**Author:** [@transfire](https://www.ruby-forum.com/u/transfire)\
**Replies:** 3\
**Last updated:** [December 12, 2005, 3:48pm UTC](https://www.ruby-forum.com/t/sync-rb-difference-between-sync-un-sync-ex-and-sync-sh/49787 "2005-12-12T15:48:00Z")

</div>

In sync.rb what are Sync::UN, Sync::EX and Sync::SH all about? Thanks, T.

---

## [Increasing counter whithin loop?](https://www.ruby-forum.com/t/increasing-counter-whithin-loop/49507)

<div class="topic-metadata">

**Author:** [@clr9.10.randomuser](https://www.ruby-forum.com/u/clr9.10.randomuser)\
**Replies:** 35\
**Last updated:** [December 12, 2005, 1:59pm UTC](https://www.ruby-forum.com/t/increasing-counter-whithin-loop/49507 "2005-12-12T13:59:32Z")

</div>

Hi, a very basic question… I’d like to output the sequence “a b d e”, by testing if the current element is == “b” then skip the next element and continue the loop. The obvious solution doesn’t look rubyish to me, how…

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

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