# Ruby

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

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

---

## [Newby Help](https://www.ruby-forum.com/t/newby-help/146339)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 3\
**Last updated:** [August 20, 2008, 5:00am UTC](https://www.ruby-forum.com/t/newby-help/146339 "2008-08-20T05:00:48Z")

</div>

I’ve just found ruby and want to teach it to my son & myself, and have found several tutorials that will work fine, I’ve loaded ruby on my pc (the newest version) I’ve written a small sample program prog.rb - when i t…

---

## [Define\_method issue](https://www.ruby-forum.com/t/define-method-issue/146338)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [August 20, 2008, 4:55am UTC](https://www.ruby-forum.com/t/define-method-issue/146338 "2008-08-20T04:55:32Z")

</div>

Based on the following example should I conclude whether I use instance\_eval or class\_eval, define\_method always creates an instance method. class Music end Music.instance\_eval do define\_method :jazz do puts ‘i am…

---

## [Autoload with a block?](https://www.ruby-forum.com/t/autoload-with-a-block/145936)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 9\
**Last updated:** [August 20, 2008, 4:50am UTC](https://www.ruby-forum.com/t/autoload-with-a-block/145936 "2008-08-20T04:50:16Z")

</div>

I’ve just discovered Ruby’s autoload feature. It looks to imply something like this: autoload :Foo, ‘foo’ Bar.autoload :Baz, ‘bar/baz’ This implies that to have namespace’d modules autoloaded properly, I would end …

---

## [Pretty 0.3.1 released](https://www.ruby-forum.com/t/pretty-0-3-1-released/146246)

<div class="topic-metadata">

**Author:** [@wujciol](https://www.ruby-forum.com/u/wujciol)\
**Replies:** 4\
**Last updated:** [August 20, 2008, 4:23am UTC](https://www.ruby-forum.com/t/pretty-0-3-1-released/146246 "2008-08-20T04:23:58Z")

</div>

Changes: Code is now using rules files to parse files specified by user Rules fixed Usage: pretty \[-language\] filename(-s) Project now need people who will write rules files for another languages. This is rule file …

---

## [Nested Arrays in Method Definitions--a puzzle](https://www.ruby-forum.com/t/nested-arrays-in-method-definitions-a-puzzle/146328)

<div class="topic-metadata">

**Author:** [@Jonah\_Bloch-Johnson](https://www.ruby-forum.com/u/Jonah_Bloch-Johnson)\
**Replies:** 3\
**Last updated:** [August 20, 2008, 1:57am UTC](https://www.ruby-forum.com/t/nested-arrays-in-method-definitions-a-puzzle/146328 "2008-08-20T01:57:08Z")

</div>

Hello there Ruby-minded people! I am writing because I am somewhat stumped by why the following discrepency occurs; having defined the following: class Warfare def haves x = \[1\] y = \[\] y \<\< x x = \[2\] # (compare …

---

## [YAML dumping custom object that needs type conversions](https://www.ruby-forum.com/t/yaml-dumping-custom-object-that-needs-type-conversions/146332)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 0\
**Last updated:** [August 20, 2008, 1:49am UTC](https://www.ruby-forum.com/t/yaml-dumping-custom-object-that-needs-type-conversions/146332 "2008-08-20T01:49:32Z")

</div>

I want to use Ruby 1.8.6 YAML to dump this (simplified) object: class T \< Struct.new(:template) The :template accessor stores a class, which isn’t something that YAML can dump. So it seems I need to convert it to a st…

---

## [Accented letters](https://www.ruby-forum.com/t/accented-letters/146166)

<div class="topic-metadata">

**Author:** [@angico](https://www.ruby-forum.com/u/angico)\
**Replies:** 10\
**Last updated:** [August 20, 2008, 1:13am UTC](https://www.ruby-forum.com/t/accented-letters/146166 "2008-08-20T01:13:14Z")

</div>

Hi, all. I’m developing an application using FXRuby and need to enter text that has accented letters in it (portuguese texts). But the controls doesn’t show the accented letters as I type them - just the correspondin…

---

## [FTP error](https://www.ruby-forum.com/t/ftp-error/145955)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [August 20, 2008, 12:30am UTC](https://www.ruby-forum.com/t/ftp-error/145955 "2008-08-20T00:30:30Z")

</div>

Hi, I’m new to ruby and writing a small ftp program to list some files. I’m testing using my own localhost ftp, but ruby is giving me the following error: getaddrinfo: no address associated with hostname. (SocketErro…

---

## [Code Review: ironrubyns2](https://www.ruby-forum.com/t/code-review-ironrubyns2/146308)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/code-review-ironrubyns2/146308 "2008-08-19T22:45:38Z")

</div>

tfpt review “/shelveset:ironrubyns2;REDMOND\\tomat” Renames top level namespace from Ruby to IronRuby. Renames Ruby.IronRuby class to IronRuby.Ruby. Tomas

---

## [SVN r135 renames Ruby namespace to IronRuby](https://www.ruby-forum.com/t/svn-r135-renames-ruby-namespace-to-ironruby/146306)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/svn-r135-renames-ruby-namespace-to-ironruby/146306 "2008-08-19T22:36:50Z")

</div>

FYI: this might have impact on your applications. Thanks, -John

---

## [\[ANN\] ActiveRecord English Like Queries v0.0.2](https://www.ruby-forum.com/t/ann-activerecord-english-like-queries-v0-0-2/146227)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/ann-activerecord-english-like-queries-v0-0-2/146227 "2008-08-19T22:13:14Z")

</div>

I am pleased to announce the release of English Like Queries \[pronounced in a proper British accent\] v0.0.2 Changes: klass.where ‘name includes’ =\> \[‘abc’, ‘def’\] now defaults to a .find :all query–much nicer. Engli…

---

## [Ruby CGI](https://www.ruby-forum.com/t/ruby-cgi/146301)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/ruby-cgi/146301 "2008-08-19T21:51:57Z")

</div>

You can also find the source at http://pastebin.ca/1178939 if you do not wish to download the file. I have this ruby program, and it works fine via SSH to the server. However, using a web browser it spits a 500 error …

---

## [Hpricot install failure on amd64](https://www.ruby-forum.com/t/hpricot-install-failure-on-amd64/146289)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/hpricot-install-failure-on-amd64/146289 "2008-08-19T20:13:26Z")

</div>

I have reported the following to removed\_email\_address@domain.invalid Has anyone experienced anything similar or am I on my own on this one? All advice appreciated Thanks David From: David S. removed\_email\_address@…

---

## [How to remove a remote source from gem 'remote sources'](https://www.ruby-forum.com/t/how-to-remove-a-remote-source-from-gem-remote-sources/146262)

<div class="topic-metadata">

**Author:** [@markusa](https://www.ruby-forum.com/u/markusa)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/how-to-remove-a-remote-source-from-gem-remote-sources/146262 "2008-08-19T19:48:01Z")

</div>

Good afternoon, everyone. On Ruby 1.8.6 on Mac OS 10.5.4, I’m having some problems with common gem operations that I never experienced previously. Currently, $ gem list -remote fails with: WARNING: RubyGems 1.2+ in…

---

## [PDF to text covertor?](https://www.ruby-forum.com/t/pdf-to-text-covertor/145539)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/pdf-to-text-covertor/145539 "2008-08-19T19:43:29Z")

</div>

Dear all, Could anyone explain how to do convert PDF to text format. Thanks in advance Regards, Jose Martin

---

## [$B%a%b%j%j!\<%/5M$a9g$o$;(B](https://www.ruby-forum.com/t/b-a-b-j-j-5m-a9g-o-b/146271)

<div class="topic-metadata">

**Author:** [@shinichiro.h](https://www.ruby-forum.com/u/shinichiro.h)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/b-a-b-j-j-5m-a9g-o-b/146271 "2008-08-19T19:33:31Z")

</div>

e$BIMCO$G$9!#e(B e$B$$$/$D$+%a%b%j%j!\<%/$r8+$D$1$?$N$GJs9p$7$F$\*$-$^$9!#e(B e$B=EMW$J$N$Oe(B transcode.c e$B$@$1$+$H;W$$$^$9!#e(B test/ruby/test\_transcode.rb e$BFs2U=j%j!\<%/$7$F$k$+$J$H;W$$$^$9!#e(B e$B0l2U=j$Oe(B …

---

## [When are web frameworks needed?](https://www.ruby-forum.com/t/when-are-web-frameworks-needed/146216)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/when-are-web-frameworks-needed/146216 "2008-08-19T19:29:58Z")

</div>

Hi, With the recent birth of Phusion Passenger (and Rack), I’m wondering if all of the Ruby web frameworks are as important as they used to be? I mean, you can now create a simple web app using ruby, AND easily deplo…

---

## [Array API](https://www.ruby-forum.com/t/array-api/146238)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 6\
**Last updated:** [August 19, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/array-api/146238 "2008-08-19T18:45:58Z")

</div>

Hi, I am going through the ruby Array API. In the API , there is staetment Included Modules Enumerable Is this means that we are inheriting the enumerable class to array? Also there is sort\_by method for the enumera…

---

## [Outlook, MAPI, Sending Mail](https://www.ruby-forum.com/t/outlook-mapi-sending-mail/146197)

<div class="topic-metadata">

**Author:** [@jtucker](https://www.ruby-forum.com/u/jtucker)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/outlook-mapi-sending-mail/146197 "2008-08-19T18:20:11Z")

</div>

Hi All, I am trying to write a program to test that our email servers are working properly. I have a ruby program to send an email from a MS Outlook inbox connected to an exchange mail server. The program using WIN3…

---

## [Merb on Websphere using RackServlet writes production.log to "/" (root of machine's filesystem)](https://www.ruby-forum.com/t/merb-on-websphere-using-rackservlet-writes-production-log-to-root-of-machines-filesystem/146174)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/merb-on-websphere-using-rackservlet-writes-production-log-to-root-of-machines-filesystem/146174 "2008-08-19T18:08:22Z")

</div>

JRuby 1.1.3 Rack 0.3.0 Merb 0.9.4 Warbler 0.9.10 I have an app. that appears to be “successfully” deployed to Websphere through warbler, but my production.log file is being written to the machine’s root directory “…

---

## [Easy code generation in Ruby](https://www.ruby-forum.com/t/easy-code-generation-in-ruby/146269)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/easy-code-generation-in-ruby/146269 "2008-08-19T18:07:25Z")

</div>

Hi, I know how to dynamically create methods and classes in Ruby, but is there anyway to save these methods to a file? eg. I’m looking for something like this: define\_method\_in\_file(“File.rb”, :myMethod) do instance…

---

## [Reading x bytes at a time](https://www.ruby-forum.com/t/reading-x-bytes-at-a-time/146209)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/reading-x-bytes-at-a-time/146209 "2008-08-19T16:56:09Z")

</div>

Hi all, I’m trying to write a little script to read files in a directory (x bytes at a time), do an md5 checksum of the bytes and print them to a text file. Everything is working fine at the moment except the reading…

---

## [Rexml dtd parser](https://www.ruby-forum.com/t/rexml-dtd-parser/106330)

<div class="topic-metadata">

**Author:** [@shadowcipher](https://www.ruby-forum.com/u/shadowcipher)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/rexml-dtd-parser/106330 "2008-08-19T16:14:18Z")

</div>

I seem to have some personal confusion with how to correctly utilize the rexml/dtd library. I am using ruby version 1.8.6 and when I orginally tried to use the code I received some unknown method errors. I modified …

---

## [Gecode/R 0.9.0](https://www.ruby-forum.com/t/gecode-r-0-9-0/146254)

<div class="topic-metadata">

**Author:** [@andreas\_l](https://www.ruby-forum.com/u/andreas_l)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/gecode-r-0-9-0/146254 "2008-08-19T16:13:26Z")

</div>

Gecode/R version 0.9.0 has been released. http://gecoder.rubyforge.org/ This release contains all functionality planned for 1.0.0. == What is Gecode/R? Gecode/R is a Ruby interface to the Gecode constraint programmin…

---

## [IronRuby and Iphone SDK and Google Android SDK](https://www.ruby-forum.com/t/ironruby-and-iphone-sdk-and-google-android-sdk/146217)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/ironruby-and-iphone-sdk-and-google-android-sdk/146217 "2008-08-19T15:35:47Z")

</div>

Hi, I would like to know, where will i be able to use my IronRuby knowledge in near future… (1) Can i work with Iphone SDK with IronRuby OR… (2) IronRuby will be helpful with Google Android SDK…? Pl. guide me, so t…

---

## [Require not working on server](https://www.ruby-forum.com/t/require-not-working-on-server/146192)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/require-not-working-on-server/146192 "2008-08-19T15:14:36Z")

</div>

I’m developing on a Mac and deploying to a RHEL4 linux server. For some reason while “require” returns a boolean on the Mac, it is returning an empty array “\[\]” on the server. Where can I find the code for “require” …

---

## [Profligacy / jruby gem question](https://www.ruby-forum.com/t/profligacy-jruby-gem-question/146255)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/profligacy-jruby-gem-question/146255 "2008-08-19T14:43:27Z")

</div>

Dear all, I’ve been trying to install the profligacy gem (http://ihate.rubyforge.org/profligacy/sample.html) in Jruby, but couldn’t use it (in ubuntu 8.04). With the gems version, I get this error: /usr/local/jruby-…

---

## ['gets' not reading from provided reader? (JSR223+Jruby)](https://www.ruby-forum.com/t/gets-not-reading-from-provided-reader-jsr223-jruby/146239)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/gets-not-reading-from-provided-reader-jsr223-jruby/146239 "2008-08-19T12:40:31Z")

</div>

The following program almost works: I’m trying to read from a text file, rather than stdin, but ‘gets’ seems to insist I type at ‘stdin’… Is this likely a problem in JRuby, The JRuby Engine or something wrong with the…

---

## [Sharing classes in rails and with other ruby scripts](https://www.ruby-forum.com/t/sharing-classes-in-rails-and-with-other-ruby-scripts/146071)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 7:34am UTC](https://www.ruby-forum.com/t/sharing-classes-in-rails-and-with-other-ruby-scripts/146071 "2008-08-19T07:34:29Z")

</div>

Hey there all, I have several Ruby classes that I need to share between several applications. Our company collects information from industrial machines, processes it, and alerts our customers of system changes. This…

---

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

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 6:55am UTC](https://www.ruby-forum.com/t/no-subject/146218 "2008-08-19T06:55:25Z")

</div>

unsubscribe Robert W. Robert W.

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

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