# Ruby

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

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

---

## [Socket issue](https://www.ruby-forum.com/t/socket-issue/82949)

<div class="topic-metadata">

**Author:** [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Replies:** 3\
**Last updated:** [January 23, 2007, 5:29am UTC](https://www.ruby-forum.com/t/socket-issue/82949 "2007-01-23T05:29:48Z")

</div>

Hey all, While testing some edge cases in an app I came across a strange socket issue. If I have a server that dies unexpectedly, and then try to write to it from an already connected client, it doesn’t raise an exc…

---

## [Send/\_\_send\_\_ and private method](https://www.ruby-forum.com/t/send-send-and-private-method/81136)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 12\
**Last updated:** [January 23, 2007, 4:37am UTC](https://www.ruby-forum.com/t/send-send-and-private-method/81136 "2007-01-23T04:37:45Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!8=:\_!"e(Btrunk e$B$G$Oe(B send/send e$B%a%=%C%I$Oe(B private e$B$J%a%=%C%I$r0l@Z8F$Ye(B e$B$J$$$h$&$K$J$C$F$$$k$?$a!"e(Btest-all e$B$,Bt;3DL$j$^$;$s!Je(Blib/scanf.rb e$B$He(B lib/rss e$B$KB…

---

## [Help reading/writing from/to excel files](https://www.ruby-forum.com/t/help-reading-writing-from-to-excel-files/83026)

<div class="topic-metadata">

**Author:** [@yodadbl07](https://www.ruby-forum.com/u/yodadbl07)\
**Replies:** 1\
**Last updated:** [January 23, 2007, 4:30am UTC](https://www.ruby-forum.com/t/help-reading-writing-from-to-excel-files/83026 "2007-01-23T04:30:44Z")

</div>

Hello everyone, I am new to ruby and was wondering if anyone could help me out with opening an excel file, reading a value from a specific cell, saving that to another pre existing excel file into a specific cell. tha…

---

## [Version.h maintenance](https://www.ruby-forum.com/t/version-h-maintenance/81226)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 6\
**Last updated:** [January 23, 2007, 4:18am UTC](https://www.ruby-forum.com/t/version-h-maintenance/81226 "2007-01-23T04:18:43Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!8=:\_!"e(Bversion.h e$B$NF|IU$N99?7$O$o$?$J$Y$5$sEy$N\<j:n6H$K$h$C$F9T$o$l$F$$e(B e$B$^$9!#$3$l$O!"e(BSubversion e$B$K0\\9T$7$F$+$i\<+F02=$G$-$F$$$J$$$N$,LdBj$G$9!#e(B e$B!!$^$?!"e(BSubversion …

---

## [File name and line number of parser error/warning](https://www.ruby-forum.com/t/file-name-and-line-number-of-parser-error-warning/81704)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 23, 2007, 4:18am UTC](https://www.ruby-forum.com/t/file-name-and-line-number-of-parser-error-warning/81704 "2007-01-23T04:18:43Z")

</div>

e$B$J$+$@$G$9!#e(B YARVe$B$K$J$C$F$+$i!"e(Bsyntax errore$B$de(Bparsee$B;~$N7Y9p$G%=!\<%9%U%!%$%kL\>e(B e$B$d9THV9f$,=P$J$/$J$C$F$$$^$9!#e(B e$BEv=i!“e(Berr\_position()e$B$r\<B9T;~MQ$He(Bparsere$BMQ$KJ,$1$l$P$$$$$+$H;W$Ce…

---

## [Problems with replacing text](https://www.ruby-forum.com/t/problems-with-replacing-text/83023)

<div class="topic-metadata">

**Author:** [@samckayak](https://www.ruby-forum.com/u/samckayak)\
**Replies:** 4\
**Last updated:** [January 23, 2007, 4:09am UTC](https://www.ruby-forum.com/t/problems-with-replacing-text/83023 "2007-01-23T04:09:42Z")

</div>

I am creating a small chatbot program in Ruby, and I need it to be able to change the word “I” to “You” when it is reading the user input. this is the code I am using: uinput\[‘I’\] = ‘you’ The problem is, whenever I e…

---

## [Find monday of first week of the month](https://www.ruby-forum.com/t/find-monday-of-first-week-of-the-month/82988)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 7\
**Last updated:** [January 23, 2007, 3:04am UTC](https://www.ruby-forum.com/t/find-monday-of-first-week-of-the-month/82988 "2007-01-23T03:04:35Z")

</div>

Hi, im pretty new to Ruby and i tried to find out how to calculate the date for the first monday of the first week of the month (i.e. this would be 2007-01-29 for Feb. 2007) My approach is to get the weekday of the f…

---

## [Fwd: Please Forward: Ruby Quiz Submission (#110)](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-110/132557)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [January 23, 2007, 2:22am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-110/132557 "2007-01-23T02:22:32Z")

</div>

Begin forwarded message:

---

## [Problems with super](https://www.ruby-forum.com/t/problems-with-super/83004)

<div class="topic-metadata">

**Author:** [@vijaynyayapati](https://www.ruby-forum.com/u/vijaynyayapati)\
**Replies:** 1\
**Last updated:** [January 23, 2007, 1:48am UTC](https://www.ruby-forum.com/t/problems-with-super/83004 "2007-01-23T01:48:30Z")

</div>

Hi, I have been struggling to get super to work. I have a class A which inherits from Test::Unit::UI::Console::TestRunner class A has a method ‘start’ which is trying to override the ‘start’ method from the TestRunne…

---

## [\[ANN\] Ruby-VPI 15.0.2](https://www.ruby-forum.com/t/ann-ruby-vpi-15-0-2/83021)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [January 23, 2007, 1:36am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-15-0-2/83021 "2007-01-23T01:36:16Z")

</div>

Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. â€¢ http://ruby-vpi.rubyforge.org â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”…

---

## [Ruby and E.V.E. Paradox](https://www.ruby-forum.com/t/ruby-and-e-v-e-paradox/81910)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 33\
**Last updated:** [January 23, 2007, 1:25am UTC](https://www.ruby-forum.com/t/ruby-and-e-v-e-paradox/81910 "2007-01-23T01:25:26Z")

</div>

I have been using Ruby for several years. Most importantly I have been using this amazing language as a support language for E.V.E. Paradox, a game suite I have been working on for much of the last three years. Ruby …

---

## [Resolv-replace problem](https://www.ruby-forum.com/t/resolv-replace-problem/82999)

<div class="topic-metadata">

**Author:** [@mly](https://www.ruby-forum.com/u/mly)\
**Replies:** 3\
**Last updated:** [January 23, 2007, 12:57am UTC](https://www.ruby-forum.com/t/resolv-replace-problem/82999 "2007-01-23T00:57:22Z")

</div>

After running through aproximately 512 ip to name resolutions, the resolv-replace library seems to become very slow and starts blocking threads. Any ideas? Any good alternatives for doing ip address to name lookups o…

---

## [Minor Change Proposal for Class 'Numeric'](https://www.ruby-forum.com/t/minor-change-proposal-for-class-numeric/82980)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 7\
**Last updated:** [January 23, 2007, 12:56am UTC](https://www.ruby-forum.com/t/minor-change-proposal-for-class-numeric/82980 "2007-01-23T00:56:22Z")

</div>

Hi! I didn’t find there a discussion about this here, so first a description of this (very) minor change proposal. I miss the “Sign function” in class “Numeric”. It can simply be added by something like… class Nume…

---

## [Problem using 'AllInOneRuby' with Tk-Program (Windows 2000 a](https://www.ruby-forum.com/t/problem-using-allinoneruby-with-tk-program-windows-2000-a/82971)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 2\
**Last updated:** [January 22, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/problem-using-allinoneruby-with-tk-program-windows-2000-a/82971 "2007-01-22T23:48:07Z")

</div>

Hi! We found a problem using ‘AllInOneRuby’ with Tk-Program on Windows 2000 and XP. ‘Tcl/Tk’ does work, a generated ‘allinoneruby.exe’ works well with a console program, but gives an error using a small Tk example. …

---

## [Array equality question](https://www.ruby-forum.com/t/array-equality-question/83003)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 3\
**Last updated:** [January 22, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/array-equality-question/83003 "2007-01-22T23:46:06Z")

</div>

This took me by surprise: irb(main):001:0\> a1 = \[‘x’,‘y’,‘z’\] =\> \[“x”, “y”, “z”\] irb(main):002:0\> a2 = \[‘y’,‘z’,‘x’\] =\> \[“y”, “z”, “x”\] irb(main):008:0\> puts “yo” if a1 == a2 =\> nil irb(main):009:0\> puts “yo” if a…

---

## [Re: array equality question](https://www.ruby-forum.com/t/re-array-equality-question/83001)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/re-array-equality-question/83001 "2007-01-22T23:41:05Z")

</div>

=\> \[“x”, “y”, “z”\] equality. Is there any particular reason for this behavior? I’m very new to ruby, but note that the order of objects in arrays traditionally is significant. Perhaps you want to use sets instead? …

---

## [MountainWest RubyConf: Open for Registration](https://www.ruby-forum.com/t/mountainwest-rubyconf-open-for-registration/82987)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 3\
**Last updated:** [January 22, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-open-for-registration/82987 "2007-01-22T23:01:54Z")

</div>

Wow! After months of hard work (and some wondering whether we were going to be able to pull this off) the MountainWest RubyConf is officially on. Head over to our site (sigh, yes, it’s an ugly little placeholder) an…

---

## [Piston 1.3.0: Switch between repository locations](https://www.ruby-forum.com/t/piston-1-3-0-switch-between-repository-locations/82985)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/piston-1-3-0-switch-between-repository-locations/82985 "2007-01-22T21:52:42Z")

</div>

Piston 1.3.0 is out the door. There are two significant changes: Piston status shows the revision number of locked repositories. Thanks to Chris W. http://errtheblog.com/. New piston switch subcommand to switch …

---

## [Getting to grips with ActiveLDAP](https://www.ruby-forum.com/t/getting-to-grips-with-activeldap/82981)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/getting-to-grips-with-activeldap/82981 "2007-01-22T21:32:40Z")

</div>

hi all, I’m starting an application which uses OpenLDAP as the backend. I’ve installed activeldap and its requirements, however i’m at a loss for how to get it to work. From looking at various examples, I’ve put thi…

---

## [Mod\_ruby, require, and $SAFE](https://www.ruby-forum.com/t/mod-ruby-require-and-safe/102990)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 22, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/mod-ruby-require-and-safe/102990 "2007-01-22T21:25:39Z")

</div>

When running under mod\_ruby with the default $SAFE == 1, a file containing only this: require ‘active\_record’ will give a 500 response with the error: mod\_ruby: error in ruby mod\_ruby: /usr/lib64/ruby/site\_ruby/1.8/…

---

## [Bug in Ruby with adding strings?](https://www.ruby-forum.com/t/bug-in-ruby-with-adding-strings/82717)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 7\
**Last updated:** [January 22, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/bug-in-ruby-with-adding-strings/82717 "2007-01-22T21:00:35Z")

</div>

I just found what looks like a bug in Ruby 184-20. (I haven’t tried it in newer builds.) Here’s a simple script that will expose this bug: irb(main):001:0\> x = 1 =\> 1 irb(main):002:0\> puts ‘foo’ + x.to\_s +‘bar’ Synt…

---

## [In \`\`': No such file or directory - getcwd (Errno::ENOENT)](https://www.ruby-forum.com/t/in-no-such-file-or-directory-getcwd-errno-enoent/82911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 22, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/in-no-such-file-or-directory-getcwd-errno-enoent/82911 "2007-01-22T20:15:25Z")

</div>

Hi, I’m getting this error message when I’m using the back tick method (the one that return the stdout of a subshell command): when my ruby runs the following a=ls -l it returns No such file or directory - getcwd (Er…

---

## [Ruby Web Services Client](https://www.ruby-forum.com/t/ruby-web-services-client/82888)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 10\
**Last updated:** [January 22, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/ruby-web-services-client/82888 "2007-01-22T19:01:10Z")

</div>

I have a simple web services client written in Java. The essence of it is about 30 lines of code. It sends an XML message of about 20 lines to a web service and receives an XML response that may be as many as 8000 lin…

---

## [Mod\_ruby, require, and $SAFE](https://www.ruby-forum.com/t/mod-ruby-require-and-safe/82956)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/mod-ruby-require-and-safe/82956 "2007-01-22T18:22:00Z")

</div>

When running under mod\_ruby with the default $SAFE == 1, a file containing only this: require ‘active\_record’ will give a 500 response with the error: mod\_ruby: error in ruby mod\_ruby: /usr/lib64/ruby/site\_ruby/1.8/…

---

## [Re: Method Auto Completion (#110)](https://www.ruby-forum.com/t/re-method-auto-completion-110/82947)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/re-method-auto-completion-110/82947 "2007-01-22T16:53:40Z")

</div>

Oh boy, this is my first submission to the Ruby Q… My solution is fairly naive, but it passes all the tests and it’s pretty clean, so I’m happy. donald

---

## [Re: Ruby to java or java to ruby converter](https://www.ruby-forum.com/t/re-ruby-to-java-or-java-to-ruby-converter/82937)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 0\
**Last updated:** [January 22, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/re-ruby-to-java-or-java-to-ruby-converter/82937 "2007-01-22T15:57:15Z")

</div>

Vinod Kone wrote: hi, am a newbie to ruby and was wondering whether there is any ruby2java or java2ruby converter? we are planning to compare both the languages based on some benchmarks…so thought a converter would …

---

## [Connecting via ssh to hostgator's ruby server](https://www.ruby-forum.com/t/connecting-via-ssh-to-hostgators-ruby-server/82913)

<div class="topic-metadata">

**Author:** [@libsfan01](https://www.ruby-forum.com/u/libsfan01)\
**Replies:** 2\
**Last updated:** [January 22, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/connecting-via-ssh-to-hostgators-ruby-server/82913 "2007-01-22T14:58:01Z")

</div>

Hi all instructions on how to connect to hostgator’s ssh are given here http://forums.hostgator.com/showthread.php?t=13038 as someone who has never used ssh before i dont find those instructions explicit enough. It j…

---

## [Regexp.newbie?](https://www.ruby-forum.com/t/regexp-newbie/82709)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 2\
**Last updated:** [January 22, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/regexp-newbie/82709 "2007-01-22T14:49:47Z")

</div>

i’ve got a whole file to scan…but can’t get neatly get the last occurance with… .scan(/(^A.\*?)^A/m){|a| stops\<\<$1} …yes i know that last occurance is not scanned because it is succeeded with ^Z line…that’s the compli…

---

## [Conditional variable assignment from array](https://www.ruby-forum.com/t/conditional-variable-assignment-from-array/82906)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 3\
**Last updated:** [January 22, 2007, 11:41am UTC](https://www.ruby-forum.com/t/conditional-variable-assignment-from-array/82906 "2007-01-22T11:41:01Z")

</div>

one of my methods receives a sort parameter either as params =\> {“sort”=\>{“criteria”=\>“1”} } OR params =\> {“sort”=\>“1”} presently, I assign a variable @sc as follows : params\[:sort\].nil? ? @sc = “1” : @sc = para…

---

## [Re: Ruby extension tutorial](https://www.ruby-forum.com/t/re-ruby-extension-tutorial/82866)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 8\
**Last updated:** [January 22, 2007, 11:13am UTC](https://www.ruby-forum.com/t/re-ruby-extension-tutorial/82866 "2007-01-22T11:13:56Z")

</div>

Wim Vander S. schreef: kind regards, Wim Silly me, I forgot to paste the link, here you go: http://nanoblog.ath.cx/index.rb?module=readmore&id=8 Wim

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

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