# Ruby

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

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

---

## [Getting values from @params\["variable"\] with a string](https://www.ruby-forum.com/t/getting-values-from-params-variable-with-a-string/61557)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [May 25, 2006, 12:55am UTC](https://www.ruby-forum.com/t/getting-values-from-params-variable-with-a-string/61557 "2006-05-25T00:55:04Z")

</div>

I want to retrieve values from params but cannot hardcode in the value in the brackets \[:value\]. I want to be able to have a variable in the bracket or a string, but it seems that it doesn’t evaluate what is in the b…

---

## [Ruby and unicode](https://www.ruby-forum.com/t/ruby-and-unicode/95214)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/ruby-and-unicode/95214 "2006-05-24T23:04:14Z")

</div>

Does Ruby support unicode? If not it’s a disappointment.

---

## [IRB'ing within a program](https://www.ruby-forum.com/t/irbing-within-a-program/61263)

<div class="topic-metadata">

**Author:** [@minsc](https://www.ruby-forum.com/u/minsc)\
**Replies:** 9\
**Last updated:** [May 24, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/irbing-within-a-program/61263 "2006-05-24T23:02:59Z")

</div>

Hello all I’m hoping someone has a better idea as to how to do this than I. What I’m looking to do, essentially, is start a new irb session within a ruby program. This program would get input from the user, feed that …

---

## [Does it do clientside?](https://www.ruby-forum.com/t/does-it-do-clientside/61474)

<div class="topic-metadata">

**Author:** [@ReggW](https://www.ruby-forum.com/u/ReggW)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/does-it-do-clientside/61474 "2006-05-24T22:17:53Z")

</div>

When it comes to the Web, is Ruby a Serverside or Clientside language? If clientside, how would you get that to work? Thanks

---

## [Define\_method for a single instance?](https://www.ruby-forum.com/t/define-method-for-a-single-instance/61529)

<div class="topic-metadata">

**Author:** [@Jake\_McArthur](https://www.ruby-forum.com/u/Jake_McArthur)\
**Replies:** 5\
**Last updated:** [May 24, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/define-method-for-a-single-instance/61529 "2006-05-24T21:39:26Z")

</div>

I’m trying to define a method for a specific instance of a class rather than for every instance of the class. Basically, something like this: class A def add\_wibble\_method # don’t know what to do here end end foo…

---

## [A bug? FXRuby 1.4.6 segment fault when FXFileDialog.new](https://www.ruby-forum.com/t/a-bug-fxruby-1-4-6-segment-fault-when-fxfiledialog-new/61457)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 2\
**Last updated:** [May 24, 2006, 9:07pm UTC](https://www.ruby-forum.com/t/a-bug-fxruby-1-4-6-segment-fault-when-fxfiledialog-new/61457 "2006-05-24T21:07:40Z")

</div>

FXRuby 1.4.6 works fine except I call FXFileDialog.new. My enviroment is : windows 98 cygwin version 2.427 ruby 1.8.1 (2003-12-25) The program I ran is foxhello-1.4.6.rb : #require ‘rubygems’ #require\_gem ‘fxruby’ …

---

## [Ifs and scope](https://www.ruby-forum.com/t/ifs-and-scope/95218)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/ifs-and-scope/95218 "2006-05-24T20:33:06Z")

</div>

i am sorry if this is really newb, but i am new to programming and ruby in general in my previous thread “disappearing hash values” it was pointed out to me that a new if is a new scope how do i update a second if wi…

---

## [Generator m.file and m.template](https://www.ruby-forum.com/t/generator-m-file-and-m-template/61483)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/generator-m-file-and-m-template/61483 "2006-05-24T20:29:32Z")

</div>

hi , i’m working on a generator , i don’t find very much information about how to create your own generator and i have some questions: what is the difference between m.file and m.template and when do you use them? t…

---

## [Embedding ruby in aolserver (Was: Re: segfault when calling](https://www.ruby-forum.com/t/embedding-ruby-in-aolserver-was-re-segfault-when-calling/61470)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/embedding-ruby-in-aolserver-was-re-segfault-when-calling/61470 "2006-05-24T20:23:05Z")

</div>

Just because aolserver is multithreaded doesn’t mean that you need to access the ruby interpreter from each thread. Just make sure that only one thread accesses the interpreter at a time or create a single thread that…

---

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

<div class="topic-metadata">

**Author:** [@scorintha](https://www.ruby-forum.com/u/scorintha)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/no-subject/95213 "2006-05-24T19:57:44Z")

</div>

unsubscribe

---

## [Ruby namespaces and require](https://www.ruby-forum.com/t/ruby-namespaces-and-require/61015)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 16\
**Last updated:** [May 24, 2006, 7:28pm UTC](https://www.ruby-forum.com/t/ruby-namespaces-and-require/61015 "2006-05-24T19:28:28Z")

</div>

Hi all, There have been a few threads recently both here and on the Rails list where the problem of namespace collisions has come up. It seems to my untutored eye that they’ve come about simply because the original …

---

## [Disappearing hash values?](https://www.ruby-forum.com/t/disappearing-hash-values/61510)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 3\
**Last updated:** [May 24, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/disappearing-hash-values/61510 "2006-05-24T19:12:51Z")

</div>

mailbox = File.open(mbox) mailbox.each\_line {|line| linecount += 1 mboxArray.push line if line.include?(“filename=”) haveattach = TRUE filename = line.gsub(“Content-Disposition: attac hment;”, ‘’) filename = file…

---

## [Cgi output problem](https://www.ruby-forum.com/t/cgi-output-problem/61498)

<div class="topic-metadata">

**Author:** [@javier\_v](https://www.ruby-forum.com/u/javier_v)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/cgi-output-problem/61498 "2006-05-24T19:10:27Z")

</div>

I’ve been using mod\_ruby for months and now i have to write a script that redirects my users to another location. I use the following: #!/bin/env ruby print “Location: http://www…com/index.html\\r\\n\\r\\n” Well, this s…

---

## [Rescue clauses on do/end blocks?](https://www.ruby-forum.com/t/rescue-clauses-on-do-end-blocks/60923)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 48\
**Last updated:** [May 24, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/rescue-clauses-on-do-end-blocks/60923 "2006-05-24T18:50:46Z")

</div>

I know this has been on the table before, but I really see no reason not to allow do/end blocks to have rescue clauses on them, i.e. foo do bar rescue baz end and even foo do bar rescue baz ensure bur end T…

---

## [Good practices when writing modules](https://www.ruby-forum.com/t/good-practices-when-writing-modules/61514)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/good-practices-when-writing-modules/61514 "2006-05-24T18:50:30Z")

</div>

Hi. My learning-ruby-playground-project has gotten to the point where I feel the need to split the source into several files. Coming from python and java I’m both delighted and horrified to realize that file names do…

---

## [Can't find eruby in windows installation](https://www.ruby-forum.com/t/cant-find-eruby-in-windows-installation/95039)

<div class="topic-metadata">

**Author:** [@alan](https://www.ruby-forum.com/u/alan)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/cant-find-eruby-in-windows-installation/95039 "2006-05-24T18:43:56Z")

</div>

Hi, I installed ruby on my XP machine, but I cannot find eruby. Is eruby available for windows platform? Thank you, Alan

---

## [dl$B$G%a%b%j%j!\<%/$J$I(B](https://www.ruby-forum.com/t/dl-b-g-a-b-j-j-j-i-b/61272)

<div class="topic-metadata">

**Author:** [@Masaya\_TARUI](https://www.ruby-forum.com/u/Masaya_TARUI)\
**Replies:** 2\
**Last updated:** [May 24, 2006, 6:40pm UTC](https://www.ruby-forum.com/t/dl-b-g-a-b-j-j-j-i-b/61272 "2006-05-24T18:40:37Z")

</div>

e$B$O$8$a$^$7$F!"$?$k$$$H$$$$$^$9!#e(B e$B$$$D$be(BRubye$B$r;H$o$;$F$b$i$C$F$$$^$9!#$3$N$h$&$J%=%U%H%&%’%"$r@$$K=P$7$Fe(B e$B$$$?$@$$$-!"$^$D$b$H;a$r;O$a!"3’MM$K46\<U!#e(B e$BFC$Ke(Bruby/dle$B$Oe(Bwindowse$B$Ne(BAPIe$B…

---

## [Re: A bug? FXRuby 1.4.6 segment fault when FXFileDialog.new](https://www.ruby-forum.com/t/re-a-bug-fxruby-1-4-6-segment-fault-when-fxfiledialog-new/61502)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 5:51pm UTC](https://www.ruby-forum.com/t/re-a-bug-fxruby-1-4-6-segment-fault-when-fxfiledialog-new/61502 "2006-05-24T17:51:38Z")

</div>

uncutstone wu wrote: FXRuby 1.4.6 works fine except I call FXFileDialog.new. My enviroment is : windows 98 cygwin version 2.427 ruby 1.8.1 (2003-12-25) Can’t reproduce it with fxruby-1.4.6 on ruby-1.8.4, linux…

---

## [Re: String.scan hangs in some cases?](https://www.ruby-forum.com/t/re-string-scan-hangs-in-some-cases/95202)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 24, 2006, 5:13pm UTC](https://www.ruby-forum.com/t/re-string-scan-hangs-in-some-cases/95202 "2006-05-24T17:13:48Z")

</div>

Wes Parsing HTML with regular expressions is the work of the Devil. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this commun…

---

## [String.scan hangs in some cases?](https://www.ruby-forum.com/t/string-scan-hangs-in-some-cases/95186)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/string-scan-hangs-in-some-cases/95186 "2006-05-24T17:03:42Z")

</div>

Has anyone ever see a call to String.scan (the “regular” form, not the block form) just hang when processing a string? If so, any insight into how that might happen? Thanks, Wes

---

## [Re: Fun with Time#to\_s and locale](https://www.ruby-forum.com/t/re-fun-with-time-to-s-and-locale/61497)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 24, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/re-fun-with-time-to-s-and-locale/61497 "2006-05-24T16:29:36Z")

</div>

the archives I didn’t really see anything that let me get def to\_s(lang=0) p Time.now.to\_s # “Tuesday May 11:48:51 MDT 23 2006” p Time.now.to\_s(LANG\_GERMAN) # “Dienstag Mai 11:48:51 MDT 23 2006” p …

---

## [First interesting Java development in a while](https://www.ruby-forum.com/t/first-interesting-java-development-in-a-while/60738)

<div class="topic-metadata">

**Author:** [@John-Mason\_PSShack](https://www.ruby-forum.com/u/John-Mason_PSShack)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/first-interesting-java-development-in-a-while/60738 "2006-05-24T15:24:37Z")

</div>

Take a look at http://code.google.com/webtoolkit/overview.html. Very interesting. – John-Mason Shackelford Software Developer Pearson Educational Measurement 2510 North Dodge St. Iowa City, IA 52245 ph. 319-354-9…

---

## [Newbie question: flickr gem installation](https://www.ruby-forum.com/t/newbie-question-flickr-gem-installation/95180)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 12:52pm UTC](https://www.ruby-forum.com/t/newbie-question-flickr-gem-installation/95180 "2006-05-24T12:52:55Z")

</div>

Hi, I installed the ‘flickr’ gem using ‘gem install flickr’. Everything seemed to work fine, and the gem shows up in the rDoc as installed. However, if I run the following script #! /usr/local/bin/ruby -w require ‘f…

---

## [Get and Post Combined?](https://www.ruby-forum.com/t/get-and-post-combined/61419)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/get-and-post-combined/61419 "2006-05-24T12:51:55Z")

</div>

Hello I’ve got a bit of a problem interacting with the Overture (now YSM) API and I’m getting quite desperate for some help. Basically I need to ‘post’ form data to a path containing get variables. Unfortunately I c…

---

## [Raw idea about Proc](https://www.ruby-forum.com/t/raw-idea-about-proc/94594)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 9\
**Last updated:** [May 24, 2006, 12:12pm UTC](https://www.ruby-forum.com/t/raw-idea-about-proc/94594 "2006-05-24T12:12:18Z")

</div>

Hi all. There is the idea (in VERY dirty code): class Proc def bound; @bound ||= {} end def bind(num, val) bound\[num - 1\] = val end alias :old\_arity :arity def arity old\_arity - bound.size end alias :old\_call :…

---

## [Find some error with exception](https://www.ruby-forum.com/t/find-some-error-with-exception/61475)

<div class="topic-metadata">

**Author:** [@Searchsa\_Faust](https://www.ruby-forum.com/u/Searchsa_Faust)\
**Replies:** 2\
**Last updated:** [May 24, 2006, 11:59am UTC](https://www.ruby-forum.com/t/find-some-error-with-exception/61475 "2006-05-24T11:59:56Z")

</div>

run following script def foo(i) foo(i+1) end def main1 begin foo(1) rescue puts $!.backtrace.join("\\n") end end def main2 begin foo(1) rescue puts $!.backtrace.join("\\n") end end main1 main2 this will h…

---

## [Do i need a regex?](https://www.ruby-forum.com/t/do-i-need-a-regex/61412)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 4\
**Last updated:** [May 24, 2006, 11:32am UTC](https://www.ruby-forum.com/t/do-i-need-a-regex/61412 "2006-05-24T11:32:29Z")

</div>

i am trying to match the string “–(null)–” in ruby i am doing this after reading a line if line.match("–null–") #code here its not working though would i need a regex

---

## [foxGUIb 0.6 has a user guide](https://www.ruby-forum.com/t/foxguib-0-6-has-a-user-guide/61471)

<div class="topic-metadata">

**Author:** [@ParrS\_Mike](https://www.ruby-forum.com/u/ParrS_Mike)\
**Replies:** 0\
**Last updated:** [May 24, 2006, 9:46am UTC](https://www.ruby-forum.com/t/foxguib-0-6-has-a-user-guide/61471 "2006-05-24T09:46:01Z")

</div>

A few hours ago, Henon announced the new version of foxGUIb, for creating user-interfaces. He also mentioned a surprise, and I know you have been holding your breath :slight\_smile: I’ve written a user-guide for it, …

---

## [Initializing instance variables in a module](https://www.ruby-forum.com/t/initializing-instance-variables-in-a-module/61277)

<div class="topic-metadata">

**Author:** [@wirelesspower](https://www.ruby-forum.com/u/wirelesspower)\
**Replies:** 36\
**Last updated:** [May 24, 2006, 9:15am UTC](https://www.ruby-forum.com/t/initializing-instance-variables-in-a-module/61277 "2006-05-24T09:15:38Z")

</div>

Have a module: Module Foo def add\_stuff(key, stuff) @foo\_the\_stuff\[key\] = stuff end end class Bar include Foo end Is there a standard or correct way to initialize @foo\_the\_stuff in this example? Should the add…

---

## [Parsing XML into a complete domain object](https://www.ruby-forum.com/t/parsing-xml-into-a-complete-domain-object/61087)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 9\
**Last updated:** [May 24, 2006, 8:14am UTC](https://www.ruby-forum.com/t/parsing-xml-into-a-complete-domain-object/61087 "2006-05-24T08:14:21Z")

</div>

Recently at work we’ve decided to attempt to build a basic XML driven automation framework to work with Watir (a web development testing library for ruby). I cant figure out how to loop through each level of the REXML…

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

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