# Ruby

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

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

---

## [Java 1.4.2 and JRuby 1.1 or 1.2](https://www.ruby-forum.com/t/java-1-4-2-and-jruby-1-1-or-1-2/161665)

<div class="topic-metadata">

**Author:** [@Dan\_Hatfield](https://www.ruby-forum.com/u/Dan_Hatfield)\
**Replies:** 6\
**Last updated:** [March 1, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/java-1-4-2-and-jruby-1-1-or-1-2/161665 "2009-03-01T20:42:17Z")

</div>

Anyone working with JRuby 1.1 or 1.2 under Java 1.4.2 with retro-translator? If so, how’s it working? Care to pass along any hints before I give it a go? Thanks. Dan

---

## [How to put multiple values into a variable](https://www.ruby-forum.com/t/how-to-put-multiple-values-into-a-variable/161659)

<div class="topic-metadata">

**Author:** [@lostbit](https://www.ruby-forum.com/u/lostbit)\
**Replies:** 10\
**Last updated:** [March 1, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/how-to-put-multiple-values-into-a-variable/161659 "2009-03-01T20:36:25Z")

</div>

I am new to coding, I have tried to place a number of data strings into one variable but I am missing something in the format. See example below. Note each part of the line after = does have a real value, I just can’…

---

## [1.9 on OS X](https://www.ruby-forum.com/t/1-9-on-os-x/161717)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 6\
**Last updated:** [March 1, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/1-9-on-os-x/161717 "2009-03-01T20:34:30Z")

</div>

What is the best way to install Ruby 1.9 on Apple OS X? The latest version in fink is 1.8.6, which I’m currently using. I did not see this discussion in the c.l.r archives, but please feel free to point me to them.

---

## [Minitest documentation anywhere?](https://www.ruby-forum.com/t/minitest-documentation-anywhere/161645)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [March 1, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/minitest-documentation-anywhere/161645 "2009-03-01T19:13:37Z")

</div>

Well nuts. Trying to get minimally up to speed with some extremely modest testing and I cannot even get off the ground. I’m going for now with minitest. I found a modest and useful intro. in PickAxe 3rd. But…minitest’…

---

## [Webgen 0.5.7 released](https://www.ruby-forum.com/t/webgen-0-5-7-released/161579)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 3\
**Last updated:** [March 1, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/webgen-0-5-7-released/161579 "2009-03-01T18:04:03Z")

</div>

Hey everybody! webgen 0.5.7 has just been released! If you don’t know what webgen is, read the “What’s webgen?” section down below. This announcement is also available at http://webgen.rubyforge.org/news/release\_0\_5\_…

---

## [Ruby in a Nutshell](https://www.ruby-forum.com/t/ruby-in-a-nutshell/161662)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 6\
**Last updated:** [March 1, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/ruby-in-a-nutshell/161662 "2009-03-01T17:35:15Z")

</div>

I’m thinking of buying & reading Ruby in a Nutshell (O’Reilly, 2001), but am concerned that it may be outdated. The stable version at the time of publication was Ruby 1.6. Is this still worth the investment? I’m rea…

---

## [Can't run ruby commands from windows command prompt](https://www.ruby-forum.com/t/cant-run-ruby-commands-from-windows-command-prompt/161671)

<div class="topic-metadata">

**Author:** [@bwinborg](https://www.ruby-forum.com/u/bwinborg)\
**Replies:** 5\
**Last updated:** [March 1, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/cant-run-ruby-commands-from-windows-command-prompt/161671 "2009-03-01T17:23:20Z")

</div>

I have installed ruby186-27\_rc2.exe on windows XP. I have installed it as user with admin permissions, and as the administrator. I uninstalled it program completely removing all entries from registry. removing ruby di…

---

## [How to use the Dir class, search for a sub directroy](https://www.ruby-forum.com/t/how-to-use-the-dir-class-search-for-a-sub-directroy/161711)

<div class="topic-metadata">

**Author:** [@lostbit](https://www.ruby-forum.com/u/lostbit)\
**Replies:** 6\
**Last updated:** [March 1, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/how-to-use-the-dir-class-search-for-a-sub-directroy/161711 "2009-03-01T16:45:31Z")

</div>

Good day, I am learning Ruby,and doing some experaments. I have a bit of code that searches the header of MP3 files in a folder to get file 1 artist name. This is a variable artist. Now I try to search a diferent dire…

---

## [Linux headers](https://www.ruby-forum.com/t/linux-headers/161693)

<div class="topic-metadata">

**Author:** [@Krister\_Johnson](https://www.ruby-forum.com/u/Krister_Johnson)\
**Replies:** 0\
**Last updated:** [March 1, 2009, 5:59am UTC](https://www.ruby-forum.com/t/linux-headers/161693 "2009-03-01T05:59:54Z")

</div>

I’m using rake to install rubygame and I’m running into an error where ruby.h cannot be found. I’ve never understood - where does rake look for this header file? And are the dev headers distributed separately? I’m run…

---

## [Xml-rpc calling question](https://www.ruby-forum.com/t/xml-rpc-calling-question/161657)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 1, 2009, 2:18am UTC](https://www.ruby-forum.com/t/xml-rpc-calling-question/161657 "2009-03-01T02:18:24Z")

</div>

I am trying to understand the XMLRPC client library and how to use it properly. I have looked at some of the examples and they area always add these two numbers together. I need help in writing a client with a complex…

---

## [Double colons in class def](https://www.ruby-forum.com/t/double-colons-in-class-def/161687)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 2\
**Last updated:** [March 1, 2009, 2:17am UTC](https://www.ruby-forum.com/t/double-colons-in-class-def/161687 "2009-03-01T02:17:13Z")

</div>

In this phrase: class IterString \< ::String whatever end what do the double-colons do? Thx - m.

---

## [JRoR: Co-existing with Java/Hibernate back end](https://www.ruby-forum.com/t/jror-co-existing-with-java-hibernate-back-end/161363)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 6\
**Last updated:** [March 1, 2009, 12:14am UTC](https://www.ruby-forum.com/t/jror-co-existing-with-java-hibernate-back-end/161363 "2009-03-01T00:14:17Z")

</div>

I submitted this through the Web forum interface and never saw it come through on the list, so I wasn’t sure if it made it through. So I’m reposting it here. Could be that it made it through and it’s a crappy quest…

---

## [Get key pressed](https://www.ruby-forum.com/t/get-key-pressed/161610)

<div class="topic-metadata">

**Author:** [@amichelin](https://www.ruby-forum.com/u/amichelin)\
**Replies:** 7\
**Last updated:** [February 28, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/get-key-pressed/161610 "2009-02-28T21:50:58Z")

</div>

Hi i need to now how to get a key pressed. I have a tcpserver, and i want to get if the user press control + x. If the users press control + x i make the shutdown. Can you give my some ligth?

---

## [Block reading from socket and STDIN](https://www.ruby-forum.com/t/block-reading-from-socket-and-stdin/197217)

<div class="topic-metadata">

**Author:** [@massimiliano](https://www.ruby-forum.com/u/massimiliano)\
**Replies:** 3\
**Last updated:** [February 28, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/block-reading-from-socket-and-stdin/197217 "2009-02-28T21:42:10Z")

</div>

Hi I am pretty new in ruby, may be this topic has already been discussed here. But I start running out of resources. I am on a Windows XP PC and I am using ruby186-26. I am writing a client/Multiplexing Server socket …

---

## [Any plans for a "OneClickInstaller for Ruby 1.9.1?](https://www.ruby-forum.com/t/any-plans-for-a-oneclickinstaller-for-ruby-1-9-1/161472)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 9\
**Last updated:** [February 28, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/any-plans-for-a-oneclickinstaller-for-ruby-1-9-1/161472 "2009-02-28T19:43:40Z")

</div>

TWIMC, Is there any plans for a "OneClickInstaller for Ruby 1.9.1? Thank you

---

## [Recommended way](https://www.ruby-forum.com/t/recommended-way/161646)

<div class="topic-metadata">

**Author:** [@jeanlazarou](https://www.ruby-forum.com/u/jeanlazarou)\
**Replies:** 1\
**Last updated:** [February 28, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/recommended-way/161646 "2009-02-28T16:46:46Z")

</div>

I am using some layout manager implemented in Java, say FlowLayout. I need to add methods used only at window creation time, I can either do something like class MyLayout \< java.awt.FlowLayout def setOption x … end …

---

## [Signal is ignored after Process.daemon](https://www.ruby-forum.com/t/signal-is-ignored-after-process-daemon/160784)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [February 28, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/signal-is-ignored-after-process-daemon/160784 "2009-02-28T15:08:06Z")

</div>

e$B1sF#$G$9!#e(B Process.daemon e$B$r8F$V$H%7%0%J%k$,\<uM}$5$l$J$/$J$k$h$&$J$s$G$9$,!"e(B e$B$3$l$O$=$&$$$&$b$N$G$7$g$&$+!#e(B $ ruby19 -ve ‘Process.daemon; sleep’ ruby 1.9.2dev (2009-02-19 trunk 22454) \[i686-linux\] $…

---

## [Doubt in -- Ruby --\> Array --\> array.display -- method](https://www.ruby-forum.com/t/doubt-in-ruby-array-array-display-method/161653)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 1\
**Last updated:** [February 28, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/doubt-in-ruby-array-array-display-method/161653 "2009-02-28T14:09:04Z")

</div>

Hi All, I created few (array’s method related) questions in ruby. But I am not clear about one question. Here is the question … Question 7 (from Ruby — Array related Excercise – Raveendran) @a=\[34,45,56,2,13,54\] @…

---

## [LDAP library](https://www.ruby-forum.com/t/ldap-library/161442)

<div class="topic-metadata">

**Author:** [@Hirotsugu\_A](https://www.ruby-forum.com/u/Hirotsugu_A)\
**Replies:** 4\
**Last updated:** [February 28, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/ldap-library/161442 "2009-02-28T14:02:17Z")

</div>

Hi. I wanted to gauge the general feeling of the community towards LDAP. Do you use LDAP from JRuby? If so, which library do you use: jruby- ldap, ruby-net-ldap, or something else? I spent some time looking at implem…

---

## [Seeking (paid) assistence in integrating jruby, jetty, rails with spring 3 & JDK1.5](https://www.ruby-forum.com/t/seeking-paid-assistence-in-integrating-jruby-jetty-rails-with-spring-3-jdk1-5/161614)

<div class="topic-metadata">

**Author:** [@M\_C](https://www.ruby-forum.com/u/M_C)\
**Replies:** 3\
**Last updated:** [February 28, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/seeking-paid-assistence-in-integrating-jruby-jetty-rails-with-spring-3-jdk1-5/161614 "2009-02-28T12:04:17Z")

</div>

I am interested at providing a JRuby/Rails 2.3-based webgui for a Java 5+/Spring 3.0(M1)+ application using Jetty 6.1+ as an embedded web server. The major problems is to register and configure jetty with rails as a …

---

## [Updating multiple records for a single model in single form](https://www.ruby-forum.com/t/updating-multiple-records-for-a-single-model-in-single-form/161642)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [February 28, 2009, 10:36am UTC](https://www.ruby-forum.com/t/updating-multiple-records-for-a-single-model-in-single-form/161642 "2009-02-28T10:36:16Z")

</div>

Hello All, I am new to ruby, so please excuse me. problem is -------- I have a model named “Album” I want to update all records from “albums” table in a single form and single button “Update”. my code for view — \<%…

---

## [Nanoc 2.1.6](https://www.ruby-forum.com/t/nanoc-2-1-6/161644)

<div class="topic-metadata">

**Author:** [@dddennisdennis734](https://www.ruby-forum.com/u/dddennisdennis734)\
**Replies:** 0\
**Last updated:** [February 28, 2009, 9:35am UTC](https://www.ruby-forum.com/t/nanoc-2-1-6/161644 "2009-02-28T09:35:57Z")

</div>

Hi. nanoc 2.1.6 has been released. This release fixes a handful of bugs and improves compatibility with third-party utilities. For a full list of changes, see the 2.1.6 release blog post at \<http://nanoc.stoneship.or…

---

## [Conversion aid for 1.8.7 to 1.9.x transition?](https://www.ruby-forum.com/t/conversion-aid-for-1-8-7-to-1-9-x-transition/161488)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [February 28, 2009, 9:16am UTC](https://www.ruby-forum.com/t/conversion-aid-for-1-8-7-to-1-9-x-transition/161488 "2009-02-28T09:16:40Z")

</div>

It seems odd that I’ve not seen this question here before, but maybe I missed it (or just don’t get it on some deeper level!): My current project require some libraries (e.g., CSV) that have been altered in 1.9. It’s …

---

## [Warble duplicate jar files](https://www.ruby-forum.com/t/warble-duplicate-jar-files/161343)

<div class="topic-metadata">

**Author:** [@asmodi](https://www.ruby-forum.com/u/asmodi)\
**Replies:** 4\
**Last updated:** [February 28, 2009, 4:46am UTC](https://www.ruby-forum.com/t/warble-duplicate-jar-files/161343 "2009-02-28T04:46:07Z")

</div>

I am running warbler 0.9.12 with Rails 2.2.2 and I have added jar files to lib/java. Uncommenting the following line in config/warble.rb causes these jar files to appear twice in the war file, under WEB-INF/lib and …

---

## [\[ANN\] Rumai 2.0.2](https://www.ruby-forum.com/t/ann-rumai-2-0-2/161484)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 3\
**Last updated:** [February 28, 2009, 3:10am UTC](https://www.ruby-forum.com/t/ann-rumai-2-0-2/161484 "2009-02-28T03:10:03Z")

</div>

Rumai 2.0.2 Ruby interface to the wmii window manager http://snk.tuxfamily.org/lib/rumai Rumai is a \[1\]Ruby interface to the \[2\]wmii window manager. Version 2.0.2 (2009-02…

---

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

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [February 28, 2009, 2:57am UTC](https://www.ruby-forum.com/t/code-review-assemblydeps/161632 "2009-02-28T02:57:10Z")

</div>

tfpt review “/shelveset:assemblydeps;REDMOND\\tomat” Implements loading of assembly dependencies. The approach is similer to IronPython’s one: hooking AssemblyResolve event and searching for assemblies in load paths. I…

---

## [Realrand 1.0.3 released](https://www.ruby-forum.com/t/realrand-1-0-3-released/161615)

<div class="topic-metadata">

**Author:** [@Maik\_Schmidt](https://www.ruby-forum.com/u/Maik_Schmidt)\
**Replies:** 1\
**Last updated:** [February 28, 2009, 2:21am UTC](https://www.ruby-forum.com/t/realrand-1-0-3-released/161615 "2009-02-28T02:21:30Z")

</div>

Yo! I have released a new version of my realrand gem some days ago. RealRand hides different online services for generating real random numbers (those that can be derived from natural processes such as lava lamps or …

---

## [Importing Java packages](https://www.ruby-forum.com/t/importing-java-packages/161582)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [February 28, 2009, 1:39am UTC](https://www.ruby-forum.com/t/importing-java-packages/161582 "2009-02-28T01:39:55Z")

</div>

JRuby 1.1.6 Just a quick verify: It appears that I can’t do: import java.lang.\* but only import specific classes, as in import java.lang.System, for example. Actually, this is pretty much fine with me, as I’m a “sp…

---

## [Simple daemon which can speak and listen](https://www.ruby-forum.com/t/simple-daemon-which-can-speak-and-listen/161497)

<div class="topic-metadata">

**Author:** [@sai](https://www.ruby-forum.com/u/sai)\
**Replies:** 4\
**Last updated:** [February 27, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/simple-daemon-which-can-speak-and-listen/161497 "2009-02-27T22:56:17Z")

</div>

Hi all. According to you, what could be the more sexy way to write a simple Ruby daemon (version 1.9 :)) which can speak and listen in the same time on a socket (UDP in my case)? Thanks, Sai

---

## [Little prob with Date.strptime](https://www.ruby-forum.com/t/little-prob-with-date-strptime/161620)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/little-prob-with-date-strptime/161620 "2009-02-27T22:50:37Z")

</div>

hello for some reason, the Date.strptime is mixing up my date. pl see here. the date changs from “6/13/2008” to “2020-06-13” irb(main):001:0\> require ‘date’ =\> true irb(main):006:0\> entry=“6/13/2008” =\> “6/13/2008…

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

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