# Ruby

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

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

---

## [Word\_wrap method for String?](https://www.ruby-forum.com/t/word-wrap-method-for-string/80306)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 9\
**Last updated:** [March 13, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/word-wrap-method-for-string/80306 "2006-03-13T15:08:24Z")

</div>

Hi all, For a text adventure program I’m working on I needed a method to word wrap a long string based on spaces or non-word characters so I came up with this. I just thought I’d post it to see if there are any thoug…

---

## [Help me understand why the Ruby block is slower than without](https://www.ruby-forum.com/t/help-me-understand-why-the-ruby-block-is-slower-than-without/79745)

<div class="topic-metadata">

**Author:** [@orotone](https://www.ruby-forum.com/u/orotone)\
**Replies:** 35\
**Last updated:** [March 13, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/help-me-understand-why-the-ruby-block-is-slower-than-without/79745 "2006-03-13T14:55:58Z")

</div>

I just wrote my first Ruby script. I’m an experienced C and perl programmer, so please, if it looks too much like these languages and not Ruby, let me know. I’ve got a 100K word list (Linux dictionary) on my Mac and…

---

## [Ruby application](https://www.ruby-forum.com/t/ruby-application/80240)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 13, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/ruby-application/80240 "2006-03-13T14:44:04Z")

</div>

I’m after some general advice about creating a Ruby application that will be installed on Unix systems (Red Hat and HPUX, and possibly Windows later on). I was hoping for a document covering things like: Dealing with …

---

## [RAA \<=\> Gem](https://www.ruby-forum.com/t/raa-gem/80338)

<div class="topic-metadata">

**Author:** [@John\_NSAlegre](https://www.ruby-forum.com/u/John_NSAlegre)\
**Replies:** 0\
**Last updated:** [March 13, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/raa-gem/80338 "2006-03-13T14:40:49Z")

</div>

What is the best way to Search RAA for a type of Ruby code … Find out if that code is installable as a gem … RAA is wonderful but the amount of stuff on there is a bit daunting. Peace john

---

## [Re: Can't get net/smtp to send outside of LAN?](https://www.ruby-forum.com/t/re-cant-get-net-smtp-to-send-outside-of-lan/79358)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 2\
**Last updated:** [March 13, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/re-cant-get-net-smtp-to-send-outside-of-lan/79358 "2006-03-13T14:19:04Z")

</div>

John N. Alegre \[mailto:removed\_email\_address@domain.invalid\] : #if usr@domain is outside the LAN the mail never gets sent #either if the code #is run on ‘localhost’ or on a machine on the LAN with #‘machine’ replaced…

---

## [How to get the soap stream from a client?](https://www.ruby-forum.com/t/how-to-get-the-soap-stream-from-a-client/80242)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 0\
**Last updated:** [March 13, 2006, 11:36am UTC](https://www.ruby-forum.com/t/how-to-get-the-soap-stream-from-a-client/80242 "2006-03-13T11:36:49Z")

</div>

Hi all, With soap4r, I send a soap request to a server, but I would like to see my soap message. Is there a way to get this message ? require ‘soap/rpc/driver’ stub = SOAP::RPC::Driver.new(“http://localhost:8080”, …

---

## [Agile Web Developement with Rails in Italian](https://www.ruby-forum.com/t/agile-web-developement-with-rails-in-italian/80063)

<div class="topic-metadata">

**Author:** [@Mc\_Osten](https://www.ruby-forum.com/u/Mc_Osten)\
**Replies:** 14\
**Last updated:** [March 13, 2006, 11:09am UTC](https://www.ruby-forum.com/t/agile-web-developement-with-rails-in-italian/80063 "2006-03-13T11:09:18Z")

</div>

I have recently seen the italian version of “Agile Web Developement with Rails” in bookstores. It’s italian title is “Sviluppare applicazioni Web con Rails” (unfortunately the “agile” part got lost). This is as far as…

---

## [Recommend a hosting company?](https://www.ruby-forum.com/t/recommend-a-hosting-company/79928)

<div class="topic-metadata">

**Author:** [@albino\_squirrel](https://www.ruby-forum.com/u/albino_squirrel)\
**Replies:** 5\
**Last updated:** [March 13, 2006, 10:51am UTC](https://www.ruby-forum.com/t/recommend-a-hosting-company/79928 "2006-03-13T10:51:04Z")

</div>

Hi Folks, I have an idea for a website. I want to develop it using Ruby on Rails, so ultimately I’ll need a website hosting company. I’m going to be putting together a different take on the various websites that host…

---

## [Mac OS X Intel 10.4.5 readline support](https://www.ruby-forum.com/t/mac-os-x-intel-10-4-5-readline-support/54677)

<div class="topic-metadata">

**Author:** [@reevesg](https://www.ruby-forum.com/u/reevesg)\
**Replies:** 2\
**Last updated:** [March 13, 2006, 10:38am UTC](https://www.ruby-forum.com/t/mac-os-x-intel-10-4-5-readline-support/54677 "2006-03-13T10:38:54Z")

</div>

Does anyone know how to get readline support working for an Intel 10.4.5? This package doesn’t work. http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnOSXTiger Gareth

---

## [\[Quiz 70 Solution\] -- Using Amb](https://www.ruby-forum.com/t/quiz-70-solution-using-amb/80219)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 1\
**Last updated:** [March 13, 2006, 9:05am UTC](https://www.ruby-forum.com/t/quiz-70-solution-using-amb/80219 "2006-03-13T09:05:48Z")

</div>

The Amb library is part of the continuations talk that Chad and I gave at last years Ruby conference. Amb is a library that allows you to choose from a number of possibilities, e.g.: A = Amb.new x = A.choose(1,2,3,4)…

---

## [Array#inject with hash as initial, unexpected error](https://www.ruby-forum.com/t/array-inject-with-hash-as-initial-unexpected-error/80178)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 2\
**Last updated:** [March 13, 2006, 4:59am UTC](https://www.ruby-forum.com/t/array-inject-with-hash-as-initial-unexpected-error/80178 "2006-03-13T04:59:38Z")

</div>

(On Mac OS X 10.4.5, Ruby 1.8.4) Okay, so: \[1, 2, 3\].inject(0) { |s, v| s += v } =\> 6 and: \[1, 2, 3\].inject(\[\]) { |a, v| a \<\< v\*\*2 } =\> \[1, 4, 9\] but: \[1, 2, 3\].inject({}) { |h, v| h\[v\] = v\*\*2 } =\> NoMethod…

---

## [RUDL on Mac OS X?](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [March 13, 2006, 3:37am UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284 "2006-03-13T03:37:36Z")

</div>

Has anyone successfully installed the RUDL library on Mac OS X (preferably Tiger)? If so, can you give me the magic incarnation to feed exconf.rb? Thanks. James Edward G. II

---

## [Freeze and hash](https://www.ruby-forum.com/t/freeze-and-hash/54684)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 2\
**Last updated:** [March 13, 2006, 2:04am UTC](https://www.ruby-forum.com/t/freeze-and-hash/54684 "2006-03-13T02:04:05Z")

</div>

Hello irb(main):069:0\* a = Hash.new(\[\]) =\> {} irb(main):070:0\> a\[1\] \<\< “X” =\> \[“X”\] irb(main):071:0\> a.freeze =\> {} irb(main):072:0\> a.frozen? =\> true irb(main):073:0\> b = a.dup =\> {} irb(main):074:0\> b.frozen…

---

## [Rinda not working through the network - what's wrong?](https://www.ruby-forum.com/t/rinda-not-working-through-the-network-whats-wrong/80177)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 0\
**Last updated:** [March 13, 2006, 12:51am UTC](https://www.ruby-forum.com/t/rinda-not-working-through-the-network-whats-wrong/80177 "2006-03-13T00:51:40Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I have host A (IP 192.168.1.3) and host B (IP 192.168.1.5), both of them Linux (KUbuntu 5.10) with no firewall. I am running ruby 1.8.4, installed from KUbuntu p…

---

## [Regular Expression Intersection](https://www.ruby-forum.com/t/regular-expression-intersection/79900)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 4\
**Last updated:** [March 12, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/regular-expression-intersection/79900 "2006-03-12T22:25:36Z")

</div>

Regular languages are closed under intersection (as well as difference, complement, and of course union). I find myself needing to know whether two regexps intersect. That is, whether the intersection of the two regex…

---

## [Adding methods to a singleton dynamically](https://www.ruby-forum.com/t/adding-methods-to-a-singleton-dynamically/80023)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 3\
**Last updated:** [March 12, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/adding-methods-to-a-singleton-dynamically/80023 "2006-03-12T21:51:21Z")

</div>

I’m building a view hierarchy from a file, and I would like it to add getter methods for every subview created. For example, I should be able to write: window.bottom\_panel.save\_button.left = 20 I played around with…

---

## [Problem installing RMagick](https://www.ruby-forum.com/t/problem-installing-rmagick/80095)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 2\
**Last updated:** [March 12, 2006, 8:43pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick/80095 "2006-03-12T20:43:24Z")

</div>

I am trying to install the RMagick gem under MacOS X (10.3 latest). I have ImageMagick 6.1.8, with development headers, installed via Fink. When I do a simple gem install it seems to work, but I can’t find any dynami…

---

## [Re: Calling plotutils from xemacs using Ruby GSL](https://www.ruby-forum.com/t/re-calling-plotutils-from-xemacs-using-ruby-gsl/79996)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 12, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/re-calling-plotutils-from-xemacs-using-ruby-gsl/79996 "2006-03-12T19:55:20Z")

</div>

Just guessing … Maybe plotutils cannot be found because its path is not visible ? What happens if you run the example from \_http://ruby-gsl.sourceforge.net/rnd3.html\_ (ruby-gsl Sample: rnd3.rb) . If that works out …

---

## [String subclass method returns subclass - bug or feature?](https://www.ruby-forum.com/t/string-subclass-method-returns-subclass-bug-or-feature/79823)

<div class="topic-metadata">

**Author:** [@S.Volkov](https://www.ruby-forum.com/u/S.Volkov)\
**Replies:** 2\
**Last updated:** [March 12, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/string-subclass-method-returns-subclass-bug-or-feature/79823 "2006-03-12T19:51:17Z")

</div>

Could you please explain me why String instance methods return subclass, and MyStr#to\_s returns String, not the receiver as specified? here is the test code $ cat tStringSubClass.rb class MyStr \< String def rest sel…

---

## [Ruby 1.8.4 One-Click Installer](https://www.ruby-forum.com/t/ruby-1-8-4-one-click-installer/80128)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 0\
**Last updated:** [March 12, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-one-click-installer/80128 "2006-03-12T19:51:12Z")

</div>

I just wanted to say good job for the folks responsible for the integrated IRB and Ruby help app that’s bundled with the Ruby 1.8.4 One-Click Installer. This app is a great resource so folks can browse the various cla…

---

## [Ruby Programming Exercises](https://www.ruby-forum.com/t/ruby-programming-exercises/79505)

<div class="topic-metadata">

**Author:** [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Replies:** 8\
**Last updated:** [March 12, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/ruby-programming-exercises/79505 "2006-03-12T18:45:24Z")

</div>

I continually find that not having written a thousand lines or so of plain Ruby is impairing my programming efforts in scripting and Rails. I’m looking for a good set of homework exercises I can work through to brin…

---

## [Cgi script send a bad image to the browser](https://www.ruby-forum.com/t/cgi-script-send-a-bad-image-to-the-browser/79956)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 7\
**Last updated:** [March 12, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/cgi-script-send-a-bad-image-to-the-browser/79956 "2006-03-12T16:27:51Z")

</div>

Hi everyone, I’d like to use a ruby script to generate an image (directed graph) and sand it to an ajax-like javascript script that display the image in the browser. I tryed to do it but what the browser display only…

---

## [Re: Calling plotutils from xemacs using Ruby GSL](https://www.ruby-forum.com/t/re-calling-plotutils-from-xemacs-using-ruby-gsl/80094)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 12, 2006, 2:41pm UTC](https://www.ruby-forum.com/t/re-calling-plotutils-from-xemacs-using-ruby-gsl/80094 "2006-03-12T14:41:30Z")

</div>

Sorry, I actually wanted to say something else in my last mail, letting you try ruby rnd3.rb | graph -Tps \> g.ps , which works out for me. It sends the results from ruby to the external GNU program “graph” , which…

---

## [Mysql command line](https://www.ruby-forum.com/t/mysql-command-line/54675)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 12, 2006, 2:32pm UTC](https://www.ruby-forum.com/t/mysql-command-line/54675 "2006-03-12T14:32:23Z")

</div>

does anyone know how to delete databases/tables in mysql command line?

---

## [Python looking better](https://www.ruby-forum.com/t/python-looking-better/54493)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 19\
**Last updated:** [March 12, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/python-looking-better/54493 "2006-03-12T13:16:07Z")

</div>

… though they need someone to improve the grammar: They got rid of that fugly “ping-pong ball” text logo, too. – James B. http://www.ruby-doc.org - Ruby Help & Documentation Ruby Code & Style - The Journal B…

---

## [Re: Small regexp question](https://www.ruby-forum.com/t/re-small-regexp-question/80066)

<div class="topic-metadata">

**Author:** [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Replies:** 0\
**Last updated:** [March 12, 2006, 12:27pm UTC](https://www.ruby-forum.com/t/re-small-regexp-question/80066 "2006-03-12T12:27:07Z")

</div>

Stefan M. said: You can use /myregexp/m but I’m not sure where this is documented. Which is exactly what I was after, thanks. The list of characters that you can slap on to the end are (cribbed from the Nutshell)…

---

## [Latent semantic indexing, but for other languages than Engli](https://www.ruby-forum.com/t/latent-semantic-indexing-but-for-other-languages-than-engli/80064)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 12, 2006, 11:50am UTC](https://www.ruby-forum.com/t/latent-semantic-indexing-but-for-other-languages-than-engli/80064 "2006-03-12T11:50:37Z")

</div>

Dear authors of the classifier library, Dear all, I have been using your library to summarize English texts and find it very nice. Thank you for it! Somewhere, you use the Porter stemmer to chop off word endings fro…

---

## [From Python to Ruby in 10 seconds](https://www.ruby-forum.com/t/from-python-to-ruby-in-10-seconds/79990)

<div class="topic-metadata">

**Author:** [@John\_MSGabriele](https://www.ruby-forum.com/u/John_MSGabriele)\
**Replies:** 11\
**Last updated:** [March 12, 2006, 10:25am UTC](https://www.ruby-forum.com/t/from-python-to-ruby-in-10-seconds/79990 "2006-03-12T10:25:24Z")

</div>

I think this subject might make for a very nice article in the faq (maybe to complement http://www.rubygarden.org/faq/entry/show/14 ), or else possibly could belong at Ruby-Doc.org: Documenting the Ruby Language . If…

---

## [Attribute setters for instance variables](https://www.ruby-forum.com/t/attribute-setters-for-instance-variables/54661)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [March 12, 2006, 7:05am UTC](https://www.ruby-forum.com/t/attribute-setters-for-instance-variables/54661 "2006-03-12T07:05:35Z")

</div>

Hello, The Pickaxe book presents the following example: class Incorrect attr\_accessor :one, :two def initialize one = 1 self.two = 2 end end obj = Incorrect.new p obj.one p obj.two The first thing printed is …

---

## [Problem with date and date/format](https://www.ruby-forum.com/t/problem-with-date-and-date-format/79581)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 12, 2006, 7:05am UTC](https://www.ruby-forum.com/t/problem-with-date-and-date-format/79581 "2006-03-12T07:05:34Z")

</div>

i’ve a RubyCocoa app, working well on my computer, but this app crashed on another one the error message being : /Applications/BookmarksMerge.app/Contents/Resources/ThirdParty/date/ format.rb:6: Date is not a class (T…

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

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