# Ruby

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

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

---

## [Re: string range membership](https://www.ruby-forum.com/t/re-string-range-membership/76234)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 19\
**Last updated:** [December 3, 2005, 2:06pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/76234 "2005-12-03T14:06:55Z")

</div>

Matz, #include? used for range check, #member? was for set membership. But since they have same functionality in Enumerable, some claimed having different behaviors in Range was confusing. I agreed. All we need i…

---

## [Range oddity](https://www.ruby-forum.com/t/range-oddity/94871)

<div class="topic-metadata">

**Author:** [@adam.shelly](https://www.ruby-forum.com/u/adam.shelly)\
**Replies:** 3\
**Last updated:** [December 3, 2005, 1:06pm UTC](https://www.ruby-forum.com/t/range-oddity/94871 "2005-12-03T13:06:52Z")

</div>

I was playing around ranges of strings after that post about ‘1’…‘10’.include? '2 #=\> false I found something else strange when I made a typo: irb(main):001:0\> a = 1…10.to\_a (irb):1: warning: default \`to\_a’ will be…

---

## [C\_mp3tag -- looking for pre-built binaries](https://www.ruby-forum.com/t/c-mp3tag-looking-for-pre-built-binaries/49392)

<div class="topic-metadata">

**Author:** [@andlind](https://www.ruby-forum.com/u/andlind)\
**Replies:** 0\
**Last updated:** [December 3, 2005, 11:48am UTC](https://www.ruby-forum.com/t/c-mp3tag-looking-for-pre-built-binaries/49392 "2005-12-03T11:48:54Z")

</div>

Hi! I’ve been looking for a mp3 tag ruby library and I found one that looks promising, mp3taglib. (It uses the high-quality general purpose “id3lib” library.) Unfortunately, the module is written in C and must be bui…

---

## [Image and Text in TkButton?](https://www.ruby-forum.com/t/image-and-text-in-tkbutton/49370)

<div class="topic-metadata">

**Author:** [@fkc\_email-news](https://www.ruby-forum.com/u/fkc_email-news)\
**Replies:** 1\
**Last updated:** [December 3, 2005, 8:57am UTC](https://www.ruby-forum.com/t/image-and-text-in-tkbutton/49370 "2005-12-03T08:57:44Z")

</div>

How do you put both an image an text into a button. It seems Compound Image that shows up in google isn’t supported either as a class or option in ruby tk. Using 1 click installer of latest stable 1.8 release. Than…

---

## [Accessing tcl/tk global variables from callbacks](https://www.ruby-forum.com/t/accessing-tcl-tk-global-variables-from-callbacks/49357)

<div class="topic-metadata">

**Author:** [@bpetrovi](https://www.ruby-forum.com/u/bpetrovi)\
**Replies:** 1\
**Last updated:** [December 3, 2005, 8:57am UTC](https://www.ruby-forum.com/t/accessing-tcl-tk-global-variables-from-callbacks/49357 "2005-12-03T08:57:43Z")

</div>

Is there a way to access tcl global variables from a callback by directly using tcl code? This code does not work: ##test.rb############### require ‘tk’ def button\_callback p root.ip\_eval(“info globals”) root.ip…

---

## [Ruby/Tk and MacOS X framework](https://www.ruby-forum.com/t/ruby-tk-and-macos-x-framework/49039)

<div class="topic-metadata">

**Author:** [@nagai](https://www.ruby-forum.com/u/nagai)\
**Replies:** 6\
**Last updated:** [December 3, 2005, 8:20am UTC](https://www.ruby-forum.com/t/ruby-tk-and-macos-x-framework/49039 "2005-12-03T08:20:59Z")

</div>

Hi, I want to ask one question to MacOS X users. When --with-tcltk-framework configure option is given, current (1.8.4 and 1.9) ‘ext/tk/extconf.rb’ searches Tcl.framework and Tk.framework from “/Library/Frameworks” …

---

## [Spss](https://www.ruby-forum.com/t/spss/93462)

<div class="topic-metadata">

**Author:** [@michael.schwab](https://www.ruby-forum.com/u/michael.schwab)\
**Replies:** 2\
**Last updated:** [December 3, 2005, 1:37am UTC](https://www.ruby-forum.com/t/spss/93462 "2005-12-03T01:37:50Z")

</div>

A piece of software that badly needs to be written is an easy-to-use statistics package. Apparently, in the social sciences the industry standard is this program called SPSS, which is a chore to use, quite expensive,…

---

## [Ferret 0.3.0 (port of Apache Lucene to pure ruby)](https://www.ruby-forum.com/t/ferret-0-3-0-port-of-apache-lucene-to-pure-ruby/49326)

<div class="topic-metadata">

**Author:** [@dbalmain.ml](https://www.ruby-forum.com/u/dbalmain.ml)\
**Replies:** 2\
**Last updated:** [December 3, 2005, 1:37am UTC](https://www.ruby-forum.com/t/ferret-0-3-0-port-of-apache-lucene-to-pure-ruby/49326 "2005-12-03T01:37:50Z")

</div>

Hi Folks, I’ve just released version 0.3.0. Since my last announcement I’ve done a lot of work on improving the performance. With the C extension, Ferret is now only 2-4 times slower than Lucene. There have also been …

---

## [Using an HTTP proxy to record web traffic](https://www.ruby-forum.com/t/using-an-http-proxy-to-record-web-traffic/60203)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 2\
**Last updated:** [December 3, 2005, 1:04am UTC](https://www.ruby-forum.com/t/using-an-http-proxy-to-record-web-traffic/60203 "2005-12-03T01:04:50Z")

</div>

As part of debugging WWW::Mechanize, I realized that the best way to compare what my browser is doing to what mechanize is doing would be to compare their HTTP transactions incoming and outgoing. What I want is an HT…

---

## [Re: Accessing tcl/tk global variables from callbacks](https://www.ruby-forum.com/t/re-accessing-tcl-tk-global-variables-from-callbacks/51774)

<div class="topic-metadata">

**Author:** [@bpetrovi](https://www.ruby-forum.com/u/bpetrovi)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 11:31pm UTC](https://www.ruby-forum.com/t/re-accessing-tcl-tk-global-variables-from-callbacks/51774 "2005-12-02T23:31:48Z")

</div>

Sorry everyone, i guess the best way to learn Tcl is by learning Tcl, not Python. :slight\_smile: Global variables must be declared in a proc by “global varName”. The Python behaviour is in some sense anomalous.

---

## [Make a symbol represent a method?](https://www.ruby-forum.com/t/make-a-symbol-represent-a-method/49337)

<div class="topic-metadata">

**Author:** [@chris.irish](https://www.ruby-forum.com/u/chris.irish)\
**Replies:** 7\
**Last updated:** [December 2, 2005, 9:41pm UTC](https://www.ruby-forum.com/t/make-a-symbol-represent-a-method/49337 "2005-12-02T21:41:48Z")

</div>

I just read a FAQ page online about Ruby symbols and someone mentions this Also, the entirely realistic reasoning for using symbols: If you are going to refer to a method name, use a symbol. Because by defining the m…

---

## [Screen scraping via regex vs. htmltools (vs. REXML)](https://www.ruby-forum.com/t/screen-scraping-via-regex-vs-htmltools-vs-rexml/49333)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 5\
**Last updated:** [December 2, 2005, 9:09pm UTC](https://www.ruby-forum.com/t/screen-scraping-via-regex-vs-htmltools-vs-rexml/49333 "2005-12-02T21:09:09Z")

</div>

I’ve finally reimplemented the screen scraper I mentioned on http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/76e8bbd4a9e48277/396cb7ea35eab14f#396cb7ea35eab14f using regexes and no external libraries…

---

## [Please help - newbie questions](https://www.ruby-forum.com/t/please-help-newbie-questions/49350)

<div class="topic-metadata">

**Author:** [@draens](https://www.ruby-forum.com/u/draens)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 8:44pm UTC](https://www.ruby-forum.com/t/please-help-newbie-questions/49350 "2005-12-02T20:44:46Z")

</div>

I am using windows, and I installed ruby with the 1-click install My ruby version is: ruby 1.8.2 (2004-12-25) \[i386-mswin32\] I need to use ruby to make some XSLT transformations (I already have the XML and XSLT files)…

---

## [How do I debug WWW::Mechanize problems?](https://www.ruby-forum.com/t/how-do-i-debug-www-mechanize-problems/51685)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 7:55pm UTC](https://www.ruby-forum.com/t/how-do-i-debug-www-mechanize-problems/51685 "2005-12-02T19:55:41Z")

</div>

Hi, I’m trying to scrape my mileage summary from United. Mechanize starts out correctly, but then gets redirected back to the United homepage instead of the Mileage Summary page. Is there an rdoc for mechanize, as ge…

---

## [Dynamic Modules](https://www.ruby-forum.com/t/dynamic-modules/49316)

<div class="topic-metadata">

**Author:** [@transfire](https://www.ruby-forum.com/u/transfire)\
**Replies:** 6\
**Last updated:** [December 2, 2005, 6:50pm UTC](https://www.ruby-forum.com/t/dynamic-modules/49316 "2005-12-02T18:50:17Z")

</div>

I would like to discuss the merits/non-merits and the best approach to implementation of “dynamic modules” --modules that take parameters at the time of include, thus altering their behavior per include. The common de…

---

## [Langhelp-0.9.1](https://www.ruby-forum.com/t/langhelp-0-9-1/94711)

<div class="topic-metadata">

**Author:** [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 6:38pm UTC](https://www.ruby-forum.com/t/langhelp-0-9-1/94711 "2005-12-02T18:38:09Z")

</div>

Hi, == Abstract Langhelp creates an index of documents of various programming languages, and enables you to search documents instantly in Emacs. If you are a programmer, then you may sometimes wonder, what is the us…

---

## [Memory Leaks: How to see GC Roots?](https://www.ruby-forum.com/t/memory-leaks-how-to-see-gc-roots/49225)

<div class="topic-metadata">

**Author:** [@schween](https://www.ruby-forum.com/u/schween)\
**Replies:** 4\
**Last updated:** [December 2, 2005, 6:25pm UTC](https://www.ruby-forum.com/t/memory-leaks-how-to-see-gc-roots/49225 "2005-12-02T18:25:53Z")

</div>

Hello! Is there a way to get a list of all GC roots in my Ruby program? I know there is a memory leak somewhere in my application, I just don’t know in which part. Listing all variables on the Heap becomes too large…

---

## [Rwb 0.2.1](https://www.ruby-forum.com/t/rwb-0-2-1/94710)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 0\
**Last updated:** [December 2, 2005, 6:25pm UTC](https://www.ruby-forum.com/t/rwb-0-2-1/94710 "2005-12-02T18:25:53Z")

</div>

RWB, the Ruby Web Bench, provides a simple way to manage a performance and load tests suite for your webserver. Unlike ab, by which it was inspired, it will allow you to build a collection of test URLs with correspo…

---

## [RWB, not quite an announcement](https://www.ruby-forum.com/t/rwb-not-quite-an-announcement/49224)

<div class="topic-metadata">

**Author:** [@pat.eyler](https://www.ruby-forum.com/u/pat.eyler)\
**Replies:** 2\
**Last updated:** [December 2, 2005, 6:21pm UTC](https://www.ruby-forum.com/t/rwb-not-quite-an-announcement/49224 "2005-12-02T18:21:50Z")

</div>

Explanation and disclaimer: RWB is a web load/performance testing library currently being developed. It is already capable of supporting many testing needs, but is not yet completely functional. While I was putterin…

---

## [Quality of Ruby Implementation?](https://www.ruby-forum.com/t/quality-of-ruby-implementation/49139)

<div class="topic-metadata">

**Author:** [@gjblomquist](https://www.ruby-forum.com/u/gjblomquist)\
**Replies:** 8\
**Last updated:** [December 2, 2005, 5:53pm UTC](https://www.ruby-forum.com/t/quality-of-ruby-implementation/49139 "2005-12-02T17:53:21Z")

</div>

Much of the discussion concerning Ruby focuses on the language itself and on how enjoyable it is to program in. I’m still a Ruby novice but I agree with these sentiments. However, I have not heard much discussion ab…

---

## [Optimizing for Newbies](https://www.ruby-forum.com/t/optimizing-for-newbies/49266)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 8\
**Last updated:** [December 2, 2005, 5:29pm UTC](https://www.ruby-forum.com/t/optimizing-for-newbies/49266 "2005-12-02T17:29:01Z")

</div>

Since I’ve gotten the go-ahead from Christer, here’s a little newbie app I just wrote and am looking for advice on how to better write: =begin =Author & Maintainer Matthew A. Feadler http://matthew.feadler.com =Des…

---

## [Problem: Getting Rails to run on apache](https://www.ruby-forum.com/t/problem-getting-rails-to-run-on-apache/49197)

<div class="topic-metadata">

**Author:** [@newsAT](https://www.ruby-forum.com/u/newsAT)\
**Replies:** 4\
**Last updated:** [December 2, 2005, 5:16pm UTC](https://www.ruby-forum.com/t/problem-getting-rails-to-run-on-apache/49197 "2005-12-02T17:16:52Z")

</div>

hello. I need some help getting rails to run on apache2/red hat. Made the correct alias and directory in the .conf, but when I point the browser to the directory it gives me a 404 on the dispatch.cgi. I have not added…

---

## [Ruby one-liner needed](https://www.ruby-forum.com/t/ruby-one-liner-needed/56349)

<div class="topic-metadata">

**Author:** [@kevin.jackson](https://www.ruby-forum.com/u/kevin.jackson)\
**Replies:** 8\
**Last updated:** [December 2, 2005, 5:12pm UTC](https://www.ruby-forum.com/t/ruby-one-liner-needed/56349 "2005-12-02T17:12:48Z")

</div>

Here’s one taht I know is possible (I’m sure I’ve seen it somewhere before) I have 2 arrays and I’d like to change them into a Hash stuff = \[“1”, “2”, “3”\] Item.column\_names.each { |column\_name| new\_item\[column\_name\]…

---

## [Local gem not always visible](https://www.ruby-forum.com/t/local-gem-not-always-visible/49284)

<div class="topic-metadata">

**Author:** [@billmcn](https://www.ruby-forum.com/u/billmcn)\
**Replies:** 2\
**Last updated:** [December 2, 2005, 4:48pm UTC](https://www.ruby-forum.com/t/local-gem-not-always-visible/49284 "2005-12-02T16:48:26Z")

</div>

I wrote a gem for a package called “tree”, version 0.0.0. I built a gemfile and installed it. Now the code is installed and works, but only some of the gem utitlities know that it’s there. I suspect I did something…

---

## [Re: Weird Numbers (#57)](https://www.ruby-forum.com/t/re-weird-numbers-57/49320)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 1\
**Last updated:** [December 2, 2005, 4:15pm UTC](https://www.ruby-forum.com/t/re-weird-numbers-57/49320 "2005-12-02T16:15:51Z")

</div>

JB, please give an example of such a number. english is my second language, and english math speak is more like my sixth language or so (below german, Swedish techspeak and english techspeak). Just Google for "wei…

---

## [FasterCSV col separator](https://www.ruby-forum.com/t/fastercsv-col-separator/49299)

<div class="topic-metadata">

**Author:** [@kevin.jackson](https://www.ruby-forum.com/u/kevin.jackson)\
**Replies:** 2\
**Last updated:** [December 2, 2005, 4:11pm UTC](https://www.ruby-forum.com/t/fastercsv-col-separator/49299 "2005-12-02T16:11:48Z")

</div>

Hi all, I’m using FasterCSV and I can’t seem to get the syntax correct for using ‘|’ (the pipe character) for the column separator I have FasterCSV.parse(csv\_file, { :col\_sep =\> “|” }) do |row| p row end but this …

---

## [Ruby Enterprise App Design Advice](https://www.ruby-forum.com/t/ruby-enterprise-app-design-advice/49141)

<div class="topic-metadata">

**Author:** [@teslaomd](https://www.ruby-forum.com/u/teslaomd)\
**Replies:** 7\
**Last updated:** [December 2, 2005, 4:07pm UTC](https://www.ruby-forum.com/t/ruby-enterprise-app-design-advice/49141 "2005-12-02T16:07:45Z")

</div>

I was wondering if anyone could give me some advice/thoughts/input regarding scaling/designing in Ruby for an enterprise level app. Mainly I am looking for suggestions for existing Ruby code/apps I can use to address …

---

## [Is there any relevant difference between require and require](https://www.ruby-forum.com/t/is-there-any-relevant-difference-between-require-and-require/49296)

<div class="topic-metadata">

**Author:** [@lasso](https://www.ruby-forum.com/u/lasso)\
**Replies:** 2\
**Last updated:** [December 2, 2005, 3:31pm UTC](https://www.ruby-forum.com/t/is-there-any-relevant-difference-between-require-and-require/49296 "2005-12-02T15:31:08Z")

</div>

Hi all! When using Rubygems, is there any relevant difference between using require and require\_gem (aside from the versioning possibilities)? According to the docs require searches the standard library first. Is thi…

---

## [Url-monitoring script question](https://www.ruby-forum.com/t/url-monitoring-script-question/48488)

<div class="topic-metadata">

**Author:** [@torstello](https://www.ruby-forum.com/u/torstello)\
**Replies:** 15\
**Last updated:** [December 2, 2005, 3:18pm UTC](https://www.ruby-forum.com/t/url-monitoring-script-question/48488 "2005-12-02T15:18:54Z")

</div>

Hi @all, i made a script, that monitors some web-sites of our company using net::http and net::smtp. it pings multiple sites and it’s based on this script: http://habtm.com/articles/2005/09/29/website-monitoring-scr…

---

## [Building ruby for speed: wise or otherwise?](https://www.ruby-forum.com/t/building-ruby-for-speed-wise-or-otherwise/50629)

<div class="topic-metadata">

**Author:** [@hgs](https://www.ruby-forum.com/u/hgs)\
**Replies:** 32\
**Last updated:** [December 2, 2005, 1:36pm UTC](https://www.ruby-forum.com/t/building-ruby-for-speed-wise-or-otherwise/50629 "2005-12-02T13:36:32Z")

</div>

My active record based script is taking longer than I’d like. While I wait for approval to get a faster machine :slight\_smile: I’m wondering about rebuilding ruby 1.8.2 (which I have now) and changing the CFLAGS from …

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

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