# Ruby

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

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

---

## [More on gateway](https://www.ruby-forum.com/t/more-on-gateway/75550)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [November 10, 2006, 10:23pm UTC](https://www.ruby-forum.com/t/more-on-gateway/75550 "2006-11-10T22:23:36Z")

</div>

i also don’t see this http://groups-beta.google.com/group/comp.lang.ruby/browse\_frm/thread/19d3d774212df53e/f1340dc8b02fa5a1#f1340dc8b02fa5a1 can anyone confirm? -a

---

## [Gateway horked?](https://www.ruby-forum.com/t/gateway-horked/75548)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 10, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/gateway-horked/75548 "2006-11-10T21:55:32Z")

</div>

at least i don’t see this via all channels http://groups-beta.google.com/group/comp.lang.ruby/browse\_frm/thread/fffa38ba7b6901a5/6a70e86b3fafb52d?lnk=raot#6a70e86b3fafb52d am i the only one? is it only on my end? -a

---

## [Rule with regex executed twice for same matching string](https://www.ruby-forum.com/t/rule-with-regex-executed-twice-for-same-matching-string/75156)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 1\
**Last updated:** [November 10, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/rule-with-regex-executed-twice-for-same-matching-string/75156 "2006-11-10T21:33:29Z")

</div>

Does anyone know why this rule is executed twice? $ cat rakefile task :default =\> “foo” deps = \[proc {“bar”}, proc {“barney”}\] rule /^foo$/ =\> deps rule /^bar$/ do |t| puts t.name end $ rake --trace (in /home/vj…

---

## [Overwriting the Integer class for method succ! (instead of j](https://www.ruby-forum.com/t/overwriting-the-integer-class-for-method-succ-instead-of-j/75425)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 10\
**Last updated:** [November 10, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/overwriting-the-integer-class-for-method-succ-instead-of-j/75425 "2006-11-10T20:31:21Z")

</div>

Hi all, A little thing that is bugging me is that I don’t know how to do a “count++” (like in Java) in Ruby. I found that Ruby has a method succ / next, but that still leaves me doing “count = count.succ” A simple “c…

---

## [Thousand ways to rome](https://www.ruby-forum.com/t/thousand-ways-to-rome/75364)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 16\
**Last updated:** [November 10, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/thousand-ways-to-rome/75364 "2006-11-10T20:27:04Z")

</div>

Hi, i am new to ruby and i am wondering how many more ways (and what ways) there are to do this: seperated\_words = “hi, you, guys” words\_array = seperated\_words.split(",") for i in 0 … words\_array.length words\_arra…

---

## [MountainWest RubyConf call for presenters (2nd notice)](https://www.ruby-forum.com/t/mountainwest-rubyconf-call-for-presenters-2nd-notice/75543)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [November 10, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-call-for-presenters-2nd-notice/75543 "2006-11-10T20:15:18Z")

</div>

The MountainWest RubyConf is being planned for Mar 16 and 17 2007, in Salt Lake City, UT. We’ve posted a first call for presenters, and have begun to receive submissions. If you’re interested in presenting at this …

---

## [Accessing caller's binding implicitly](https://www.ruby-forum.com/t/accessing-callers-binding-implicitly/75472)

<div class="topic-metadata">

**Author:** [@brblakley](https://www.ruby-forum.com/u/brblakley)\
**Replies:** 5\
**Last updated:** [November 10, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/accessing-callers-binding-implicitly/75472 "2006-11-10T19:43:08Z")

</div>

Hi all, As part of my IRB shell history hack (shameless plug1), I need to be able to access the caller’s binding. Essentially, I need to be able to do this: def irb\_eval( lines, scope ) eval(lines.join("\\n"), scop…

---

## [Spliting a line and passing the results](https://www.ruby-forum.com/t/spliting-a-line-and-passing-the-results/75423)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 9\
**Last updated:** [November 10, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/spliting-a-line-and-passing-the-results/75423 "2006-11-10T18:41:00Z")

</div>

Hi everone, I’m not quite sure what the best way to go about this is. I have a file with one user per line. Each line contains ID, username, phone, etc. I split all these up into variables and then either create a n…

---

## [Unit testing with uncertainty](https://www.ruby-forum.com/t/unit-testing-with-uncertainty/75490)

<div class="topic-metadata">

**Author:** [@martinus](https://www.ruby-forum.com/u/martinus)\
**Replies:** 3\
**Last updated:** [November 10, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/unit-testing-with-uncertainty/75490 "2006-11-10T18:41:00Z")

</div>

Hi all, I am writing an particle swarm optimizer that tries to find good floating point values for optimization problems. I have several test cases, and some target fitness value that the optimizer should be able to r…

---

## [Starting a system command and letting it be?](https://www.ruby-forum.com/t/starting-a-system-command-and-letting-it-be/75512)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [November 10, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/starting-a-system-command-and-letting-it-be/75512 "2006-11-10T16:44:45Z")

</div>

I’m writing a web service that accepts a call to initiate a few self-contained scripts on a RHEL4 webserver. Being new to Ruby, I can’t seem to find any documentation on how I could kick off the scripts without havin…

---

## [RSpec-0.7.1](https://www.ruby-forum.com/t/rspec-0-7-1/75513)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [November 10, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/rspec-0-7-1/75513 "2006-11-10T15:38:30Z")

</div>

RSpec-0.7.1 is now available. It comprises some bug fixes and a couple of new features. This is recommended for anybody who has already upgraded to 0.7.0. If you are running 0.6.x (or earlier), read this first: http:…

---

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

<div class="topic-metadata">

**Author:** [@sur\_max](https://www.ruby-forum.com/u/sur_max)\
**Replies:** 2\
**Last updated:** [November 10, 2006, 1:08pm UTC](https://www.ruby-forum.com/t/dynamic-modules/75492 "2006-11-10T13:08:05Z")

</div>

Hi, We can dynamically include a module in a class as… class A module B def method\_of\_b end end end a = A.new a.class.send :include, B Is there any way to remove the dynamically included module from a class. s…

---

## [QtRuby 1.4.7](https://www.ruby-forum.com/t/qtruby-1-4-7/74515)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 15\
**Last updated:** [November 10, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/qtruby-1-4-7/74515 "2006-11-10T12:46:00Z")

</div>

URIS http://rubyforge.org/projects/korundum/ http://developer.kde.org/language-bindings/ruby/index.html NAME QtRuby 1.4.7 SYNOPSIS Ruby bindings for the Qt4 GUI apis. Many fixes and improvements. QtDBus now works. …

---

## [BLT -- integrating into Ruby](https://www.ruby-forum.com/t/blt-integrating-into-ruby/75421)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 4\
**Last updated:** [November 10, 2006, 11:15am UTC](https://www.ruby-forum.com/t/blt-integrating-into-ruby/75421 "2006-11-10T11:15:50Z")

</div>

Hi, BLT is a very nice graphics package. Does anyone know how to integrate it into Ruby? Thx, Pat

---

## [Simple Math Problem](https://www.ruby-forum.com/t/simple-math-problem/75271)

<div class="topic-metadata">

**Author:** [@tloring](https://www.ruby-forum.com/u/tloring)\
**Replies:** 13\
**Last updated:** [November 10, 2006, 10:11am UTC](https://www.ruby-forum.com/t/simple-math-problem/75271 "2006-11-10T10:11:41Z")

</div>

Can anyone shed some light on a simple math problem I have encountered? I am doing a very simple calculation, and the comparison of that result compared to the number itself is returning false in some cases…for instan…

---

## [\[Ruby Newbie\] Reading in a file generated by df](https://www.ruby-forum.com/t/ruby-newbie-reading-in-a-file-generated-by-df/75442)

<div class="topic-metadata">

**Author:** [@lmcilwain](https://www.ruby-forum.com/u/lmcilwain)\
**Replies:** 3\
**Last updated:** [November 10, 2006, 8:37am UTC](https://www.ruby-forum.com/t/ruby-newbie-reading-in-a-file-generated-by-df/75442 "2006-11-10T08:37:29Z")

</div>

Hello all, (yes its me again :slight\_smile: ) I’m here at work and was hit with a very interesting problem. My boss would like for me to build a script that monitors disk usage on our database systems (OS X). I figur…

---

## [Killing a windows process](https://www.ruby-forum.com/t/killing-a-windows-process/73922)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 2\
**Last updated:** [November 10, 2006, 6:49am UTC](https://www.ruby-forum.com/t/killing-a-windows-process/73922 "2006-11-10T06:49:21Z")

</div>

Hi, I’m starting a bunch of processes using win32/process (http://rubyforge.org/projects/win32utils/). I want to be able to kill some of those processes. In \*nix, I’d send them a TERM signal. What’s the Windows equ…

---

## [Ruby/MySQL/Rails timeseries QN](https://www.ruby-forum.com/t/ruby-mysql-rails-timeseries-qn/75473)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 0\
**Last updated:** [November 10, 2006, 5:09am UTC](https://www.ruby-forum.com/t/ruby-mysql-rails-timeseries-qn/75473 "2006-11-10T05:09:16Z")

</div>

I’m starting an application that will create, persist, query, and display timeseries. I’m wondering how to best store these timeseries so they can be queried via metadata. Each timeseries object could be seven or eigh…

---

## [Minimizing the Risk of Deploying .NET Applications](https://www.ruby-forum.com/t/minimizing-the-risk-of-deploying-net-applications/75466)

<div class="topic-metadata">

**Author:** [@magpie](https://www.ruby-forum.com/u/magpie)\
**Replies:** 0\
**Last updated:** [November 10, 2006, 2:28am UTC](https://www.ruby-forum.com/t/minimizing-the-risk-of-deploying-net-applications/75466 "2006-11-10T02:28:27Z")

</div>

\------- Forwarded message ------- From: “Web Buyer’s Guide White Paper Update” removed\_email\_address@domain.invalid Subject: VoIP + IM = Problems for IT Date: Thu, 09 Nov 2006 23:59:06 +0800 November 9, 2006 The Zi…

---

## [Net::IMAP](https://www.ruby-forum.com/t/net-imap/74966)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 2\
**Last updated:** [November 10, 2006, 12:59am UTC](https://www.ruby-forum.com/t/net-imap/74966 "2006-11-10T00:59:00Z")

</div>

How do you get a list of the folders available? And how do you identify the seperator on the server? I know that some use ‘.’ and others use ‘/’ It would be nice to be able to interrogate the system before hand.

---

## [Best way to parse email recipient lists?](https://www.ruby-forum.com/t/best-way-to-parse-email-recipient-lists/75390)

<div class="topic-metadata">

**Author:** [@sbraford](https://www.ruby-forum.com/u/sbraford)\
**Replies:** 2\
**Last updated:** [November 10, 2006, 12:57am UTC](https://www.ruby-forum.com/t/best-way-to-parse-email-recipient-lists/75390 "2006-11-10T00:57:00Z")

</div>

Hey all, So… I’m trying to parse email recipient lists (entered by hand into the “to”, “cc” and “bcc” fields of a mail app by users). These can obviously come in a wild variety of formats, and I’d like to support as …

---

## [Can't get eval to reference $1, $2, etc](https://www.ruby-forum.com/t/cant-get-eval-to-reference-1-2-etc/75459)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 1\
**Last updated:** [November 10, 2006, 12:10am UTC](https://www.ruby-forum.com/t/cant-get-eval-to-reference-1-2-etc/75459 "2006-11-10T00:10:55Z")

</div>

Ok, so I have this array of pairs that control file movements, for organizing directory trees. It looks something like this: rules = \[ \['(.+).tgz', 'tars/$1'\], \['(.+)-(.+).war', '$1/webapps/$2'\], # and so…

---

## [Kudos to all Ruby creators/enhancers/users](https://www.ruby-forum.com/t/kudos-to-all-ruby-creators-enhancers-users/75378)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [November 9, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/kudos-to-all-ruby-creators-enhancers-users/75378 "2006-11-09T22:38:37Z")

</div>

I can’t stop myself from using 15 minutes of my work time to express my gratitude to Matz and everyone else involved with the creation, enhancement, and use of Ruby. This comes from a 20 yr procedural programmer rais…

---

## [How to got a preview of a web page](https://www.ruby-forum.com/t/how-to-got-a-preview-of-a-web-page/74940)

<div class="topic-metadata">

**Author:** [@Haofei](https://www.ruby-forum.com/u/Haofei)\
**Replies:** 11\
**Last updated:** [November 9, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/how-to-got-a-preview-of-a-web-page/74940 "2006-11-09T22:34:34Z")

</div>

for example i want to have a method which just like def preview\_of ( url ) #some relate operation end then i can have a picture (jpeg, png …) of the web page somewhere, i am not familiar with the graphic libraries o…

---

## [Re: Modifying Time with DPrecision to work with Runt](https://www.ruby-forum.com/t/re-modifying-time-with-dprecision-to-work-with-runt/75375)

<div class="topic-metadata">

**Author:** [@LipperS\_Matthew](https://www.ruby-forum.com/u/LipperS_Matthew)\
**Replies:** 1\
**Last updated:** [November 9, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/re-modifying-time-with-dprecision-to-work-with-runt/75375 "2006-11-09T22:34:33Z")

</div>

Hi there, Hi Paul, I added the code below (which is pretty much identical to the DateTime modification included with Runt) and now it works (plus it’s a lot faster), but I’m wondering if there’s any unintended co…

---

## [A basic chat program](https://www.ruby-forum.com/t/a-basic-chat-program/72400)

<div class="topic-metadata">

**Author:** [@teddio](https://www.ruby-forum.com/u/teddio)\
**Replies:** 5\
**Last updated:** [November 9, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/a-basic-chat-program/72400 "2006-11-09T22:34:33Z")

</div>

Okay I’m looking to make a basic chat program that I can connect to via telnet for learning purposes. I want a user to connect then login in or be able to create a new user, new users would be saved as files. then whe…

---

## [Ruby and SQLite3](https://www.ruby-forum.com/t/ruby-and-sqlite3/75093)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 9, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/ruby-and-sqlite3/75093 "2006-11-09T21:48:25Z")

</div>

Hi, I’m just a beginner in Ruby. Have just installed Rails and Gems. I am using SQLite3 as the db. When going thro the “CookBook” tutorial. after creating the recipes table in the sqlite3 database. and changing the…

---

## [Bytecode Compiler (#100)](https://www.ruby-forum.com/t/bytecode-compiler-100/74833)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 26\
**Last updated:** [November 9, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/bytecode-compiler-100/74833 "2006-11-09T21:16:19Z")

</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: …

---

## [Can't seem to write to a file properly](https://www.ruby-forum.com/t/cant-seem-to-write-to-a-file-properly/75427)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [November 9, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/cant-seem-to-write-to-a-file-properly/75427 "2006-11-09T21:15:38Z")

</div>

Hello, Can someone help me diagnose what’s going on with my script? Part of it is below. I need to open a file, read its contents, do something to its contents if a condition is true, then write new data to the end of…

---

## [Why create web servers?](https://www.ruby-forum.com/t/why-create-web-servers/75195)

<div class="topic-metadata">

**Author:** [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Replies:** 15\
**Last updated:** [November 9, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/why-create-web-servers/75195 "2006-11-09T21:04:15Z")

</div>

Hi, Im just starting to get my feet wet with Ruby amd im having trouble understanding why someone would want to implement there own web server. I know theres a WEBrick object and a few others out there that allow you …

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

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