# Ruby

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

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

---

## [NME at /usr/lib/ruby/1.8/drb/drb.rb:1204 - undefined method \`alive?' for nil:NilClass](https://www.ruby-forum.com/t/nme-at-usr-lib-ruby-1-8-drb-drb-rb-1204-undefined-method-alive-for-nil-nilclass/153517)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/nme-at-usr-lib-ruby-1-8-drb-drb-rb-1204-undefined-method-alive-for-nil-nilclass/153517 "2008-11-18T12:38:20Z")

</div>

e$BET9g$K$h$j\>/$78E$$e(BRubye$B$Ne(BDRbe$B$r;H$C$F$$$k$N$G$9$,!"$H$"$k4D6-$G!"0J2\<$NNce(B e$B30$,=P$^$7$?!#:F8=\<j=g$O3NN)$G$-$F$$$^$;$s!#e(B Exception NoMethodError' at /usr/lib/ruby/1.8/drb/drb.rb:1204 - undefined met…

---

## [Mult dimensional arrays in ruby](https://www.ruby-forum.com/t/mult-dimensional-arrays-in-ruby/153442)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [November 18, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/mult-dimensional-arrays-in-ruby/153442 "2008-11-18T12:22:28Z")

</div>

Hi What I am trying to do below is I have to enter two rows to the table contact\_address\_types like description(string) default\_item(boolean) enabled(boolean) Home f t …

---

## [1.9 -\> lambda syntax with &](https://www.ruby-forum.com/t/1-9-lambda-syntax-with/153519)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 10:51am UTC](https://www.ruby-forum.com/t/1-9-lambda-syntax-with/153519 "2008-11-18T10:51:42Z")

</div>

Given sum = Proc.new{|sum,num| sum + num} is sum2 = -\>(a,b) &sum valid syntax? Or is sum2 = -\>(a,b,&sum) correct? Farrel

---

## [Does SOCKSSocket work?](https://www.ruby-forum.com/t/does-sockssocket-work/153494)

<div class="topic-metadata">

**Author:** [@Alan\_Johnson](https://www.ruby-forum.com/u/Alan_Johnson)\
**Replies:** 2\
**Last updated:** [November 18, 2008, 10:35am UTC](https://www.ruby-forum.com/t/does-sockssocket-work/153494 "2008-11-18T10:35:10Z")

</div>

I am having trouble with class SOCKSSocket. I am trying to get the following minimal example to work: require ‘socket’ s = SOCKSSocket.new(‘www.google.com’, 80) Running this I get: $ ruby example.rb example.rb:2: …

---

## [IO#lineno= doesn't work the way I expected](https://www.ruby-forum.com/t/io-lineno-doesnt-work-the-way-i-expected/153361)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 21\
**Last updated:** [November 18, 2008, 10:05am UTC](https://www.ruby-forum.com/t/io-lineno-doesnt-work-the-way-i-expected/153361 "2008-11-18T10:05:47Z")

</div>

I’m working on something that operates on each line of a file individually. So far, the relevant part looks something like this: in\_fh = File.open(infile, 'r') out\_fh = File.open(outfile, 'w') in\_fh.each\_line do |l| …

---

## [JRuby invocation through JSR223 aprox 17x faster than BSF](https://www.ruby-forum.com/t/jruby-invocation-through-jsr223-aprox-17x-faster-than-bsf/153381)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 4\
**Last updated:** [November 18, 2008, 9:57am UTC](https://www.ruby-forum.com/t/jruby-invocation-through-jsr223-aprox-17x-faster-than-bsf/153381 "2008-11-18T09:57:35Z")

</div>

I put together two very simple test scripts for benchmarking running a short JRuby script 500 times with both BSF and JSR223. The JSR223 implementation was approximately 17 times faster on average and the initial invo…

---

## [Ruby and OpenSSL: no such file to load -- openssl (RuntimeError)](https://www.ruby-forum.com/t/ruby-and-openssl-no-such-file-to-load-openssl-runtimeerror/151228)

<div class="topic-metadata">

**Author:** [@reddvinylene](https://www.ruby-forum.com/u/reddvinylene)\
**Replies:** 6\
**Last updated:** [November 18, 2008, 9:54am UTC](https://www.ruby-forum.com/t/ruby-and-openssl-no-such-file-to-load-openssl-runtimeerror/151228 "2008-11-18T09:54:52Z")

</div>

I’m getting this error on Cygwin when trying to run this tiny little Rails app: ./script/…/config/…/vendor/rails/railties/lib/initializer.rb:253:in \`require\_frameworks’: no such file to load – openssl (RuntimeError) I…

---

## [\[Bug #759\] Logger::ProgName should be svn-friendly](https://www.ruby-forum.com/t/bug-759-logger-progname-should-be-svn-friendly/153503)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 8:27am UTC](https://www.ruby-forum.com/t/bug-759-logger-progname-should-be-svn-friendly/153503 "2008-11-18T08:27:20Z")

</div>

Bug #759: Logger::ProgName should be svn-friendly http://redmine.ruby-lang.org/issues/show/759 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib logger.rb e$B$,%m%0%U%!%$%k…

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 3:23am UTC](https://www.ruby-forum.com/t/code-review-interop1/153481 "2008-11-18T03:23:20Z")

</div>

tfpt review “/shelveset:interop1;REDMOND\\jdeville” Comment : Initial folder structure for IronRuby interop tests. Includes 1 test for sanity checking this layout. JD http://blog.jredville.com

---

## [Merb using JRuby/GlassFish](https://www.ruby-forum.com/t/merb-using-jruby-glassfish/153313)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 2\
**Last updated:** [November 18, 2008, 1:34am UTC](https://www.ruby-forum.com/t/merb-using-jruby-glassfish/153313 "2008-11-18T01:34:37Z")

</div>

I posted instructions on how to run a simple Merb application using JRuby/GlassFish: http://blogs.sun.com/arungupta/entry/getting\_started\_with\_merb\_using Feedback appreciated! Thanks, -Arun Application Platform, Su…

---

## [How can I overload a method in Ruby](https://www.ruby-forum.com/t/how-can-i-overload-a-method-in-ruby/153439)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 18\
**Last updated:** [November 17, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/how-can-i-overload-a-method-in-ruby/153439 "2008-11-17T23:46:18Z")

</div>

This is my class definition: class Impl include MyModule def fun() puts (“fun”) end def fun(directory) puts (“fun directory”) end end m=Impl.new() m.fun() When I run this program, I got this error: class\_obj…

---

## [Drb works on one system fails on other](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488 "2008-11-17T23:34:40Z")

</div>

Attached is a simple test program. I’m running the server on Ubuntu Linux 7.10, the client on Windows XP SP2. On one pair of such systems it works perfectly. On the other, it fails with the error given below. Any …

---

## [Reek 0.3.1 Released](https://www.ruby-forum.com/t/reek-0-3-1-released/153487)

<div class="topic-metadata">

**Author:** [@Kevin\_Rutherford](https://www.ruby-forum.com/u/Kevin_Rutherford)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/reek-0-3-1-released/153487 "2008-11-17T22:28:20Z")

</div>

reek version 0.3.1 has been released! http://reek.rubyforge.org reek detects smells in Ruby code Changes in version 0.3.1 2008-11-17: Uncommunicative Name now checks instance variables more thoroughly, and also w…

---

## [Why does tmail stop my CGI script form working?](https://www.ruby-forum.com/t/why-does-tmail-stop-my-cgi-script-form-working/153431)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 13\
**Last updated:** [November 17, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/why-does-tmail-stop-my-cgi-script-form-working/153431 "2008-11-17T21:09:24Z")

</div>

I decided to try TMail for the back end of a new contact page on a website of mine. Unfortunately, it doesn’t seem to want to work with me. If I don’t include a line like: puts “Content-Type: text/html\\n\\n” or like…

---

## [Active records](https://www.ruby-forum.com/t/active-records/153480)

<div class="topic-metadata">

**Author:** [@Einar\_MagnSSSSs\_Bos](https://www.ruby-forum.com/u/Einar_MagnSSSSs_Bos)\
**Replies:** 1\
**Last updated:** [November 17, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/active-records/153480 "2008-11-17T20:45:55Z")

</div>

Is there a way of listing available tables in a connected database? Einar Magnús Boson +354-661 1649 removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid

---

## [Undefined method 'each'](https://www.ruby-forum.com/t/undefined-method-each/153475)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/undefined-method-each/153475 "2008-11-17T20:12:54Z")

</div>

I am following along in Ben Scofield’s book (Practical REST on Rails 2 Projects). As I was building the MovieList application, I ran into an undefined method for each, which I can’t figure out how to debug (I am new t…

---

## [Code Review: RubyClrInterop04](https://www.ruby-forum.com/t/code-review-rubyclrinterop04/153477)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [November 17, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/code-review-rubyclrinterop04/153477 "2008-11-17T19:55:18Z")

</div>

tfpt review “/shelveset:RubyClrInterop04;REDMOND\\curth” Comment : Fix CLR interop for virtual overrides; adds test Adds helper libraries for WPF, System.Data -Curt

---

## [Trying to run/install a list of files in order](https://www.ruby-forum.com/t/trying-to-run-install-a-list-of-files-in-order/153478)

<div class="topic-metadata">

**Author:** [@chutenro](https://www.ruby-forum.com/u/chutenro)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/trying-to-run-install-a-list-of-files-in-order/153478 "2008-11-17T19:48:54Z")

</div>

I’m pretty new to this whole thing, so I apologize in advance if this is common knowledge. I’m trying to get a ruby script to grab a list of files and run them all one after the other. The initial script will go to a…

---

## [Code Review: VisibilityAndOtherFixes2](https://www.ruby-forum.com/t/code-review-visibilityandotherfixes2/153413)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [November 17, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/code-review-visibilityandotherfixes2/153413 "2008-11-17T19:44:42Z")

</div>

tfpt review “/shelveset:VisibilityAndOtherFixes2;REDMOND\\tomat” Comment : Implements - private method visibility - DATA constant - popen and duplex IO streams (will need some refactoring of RubyIO object) Fixes…

---

## [INLINEDIR or HOME error](https://www.ruby-forum.com/t/inlinedir-or-home-error/153468)

<div class="topic-metadata">

**Author:** [@Sita\_Rami\_R](https://www.ruby-forum.com/u/Sita_Rami_R)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/inlinedir-or-home-error/153468 "2008-11-17T19:14:45Z")

</div>

Hi, I am trying to extract the related links(for ex: ruby Programming Language) from google page. I had scrubyt0.3.4 and rubygems1.3.4 installed. I am encountered with an error saying “Define INLINEDIR or HOME in yo…

---

## [Tread on eggs.. Using metaprogramming to set a variable name?](https://www.ruby-forum.com/t/tread-on-eggs-using-metaprogramming-to-set-a-variable-name/153438)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/tread-on-eggs-using-metaprogramming-to-set-a-variable-name/153438 "2008-11-17T18:10:48Z")

</div>

Something like … require ‘spreadsheet’ include Spreadsheet workbook = Spreadsheet::Workbook.new I create a workbook item in which I will add spreadsheets… How many spreadsheets? That is the trick! loc = { 1 =\> ‘USA’,…

---

## [Process dies on MAC](https://www.ruby-forum.com/t/process-dies-on-mac/153461)

<div class="topic-metadata">

**Author:** [@Larz](https://www.ruby-forum.com/u/Larz)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/process-dies-on-mac/153461 "2008-11-17T15:45:38Z")

</div>

I do a fork and then waitpid2 with WNOHANG specified. This typically works fine, but sometimes the child process just dies for some reason and waitpid2 never gets anything back. The parent keeps waiting for it evey no…

---

## [NativeException when connecting to LDAP/Active Directory server, only in WAR](https://www.ruby-forum.com/t/nativeexception-when-connecting-to-ldap-active-directory-server-only-in-war/153340)

<div class="topic-metadata">

**Author:** [@Hirotsugu\_A](https://www.ruby-forum.com/u/Hirotsugu_A)\
**Replies:** 6\
**Last updated:** [November 17, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/nativeexception-when-connecting-to-ldap-active-directory-server-only-in-war/153340 "2008-11-17T15:26:14Z")

</div>

I’m trying to track down this NativeException when a Rails app tries to connect to an LDAP server (it’s an Active Directory server, actually, if that makes any difference) and search from a WAR. Here’s a way to reprod…

---

## [\[ANN\] erbook 4.0.0 (was previously named Gerbil)](https://www.ruby-forum.com/t/ann-erbook-4-0-0-was-previously-named-gerbil/153389)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 5\
**Last updated:** [November 17, 2008, 8:37am UTC](https://www.ruby-forum.com/t/ann-erbook-4-0-0-was-previously-named-gerbil/153389 "2008-11-17T08:37:08Z")

</div>

erbook : write books and documents in eRuby erbook is an extensible document processor that emits HTML (web page), LaTeX (PDF), man (UNIX manual page), plain text, and any document format you can imagine from eRuby te…

---

## [Updating rubygems to 1.3](https://www.ruby-forum.com/t/updating-rubygems-to-1-3/153430)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [November 17, 2008, 6:34am UTC](https://www.ruby-forum.com/t/updating-rubygems-to-1-3/153430 "2008-11-17T06:34:36Z")

</div>

I am on a macbook pro. I need to install rubygems to 1.3 to update merb, I’d like to let the system update itself since it was installed with the system, but when I run: sudo gem update --sytem nothing updates. Am I …

---

## [Trunk $B$N%S%k%I;~$K%(%i!\<(B](https://www.ruby-forum.com/t/trunk-b-n-s-k-i-k-i-b/153433)

<div class="topic-metadata">

**Author:** [@Hajime\_H](https://www.ruby-forum.com/u/Hajime_H)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 6:02am UTC](https://www.ruby-forum.com/t/trunk-b-n-s-k-i-k-i-b/153433 "2008-11-17T06:02:26Z")

</div>

e$B@1$H?=$7$^$9!#e(B e$B%j%S%8%g%se(B 20240 e$B$Ne(B trunk e$B$,%S%k%I$G$-$^$;$s$G$7$?!#e(B x86\_64 e$BHGe(B Ubuntu Linux e$B$G$9!#e(B hajime@hajime-desktop:~/ruby$ autoconf hajime@hajime-desktop:~/ruby$ ./configure -…

---

## [Experience with ruby on serialport](https://www.ruby-forum.com/t/experience-with-ruby-on-serialport/153246)

<div class="topic-metadata">

**Author:** [@Stefan\_E](https://www.ruby-forum.com/u/Stefan_E)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 5:57am UTC](https://www.ruby-forum.com/t/experience-with-ruby-on-serialport/153246 "2008-11-17T05:57:45Z")

</div>

Hi, i want to use http://rubyforge.org/projects/ruby-serialport/ to communicate with /dev/ttyS0 (com1). Has anyone experience with this library or perhaps an example code? Cheers, Stefan

---

## [Background option like script/server -d has](https://www.ruby-forum.com/t/background-option-like-script-server-d-has/153255)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 12:25am UTC](https://www.ruby-forum.com/t/background-option-like-script-server-d-has/153255 "2008-11-17T00:25:47Z")

</div>

Hi. I’m curious to know how I can type something like the following: $ ruby my\_program.rb Press enter, and gain immediate control of the terminal again, as happens when you supply the -d option when running the script…

---

## [Power Trend Line](https://www.ruby-forum.com/t/power-trend-line/153292)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [November 17, 2008, 12:25am UTC](https://www.ruby-forum.com/t/power-trend-line/153292 "2008-11-17T00:25:38Z")

</div>

Hi, Im using some graphing software to produce charts which contain various lines. One line i need to produce is a power trend line from an array dataset. Has anyone had any experience of this in ruby? JB

---

## [UnicodeUtils 0.3.0 - case conversion, normalization and more](https://www.ruby-forum.com/t/unicodeutils-0-3-0-case-conversion-normalization-and-more/153421)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 0\
**Last updated:** [November 16, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/unicodeutils-0-3-0-case-conversion-normalization-and-more/153421 "2008-11-16T23:50:33Z")

</div>

UnicodeUtils is a pure Ruby library that implements Unicode algorithms for Ruby 1.9. Install with RubyGems: $ gem install unicode\_utils Example code: require "unicode\_utils" UnicodeUtils.name("æ") =\> "LATIN SMALL L…

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

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