# Ruby

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

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

---

## [Need to Unscribe MySelf](https://www.ruby-forum.com/t/need-to-unscribe-myself/86987)

<div class="topic-metadata">

**Author:** [@Navin\_Sher](https://www.ruby-forum.com/u/Navin_Sher)\
**Replies:** 1\
**Last updated:** [February 27, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/need-to-unscribe-myself/86987 "2007-02-27T13:23:40Z")

</div>

Hi, I want to Unscribe by sely from Ruby T.. So that i will not get mails. Please do needful NAVIN

---

## [Build shared libs with --enable-auto-image-base](https://www.ruby-forum.com/t/build-shared-libs-with-enable-auto-image-base/86994)

<div class="topic-metadata">

**Author:** [@Corinna\_Vinschen](https://www.ruby-forum.com/u/Corinna_Vinschen)\
**Replies:** 1\
**Last updated:** [February 27, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/build-shared-libs-with-enable-auto-image-base/86994 "2007-02-27T13:21:40Z")

</div>

Hi, in the Cygwin net distribution I started to build the ruby package with the additional -Wl,–enable-auto-image-base flag in the DLDFLAGS Makefile variable. The idea is to avoid the neccessity to rebase the shared…

---

## [Get new files in dstdir before cp\_r](https://www.ruby-forum.com/t/get-new-files-in-dstdir-before-cp-r/86985)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 1\
**Last updated:** [February 27, 2007, 11:46am UTC](https://www.ruby-forum.com/t/get-new-files-in-dstdir-before-cp-r/86985 "2007-02-27T11:46:29Z")

</div>

Hi, i have a workflow that copies folders with FileUtils.cp\_r over to an existing cvs workspace. As cvs CLI lacks a recursive flag for add command, i have to add all new folders and files separately in a spacesepara…

---

## [Making Ruby faster with Judy](https://www.ruby-forum.com/t/making-ruby-faster-with-judy/86949)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 1\
**Last updated:** [February 27, 2007, 11:19am UTC](https://www.ruby-forum.com/t/making-ruby-faster-with-judy/86949 "2007-02-27T11:19:25Z")

</div>

I tried to optimize Ruby a bit more. The results vary quite a lot with benchmarks, but typical improvement is about 5% less time and 4% less memory. More about it: taw's blog: Ruby and Judy And a patch against Rub…

---

## [Odd error with expect](https://www.ruby-forum.com/t/odd-error-with-expect/85724)

<div class="topic-metadata">

**Author:** [@Amos](https://www.ruby-forum.com/u/Amos)\
**Replies:** 2\
**Last updated:** [February 27, 2007, 10:33am UTC](https://www.ruby-forum.com/t/odd-error-with-expect/85724 "2007-02-27T10:33:19Z")

</div>

I’ve had a trivial expect script in use for a while now, but with 1.8.5-p2 it no longer functions. In fact, the example expect script doesn’t work either. Both produce the same exception: $ /usr/local/bin/ruby expect\_…

---

## [Open-uri and utf8](https://www.ruby-forum.com/t/open-uri-and-utf8/86954)

<div class="topic-metadata">

**Author:** [@Kjell\_Olsen](https://www.ruby-forum.com/u/Kjell_Olsen)\
**Replies:** 1\
**Last updated:** [February 27, 2007, 9:41am UTC](https://www.ruby-forum.com/t/open-uri-and-utf8/86954 "2007-02-27T09:41:15Z")

</div>

I’m trying to make requests to google translate \[http://google.com/ translate\_t\] to translate words through a little ruby script. I can’t get open-uri to work on URL’s with accented characters (åéîòü etc). Just callin…

---

## [ANN: Rake 0.7.2 Released](https://www.ruby-forum.com/t/ann-rake-0-7-2-released/86973)

<div class="topic-metadata">

**Author:** [@jimweirich](https://www.ruby-forum.com/u/jimweirich)\
**Replies:** 0\
**Last updated:** [February 27, 2007, 7:25am UTC](https://www.ruby-forum.com/t/ann-rake-0-7-2-released/86973 "2007-02-27T07:25:55Z")

</div>

= Rake 0.7.2 Released Version 0.7.2 supplies a bug fix and a few minor enhancements. In particular, the new version fixes an incompatibility with the soon to be released Ruby 1.8.6. We strongly recommend upgrading t…

---

## [Perl bridge module for RubyInline?](https://www.ruby-forum.com/t/perl-bridge-module-for-rubyinline/86847)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 3\
**Last updated:** [February 27, 2007, 7:16am UTC](https://www.ruby-forum.com/t/perl-bridge-module-for-rubyinline/86847 "2007-02-27T07:16:01Z")

</div>

A while back, regarding a Perl bridge for RubyInline, Eric H. said: There is one. I’ll try to pry it out of Ryan D.’ fingers. Nothing else seems to be known. But if it exists, even in broken form, I would like to h…

---

## [GoRuCo Presentation Proposals last call!](https://www.ruby-forum.com/t/goruco-presentation-proposals-last-call/86959)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [February 27, 2007, 4:16am UTC](https://www.ruby-forum.com/t/goruco-presentation-proposals-last-call/86959 "2007-02-27T04:16:51Z")

</div>

Hey guys, just a reminder that proposals for talks for the Gotham Ruby Conference are due in by 12:00am EST March 1st. Details and glittering prizes here: http://goruco.com/articles/2007/01/31/call-for-presentations/ …

---

## [Mechanize 0.6.5 Released](https://www.ruby-forum.com/t/mechanize-0-6-5-released/86956)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [February 27, 2007, 3:39am UTC](https://www.ruby-forum.com/t/mechanize-0-6-5-released/86956 "2007-02-27T03:39:47Z")

</div>

mechanize version 0.6.5 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, …

---

## [Subclassing Array](https://www.ruby-forum.com/t/subclassing-array/86870)

<div class="topic-metadata">

**Author:** [@el-gato](https://www.ruby-forum.com/u/el-gato)\
**Replies:** 15\
**Last updated:** [February 27, 2007, 1:54am UTC](https://www.ruby-forum.com/t/subclassing-array/86870 "2007-02-27T01:54:39Z")

</div>

I’m sure I’m just being an idiot here… my mind is a little foggy this morning, but I’m having a hard time understanding how to accomplish this. I’ve written a class (I’ll just put some snippets in for understanding) …

---

## [Extending object instances with \<\<](https://www.ruby-forum.com/t/extending-object-instances-with/86685)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 4\
**Last updated:** [February 27, 2007, 1:13am UTC](https://www.ruby-forum.com/t/extending-object-instances-with/86685 "2007-02-27T01:13:35Z")

</div>

Hi, I’m trying to write a class with a method to extend instances of itself to contain additional accessors. I thought using class \<\< self would be the most elegant way to go about it, but I’m running into some proble…

---

## [I need to know if one function does excist](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763)

<div class="topic-metadata">

**Author:** [@helgso](https://www.ruby-forum.com/u/helgso)\
**Replies:** 6\
**Last updated:** [February 26, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763 "2007-02-26T22:16:14Z")

</div>

Hey all! I was making a program and then one thing popped in my mind: Is there a function in Ruby that gives you the chance of that when somebody is running the program and it stands ‘Press any button to continue’ tha…

---

## [Extending DrawingArea](https://www.ruby-forum.com/t/extending-drawingarea/86918)

<div class="topic-metadata">

**Author:** [@fryderyk](https://www.ruby-forum.com/u/fryderyk)\
**Replies:** 0\
**Last updated:** [February 26, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/extending-drawingarea/86918 "2007-02-26T22:04:58Z")

</div>

Hi all, I am going to overrive the Gtk::DrawingArea in such a way that it can support a nice looking draggable graph with possibility to add by clicking new edges and vertices. By egdes i mean a moveable and extendib…

---

## [Extract a random number of items from an array](https://www.ruby-forum.com/t/extract-a-random-number-of-items-from-an-array/86755)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 12\
**Last updated:** [February 26, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/extract-a-random-number-of-items-from-an-array/86755 "2007-02-26T22:01:04Z")

</div>

given an array of values, how should I extract an random number of these values a = \[13, 15, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, …

---

## [Test::Unit: setup per TestCase class or per suite](https://www.ruby-forum.com/t/test-setup-per-testcase-class-or-per-suite/86885)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 6\
**Last updated:** [February 26, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/test-setup-per-testcase-class-or-per-suite/86885 "2007-02-26T21:41:00Z")

</div>

For a performance test I need to populate the database with a large number of records. The individual test cases only read the database contents. It is rather time consuming and, after all, unnecessary to do a full se…

---

## [Mailing List Files (#115)](https://www.ruby-forum.com/t/mailing-list-files-115/86589)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [February 26, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/mailing-list-files-115/86589 "2007-02-26T20:48:52Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Fastthread installation fails - debian - w or w/o gem](https://www.ruby-forum.com/t/fastthread-installation-fails-debian-w-or-w-o-gem/86837)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 26, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/fastthread-installation-fails-debian-w-or-w-o-gem/86837 "2007-02-26T20:33:50Z")

</div>

Hi, iam trying to install fastthread, but it fails with the message: Building native extensions. This could take a while… extconf.rb:1:in \`require’: no such file to load – mkmf (LoadError) from extconf.rb:1 ERROR: …

---

## [Bug in OpenURI#redirectable?](https://www.ruby-forum.com/t/bug-in-openuri-redirectable/86905)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 0\
**Last updated:** [February 26, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/bug-in-openuri-redirectable/86905 "2007-02-26T20:20:49Z")

</div>

Use open-uri to go to http://www.gmail.com Receive error message “redirection forbidden: http://mail.google.com/mail/ → https://www.google.com/accounts/Ser…” Comment out this from open-uri: #unless OpenURI.redire…

---

## [Symbol to true object](https://www.ruby-forum.com/t/symbol-to-true-object/86827)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 6\
**Last updated:** [February 26, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/symbol-to-true-object/86827 "2007-02-26T19:26:38Z")

</div>

Hi, Is there an idiom to convert the symbol :true to object true (of TrueClass)? Basically how can I better def validate\_the\_message (sym\_arg) @vtm = case sym\_arg when :true true when :false false else # do…

---

## [Parsing CSV](https://www.ruby-forum.com/t/parsing-csv/86851)

<div class="topic-metadata">

**Author:** [@rafa](https://www.ruby-forum.com/u/rafa)\
**Replies:** 8\
**Last updated:** [February 26, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/parsing-csv/86851 "2007-02-26T18:48:32Z")

</div>

Hi guys, im a newbie in Ruby i have to parse two CSV files to compare 2 columns of the given files. My problem is that i tried a lot of different methods to handle this, i tried to put the entire column in an array an…

---

## [Methods and :parameters](https://www.ruby-forum.com/t/methods-and-parameters/86802)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 7\
**Last updated:** [February 26, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/methods-and-parameters/86802 "2007-02-26T18:36:30Z")

</div>

Hi all, I’ve a question about the :parameter notation. I want to write a method that can hold several optional paramters add\_book :title=\>“El quijote”, :author=\> “Miguel de Cervantes” add\_book :title=\>“El quijo…

---

## [Ruby Load Path](https://www.ruby-forum.com/t/ruby-load-path/86730)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [February 26, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/ruby-load-path/86730 "2007-02-26T17:45:22Z")

</div>

I am trying to understand my Ruby Load Path settings. I am on Fedora Core 5 Linux machine. I load irb and print the load path as follows: irb(main):001:0\> puts $: /usr/lib/ruby/site\_ruby/1.8 /usr/lib/ruby/site\_ruby…

---

## [Ruby In Steel Personal Edition v 1.0](https://www.ruby-forum.com/t/ruby-in-steel-personal-edition-v-1-0/86875)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [February 26, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/ruby-in-steel-personal-edition-v-1-0/86875 "2007-02-26T17:36:20Z")

</div>

SapphireSteel Software today released version 1.0 of Ruby In Steel PE ‘Personal Edition’ - a Ruby editing and debugging environment for Microsoft’s Visual Studio 2005. Ruby In Steel PE provides support for both Ruby …

---

## [Segmentation fault on long running script (linux)](https://www.ruby-forum.com/t/segmentation-fault-on-long-running-script-linux/86839)

<div class="topic-metadata">

**Author:** [@prhlava](https://www.ruby-forum.com/u/prhlava)\
**Replies:** 3\
**Last updated:** [February 26, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/segmentation-fault-on-long-running-script-linux/86839 "2007-02-26T16:42:56Z")

</div>

i have a long running script which takes a lot netcdf files and generates SQL which get’s piped to another process for database import. the script failed about 1/2 way through (after about 5 days) with segmentation fa…

---

## [Retry / redo question](https://www.ruby-forum.com/t/retry-redo-question/86845)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 2\
**Last updated:** [February 26, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/retry-redo-question/86845 "2007-02-26T16:20:00Z")

</div>

Hi, i have a ruby script that does for 1 - n folders a cp\_r of every folder to an existing cvs workspace and afterwards the cvs operations update to determine if add is needed add if needed 1-n times commit As th…

---

## [Installation problem on windows xp](https://www.ruby-forum.com/t/installation-problem-on-windows-xp/86830)

<div class="topic-metadata">

**Author:** [@spashokkumar](https://www.ruby-forum.com/u/spashokkumar)\
**Replies:** 1\
**Last updated:** [February 26, 2007, 11:52am UTC](https://www.ruby-forum.com/t/installation-problem-on-windows-xp/86830 "2007-02-26T11:52:24Z")

</div>

Hi, I have installed the ruby on windows xp. and facing some error software version details: Ruby version1.8.4 (i386-mswin32)RubyGems version0.9.0Rails version1.2.2Active Record version1.15.2Action Pack version1.13.2…

---

## [Writing a "String#jindex" method to do the same for "index"](https://www.ruby-forum.com/t/writing-a-string-jindex-method-to-do-the-same-for-index/86765)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [February 26, 2007, 11:11am UTC](https://www.ruby-forum.com/t/writing-a-string-jindex-method-to-do-the-same-for-index/86765 "2007-02-26T11:11:20Z")

</div>

So I’ve been using the ‘jcode’ library to get UTF-8 support and wanted to add a convenience method called “jindex” that would work with multi- byte characters in much the same way that “jlength” does. The basic idea i…

---

## [Ruby Weekly News 19th - 25th February 2007](https://www.ruby-forum.com/t/ruby-weekly-news-19th-25th-february-2007/86836)

<div class="topic-metadata">

**Author:** [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Replies:** 0\
**Last updated:** [February 26, 2007, 10:39am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-19th-25th-february-2007/86836 "2007-02-26T10:39:17Z")

</div>

Links are at http://www.rubyweeklynews.org/20070225.html. Ruby Weekly News 19th - 25th February 2007 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup / …

---

## [fastthread$B$K$D$$$F(B](https://www.ruby-forum.com/t/fastthread-b-k-d-f-b/86750)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 8\
**Last updated:** [February 26, 2007, 7:48am UTC](https://www.ruby-forum.com/t/fastthread-b-k-d-f-b/86750 "2007-02-26T07:48:54Z")

</div>

e$BA0ED$G$9!#e(B e$B$A$g$C$HCY$-$K\<:$7$?46$b$"$j$^$9$,!“e(Bfastthreade$B$N%3!\<%I%l%S%e!\<$re(B e$B$7$^$7$?$N$G!”$$$/$D$+5$IU$$$?E@$r!#e(B (1) rb\_thread\_wakeup()e$B$Ne(Brb\_rescue2() rb\_thread\_wakeup()e$B$re(Brb\_rescue2…

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

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