# Ruby

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

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

---

## [Simple Class Question](https://www.ruby-forum.com/t/simple-class-question/120735)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [November 20, 2007, 8:58am UTC](https://www.ruby-forum.com/t/simple-class-question/120735 "2007-11-20T08:58:38Z")

</div>

Why can’t I do this? class Service Request.new end class Request end

---

## [Scraping \<table\> from a website](https://www.ruby-forum.com/t/scraping-table-from-a-website/120686)

<div class="topic-metadata">

**Author:** [@cskilbeck](https://www.ruby-forum.com/u/cskilbeck)\
**Replies:** 5\
**Last updated:** [November 20, 2007, 8:15am UTC](https://www.ruby-forum.com/t/scraping-table-from-a-website/120686 "2007-11-20T08:15:19Z")

</div>

Hi, I need to extract everything between and on a website (there’s only one table on the page. So far I have: require ‘open-uri’ page = open(‘http://xxx.html’).read page.gsub!(/\\n/,“”) page.gsub!(/\\r/,“”) inner…

---

## [Is there an equivalent in irb to command: history in bash?](https://www.ruby-forum.com/t/is-there-an-equivalent-in-irb-to-command-history-in-bash/120612)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 10\
**Last updated:** [November 20, 2007, 7:57am UTC](https://www.ruby-forum.com/t/is-there-an-equivalent-in-irb-to-command-history-in-bash/120612 "2007-11-20T07:57:46Z")

</div>

Is there an equivalent in irb to the command history in bash? After I’ve been doing a bunch of work in the shell I often use the history command in bash to get a list of all the commands I’ve executed which I copy and…

---

## [Ruby Question](https://www.ruby-forum.com/t/ruby-question/120655)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [November 20, 2007, 7:51am UTC](https://www.ruby-forum.com/t/ruby-question/120655 "2007-11-20T07:51:55Z")

</div>

New to Ruby, getting “Application error (Rails)” when trying to access the page. Noticed in apache logs permissions denied problem to the fastcgi.crash.log, fixed that with chmod 777, now it just shows the pid that fa…

---

## [Looking for Google API expert to consult on our Google hosted apps (calendar, maps, email, docs)](https://www.ruby-forum.com/t/looking-for-google-api-expert-to-consult-on-our-google-hosted-apps-calendar-maps-email-docs/120727)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 20, 2007, 5:25am UTC](https://www.ruby-forum.com/t/looking-for-google-api-expert-to-consult-on-our-google-hosted-apps-calendar-maps-email-docs/120727 "2007-11-20T05:25:52Z")

</div>

Looking for Google API expert to consult on our Google hosted apps (calendar, maps, email, docs) Should have a working knowledge of Ruby, RoR and MySQL as well. Please do not respond if you have not previously worked …

---

## [User-choices 1.1.6](https://www.ruby-forum.com/t/user-choices-1-1-6/120726)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 0\
**Last updated:** [November 20, 2007, 4:09am UTC](https://www.ruby-forum.com/t/user-choices-1-1-6/120726 "2007-11-20T04:09:55Z")

</div>

A minor update, but I never announced this library before. User-choices is a library that lets users make choices on the command line, in environment variables, or in YAML or XML configuration files. Aside from setup …

---

## [Enterprise ruby](https://www.ruby-forum.com/t/enterprise-ruby/119741)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 49\
**Last updated:** [November 20, 2007, 2:39am UTC](https://www.ruby-forum.com/t/enterprise-ruby/119741 "2007-11-20T02:39:55Z")

</div>

I am thinking of doing a ‘side by side’ distro of Ruby that includes the latest SVN up’s, as well as some ‘fringe’ best practices, like a tweaked GC. It would have the ability to do force\_recycle on objects arbitraril…

---

## [1.9$B$N%a%=%C%I$NL\>A0(B](https://www.ruby-forum.com/t/1-9-b-n-a-c-i-nl-a0-b/120721)

<div class="topic-metadata">

**Author:** [@jordi](https://www.ruby-forum.com/u/jordi)\
**Replies:** 0\
**Last updated:** [November 20, 2007, 2:20am UTC](https://www.ruby-forum.com/t/1-9-b-n-a-c-i-nl-a0-b/120721 "2007-11-20T02:20:38Z")

</div>

e$B$3$N%a!\<%k$Oe(Bruby-coree$B$Ne(B60e$B%a!\<%k0J\>e$Ne(Bthread(method names in 1.9)e$B$N7k2L$NK\]Lu$G$9e(B. e$B$3$N$$$/$D$+$N%a!\<%k$N8e$N7k2L$Oe(B: 1.- Object.send(e$B%a%=%C%I$NL\>A0e(B)e$B$K$D$$$Fe(B .send e$B$r;H$&$1…

---

## [Assignment without attr=](https://www.ruby-forum.com/t/assignment-without-attr/120714)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [November 20, 2007, 1:59am UTC](https://www.ruby-forum.com/t/assignment-without-attr/120714 "2007-11-20T01:59:47Z")

</div>

Not even sure what to call this for the thread subject I want to create a class which is a simple packed set of digits (as a string) as the one and only attribute of the class. There will be several methods to extract…

---

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

<div class="topic-metadata">

**Author:** [@SSSBFS2SOBLiSSB](https://www.ruby-forum.com/u/SSSBFS2SOBLiSSB)\
**Replies:** 0\
**Last updated:** [November 20, 2007, 1:32am UTC](https://www.ruby-forum.com/t/no-subject/120717 "2007-11-20T01:32:42Z")

</div>

unsubscribe

---

## [OpenWFEru workflow engine 0.9.16 released](https://www.ruby-forum.com/t/openwferu-workflow-engine-0-9-16-released/120713)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [November 20, 2007, 1:16am UTC](https://www.ruby-forum.com/t/openwferu-workflow-engine-0-9-16-released/120713 "2007-11-20T01:16:56Z")

</div>

OpenWFEru (“Rufus” for short) is an open source Ruby workflow and BPM engine. It’s a tool for interpreting and playing \[business\] processes. There is an example integration of the workflow engine within a Ruby on Rai…

---

## ["rubyscript2exe", cannot put picture in the project?](https://www.ruby-forum.com/t/rubyscript2exe-cannot-put-picture-in-the-project/108395)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 11\
**Last updated:** [November 19, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-cannot-put-picture-in-the-project/108395 "2007-11-19T23:48:39Z")

</div>

when i create a .exe file from ruby, the “rubyscript2exe” will occur error, because the project involve some picture. So how i can put picture in my project without errors???

---

## [Float math?](https://www.ruby-forum.com/t/float-math/120698)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/float-math/120698 "2007-11-19T22:16:42Z")

</div>

hey all, I’ve got a delimited file with lines like so… 1234^2007-11-17^4321^Peter Pan^123 test st^^portland^ir^97101^US^^^Statement 34567^87.92^Statement for 2007-11-17 quick script to total col 13 require ‘csv’ f…

---

## [One for me as a noob hard task](https://www.ruby-forum.com/t/one-for-me-as-a-noob-hard-task/120687)

<div class="topic-metadata">

**Author:** [@joakim](https://www.ruby-forum.com/u/joakim)\
**Replies:** 6\
**Last updated:** [November 19, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/one-for-me-as-a-noob-hard-task/120687 "2007-11-19T21:29:51Z")

</div>

Write a program which asks us to type in as many words as we want (one word per line, continuing until we just press Enter on an empty line), and which then repeats the words back to us in alphabetical order without u…

---

## [Ramaze version 0.2.0](https://www.ruby-forum.com/t/ramaze-version-0-2-0/120668)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/ramaze-version-0-2-0/120668 "2007-11-19T20:41:46Z")

</div>

This time we are proud to announce Version 0.2.0 of the Ramaze framework, a light and modular open source web framework. This release features a lot of work directly from our community and i am really greatful for e…

---

## [Short introduction on how to create good source doc?](https://www.ruby-forum.com/t/short-introduction-on-how-to-create-good-source-doc/120643)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [November 19, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/short-introduction-on-how-to-create-good-source-doc/120643 "2007-11-19T20:12:42Z")

</div>

Hi all I’d like to document my Ruby sources in a clean and standardized way. But I couldn’t find a short introduction on how to do that, e.g. what markup tags to use etc.? Anyone can post me a link or two? Thanks J…

---

## [Assignment method semantics](https://www.ruby-forum.com/t/assignment-method-semantics/120667)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/assignment-method-semantics/120667 "2007-11-19T18:50:47Z")

</div>

Are there any guidelines for the operational semantics of assignment methods? It seems that because its little more than syntactic sugar, its pretty adhoc. While working with Ruby in Sketchup I came across a method t…

---

## [Prettier documentation](https://www.ruby-forum.com/t/prettier-documentation/120525)

<div class="topic-metadata">

**Author:** [@polypus](https://www.ruby-forum.com/u/polypus)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/prettier-documentation/120525 "2007-11-19T17:18:56Z")

</div>

hi all, how is the documentation for http://rake.rubyforge.org/ and http://syntax.rubyforge.org/api/ generated? i like the look of it much better than vanilla rdoc. any ideas? thanks, \_c

---

## [How to - SSH in Ruby](https://www.ruby-forum.com/t/how-to-ssh-in-ruby/120649)

<div class="topic-metadata">

**Author:** [@arindam](https://www.ruby-forum.com/u/arindam)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/how-to-ssh-in-ruby/120649 "2007-11-19T16:11:45Z")

</div>

Hi, I want to write some code to ssh to a linux machine, and then enter some commands and transfer a file. Is there any class in ruby for SSH, like the class for Telnet? Thanks

---

## [List of error messages](https://www.ruby-forum.com/t/list-of-error-messages/120654)

<div class="topic-metadata">

**Author:** [@mahen](https://www.ruby-forum.com/u/mahen)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/list-of-error-messages/120654 "2007-11-19T16:06:54Z")

</div>

Dear All, I would like to know if there is somewhere, a place where I can find a list of all the error messages that Ruby generates but also their explanations. By the way, I saw that Ruby lacks a HOW-TO list of exam…

---

## [Saving a text file from a web page & save us from PERL/PHP](https://www.ruby-forum.com/t/saving-a-text-file-from-a-web-page-save-us-from-perl-php/120652)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/saving-a-text-file-from-a-web-page-save-us-from-perl-php/120652 "2007-11-19T15:56:25Z")

</div>

…unfortunately…our company is developing a web page from hand written HTML & CSS and will deploy it using IIS with normal IIS cgi…HOW can i retrofit anything ruby (or easy javascript) to produce from within a ‘submit…

---

## [Observe variable set and variable change](https://www.ruby-forum.com/t/observe-variable-set-and-variable-change/120476)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [November 19, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/observe-variable-set-and-variable-change/120476 "2007-11-19T15:34:00Z")

</div>

Hey folks, is there any kind of Ruby / C function with which it is possible to see when a variable is set or changed? Something like: class x def y() z = 42 z = 100 end end So that a function takes care about s…

---

## [Mailing list translation gateway service released!](https://www.ruby-forum.com/t/mailing-list-translation-gateway-service-released/120646)

<div class="topic-metadata">

**Author:** [@jtoy](https://www.ruby-forum.com/u/jtoy)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/mailing-list-translation-gateway-service-released/120646 "2007-11-19T15:06:37Z")

</div>

Hi all, We’ve built a mailing list translation gateway service over at rubynow.com . It takes several of the ruby mailing lists and translates them into other languages so that people can follow the topics if the mail…

---

## [FW: Bignum Parsing](https://www.ruby-forum.com/t/fw-bignum-parsing/120644)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/fw-bignum-parsing/120644 "2007-11-19T14:57:04Z")

</div>

And neither did this. Pete From: Peter Bacon D. \[mailto:removed\_email\_address@domain.invalid\] Sent: Sunday,18 November 18, 2007 06:56 To: ‘removed\_email\_address@domain.invalid’ Subject: Bignum Parsing A simple patc…

---

## [Printing the array values in c](https://www.ruby-forum.com/t/printing-the-array-values-in-c/120641)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/printing-the-array-values-in-c/120641 "2007-11-19T14:48:41Z")

</div>

hey. how is it possible to print out an array (T\_ARRAY) in a C-method? example I want to get the instance methods via the corresponding c method. the method returns T\_ARRAY. VALUE es = rb\_class\_instance\_methods(1, a…

---

## [Replacing spaces](https://www.ruby-forum.com/t/replacing-spaces/120639)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/replacing-spaces/120639 "2007-11-19T14:22:10Z")

</div>

I have a long string “that looks like this”. I want to replace all spaces in the string with " and ".

---

## [To\_plain\_text() in hpricot doesn't do what you'd think it'd do](https://www.ruby-forum.com/t/to-plain-text-in-hpricot-doesnt-do-what-youd-think-itd-do/120636)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/to-plain-text-in-hpricot-doesnt-do-what-youd-think-itd-do/120636 "2007-11-19T14:00:41Z")

</div>

You’d think that the to\_plain\_text() method would conver the HTML to whatever text would be rendered by a browser. That means stripping all the extraneous whitespace, converting and tags to having appropriate c…

---

## [Create, read, update an sqlite database](https://www.ruby-forum.com/t/create-read-update-an-sqlite-database/120613)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/create-read-update-an-sqlite-database/120613 "2007-11-19T12:37:58Z")

</div>

This is all from http://sqlite-ruby.rubyforge.org/sqlite3/faq.html. How do interpret the following error pls: thufir@arrakis ~/rubyCode/sqlite $ thufir@arrakis ~/rubyCode/sqlite $ ruby seven.rb /usr/lib/ruby/gems/1.8…

---

## [Error: conflicting types for](https://www.ruby-forum.com/t/error-conflicting-types-for/120629)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 19, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/error-conflicting-types-for/120629 "2007-11-19T12:08:44Z")

</div>

hey, I dunno why the Compiler gives me " error: conflicting types for ‘rb\_mod\_findm’ " and " error: previous implicit declaration of ‘rb\_mod\_findm’ was here" My code: VALUE rb\_mod\_cwrap(VALUE some, VALUE somea, VALU…

---

## [Rinda and Tuple Spaces](https://www.ruby-forum.com/t/rinda-and-tuple-spaces/120375)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 2\
**Last updated:** [November 19, 2007, 11:55am UTC](https://www.ruby-forum.com/t/rinda-and-tuple-spaces/120375 "2007-11-19T11:55:29Z")

</div>

Hi, If I have a tuple space set up and running using Rinda does a client of the space have to be written in Ruby or (like web-services) can a client be in a language other than Ruby? Thanks Mike

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

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