# Ruby

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

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

---

## [\[Ruby 1.8 - Bug #387\] if $B@0?t%j%F%i%k(B..$B@0?t%j%F%i%k(B $B!b(B if ($.==$B@0?t%j%F%i%k(B](https://www.ruby-forum.com/t/ruby-1-8-bug-387-if-b-0-t-j-f-i-k-b-b-0-t-j-f-i-k-b-b-b-b-if-b-0-t-j-f-i-k-b/144851)

<div class="topic-metadata">

**Author:** [@pegacorn\_jp](https://www.ruby-forum.com/u/pegacorn_jp)\
**Replies:** 0\
**Last updated:** [August 3, 2008, 7:47am UTC](https://www.ruby-forum.com/t/ruby-1-8-bug-387-if-b-0-t-j-f-i-k-b-b-0-t-j-f-i-k-b-b-b-b-if-b-0-t-j-f-i-k-b/144851 "2008-08-03T07:47:10Z")

</div>

e$B%A%1%C%He(B #387 e$B$,99?7$5$l$^$7$?!#e(B (by pegacorn jp) e$B:F8=$7$J$$$H;W$C$?$i!"e(B\[ruby-core:12132\]e$B$N%Q%C%A$rEv$F$?$^$^$G$7e(B e$B$?!#$3$l$G$I$&$G$7$g$&$+!#e(B e$B:G6a$Ne(B ruby\_1\_8(r18317) e$B$KEv$F$F$\_$^$…

---

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

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 4\
**Last updated:** [August 3, 2008, 6:27am UTC](https://www.ruby-forum.com/t/installing-gems-updating-for-a-specific-user/144848 "2008-08-03T06:27:06Z")

</div>

So, the admin of my Mac Mini (Running Mac OS X 10.4 Tiger) has completely forgotten the sudo password. Go figure. Is there a way to install gems and etc. for a specific user only? Or would I need to install ruby for t…

---

## [Ruby 1.9 webservers?](https://www.ruby-forum.com/t/ruby-1-9-webservers/144819)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 3\
**Last updated:** [August 3, 2008, 1:34am UTC](https://www.ruby-forum.com/t/ruby-1-9-webservers/144819 "2008-08-03T01:34:01Z")

</div>

The combination I’m trying to make work is Ruby1.9 + Ramaze + Rack? + ? I’m told there are some issues with Rack, so that might be the problem. Mongrel won’t install at all (it wants fastthread). Ebb is the strangest …

---

## [\[ANN\] Rassmalog 12.0.1](https://www.ruby-forum.com/t/ann-rassmalog-12-0-1/144803)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [August 3, 2008, 12:39am UTC](https://www.ruby-forum.com/t/ann-rassmalog-12-0-1/144803 "2008-08-03T00:39:03Z")

</div>

Rassmalog is a static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that you can view on your computer or upload to your …

---

## [\[ANN\] Ruby-VPI 21.1.0](https://www.ruby-forum.com/t/ann-ruby-vpi-21-1-0/144844)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [August 3, 2008, 12:28am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-21-1-0/144844 "2008-08-03T00:28:05Z")

</div>

Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI and a platform for unit testing, rapid prototyping, and systems integration of Verilog modules through Ruby. It lets you create complex Verilog test benches e…

---

## [Case statment not working with strings](https://www.ruby-forum.com/t/case-statment-not-working-with-strings/144840)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 3\
**Last updated:** [August 3, 2008, 12:02am UTC](https://www.ruby-forum.com/t/case-statment-not-working-with-strings/144840 "2008-08-03T00:02:17Z")

</div>

Hello, I have a rather simple case statement: case event\[‘event\_title’\] when (‘Class GroupsPhoto Day’ || ‘Retake Day’ || ‘School Group’ || ‘Photo’ || ‘Staff Group Photo’ || ‘Staff Group Photo’ || ‘Teams and Clubs’ ||…

---

## [Back on the List - Two questions](https://www.ruby-forum.com/t/back-on-the-list-two-questions/144828)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 5\
**Last updated:** [August 2, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/back-on-the-list-two-questions/144828 "2008-08-02T23:01:42Z")

</div>

It’s been a while but it feels good to be back. I have a quick question for the group: Given the following: content = \[ \[“something special a”, “ok cool a”, “tahsnk a”\], \[“something specccccccccial a”, “ok cooooool …

---

## [Gsub! memory leak](https://www.ruby-forum.com/t/gsub-memory-leak/144837)

<div class="topic-metadata">

**Author:** [@shinichiro.h](https://www.ruby-forum.com/u/shinichiro.h)\
**Replies:** 0\
**Last updated:** [August 2, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/gsub-memory-leak/144837 "2008-08-02T22:26:35Z")

</div>

e$BIMCO$H$$$$$^$9!#e(B yarvtest/runner.rb e$B$,e(B valgrind e$B$KE$i$l$k$h$&$J$N$Ge(B e$B=$@5$7$F$$^$7$?!#0J2\<$G:F8=$9$k$$?$$$G$9!#e(B % cat leak.rb val = ‘$(RUBY\_SO\_NAME)-static.a’ val.gsub!(/RUBY\_SO\_NAME/, ‘h’) %…

---

## [Weird: Just unzipped ruby-1.9.0-2.zip -- no Ruby.exe](https://www.ruby-forum.com/t/weird-just-unzipped-ruby-1-9-0-2-zip-no-ruby-exe/144801)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 6\
**Last updated:** [August 2, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/weird-just-unzipped-ruby-1-9-0-2-zip-no-ruby-exe/144801 "2008-08-02T20:05:27Z")

</div>

Hi, I’ve been running ruby186-26\_rc2 installed from ruby186-26\_rc2.exe over WinXP-Pro/SP2. I manually installed a the path of ruby.exe in Window’s PATH. All worked well for a good while. I decided to upgrade to 1.9…

---

## [Libxml: is it possible not to use doctype declaration?](https://www.ruby-forum.com/t/libxml-is-it-possible-not-to-use-doctype-declaration/144424)

<div class="topic-metadata">

**Author:** [@ruud\_grosmann](https://www.ruby-forum.com/u/ruud_grosmann)\
**Replies:** 16\
**Last updated:** [August 2, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/libxml-is-it-possible-not-to-use-doctype-declaration/144424 "2008-08-02T19:40:16Z")

</div>

hi all, I have tried to find elements in XML documents with xpath expression support in libxml: require ‘xml/libxml’ doc = XML::Document.file( file) node = doc.find\_first( ‘doc/p\[@att\]/@att’) This works fine, but n…

---

## [(ruby1.9) "irb -r tk" causes SEGV, but "irb -r tcltklib -r tk" doesn't](https://www.ruby-forum.com/t/ruby1-9-irb-r-tk-causes-segv-but-irb-r-tcltklib-r-tk-doesnt/144824)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 0\
**Last updated:** [August 2, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/ruby1-9-irb-r-tk-causes-segv-but-irb-r-tcltklib-r-tk-doesnt/144824 "2008-08-02T19:39:41Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B e$BJs9p$N$$G$9$$^$;$s$,!$I8Bj$N$h$&$Ke(B ruby 1.9 e$B$Ne(B irb e$B$Ge(B SEGV e$B$7$^$9!%e(B e$B2\<5-$N%m%0$N$h$&$K!$e(Birb e$B$N%W%m%s%W%H$+$ie(B “require ‘tk’” e$B$re(B e$B\<B9T$7$?\>l9g…

---

## [\[Ruby 1.8 - Bug #387\] (Open) if $B@0?t%j%F%i%k(B..$B@0?t%j%F%i%k(B $B!b(B if ($.==$B@0?t%j%F](https://www.ruby-forum.com/t/ruby-1-8-bug-387-open-if-b-0-t-j-f-i-k-b-b-0-t-j-f-i-k-b-b-b-b-if-b-0-t-j-f/144796)

<div class="topic-metadata">

**Author:** [@anonymous](https://www.ruby-forum.com/u/anonymous)\
**Replies:** 1\
**Last updated:** [August 2, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/ruby-1-8-bug-387-open-if-b-0-t-j-f-i-k-b-b-0-t-j-f-i-k-b-b-b-b-if-b-0-t-j-f/144796 "2008-08-02T19:35:00Z")

</div>

e$B%A%1%C%He(B #387 e$B$,Js9p$5$l$^$7$?!#e(B (by Anonymous) Bug #387: if e$B@0?t%j%F%i%ke(B…e$B@0?t%j%F%i%ke(B e$B!be(B if ($.==e$B@0?t%j%F%i%ke(B)…($.==e$B@0?t%j%F%i%ke(B) http://redmine.ruby-lang.org/issues/show/38…

---

## [Running methods in parallel](https://www.ruby-forum.com/t/running-methods-in-parallel/144368)

<div class="topic-metadata">

**Author:** [@skaverat](https://www.ruby-forum.com/u/skaverat)\
**Replies:** 5\
**Last updated:** [August 2, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/running-methods-in-parallel/144368 "2008-08-02T16:37:03Z")

</div>

is there a way to parallelize ruby methods? So I can do something like this: 5.times do Foobar.new(“somestuff”) end #do stuff while Foobar-objects are running so the script creates 5 objects, and just lets them do …

---

## [Timeout::timeout(time) question - or.. What am I missing here?](https://www.ruby-forum.com/t/timeout-timeout-time-question-or-what-am-i-missing-here/144797)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 2\
**Last updated:** [August 2, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/timeout-timeout-time-question-or-what-am-i-missing-here/144797 "2008-08-02T14:08:23Z")

</div>

OK, I have a rake task that runs a bit of code which connects up from a Rails App to a remote data source over a WAN to replicate down some data from an Oracle server through the Ruby OCI8 library. This task is expec…

---

## [Ruby-GetText-Package-1.92.0](https://www.ruby-forum.com/t/ruby-gettext-package-1-92-0/144809)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [August 2, 2008, 11:58am UTC](https://www.ruby-forum.com/t/ruby-gettext-package-1-92-0/144809 "2008-08-02T11:58:30Z")

</div>

Hi, Ruby-GetText-Package-1.92.0 is now available. Changes Fixed a memory leak(again) Fixed bugs. Latvian support. Improve to support mo-files. Support revision 1 of mo-file format. Freeze msgstrs. msgc…

---

## [Ruby 1.9.0-3 is released](https://www.ruby-forum.com/t/ruby-1-9-0-3-is-released/144126)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 5\
**Last updated:** [August 2, 2008, 11:26am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-3-is-released/144126 "2008-08-02T11:26:21Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Ruby 1.9.0-3 has just been released. This is a snapshot release. The next release is 1.9.0-4. It will be released at 25 Oct. See \[ruby-core:17644\] for more details. …

---

## [C++ Wrapper for Ruby](https://www.ruby-forum.com/t/c-wrapper-for-ruby/144799)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 2\
**Last updated:** [August 2, 2008, 9:30am UTC](https://www.ruby-forum.com/t/c-wrapper-for-ruby/144799 "2008-08-02T09:30:13Z")

</div>

I am trying to write some open source plugins for FileMaker Pro, but I’d rather write them in Ruby rather than C or C++ which is what FileMaker requires. Someone else has written a C++ wrapper for Java to do what I’m …

---

## [Get the caller of a class](https://www.ruby-forum.com/t/get-the-caller-of-a-class/144707)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 8\
**Last updated:** [August 2, 2008, 9:06am UTC](https://www.ruby-forum.com/t/get-the-caller-of-a-class/144707 "2008-08-02T09:06:02Z")

</div>

I have something like: Class MyClass def doit caller= How can I do it puts 'I was called from: ' + caller.class puts 'the value of the @variab is: ' + caller.variab.to\_s() end end Class MyCaller attr\_reader: :var…

---

## [\[Ruby 1.9 - Bug #386\] (Open) 008: unexpected tINTEGER](https://www.ruby-forum.com/t/ruby-1-9-bug-386-open-008-unexpected-tinteger/144780)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 1\
**Last updated:** [August 2, 2008, 8:57am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-386-open-008-unexpected-tinteger/144780 "2008-08-02T08:57:50Z")

</div>

e$B%A%1%C%He(B #386 e$B$,Js9p$5$l$^$7$?!#e(B (by Shyouhei U.) Bug #386: 008: unexpected tINTEGER http://redmine.ruby-lang.org/issues/show/386 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open e$BM%@hEYe(B: Normal e…

---

## [Automated filling-in of external Windows application fields ...?](https://www.ruby-forum.com/t/automated-filling-in-of-external-windows-application-fields/144770)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 2\
**Last updated:** [August 2, 2008, 8:40am UTC](https://www.ruby-forum.com/t/automated-filling-in-of-external-windows-application-fields/144770 "2008-08-02T08:40:53Z")

</div>

Dear all, I have around 50 files which I need to open in an external (Windows) program, one after the other. As each of them is about 100 MB larger, I’d like to automate the process. The external application contain…

---

## [Warbler deployed into Websphere app. server question](https://www.ruby-forum.com/t/warbler-deployed-into-websphere-app-server-question/144755)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [August 2, 2008, 7:36am UTC](https://www.ruby-forum.com/t/warbler-deployed-into-websphere-app-server-question/144755 "2008-08-02T07:36:37Z")

</div>

All, This is a Warbler question and I couldn’t find a place for just Warbler questions, so I’m asking here (please tell me where I should post if this is the wrong place). I have successfully used Warbler to deploy a…

---

## [\[Ruby 1.8 - Bug #387\] if $B@0?t%j%F%i%k(B..$B@0?t%j%F%i%k(B $B!b(B if ($.==$B@0?t%j%F%i%k(B](https://www.ruby-forum.com/t/ruby-1-8-bug-387-if-b-0-t-j-f-i-k-b-b-0-t-j-f-i-k-b-b-b-b-if-b-0-t-j-f-i-k-b/144800)

<div class="topic-metadata">

**Author:** [@pegacorn\_jp](https://www.ruby-forum.com/u/pegacorn_jp)\
**Replies:** 0\
**Last updated:** [August 2, 2008, 7:30am UTC](https://www.ruby-forum.com/t/ruby-1-8-bug-387-if-b-0-t-j-f-i-k-b-b-0-t-j-f-i-k-b-b-b-b-if-b-0-t-j-f-i-k-b/144800 "2008-08-02T07:30:46Z")

</div>

e$B%A%1%C%He(B #387 e$B$,99?7$5$l$^$7$?!#e(B (by pegacorn jp) \[ruby\] Revision 8425: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=8425 eval.c (rb\_eval), parse.y (arg): reduce fixnum range literal at p…

---

## [Ruby block: why doesn't this work?](https://www.ruby-forum.com/t/ruby-block-why-doesnt-this-work/144794)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 2, 2008, 6:21am UTC](https://www.ruby-forum.com/t/ruby-block-why-doesnt-this-work/144794 "2008-08-02T06:21:14Z")

</div>

I’m trying to figure out why my code isn’t doing what I think it should… Basically, I’m trying to create a Info object, and do various things to that new object within the block. For what ever reason though, it does…

---

## [\[Ruby 1.9 - Bug #388\] (Open) BigDecimal \<=\> Float # =\> nil](https://www.ruby-forum.com/t/ruby-1-9-bug-388-open-bigdecimal-float-nil/144795)

<div class="topic-metadata">

**Author:** [@pegacorn\_jp](https://www.ruby-forum.com/u/pegacorn_jp)\
**Replies:** 0\
**Last updated:** [August 2, 2008, 5:13am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-388-open-bigdecimal-float-nil/144795 "2008-08-02T05:13:26Z")

</div>

e$B%A%1%C%He(B #388 e$B$,Js9p$5$l$^$7$?!#e(B (by pegacorn jp) Bug #388: BigDecimal \<=\> Float # =\> nil http://redmine.ruby-lang.org/issues/show/388 e$B5/I\<\<Te(B: pegacorn jp e$B%9%F!\<%?%9e(B: Open e$BM%@hEYe(B: Norm…

---

## [Help finding this syntax error](https://www.ruby-forum.com/t/help-finding-this-syntax-error/144771)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 13\
**Last updated:** [August 1, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/help-finding-this-syntax-error/144771 "2008-08-01T23:59:31Z")

</div>

if(FieldTypes.key? field && FieldTypes\[field\].respond\_to?:select) puts "selectable" Hi, I’m having trouble writing the above line correctly. It works if I explicitly put: FieldTypes\[field\].respond\_to?(:select) But…

---

## [Weird result of replacing content](https://www.ruby-forum.com/t/weird-result-of-replacing-content/144775)

<div class="topic-metadata">

**Author:** [@cheyne](https://www.ruby-forum.com/u/cheyne)\
**Replies:** 3\
**Last updated:** [August 1, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/weird-result-of-replacing-content/144775 "2008-08-01T23:08:59Z")

</div>

Hi, there I’m stuck on replacing patterns in a file. I have http.log, which is generated from system; and a.txt, which is manually written; Also, i have a replace function that takes string and replace a pattern. co…

---

## [New to Ruby, question about gem](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677)

<div class="topic-metadata">

**Author:** [@akinsgre](https://www.ruby-forum.com/u/akinsgre)\
**Replies:** 4\
**Last updated:** [August 1, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/new-to-ruby-question-about-gem/144677 "2008-08-01T22:22:13Z")

</div>

I had just installed Rails 2.1.0, or at least that’s the feedback I got when I typed “gem install rails” However, when I look in my gem paths I see that rails-1.2.6 is the only directory there. Am I missing something…

---

## [Capturing shell command output and success?](https://www.ruby-forum.com/t/capturing-shell-command-output-and-success/144767)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 9\
**Last updated:** [August 1, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/capturing-shell-command-output-and-success/144767 "2008-08-01T22:21:01Z")

</div>

I know shell commands have beaten to death on this list, but searching the archives I couldn’t quite find what I was looking for. I want a way to capture the output of the shell command, and the success or failure of …

---

## [Where is rubyforge gem?](https://www.ruby-forum.com/t/where-is-rubyforge-gem/144760)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 2\
**Last updated:** [August 1, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/where-is-rubyforge-gem/144760 "2008-08-01T22:16:20Z")

</div>

At the moment, I’m behind a firewall which doesn’t allow gem install to reach the repository. But I can go to rubyforge and download gems manually and do a gem install -l. I was trying to update hoe, and I got this e…

---

## [One day Ruby event in London, later this year. Interested?](https://www.ruby-forum.com/t/one-day-ruby-event-in-london-later-this-year-interested/144741)

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 2\
**Last updated:** [August 1, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/one-day-ruby-event-in-london-later-this-year-interested/144741 "2008-08-01T21:41:48Z")

</div>

Hi all, We’re thinking about putting a one-day Ruby event in London, later this year. We want to try putting together an event, but organise it a bit differently to regular conferences. In a nutshell: It should be c…

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

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