# Ruby

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

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

---

## [Problem with decoding a compressed string](https://www.ruby-forum.com/t/problem-with-decoding-a-compressed-string/121887)

<div class="topic-metadata">

**Author:** [@keith\_g](https://www.ruby-forum.com/u/keith_g)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 3:56am UTC](https://www.ruby-forum.com/t/problem-with-decoding-a-compressed-string/121887 "2007-12-03T03:56:50Z")

</div>

I am writing an app in Ruby on Rails that I want to use for authenticating Google Apps users. I am having difficulty decoding the SAMLRequest. My code looks like this: string = CGI::unescape(params\[:SAMLRequest\]) doc…

---

## [\[ANN\] TMail 1.2.0](https://www.ruby-forum.com/t/ann-tmail-1-2-0/121872)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 5\
**Last updated:** [December 3, 2007, 3:53am UTC](https://www.ruby-forum.com/t/ann-tmail-1-2-0/121872 "2007-12-03T03:53:20Z")

</div>

TMail - The Mail Handling Library for Ruby! TMail is the Ruby Mail handler used in the Ruby on Rails and Nitro web frame works as well as many others (now including, the Ruby Talk mail gateway!). TMail is now a gem.…

---

## [Fwd: Please Forward A Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-a-ruby-quiz-submission/229164)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 2:38am UTC](https://www.ruby-forum.com/t/fwd-please-forward-a-ruby-quiz-submission/229164 "2007-12-03T02:38:30Z")

</div>

Begin forwarded message:

---

## [WIN32OLE - problem with argv](https://www.ruby-forum.com/t/win32ole-problem-with-argv/121925)

<div class="topic-metadata">

**Author:** [@rainer](https://www.ruby-forum.com/u/rainer)\
**Replies:** 3\
**Last updated:** [December 3, 2007, 2:31am UTC](https://www.ruby-forum.com/t/win32ole-problem-with-argv/121925 "2007-12-03T02:31:29Z")

</div>

Hello, I’m having a problem trying to pass parameters by reference with WIN32OLE::ARGV. What I’m actually trying to do is getting access to OneNote 2007 as described here… …but using Ruby instead. Here’s my little…

---

## [Rails hosting?](https://www.ruby-forum.com/t/rails-hosting/121929)

<div class="topic-metadata">

**Author:** [@ds456](https://www.ruby-forum.com/u/ds456)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 1:31am UTC](https://www.ruby-forum.com/t/rails-hosting/121929 "2007-12-03T01:31:18Z")

</div>

I am just starting with Ruby and Rails so this question is fairly academic right now. How common are web hosting sites that provide a Rails environment? My current one does not - just CGI - as do the couple of other…

---

## [Modules in rails? ( controllers or models?)](https://www.ruby-forum.com/t/modules-in-rails-controllers-or-models/121931)

<div class="topic-metadata">

**Author:** [@malugu\_satyajit](https://www.ruby-forum.com/u/malugu_satyajit)\
**Replies:** 3\
**Last updated:** [December 3, 2007, 1:07am UTC](https://www.ruby-forum.com/t/modules-in-rails-controllers-or-models/121931 "2007-12-03T01:07:21Z")

</div>

Hello, I have an rails application that has almost similar function for three classes. So I am thinking to create a parent class and then the sub classes inherit from it. But rails already inherits from ActiveRecord(…

---

## [Gem require 'activerecord' or 'active\_record'](https://www.ruby-forum.com/t/gem-require-activerecord-or-active-record/121903)

<div class="topic-metadata">

**Author:** [@jansenh](https://www.ruby-forum.com/u/jansenh)\
**Replies:** 2\
**Last updated:** [December 2, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/gem-require-activerecord-or-active-record/121903 "2007-12-02T23:59:30Z")

</div>

Hi comp.lang.ruby I am doing my first thing with ActiveRecord (without Rails), and to help me out I have the ‘Pro ActiveRecord’ book from APress, which is a fine resource, except from one annoying thing; all pieces of…

---

## [SEGV on child process by fork on GC.stress](https://www.ruby-forum.com/t/segv-on-child-process-by-fork-on-gc-stress/121726)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 8\
**Last updated:** [December 2, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/segv-on-child-process-by-fork-on-gc-stress/121726 "2007-12-02T23:52:29Z")

</div>

GC.stress = true e$B2\<$Ge(B fork e$B$9$k$H;R%W%m%;%9$,e(B SEGV e$B$7$^$9!#e(B % ./ruby -ve ’ GC.stress = true pid = fork {} Process.wait pid p $? ’ ruby 1.9.0 (2007-11-30 patchlevel 0) \[i686-linux\] #\<Process::St…

---

## [Trying to download first 10k](https://www.ruby-forum.com/t/trying-to-download-first-10k/121874)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [December 2, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/trying-to-download-first-10k/121874 "2007-12-02T23:30:13Z")

</div>

Hi, I’m trying to download via http only the first, say, 10k of a file. I’m using open-uri but even when I try to break out of the core loop where it’s reading the buffer, I can hear my hard-drive grinding away downlo…

---

## [Eruby cutting off top / binding issue](https://www.ruby-forum.com/t/eruby-cutting-off-top-binding-issue/121921)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/eruby-cutting-off-top-binding-issue/121921 "2007-12-02T22:32:49Z")

</div>

I’m trying to use ERB bound to a controlled context, and it’s failing when it build a template within another template. If you have any insights about this please let me know. I’m simply at a loss. This is a minimal …

---

## [RubyGems break because Ruby has both site\_ruby and vendor\_ruby](https://www.ruby-forum.com/t/rubygems-break-because-ruby-has-both-site-ruby-and-vendor-ruby/196529)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/rubygems-break-because-ruby-has-both-site-ruby-and-vendor-ruby/196529 "2007-12-02T20:45:38Z")

</div>

I just installed Ruby and RubyGems using MacPorts and a whole bunch of gems. I am trying to run a Rails project that works on Ubuntu, but now I am trying to make it run on Leopard. I got an error when I just run scr…

---

## [Running -r in IRB](https://www.ruby-forum.com/t/running-r-in-irb/121906)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 5\
**Last updated:** [December 2, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/running-r-in-irb/121906 "2007-12-02T19:38:59Z")

</div>

After doing a couple of websites using Rails, I realized that my problem is that I am terrible at ruby so I bought “Ruby by Example” by Kevin Baird and started on page 1. I’m at the part in chapter 2 where I am being …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229128)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [December 2, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229128 "2007-12-02T18:05:44Z")

</div>

Begin forwarded message:

---

## [Re: Postfix to Infix (#148)](https://www.ruby-forum.com/t/re-postfix-to-infix-148/121902)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/re-postfix-to-infix-148/121902 "2007-12-02T17:41:44Z")

</div>

PREC = {:+ =\> 0,:- =\> 0,:\* =\> 1,:confused: =\> 1,:% =\> 1,:^ =\> 2} LEFT\_ASSOCS = {:+ =\> true,:- =\> true,:\* =\> true,:confused: =\> true, :% =\> true,:^ =\> false} RIGHT\_ASSOCS = {:+ =\> true,:- =\> false,:\* =\> true,:confused: …

---

## [Implementing socket](https://www.ruby-forum.com/t/implementing-socket/121877)

<div class="topic-metadata">

**Author:** [@Terence\_L](https://www.ruby-forum.com/u/Terence_L)\
**Replies:** 1\
**Last updated:** [December 2, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/implementing-socket/121877 "2007-12-02T17:26:29Z")

</div>

Hello list, I’ve been playing around with the IronRuby source for a couple of days trying to figure out how to start an implementation of socket. Unfortunately I’ve run into some roadblocks, and I’d appreciate any ad…

---

## [How to free an unused object forcefully?](https://www.ruby-forum.com/t/how-to-free-an-unused-object-forcefully/121060)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 2, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-free-an-unused-object-forcefully/121060 "2007-12-02T16:22:03Z")

</div>

Hi All, I have a script which serves as a cache, storing “large” (around 60MB) objects. Once in a day I have to drop the old data and load fresh data in the cache. The cache itself is simply a hash of hashes, nothin…

---

## [Regex problem](https://www.ruby-forum.com/t/regex-problem/121402)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 4\
**Last updated:** [December 2, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/regex-problem/121402 "2007-12-02T14:05:43Z")

</div>

hi @all I would like to scan a string of html-tags. I need it to take out all links (a-tags) in the string, but I become only the last one. What is wrong? See the code below… response = ‘test1 - test2’ response.scan…

---

## [Float Question](https://www.ruby-forum.com/t/float-question/121815)

<div class="topic-metadata">

**Author:** [@Armando\_P](https://www.ruby-forum.com/u/Armando_P)\
**Replies:** 11\
**Last updated:** [December 2, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/float-question/121815 "2007-12-02T12:30:47Z")

</div>

This is probably the stupidest question ive ever had to ask on any board so im sorry lol. :-p Yes i’ve googled and found a solution but i cant believe that the solution presented is correct or that the great minds beh…

---

## [Eval("a"): illegal multibyte char](https://www.ruby-forum.com/t/eval-a-illegal-multibyte-char/121883)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 11:56am UTC](https://www.ruby-forum.com/t/eval-a-illegal-multibyte-char/121883 "2007-12-02T11:56:50Z")

</div>

e$B0J2\<$N$h$&$Ke(B eval(“a”) e$B$H$9$k$He(B illegal multibyte char e$B$J$ke(B e$B%(%i!\<$K$J$j$^$9!#e(B % ./ruby -v -e ‘eval(“a”)’ ruby 1.9.0 (2007-12-02 patchlevel 0) \[i686-linux\] -e:1:in eval': -e:1:ineval’: (eval)…

---

## [Equivalent for unix "read" command in rake tasks?](https://www.ruby-forum.com/t/equivalent-for-unix-read-command-in-rake-tasks/121484)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 9\
**Last updated:** [December 2, 2007, 11:22am UTC](https://www.ruby-forum.com/t/equivalent-for-unix-read-command-in-rake-tasks/121484 "2007-12-02T11:22:49Z")

</div>

Hi, Perhaps I’m missing something, but I can’t find information anywhere about adding any level of interaction with the user into rake tasks. What I want really is something equivalent to the unix/ linux command “rea…

---

## [RubyCocoa LoadError](https://www.ruby-forum.com/t/rubycocoa-loaderror/121881)

<div class="topic-metadata">

**Author:** [@Gianni\_C](https://www.ruby-forum.com/u/Gianni_C)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 11:11am UTC](https://www.ruby-forum.com/t/rubycocoa-loaderror/121881 "2007-12-02T11:11:07Z")

</div>

Hey Rubyists, I’m trying to use the RubyCocoa framework, but I am getting a LoadError: \`require’: no such file to load – osx/cocoa (LoadError) RubyCocoa is installed, and all the sample applications work perfectly. …

---

## ["wrong number of arguments (6 for 2)" by def m(a, b=:b, c, d, e)](https://www.ruby-forum.com/t/wrong-number-of-arguments-6-for-2-by-def-m-a-b-b-c-d-e/121867)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [December 2, 2007, 7:31am UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-6-for-2-by-def-m-a-b-b-c-d-e/121867 "2007-12-02T07:31:17Z")

</div>

def m(a, b=:b, c, d, e) e$B$H$7$FDj5A$7$?%a%=%C%I$Ke(B 6e$B$D$N0z?t$rM?$($k$He(B wrong number of arguments (6 for 2) (ArgumentError) e$B$H$$$&%(%i!\<$K$J$j$^$9!#e(B e$B$3$l$Ne(B 2e$B$C$F$$$&$N$Oe(B 5e$B$G$"$k$Y$-$h$&$…

---

## [Scrabble Stems Ruby Quiz question](https://www.ruby-forum.com/t/scrabble-stems-ruby-quiz-question/121866)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 2\
**Last updated:** [December 2, 2007, 5:40am UTC](https://www.ruby-forum.com/t/scrabble-stems-ruby-quiz-question/121866 "2007-12-02T05:40:52Z")

</div>

Hi all, could someone explain the line: (STEMS\[stem\] ||= {})\[letter\] = 1 in the code below? This is a solution (Carlos) from the Scrabble Stems Ruby quiz. DICT = “/usr/share/dict/words” CUTOFF = ARGV\[0\].to\_i STEM…

---

## [Warnings, exceptions, and constant modifications, redux](https://www.ruby-forum.com/t/warnings-exceptions-and-constant-modifications-redux/121869)

<div class="topic-metadata">

**Author:** [@Dumaiu](https://www.ruby-forum.com/u/Dumaiu)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 5:35am UTC](https://www.ruby-forum.com/t/warnings-exceptions-and-constant-modifications-redux/121869 "2007-12-02T05:35:37Z")

</div>

Hello, all. With your permission I’d like to resurrect a topic that seems to have died in 2002. At least, this is the most info I’ve found. The question was, Why does modification of a constant produce a warning an…

---

## [Eval("\\"\\xfd".force\_encoding("utf-8")) generages garbage in error message](https://www.ruby-forum.com/t/eval-xfd-force-encoding-utf-8-generages-garbage-in-error-message/121863)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 2, 2007, 3:01am UTC](https://www.ruby-forum.com/t/eval-xfd-force-encoding-utf-8-generages-garbage-in-error-message/121863 "2007-12-02T03:01:55Z")

</div>

e$B0J2\<$N$h$&$Ke(B eval(""\\xfd".force\_encoding(“utf-8”)) e$B$H$9$k$He(B e$B%(%i!\<%a%C%;!\<%8$Ke(B (cat -v e$B$G8+$($k$h$&$K$7$Fe(B) M-\`M-bM-OM-7utf-8 e$B$J$I$H$$$&%4%\_$,=P$F$-$^$9!#e(B sh-2.05b$ ./ruby -ve ‘eval(""\\xfd…

---

## [Google Highly Open Participation Contest](https://www.ruby-forum.com/t/google-highly-open-participation-contest/121782)

<div class="topic-metadata">

**Author:** [@vruz](https://www.ruby-forum.com/u/vruz)\
**Replies:** 10\
**Last updated:** [December 2, 2007, 2:29am UTC](https://www.ruby-forum.com/t/google-highly-open-participation-contest/121782 "2007-12-02T02:29:13Z")

</div>

is anyone at Ruby Central in contact with Google about this ? http://code.google.com/opensource/ghop/2007-8/

---

## [How do I IO.read the entire thing](https://www.ruby-forum.com/t/how-do-i-io-read-the-entire-thing/121854)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 1\
**Last updated:** [December 2, 2007, 2:01am UTC](https://www.ruby-forum.com/t/how-do-i-io-read-the-entire-thing/121854 "2007-12-02T02:01:09Z")

</div>

I have a system command that im running using Popen. Im trying to read in the entire io result. IO.read needs a length argument to run. How can I read it without knowing what the total length is?

---

## [Negate a character sequence in a regular expression?](https://www.ruby-forum.com/t/negate-a-character-sequence-in-a-regular-expression/121691)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [December 2, 2007, 1:43am UTC](https://www.ruby-forum.com/t/negate-a-character-sequence-in-a-regular-expression/121691 "2007-12-02T01:43:02Z")

</div>

For the following string: ‘cat sheep horse cat tac dog’ I would like to write a regular expression that matches any substring that is prefixed by the word ‘cat’, is then followed by any characters as long as those ch…

---

## [System commands](https://www.ruby-forum.com/t/system-commands/109568)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 3\
**Last updated:** [December 2, 2007, 12:40am UTC](https://www.ruby-forum.com/t/system-commands/109568 "2007-12-02T00:40:47Z")

</div>

Let me first apologize I asked this question last week and lost the answer. How do I run Linux commands in side a ruby program? I’ll print it out this time. Thanks Jeff

---

## [Creating Databases in Ruby](https://www.ruby-forum.com/t/creating-databases-in-ruby/121590)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 11\
**Last updated:** [December 2, 2007, 12:00am UTC](https://www.ruby-forum.com/t/creating-databases-in-ruby/121590 "2007-12-02T00:00:08Z")

</div>

Hello All, I was wondering how exactly is the best method for creating databases in Ruby. I mean databases in a sense of small or large quantities of information stored. With Thanks,

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

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