# Ruby

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

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

---

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

<div class="topic-metadata">

**Author:** [@JoeyP](https://www.ruby-forum.com/u/JoeyP)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 1:23am UTC](https://www.ruby-forum.com/t/cgi/90984 "2007-04-04T01:23:27Z")

</div>

Am I not able to build a string and pass it to the cgi class? #!/usr/bin/ruby -w require ‘cgi’ mystring = “” mystring \<\< "‘bgcolor’ =\> ‘blue’ " cgi.body(mystring) { This will not give me an error but the parameter …

---

## [Strip out ALL javascript from HTML source](https://www.ruby-forum.com/t/strip-out-all-javascript-from-html-source/90830)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 21\
**Last updated:** [April 4, 2007, 1:18am UTC](https://www.ruby-forum.com/t/strip-out-all-javascript-from-html-source/90830 "2007-04-04T01:18:26Z")

</div>

Hi. I’ve got a bit of an issue where I have an input source of HTML source that anyone can use. I need to strip out all javascript. Attributes, links tags etc. At this stage I’m thinking Hpricot is the go. I gue…

---

## [Linalg on OS x](https://www.ruby-forum.com/t/linalg-on-os-x/91036)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/linalg-on-os-x/91036 "2007-04-03T23:55:13Z")

</div>

Hi all, I am trying to use the linalg library (http://rubyforge.org/projects/linalg/) on my OSx machine. The install file for linalg says that it is dependent on LAPACK. Does anyone have any experience setting up li…

---

## [Fwd: rubyquiz 118 submission "microwave"](https://www.ruby-forum.com/t/fwd-rubyquiz-118-submission-microwave/134733)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/fwd-rubyquiz-118-submission-microwave/134733 "2007-04-03T21:55:07Z")

</div>

Begin forwarded message:

---

## [Pass parameters on a redirct](https://www.ruby-forum.com/t/pass-parameters-on-a-redirct/91009)

<div class="topic-metadata">

**Author:** [@JoeyP](https://www.ruby-forum.com/u/JoeyP)\
**Replies:** 5\
**Last updated:** [April 3, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/pass-parameters-on-a-redirct/91009 "2007-04-03T21:36:04Z")

</div>

The client presses a submit button. The path goes to a .cgi script that gathers the form params. How can I pass those parameter onto another page? EX. #!/usr/bin/ruby -ruby-- require ‘cgi’ cgi = CGI.new def redir…

---

## [Implementing an array based class](https://www.ruby-forum.com/t/implementing-an-array-based-class/90925)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 9\
**Last updated:** [April 3, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/implementing-an-array-based-class/90925 "2007-04-03T21:35:04Z")

</div>

Some of the data I deal with involves hundreds of thousands of records where each is very predictable in the number of attributes. By going from a hash based object to an array based object I am able to substantially…

---

## [Arrayfields-3.7.0](https://www.ruby-forum.com/t/arrayfields-3-7-0/91014)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/arrayfields-3-7-0/91014 "2007-04-03T20:55:56Z")

</div>

NAME arrayfields.rb URIS http://rubyforge.org/projects/arrayfields/ http://www.codeforpeople.com/lib/ruby/arrayfields/ http://raa.ruby-lang.org/project/arrayfields/ SYNOPSIS require ‘arrayfields’ fields = 'name'…

---

## ['net/http' issues](https://www.ruby-forum.com/t/net-http-issues/91013)

<div class="topic-metadata">

**Author:** [@Mihai\_Danila](https://www.ruby-forum.com/u/Mihai_Danila)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/net-http-issues/91013 "2007-04-03T20:51:56Z")

</div>

I noticed a while back a few limitations in the Ruby net/http library. First, the implementation bluntly ignores a crucial part of the HTTP protocol, that is, the fact that a parameter may appear multiple times in a …

---

## [Access to extended file properties](https://www.ruby-forum.com/t/access-to-extended-file-properties/91011)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/access-to-extended-file-properties/91011 "2007-04-03T20:37:54Z")

</div>

Hello all ! Somebody has an idea how to access the file properties listed under the extended fileinfo. (right-click on the file -\> properties -\> fileinfo -\> button advanced/ extended) Thanks a lot & happy coding… D…

---

## [April Phoenix Ruby Users Group](https://www.ruby-forum.com/t/april-phoenix-ruby-users-group/91008)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/april-phoenix-ruby-users-group/91008 "2007-04-03T20:01:49Z")

</div>

The Phoenix Ruby U. group will meet on Monday, April 9 at 6:30 pm The meeting will be held at the offices of MWA Intelligence 17250 N Hartford Drive Suite 102 Scottsdale, AZ 85255 See http://rubyaz.org/groups/prug/ …

---

## [Bug in ERb when using $SAFE\>=4](https://www.ruby-forum.com/t/bug-in-erb-when-using-safe-4/91007)

<div class="topic-metadata">

**Author:** [@Andy\_Morrow](https://www.ruby-forum.com/u/Andy_Morrow)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/bug-in-erb-when-using-safe-4/91007 "2007-04-03T19:51:48Z")

</div>

I’ve been working with ERB and trying to run it in a secure environment. (My goal is to allow end users to render templates in my Rails app.) There is what appears to me to be a bug in ERB when you try to run an objec…

---

## [Read/write Win registry](https://www.ruby-forum.com/t/read-write-win-registry/90947)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 1\
**Last updated:** [April 3, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/read-write-win-registry/90947 "2007-04-03T19:01:41Z")

</div>

Hi, i know there were already questions with this subject on that board, but i didn’t found a useful snippet. Running Ruby 1.8.4, Win2000 | Win2003 i want to read and write some registry values. I know there is Win…

---

## [Problem with ri or me?](https://www.ruby-forum.com/t/problem-with-ri-or-me/90946)

<div class="topic-metadata">

**Author:** [@Dave\_Miller](https://www.ruby-forum.com/u/Dave_Miller)\
**Replies:** 3\
**Last updated:** [April 3, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/problem-with-ri-or-me/90946 "2007-04-03T18:58:41Z")

</div>

Hello – I just installed Ruby a couple of days ago, and I have been going through tutorials, etc. One thing I can’t explain is that ri doesn’t seem to work on my system. I am running Ruby 1.8.6 on XP. I am trying…

---

## [Re: search a file and replace text](https://www.ruby-forum.com/t/re-search-a-file-and-replace-text/91000)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/re-search-a-file-and-replace-text/91000 "2007-04-03T18:34:39Z")

</div>

REXML. http://www.germane-software.com/software/rexml

---

## [Weird behaviour of set\_trace\_func in 1.8.5](https://www.ruby-forum.com/t/weird-behaviour-of-set-trace-func-in-1-8-5/90993)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 1\
**Last updated:** [April 3, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/weird-behaviour-of-set-trace-func-in-1-8-5/90993 "2007-04-03T18:10:37Z")

</div>

Hello, I found that set\_trace\_func is behaving in a weird way, missing some call events. Extracting the problem: $ ruby --version ruby 1.8.5 (2006-08-25) \[i486-linux\] $ ruby -le ‘require “fileutils”; set\_trace\_func …

---

## [Find the fully qualified name of a class from a string](https://www.ruby-forum.com/t/find-the-fully-qualified-name-of-a-class-from-a-string/90678)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 10\
**Last updated:** [April 3, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/find-the-fully-qualified-name-of-a-class-from-a-string/90678 "2007-04-03T17:40:34Z")

</div>

Say you have a class definition in a string - str = \<\<EOF module A class B def b puts “hello” end end end EOF What is the easiest way to find out the fully qualified name of the class there, namely “A::B” No…

---

## [CruiseControl.rb 1.1](https://www.ruby-forum.com/t/cruisecontrol-rb-1-1/90992)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 1\
**Last updated:** [April 3, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/cruisecontrol-rb-1-1/90992 "2007-04-03T17:34:34Z")

</div>

Dear all, CruiseControl.rb 1.1 is out of the gates. CruiseControl.rb \[http://cruisecontrolrb.thoughtworks.com\] is a continuous integration tool. Its basic purpose in life is to alert members of a software project whe…

---

## [Test::Unit running all tests with automated suite](https://www.ruby-forum.com/t/test-unit-running-all-tests-with-automated-suite/90936)

<div class="topic-metadata">

**Author:** [@brettschuchert](https://www.ruby-forum.com/u/brettschuchert)\
**Replies:** 6\
**Last updated:** [April 3, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/test-unit-running-all-tests-with-automated-suite/90936 "2007-04-03T16:46:29Z")

</div>

Am I missing something when using Test::Unit in Eclipse? I am used to using JUnit and/or NUnit and being able to select a project and run all of the tests. I don’t see this feature and I suspect I’m just blind. I’ve c…

---

## [Rake task libraries](https://www.ruby-forum.com/t/rake-task-libraries/90977)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/rake-task-libraries/90977 "2007-04-03T15:41:19Z")

</div>

Where are suggested places to find Rake task libraries? Do any ship with Rake?

---

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

<div class="topic-metadata">

**Author:** [@JoeyP](https://www.ruby-forum.com/u/JoeyP)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/cgi-question/90978 "2007-04-03T14:56:27Z")

</div>

Hello, I am using the CGI class to create a web page. I need a drop down list. I have a formatted string in a DB table for the values. How can I access the variable? cgi.option('value'=\>'pathway') { "KEGG/PAT…

---

## [{ANN\] Rio 0.4.0](https://www.ruby-forum.com/t/ann-rio-0-4-0/90937)

<div class="topic-metadata">

**Author:** [@rio4ruby](https://www.ruby-forum.com/u/rio4ruby)\
**Replies:** 2\
**Last updated:** [April 3, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/ann-rio-0-4-0/90937 "2007-04-03T14:05:20Z")

</div>

Rio 0.4.0 = Rio - Ruby I/O Facilitator fa-cil-i-tate: To make easy or easier \[http:// Facilitate - definition of facilitate by The Free Dictionary\] == Overview Rio is a facade for most of the standard ruby classes …

---

## [Last iteration condition](https://www.ruby-forum.com/t/last-iteration-condition/90935)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 13\
**Last updated:** [April 3, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/last-iteration-condition/90935 "2007-04-03T13:11:16Z")

</div>

Hi, How could I know that current iteration is the last in the series? For example: \[1, 2, 3, 4, 5, 3, 4\].each do |element| print element.to\_s print ‘,’ if !LAST end P.S. This is just an example. I don’t want to u…

---

## [Wuby - Ruby for MS Windows!](https://www.ruby-forum.com/t/wuby-ruby-for-ms-windows/90806)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 10\
**Last updated:** [April 3, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/wuby-ruby-for-ms-windows/90806 "2007-04-03T13:10:16Z")

</div>

Hi all, I’m happy to announce the first beta release of Wuby (pronounced “woo-bee”). This is a Windows-only fork of Ruby. And yes, the name is meant to be slightly comical. :slight\_smile: What’s the difference betwee…

---

## [Combo boxes in Ruby-Tk](https://www.ruby-forum.com/t/combo-boxes-in-ruby-tk/90636)

<div class="topic-metadata">

**Author:** [@Rosalind\_M](https://www.ruby-forum.com/u/Rosalind_M)\
**Replies:** 5\
**Last updated:** [April 3, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/combo-boxes-in-ruby-tk/90636 "2007-04-03T12:36:10Z")

</div>

I’m a newcomer to Ruby, though a seasoned campaigner in Perl, and I’m finding my feet, so please be nice! I’ve been playing around with the Tk extension. The section on Ruby Tk in the pickaxe book is sketchy to say …

---

## [Problem with Tk::Tile::Dialog#client\_frame](https://www.ruby-forum.com/t/problem-with-tk-dialog-client-frame/89613)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 2\
**Last updated:** [April 3, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/problem-with-tk-dialog-client-frame/89613 "2007-04-03T12:14:07Z")

</div>

Hi I’m trying to write a gui program using Ruby and Tk/Tile. I’d like to do something like: require 'tk' require 'tkextlib/tile' d = Tk::Tile::Dialog.new(:type=\>'okcancel', :message=\>'Enter name:') Tk::Tile::Entry.ne…

---

## [Todotask](https://www.ruby-forum.com/t/todotask/90884)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 2\
**Last updated:** [April 3, 2007, 11:10am UTC](https://www.ruby-forum.com/t/todotask/90884 "2007-04-03T11:10:01Z")

</div>

Yes, I’ve had some spare time :stuck\_out\_tongue: == What is it? == ToDoTask reads through your Ruby files, looking for TODOs in the comments, which it collects and outputs. == Usage == Rakefile require ‘todotask’ T…

---

## [Help needed on string processing](https://www.ruby-forum.com/t/help-needed-on-string-processing/90954)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 10:30am UTC](https://www.ruby-forum.com/t/help-needed-on-string-processing/90954 "2007-04-03T10:30:38Z")

</div>

Hi, I am trying to modify wirble gems to support color on windows platform. Wirble is using some ANSI color code embeded in the string but this doesn’t work in windows platform. So, I write a method to change the col…

---

## [Simple problem w/ WWW::Mechanize](https://www.ruby-forum.com/t/simple-problem-w-www-mechanize/90924)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [April 3, 2007, 7:37am UTC](https://www.ruby-forum.com/t/simple-problem-w-www-mechanize/90924 "2007-04-03T07:37:21Z")

</div>

Hi all, I’m fairly new to Ruby, and, as an exercise, I’m writing some code for webforms. However, I can’t seem to get the following code to work - instead, I get the following error: wikitesting.rb:8:in get': undefine…

---

## [Using ERb with $SAFE=4](https://www.ruby-forum.com/t/using-erb-with-safe-4/90921)

<div class="topic-metadata">

**Author:** [@Andy\_Morrow](https://www.ruby-forum.com/u/Andy_Morrow)\
**Replies:** 0\
**Last updated:** [April 3, 2007, 12:48am UTC](https://www.ruby-forum.com/t/using-erb-with-safe-4/90921 "2007-04-03T00:48:58Z")

</div>

I’m trying to use ERb to evaluate a template written by end users in a Rails application I’m writing. Here’s my code: require ‘erb’ template = “\<%= ‘Testing 1 2 3…’ %\>”.taint #because it will be user input in the fin…

---

## [Where does WatirMaker store its code](https://www.ruby-forum.com/t/where-does-watirmaker-store-its-code/90909)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 1\
**Last updated:** [April 3, 2007, 12:45am UTC](https://www.ruby-forum.com/t/where-does-watirmaker-store-its-code/90909 "2007-04-03T00:45:57Z")

</div>

I can’t seem to find the code anywhere after running WatirMaker. Is it supposed to export into a .txt or .rb file? It seems to be writing the code in the DOS window but it is hard to copy the code from DOS and put i…

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

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