# Ruby

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

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

---

## [Running Tests With the Browser Not Visible](https://www.ruby-forum.com/t/running-tests-with-the-browser-not-visible/68194)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 3\
**Last updated:** [September 10, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/running-tests-with-the-browser-not-visible/68194 "2006-09-10T22:21:31Z")

</div>

Rubies: Unit tests should run as silent, fast, and unattended as possible. Even sick GUI tests. So the page http://wtr.rubyforge.org/watir\_user\_guide.html contains this interesting line: ‘Run the tests with a “-b” …

---

## [Basic authentication with WEBrick?](https://www.ruby-forum.com/t/basic-authentication-with-webrick/67772)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 3\
**Last updated:** [September 10, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/basic-authentication-with-webrick/67772 "2006-09-10T18:37:06Z")

</div>

Hi, We are using WEBrick on port 80 for development of a Rails app. \[We may move to Mongrel or some other option later\]. Assume our host is http://my.host.com. When we go to http://my.host.com, we get our Rails app’s…

---

## [Warning: redefining Object#initialize may cause infinite loo](https://www.ruby-forum.com/t/warning-redefining-object-initialize-may-cause-infinite-loo/68138)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [September 10, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/warning-redefining-object-initialize-may-cause-infinite-loo/68138 "2006-09-10T18:21:01Z")

</div>

irb(main):001:1class Object irb(main):002:1\> alias :init :initialize irb(main):003:1\> def initialize( \*args, &blk ) irb(main):004:2\> init( \*args, &blk ) irb(main):005:2\> end irb(main):006:1\> end (irb):3: …

---

## [Puzzling bug with yielded array](https://www.ruby-forum.com/t/puzzling-bug-with-yielded-array/68017)

<div class="topic-metadata">

