# Ruby

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

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

---

## [Code Review: ThreadLib](https://www.ruby-forum.com/t/code-review-threadlib/137784)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/code-review-threadlib/137784 "2008-05-26T19:48:17Z")

</div>

atfpt review /shelveset:ThreadLib;REDMOND\\tomat A rough implementation of thread.so. Ignores differences of Ruby Mutex and .NET Monitor for now: Ruby Mutex.lock in not reentrant by the same thread it could be locked/…

---

## [Ruby on Rails position in Dublin City Centre - 50-55K salary](https://www.ruby-forum.com/t/ruby-on-rails-position-in-dublin-city-centre-50-55k-salary/138685)

<div class="topic-metadata">

**Author:** [@hookhead.com](https://www.ruby-forum.com/u/hookhead.com)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-position-in-dublin-city-centre-50-55k-salary/138685 "2008-05-26T18:00:54Z")

</div>

Hi All, I am looking for a software engineer with RoR experience for a Dublin City Centre startup. If you have good java skills and/or some experience in RoR and would like to join a young, vibrant startup, where you…

---

## [Celerity 0.0.3 released](https://www.ruby-forum.com/t/celerity-0-0-3-released/138680)

<div class="topic-metadata">

**Author:** [@TSAlexander\_Lystad](https://www.ruby-forum.com/u/TSAlexander_Lystad)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/celerity-0-0-3-released/138680 "2008-05-26T17:14:11Z")

</div>

Quick note: Celerity 0.0.3 was released today. == 0.0.3 2008-05-26 3 major enhancements: Added support for , , , , , , , , and elements \* Better support for , and elements. They are now accessible fro…

---

## [1.0.div(0.0) vs. 1.0.divmod(0.0)](https://www.ruby-forum.com/t/1-0-div-0-0-vs-1-0-divmod-0-0/137952)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/1-0-div-0-0-vs-1-0-divmod-0-0/137952 "2008-05-26T16:51:46Z")

</div>

ã€€div ã¨ divmod ã®ä»¥ä¸‹ã®æŒ™å‹•ã®ç›¸é•ã¯æ„å›³ã•ã‚ŒãŸã‚‚ã®ã§ã—ã‚‡ã†ã‹ã€‚ irb(main):001:0\> 1.0.div(0.0) FloatDomainError: Infinity from (irb):1:in div' from (irb):1 from /Users/knu/bin/irb-1.9:12:in’ ir…

---

## [Problem with ruby + mysql on windows](https://www.ruby-forum.com/t/problem-with-ruby-mysql-on-windows/138499)

<div class="topic-metadata">

**Author:** [@m4lloc](https://www.ruby-forum.com/u/m4lloc)\
**Replies:** 6\
**Last updated:** [May 26, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-mysql-on-windows/138499 "2008-05-26T15:39:33Z")

</div>

Hello I’m having a problem to conect and use ruby to performe some operations with a mysql database. I downloaded the gem mysql 2.7.3 (win32) and added the windows path with mysql bin and mysql lib entries.When a try …

---

## [Behavoir when a thread dies with the mutex locked](https://www.ruby-forum.com/t/behavoir-when-a-thread-dies-with-the-mutex-locked/138669)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/behavoir-when-a-thread-dies-with-the-mutex-locked/138669 "2008-05-26T15:33:52Z")

</div>

e$B1sF#$G$9!#e(B mutex e$B$r%m%C%/$7$?$^$^%9%l%C%I$,;\`$s$@\>l9g$N5sF0$K$D$$$F!"e(B 2 e$BE@\<ALd$G$9!#e(B ruby 1.8 e$B$G$O0J2\<$N%W%m%0%i%\`$,@5\>o=N;$7$^$9$,!"e(B ruby 1.9 e$B$G$O8G$^$j$^$9!#$3$N0c$$$O0U?^E$G$7$g$&$+!#e(…

---

## [FireWatir: get the text from a frame](https://www.ruby-forum.com/t/firewatir-get-the-text-from-a-frame/138665)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/firewatir-get-the-text-from-a-frame/138665 "2008-05-26T15:08:40Z")

</div>

I’m trying to get the text shown in a frame using the text porperty in firewatir that works for a no-frame window but it doesn’t work for a frame… A full example using watir and firewatir: require ‘firewatir’ requir…

---

## [Need your recommendations for TCP Server/Client design](https://www.ruby-forum.com/t/need-your-recommendations-for-tcp-server-client-design/138523)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 7\
**Last updated:** [May 26, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/need-your-recommendations-for-tcp-server-client-design/138523 "2008-05-26T14:51:15Z")

</div>

Team, Let me begin by stating that I am still a Ruby novice, although I’ve written some simple appls (sudoku, TCP and UDP servers and other mundane appls) with the input of the team. I worked with AIX and I support…

---

## [Ruby math parenthesis wierdness](https://www.ruby-forum.com/t/ruby-math-parenthesis-wierdness/138609)

<div class="topic-metadata">

**Author:** [@Tom\_Verbeure](https://www.ruby-forum.com/u/Tom_Verbeure)\
**Replies:** 5\
**Last updated:** [May 26, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/ruby-math-parenthesis-wierdness/138609 "2008-05-26T14:48:18Z")

</div>

All, The code below: m = 5\*( (1.0) - (1.0/2.0) ) puts m m = 5\*( (1.0) - (1.0/2.0) ) puts m prints out: bash-3.2$ ./run.rb -2.5 2.5 The second result is what I expect, but I don’t understand the first resu…

---

## [\#plural? or #singular?](https://www.ruby-forum.com/t/plural-or-singular/138526)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 20\
**Last updated:** [May 26, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/plural-or-singular/138526 "2008-05-26T13:17:15Z")

</div>

Does anybody know an easy way to test if a word is singular or plural – something a bit smarter than just checking if there is an s on the end! Thanks, ~ Mark

---

## [Briefest method of generating a list of random numbers?](https://www.ruby-forum.com/t/briefest-method-of-generating-a-list-of-random-numbers/138643)

<div class="topic-metadata">

**Author:** [@bor\_S](https://www.ruby-forum.com/u/bor_S)\
**Replies:** 10\
**Last updated:** [May 26, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/briefest-method-of-generating-a-list-of-random-numbers/138643 "2008-05-26T13:13:07Z")

</div>

Hi all, I wondered if there was a more compact method of generating things like a random string, or a random list of numbers than I’m using now (using ruby 1.9.0-1) array = \[\] ; 100.times {array \<\< rand} string = “”…

---

## [Not able to send request to radiotime webservice](https://www.ruby-forum.com/t/not-able-to-send-request-to-radiotime-webservice/138651)

<div class="topic-metadata">

**Author:** [@frnd4gan](https://www.ruby-forum.com/u/frnd4gan)\
**Replies:** 4\
**Last updated:** [May 26, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/not-able-to-send-request-to-radiotime-webservice/138651 "2008-05-26T12:36:06Z")

</div>

Hello All, am new to RoR,I want to convert one of my PHP application to RoR. I want to sent request search\_ByQuery method of radiotime webservice ( http://wiki.radiotime.com/doku.php?id=dev:doc:webservice:guide:start …

---

## [Creating a plugin based app](https://www.ruby-forum.com/t/creating-a-plugin-based-app/138654)

<div class="topic-metadata">

**Author:** [@kimmoke](https://www.ruby-forum.com/u/kimmoke)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/creating-a-plugin-based-app/138654 "2008-05-26T12:35:40Z")

</div>

Any ideas how to do something like this…? I’d like to drop new parsers into a plugin-directory of my app without making modifications to the main app, so there would be something like: main.rb: require ‘plugins/\*’ p…

---

## [How to pass multi-dimensional hash to webservice call](https://www.ruby-forum.com/t/how-to-pass-multi-dimensional-hash-to-webservice-call/138655)

<div class="topic-metadata">

**Author:** [@frnd4gan](https://www.ruby-forum.com/u/frnd4gan)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/how-to-pass-multi-dimensional-hash-to-webservice-call/138655 "2008-05-26T12:06:15Z")

</div>

Anyone have any idea about how to pass multi-dimensional hash to webservice call e.g.driver.search\_ByQuery(:request, :Query =\> \[:sports\])

---

## [Regular expression question](https://www.ruby-forum.com/t/regular-expression-question/138642)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 11:49am UTC](https://www.ruby-forum.com/t/regular-expression-question/138642 "2008-05-26T11:49:49Z")

</div>

I’d like to make sort of a comment remover for C++. If there’s a source file like bellow… \<source.txt\> // 1234 12//34 ///1234 12///34 and my code is… file = open(“source.txt”, “r”) file.each\_line {|line| if lin…

---

## [Duke & Ruby - picture + wallpaper](https://www.ruby-forum.com/t/duke-ruby-picture-wallpaper/138649)

<div class="topic-metadata">

**Author:** [@radarek](https://www.ruby-forum.com/u/radarek)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 11:44am UTC](https://www.ruby-forum.com/t/duke-ruby-picture-wallpaper/138649 "2008-05-26T11:44:31Z")

</div>

I had some problems with email so if already got it - sorry for double post. I made some images and wallpaper with Ruby & Duke motive and I want to share with you. I know that one of my images (made few months ago) is …

---

## [Ruby 1.8.7-preview4 has been released](https://www.ruby-forum.com/t/ruby-1-8-7-preview4-has-been-released/138633)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 6:48am UTC](https://www.ruby-forum.com/t/ruby-1-8-7-preview4-has-been-released/138633 "2008-05-26T06:48:45Z")

</div>

ã€€Ruby 1.8.7-preview4 ã‚’ãƒªãƒªãƒ¼ã‚¹ã—ã¾ã—ãŸã€‚ã“ã‚ŒãŒãŠãã‚‰ããƒªãƒªãƒ¼ã‚¹å‰ æœ€å¾Œã®ãƒ—ãƒ¬ãƒ“ãƒ¥ãƒ¼ã§ã™ã€‚ ã€€é–“éš”ã¯ä¸€é€±é–“ã»ã©ã§ã™ãŒã€ preview3 ä»¥é™ã«ç™ºè¦‹ã•ã‚ŒãŸæ•°å¤šãã®å•é¡ŒãŒ …

---

## [\[fixed\] Ruby 1.8.7-preview4 has been released](https://www.ruby-forum.com/t/fixed-ruby-1-8-7-preview4-has-been-released/138635)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 6:42am UTC](https://www.ruby-forum.com/t/fixed-ruby-1-8-7-preview4-has-been-released/138635 "2008-05-26T06:42:19Z")

</div>

\[ãƒã‚§ãƒƒã‚¯ã‚µãƒ ãŒ preview3 ã®ã¾ã¾ã ã£ãŸã®ã§æ”¹è¨‚\] ã€€Ruby 1.8.7-preview4 ã‚’ãƒªãƒªãƒ¼ã‚¹ã—ã¾ã—ãŸã€‚ã“ã‚ŒãŒãŠãã‚‰ããƒªãƒªãƒ¼ã‚¹å‰ æœ€å¾Œã®ãƒ—ãƒ¬ãƒ“ãƒ¥ãƒ¼ã§ã™ã€‚ ã€€é–“éš”ã¯ä¸€é€±é–“ã»ã©ã…

---

## [Is there a One True Postgres interface? Is Ruby-postgres maintained?](https://www.ruby-forum.com/t/is-there-a-one-true-postgres-interface-is-ruby-postgres-maintained/134780)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 62\
**Last updated:** [May 26, 2008, 4:12am UTC](https://www.ruby-forum.com/t/is-there-a-one-true-postgres-interface-is-ruby-postgres-maintained/134780 "2008-05-26T04:12:36Z")

</div>

Is there a One true Ruby Interface to Postgres? All websites I have found so far have “Last Updated” timestamps of several years ago. Is ruby-postgres still being maintained? Running with warnings on, require ‘postg…

---

## [1.8 \`load': NoMethodError](https://www.ruby-forum.com/t/1-8-load-nomethoderror/138585)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 1:05am UTC](https://www.ruby-forum.com/t/1-8-load-nomethoderror/138585 "2008-05-26T01:05:23Z")

</div>

1.8 e$B$K$\*$$$F0J2\<$Ge(B \`load’: NoMethodError e$B$H$$$&Nc30$,=P$k$Ne(B e$B$G$9$,$3$l$OJQ$G$O$J$$$G$7$g$&$+!#e(B % ./ruby -ve ’ m = Marshal.dump("") Marshal.load m, lambda {|v| v} ’ ruby 1.8.7 (2008-05-25 patchleve…

---

## [1.8 Marshal.load(open("/dev/null"))](https://www.ruby-forum.com/t/1-8-marshal-load-open-dev-null/138534)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 1:04am UTC](https://www.ruby-forum.com/t/1-8-marshal-load-open-dev-null/138534 "2008-05-26T01:04:12Z")

</div>

rubyspec e$B$,Mn$A$F$$$?$N$G$A$g$C$H$$F$$?$H$3$m!"0J2\<$G4qL/e(B e$B$JF0:n$r$9$k$h$&$G$9!#e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-1.8/log/20080524T103507.txt.gz % ./ruby -ve ‘Marshal.load(open(“/dev/…

---

## [IronRuby Binaries and Known DLR build](https://www.ruby-forum.com/t/ironruby-binaries-and-known-dlr-build/138612)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/ironruby-binaries-and-known-dlr-build/138612 "2008-05-25T23:53:18Z")

</div>

Hello, Scenario. I want to host the DLR within my application, as such I reference MS.Scripting and MS.Scripting.Core. I can then happily reference IP2 because it was compiled against the same version. However, the …

---

## [Code Review: regex3](https://www.ruby-forum.com/t/code-review-regex3/138616)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/code-review-regex3/138616 "2008-05-25T23:37:54Z")

</div>

tfpt review “/shelveset:regex3;REDMOND\\tomat” Improves Regexp#union, implements Regexp#eql?, Regexp#==, Regexp#hash. Fixes Regexp#escape to match MRI. Tomas

---

## [Code Review: Regex2](https://www.ruby-forum.com/t/code-review-regex2/138613)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/code-review-regex2/138613 "2008-05-25T22:14:06Z")

</div>

tfpt review “/shelveset:Regex2;REDMOND\\tomat” Implements regex pattern rewriter: some escape sequences that are valid in Ruby are not valid in .NET regex and need to fixed in the pattern. Rough implementation of Regex…

---

## [Obfuscated Email (#163)](https://www.ruby-forum.com/t/obfuscated-email-163/138421)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 7\
**Last updated:** [May 25, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/obfuscated-email-163/138421 "2008-05-25T22:05:15Z")

</div>

Welcome, Ruby coders and coderettes… Tonight we bring you the Obfu Awards, awards given by committee (i.e. me) to those most deserving for their… “creative” work. We’re going to skip the red carpet frivolities, as we…

---

## [rSpec - added a "either.or.or" Matcher](https://www.ruby-forum.com/t/rspec-added-a-either-or-or-matcher/138599)

<div class="topic-metadata">

**Author:** [@mjacobs](https://www.ruby-forum.com/u/mjacobs)\
**Replies:** 3\
**Last updated:** [May 25, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/rspec-added-a-either-or-or-matcher/138599 "2008-05-25T20:41:00Z")

</div>

Hey there guys, not sure where I should discuss this really, but I’ve created a ticket on LightHouse for rSpec. Came across this problem; “I have a method which either returns an array or a nil, how can I rspec asse…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/138602)

<div class="topic-metadata">

**Author:** [@yanghb](https://www.ruby-forum.com/u/yanghb)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/unsubscribe/138602 "2008-05-25T18:17:38Z")

</div>

unsubscribe

---

## [Accessing URL links inside of Tables](https://www.ruby-forum.com/t/accessing-url-links-inside-of-tables/138574)

<div class="topic-metadata">

**Author:** [@bluejay](https://www.ruby-forum.com/u/bluejay)\
**Replies:** 2\
**Last updated:** [May 25, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/accessing-url-links-inside-of-tables/138574 "2008-05-25T16:48:53Z")

</div>

Hello: This is my first post in this forum. I am a member of a QA/testing team for a software company in NYC. We have decided recently to begin the development of scripting tools to automate repetitive tasks used du…

---

## [40 million levenshtein distances for two long strings](https://www.ruby-forum.com/t/40-million-levenshtein-distances-for-two-long-strings/137662)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 11\
**Last updated:** [May 25, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/40-million-levenshtein-distances-for-two-long-strings/137662 "2008-05-25T12:30:36Z")

</div>

I am trying to discover similar files to reduce redundancy on a large project. The ‘Text’ gem works well for this, but even short strings take a long time. Large strings - like 20k HTML files - take an amazing amount …

---

## [Symbian + Ruby + PC](https://www.ruby-forum.com/t/symbian-ruby-pc/138562)

<div class="topic-metadata">

**Author:** [@Claudio\_Escudero](https://www.ruby-forum.com/u/Claudio_Escudero)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 9:56am UTC](https://www.ruby-forum.com/t/symbian-ruby-pc/138562 "2008-05-25T09:56:26Z")

</div>

Hi, Have you already programmed Ruby in Symbian? Let me know some tips, how can I simulate a Symbian + Ruby on my computer? Thanks, Claudio

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

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