# Ruby

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

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

---

## [Routing code question](https://www.ruby-forum.com/t/routing-code-question/104721)

<div class="topic-metadata">

**Author:** [@RailsToPerl](https://www.ruby-forum.com/u/RailsToPerl)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/routing-code-question/104721 "2007-05-21T21:52:00Z")

</div>

In routing.rb, what is the purpose of the following piece of code: class Regexp #:nodoc: def number\_of\_captures Regexp.new("|#{source}").match(’’).captures.length end Does this method not always return 0? It’s alwa…

---

## [Putty on Ruby and how to hide password](https://www.ruby-forum.com/t/putty-on-ruby-and-how-to-hide-password/104716)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/putty-on-ruby-and-how-to-hide-password/104716 "2007-05-21T21:42:59Z")

</div>

Team, Several times per week and need to login to around 120 AIX servers from a Windows desktop. I am using ssh under putty to accomplish this. I coded a simple \*batch \*file to establish all 120 sessions. The proble…

---

## [RubyCocoa and ActiveRecord?](https://www.ruby-forum.com/t/rubycocoa-and-activerecord/89857)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 5\
**Last updated:** [May 21, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/rubycocoa-and-activerecord/89857 "2007-05-21T19:51:41Z")

</div>

Hey all I have been contemplating if it is possible to use ActiveRecord in a RubyCocoa application? Has anyone tried it? is it even possible? All the best Tim P.

---

## [Rutema 0.1 released](https://www.ruby-forum.com/t/rutema-0-1-released/128824)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/rutema-0-1-released/128824 "2007-05-21T19:33:40Z")

</div>

rutema version 0.1 has been released! It’s purpose is to provide a set of classes and a framework that will allow testers to specify and execute tests in heterogeneous testing environments. A heterogeneous testing en…

---

## [Meta-Metta, my new blog](https://www.ruby-forum.com/t/meta-metta-my-new-blog/104702)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/meta-metta-my-new-blog/104702 "2007-05-21T19:26:39Z")

</div>

I marked this as off topic because I have no guarantee that I won’t run off and learn Erlang, or quit programming and become a fruit merchant, but this list is the easiest way for me to reach a lot of folks I consider…

---

## [Dynamically creating ruby source files](https://www.ruby-forum.com/t/dynamically-creating-ruby-source-files/104566)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 6\
**Last updated:** [May 21, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/dynamically-creating-ruby-source-files/104566 "2007-05-21T19:24:37Z")

</div>

Hello all, What techniques do people generally use to create files and write ruby code to them? One way of acheving this (a horrible way) would be just to write the correct code to a file as follows. (This just creat…

---

## [Ssh / popen / stdin weirdness](https://www.ruby-forum.com/t/ssh-popen-stdin-weirdness/104538)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/ssh-popen-stdin-weirdness/104538 "2007-05-21T18:04:19Z")

</div>

Sorry I can’t figure out how to find the cause of this myself. I’m sure there’s some article somewhere I’m not finding. on RHEL4 u3, ruby 1.8, create: === app.rb: my\_pipe = IO.popen("ssh foreign-host ‘cat filename’…

---

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

<div class="topic-metadata">

**Author:** [@macae](https://www.ruby-forum.com/u/macae)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/new-to-group/104688 "2007-05-21T17:20:23Z")

</div>

Hello, I’m new to this group. I would like to know if it is a good place to hold rails talks too. thks :wink: M.A.

---

## [Need some help](https://www.ruby-forum.com/t/need-some-help/104686)

<div class="topic-metadata">

**Author:** [@Disha\_T](https://www.ruby-forum.com/u/Disha_T)\
**Replies:** 6\
**Last updated:** [May 21, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/need-some-help/104686 "2007-05-21T16:26:17Z")

</div>

Hi, I have a script in one file say “a.rb”. I have another file “tc\_a.rb” which is a test case for “a.rb” I have called a specific script in “a.rb” by using the system() command from “tc\_a.rb” Now when i am using r…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229119 "2007-05-21T14:23:50Z")

</div>

Begin forwarded message:

---

## [Newbie: IIS](https://www.ruby-forum.com/t/newbie-iis/104654)

<div class="topic-metadata">

**Author:** [@Pie](https://www.ruby-forum.com/u/Pie)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/newbie-iis/104654 "2007-05-21T14:07:49Z")

</div>

Hi, Sorry I just start to learn ruby and I want to run on IIS (win 2003). Please show me how . regards,

---

## [Rutema 0.1 released](https://www.ruby-forum.com/t/rutema-0-1-released/104683)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/rutema-0-1-released/104683 "2007-05-21T14:05:49Z")

</div>

rutema version 0.1 has been released! It’s purpose is to provide a set of classes and a framework that will allow testers to specify and execute tests in heterogeneous testing environments. A heterogeneous testing en…

---

## [Simple Q: object creation to be determined by incoming data](https://www.ruby-forum.com/t/simple-q-object-creation-to-be-determined-by-incoming-data/104675)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/simple-q-object-creation-to-be-determined-by-incoming-data/104675 "2007-05-21T14:03:48Z")

</div>

I’m almost embarrassed to ask this, because I’m bound to be pointed to some code that I’ve almost certainly read already, but here goes my ruby newbie question: I have an incoming stream of data in separated chunks,…

---

## [Bitmap -\> GIF/PNG/JPG](https://www.ruby-forum.com/t/bitmap-gif-png-jpg/104672)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/bitmap-gif-png-jpg/104672 "2007-05-21T14:00:20Z")

</div>

Hi, Can anyone please recommend a package for generating images from a bitmap vector. e.g. If I have an list of integers, each representing a colour on the bitmap, and I want to build a GIF from it (along with some o…

---

## [Ruby irc channels?](https://www.ruby-forum.com/t/ruby-irc-channels/104640)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 7:51am UTC](https://www.ruby-forum.com/t/ruby-irc-channels/104640 "2007-05-21T07:51:10Z")

</div>

Are there any good ruby irc channels?

---

## [Solution: Magic Squares (#124)](https://www.ruby-forum.com/t/solution-magic-squares-124/104642)

<div class="topic-metadata">

**Author:** [@croese](https://www.ruby-forum.com/u/croese)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 3:47am UTC](https://www.ruby-forum.com/t/solution-magic-squares-124/104642 "2007-05-21T03:47:32Z")

</div>

Here goes! #!/usr/bin/ruby -w ######################### Author: Christian R. Filename: magicsquare.rb Date: 20-05-07 ######################### Ruby Q. #124 - Magic Squares behold, a rhodes magic square class! class M…

---

## [1.9 net/smtp.rb cram\_md5](https://www.ruby-forum.com/t/1-9-net-smtp-rb-cram-md5/103528)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 12:57am UTC](https://www.ruby-forum.com/t/1-9-net-smtp-rb-cram-md5/103528 "2007-05-21T00:57:34Z")

</div>

e$BEOJUE/Li$G$9!#e(B ruby 1.9 e$B$Ne(B net/smtp.rb e$B$K$Fe(B CRAM-MD5 e$B$N%a!\<%kAw?.$,%(%i!\<e(B e$B$K$J$j$^$7$?!#DL?.@h$Oe(B @nifty e$B$K$J$j$^$9!#e(B $ ruby -v ruby 1.9.0 (2007-05-07 patchlevel 0) \[i686-linux\] e…

---

## [Why was the "Symbol is a String"-idea dropped?](https://www.ruby-forum.com/t/why-was-the-symbol-is-a-string-idea-dropped/103981)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 56\
**Last updated:** [May 21, 2007, 12:55am UTC](https://www.ruby-forum.com/t/why-was-the-symbol-is-a-string-idea-dropped/103981 "2007-05-21T00:55:33Z")

</div>

Hello, I was exited when I heard that Symbol was made a subclass of String in Ruby 1.9, September last year. But then I heard that the experiment was stopped after only two months. And recently I have started to th…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/104628)

<div class="topic-metadata">

**Author:** [@Lincoln\_Anderson](https://www.ruby-forum.com/u/Lincoln_Anderson)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/no-subject/104628 "2007-05-20T22:41:21Z")

</div>

unsubscribe

---

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

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/rack-0-2-a-modular-ruby-webserver-interface/104306 "2007-05-20T22:31:20Z")

</div>

Hello, Today I’m proud to release Rack 0.2. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and …

---

## [How to access libnet from ruby?](https://www.ruby-forum.com/t/how-to-access-libnet-from-ruby/104624)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/how-to-access-libnet-from-ruby/104624 "2007-05-20T22:02:18Z")

</div>

Hi, how can I directly use libnet under linux from ruby. the ruby-libnet (from rubyforge) is not working for me so I wanna do this by my own. But how can I access such an API like libnet on linux from ruby? I would be …

---

## [Why no MatchData#match?](https://www.ruby-forum.com/t/why-no-matchdata-match/104607)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 3\
**Last updated:** [May 20, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/why-no-matchdata-match/104607 "2007-05-20T20:41:07Z")

</div>

I use MatchData infrequently enough that I keep being thrown by the lack of a #match method, to go along with #pre\_match and #post\_match. #\[0\] simply isn’t as self-documenting. martin

---

## [Application on a page](https://www.ruby-forum.com/t/application-on-a-page/104609)

<div class="topic-metadata">

**Author:** [@mode](https://www.ruby-forum.com/u/mode)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/application-on-a-page/104609 "2007-05-20T19:11:53Z")

</div>

Hi People I m a new Ruby-Rails User I have an idea to develop, the idea is open an editor(like emacs) on a web page… I see googling around that rails provide some plugin and library for example for the login session…

---

## [PasswdPrompt](https://www.ruby-forum.com/t/passwdprompt/104596)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/passwdprompt/104596 "2007-05-20T18:51:11Z")

</div>

e$B$-$7$b$H$G$9e(B http://www.atdot.net/~ko1/w3ml/w3ml.cgi/rhg-tokyo/msg/62 e$B$N7o$G$9e(B — telnet.rb\_ORG 2007-05-20 14:49:34.000000000 +0900 +++ telnet.rb 2007-05-20 14:51:03.000000000 +0900 @@ -708,7 +708,7 @@ …

---

## [Calling a block with parameters in a new scope](https://www.ruby-forum.com/t/calling-a-block-with-parameters-in-a-new-scope/104594)

<div class="topic-metadata">

**Author:** [@rubytuesday](https://www.ruby-forum.com/u/rubytuesday)\
**Replies:** 4\
**Last updated:** [May 20, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/calling-a-block-with-parameters-in-a-new-scope/104594 "2007-05-20T18:37:10Z")

</div>

Calling a block in a new scope is easy enough: self.instance\_eval &block And calling a block, passing it parameters is easy enough: block.call(\*params) But is there some way to do both? To both change the scope of ev…

---

## [Application on a page](https://www.ruby-forum.com/t/application-on-a-page/127350)

<div class="topic-metadata">

**Author:** [@mode](https://www.ruby-forum.com/u/mode)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/application-on-a-page/127350 "2007-05-20T18:26:09Z")

</div>

Hi People I m a new Ruby-Rails User I have an idea to develop, the idea is open an editor(like emacs) on a web page… I see googling around that rails provide some plugin and library for example for the login session…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229114 "2007-05-20T17:12:57Z")

</div>

Begin forwarded message:

---

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

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/197295 "2007-05-20T17:11:57Z")

</div>

Begin forwarded message:

---

## [Begineer question](https://www.ruby-forum.com/t/begineer-question/104480)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [May 20, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/begineer-question/104480 "2007-05-20T15:46:24Z")

</div>

I have had a horrible time googling this as I get too many hits back that don’t apply. I am new to Ruby, and trying to find a good ref as for when one would use the form puts #{a} vs puts a Does anyone have any po…

---

## [SciTE problem with gets method](https://www.ruby-forum.com/t/scite-problem-with-gets-method/104599)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/scite-problem-with-gets-method/104599 "2007-05-20T15:40:50Z")

</div>

I just today started out with Ruby and when I tried to use the gets method, I get a black box with a blinking cursor in it. Nothing happens when I press any buttons. Why?

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

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