# Ruby

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

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

---

## [Parsing a nested set another way](https://www.ruby-forum.com/t/parsing-a-nested-set-another-way/166478)

<div class="topic-metadata">

**Author:** [@aneeley](https://www.ruby-forum.com/u/aneeley)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 1:46am UTC](https://www.ruby-forum.com/t/parsing-a-nested-set-another-way/166478 "2009-04-27T01:46:31Z")

</div>

Hello, new user here. I am trying to render a nested set a certain way. I have code that renders it as a list. But I want to render it another way that I know is possible, but just can’t figure out how to do it. (Look…

---

## [Iconv (& sqlite) problems on Leopard: Ruby 1.9.1/Rails 2.3.2](https://www.ruby-forum.com/t/iconv-sqlite-problems-on-leopard-ruby-1-9-1-rails-2-3-2/166529)

<div class="topic-metadata">

**Author:** [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 12:16am UTC](https://www.ruby-forum.com/t/iconv-sqlite-problems-on-leopard-ruby-1-9-1-rails-2-3-2/166529 "2009-04-27T00:16:59Z")

</div>

I have both a PPC Mac and an Intel Mac, and I recently installed Ruby 1.9.1 from source on both the same way, and Rails 2.3.2. I’m trying to run a Rails app locally that’s set to use sqlite3. This is a side question, …

---

## [Re: Newbie help, please](https://www.ruby-forum.com/t/re-newbie-help-please/166525)

<div class="topic-metadata">

**Author:** [@peterz](https://www.ruby-forum.com/u/peterz)\
**Replies:** 0\
**Last updated:** [April 26, 2009, 10:03pm UTC](https://www.ruby-forum.com/t/re-newbie-help-please/166525 "2009-04-26T22:03:51Z")

</div>

Mike W. wrote: Hello all, I am a complete novice to programming. I have chosen Ruby as my first language. I am attempting to follow some tutorials in a book I have. However, I am running into some errors, and can n…

---

## [Newbie help, please](https://www.ruby-forum.com/t/newbie-help-please/166523)

<div class="topic-metadata">

**Author:** [@vh1](https://www.ruby-forum.com/u/vh1)\
**Replies:** 3\
**Last updated:** [April 26, 2009, 10:02pm UTC](https://www.ruby-forum.com/t/newbie-help-please/166523 "2009-04-26T22:02:05Z")

</div>

Hello all, I am a complete novice to programming. I have chosen Ruby as my first language. I am attempting to follow some tutorials in a book I have. However, I am running into some errors, and can not figure out why…

---

## [JRuby Threading and Database Connection](https://www.ruby-forum.com/t/jruby-threading-and-database-connection/166519)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [April 26, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/jruby-threading-and-database-connection/166519 "2009-04-26T21:00:56Z")

</div>

Hi! I’ve the following error within a thread in my jruby on rails application: spawn thread and catch/rescue exceptions spawn do begin Java::checkout.Files.main main\_args.to\_java :String @ver…

---

## [Fixes hexdigest and digest specs (SHA1)](https://www.ruby-forum.com/t/fixes-hexdigest-and-digest-specs-sha1/166517)

<div class="topic-metadata">

**Author:** [@jirapong](https://www.ruby-forum.com/u/jirapong)\
**Replies:** 0\
**Last updated:** [April 26, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/fixes-hexdigest-and-digest-specs-sha1/166517 "2009-04-26T20:03:02Z")

</div>

http://github.com/Jirapong/ironruby/commit/de4e34e1530b382e5e76b484d5e6ba4b2322667a This should make digest and hexgest spec passed, however it only support SHA1. I’m going to create more spec for other encode methods. …

---

## [Concurrent GEM for Ruby?](https://www.ruby-forum.com/t/concurrent-gem-for-ruby/166486)

<div class="topic-metadata">

**Author:** [@jamesl](https://www.ruby-forum.com/u/jamesl)\
**Replies:** 7\
**Last updated:** [April 26, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/concurrent-gem-for-ruby/166486 "2009-04-26T19:05:01Z")

</div>

Hi, I’m wondering if anyone would like to see a Concurrent Library for Ruby, like the Java javax.concurrent library ? I know you can just use this library from jruby, but Im thinking more of a idiomatic Ruby library,…

---

## [Overriding eql? and hash](https://www.ruby-forum.com/t/overriding-eql-and-hash/166501)

<div class="topic-metadata">

**Author:** [@cesardiaz](https://www.ruby-forum.com/u/cesardiaz)\
**Replies:** 2\
**Last updated:** [April 26, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/overriding-eql-and-hash/166501 "2009-04-26T16:53:52Z")

</div>

Hi, I am working in an application and I need to store my own objects in some collections. I was using instances of Array to store that objects, but now, I need not to store duplicated instances. Searching the Web I …

---

## [Odd Ruby/Rubygems/gem path problem](https://www.ruby-forum.com/t/odd-ruby-rubygems-gem-path-problem/166413)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 6\
**Last updated:** [April 26, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/odd-ruby-rubygems-gem-path-problem/166413 "2009-04-26T15:09:38Z")

</div>

I’ve spent too much time trying to solve this little problem. I wonder if you can help: I work on a Mac OS X Leopard. I recently started using a different account as my primary login. Things that shouldnt have, starte…

---

## [Vit-ruby.ico (icon file) released](https://www.ruby-forum.com/t/vit-ruby-ico-icon-file-released/196951)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 26, 2009, 2:05pm UTC](https://www.ruby-forum.com/t/vit-ruby-ico-icon-file-released/196951 "2009-04-26T14:05:53Z")

</div>

Hello, my name is Dice. I’m rubyist in Japan. I have released vit-ruby.ico. It an Windows icon file which made from Ruby logo kit. Original Ruby logo kit was made by Ruby Visual Identity Team. http://rubyidentity.org…

---

## [Vit-ruby.ico (icon file) released](https://www.ruby-forum.com/t/vit-ruby-ico-icon-file-released/166503)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 26, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/vit-ruby-ico-icon-file-released/166503 "2009-04-26T12:56:30Z")

</div>

Hello, my name is Dice. I’m rubyist in Japan. I have released vit-ruby.ico. It an Windows icon file which made from Ruby logo kit. Original Ruby logo kit was made by Ruby Visual Identity Team. http://rubyidentity.org…

---

## [Bug when daemonizing](https://www.ruby-forum.com/t/bug-when-daemonizing/161962)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 26, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/bug-when-daemonizing/161962 "2009-04-26T12:00:44Z")

</div>

e$B$k$S$-$A$G$9!#e(B e$B860xITL@$J$N$G%“%W%j%1!\<%7%g%s$NNc$G?=$7Lu$”$j$^$;$s!#e(B rcodetools (gem install rcodetools) e$BFb$Ke(B rct-fork / rct-fork-client e$B$H$$$&%i%$%V%i%j%m!\<%I$N%\*!\<%P!\<%X%C%I$rM^@)$9$k%9%/%j%W%…

---

## [Rack 1.0, a modular Ruby webserver interface](https://www.ruby-forum.com/t/rack-1-0-a-modular-ruby-webserver-interface/166456)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 4\
**Last updated:** [April 26, 2009, 11:01am UTC](https://www.ruby-forum.com/t/rack-1-0-a-modular-ruby-webserver-interface/166456 "2009-04-26T11:01:34Z")

</div>

Hello, Today we are proud to release Rack 1.0, which was close to almost be codenamed MiddleWarem4Ever. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developi…

---

## [Flood Fill Visualization (#201)](https://www.ruby-forum.com/t/flood-fill-visualization-201/165796)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 4\
**Last updated:** [April 26, 2009, 8:49am UTC](https://www.ruby-forum.com/t/flood-fill-visualization-201/165796 "2009-04-26T08:49:56Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Passing password to mysql](https://www.ruby-forum.com/t/passing-password-to-mysql/166495)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 4\
**Last updated:** [April 26, 2009, 7:33am UTC](https://www.ruby-forum.com/t/passing-password-to-mysql/166495 "2009-04-26T07:33:35Z")

</div>

I would like to use Ruby to open a mysql prompt for the user. The password is read from a file, and should be passed to mysel. However, I don’t want to have the password appear in the list of processes (don’t use the …

---

## [Status of OpenSSL](https://www.ruby-forum.com/t/status-of-openssl/166472)

<div class="topic-metadata">

**Author:** [@jirapong](https://www.ruby-forum.com/u/jirapong)\
**Replies:** 2\
**Last updated:** [April 26, 2009, 6:25am UTC](https://www.ruby-forum.com/t/status-of-openssl/166472 "2009-04-26T06:25:03Z")

</div>

I am working on OpenSSL implementation for IronRuby. base on ruby spec, the results looked like this. 4 files, 8 examples, 2 expectations, 2 failures, 6 errors My first implementation is http://github.com/Jirapong/ir…

---

## [Methods and blocks - not that clear when blocks passed into](https://www.ruby-forum.com/t/methods-and-blocks-not-that-clear-when-blocks-passed-into/166443)

<div class="topic-metadata">

**Author:** [@superjacent](https://www.ruby-forum.com/u/superjacent)\
**Replies:** 9\
**Last updated:** [April 26, 2009, 4:23am UTC](https://www.ruby-forum.com/t/methods-and-blocks-not-that-clear-when-blocks-passed-into/166443 "2009-04-26T04:23:34Z")

</div>

Coming from other programming languages, notably Basic based, a little Java & C++, I find that passing blocks into methods is a little cryptic. What I mean is that when reading a method description (definition) there …

---

## [\[Bug #1406\] i386-freebsd5.4 $B$G(B ruby\_1\_9\_1 $B$,%3%s%Q%$%k$G$-$J$$(B](https://www.ruby-forum.com/t/bug-1406-i386-freebsd5-4-b-g-b-ruby-1-9-1-b-3-s-q-k-g-j-b/166487)

<div class="topic-metadata">

**Author:** [@Hiroshi\_SHIBATA](https://www.ruby-forum.com/u/Hiroshi_SHIBATA)\
**Replies:** 1\
**Last updated:** [April 26, 2009, 3:27am UTC](https://www.ruby-forum.com/t/bug-1406-i386-freebsd5-4-b-g-b-ruby-1-9-1-b-3-s-q-k-g-j-b/166487 "2009-04-26T03:27:19Z")

</div>

Bug #1406: i386-freebsd5.4 e$B$Ge(B ruby\_1\_9\_1 e$B$,%3%s%Q%$%k$G$-$J$$e(B http://redmine.ruby-lang.org/issues/show/1406 e$B5/I\<\<Te(B: Hiroshi SHIBATA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High ruby -v: ruby 1.8.7 (2…

---

## [Initial release of gem\_grep, a gem command plugin](https://www.ruby-forum.com/t/initial-release-of-gem-grep-a-gem-command-plugin/166407)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 4\
**Last updated:** [April 26, 2009, 1:35am UTC](https://www.ruby-forum.com/t/initial-release-of-gem-grep-a-gem-command-plugin/166407 "2009-04-26T01:35:35Z")

</div>

Hi, I’ve written a gem command plugin, gem grep. You’ll need the latest rubygems v 1.3.2 to try it out. gem grep enhances gem search in three ways: Displays results in a well formatted ascii table. Allowing for det…

---

## [Anonymous class, body defined by Proc.new vs. lambda](https://www.ruby-forum.com/t/anonymous-class-body-defined-by-proc-new-vs-lambda/166481)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/anonymous-class-body-defined-by-proc-new-vs-lambda/166481 "2009-04-25T23:35:46Z")

</div>

Hello, this is OK for both, Ruby 1.8 and 1.9: f = Proc.new{}; Class.new(&f) But why is that valid for Ruby 1.8 only? f = lambda{}; Class.new(&f) Ruby 1.9 complains initialize': wrong number of arguments (1 for 0) (…

---

## [Feeding Ruby Code into JIRB](https://www.ruby-forum.com/t/feeding-ruby-code-into-jirb/166484)

<div class="topic-metadata">

**Author:** [@phila](https://www.ruby-forum.com/u/phila)\
**Replies:** 0\
**Last updated:** [April 25, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/feeding-ruby-code-into-jirb/166484 "2009-04-25T23:28:35Z")

</div>

Is there an elegant way to stream existing Ruby code into JIRB?

---

## [Error include\_class "com.example.CallMe"](https://www.ruby-forum.com/t/error-include-class-com-example-callme/166480)

<div class="topic-metadata">

**Author:** [@phila](https://www.ruby-forum.com/u/phila)\
**Replies:** 0\
**Last updated:** [April 25, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/error-include-class-com-example-callme/166480 "2009-04-25T23:27:31Z")

</div>

Running the example code from the JRuby Wiki. I’m not your programmer savant, so I’m probably missing some of the basics. When running “JRuby call\_java.rb” I get the following error. (eval):1:in include\_class’: cann…

---

## [JRuby behind Apache](https://www.ruby-forum.com/t/jruby-behind-apache/166460)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/jruby-behind-apache/166460 "2009-04-25T22:51:54Z")

</div>

This question gets asked a lot, so I wrote up a quick blog post describing how to put JRuby + Rails or Merb or whatever behind an Apache server: Suggestions welcome. I think there’s probably a lot of people who woul…

---

## [Ola's App Engine project - Is it possible to update Netbeans to JRuby 1.20/Rails 2.3?](https://www.ruby-forum.com/t/olas-app-engine-project-is-it-possible-to-update-netbeans-to-jruby-1-20-rails-2-3/166471)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/olas-app-engine-project-is-it-possible-to-update-netbeans-to-jruby-1-20-rails-2-3/166471 "2009-04-25T22:51:19Z")

</div>

I was trying to get Ola’s App Engine “yarbl” sample running in Netbeans which comes bundled with JRuby 1.1.4 and Ruby on Rails 2.0.2 running on Glassfish version 3. Since Ola’s project requires the latest version of J…

---

## [Net/ftp](https://www.ruby-forum.com/t/net-ftp/166401)

<div class="topic-metadata">

**Author:** [@joeg](https://www.ruby-forum.com/u/joeg)\
**Replies:** 3\
**Last updated:** [April 25, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/net-ftp/166401 "2009-04-25T21:29:22Z")

</div>

There’s a method in Ruby’s net/ftp library called list/ls. Does anyone have a list (or can someone point me to a place that has a list) of all possible arguments that you can pass to ls? – Joseph Gutierrez Web D. - …

---

## [Biggest number](https://www.ruby-forum.com/t/biggest-number/166451)

<div class="topic-metadata">

**Author:** [@jaesgar](https://www.ruby-forum.com/u/jaesgar)\
**Replies:** 3\
**Last updated:** [April 25, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/biggest-number/166451 "2009-04-25T20:21:29Z")

</div>

I’m learning ruby, and I want to know if it is any way to know the biggest number to be represented with a specific type of number (Fixnum, Bignum, Float). Thank you.

---

## [Rake-compiler 0.5.0 Released](https://www.ruby-forum.com/t/rake-compiler-0-5-0-released/166463)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 25, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/rake-compiler-0-5-0-released/166463 "2009-04-25T17:47:34Z")

</div>

rake-compiler version 0.5.0 has been released! http://github.com/luislavena/rake-compiler http://rubyforge.org/projects/rake-compiler = rake-compiler rake-compiler aims to help Gem developers while dealing with Ruby …

---

## [FileUtils cp\_r](https://www.ruby-forum.com/t/fileutils-cp-r/166440)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [April 25, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/fileutils-cp-r/166440 "2009-04-25T17:35:52Z")

</div>

Hi… i want to copy a folder recursively i did it using cp\_r(source,destination) it works correctly. but it sould not be overwritted… how can i do it pls help me… even i used remove\_destination =\> false… but it get…

---

## [Embeded Ruby-1.9.1 howto?](https://www.ruby-forum.com/t/embeded-ruby-1-9-1-howto/166462)

<div class="topic-metadata">

**Author:** [@arton](https://www.ruby-forum.com/u/arton)\
**Replies:** 0\
**Last updated:** [April 25, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/embeded-ruby-1-9-1-howto/166462 "2009-04-25T17:26:31Z")

</div>

artone$B$G$9!#e(B ActiveScriptRubye$B$H$$$&!“e(BRubye$B$NAH$9~$%i%$%V%i%j$r:n$C$F$$$k$N$G$9$,!“e(B 1.9.1e$B$G!”$A$g$C$H:$$C$F$$$^$9!#e(B 1.8e$B0JA0$O!”%"%9%-!\<$N%%V%8%'%/%H;X8~%9%/%j%W%H8@8le(BRubye$B$NAH$\_9~$\_J}K!$Ge…

---

## [Running JRuby behind an Apache server](https://www.ruby-forum.com/t/running-jruby-behind-an-apache-server/166461)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 4\
**Last updated:** [April 25, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/running-jruby-behind-an-apache-server/166461 "2009-04-25T17:13:38Z")

</div>

In case anyone’s interested, I’ve started a simple HOWTO blog post for serving up JRuby + {Rails,Merb,etc} if you already have an Apache server (which I suspect is a typical setup for most folks serving Rails and frie…

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

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