# Ruby

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

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

---

## [Irb with fast](https://www.ruby-forum.com/t/irb-with-fast/183925)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/irb-with-fast/183925 "2010-02-22T20:49:10Z")

</div>

Is this expected? rdp@ubuntu910:~/dev/downloads/jruby$ jruby --fast -S jirb : IO error – irb/slex (LoadError) -r

---

## [Ruby Idiom To Retry open() Upto N Times Before Giving Up](https://www.ruby-forum.com/t/ruby-idiom-to-retry-open-upto-n-times-before-giving-up/183931)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 7\
**Last updated:** [February 22, 2010, 8:48pm UTC](https://www.ruby-forum.com/t/ruby-idiom-to-retry-open-upto-n-times-before-giving-up/183931 "2010-02-22T20:48:34Z")

</div>

I write a lot of scripts that I run once or infrequently that uses open-rui. Occasionally I run into a web site that times out or is unavailable for a period of time. My normal solution is to just rerun the script man…

---

## [How do I use a variable in a regexp search string?](https://www.ruby-forum.com/t/how-do-i-use-a-variable-in-a-regexp-search-string/182568)

<div class="topic-metadata">

**Author:** [@joemanfoo](https://www.ruby-forum.com/u/joemanfoo)\
**Replies:** 8\
**Last updated:** [February 22, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/how-do-i-use-a-variable-in-a-regexp-search-string/182568 "2010-02-22T20:45:03Z")

</div>

Hi All, I dont know how to use a variable in a regex searchstring. ruby seems to only handle hardcoded serachstring in regex’s. How do you do this. My code is below. Also - how do you put a variable name in a Fi…

---

## [Binding#eval issue](https://www.ruby-forum.com/t/binding-eval-issue/183906)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [February 22, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/binding-eval-issue/183906 "2010-02-22T19:05:31Z")

</div>

I have the following extensions to Binding: class Binding # Returns line number of the binding. def \_\_LINE\_\_ eval("\_\_LINE\_\_") end # Returns file name of the binding. def \_\_FILE\_\_ eval("\_\_FILE\_\_") end end The wor…

---

## [Statsample: A statistical package for ruby](https://www.ruby-forum.com/t/statsample-a-statistical-package-for-ruby/183926)

<div class="topic-metadata">

**Author:** [@kaaio](https://www.ruby-forum.com/u/kaaio)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/statsample-a-statistical-package-for-ruby/183926 "2010-02-22T19:04:08Z")

</div>

Hi, everyone: I like to invite you all to test and give some feedback on my ruby statistical package “statsample” The home URL is: http://ruby-statsample.rubyforge.org/ and you can install it with gem install stats…

---

## [Using Shoes as GUI](https://www.ruby-forum.com/t/using-shoes-as-gui/183867)

<div class="topic-metadata">

**Author:** [@moe](https://www.ruby-forum.com/u/moe)\
**Replies:** 6\
**Last updated:** [February 22, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867 "2010-02-22T18:55:54Z")

</div>

HI guys, am using shoes as my GUI for a project am working on, am basically trying to create a shogi game board, but am getting a $end expecting Kend compiling error? and its killing me am not really great with ruby y…

---

## [Rubygems-update 1.3.6 Released](https://www.ruby-forum.com/t/rubygems-update-1-3-6-released/183825)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 5\
**Last updated:** [February 22, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/rubygems-update-1-3-6-released/183825 "2010-02-22T17:30:15Z")

</div>

rubygems-update version 1.3.6 has been released! http://rubygems.org/ http://docs.rubygems.org/ http://rubygems.rubyforge.org/ http://rubyforge.org/projects/rubygems RubyGems is a package management framework for Ruby…

---

## [OPN 2001 barcode reader](https://www.ruby-forum.com/t/opn-2001-barcode-reader/183725)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/opn-2001-barcode-reader/183725 "2010-02-22T17:23:04Z")

</div>

I am after some help in how best achieve the automated downloading of barcodes scanned. the barcode scanner is a OPN 2001 this site give you more info I have access to the C/C++ SDK but as I’ve not done anything like…

---

## [Ruby 1.9 and loss of Windows 'right-click/edit' option](https://www.ruby-forum.com/t/ruby-1-9-and-loss-of-windows-right-click-edit-option/183911)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 2\
**Last updated:** [February 22, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-loss-of-windows-right-click-edit-option/183911 "2010-02-22T17:17:41Z")

</div>

With Ruby 1.8 (Windows OS) I could right-click on a windows icon and there was an ‘Edit’ option that I could choose to open the program file using a text editor. Now that I’ve switched to Ruby 1.9, if I right click o…

---

## [Read efficiency?](https://www.ruby-forum.com/t/read-efficiency/183827)

<div class="topic-metadata">

**Author:** [@guyminuslife](https://www.ruby-forum.com/u/guyminuslife)\
**Replies:** 6\
**Last updated:** [February 22, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/read-efficiency/183827 "2010-02-22T16:40:46Z")

</div>

I’m wondering if anyone knows much about Ruby’s efficiency with IO#read. Specifically, I’m wondering about libraries I might use to speed up disk reads. To see what I mean, here’s some test code that iterates over an …

---

## [Ruby Installation](https://www.ruby-forum.com/t/ruby-installation/183882)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/ruby-installation/183882 "2010-02-22T13:44:02Z")

</div>

Hi I have installed ruby from fedora repository (fedora12) with yum install ruby ruby-devel ruby-docs ruby-irb ruby-libs ruby-mode ruby-rdoc ruby-ri And I got ruby --version ruby 1.8.6 (2009-08-04 patchlevel 383) \[i…

---

## [Difference between length and length()](https://www.ruby-forum.com/t/difference-between-length-and-length/183886)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 1\
**Last updated:** [February 22, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/difference-between-length-and-length/183886 "2010-02-22T13:39:51Z")

</div>

Hi, Is there any difference between length and length().Pls explain

---

## [Complex type-checking](https://www.ruby-forum.com/t/complex-type-checking/183868)

<div class="topic-metadata">

**Author:** [@lqqkout4elfy](https://www.ruby-forum.com/u/lqqkout4elfy)\
**Replies:** 4\
**Last updated:** [February 22, 2010, 1:29pm UTC](https://www.ruby-forum.com/t/complex-type-checking/183868 "2010-02-22T13:29:31Z")

</div>

I have a number of methods that can take arguments in two different forms. As an example: method(tuple \[, …\]) where ‘tuple’ can be things like (Point, Point, Integer) or (Numeric, Numeric, Numeric, Numeric, Integer)…

---

## [International Journal of Electronics, Information and Systems (IJEIS) Call for Paper](https://www.ruby-forum.com/t/international-journal-of-electronics-information-and-systems-ijeis-call-for-paper/183894)

<div class="topic-metadata">

**Author:** [@ijeiseditor](https://www.ruby-forum.com/u/ijeiseditor)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 11:35am UTC](https://www.ruby-forum.com/t/international-journal-of-electronics-information-and-systems-ijeis-call-for-paper/183894 "2010-02-22T11:35:58Z")

</div>

International Journal of Electronics, Information and Systems (IJEIS) Call for Paper The International Journal of Electronics, Information and Systems (IJEIS) publish original papers on all subjects relevant to elect…

---

## [XMPP4r with ejabberd](https://www.ruby-forum.com/t/xmpp4r-with-ejabberd/183884)

<div class="topic-metadata">

**Author:** [@advenk](https://www.ruby-forum.com/u/advenk)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 9:57am UTC](https://www.ruby-forum.com/t/xmpp4r-with-ejabberd/183884 "2010-02-22T09:57:22Z")

</div>

Hi, I have been trying to get ejabberd to work with XMPP4R and have had partial success. ejabberd server page has… The name of the current ejabberd node is ejabberd@localhost I create a new instance… myJID = JID.…

---

## [Help with 'method\_missing Error](https://www.ruby-forum.com/t/help-with-method-missing-error/183858)

<div class="topic-metadata">

**Author:** [@haden](https://www.ruby-forum.com/u/haden)\
**Replies:** 4\
**Last updated:** [February 22, 2010, 9:52am UTC](https://www.ruby-forum.com/t/help-with-method-missing-error/183858 "2010-02-22T09:52:21Z")

</div>

Hey Everyone, I’m using JRuby with SWT to work up a ‘contacts’ app. I can successfully display contacts in a table when I pass TableItem an array of strings. But if I subclass Contact from ActiveRecord and then itera…

---

## ["ubygems" load error](https://www.ruby-forum.com/t/ubygems-load-error/183863)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 4\
**Last updated:** [February 22, 2010, 4:06am UTC](https://www.ruby-forum.com/t/ubygems-load-error/183863 "2010-02-22T04:06:51Z")

</div>

Hi,I was installing a gem and got this error: /usr/bin/ruby1.8: no such file to load – ubygems (LoadError) thanks Brian

---

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

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [February 22, 2010, 2:55am UTC](https://www.ruby-forum.com/t/module-set/183865 "2010-02-22T02:55:39Z")

</div>

Wonder what other’s think of this as a general purpose class method. It comes from Sinatra, but I have been seeing it’s like used in other places too. class Module # Sets an option to the given value. If the value is…

---

## [Difference between system() versus exec Kernel methods](https://www.ruby-forum.com/t/difference-between-system-versus-exec-kernel-methods/183857)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 5\
**Last updated:** [February 22, 2010, 1:16am UTC](https://www.ruby-forum.com/t/difference-between-system-versus-exec-kernel-methods/183857 "2010-02-22T01:16:10Z")

</div>

I’m trying to understand the difference between the Kernel.system and Kernel.exec methods. It was explained in an earlier post that .system started a new process while keeping the old one running, while .exec replace…

---

## [Ruby conditionals subtlety?](https://www.ruby-forum.com/t/ruby-conditionals-subtlety/183700)

<div class="topic-metadata">

**Author:** [@clipper](https://www.ruby-forum.com/u/clipper)\
**Replies:** 17\
**Last updated:** [February 21, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/ruby-conditionals-subtlety/183700 "2010-02-21T22:42:33Z")

</div>

Hi, Anyone know why thse two forms of “unless” behave differently? irb irb(main):001:0\> foo = true unless defined?(foo) =\> nil irb(main):002:0\> unless defined?(fooo) ; fooo = true ; end =\> true thx

---

## [Prerelease of Ruby-pg 0.9.0](https://www.ruby-forum.com/t/prerelease-of-ruby-pg-0-9-0/183730)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [February 21, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/prerelease-of-ruby-pg-0-9-0/183730 "2010-02-21T22:18:50Z")

</div>

Hi All, I’d like to announce the imminent release of version 0.9.0 of the ruby-pg library, the Ruby interface to the PostgreSQL RDBMS. The 0.9.0 version has some fairly significant changes to the backend, especially …

---

## [Red Dirt RubyConf CFP Ending in One Week](https://www.ruby-forum.com/t/red-dirt-rubyconf-cfp-ending-in-one-week/183851)

<div class="topic-metadata">

**Author:** [@James\_Edward\_GSII](https://www.ruby-forum.com/u/James_Edward_GSII)\
**Replies:** 0\
**Last updated:** [February 21, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/red-dirt-rubyconf-cfp-ending-in-one-week/183851 "2010-02-21T20:05:23Z")

</div>

Just a quick reminder folks that the call for proposals for Red Dirt RubyConf ends a week from today. It’s not too late to join us: James Edward G. II

---

## [Yet another rounding issue](https://www.ruby-forum.com/t/yet-another-rounding-issue/183844)

<div class="topic-metadata">

**Author:** [@manusharma](https://www.ruby-forum.com/u/manusharma)\
**Replies:** 3\
**Last updated:** [February 21, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/yet-another-rounding-issue/183844 "2010-02-21T19:19:19Z")

</div>

At school I was taught that five is always rounded up. Later on I’ve been told that sometimes five is rounded to closest even number. Neither of these seem to be the case with ruby: irb(main):044:0\> RUBY\_VERSION =\> “…

---

## [Threads vs Processes](https://www.ruby-forum.com/t/threads-vs-processes/183822)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 6\
**Last updated:** [February 21, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/threads-vs-processes/183822 "2010-02-21T18:41:39Z")

</div>

I have just switched back to Windows from the Mac/Linux world and my first non-web Ruby project is a program to manage a bunch of independent backup tasks … the spec calls for allowing many tasks to be queued but to o…

---

## [Exit method?](https://www.ruby-forum.com/t/exit-method/183271)

<div class="topic-metadata">

**Author:** [@ceissen](https://www.ruby-forum.com/u/ceissen)\
**Replies:** 22\
**Last updated:** [February 21, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/exit-method/183271 "2010-02-21T18:24:17Z")

</div>

Hello World, I am new to programming and am writing a program in ruby that serves as a tutorial for absolute beginners. It’s heavily reliant on if & else. I was wondering if there is a method for exiting a program. He…

---

## [Strings combine](https://www.ruby-forum.com/t/strings-combine/183688)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 23\
**Last updated:** [February 21, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/strings-combine/183688 "2010-02-21T15:27:10Z")

</div>

Shouldn’t the following be a syntax error? ’ 3’ ‘4’ =\> " 34" ? -rp

---

## [Running two versions of Ruby - Lessons Learned](https://www.ruby-forum.com/t/running-two-versions-of-ruby-lessons-learned/183824)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 4\
**Last updated:** [February 21, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/running-two-versions-of-ruby-lessons-learned/183824 "2010-02-21T14:40:55Z")

</div>

After experimenting with Ruby 1.9 I’ve found I really like it and wanted to make it my main version of Ruby. My problem was that I have two programs that I use frequently that only work with Ruby 1.8. I want my prog…

---

## [\[Bug:trunk\] gem install cairo fails](https://www.ruby-forum.com/t/bug-trunk-gem-install-cairo-fails/183806)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [February 21, 2010, 1:27pm UTC](https://www.ruby-forum.com/t/bug-trunk-gem-install-cairo-fails/183806 "2010-02-21T13:27:21Z")

</div>

e$B$J$+$@$5$se(B e$B1sF#$G$9!#e(B r26465+r26466 e$B$NJQ99$K$h$C$Fe(B gem install cairo e$B$r$7$F$be(B cairo.so e$B$,e(B e$B%S%k%I$5$l$J$/$J$j!"@5\>o$K%$%s%9%H!\<%k$G$-$J$/$J$j$^$7$?!#e(B $ …/ruby-trunk-local/bin/ruby …

---

## [Segfaults from the 'object-free' dtrace probe](https://www.ruby-forum.com/t/segfaults-from-the-object-free-dtrace-probe/183820)

<div class="topic-metadata">

**Author:** [@Dane\_J](https://www.ruby-forum.com/u/Dane_J)\
**Replies:** 1\
**Last updated:** [February 21, 2010, 7:37am UTC](https://www.ruby-forum.com/t/segfaults-from-the-object-free-dtrace-probe/183820 "2010-02-21T07:37:54Z")

</div>

Hi All- Has anyone had any luck with the ‘object-free’ dtrace probe… ever… on any platform? It segfaults ruby without fail, absolutely 100% of the time, everywhere. It did it in Leopard, and there’s a thread about …

---

## [Foundations of RSpec](https://www.ruby-forum.com/t/foundations-of-rspec/183821)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 3\
**Last updated:** [February 21, 2010, 5:19am UTC](https://www.ruby-forum.com/t/foundations-of-rspec/183821 "2010-02-21T05:19:46Z")

</div>

According to Amazon, this book is supposed to be released already. I’ve been refreshing the page every day, but haven’t seen any updates about it yet. Nothing on http://apress.com/ about it. Anyone know status or a…

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

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