# Ruby

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

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

---

## [Howto tab completion](https://www.ruby-forum.com/t/howto-tab-completion/51038)

<div class="topic-metadata">

**Author:** [@Michael\_SentropieS\_S](https://www.ruby-forum.com/u/Michael_SentropieS_S)\
**Replies:** 2\
**Last updated:** [December 27, 2005, 6:39pm UTC](https://www.ruby-forum.com/t/howto-tab-completion/51038 "2005-12-27T18:39:12Z")

</div>

Hello, I use \[1\] to process a string from cmdline-user-input to call methods form a module namespace. It works for now, but there are later a lot of commands to input so i want tab-completion because iam lazy …

---

## [RRobots (#59)](https://www.ruby-forum.com/t/rrobots-59/77404)

<div class="topic-metadata">

**Author:** [@sporkmonger](https://www.ruby-forum.com/u/sporkmonger)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 6:27pm UTC](https://www.ruby-forum.com/t/rrobots-59/77404 "2005-12-27T18:27:11Z")

</div>

Here’s my solution for the RRobots challenge… kinda right down to the wire on posting it, and it’s still not really finished, but… oh well, what’re you going to do? Bit longish for posting the source code directly. C…

---

## [Irb and tab key in Mac OS X](https://www.ruby-forum.com/t/irb-and-tab-key-in-mac-os-x/51171)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 2\
**Last updated:** [December 27, 2005, 6:27pm UTC](https://www.ruby-forum.com/t/irb-and-tab-key-in-mac-os-x/51171 "2005-12-27T18:27:09Z")

</div>

Not sure if this is a readline issue or an irb issue, so I’ll venture the question here. When I run irb (in Mac OS X v10.3, with Ruby v1.8.2) and press the tab key, I get a print-out of the current directory. Is it …

---

## [Last call for RRobots (#59)](https://www.ruby-forum.com/t/last-call-for-rrobots-59/54439)

<div class="topic-metadata">

**Author:** [@SSSISO-8859-1SQSSim](https://www.ruby-forum.com/u/SSSISO-8859-1SQSSim)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 5:44pm UTC](https://www.ruby-forum.com/t/last-call-for-rrobots-59/54439 "2005-12-27T17:44:58Z")

</div>

Hi Pilots, the very last deadline is getting close! Send in your submissions for quiz #59 until 6 PM (GMT). cheers Simon

---

## [RRobots (#59)](https://www.ruby-forum.com/t/rrobots-59/77406)

<div class="topic-metadata">

**Author:** [@horndude77](https://www.ruby-forum.com/u/horndude77)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 5:44pm UTC](https://www.ruby-forum.com/t/rrobots-59/77406 "2005-12-27T17:44:57Z")

</div>

Here’s my robot solution. I still have some problems that I couldn’t quite figure out. I’m hoping that by looking through some of the other solutions I’ll be able to figure them out. It does a pretty good job of avoid…

---

## [Rake and 1.8.4](https://www.ruby-forum.com/t/rake-and-1-8-4/75345)

<div class="topic-metadata">

**Author:** [@jamis](https://www.ruby-forum.com/u/jamis)\
**Replies:** 3\
**Last updated:** [December 27, 2005, 5:32pm UTC](https://www.ruby-forum.com/t/rake-and-1-8-4/75345 "2005-12-27T17:32:42Z")

</div>

Looks like there may be a problem with Rake 0.6.2 and Ruby 1.8.4. If I have a task that uses either chdir or cd, I get an error: rake aborted! no such option: noop /Users/jamis/ruby184/lib/ruby/1.8/fileutils.rb:1422:…

---

## [Mac OS Roma to UTF-8 (Kconv | Iconv\]](https://www.ruby-forum.com/t/mac-os-roma-to-utf-8-kconv-iconv/76524)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 27, 2005, 3:00pm UTC](https://www.ruby-forum.com/t/mac-os-roma-to-utf-8-kconv-iconv/76524 "2005-12-27T15:00:03Z")

</div>

i’ve a small test using rubyaeosa-0.2.3, works great if i let the output “as is”. In that case, according to SubEthaEdit (a MacOS X editor) the output string is encoded in MacOS Roman. Because i’ll use the output in …

---

## [Suse 10 irb navigation keys does not work](https://www.ruby-forum.com/t/suse-10-irb-navigation-keys-does-not-work/51035)

<div class="topic-metadata">

**Author:** [@lalerijo](https://www.ruby-forum.com/u/lalerijo)\
**Replies:** 1\
**Last updated:** [December 27, 2005, 1:05pm UTC](https://www.ruby-forum.com/t/suse-10-irb-navigation-keys-does-not-work/51035 "2005-12-27T13:05:12Z")

</div>

is there any configuration in suse to activate navigation keys in IRB, my suse 10 installation does not work well when I run IRB in Konsole (KDE) Regards, lalerijo

---

## [Ruby command -- bash readline completion](https://www.ruby-forum.com/t/ruby-command-bash-readline-completion/51159)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 12:50pm UTC](https://www.ruby-forum.com/t/ruby-command-bash-readline-completion/51159 "2005-12-27T12:50:07Z")

</div>

I have put together some basic bash readline completion for ruby. Typing ruby -\[TAB\] will give you a list of available command line switches. Typing \`ruby -r\[TAB\]’ will give you a list of available libraries to load.…

---

## [Quick Regex Query](https://www.ruby-forum.com/t/quick-regex-query/74450)

<div class="topic-metadata">

**Author:** [@Neowulf](https://www.ruby-forum.com/u/Neowulf)\
**Replies:** 6\
**Last updated:** [December 27, 2005, 11:58am UTC](https://www.ruby-forum.com/t/quick-regex-query/74450 "2005-12-27T11:58:55Z")

</div>

Hi all, Really quick one for the regex gurus… Anyone know of a regex string which will extract out the stuff between “from” and “not” without the spaces between? User root from toronto-hs-216-138-233-211.s-ip.magma.c…

---

## [Escape sequences for } { and $ in gsub](https://www.ruby-forum.com/t/escape-sequences-for-and-in-gsub/51150)

<div class="topic-metadata">

**Author:** [@james\_Cunningham](https://www.ruby-forum.com/u/james_Cunningham)\
**Replies:** 1\
**Last updated:** [December 27, 2005, 9:46am UTC](https://www.ruby-forum.com/t/escape-sequences-for-and-in-gsub/51150 "2005-12-27T09:46:29Z")

</div>

I’ve found an older thread regarding escape sequences and gsub - but I did not understand all of the explanation. I am trying to replace the following string portion $\\symbol{92} with $ and from the older thread it…

---

## [Writing to a file converting it needs a thread?](https://www.ruby-forum.com/t/writing-to-a-file-converting-it-needs-a-thread/76620)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 27, 2005, 9:25am UTC](https://www.ruby-forum.com/t/writing-to-a-file-converting-it-needs-a-thread/76620 "2005-12-27T09:25:27Z")

</div>

i have a small script building an xml string and, afterwards, i need to convert the string. basically i do : xml="" album\_list.each do |k,l| xml=xml+"\<name first="#{l\[0\]}" last="#{l\[1\]}" company="#{l\[2\]}" organizat…

---

## [Can't figure out what's wrong](https://www.ruby-forum.com/t/cant-figure-out-whats-wrong/51148)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 7:44am UTC](https://www.ruby-forum.com/t/cant-figure-out-whats-wrong/51148 "2005-12-27T07:44:32Z")

</div>

I’m reading the why’s ruby guide, and i’ve retyped a class in the guide to use through the metaprogramming chapter. when i try to use it with irb i get this error: nomethoderror: undefined method '\[\]=\] for nil:class

---

## [Re: Found a neat trick for doing recursive one-liners](https://www.ruby-forum.com/t/re-found-a-neat-trick-for-doing-recursive-one-liners/51138)

<div class="topic-metadata">

**Author:** [@SSSiso-8859-1SQSPeS](https://www.ruby-forum.com/u/SSSiso-8859-1SQSPeS)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 5:19am UTC](https://www.ruby-forum.com/t/re-found-a-neat-trick-for-doing-recursive-one-liners/51138 "2005-12-27T05:19:03Z")

</div>

Gary W. \[mailto:removed\_email\_address@domain.invalid\] #find -name ‘\*.txt’ -exec ruby -ne ‘print if /Hello/’ ‘{}’ ‘;’ compare

---

## [The above solutions share a problem](https://www.ruby-forum.com/t/the-above-solutions-share-a-problem/76736)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 5:04am UTC](https://www.ruby-forum.com/t/the-above-solutions-share-a-problem/76736 "2005-12-27T05:04:02Z")

</div>

Example: require ‘date’ require ‘time’ dt = DateTime.parse(‘2005-12-24T12:00:00Z’) # UTC lt = Time.parse(dt.strftime("%c")) puts dt.asctime \<\< " " \<\< dt.zone puts lt.asctime \<\< " " \<\< lt.zone Output: Sat Dec 24 1…

---

## [Global rb\_funcall](https://www.ruby-forum.com/t/global-rb-funcall/51129)

<div class="topic-metadata">

**Author:** [@SSSISO-8859-1SQSSim](https://www.ruby-forum.com/u/SSSISO-8859-1SQSSim)\
**Replies:** 3\
**Last updated:** [December 27, 2005, 4:52am UTC](https://www.ruby-forum.com/t/global-rb-funcall/51129 "2005-12-27T04:52:00Z")

</div>

Hi, i’m embedding ruby into a C++, how do i call global functions from C? like rb\_funcall2(??, rb\_intern(“test”), 0, NULL); thanks Simon

---

## [Test from rforum](https://www.ruby-forum.com/t/test-from-rforum/76662)

<div class="topic-metadata">

**Author:** [@MrSTest](https://www.ruby-forum.com/u/MrSTest)\
**Replies:** 1\
**Last updated:** [December 27, 2005, 3:00am UTC](https://www.ruby-forum.com/t/test-from-rforum/76662 "2005-12-27T03:00:57Z")

</div>

testing…

---

## [Nntp-client](https://www.ruby-forum.com/t/nntp-client/76621)

<div class="topic-metadata">

**Author:** [@space](https://www.ruby-forum.com/u/space)\
**Replies:** 2\
**Last updated:** [December 27, 2005, 2:18am UTC](https://www.ruby-forum.com/t/nntp-client/76621 "2005-12-27T02:18:51Z")

</div>

Hi, I’m looking for a nntp-client module. I used google but found only old and erroneous code snippets. Does anybody have a solution ? Greetings, Uwe

---

## [Fails to start webrick](https://www.ruby-forum.com/t/fails-to-start-webrick/54373)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 27, 2005, 1:33am UTC](https://www.ruby-forum.com/t/fails-to-start-webrick/54373 "2005-12-27T01:33:29Z")

</div>

hi I’m trying to setup ruby and rails. I’ve installed ruby and the rails but while trying to start the webserver webrick get the following message: C:\\TestApps\\Rails\>ruby script/server ruby: No such file or director…

---

## [eBay4R availability announcement](https://www.ruby-forum.com/t/ebay4r-availability-announcement/51133)

<div class="topic-metadata">

**Author:** [@Garry\_Dolley](https://www.ruby-forum.com/u/Garry_Dolley)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 1:21am UTC](https://www.ruby-forum.com/t/ebay4r-availability-announcement/51133 "2005-12-27T01:21:25Z")

</div>

I’d like to announce the availability of eBay4R v0.5.1 alpha, a pure-Ruby wrapper for eBay’s Web Services SOAP API. Emphasis is on ease of use and small footprint. More information and downloads are available here: …

---

## [\- E05 - Ruby 1.8.4 ri class documentation](https://www.ruby-forum.com/t/e05-ruby-1-8-4-ri-class-documentation/51097)

<div class="topic-metadata">

**Author:** [@Ilias\_L](https://www.ruby-forum.com/u/Ilias_L)\
**Replies:** 6\
**Last updated:** [December 27, 2005, 1:15am UTC](https://www.ruby-forum.com/t/e05-ruby-1-8-4-ri-class-documentation/51097 "2005-12-27T01:15:23Z")

</div>

I’ve seen that ruby 1.8.4 was released. I’ve followed the instructions: http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html but failed to get it running. " C:\>ri class C:\\ruby\\bin\\ruby: no such file…

---

## [Q: easy raspell install under Windows?](https://www.ruby-forum.com/t/q-easy-raspell-install-under-windows/51131)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 0\
**Last updated:** [December 27, 2005, 12:54am UTC](https://www.ruby-forum.com/t/q-easy-raspell-install-under-windows/51131 "2005-12-27T00:54:21Z")

</div>

The raspell Ruby wrapper for the ASPELL utility is very easy to install under Linux. Unfortunately, I am using raspell for an example in a Ruby book that I am writing and some readers will be using Windows instead of …

---

## [Inconsistent testing Ruby 1.8.4 on Tiger](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 27, 2005, 12:33am UTC](https://www.ruby-forum.com/t/inconsistent-testing-ruby-1-8-4-on-tiger/51090 "2005-12-27T00:33:17Z")

</div>

I was able to build ruby 1.8.4 on my Tiger (OSX 10.4.3) box here. Everything built fine, and it appears that the readline support works as well. But when i run “make test-all” I get Inconsistent results. Ocne I’d get …

---

## [Getting the color of a pixel](https://www.ruby-forum.com/t/getting-the-color-of-a-pixel/76574)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 1\
**Last updated:** [December 26, 2005, 10:35pm UTC](https://www.ruby-forum.com/t/getting-the-color-of-a-pixel/76574 "2005-12-26T22:35:41Z")

</div>

Hi, I have a few questions about RMagick: How do I get the color of a specific pixel? (By giving it the coordinates of the pixel) How do I store parts of a picture to a file? (So like everything between points (3,7)…

---

## [Getting the color of a pixel](https://www.ruby-forum.com/t/getting-the-color-of-a-pixel/76573)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 0\
**Last updated:** [December 26, 2005, 10:11pm UTC](https://www.ruby-forum.com/t/getting-the-color-of-a-pixel/76573 "2005-12-26T22:11:55Z")

</div>

.each\_line do |line|

---

## [Bruce Eckel and Ruby](https://www.ruby-forum.com/t/bruce-eckel-and-ruby/50755)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 63\
**Last updated:** [December 26, 2005, 7:01pm UTC](https://www.ruby-forum.com/t/bruce-eckel-and-ruby/50755 "2005-12-26T19:01:42Z")

</div>

I really don’t understand the point of this. If you like Python, use it. If you like Ruby, use it. I am in the latter category. In fact, I am not opposed to learning both. At the moment I haven’t time, but later mayb…

---

## [TCPSocket Connection](https://www.ruby-forum.com/t/tcpsocket-connection/76079)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 26, 2005, 3:24pm UTC](https://www.ruby-forum.com/t/tcpsocket-connection/76079 "2005-12-26T15:24:54Z")

</div>

I am working on a network application on an unstable network. I need to do something like call client.connected?() on the server side to see if the clients are still connected before I try to write to them. Any ideas? …

---

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

<div class="topic-metadata">

**Author:** [@blooming](https://www.ruby-forum.com/u/blooming)\
**Replies:** 0\
**Last updated:** [December 26, 2005, 2:36pm UTC](https://www.ruby-forum.com/t/no-subject/76374 "2005-12-26T14:36:38Z")

</div>

unsubscribe

---

## [Oddity with block argument passing](https://www.ruby-forum.com/t/oddity-with-block-argument-passing/50754)

<div class="topic-metadata">

**Author:** [@glimjaur](https://www.ruby-forum.com/u/glimjaur)\
**Replies:** 3\
**Last updated:** [December 26, 2005, 1:57pm UTC](https://www.ruby-forum.com/t/oddity-with-block-argument-passing/50754 "2005-12-26T13:57:31Z")

</div>

In my latest project, I was a bit surprised by the way arguments to Proc.new were handled. Somehow an array which i passed in was mysteriously lost and presented as a nil within the block I had created. If this is to…

---

## [Rolls - Christmas Present Pre-release](https://www.ruby-forum.com/t/rolls-christmas-present-pre-release/54326)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [December 26, 2005, 12:18pm UTC](https://www.ruby-forum.com/t/rolls-christmas-present-pre-release/54326 "2005-12-26T12:18:14Z")

</div>

Ooo… I’ve released a version of Rolls this evening that I think is sutable for others to start having a look (v0.5.0). Rolls stands for Ruby Object-oriented Library Ledger. Mainly it is a way to add versioning support…

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

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