**Author:** [@ASSSBradbury](https://www.ruby-forum.com/u/ASSSBradbury)\
**Replies:** 10\
**Last updated:** [September 10, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/puzzling-bug-with-yielded-array/68017 "2006-09-10T17:26:56Z")

</div>

I have a Node class, children are stored in a hash with the node’s name as the key and the child node object as the value. I have the method Node#each\_level that yields each level of the node tree as an array: def e…

---

## [Another reason Rails doesn't suck](https://www.ruby-forum.com/t/another-reason-rails-doesnt-suck/68189)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 6\
**Last updated:** [September 10, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/another-reason-rails-doesnt-suck/68189 "2006-09-10T17:20:55Z")

</div>

Rubies: I got to the deceased equine flagellation party late, so I will find a different angle. Read: http://c2.com/cgi/wiki?ConfigurationHell That page lampoons a very well-regarded and highly successful servlet e…

---

## [Matrix modifying and coercion question?](https://www.ruby-forum.com/t/matrix-modifying-and-coercion-question/67997)

<div class="topic-metadata">

**Author:** [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Replies:** 1\
**Last updated:** [September 10, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/matrix-modifying-and-coercion-question/67997 "2006-09-10T17:12:54Z")

</div>

Hi, I was wondering why Ruby Matrix class doesn’t creates objects which are editable? That is, m = Matrix\[\[2,3,4\]\] m\[0,0\]= 5 NoMethodError: undefined method \`\[\]=’ for Matrix\[\[2, 3, 4\]\]:Matrix from (irb):11 gives …

---

## [ERRORLEVEL not set correctly on exception](https://www.ruby-forum.com/t/errorlevel-not-set-correctly-on-exception/68051)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 10, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/errorlevel-not-set-correctly-on-exception/68051 "2006-09-10T13:36:39Z")

</div>

Hi If I run the following code, then the DOS ERRORLEVEL is set to 1 as expected. Timeout.timeout(1) { sleep(5) } If I run the following code, then the DOS ERRORLEVEL is also set to 1 as expected. require ‘test/unit…

---

## [Why Lisp macros are cool](https://www.ruby-forum.com/t/why-lisp-macros-are-cool/68203)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 0\
**Last updated:** [September 10, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/why-lisp-macros-are-cool/68203 "2006-09-10T13:12:37Z")

</div>

This posting looks just as relevant to Ruby as to Perl… Why Lisp macros are cool, a Perl perspective http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.html -r http://www.cfcl.com/rdm Rich M. http…

---

## [Ruby-bdb transactions](https://www.ruby-forum.com/t/ruby-bdb-transactions/68166)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [September 10, 2006, 12:16pm UTC](https://www.ruby-forum.com/t/ruby-bdb-transactions/68166 "2006-09-10T12:16:33Z")

</div>

I want to make sure I’m not missing something here. The following statement from docs/transactions.rb seems to state that BDB::INIT\_TXN and BDB::INIT\_TRANSACTION are the same, and do not enable locking. The transacti…

---

## [Draw 1280, 1024](https://www.ruby-forum.com/t/draw-1280-1024/68111)

<div class="topic-metadata">

**Author:** [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Replies:** 32\
**Last updated:** [September 10, 2006, 12:14pm UTC](https://www.ruby-forum.com/t/draw-1280-1024/68111 "2006-09-10T12:14:32Z")

</div>

20 years ago, the subject line would have drawn me a line across one of my screen’s diagonals. Ruby is awesomely more powerful than BBC BASIC, but why no trivial graphics support? My two requirements are that it shoul…

---

## [Ruby Gnuplot Splot problem](https://www.ruby-forum.com/t/ruby-gnuplot-splot-problem/68200)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 10, 2006, 11:46am UTC](https://www.ruby-forum.com/t/ruby-gnuplot-splot-problem/68200 "2006-09-10T11:46:28Z")

</div>

Dear all, I have a problem displaying three-dimensional plots using ruby-gnuplot. When I execute the code attached, a window opens up and displays axes and axes labelling, but the actual graph does not appear. It’s…

---

## [Using rcov in already running program](https://www.ruby-forum.com/t/using-rcov-in-already-running-program/67472)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 8\
**Last updated:** [September 10, 2006, 10:24am UTC](https://www.ruby-forum.com/t/using-rcov-in-already-running-program/67472 "2006-09-10T10:24:22Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, How can I use rcov from an already running Ruby program? I’m running a Ruby interpreter that is embedded within a C program. This situation is the inverse of how …

---

## [Watir 1.5?](https://www.ruby-forum.com/t/watir-1-5/68183)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [September 10, 2006, 4:40am UTC](https://www.ruby-forum.com/t/watir-1-5/68183 "2006-09-10T04:40:03Z")

</div>

Rubies: One Bret P. gave me an extension to Watir 1.5, to fix bugs caused by Win32 OLE zombie objects. (The bug is they eat up all the file handles in my box!) I have Watir 1.4.1, which is the latest one RubyGems w…

---

## [Do not understand this closure](https://www.ruby-forum.com/t/do-not-understand-this-closure/66330)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 26\
**Last updated:** [September 10, 2006, 4:04am UTC](https://www.ruby-forum.com/t/do-not-understand-this-closure/66330 "2006-09-10T04:04:00Z")

</div>

in The Ruby Way…chap 1…a crude example of closure doesn’t work as this irb session: def power(exponent) proc {|base| base\*\*exponent} end =\> nil square = power(2) =\> #Proc:0x02dc58f0@:2(irb) cube = power(3) …

---

## [Photoblog and Fund Raising](https://www.ruby-forum.com/t/photoblog-and-fund-raising/68177)

<div class="topic-metadata">

**Author:** [@Gabriel\_Filippi](https://www.ruby-forum.com/u/Gabriel_Filippi)\
**Replies:** 1\
**Last updated:** [September 10, 2006, 2:09am UTC](https://www.ruby-forum.com/t/photoblog-and-fund-raising/68177 "2006-09-10T02:09:25Z")

</div>

Check out my Photoblog http://www.photobloggers.net/photoblog3.php?action=overview&username=defusao Visit My auction http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&ih=005&item=150031196927&rd=1&sspagename=STRK%3AMESE%…

---

## [RingyDingy](https://www.ruby-forum.com/t/ringydingy/68174)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [September 10, 2006, 1:25am UTC](https://www.ruby-forum.com/t/ringydingy/68174 "2006-09-10T01:25:42Z")

</div>

= RingyDingy RingyDingy is a little boat that keeps your DRb service afloat! Rubyforge Project: http://rubyforge.org/projects/seattlerb Documentation: ri RingyDingy == About RingyDingy automatically registers a se…

---

## [Timer Task?](https://www.ruby-forum.com/t/timer-task/68130)

<div class="topic-metadata">

**Author:** [@vinsonizer](https://www.ruby-forum.com/u/vinsonizer)\
**Replies:** 7\
**Last updated:** [September 10, 2006, 1:21am UTC](https://www.ruby-forum.com/t/timer-task/68130 "2006-09-10T01:21:41Z")

</div>

Disclaimer: I’m relatively new to Ruby, but I love it. :slight\_smile: I’m writing my first real ruby utility on my own (using the snarl library http://www.fullphat.net/ plus Google Code Archive - Long-term storage fo…

---

## [How to read and write 80 column punched cards with Ruby](https://www.ruby-forum.com/t/how-to-read-and-write-80-column-punched-cards-with-ruby/68118)

<div class="topic-metadata">

**Author:** [@christer](https://www.ruby-forum.com/u/christer)\
**Replies:** 4\
**Last updated:** [September 9, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/how-to-read-and-write-80-column-punched-cards-with-ruby/68118 "2006-09-09T22:54:56Z")

</div>

I’m trying to communicate with a bank. Banks are still using the punched card layout in their files. Example: 001234567800023420060909 (account=12345678, amount=234 and day=20060909) I’m trying to make some nice Ruby…

---

## [Table.find(@params\["tag"\])](https://www.ruby-forum.com/t/table-find-params-tag/68143)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 5\
**Last updated:** [September 9, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/table-find-params-tag/68143 "2006-09-09T20:50:15Z")

</div>

ok this gets all records from the table where the id = tag how do i change this for it to compare the “tag” with a other column apart from the id?? sorry for being such a noob but thats what i am

---

## [Generation of Random Numbers](https://www.ruby-forum.com/t/generation-of-random-numbers/68148)

<div class="topic-metadata">

**Author:** [@chell](https://www.ruby-forum.com/u/chell)\
**Replies:** 1\
**Last updated:** [September 9, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/generation-of-random-numbers/68148 "2006-09-09T20:14:49Z")

</div>

Hello, how can I generate random numbers (integers, no floating point numbers) using Ruby’s standard library? Many thanks in advance.

---

## [No quiz this week?](https://www.ruby-forum.com/t/no-quiz-this-week/68141)

<div class="topic-metadata">

**Author:** [@darren\_kirby](https://www.ruby-forum.com/u/darren_kirby)\
**Replies:** 2\
**Last updated:** [September 9, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/no-quiz-this-week/68141 "2006-09-09T20:00:47Z")

</div>

Are you all out of quiz submissions James? The last line of last week’s summary led me to believe there would be a new one yesterday. While I’m at it, thanks for the quiz in the first place! -d

---

## [Re: Overlapping circles - modelling living populations](https://www.ruby-forum.com/t/re-overlapping-circles-modelling-living-populations/68135)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [September 9, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/re-overlapping-circles-modelling-living-populations/68135 "2006-09-09T19:42:45Z")

</div>

Here’s a slightly better version that uses the overlapping status of a circle to change its color. (It doesn’t do anything with pairs of circles, though that’d also be easy…you just have to know how you’d want to visu…

---

## [Overlapping circles - modelling living populations](https://www.ruby-forum.com/t/overlapping-circles-modelling-living-populations/68116)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 2\
**Last updated:** [September 9, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/overlapping-circles-modelling-living-populations/68116 "2006-09-09T19:40:45Z")

</div>

People, I have been thinking about how to use Ruby for modelling populations - I want to use circles on a grid to represent the size of individual populations and determine if there is dispersal between pairs of popu…

---

## [Can't get irb to read its configuration file](https://www.ruby-forum.com/t/cant-get-irb-to-read-its-configuration-file/68105)

<div class="topic-metadata">

**Author:** [@Pierre\_Barbier\_de\_R](https://www.ruby-forum.com/u/Pierre_Barbier_de_R)\
**Replies:** 3\
**Last updated:** [September 9, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/cant-get-irb-to-read-its-configuration-file/68105 "2006-09-09T18:38:39Z")

</div>

Hello, I was trying to use Wirble, and following the mail, I edited my ~/.irbrc However, it seems that the content of that file is just not read … I tried to debug the irb scripts and I found out that this file was c…

---

## [Better alias\_method](https://www.ruby-forum.com/t/better-alias-method/67976)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 24\
**Last updated:** [September 9, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/better-alias-method/67976 "2006-09-09T18:36:38Z")

</div>

i’ve been wanting a better alias\_method for quite some time. essentially i’d like a way out of the trap where executing alias\_method ‘fubar’, ‘fubar’ goes haywire when fubar already exists. we’ve all seen it happen …

---

## [Parsing a tab delimited file with ruby csv?](https://www.ruby-forum.com/t/parsing-a-tab-delimited-file-with-ruby-csv/68095)

<div class="topic-metadata">

**Author:** [@jcapote](https://www.ruby-forum.com/u/jcapote)\
**Replies:** 7\
**Last updated:** [September 9, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/parsing-a-tab-delimited-file-with-ruby-csv/68095 "2006-09-09T18:34:37Z")

</div>

I’ve been scouring the internet for hours looking for a good tutorial on how to parse a tab delimited file with ruby’s CSV library, the most I know is that the library does in fact support tabs as the delimiter, I’d r…

---

## [Test(0)](https://www.ruby-forum.com/t/test-0/67383)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 2\
**Last updated:** [September 9, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/test-0/67383 "2006-09-09T18:10:35Z")

</div>

e$B$U$J$P$G$9!#e(B e$B\<ALd$G$9$,!"%^%K%e%"%k$r8+$F$b$o$+$i$J$+$C$?$N$G$9$,!“e(Btest(0) e$B$,56$K$Je(B e$B$k$N$O!”$I$&$$$&0UL#$,$"$k$N$G$7$g$&$+!#e(B

---

## [Re: Overlapping circles - modelling living populations](https://www.ruby-forum.com/t/re-overlapping-circles-modelling-living-populations/68134)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [September 9, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/re-overlapping-circles-modelling-living-populations/68134 "2006-09-09T17:42:32Z")

</div>

From: Philip R. \[mailto:removed\_email\_address@domain.invalid\] I have been thinking about how to use Ruby for modelling populations - I want to use circles on a grid to represent the size of individual populations and…

---

## [Re: Thousands of words on Ruby](https://www.ruby-forum.com/t/re-thousands-of-words-on-ruby/67914)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 8\
**Last updated:** [September 9, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/re-thousands-of-words-on-ruby/67914 "2006-09-09T16:42:28Z")

</div>

James, What do you do for ‘rename method’ in TextMate? I’m aware of the search and replace in file feature but I was wondering if there was something better. Nice write-up by the way. Ruby IDEs might not do all tha…

---

## [Recurrent phantom mailings with net/smtp](https://www.ruby-forum.com/t/recurrent-phantom-mailings-with-net-smtp/68132)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 9, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/recurrent-phantom-mailings-with-net-smtp/68132 "2006-09-09T15:47:05Z")

</div>

Hi – I’ve got a script that sends an email message to me, using the net/smtp library. After the message is sent – in the most recent case, for weeks after the message is sent – I get re-sendings of the message, at t…

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

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