# Ruby

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

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

---

## [Issue with Rails 2.2.2 + Jruby for mysql adapter](https://www.ruby-forum.com/t/issue-with-rails-2-2-2-jruby-for-mysql-adapter/154264)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 7\
**Last updated:** [December 2, 2008, 4:13am UTC](https://www.ruby-forum.com/t/issue-with-rails-2-2-2-jruby-for-mysql-adapter/154264 "2008-12-02T04:13:31Z")

</div>

I am trying to create a simple Rails 2.2.2 app using jruby 1.1.5. The application is using mysql DB. The gems installed are: $jruby -S gem list \*\*\* LOCAL GEMS \*\*\* actionmailer (2.2.2) actionpack (2.2.2) activerecor…

---

## [How to access third-party Java libraries from JRuby?](https://www.ruby-forum.com/t/how-to-access-third-party-java-libraries-from-jruby/154256)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 7\
**Last updated:** [December 2, 2008, 3:38am UTC](https://www.ruby-forum.com/t/how-to-access-third-party-java-libraries-from-jruby/154256 "2008-12-02T03:38:54Z")

</div>

I’m attempting to use MigLayout (http://www.migcalendar.com/ miglayout/) from JRuby. I’ve placed the .jar file in my Java extensions folder, but the problem occurs when I try to access the main class: PANEL = javax.s…

---

## [Question about the system method](https://www.ruby-forum.com/t/question-about-the-system-method/154568)

<div class="topic-metadata">

**Author:** [@Jarod\_Z](https://www.ruby-forum.com/u/Jarod_Z)\
**Replies:** 2\
**Last updated:** [December 2, 2008, 2:45am UTC](https://www.ruby-forum.com/t/question-about-the-system-method/154568 "2008-12-02T02:45:40Z")

</div>

Hi, all I want to use system method to run a background process, like system("ruby deamon.rb") # the deamon.rb runs a dead loop When my main process ends, I want to end the background process too. How can I do i…

---

## [Design suggestion for translations/mappings from xml](https://www.ruby-forum.com/t/design-suggestion-for-translations-mappings-from-xml/154272)

<div class="topic-metadata">

**Author:** [@fozbaca](https://www.ruby-forum.com/u/fozbaca)\
**Replies:** 5\
**Last updated:** [December 2, 2008, 2:19am UTC](https://www.ruby-forum.com/t/design-suggestion-for-translations-mappings-from-xml/154272 "2008-12-02T02:19:56Z")

</div>

Hi, i’ve got an xml file i’m parsing and creating objects from. The xml is not named, nor formatted like my objects, so i need to define a bunch of mappings/translations. I’m looking for any design patterns or suggest…

---

## [Adventures in Optimization...Optimizing the stuff you didn't write!](https://www.ruby-forum.com/t/adventures-in-optimization-optimizing-the-stuff-you-didnt-write/154595)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 2:09am UTC](https://www.ruby-forum.com/t/adventures-in-optimization-optimizing-the-stuff-you-didnt-write/154595 "2008-12-02T02:09:17Z")

</div>

The heart of Optimization is Benchmarking. Measure, measure, measure! So I found couple of really promising optimizations… … but they made hardly any difference. End to end, the process took just as many hours to wit…

---

## [Adventures in Optimization.. When a Ruby primitive is the Hog](https://www.ruby-forum.com/t/adventures-in-optimization-when-a-ruby-primitive-is-the-hog/154593)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 1:10am UTC](https://www.ruby-forum.com/t/adventures-in-optimization-when-a-ruby-primitive-is-the-hog/154593 "2008-12-02T01:10:12Z")

</div>

So you’ve run your code with -rprofile or require ‘profile’ And the answer was IO.each\_line Which is a bit like saying the answer to the Question of Life, the Universe and Everything is “42”. a) You’ve used IO.each\_l…

---

## [Some benchmarks with MinGW, JRuby, MSVC](https://www.ruby-forum.com/t/some-benchmarks-with-mingw-jruby-msvc/154492)

<div class="topic-metadata">

**Author:** [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Replies:** 6\
**Last updated:** [December 2, 2008, 12:24am UTC](https://www.ruby-forum.com/t/some-benchmarks-with-mingw-jruby-msvc/154492 "2008-12-02T00:24:39Z")

</div>

So, I have managed to build several different versions of Ruby to compare all in some benchmarks. I am going to let the numbers talk for themselves. It was all tested on an old desktop computer with Windows XP, so I …

---

## [Multi-Index Containers](https://www.ruby-forum.com/t/multi-index-containers/154557)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 3\
**Last updated:** [December 1, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/multi-index-containers/154557 "2008-12-01T23:25:59Z")

</div>

Does anyone know of a multi-index container library for Ruby? I just want to check before I put it on my personal TODO list. By multi-index, I mean a container which will index its contained objects by more than one …

---

## [Ruby-prof on freebsd](https://www.ruby-forum.com/t/ruby-prof-on-freebsd/154587)

<div class="topic-metadata">

**Author:** [@SSDanielSS](https://www.ruby-forum.com/u/SSDanielSS)\
**Replies:** 0\
**Last updated:** [December 1, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/ruby-prof-on-freebsd/154587 "2008-12-01T23:16:00Z")

</div>

$ ruby-prof --mode memory test.rb /usr/local/lib/ruby/gems/1.8/gems/ruby-prof-0.7.1/bin/ruby-prof:170: \[BUG\] Segmentation fault ruby 1.8.6 (2008-08-11) \[i386-freebsd7\] Abort trap: 6 $ cat test.rb class Dir def se…

---

## [Prepared statement support in AR under JRuby](https://www.ruby-forum.com/t/prepared-statement-support-in-ar-under-jruby/154574)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [December 1, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/prepared-statement-support-in-ar-under-jruby/154574 "2008-12-01T22:34:56Z")

</div>

All, I’ve been doing some Googling and there are references to the ability to do prepared DB statements in JRuby. But I can’t figure out if it really exists, and if so, is in core JRuby, or some JRuby extras project …

---

## [Object private methods](https://www.ruby-forum.com/t/object-private-methods/154582)

<div class="topic-metadata">

**Author:** [@vespasian](https://www.ruby-forum.com/u/vespasian)\
**Replies:** 1\
**Last updated:** [December 1, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/object-private-methods/154582 "2008-12-01T22:32:00Z")

</div>

Consider the following, class X end X.private\_methods == Object.private\_methods. Since X implicitly extends Object, then how does X inherit Object’s private methods, since the documentation states that Subclasses in…

---

## [Wish list item: Method#to\_proc](https://www.ruby-forum.com/t/wish-list-item-method-to-proc/153919)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [December 1, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/wish-list-item-method-to-proc/153919 "2008-12-01T20:59:29Z")

</div>

would this be useful/theoretically possible? UnboundMethod#to\_proc Thanks! -=R

---

## [Script using Swing works from NetBeans, but not from command line. Any ideas why?](https://www.ruby-forum.com/t/script-using-swing-works-from-netbeans-but-not-from-command-line-any-ideas-why/154569)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/script-using-swing-works-from-netbeans-but-not-from-command-line-any-ideas-why/154569 "2008-12-01T19:53:47Z")

</div>

I’m assuming I’m missing a library or something. The error output is: file:/usr/local/jruby/lib/jruby.jar!/builtin/javasupport/proxy/ concrete.rb:6:in new': expected \[java.awt.event.ActionListener\]; got: \[org.jruby.Rub…

---

## [First GUI application using TK](https://www.ruby-forum.com/t/first-gui-application-using-tk/154439)

<div class="topic-metadata">

**Author:** [@cozzaamara](https://www.ruby-forum.com/u/cozzaamara)\
**Replies:** 2\
**Last updated:** [December 1, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/first-gui-application-using-tk/154439 "2008-12-01T19:40:12Z")

</div>

Hi guys, for first sorry for my english. I’m a newbie with Ruby and i was trying to make a simple script using “Tk” I’ve installed Ruby 1.8.6 and ActiveTcl 8.5.5 but when i try to execute this code require ‘tk’ hel…

---

## [Explanation on some code](https://www.ruby-forum.com/t/explanation-on-some-code/154545)

<div class="topic-metadata">

**Author:** [@mjand](https://www.ruby-forum.com/u/mjand)\
**Replies:** 5\
**Last updated:** [December 1, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/explanation-on-some-code/154545 "2008-12-01T19:25:38Z")

</div>

Hi, Today i looked at ruby for the first time. I can’t quite figure out what this code is. Could someone give me an explanation. FILES = { ‘some\_file.html’ =\> \[ ‘Some text’, ‘Some more text’ \], ‘some\_other\_file.…

---

## [How to compile JRuby to standalone binary?](https://www.ruby-forum.com/t/how-to-compile-jruby-to-standalone-binary/154562)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [December 1, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/how-to-compile-jruby-to-standalone-binary/154562 "2008-12-01T19:02:33Z")

</div>

I have a JRuby file I’d like to compile to a standalone binary (at least to the degree that the user just needs to say “java foo.jar”), but can’t spot a section on this in the docs. At the moment, I’m just running th…

---

## [HTTP Proxy problem in SOAP based webservice](https://www.ruby-forum.com/t/http-proxy-problem-in-soap-based-webservice/154560)

<div class="topic-metadata">

**Author:** [@keith2koool](https://www.ruby-forum.com/u/keith2koool)\
**Replies:** 0\
**Last updated:** [December 1, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/http-proxy-problem-in-soap-based-webservice/154560 "2008-12-01T17:25:17Z")

</div>

While accessing my application through a proxy bypassed system, the application runs fine, but on a proxy configured machine its gives me a timed out error. Below is the pseudo code of what i am trying… factory …

---

## [ApressDailyDeal - Practical Ruby Projects](https://www.ruby-forum.com/t/apressdailydeal-practical-ruby-projects/154541)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 2\
**Last updated:** [December 1, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/apressdailydeal-practical-ruby-projects/154541 "2008-12-01T16:06:01Z")

</div>

Disclaimer: I’m not associated with Apress. Apress has a Daily Deal, one eBook for 24 hours for $10. Today’s is Practical Ruby Projects by Topher Cyll. More information here: http://www.apress.com/book/view/1590599…

---

## [1.9 onwards (planned) runtime changes](https://www.ruby-forum.com/t/1-9-onwards-planned-runtime-changes/154550)

<div class="topic-metadata">

**Author:** [@Rainer\_Frey](https://www.ruby-forum.com/u/Rainer_Frey)\
**Replies:** 0\
**Last updated:** [December 1, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/1-9-onwards-planned-runtime-changes/154550 "2008-12-01T15:41:13Z")

</div>

Hi, as I could not find any reference in recent postings, please allow for this question: is there any web site that lists planned and current changes in the C Ruby runtime for Ruby 1.9 and onwards? I’m especially…

---

## [TEENY version in trunk](https://www.ruby-forum.com/t/teeny-version-in-trunk/152128)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 2\
**Last updated:** [December 1, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/teeny-version-in-trunk/152128 "2008-12-01T15:25:18Z")

</div>

Yuguie$B$G$9!#e(B ruby\_1\_9\_1e$B%V%i%s%A$r:n$j$7$^$7$F!"$=$A$i$G$O%P!\<%8%g%sHV9f$re(B1.9.1e$B$K\>e$2e(B e$B$^$7$?!#0lJ}e(Btrunke$B$Oe(B1.9.0e$B$N$^$^$G$9!#e(B trunke$B$N$\[$&$,\>.$5$$$N$O7y$J$N$Ge(B1.9.2e$B$K\>e$2$h$&$H$$$&…

---

## [A problem with warbler](https://www.ruby-forum.com/t/a-problem-with-warbler/152857)

<div class="topic-metadata">

**Author:** [@khaled.habache](https://www.ruby-forum.com/u/khaled.habache)\
**Replies:** 3\
**Last updated:** [December 1, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/a-problem-with-warbler/152857 "2008-12-01T14:50:38Z")

</div>

Hi, I’m trying : jruby -S warble war --trace , am getting this: cp /home/khelll/projects/jruby/lib/ruby/gems/1.8/specifications/jruby-ldap-0.0.1.gemspec tmp/war/WEB-INF/gems/specifications/jruby-ldap-0.0.1.gemspec r…

---

## [\[ANN\] Ruby 1.9.1 Preview 2$B%j%j!\<%9(B](https://www.ruby-forum.com/t/ann-ruby-1-9-1-preview-2-b-j-j-9-b/154544)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 0\
**Last updated:** [December 1, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/ann-ruby-1-9-1-preview-2-b-j-j-9-b/154544 "2008-12-01T14:41:45Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yuguie$B$G$9!#e(B Ruby 1.9.1 Preview 2e$B$r%j%j!\<%9$7$^$7$?!#e(B e$B$3$l$O!"e(BRuby 1.9e$B7OE}=i$N0BDjHG$H$J$ke(BRuby 1.9.1e$B$N%W%l%S%e!\<%j%j!\<%9$G$9!#e(B e$B$b$7%P%0$…

---

## [How do you find an item that satisfies multiple conditions?](https://www.ruby-forum.com/t/how-do-you-find-an-item-that-satisfies-multiple-conditions/154540)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/how-do-you-find-an-item-that-satisfies-multiple-conditions/154540 "2008-12-01T13:54:47Z")

</div>

I know that to find an item that satisfies one condition, it’s this: @items.find {|item| item.product == product } I thought I could try this to check that an item satisfies multiple conditions: @items.find {|item| …

---

## [Using File:Stat.mode method to find file permissions in Unix](https://www.ruby-forum.com/t/using-file-stat-mode-method-to-find-file-permissions-in-unix/154537)

<div class="topic-metadata">

**Author:** [@viikiin](https://www.ruby-forum.com/u/viikiin)\
**Replies:** 2\
**Last updated:** [December 1, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/using-file-stat-mode-method-to-find-file-permissions-in-unix/154537 "2008-12-01T13:25:31Z")

</div>

Hi, I am trying to find the permissions on a file, using mode method of File:Stat. Code : s = File.stat(file\_name) p s.mode For a file having 777 permissions, this prints : 16895 Any Idea on what does this number …

---

## [Help me understand how this block works?](https://www.ruby-forum.com/t/help-me-understand-how-this-block-works/154493)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 10\
**Last updated:** [December 1, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/help-me-understand-how-this-block-works/154493 "2008-12-01T13:14:48Z")

</div>

Hello - I’m working through a tutorial and Ive come across a line of code that I do not understand. The program basically takes a roman number value and converts it to its integer counterpart. Here is the line: rom…

---

## [Bacon 1.1, a small RSpec clone](https://www.ruby-forum.com/t/bacon-1-1-a-small-rspec-clone/154477)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/bacon-1-1-a-small-rspec-clone/154477 "2008-12-01T12:58:27Z")

</div>

Hello, Today I’m proud to release Bacon 1.1. November 30th, 2008: Third public release 1.1. Nested before/after. Add -Q/–no-backtraces to not show details about failed specifications. Add Knock output. Bug fixes. …

---

## [Where can I download ruby rdoc?](https://www.ruby-forum.com/t/where-can-i-download-ruby-rdoc/154512)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [December 1, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/where-can-i-download-ruby-rdoc/154512 "2008-12-01T12:47:49Z")

</div>

I downloaded and installed ruby in a Windows XP system but I couldn’t find the rdoc. I can view it online but I want to download it to my computer. Where can I find the download link?

---

## [Aaron Bedra@Relevance Inc fraudulently claiming ownership of BSD licensed code -- how to protect?](https://www.ruby-forum.com/t/aaron-bedra-relevance-inc-fraudulently-claiming-ownership-of-bsd-licensed-code-how-to-protect/154490)

<div class="topic-metadata">

**Author:** [@Rudi\_C](https://www.ruby-forum.com/u/Rudi_C)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/aaron-bedra-relevance-inc-fraudulently-claiming-ownership-of-bsd-licensed-code-how-to-protect/154490 "2008-12-01T12:42:33Z")

</div>

Hi everybody, I have been programming open source for about fifteen years and have many projects, including a small contribution to the Linux kernel and Ruby. I had the singularly unpleasant experience for the first …

---

## [Will Tk still be standard in 1.9?](https://www.ruby-forum.com/t/will-tk-still-be-standard-in-1-9/154510)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 1\
**Last updated:** [December 1, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/will-tk-still-be-standard-in-1-9/154510 "2008-12-01T12:36:25Z")

</div>

I realize there’s a lot of GUI options when using Ruby, and there’s also a lot of opinions on which ones are the best - but I’m trying to find one that will be as “standard” and easily available as possible. I believe…

---

## [Form Controls for User interface in a Database Application](https://www.ruby-forum.com/t/form-controls-for-user-interface-in-a-database-application/154514)

<div class="topic-metadata">

**Author:** [@rapido](https://www.ruby-forum.com/u/rapido)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/form-controls-for-user-interface-in-a-database-application/154514 "2008-12-01T12:30:16Z")

</div>

Is there an IDE for Ruby where i can drag n drop Grid Controls, COmbo Box, textbox etc in designing a user interface, just like in windows VB and C#?

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

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