# Ruby

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

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

---

## [Traits-0.10.0](https://www.ruby-forum.com/t/traits-0-10-0/71180)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 5, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/traits-0-10-0/71180 "2006-10-05T23:37:57Z")

</div>

URLS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby/traits INSTALL yes|sudo gem install traits ABOUT traits.rb is set of attr\_\* like methods on steroids, caffeine, and botox. it en…

---

## [B1.13 of AWDwR is now available](https://www.ruby-forum.com/t/b1-13-of-awdwr-is-now-available/71192)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 11:17pm UTC](https://www.ruby-forum.com/t/b1-13-of-awdwr-is-now-available/71192 "2006-10-05T23:17:56Z")

</div>

Folks: I’ve uploaded the B1.13 version of AWDwR. I’ve updated the Action View chapter: it now uses form\_for for model- based forms, which will help with the eventual transition to Simply Helpful in Rails 2. I also …

---

## [Cannot connect to mongrel running typo](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924)

<div class="topic-metadata">

**Author:** [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924 "2006-10-05T22:17:41Z")

</div>

I just installed Typo 4 on my Ubuntu box. I run typo install foo Starting Typo on port 4821 I then try wget http://127.0.0.1:4821 but no connection is made. Same problem in firefox. No connection. The mongr…

---

## [OptionParser questions](https://www.ruby-forum.com/t/optionparser-questions/71166)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 1\
**Last updated:** [October 5, 2006, 9:37pm UTC](https://www.ruby-forum.com/t/optionparser-questions/71166 "2006-10-05T21:37:37Z")

</div>

I’m a bit confused by the way that OptionParser works. In the “Complete example” on http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/classes/OptionParser.html I see opts = OptionParser.new do |opts| opts.banner …

---

## [Re: question mark at end of method name](https://www.ruby-forum.com/t/re-question-mark-at-end-of-method-name/71177)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 9:19pm UTC](https://www.ruby-forum.com/t/re-question-mark-at-end-of-method-name/71177 "2006-10-05T21:19:33Z")

</div>

From: py \[mailto:removed\_email\_address@domain.invalid\] what does the question mark at the end of a method name represent? i’ve seen what ! does…what is ? It is a convention that indicates that the method is likely t…

---

## [Re: OptionParser questions](https://www.ruby-forum.com/t/re-optionparser-questions/71173)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/re-optionparser-questions/71173 "2006-10-05T21:15:33Z")

</div>

From: Rich M. \[mailto:removed\_email\_address@domain.invalid\] It looks like the “opts” object is being handed to the block, as well as being returned as the result of the “new” method. Is this the case? Is this a comm…

---

## [The next generation of Web stacks: High productivity and a t](https://www.ruby-forum.com/t/the-next-generation-of-web-stacks-high-productivity-and-a-t/71162)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/the-next-generation-of-web-stacks-high-productivity-and-a-t/71162 "2006-10-05T21:01:31Z")

</div>

http://blogs.zdnet.com/Hinchcliffe/?p=67

---

## [Linux Journal: Interview with Tim Bray](https://www.ruby-forum.com/t/linux-journal-interview-with-tim-bray/71163)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/linux-journal-interview-with-tim-bray/71163 "2006-10-05T21:01:31Z")

</div>

The loud Atom evangelist Tim B. talks about everything from Ruby to simplified equal opportunity. http://www.linuxjournal.com/article/9247

---

## [Better ruby way for caseing on class?](https://www.ruby-forum.com/t/better-ruby-way-for-caseing-on-class/71018)

<div class="topic-metadata">

**Author:** [@ebeard](https://www.ruby-forum.com/u/ebeard)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/better-ruby-way-for-caseing-on-class/71018 "2006-10-05T20:45:30Z")

</div>

I currently do this: \[Kernel,String,Object\].each do |klass| case klass.to\_s when ‘Kernel’ : puts ‘I’m doing stuff with object Kernel’ when ‘String’ : puts ‘I’m doing stuff with object String’ when ‘Object’ : puts…

---

## [Re: Better ruby way for caseing on class?](https://www.ruby-forum.com/t/re-better-ruby-way-for-caseing-on-class/71020)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [October 5, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-better-ruby-way-for-caseing-on-class/71020 "2006-10-05T20:41:29Z")

</div>

From: ebeard \[mailto:removed\_email\_address@domain.invalid\] Is there a better way? Here’s one option: \[Kernel,String,Object\].each do |klass| case when klass==Kernel puts “I’m doing stuff with object Kernel” when …

---

## [Re: Better ruby way for caseing on class?](https://www.ruby-forum.com/t/re-better-ruby-way-for-caseing-on-class/71021)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 5, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/re-better-ruby-way-for-caseing-on-class/71021 "2006-10-05T20:39:29Z")

</div>

From: James Edward G. II \[mailto:removed\_email\_address@domain.invalid\] Sure. Drop the call to to\_s() and the ’ … 's around the class names. Case calls ===() for the condition object and Class defines ===() to do wh…

---

## [New Haven Ruby Brigade Meeting: October 11, 2006](https://www.ruby-forum.com/t/new-haven-ruby-brigade-meeting-october-11-2006/71160)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/new-haven-ruby-brigade-meeting-october-11-2006/71160 "2006-10-05T20:37:29Z")

</div>

Anyone who can get to New Haven is welcome to attend the October New Haven Ruby Brigade meeting. It will be held at Mamoun’s Felafel at 7:00 pm on October 11th, 2006 at 85 Howe Street in New Haven, CT (between Chapel…

---

## [Ruby 1.8.5 on AIX 5.3 "ruby -v" errors](https://www.ruby-forum.com/t/ruby-1-8-5-on-aix-5-3-ruby-v-errors/69262)

<div class="topic-metadata">

**Author:** [@mehdi](https://www.ruby-forum.com/u/mehdi)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-on-aix-5-3-ruby-v-errors/69262 "2006-10-05T19:51:24Z")

</div>

HI I compiled ruby-1.8.5 on AIX 5.3. When I run ruby -v its giving this error. I tested the ruby with some of our scripts and it works perfectly fine. #ruby -v ruby 1.8.5 (2006-08-25) \[powerpc-aix5.3.0.0\] ruby: \[BU…

---

## [Re: Associating data with a function](https://www.ruby-forum.com/t/re-associating-data-with-a-function/71069)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 5, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/re-associating-data-with-a-function/71069 "2006-10-05T19:47:24Z")

</div>

From: Joel VanderWerf \[mailto:removed\_email\_address@domain.invalid\] Joel VanderWerf wrote: Use closures and class scopes: class Foo tmp1 = ExpensiveObject.new tmp2 = ExpensiveObject.new Assuming you want to shar…

---

## [Logger rotation problem in multi-process/Rails environment](https://www.ruby-forum.com/t/logger-rotation-problem-in-multi-process-rails-environment/71107)

<div class="topic-metadata">

**Author:** [@Guy\_Rosen](https://www.ruby-forum.com/u/Guy_Rosen)\
**Replies:** 7\
**Last updated:** [October 5, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/logger-rotation-problem-in-multi-process-rails-environment/71107 "2006-10-05T19:23:18Z")

</div>

Hi, There seems to be a bug (or just unexpected behavior…) in logger.rb’s rotation that causes it to either misbehave or fail the application when running in a multi-process environment - specifically Rails. I have R…

---

## [Druby using just IP addresses](https://www.ruby-forum.com/t/druby-using-just-ip-addresses/71029)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/druby-using-just-ip-addresses/71029 "2006-10-05T19:17:17Z")

</div>

Hi I’d like to use druby, but with the client using just an IP address to contact the server, and vice versa. The initial connection works fine, but then it seems the server can’t find the client to send a reply when …

---

## [Webrick/httpsutils missing?](https://www.ruby-forum.com/t/webrick-httpsutils-missing/70748)

<div class="topic-metadata">

**Author:** [@mxbrunet](https://www.ruby-forum.com/u/mxbrunet)\
**Replies:** 4\
**Last updated:** [October 5, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/webrick-httpsutils-missing/70748 "2006-10-05T19:15:17Z")

</div>

I’m trying to run the ‘mechanize’ gem from ubuntu and I get the following errors: No such file to load – webrick/httputils (LoadError) What have I missed? Can anyone help? –max

---

## [Kernel#open and security (was Re: command help)](https://www.ruby-forum.com/t/kernel-open-and-security-was-re-command-help/71144)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [October 5, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/kernel-open-and-security-was-re-command-help/71144 "2006-10-05T18:21:10Z")

</div>

On 10/5/06, Pit C. removed\_email\_address@domain.invalid wrote: Class +IO+ is the basis for all input and output in Ruby. An I/O underlying operating system. \* A string starting with \`\`+|+'' indica…

---

## [Mailing list problems?](https://www.ruby-forum.com/t/mailing-list-problems/71141)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [October 5, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/mailing-list-problems/71141 "2006-10-05T16:50:59Z")

</div>

am i the only one who did not see this message http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/9b98e6e0e36f7dd4/83b498dce4c5c64f#83b498dce4c5c64f ?? regards. -a

---

## [Feeling a little (sc)raped? -- Google CodeSearch](https://www.ruby-forum.com/t/feeling-a-little-sc-raped-google-codesearch/71114)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 7\
**Last updated:** [October 5, 2006, 4:04pm UTC](https://www.ruby-forum.com/t/feeling-a-little-sc-raped-google-codesearch/71114 "2006-10-05T16:04:54Z")

</div>

How do others feel about this Google CodeSearch? http://www.google.com/codesearch T.

---

## [Weakrefs and object caching](https://www.ruby-forum.com/t/weakrefs-and-object-caching/71100)

<div class="topic-metadata">

**Author:** [@tele](https://www.ruby-forum.com/u/tele)\
**Replies:** 2\
**Last updated:** [October 5, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/weakrefs-and-object-caching/71100 "2006-10-05T15:38:51Z")

</div>

Hi, i need to memorize in a Cache some object that i identify through a attribute my\_id. base on some event i update the attributes of the objects in the cache and when the processing is done i can remove the object …

---

## [Context of an Error](https://www.ruby-forum.com/t/context-of-an-error/70985)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [October 5, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/context-of-an-error/70985 "2006-10-05T15:28:48Z")

</div>

I feel like I should know how to do this already, but… How do I get the context in which an error was thrown? x = SomeClass def dosomething x.bar end begin dosomething rescue NoMethodError p e.context #=\> SomeCl…

---

## [Suppress result output in irb?](https://www.ruby-forum.com/t/suppress-result-output-in-irb/71076)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 4\
**Last updated:** [October 5, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/suppress-result-output-in-irb/71076 "2006-10-05T15:26:47Z")

</div>

Hi, Is there a way to prevent irb from printing the result of a expression to the terminal on a command-by-command basis? I’m trying to use irb and soap4r to play around with a SOAP server and in many cases the resu…

---

## [Ruby/Opengl and RUDL](https://www.ruby-forum.com/t/ruby-opengl-and-rudl/70942)

<div class="topic-metadata">

**Author:** [@pinkman](https://www.ruby-forum.com/u/pinkman)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/ruby-opengl-and-rudl/70942 "2006-10-05T15:20:52Z")

</div>

I am using RUDL, to create a 2D engine in Opengl… I cant find anything that would cause for this great deal of lag I am getting, other then the fact I have 17 polygons. I’m… not sure why it would lag so much over only…

---

## [Story Generator (#96)](https://www.ruby-forum.com/t/story-generator-96/71135)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/story-generator-96/71135 "2006-10-05T15:10:45Z")

</div>

The solutions to this quiz where wildly creative, both in form and output. I’m still having nightmares about poor Little Red-Cap and Princess Lily. The chief element of all the solutions was randomness. Jim M. and …

---

## [SQL Server query result encoding](https://www.ruby-forum.com/t/sql-server-query-result-encoding/71131)

<div class="topic-metadata">

**Author:** [@Domas\_S](https://www.ruby-forum.com/u/Domas_S)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 2:28pm UTC](https://www.ruby-forum.com/t/sql-server-query-result-encoding/71131 "2006-10-05T14:28:41Z")

</div>

How can I specify encoding in which text will be returned from SQL server database? I’m using Ruby-DBI.

---

## [Ruby DSL for invoices](https://www.ruby-forum.com/t/ruby-dsl-for-invoices/70847)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 5, 2006, 2:16pm UTC](https://www.ruby-forum.com/t/ruby-dsl-for-invoices/70847 "2006-10-05T14:16:40Z")

</div>

Hi DSL fans, I’ve been playing around with DSLs recently, inspired by the dynamism you get for free with Ruby, and thought I’d try writing one. This is my first effort: http://svn.edendevelopment.co.uk/public/invoice…

---

## [Multilanguage support in select box](https://www.ruby-forum.com/t/multilanguage-support-in-select-box/71074)

<div class="topic-metadata">

**Author:** [@yussibaer](https://www.ruby-forum.com/u/yussibaer)\
**Replies:** 3\
**Last updated:** [October 5, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/multilanguage-support-in-select-box/71074 "2006-10-05T14:02:56Z")

</div>

Hi all, I want to add multilanguage support in a select box. There is a file with all the translations. The entries look like " … l.store “Mr”, “Herr” l.store “Ms”, “Frau” … " Then I want to import these declara…

---

## [WEBrick catching keyboard interrupts](https://www.ruby-forum.com/t/webrick-catching-keyboard-interrupts/71102)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 6\
**Last updated:** [October 5, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/webrick-catching-keyboard-interrupts/71102 "2006-10-05T14:02:38Z")

</div>

Hi all, I’m knocking up a few test scripts using WEBrick (on Ubuntu), and I’m constantly annoyed by the fact that hitting Ctrl-C doesn’t kill it, but makes it print the following to the console: \[2006-10-05 09:43:48\]…

---

## [Socket programming](https://www.ruby-forum.com/t/socket-programming/71116)

<div class="topic-metadata">

**Author:** [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Replies:** 0\
**Last updated:** [October 5, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/socket-programming/71116 "2006-10-05T13:36:35Z")

</div>

I know the basics of Socket programming in Ruby. Can u suggest a few links which could help me in understanding the advanced topics in Ruby socket programming. thanx in advance

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

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