# Ruby

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

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

---

## [The next killer innovation: post-mortem debugging](https://www.ruby-forum.com/t/the-next-killer-innovation-post-mortem-debugging/80075)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 21, 2006, 6:49am UTC](https://www.ruby-forum.com/t/the-next-killer-innovation-post-mortem-debugging/80075 "2006-12-21T06:49:23Z")

</div>

Hello, Take a look at Kent S.'s brilliant innovation of post-mortem debugging, which was just added to the 0.5.1 release of his ruby-debug project: DATANOISE.COM It is simply stunning! Hurray for Kent! …

---

## [Mechanize 0.6.4 Released](https://www.ruby-forum.com/t/mechanize-0-6-4-released/80033)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 2\
**Last updated:** [December 21, 2006, 6:47am UTC](https://www.ruby-forum.com/t/mechanize-0-6-4-released/80033 "2006-12-21T06:47:32Z")

</div>

mechanize version 0.6.4 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, …

---

## [Chess960 (#106)](https://www.ruby-forum.com/t/chess960-106/79476)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 32\
**Last updated:** [December 21, 2006, 6:25am UTC](https://www.ruby-forum.com/t/chess960-106/79476 "2006-12-21T06:25:28Z")

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

---

## [Why is gethostbyname in TCPSocket?](https://www.ruby-forum.com/t/why-is-gethostbyname-in-tcpsocket/80069)

<div class="topic-metadata">

**Author:** [@msoulier](https://www.ruby-forum.com/u/msoulier)\
**Replies:** 2\
**Last updated:** [December 21, 2006, 4:31am UTC](https://www.ruby-forum.com/t/why-is-gethostbyname-in-tcpsocket/80069 "2006-12-21T04:31:21Z")

</div>

Looking for dns support, I found the gethostbyname method as a class method of TCPSocket in the socket library. Seems like an odd place, considering that gethostbyname is hardly specific to TCP protocol alone. Any id…

---

## [Common point puzzle](https://www.ruby-forum.com/t/common-point-puzzle/80058)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 2\
**Last updated:** [December 21, 2006, 3:57am UTC](https://www.ruby-forum.com/t/common-point-puzzle/80058 "2006-12-21T03:57:18Z")

</div>

Warning: the following really needs a sketch. I have a series of three (x,y) grids with values, z, at each point. Each successive grid is twice as fine as the previous, i.e., dx1 = 2 \* dx2 = 4 \* dx3. For a series of…

---

## [JRake](https://www.ruby-forum.com/t/jrake/79721)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [December 21, 2006, 3:37am UTC](https://www.ruby-forum.com/t/jrake/79721 "2006-12-21T03:37:15Z")

</div>

Fowler points to some folks replacing Ant with Rake: JRake Regards,

---

## [Win32 file stat and find conflict](https://www.ruby-forum.com/t/win32-file-stat-and-find-conflict/80029)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 21, 2006, 2:57am UTC](https://www.ruby-forum.com/t/win32-file-stat-and-find-conflict/80029 "2006-12-21T02:57:11Z")

</div>

I have a small snippet of code to recurse a directory which works as it should require ‘find’ Find::find(‘C:\\test’) do |f| p f end When I change it like this require ‘win32/file/stat’ require ‘find’ Find::find(‘…

---

## [Anyone looking for Ruby Developer position?](https://www.ruby-forum.com/t/anyone-looking-for-ruby-developer-position/79881)

<div class="topic-metadata">

**Author:** [@rlee](https://www.ruby-forum.com/u/rlee)\
**Replies:** 3\
**Last updated:** [December 21, 2006, 2:19am UTC](https://www.ruby-forum.com/t/anyone-looking-for-ruby-developer-position/79881 "2006-12-21T02:19:07Z")

</div>

Hello to all of the Ruby P.mers in the Chicagoland Area. I am looking for a Senior Ruby Developer on the Rails Framework. If your the type who eats Ruby-Os for breakfast this position is for you. Or if your the type w…

---

## [VimMate 0.6.2](https://www.ruby-forum.com/t/vimmate-0-6-2/80055)

<div class="topic-metadata">

**Author:** [@Guillaume\_Benny](https://www.ruby-forum.com/u/Guillaume_Benny)\
**Replies:** 1\
**Last updated:** [December 21, 2006, 2:17am UTC](https://www.ruby-forum.com/t/vimmate-0-6-2/80055 "2006-12-21T02:17:53Z")

</div>

Hi, A new version of VimMate is now available: Version 0.6.2. VimMate is a graphical add-on to Vim with IDE-like features: it does more than the plain Vim while still being lightweight. Even with the additional fea…

---

## [Regex question: this should be easy but doesn't work as I ex](https://www.ruby-forum.com/t/regex-question-this-should-be-easy-but-doesnt-work-as-i-ex/80002)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 7\
**Last updated:** [December 21, 2006, 2:15am UTC](https://www.ruby-forum.com/t/regex-question-this-should-be-easy-but-doesnt-work-as-i-ex/80002 "2006-12-21T02:15:06Z")

</div>

Hi all, -----Code------ re = \[ /(one).+?(three).+?(five)/, /(one).+?(three)?.+?(five)/, /(one).+?(three|).+?(five)/, /(one).+(three|).+?(five)/ \] re.each\_with\_index do |r, idx| puts idx p “one two three four fi…

---

## [Discovering the number of return arguments requested](https://www.ruby-forum.com/t/discovering-the-number-of-return-arguments-requested/79968)

<div class="topic-metadata">

**Author:** [@bpauly](https://www.ruby-forum.com/u/bpauly)\
**Replies:** 1\
**Last updated:** [December 21, 2006, 1:55am UTC](https://www.ruby-forum.com/t/discovering-the-number-of-return-arguments-requested/79968 "2006-12-21T01:55:04Z")

</div>

Is it possible ( and I think not ) that you can discover if any return arguments are requested when a method is called. Eg: def foo if nargout == 1 “bar” end end a = foo # nargout == 1 foo # nargout == 0 Th…

---

## [Ruby ODBC: what is returned by 'columns'?](https://www.ruby-forum.com/t/ruby-odbc-what-is-returned-by-columns/80054)

<div class="topic-metadata">

**Author:** [@Chris\_McMahon](https://www.ruby-forum.com/u/Chris_McMahon)\
**Replies:** 0\
**Last updated:** [December 21, 2006, 1:47am UTC](https://www.ruby-forum.com/t/ruby-odbc-what-is-returned-by-columns/80054 "2006-12-21T01:47:03Z")

</div>

conn = ODBC::connect(‘db’) cols = conn.columns(‘table’) cols.each do |col| puts col.inspect end \[“db\_name”, “dbo”, “table”, “Created\_”, 11, “smalldatetime”, 16, 16, 0, nil, 1, nil, nil, 9, 3, nil, 1, “YES”, 111\] \[…

---

## [ODBC: Obtaining output params](https://www.ruby-forum.com/t/odbc-obtaining-output-params/80051)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 21, 2006, 1:00am UTC](https://www.ruby-forum.com/t/odbc-obtaining-output-params/80051 "2006-12-21T01:00:58Z")

</div>

I’m fairly new to Ruby, as well as using the ODBC library. So far, I’ve had very little problems using it… running queries, stored procs, etc. However, I cannot seem to get an output parameter from a stored proc that …

---

## [Fastri-server error on winxp: cannot find file](https://www.ruby-forum.com/t/fastri-server-error-on-winxp-cannot-find-file/80050)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [December 21, 2006, 12:44am UTC](https://www.ruby-forum.com/t/fastri-server-error-on-winxp-cannot-find-file/80050 "2006-12-21T00:44:56Z")

</div>

Hi to fastri author, I’m currently on windows at home. Running fastri-server, I get the following, \[snip\] Indexing RI docs for win32-sapi-0.1.3 version mswin32. Indexing RI docs for win32-sound version 0.4.0. Indexi…

---

## [Heckle 1.1.1 Released](https://www.ruby-forum.com/t/heckle-1-1-1-released/80043)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/heckle-1-1-1-released/80043 "2006-12-20T23:22:41Z")

</div>

heckle version 1.1.1 has been released! http://www.rubyforge.org/projects/seattlerb by Ryan D. and Kevin C. Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is t…

---

## [Reflecting on objects without creating one](https://www.ruby-forum.com/t/reflecting-on-objects-without-creating-one/80035)

<div class="topic-metadata">

**Author:** [@S\_Kevin](https://www.ruby-forum.com/u/S_Kevin)\
**Replies:** 5\
**Last updated:** [December 20, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/reflecting-on-objects-without-creating-one/80035 "2006-12-20T23:06:31Z")

</div>

Let’s say I have two constants a = Integer b = Numeric Does anyone have any idea how to see if ‘a’ is a subclass of ‘b’ WITHOUT creating an object of class ‘a’? \_Kevin

---

## [Ruby2ruby 1.1.3 Released](https://www.ruby-forum.com/t/ruby2ruby-1-1-3-released/80038)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 10:50pm UTC](https://www.ruby-forum.com/t/ruby2ruby-1-1-3-released/80038 "2006-12-20T22:50:26Z")

</div>

ruby2ruby version 1.1.3 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [Fwd: Chess960 (#106)](https://www.ruby-forum.com/t/fwd-chess960-106/79967)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/fwd-chess960-106/79967 "2006-12-20T22:42:24Z")

</div>

Begin forwarded message:

---

## [Class\_eval and using a block instead of a String?](https://www.ruby-forum.com/t/class-eval-and-using-a-block-instead-of-a-string/80034)

<div class="topic-metadata">

**Author:** [@Mariano\_K](https://www.ruby-forum.com/u/Mariano_K)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/class-eval-and-using-a-block-instead-of-a-string/80034 "2006-12-20T22:40:23Z")

</div>

Hi, given the following contrived example I am wondering how to use a block with class\_eval instead of using the string like in the code below?! Any ideas? Cheers, Mariano require ‘test/unit’ include Test::Unit::…

---

## [Re: New guy question](https://www.ruby-forum.com/t/re-new-guy-question/80018)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/re-new-guy-question/80018 "2006-12-20T22:40:23Z")

</div>

From: JoeyP \[mailto:removed\_email\_address@domain.invalid\] I am going to use Ruby. Does anyone have any starter code out there for the CGI? What framework or library are you going to use? Ruby on Rails? ruby-web? Io…

---

## [Noob: How to make my script executable on unix?](https://www.ruby-forum.com/t/noob-how-to-make-my-script-executable-on-unix/80030)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/noob-how-to-make-my-script-executable-on-unix/80030 "2006-12-20T22:38:23Z")

</div>

Hey All, At a bash prompt, if I say ‘which ruby’, I get back ‘/opt/csw/bin/ruby’. So I write a 2-line test script (test.rb): #!/opt/csw/bin/ruby puts(“It works!”) And I do a ‘chmod +x test.rb’. But when I thereaft…

---

## [Abything out there that emits structured text?](https://www.ruby-forum.com/t/abything-out-there-that-emits-structured-text/80020)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/abything-out-there-that-emits-structured-text/80020 "2006-12-20T22:26:18Z")

</div>

I am writing something that has to emits structured text by parsing some internal structures and don’t want to write something that has already been done better by others a million times, so just wanted a couple of po…

---

## [Formating Floats as Money](https://www.ruby-forum.com/t/formating-floats-as-money/76970)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 11\
**Last updated:** [December 20, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/formating-floats-as-money/76970 "2006-12-20T22:22:16Z")

</div>

I have a number that is of type float. I want to format it as dollars and cents. How do you recommend I do it? :slight\_smile: – John K. removed\_email\_address@domain.invalid http://www.kopanas.com http://www.soen.…

---

## [Re: New guy question](https://www.ruby-forum.com/t/re-new-guy-question/80019)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 20, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/re-new-guy-question/80019 "2006-12-20T22:18:15Z")

</div>

From: JoeyP \[mailto:removed\_email\_address@domain.invalid\] Thanks for your reply. I was planning on Ruby on Rails. I have the Dave T. “Programming Ruby” book. I am slowly going through it but it would be nice if I had…

---

## [Re: where have all the experienced users gone?](https://www.ruby-forum.com/t/re-where-have-all-the-experienced-users-gone/80021)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/re-where-have-all-the-experienced-users-gone/80021 "2006-12-20T22:08:12Z")

</div>

From: Trans \[mailto:removed\_email\_address@domain.invalid\] seems like there’s been a steady drop off in experienced ruby users on the list. is it me or has there really been some sort of migration away? It’s just yo…

---

## [Compare two objects without take its ID in consideration](https://www.ruby-forum.com/t/compare-two-objects-without-take-its-id-in-consideration/79817)

<div class="topic-metadata">

**Author:** [@lobosque](https://www.ruby-forum.com/u/lobosque)\
**Replies:** 10\
**Last updated:** [December 20, 2006, 9:52pm UTC](https://www.ruby-forum.com/t/compare-two-objects-without-take-its-id-in-consideration/79817 "2006-12-20T21:52:06Z")

</div>

Is there a way to compare two objects without take its ID in consideration? For example: #\<Game\_Esper:0xdcc7e0 @str=6, @mdfel = 0, @name = “Ifrit”\> == #\<Game\_Esper:0xeda51e @str=6, @mdfel = 0, @name = “Ifrit”\> It’ll …

---

## [New guy question](https://www.ruby-forum.com/t/new-guy-question/80017)

<div class="topic-metadata">

**Author:** [@JoeyP](https://www.ruby-forum.com/u/JoeyP)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/new-guy-question/80017 "2006-12-20T21:46:02Z")

</div>

I have been assigned the task of making our website interactive. (AJAX) I have the web pages doing what I want them to do. The DB is mysql on Linux. I want to use the html to query and update the DB tables. I am goin…

---

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

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 7\
**Last updated:** [December 20, 2006, 9:37pm UTC](https://www.ruby-forum.com/t/range-question/79941 "2006-12-20T21:37:58Z")

</div>

Hi all, I want to create an array as following: a4=\[‘name 1’,‘name 2’…‘name 20’\]. It looks like a range for me. But I can’t find a method in class Range to create this array. Here is my script I am not sure if this …

---

## [Output unique values in CSV columns to a text file](https://www.ruby-forum.com/t/output-unique-values-in-csv-columns-to-a-text-file/79779)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 2\
**Last updated:** [December 20, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/output-unique-values-in-csv-columns-to-a-text-file/79779 "2006-12-20T21:17:53Z")

</div>

What I want to do is read in a CSV file and produce an output which lists the unique values from each column in the following format: Column: ColHeader1 UniqueVal1 UniqueVal2 Column: ColHeader2 UniqueVal1 UniqueVa…

---

## [Using gems on Windows without dependencies](https://www.ruby-forum.com/t/using-gems-on-windows-without-dependencies/102625)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 0\
**Last updated:** [December 20, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/using-gems-on-windows-without-dependencies/102625 "2006-12-20T21:17:51Z")

</div>

gem install GEMNAME -f seems to fail on Windows. That is, if you say no to the dependency, it will refuse to install. How can I install a gem without its dependnecy? (railsmachine depends on mongrel\_cluster which de…

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

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