# Ruby

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

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

---

## [Problem with array](https://www.ruby-forum.com/t/problem-with-array/141620)

<div class="topic-metadata">

**Author:** [@fernandoq](https://www.ruby-forum.com/u/fernandoq)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/problem-with-array/141620 "2008-06-27T20:37:22Z")

</div>

Hi everybody well still im a newbie in this of ruby but i try to do my best for can solve my problem but this time im stuck in this i hoe you can help me IN A REDUCE WAY: how can i send the array that is write in the…

---

## [Conversion from ruby types to Java types](https://www.ruby-forum.com/t/conversion-from-ruby-types-to-java-types/141594)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 1\
**Last updated:** [June 27, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/conversion-from-ruby-types-to-java-types/141594 "2008-06-27T19:44:33Z")

</div>

If I have a ruby object that can be defined to contain instance variables that can be basic types (integers, strings, doubles) is there a standard way to convert them to a java.lang.\* (where star is String, or Intege…

---

## [Unable to run mongrel](https://www.ruby-forum.com/t/unable-to-run-mongrel/141605)

<div class="topic-metadata">

**Author:** [@m\_bhupendrain](https://www.ruby-forum.com/u/m_bhupendrain)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/unable-to-run-mongrel/141605 "2008-06-27T16:41:14Z")

</div>

Hello, As i m new to ruby on rails. I have install mongrel server by using script as gem install mongrel from the path c:\\ruby\\bin i have created an application using rails command from the path c:\\Ruby\\bin then en…

---

## [AOT Compilation of Ruby Libraries](https://www.ruby-forum.com/t/aot-compilation-of-ruby-libraries/141486)

<div class="topic-metadata">

**Author:** [@Peter\_K\_Chan](https://www.ruby-forum.com/u/Peter_K_Chan)\
**Replies:** 11\
**Last updated:** [June 27, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/aot-compilation-of-ruby-libraries/141486 "2008-06-27T15:33:16Z")

</div>

Does the AOT compiler produces class files that are usable not just as standalone scripts, but also to be loaded into a JRuby interpreter? (i.e., require ‘foo.rb’ will load ‘foo.class’) My app uses a few Ruby librari…

---

## [\[Ruby 1.9 - Bug #203\] (Open) net/http sends wrong content-length](https://www.ruby-forum.com/t/ruby-1-9-bug-203-open-net-http-sends-wrong-content-length/141602)

<div class="topic-metadata">

**Author:** [@anonymous](https://www.ruby-forum.com/u/anonymous)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-203-open-net-http-sends-wrong-content-length/141602 "2008-06-27T15:32:41Z")

</div>

e$B%A%1%C%He(B #203 e$B$,Js9p$5$l$^$7$?!#e(B (by Anonymous) Bug #203: net/http sends wrong content-length http://redmine.ruby-lang.org/issues/show/203 e$B5/I\<\<Te(B: Anonymous e$B%9%F!\<%?%9e(B: Open e$BM%@hEYe(B: No…

---

## [System() function is unimplemented](https://www.ruby-forum.com/t/system-function-is-unimplemented/141600)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/system-function-is-unimplemented/141600 "2008-06-27T14:56:20Z")

</div>

e$BK-J!$G$9!#e(B Ruby1.8 e$B$G$9!#e(B e$BM-$j!'e(B systeme$B!"e(Bpopen e$BL5$7!'e(B forke$B7O!"e(Bspawne$B7Oe(B e$B$H$$$&4D6-$Ge(B makee$B!J$?$@$7e(B fork e$B$OI,?$N$h$&$J$N$Ge(B int fork() { rb\_not\_implement(); ret…

---

## [Rosc](https://www.ruby-forum.com/t/rosc/141599)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/rosc/141599 "2008-06-27T14:52:49Z")

</div>

rosc - OpenSound Control for Ruby - version 0.1.3 has been released. This is a bugfix release. The code repository is now at github, though the homepage remains http://hans.fugal.net/src/rosc/

---

## [TkTable](https://www.ruby-forum.com/t/tktable/141575)

<div class="topic-metadata">

**Author:** [@ponravikumar](https://www.ruby-forum.com/u/ponravikumar)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 10:51am UTC](https://www.ruby-forum.com/t/tktable/141575 "2008-06-27T10:51:36Z")

</div>

Hi, I am new to Ruby. I would like to crete a table using Tk gui. I areated the gui with some other components like Button and Text Field. Is there need any require statement for the using Tktable? I want some tips…

---

## [Ruby-plsql gem ported to JRuby](https://www.ruby-forum.com/t/ruby-plsql-gem-ported-to-jruby/141578)

<div class="topic-metadata">

**Author:** [@Raimonds\_Simanovski](https://www.ruby-forum.com/u/Raimonds_Simanovski)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 10:35am UTC](https://www.ruby-forum.com/t/ruby-plsql-gem-ported-to-jruby/141578 "2008-06-27T10:35:16Z")

</div>

Hi all Wanted to announce that I have ported ruby-plsql gem to JRuby and Oracle JDBC driver. ruby-plsql gem provides simple Ruby API for accessing Oracle PL/SQL stored procedures. To learn more about the gem please…

---

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

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 9:05am UTC](https://www.ruby-forum.com/t/regular-expression-question/196726 "2008-06-27T09:05:06Z")

</div>

I’m trying to replace all characters that are not letters numbers and white spaces in a string. I’m getting the characters eliminated in this case a comma but the white space is eliminated to. How do I get around that…

---

## [Code Review: mspec-12](https://www.ruby-forum.com/t/code-review-mspec-12/141556)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 5\
**Last updated:** [June 27, 2008, 8:34am UTC](https://www.ruby-forum.com/t/code-review-mspec-12/141556 "2008-06-27T08:34:04Z")

</div>

tfpt review “/shelveset:mspec-12;REDMOND\\jflam” Fixes to enable RubySpecs running in SNAP Implementation of Kernel#exec Fixes bugs in Kernel#exit! - calling incorrect overload Implementation of Kernel#printf Fixes bug…

---

## [\[Bug:1.9\] test/inlinetest.rb:37:in \`replace': can't modify frozen string (RuntimeError)](https://www.ruby-forum.com/t/bug-1-9-test-inlinetest-rbin-replace-cant-modify-frozen-string-runtimeerror/141576)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 8:13am UTC](https://www.ruby-forum.com/t/bug-1-9-test-inlinetest-rbin-replace-cant-modify-frozen-string-runtimeerror/141576 "2008-06-27T08:13:35Z")

</div>

test-all e$B$,F0$-$^$;$s!#e(B % ./ruby -v ruby 1.9.0 (2008-06-27 revision 17600) \[i686-linux\] % make test-all ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./runruby.rb –extout=.ext – “./test/runner.rb…

---

## [Rubyforge RubyGem propagation delay](https://www.ruby-forum.com/t/rubyforge-rubygem-propagation-delay/135334)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 6\
**Last updated:** [June 27, 2008, 5:44am UTC](https://www.ruby-forum.com/t/rubyforge-rubygem-propagation-delay/135334 "2008-06-27T05:44:49Z")

</div>

Hi, I noticed that when I upload a new gem to Rubyforge, it takes several hours until I can install it via “gem”. If you try within that period you are getting a 404 error (at least here in Germany, maybe the mirror …

---

## [Need to extend a java class in ruby... I must be missing something simple](https://www.ruby-forum.com/t/need-to-extend-a-java-class-in-ruby-i-must-be-missing-something-simple/141567)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 5:37am UTC](https://www.ruby-forum.com/t/need-to-extend-a-java-class-in-ruby-i-must-be-missing-something-simple/141567 "2008-06-27T05:37:47Z")

</div>

Hi, I’m trying to extend a java class in ruby, from everything I’ve read and been told, this should work… but it isn’t. Am I missing something simple? Note: the jar file is in the same directory as the ruby file. j…

---

## [Printing two columns properly](https://www.ruby-forum.com/t/printing-two-columns-properly/141566)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 1\
**Last updated:** [June 27, 2008, 5:20am UTC](https://www.ruby-forum.com/t/printing-two-columns-properly/141566 "2008-06-27T05:20:50Z")

</div>

Just say I have strings that I’ve already written: “a= 340” “abc= 340” “acbfdhdfdf= 340” … I want the output to look like this: “a= 340” “abc= 340” “acbfdhdfdf= 340” Thanks!

---

## [Re: Can your GUI framework do this?](https://www.ruby-forum.com/t/re-can-your-gui-framework-do-this/141451)

<div class="topic-metadata">

**Author:** [@Logan\_B](https://www.ruby-forum.com/u/Logan_B)\
**Replies:** 4\
**Last updated:** [June 27, 2008, 3:02am UTC](https://www.ruby-forum.com/t/re-can-your-gui-framework-do-this/141451 "2008-06-27T03:02:50Z")

</div>

Martin, I’m one of the contributors to Monkeybars, which is our JRuby GUI framework that sits on top of Swing. Here’s how Monkeybars handles this: A component consisting of a series of existing components hooked to…

---

## [Upgrading released JRuby versions to rubygems 1.2](https://www.ruby-forum.com/t/upgrading-released-jruby-versions-to-rubygems-1-2/141506)

<div class="topic-metadata">

**Author:** [@vovka](https://www.ruby-forum.com/u/vovka)\
**Replies:** 1\
**Last updated:** [June 27, 2008, 1:46am UTC](https://www.ruby-forum.com/t/upgrading-released-jruby-versions-to-rubygems-1-2/141506 "2008-06-27T01:46:50Z")

</div>

Hi folks, By now you’ve probably heard some good news about rubygems 1.2, about its major speed up and significant reduction of memory requirements (for me the memory use dropped from 600Mb to 40Mb!). JRuby 1.1.3 will …

---

## [Ruby way to find in an Array the object with a maximun in an attribute?](https://www.ruby-forum.com/t/ruby-way-to-find-in-an-array-the-object-with-a-maximun-in-an-attribute/141551)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 1:38am UTC](https://www.ruby-forum.com/t/ruby-way-to-find-in-an-array-the-object-with-a-maximun-in-an-attribute/141551 "2008-06-27T01:38:48Z")

</div>

Hi, I’ve an Array of objects containing some attributes: class SRV @priority @domain @port end In the Array I have 3 SRV objects: Array\[0\] @priority = 1 @domain = mydomain.com @port = 5060 Array\[1\] @prio…

---

## [Doesn't Resolv support NAPTR queries?](https://www.ruby-forum.com/t/doesnt-resolv-support-naptr-queries/141553)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 0\
**Last updated:** [June 27, 2008, 12:30am UTC](https://www.ruby-forum.com/t/doesnt-resolv-support-naptr-queries/141553 "2008-06-27T00:30:11Z")

</div>

Hi, it seems that Ruby Resolv core library doesn’t support NAPTR queries, but Dnsruby does: http://dnsruby.rubyforge.org/ Any good or bad experince using this Dnsruby class instead of Resolv? Thanks.

---

## [TK padx question](https://www.ruby-forum.com/t/tk-padx-question/141528)

<div class="topic-metadata">

**Author:** [@rubyman](https://www.ruby-forum.com/u/rubyman)\
**Replies:** 1\
**Last updated:** [June 27, 2008, 12:13am UTC](https://www.ruby-forum.com/t/tk-padx-question/141528 "2008-06-27T00:13:48Z")

</div>

Hello, I was wondering if anyone knows how to specify a list of two values for :padx - I have been using “:padx=\>5” for example, in positioning a button widget inside a frame that holds four buttons. I have been read…

---

## [Halcyon 0.5.1 Released!](https://www.ruby-forum.com/t/halcyon-0-5-1-released/141550)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/halcyon-0-5-1-released/141550 "2008-06-26T23:07:02Z")

</div>

Halcyon version 0.5.1 has been released! == DESCRIPTION Halcyon is a framework for developing service-oriented applications. == ANNOUNCEMENT Halcyon has undergone minor improvements and bug fixes, including a new co…

---

## [Code Review: YamlParse2](https://www.ruby-forum.com/t/code-review-yamlparse2/141547)

<div class="topic-metadata">

**Author:** [@Oleg\_T](https://www.ruby-forum.com/u/Oleg_T)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/code-review-yamlparse2/141547 "2008-06-26T23:00:00Z")

</div>

Thanks for your comments, Tomas. Here is another try. tfpt review “/shelveset:YamlParse2;REDMOND\\olegtk” Comment : Implements Bignum support. Refactores constructors hierarchy by decoupling constructors (those buil…

---

## [Re: Code Review: partial1](https://www.ruby-forum.com/t/re-code-review-partial1/141530)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/re-code-review-partial1/141530 "2008-06-26T22:27:06Z")

</div>

Fixed. Try again. JD

---

## [Code Review: MutableStringSqueeze](https://www.ruby-forum.com/t/code-review-mutablestringsqueeze/141459)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/code-review-mutablestringsqueeze/141459 "2008-06-26T22:16:33Z")

</div>

tfpt review “/shelveset:MutableStringSqueeze;REDMOND\\dremy” Comment : Implement String.squeeze and String.squeeze! Passes RubySpec tests. Passes Unit tests.

---

## [A cleaner way to pass a block or proc](https://www.ruby-forum.com/t/a-cleaner-way-to-pass-a-block-or-proc/141462)

<div class="topic-metadata">

**Author:** [@tristincolby](https://www.ruby-forum.com/u/tristincolby)\
**Replies:** 14\
**Last updated:** [June 26, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/a-cleaner-way-to-pass-a-block-or-proc/141462 "2008-06-26T21:48:55Z")

</div>

Is there a cleaner way to implement my add\_notifier method? def add\_notifier(notifier, &block) if block\_given? @notifiers \<\< block else @notifiers \<\< notifier end end def thump raise ArgumentError, “You must add…

---

## [Comparing 2 files](https://www.ruby-forum.com/t/comparing-2-files/141515)

<div class="topic-metadata">

**Author:** [@Aaron\_Scott](https://www.ruby-forum.com/u/Aaron_Scott)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/comparing-2-files/141515 "2008-06-26T21:07:52Z")

</div>

I’m very new to Ruby. I’m wondering if it is possible to compare 2 text files and if those files have any differences in them that I can then automatically send myself an email stating that the 2 files are not the sa…

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/code-review-partial1/141516 "2008-06-26T19:46:45Z")

</div>

tfpt review “/shelveset:partial1;REDMOND\\jdeville” Comment : Run IronRuby.test.exe under regular and partial trust in snap.

---

## [Threads, Queues and possible memory leak](https://www.ruby-forum.com/t/threads-queues-and-possible-memory-leak/141499)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/threads-queues-and-possible-memory-leak/141499 "2008-06-26T19:46:09Z")

</div>

I have a simple thread pool of \[default\] 20 threads running. They read a task from a queue and execute it and then go back to waiting on the queue. Task popped from the queue contains a block and gets executed within …

---

## [V1.9 -rprofile -rdebug errors](https://www.ruby-forum.com/t/v1-9-rprofile-rdebug-errors/141393)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 7\
**Last updated:** [June 26, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/v1-9-rprofile-rdebug-errors/141393 "2008-06-26T19:35:31Z")

</div>

People, After building the latest nightly version of 1.9, when I try to use: ruby -rprofile . . or ruby -rdebug . . I get: :0:in \`require’: no such file to load – debug (LoadError) Is there a configure issue (I co…

---

## [Installation Problems](https://www.ruby-forum.com/t/installation-problems/141523)

<div class="topic-metadata">

**Author:** [@DeVaris\_Brown](https://www.ruby-forum.com/u/DeVaris_Brown)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/installation-problems/141523 "2008-06-26T19:26:12Z")

</div>

Message: 3 Date: Thu, 26 Jun 2008 06:30:17 -0700 From: “John L. (IRONRUBY)” removed\_email\_address@domain.invalid Subject: Re: \[Ironruby-core\] Installation Probs To: “removed\_email\_address@domain.invalid” removed\_emai…

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

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