# Ruby

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

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

---

## [Problem with win32 change notify, dbi and sql server](https://www.ruby-forum.com/t/problem-with-win32-change-notify-dbi-and-sql-server/80485)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 28, 2006, 3:21pm UTC](https://www.ruby-forum.com/t/problem-with-win32-change-notify-dbi-and-sql-server/80485 "2006-12-28T15:21:51Z")

</div>

I have created a script to monitor a directory and update a database based on changes to the directory. I am using WinXP, Ruby 1.8.5 and Ruby DBI. The script is divided into a class to handle the db functions (class F…

---

## [Where does song.name come from?](https://www.ruby-forum.com/t/where-does-song-name-come-from/80519)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [December 28, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/where-does-song-name-come-from/80519 "2006-12-28T15:01:59Z")

</div>

Hi all, On page 49 of Pickaxe 2 are some scripts: class Songlist def with\_title(title) @songs.find{|song| title==song.name} end end I just wonder where the method “name” comes from and what its purpose is here. I…

---

## [Need help massaging some strings](https://www.ruby-forum.com/t/need-help-massaging-some-strings/80520)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 4\
**Last updated:** [December 28, 2006, 10:51am UTC](https://www.ruby-forum.com/t/need-help-massaging-some-strings/80520 "2006-12-28T10:51:26Z")

</div>

As a Rails developer, I’ve been learning Ruby on a need-to-know basis. However, I now need to tap its power to batch alter some very large text dumps and find myself a bit lost. Here is what I need to do: Transform d…

---

## [Contest: fastet way to redefine a method](https://www.ruby-forum.com/t/contest-fastet-way-to-redefine-a-method/80487)

<div class="topic-metadata">

**Author:** [@Pit\_C](https://www.ruby-forum.com/u/Pit_C)\
**Replies:** 11\
**Last updated:** [December 28, 2006, 9:27am UTC](https://www.ruby-forum.com/t/contest-fastet-way-to-redefine-a-method/80487 "2006-12-28T09:27:21Z")

</div>

Hi, Dan B.'s recent thread about using UnboundMethod#bind to redefine an existing method reminded me of a problem I still have: What is the fastest way to redefine an existing method? With “fast” I don’t mean the pro…

---

## [\[ANN\] Ruby-VPI 13.0.0](https://www.ruby-forum.com/t/ann-ruby-vpi-13-0-0/80525)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [December 28, 2006, 7:59am UTC](https://www.ruby-forum.com/t/ann-ruby-vpi-13-0-0/80525 "2006-12-28T07:59:41Z")

</div>

Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Web site: http://ruby-vpi.rubyforge.org Install: gem install ruby-vpi Version 13.0.0 (2006-…

---

## [Newbie with a weird technical problem (@ least I think it's](https://www.ruby-forum.com/t/newbie-with-a-weird-technical-problem-least-i-think-its/80475)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 9\
**Last updated:** [December 28, 2006, 7:47am UTC](https://www.ruby-forum.com/t/newbie-with-a-weird-technical-problem-least-i-think-its/80475 "2006-12-28T07:47:16Z")

</div>

Yep, as the post title implies, I’m a newbie. Being a pragmatic newbie I’d rather be learning to program, than searching for answers to non-language acquisition questions/problems. I’m pretty sure the following fall…

---

## [Emacs mode for eruby/.rhtml (indent problem with do blocks)](https://www.ruby-forum.com/t/emacs-mode-for-eruby-rhtml-indent-problem-with-do-blocks/80523)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 0\
**Last updated:** [December 28, 2006, 7:15am UTC](https://www.ruby-forum.com/t/emacs-mode-for-eruby-rhtml-indent-problem-with-do-blocks/80523 "2006-12-28T07:15:28Z")

</div>

I’ve done some searching to find an emacs configuration that will allow highlighting and indentation for eruby and .rhtml files. I’ve found some solutions that work, partially, but none work flawlessly. The current …

---

## [Newer versions of Hpricot issue a warning](https://www.ruby-forum.com/t/newer-versions-of-hpricot-issue-a-warning/80521)

<div class="topic-metadata">

**Author:** [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Replies:** 1\
**Last updated:** [December 28, 2006, 7:11am UTC](https://www.ruby-forum.com/t/newer-versions-of-hpricot-issue-a-warning/80521 "2006-12-28T07:11:12Z")

</div>

I have written a script that requires ‘hpricot’. I use mswin32 versions It runs without issuing any warnings when using hpricot 0.4, 0.4.43, 0.4.52, 0.4.59 With newer versions of hpricot it issues the following warnin…

---

## [Including a namespace for just one class](https://www.ruby-forum.com/t/including-a-namespace-for-just-one-class/80389)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 5\
**Last updated:** [December 28, 2006, 6:23am UTC](https://www.ruby-forum.com/t/including-a-namespace-for-just-one-class/80389 "2006-12-28T06:23:05Z")

</div>

I would like to reference constants and classes defined in module People in the class Schedule. class Login is not part of any module (other than the root). doing this: class Schedule include People def a\_method #…

---

## [Cropmail 0.9 mail filter](https://www.ruby-forum.com/t/cropmail-0-9-mail-filter/80351)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 11\
**Last updated:** [December 28, 2006, 5:59am UTC](https://www.ruby-forum.com/t/cropmail-0-9-mail-filter/80351 "2006-12-28T05:59:00Z")

</div>

Hi Rubyists, Cropmail – A Ruby MDA. Sort and delazaridify your mail using plain Ruby statements. http://opensource.bertram-scharpf.de/distfiles/cropmail-0.1.tar.gz Gentoo users may use the portage overlay (in case …

---

## [Rails Book 2nd Edition now shipping](https://www.ruby-forum.com/t/rails-book-2nd-edition-now-shipping/79731)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 4\
**Last updated:** [December 28, 2006, 5:42am UTC](https://www.ruby-forum.com/t/rails-book-2nd-edition-now-shipping/79731 "2006-12-28T05:42:59Z")

</div>

It’s been a long time coming, but we’re very pleased to announced that Agile Web D. with Rails, 2nd Edition, is now in stock and shipping. Get 'em while they’re hot :slight\_smile: For details, please visit http://pra…

---

## [Modified Single Table Inheritance](https://www.ruby-forum.com/t/modified-single-table-inheritance/80446)

<div class="topic-metadata">

**Author:** [@wonko](https://www.ruby-forum.com/u/wonko)\
**Replies:** 6\
**Last updated:** [December 28, 2006, 5:24am UTC](https://www.ruby-forum.com/t/modified-single-table-inheritance/80446 "2006-12-28T05:24:57Z")

</div>

Hello, I am developing an application that will have 100’s of model classes each derived from a single source class. Each model will have 4 similar attributes but then have about a dozen unique ones each. I looked i…

---

## [Ruby/Informix 0.5.0 released](https://www.ruby-forum.com/t/ruby-informix-0-5-0-released/80518)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [December 28, 2006, 4:56am UTC](https://www.ruby-forum.com/t/ruby-informix-0-5-0-released/80518 "2006-12-28T04:56:52Z")

</div>

Ruby/Informix is a Ruby extension for connecting to IBM Informix Dynamic Server, written in ESQL/C. It is being developed and heavily tested on Solaris/SPARC. It has been reported to work on Linux Fedora, SuSE Linux, …

---

## [Handling of arbitrary length arrays in arguments to printf b](https://www.ruby-forum.com/t/handling-of-arbitrary-length-arrays-in-arguments-to-printf-b/80493)

<div class="topic-metadata">

**Author:** [@npenkov](https://www.ruby-forum.com/u/npenkov)\
**Replies:** 11\
**Last updated:** [December 27, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/handling-of-arbitrary-length-arrays-in-arguments-to-printf-b/80493 "2006-12-27T23:50:05Z")

</div>

Hi Folks, I’m porting an error reporting system from Perl to Ruby as a way of getting up the Ruby learning curve. Apologies in advance if my question has already been answered - I did a cursory search and got no hits…

---

## [Reg exp comparison hanging irb](https://www.ruby-forum.com/t/reg-exp-comparison-hanging-irb/80464)

<div class="topic-metadata">

**Author:** [@gaurav\_bagga](https://www.ruby-forum.com/u/gaurav_bagga)\
**Replies:** 11\
**Last updated:** [December 27, 2006, 11:13pm UTC](https://www.ruby-forum.com/t/reg-exp-comparison-hanging-irb/80464 "2006-12-27T23:13:58Z")

</div>

hi, was just going trough reg exp the lines below just hangs irb and cpu usage goes 100% on windows xp can anyone explain me why? irb(main):001:0\> r=/^(https?://)?\[a-z0-9\]+(\[.-\_=&+/?\]?\[a-z0-9\]+)+$/i =\> /^(https?://…

---

## [Parseexcel retrieve strange chars](https://www.ruby-forum.com/t/parseexcel-retrieve-strange-chars/80481)

<div class="topic-metadata">

**Author:** [@Luiz](https://www.ruby-forum.com/u/Luiz)\
**Replies:** 2\
**Last updated:** [December 27, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/parseexcel-retrieve-strange-chars/80481 "2006-12-27T21:05:36Z")

</div>

Hi, I am a Ruby newbie, and I am trying to use parseexcel library to retrieve some information from a spreadsheet, but when I try this, I receive the chars contained on the cell alternated square chars. Does anybody …

---

## [Newbie problem: String can't be coerced into Fixnum](https://www.ruby-forum.com/t/newbie-problem-string-cant-be-coerced-into-fixnum/80486)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 7\
**Last updated:** [December 27, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/newbie-problem-string-cant-be-coerced-into-fixnum/80486 "2006-12-27T18:48:17Z")

</div>

I am brand new to Ruby and I would greatly appreciate any help you guys can provide! If this is not the correct place to post them please let me know where I should post these types of questions. This very short prog…

---

## [Trying to eval Rubinius](https://www.ruby-forum.com/t/trying-to-eval-rubinius/80372)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 3\
**Last updated:** [December 27, 2006, 6:11pm UTC](https://www.ruby-forum.com/t/trying-to-eval-rubinius/80372 "2006-12-27T18:11:02Z")

</div>

Sorry for the slightly off-topic. I’m trying to compile rubinius and evaluate its status, without much success. I’m looking for some information about some of its C components (mainly, rcc, rubinius and rcompile), as…

---

## [Net::HTTP::get statis of a chunked response](https://www.ruby-forum.com/t/net-get-statis-of-a-chunked-response/80478)

<div class="topic-metadata">

**Author:** [@AnSSS\_bal](https://www.ruby-forum.com/u/AnSSS_bal)\
**Replies:** 1\
**Last updated:** [December 27, 2006, 3:50pm UTC](https://www.ruby-forum.com/t/net-get-statis-of-a-chunked-response/80478 "2006-12-27T15:50:44Z")

</div>

Hello, I am using a code like: # using block File.open('result.txt', 'w') {|f| resp, data = http.get('/~foo/') do |str| f.write str end } To read a chunked response from a server (a large file) Docs say: “In …

---

## [Object creation with a "variable classname"](https://www.ruby-forum.com/t/object-creation-with-a-variable-classname/80449)

<div class="topic-metadata">

**Author:** [@cedric.ch](https://www.ruby-forum.com/u/cedric.ch)\
**Replies:** 6\
**Last updated:** [December 27, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/object-creation-with-a-variable-classname/80449 "2006-12-27T15:44:43Z")

</div>

Hi, I would to know if it is possible to do something like that: def create\_object(class\_name) my\_object = class\_name.new end I tried with class.new(&class\_name) Class\_name = Class.new(&class\_name) my\_object = Cla…

---

## [Nuby: VisualuRuby, menutest.rb example with check boxes in s](https://www.ruby-forum.com/t/nuby-visualuruby-menutest-rb-example-with-check-boxes-in-s/80479)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 3\
**Last updated:** [December 27, 2006, 3:34pm UTC](https://www.ruby-forum.com/t/nuby-visualuruby-menutest-rb-example-with-check-boxes-in-s/80479 "2006-12-27T15:34:42Z")

</div>

I’m back to looking at visualuRuby, have two quick questions about this program: http://vruby.sourceforge.net/sample/menutest.rb Basically, I don’t understand this line: @checking.checked = ! @ checking.checked? I a…

---

## [Merry (slightly early) Christmas! Mr. Neighborly's Humble Li](https://www.ruby-forum.com/t/merry-slightly-early-christmas-mr-neighborlys-humble-li/80230)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 13\
**Last updated:** [December 27, 2006, 11:24am UTC](https://www.ruby-forum.com/t/merry-slightly-early-christmas-mr-neighborlys-humble-li/80230 "2006-12-27T11:24:02Z")

</div>

Hello all, I just switched everything over, and Mr. Neighborly’s Humble Little Ruby Book is now available to download as a PDF or view online completely free. If you don’t know about my book: “Mr. Neighborly’s Humble…

---

## [Extending Rake with a method rshell](https://www.ruby-forum.com/t/extending-rake-with-a-method-rshell/80403)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 5\
**Last updated:** [December 27, 2006, 5:45am UTC](https://www.ruby-forum.com/t/extending-rake-with-a-method-rshell/80403 "2006-12-27T05:45:33Z")

</div>

I want to extend Rake with a method rshell, which would enable anyone to execute a command remotely on various UNIX boxes. Also, if the command asks for input, then remote process’s stdin should be connected to curren…

---

## [Peculiar Behavior for a Newby to Undertstand](https://www.ruby-forum.com/t/peculiar-behavior-for-a-newby-to-undertstand/80455)

<div class="topic-metadata">

**Author:** [@Charles\_A\_Gray](https://www.ruby-forum.com/u/Charles_A_Gray)\
**Replies:** 10\
**Last updated:** [December 27, 2006, 5:31am UTC](https://www.ruby-forum.com/t/peculiar-behavior-for-a-newby-to-undertstand/80455 "2006-12-27T05:31:31Z")

</div>

I created a class for prime numbers as so: class Primes def initialize end def prime?(number) # Method returns true if number is prime. limit = Math.sqrt(number).ceil flag = true if number % 2 == 0 …

---

## [Newby - how to round up floating point number?](https://www.ruby-forum.com/t/newby-how-to-round-up-floating-point-number/80428)

<div class="topic-metadata">

**Author:** [@Dermot\_M](https://www.ruby-forum.com/u/Dermot_M)\
**Replies:** 13\
**Last updated:** [December 27, 2006, 4:57am UTC](https://www.ruby-forum.com/t/newby-how-to-round-up-floating-point-number/80428 "2006-12-27T04:57:18Z")

</div>

Hi guys Got a Ruby book yesterday from Santa, and am a bit stuck :wink: Searched the pickaxe and some Perl books (left over after an earlier failed attempt at programming), and this list and Googled and found nothing…

---

## [Magic/help 0.20061226.1123 released](https://www.ruby-forum.com/t/magic-help-0-20061226-1123-released/80430)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 3\
**Last updated:** [December 27, 2006, 4:55am UTC](https://www.ruby-forum.com/t/magic-help-0-20061226-1123-released/80430 "2006-12-27T04:55:18Z")

</div>

I’ve just released new version of magic/help - plugin for irb providing more intuitive documentation access by heavy use of reflection. magic/help lets you ask for methods located anywhere in the class hierarchy: h…

---

## [Ruby on Rails Test Fixtures](https://www.ruby-forum.com/t/ruby-on-rails-test-fixtures/80456)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 27, 2006, 3:51am UTC](https://www.ruby-forum.com/t/ruby-on-rails-test-fixtures/80456 "2006-12-27T03:51:10Z")

</div>

When I use test fixtures to populate test data into mysql database I am running into an unexpected behavior. Only columns explicitly defined in the fixture is populated into the database. However, created\_on, create…

---

## [Parsing a CSV file having multiple records in RUBYp](https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-rubyp/80410)

<div class="topic-metadata">

**Author:** [@mundrakrishna](https://www.ruby-forum.com/u/mundrakrishna)\
**Replies:** 7\
**Last updated:** [December 27, 2006, 1:41am UTC](https://www.ruby-forum.com/t/parsing-a-csv-file-having-multiple-records-in-rubyp/80410 "2006-12-27T01:41:01Z")

</div>

Hi everyone, Can anyone help me in parsing a CSV file,with comma seperated multiple records (multiple columns and multiple rows)… What i am doing is uploading a CSV file and reading the records from CSV file,first ro…

---

## [Hash with two identical keys?](https://www.ruby-forum.com/t/hash-with-two-identical-keys/80437)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 14\
**Last updated:** [December 27, 2006, 12:38am UTC](https://www.ruby-forum.com/t/hash-with-two-identical-keys/80437 "2006-12-27T00:38:55Z")

</div>

From Facets’ multiton.rb (which is primarily Floran Franks’ work), I’m getting somthing that doesn’t make any sense: POOLS\[self\] ||= {} p POOLS\[self\].class p POOLS\[self\].keys Is outputing: Hash \[\[{:str…

---

## [Google Custom Search Engine](https://www.ruby-forum.com/t/google-custom-search-engine/80442)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 26, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/google-custom-search-engine/80442 "2006-12-26T22:48:42Z")

</div>

Hi, I created a Google Custom Search Engine for searching on: “Software / Compilers / Optimization” This is basically a regular full Google search giving preference to technical sites such as IEEE, ACM, citeseer, the…

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

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