# Ruby

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

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

---

## [Training on the west coast?](https://www.ruby-forum.com/t/training-on-the-west-coast/114134)

<div class="topic-metadata">

**Author:** [@Nuby\_R](https://www.ruby-forum.com/u/Nuby_R)\
**Replies:** 3\
**Last updated:** [September 10, 2007, 5:41am UTC](https://www.ruby-forum.com/t/training-on-the-west-coast/114134 "2007-09-10T05:41:49Z")

</div>

Are there any good training offerings coming up on the west coast, ideally in either Seattle, Portland, or San Francisco?

---

## [Combining Array Elements](https://www.ruby-forum.com/t/combining-array-elements/112923)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 13\
**Last updated:** [September 10, 2007, 4:00am UTC](https://www.ruby-forum.com/t/combining-array-elements/112923 "2007-09-10T04:00:43Z")

</div>

I have an array that I would like to combine elements. Here’s a sample array: \[\[“Value A”, “Value B”, 3\], \[“Value A”, “Value C”, 2\],\[“Value A”, Value B", 1\]\] What I would like to do is find the elements where the fir…

---

## [Possible Zlib Bug](https://www.ruby-forum.com/t/possible-zlib-bug/114219)

<div class="topic-metadata">

**Author:** [@meekish](https://www.ruby-forum.com/u/meekish)\
**Replies:** 2\
**Last updated:** [September 10, 2007, 3:56am UTC](https://www.ruby-forum.com/t/possible-zlib-bug/114219 "2007-09-10T03:56:42Z")

</div>

I originally posted this message to core as I assumed that it would be the mailing list with the most knowledge of Ruby’s Zlib library, but received no reply, so I’m posting it again here. I’m porting SWX PHP ( swxfo…

---

## [Keybox 1.2.0 Released](https://www.ruby-forum.com/t/keybox-1-2-0-released/114214)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 1:50am UTC](https://www.ruby-forum.com/t/keybox-1-2-0-released/114214 "2007-09-10T01:50:30Z")

</div>

keybox version 1.2.0 has been released. http://keybox.rubyforge.org A set of command line applications and ruby libraries for secure password storage and password generation. {{ Changelog for Version 1.2.0 }} === V…

---

## [Net/http and binary files](https://www.ruby-forum.com/t/net-http-and-binary-files/114180)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 2\
**Last updated:** [September 10, 2007, 12:25am UTC](https://www.ruby-forum.com/t/net-http-and-binary-files/114180 "2007-09-10T00:25:01Z")

</div>

I’m using the code from the example http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html for the http/net library: File.open('result.txt', 'w') {|f| http.get('/~foo/') do |str| f.write str end } Th…

---

## [DateTime yaml bug](https://www.ruby-forum.com/t/datetime-yaml-bug/113082)

<div class="topic-metadata">

**Author:** [@seeweer](https://www.ruby-forum.com/u/seeweer)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/datetime-yaml-bug/113082 "2007-09-09T23:47:19Z")

</div>

Hi, does anybody know a quick fix to the DateTime or Yaml bug YAML::load(DateTime.now.to\_yaml).class =\> Time Thx Artur

---

## [Threading in ruby is retarded .....?~!](https://www.ruby-forum.com/t/threading-in-ruby-is-retarded/113564)

<div class="topic-metadata">

**Author:** [@ssyed](https://www.ruby-forum.com/u/ssyed)\
**Replies:** 4\
**Last updated:** [September 9, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/threading-in-ruby-is-retarded/113564 "2007-09-09T21:23:01Z")

</div>

I’m running the latest version an Ruby and the way threads work makes absolutely no sense to me… I have the simplest use of threads: Thread.new do while true puts "Enter command" if gets.chomp=='exit' …

---

## [RubyGems mysteriously broken (paths issue?)](https://www.ruby-forum.com/t/rubygems-mysteriously-broken-paths-issue/113526)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/rubygems-mysteriously-broken-paths-issue/113526 "2007-09-09T20:14:48Z")

</div>

Just installed RubyGems 0.9.0 on Ubuntu 7.04. I ran gem install rails and it said that it worked successfully. But tried to run “rails mynewapp” and got “bash: rails: command not found”. Ran… gem list -l rails \*\*\* …

---

## [ANNOUNCE: Fantasdic 1.0-beta4 released](https://www.ruby-forum.com/t/announce-fantasdic-1-0-beta4-released/114192)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 1\
**Last updated:** [September 9, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/announce-fantasdic-1-0-beta4-released/114192 "2007-09-09T18:13:36Z")

</div>

Hi, I’ve just released Fantasdic 1.0-beta4. Fantasdic is a DICT client (RFC 2229). This is a dictionary application which uses the network to retrieve definitions. For example, nihongobenkyo.org is a server that prov…

---

## [Better way to do this? Currently using two method\_missing ca](https://www.ruby-forum.com/t/better-way-to-do-this-currently-using-two-method-missing-ca/111230)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 14\
**Last updated:** [September 9, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/better-way-to-do-this-currently-using-two-method-missing-ca/111230 "2007-09-09T13:56:01Z")

</div>

Hi, I’m building a wrapper around a web service and I’d like to have my class simply pass through calls to the remote service (since the remote service will be adding new objects and methods faster then I’ll be updat…

---

## [The scope of local variables -- where are they?](https://www.ruby-forum.com/t/the-scope-of-local-variables-where-are-they/114146)

<div class="topic-metadata">

**Author:** [@unnali](https://www.ruby-forum.com/u/unnali)\
**Replies:** 6\
**Last updated:** [September 9, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/the-scope-of-local-variables-where-are-they/114146 "2007-09-09T13:17:54Z")

</div>

I’m wondering – where /is/ the scope of local variables? Is there any programmatic way to manipulate a local variable \[by this, I rather awkwardly mean – for example, is there a hash on some object of local variables?…

---

## [Compatibility in regexps between perl and ruby](https://www.ruby-forum.com/t/compatibility-in-regexps-between-perl-and-ruby/114131)

<div class="topic-metadata">

**Author:** [@Tammo\_T](https://www.ruby-forum.com/u/Tammo_T)\
**Replies:** 6\
**Last updated:** [September 9, 2007, 10:29am UTC](https://www.ruby-forum.com/t/compatibility-in-regexps-between-perl-and-ruby/114131 "2007-09-09T10:29:55Z")

</div>

Hello, I try to translate some perl to ruby and assumed so far that the regexps are compatible. But it seems that there are some only available in perl. Is there something comparable to (?\<!..) also in ruby (is a z…

---

## [How to fix assigns(:user) on controller test](https://www.ruby-forum.com/t/how-to-fix-assigns-user-on-controller-test/114178)

<div class="topic-metadata">

**Author:** [@zlai](https://www.ruby-forum.com/u/zlai)\
**Replies:** 5\
**Last updated:** [September 9, 2007, 9:26am UTC](https://www.ruby-forum.com/t/how-to-fix-assigns-user-on-controller-test/114178 "2007-09-09T09:26:33Z")

</div>

Hi everyon, Thank you for your help! I did the controller test, but there is a problem when run the test. Controller.rb: def change\_password user = current\_user if User.authenticate(user.login, params\[:old\_password…

---

## [Macaddr-0.0.1](https://www.ruby-forum.com/t/macaddr-0-0-1/114156)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 6\
**Last updated:** [September 9, 2007, 4:06am UTC](https://www.ruby-forum.com/t/macaddr-0-0-1/114156 "2007-09-09T04:06:20Z")

</div>

NAME macaddr DESCRIPTION cross platform mac address determination for ruby URI http://codeforpeople.com/lib/ruby http://rubyforg.org/projects/codeforpeople INSTALL gem install macaddr SYNOPSIS require ‘macaddr’ …

---

## [Re: Count and Say (#138)](https://www.ruby-forum.com/t/re-count-and-say-138/114165)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 2:02am UTC](https://www.ruby-forum.com/t/re-count-and-say-138/114165 "2007-09-09T02:02:13Z")

</div>

This week’s quiz was fairly easy. The hardest part was finding and choosing a way to turn the numbers into their English equivalents. Initially I used an array that extended to TWENTY, but that was insufficient. I had…

---

## [Enforce mutual exclusivity](https://www.ruby-forum.com/t/enforce-mutual-exclusivity/114108)

<div class="topic-metadata">

**Author:** [@Toby\_OSRourke](https://www.ruby-forum.com/u/Toby_OSRourke)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 12:14am UTC](https://www.ruby-forum.com/t/enforce-mutual-exclusivity/114108 "2007-09-09T00:14:07Z")

</div>

Hi, First post, sorry if this is the wrong place or has been answered before. I’m using ActiveRecord and I want to enforce mutual exclusivity on a has\_and\_belongs\_to\_many. A concrete example: I have a User which can…

---

## [NT Emacs, Cygwin Ruby, and M-x run-ruby](https://www.ruby-forum.com/t/nt-emacs-cygwin-ruby-and-m-x-run-ruby/114159)

<div class="topic-metadata">

**Author:** [@HiHeelHottie](https://www.ruby-forum.com/u/HiHeelHottie)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/nt-emacs-cygwin-ruby-and-m-x-run-ruby/114159 "2007-09-08T20:31:44Z")

</div>

Hello, Has anybody gotten NT emacs, cygwin ruby, and M-x run-ruby to work? I’ve tried the following, (defvar ruby-program-name “bash -c “irb --inf-ruby-mode”” “\*Program invoked by the run-ruby command”) and get the…

---

## [Mms2r 1.1.9 Released](https://www.ruby-forum.com/t/mms2r-1-1-9-released/114157)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/mms2r-1-1-9-released/114157 "2007-09-08T20:04:42Z")

</div>

mms2r version 1.1.9 has been released! http://mms2r.rubyforge.org/ DESCRIPTION: MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the cellphone carriers…

---

## [Netbeans, Eclipse and ruby! How to...?](https://www.ruby-forum.com/t/netbeans-eclipse-and-ruby-how-to/114074)

<div class="topic-metadata">

**Author:** [@andre](https://www.ruby-forum.com/u/andre)\
**Replies:** 14\
**Last updated:** [September 8, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/netbeans-eclipse-and-ruby-how-to/114074 "2007-09-08T19:41:37Z")

</div>

well, i should start to say that i’m pretty new to ruby!! I’m trying to set up a IDE to ruby, and I began with Eclipse. I used the ruby installer to install ruby, i installed eclipse and rdt. The problem came when I t…

---

## [TextualRegexp 1.0.0 Released](https://www.ruby-forum.com/t/textualregexp-1-0-0-released/114151)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 3\
**Last updated:** [September 8, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/textualregexp-1-0-0-released/114151 "2007-09-08T19:20:34Z")

</div>

TextualRegexp version 1.0.0 has been released! http://texrex.rubyforge.com FEATURES/PROBLEMS: Incompatible with 1.9, as far as we know. Technically, it supports everything current RegExp does. SYNOPSIS: Passwor…

---

## [Adding items to a list?](https://www.ruby-forum.com/t/adding-items-to-a-list/113910)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 5\
**Last updated:** [September 8, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/adding-items-to-a-list/113910 "2007-09-08T18:39:18Z")

</div>

hi, i’m trying to work this out and been using a bit of the ‘blog in 15 minutes’ code to basically add a new item to a list from within the ‘show’ action of the list. much like how when in the example blog app you vie…

---

## [Wishing of reactive programming in ruby](https://www.ruby-forum.com/t/wishing-of-reactive-programming-in-ruby/112331)

<div class="topic-metadata">

**Author:** [@ashishwave](https://www.ruby-forum.com/u/ashishwave)\
**Replies:** 16\
**Last updated:** [September 8, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/wishing-of-reactive-programming-in-ruby/112331 "2007-09-08T17:57:21Z")

</div>

ruby integrates power of functional programming from lisp , purest OO from smalltalk, prototype oriented power from self etc etc into one single language i just was wondering that whether the heavy developers/users of …

---

## [New to ruby](https://www.ruby-forum.com/t/new-to-ruby/114123)

<div class="topic-metadata">

**Author:** [@christiano](https://www.ruby-forum.com/u/christiano)\
**Replies:** 3\
**Last updated:** [September 8, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/new-to-ruby/114123 "2007-09-08T17:47:44Z")

</div>

Hi, I would like to learn ROR. Do I have to start with Ruby first and then go into ROR? I am not a programmer. But, I have some knowledge of C++ but not a whole lot. Thanks. -christiano

---

## [Ordered/unordered st\_table](https://www.ruby-forum.com/t/ordered-unordered-st-table/113718)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/ordered-unordered-st-table/113718 "2007-09-08T17:45:20Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$D$$$G$K!"e(Bst\_tablee$B$N=g=x$NM-L5$r@ZBX$($k%Q%C%A$G$9!#e(B Index: hash.c — hash.c (revision 13339) +++ hash.c (working copy) @@ -233,4 +233,5 @@ rb\_hash\_tbl(VALUE hash) if (!RHASH(hash)-\>n…

---

## [Integer overflow in Range#step](https://www.ruby-forum.com/t/integer-overflow-in-range-step/114149)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/integer-overflow-in-range-step/114149 "2007-09-08T16:57:15Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B Range#step e$B$Ke(B integer overflow e$B$,B8:\_$7$^$9!#e(B $ ruby-1.8 -ve ’ (1…2).step(2\*\*31-1){|i| p i}’ ruby 1.8.6 (2007-09-01 patchlevel 5000) \[i686-linux\] 1 -2147483648 -1

---

## [Optimize range space](https://www.ruby-forum.com/t/optimize-range-space/113585)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [September 8, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/optimize-range-space/113585 "2007-09-08T16:15:10Z")

</div>

Range e$B$N%a%b%j\>CHq$r@aLs$9$k$N$O$I$&$G$7$g$&$+!#e(B Range e$B$O8=:\_e(B T\_OBJECT e$B$G!"%O%C%7%e$r;H$C$F\>pJs$rJ\];}$7$^$9!#e(B e$B$7$+$7!"DL\>o!"e(Bbegin, end, excl e$B$Ne(B 3e$B$D$N%$%s%9%?%s%9JQ?t$7$+e(B e$B;H$$$^$…

---

## [What's the good book for ruby beginner and where can I find](https://www.ruby-forum.com/t/whats-the-good-book-for-ruby-beginner-and-where-can-i-find/114145)

<div class="topic-metadata">

**Author:** [@Guofu\_C](https://www.ruby-forum.com/u/Guofu_C)\
**Replies:** 5\
**Last updated:** [September 8, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/whats-the-good-book-for-ruby-beginner-and-where-can-i-find/114145 "2007-09-08T15:47:06Z")

</div>

Hi, I am a beginner of ruby. Can someone tell me what’s the best book for the ruby beginner? I would also like your advice to sharpen my ruby skill. Where can I find a good ruby project? Thanks!

---

## [Read a specific line from a file](https://www.ruby-forum.com/t/read-a-specific-line-from-a-file/114044)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 17\
**Last updated:** [September 8, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/read-a-specific-line-from-a-file/114044 "2007-09-08T12:52:46Z")

</div>

how can i read only a line from a txt file? for example i want to read only line 3

---

## [Why don't threads get killed in this case?](https://www.ruby-forum.com/t/why-dont-threads-get-killed-in-this-case/114121)

<div class="topic-metadata">

**Author:** [@overworked\_phd](https://www.ruby-forum.com/u/overworked_phd)\
**Replies:** 2\
**Last updated:** [September 8, 2007, 11:17am UTC](https://www.ruby-forum.com/t/why-dont-threads-get-killed-in-this-case/114121 "2007-09-08T11:17:38Z")

</div>

Here is the code that is running on OpenBSD 4.2 #!/usr/local/bin/ruby threads=\[\] 4.times do |i| threads\[i\]=Thread.new do %x{/usr/libexec/getty std.19200 tty00} end end threads.each{|thr| thr.join} I run it as a …

---

## [Mms2r 1.1.8 Released](https://www.ruby-forum.com/t/mms2r-1-1-8-released/114130)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 10:48am UTC](https://www.ruby-forum.com/t/mms2r-1-1-8-released/114130 "2007-09-08T10:48:37Z")

</div>

mms2r version 1.1.8 has been released! http://mms2r.rubyforge.org/ DESCRIPTION: MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the cellphone carriers…

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

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