# Ruby

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

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

---

## [Difference between File and FileTest?](https://www.ruby-forum.com/t/difference-between-file-and-filetest/119869)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 1\
**Last updated:** [November 12, 2007, 12:27am UTC](https://www.ruby-forum.com/t/difference-between-file-and-filetest/119869 "2007-11-12T00:27:57Z")

</div>

I’m new to Ruby. I started writing some code that uses “FileTest.directory?” and found this method also available as “File.directory?”. So, why the two methods for doing the same thing and which should I be using? …

---

## [Equivalent injecting implementations?](https://www.ruby-forum.com/t/equivalent-injecting-implementations/119759)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 13\
**Last updated:** [November 12, 2007, 12:16am UTC](https://www.ruby-forum.com/t/equivalent-injecting-implementations/119759 "2007-11-12T00:16:15Z")

</div>

Are these strictly equivalent? I get the feeling no, but I haven’t been able to demonstrate it yet. def injecting(s) inject(s) do |k, i| yield(k, i); k end end def injecting(res, &block) (\[res\]\*length).zip(to\_a).…

---

## [\[JRuby\] Fast Debugger for JRuby](https://www.ruby-forum.com/t/jruby-fast-debugger-for-jruby/119888)

<div class="topic-metadata">

**Author:** [@mkrauskopf](https://www.ruby-forum.com/u/mkrauskopf)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/jruby-fast-debugger-for-jruby/119888 "2007-11-11T23:47:37Z")

</div>

Hi, we would like to announce the first ‘official’ public release of the Fast Debugger for JRuby. It should be kind of stable these days. Still not everything works perfectly, so we appreciate any kind of feedback. E…

---

## [Help needed installing MySQL DBI](https://www.ruby-forum.com/t/help-needed-installing-mysql-dbi/119863)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 10\
**Last updated:** [November 11, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/help-needed-installing-mysql-dbi/119863 "2007-11-11T22:32:42Z")

</div>

I’ve just downloaded the DBI for MySQL. I have Ruby installed on my Ubuntu system, but I don’t know how to install the DBI package. (I’m new to Linux) Can someone give me a step-by-step list on how to do it, includ…

---

## [DBI - error loading driver](https://www.ruby-forum.com/t/dbi-error-loading-driver/119879)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 2\
**Last updated:** [November 11, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/dbi-error-loading-driver/119879 "2007-11-11T21:06:54Z")

</div>

I installed the DBI package so that I could write Ruby scripts that access MySQL databases. When I attempt to run a test script, I get the following error: /usr/local/lib/site\_ruby/1.8/dbi.rb:344:in load\_driver': Cou…

---

## [Curl/Curb - Adding an on\_debug handler causes an exit code of "1"?](https://www.ruby-forum.com/t/curl-curb-adding-an-on-debug-handler-causes-an-exit-code-of-1/117579)

<div class="topic-metadata">

**Author:** [@Rob\_Foxworthington](https://www.ruby-forum.com/u/Rob_Foxworthington)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/curl-curb-adding-an-on-debug-handler-causes-an-exit-code-of-1/117579 "2007-11-11T19:39:25Z")

</div>

Using the very handy Curb from http://curb.rubyforge.org/… Maybe I’m doing something wrong, but it seems that the mere presence of an on\_debug handler causes the exit code of a script to be “1” instead of “0”. Unfort…

---

## [Ruby Going Full Throttle On CPU](https://www.ruby-forum.com/t/ruby-going-full-throttle-on-cpu/119875)

<div class="topic-metadata">

**Author:** [@Jacob\_Basham](https://www.ruby-forum.com/u/Jacob_Basham)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/ruby-going-full-throttle-on-cpu/119875 "2007-11-11T18:45:28Z")

</div>

I’m not sure if this is a Mongrel issue, a rails issue or just a ruby issue, I haven’t attempted to dig into it yet. What’s going on is a ruby process is going to town on the CPU using between 99% and 101% after I att…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/119874)

<div class="topic-metadata">

**Author:** [@Clif\_S](https://www.ruby-forum.com/u/Clif_S)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/no-subject/119874 "2007-11-11T18:43:07Z")

</div>

unsubscribe cjs

---

## [Ruby meeting 17.11.2007](https://www.ruby-forum.com/t/ruby-meeting-17-11-2007/119873)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/ruby-meeting-17-11-2007/119873 "2007-11-11T18:40:09Z")

</div>

Hello. I took liberty to post this information here, since i found it by accident, and mayby some other people from KrakÃ³w, Poland who read this list would like to attend: Zapraszamy na 5. spotkanie KRUG! Miejsc…

---

## [How to write a nice (complex) console app?](https://www.ruby-forum.com/t/how-to-write-a-nice-complex-console-app/119866)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 2\
**Last updated:** [November 11, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/how-to-write-a-nice-complex-console-app/119866 "2007-11-11T16:35:53Z")

</div>

Hi, how can I do a nice console interface? I wanna do something like this her: |Entry1 |Subitem1 of Entry1 | |Entry2 |Subitem2 of Entry1 | |Entry3 |Subitem3 of Entry1 | …

---

## [Ruby/Fastcgi going into uninterruptible after random periods of time](https://www.ruby-forum.com/t/ruby-fastcgi-going-into-uninterruptible-after-random-periods-of-time/119679)

<div class="topic-metadata">

**Author:** [@nate](https://www.ruby-forum.com/u/nate)\
**Replies:** 10\
**Last updated:** [November 11, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/ruby-fastcgi-going-into-uninterruptible-after-random-periods-of-time/119679 "2007-11-11T15:04:02Z")

</div>

Hello there - I manage some servers that run Ruby on Rails on top of Apache 2.0 and FastCGI. Been running them for a little over a year now, and recently upgraded OS/Ruby/FastCGI and have encountered an unexpected pro…

---

## [About const\_missing](https://www.ruby-forum.com/t/about-const-missing/119861)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 1:43pm UTC](https://www.ruby-forum.com/t/about-const-missing/119861 "2007-11-11T13:43:48Z")

</div>

Active Support has this code (edited for brevity): dependencies.rb ------------------------------------ class Module #:nodoc: def const\_missing(class\_id) Dependencies.load\_missing\_constant self, class\_id end end cl…

---

## [Current Quizmaster Retiring](https://www.ruby-forum.com/t/current-quizmaster-retiring/119722)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 27\
**Last updated:** [November 11, 2007, 9:39am UTC](https://www.ruby-forum.com/t/current-quizmaster-retiring/119722 "2007-11-11T09:39:12Z")

</div>

When I started the Ruby Q. project, I made some off-hand comment along the lines of, “Surely I can keep it going for a couple of years…” No matter how you measure, we have passed that goal. The Ruby Q. has now run fo…

---

## [Background process readling lines and responding](https://www.ruby-forum.com/t/background-process-readling-lines-and-responding/119708)

<div class="topic-metadata">

**Author:** [@braver](https://www.ruby-forum.com/u/braver)\
**Replies:** 3\
**Last updated:** [November 11, 2007, 9:09am UTC](https://www.ruby-forum.com/t/background-process-readling-lines-and-responding/119708 "2007-11-11T09:09:59Z")

</div>

Greetings – I’m debugging a way to call a command-line executable as a server. In normal life it behaves like grep, reading lines from stdin and printing responses to stdout. So I’m debugging the Ruby wrapper on gre…

---

## [Scan for Tokens](https://www.ruby-forum.com/t/scan-for-tokens/119830)

<div class="topic-metadata">

**Author:** [@raulparolari](https://www.ruby-forum.com/u/raulparolari)\
**Replies:** 2\
**Last updated:** [November 11, 2007, 7:27am UTC](https://www.ruby-forum.com/t/scan-for-tokens/119830 "2007-11-11T07:27:10Z")

</div>

I am looking for the best way to break an input string into individual tokens (I do not want to use a lexer library); I found some Ruby programs that do it by “nibbling” at the string, like this (for simplicity, the t…

---

## [Hi there.. :) please read this topic :)](https://www.ruby-forum.com/t/hi-there-please-read-this-topic/119842)

<div class="topic-metadata">

**Author:** [@kikmaskjer](https://www.ruby-forum.com/u/kikmaskjer)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 5:57am UTC](https://www.ruby-forum.com/t/hi-there-please-read-this-topic/119842 "2007-11-11T05:57:10Z")

</div>

Please visit this web page egames.lv i newer in my life seen version like this :o

---

## [Can OCI8 format RAW Oracle binary fields in hex](https://www.ruby-forum.com/t/can-oci8-format-raw-oracle-binary-fields-in-hex/119638)

<div class="topic-metadata">

**Author:** [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 4:53am UTC](https://www.ruby-forum.com/t/can-oci8-format-raw-oracle-binary-fields-in-hex/119638 "2007-11-11T04:53:31Z")

</div>

I’m using the OCI8 module to dump out Oracle tables. Some of the fields are defined as RAW and the dumped data is in binary format. Is there a way to have this dumped as HEX? I wouldn’t know which fields would be R…

---

## [Obtaining column type in OCI8](https://www.ruby-forum.com/t/obtaining-column-type-in-oci8/119555)

<div class="topic-metadata">

**Author:** [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 4:34am UTC](https://www.ruby-forum.com/t/obtaining-column-type-in-oci8/119555 "2007-11-11T04:34:49Z")

</div>

Using the OCI8 module, how does one obtain the type of a column in a table? For example, how do we know if a column is a VARCHAR or a NUMBER?

---

## [Have you contributed documentation to Ruby's std-lib?](https://www.ruby-forum.com/t/have-you-contributed-documentation-to-rubys-std-lib/119834)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 4:20am UTC](https://www.ruby-forum.com/t/have-you-contributed-documentation-to-rubys-std-lib/119834 "2007-11-11T04:20:47Z")

</div>

I’m trying to get the names of people who have been contributing rdoc content to Ruby’s standard library. If you have you contributed such documentation, please E-mail me off-list: removed\_email\_address@domain.invalid …

---

## [Date](https://www.ruby-forum.com/t/date/119831)

<div class="topic-metadata">

**Author:** [@superfly](https://www.ruby-forum.com/u/superfly)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 4:09am UTC](https://www.ruby-forum.com/t/date/119831 "2007-11-11T04:09:41Z")

</div>

Hello All! Hopefully you aren’t all getting annoyed with my really stupid, yet easy to answer questions. Anyway, I’m in need of a way to use the current date and format it in different ways, ways that I can use it wi…

---

## [REXML::Document parsing](https://www.ruby-forum.com/t/rexml-document-parsing/119820)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 2\
**Last updated:** [November 11, 2007, 1:38am UTC](https://www.ruby-forum.com/t/rexml-document-parsing/119820 "2007-11-11T01:38:27Z")

</div>

I’ve attached a file that REXML fails to parse correctly. I can’t see anything wrong with it. Could anyone else check and see if you get the same results or notice anything wrong with the file? I get random unclosed t…

---

## [Reports in Ruby](https://www.ruby-forum.com/t/reports-in-ruby/119825)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [November 11, 2007, 12:11am UTC](https://www.ruby-forum.com/t/reports-in-ruby/119825 "2007-11-11T00:11:49Z")

</div>

I looking for a Ruby library for generating reports that lets me specify grouping criteria for which I want custom headers and summaries (QReport and Crystal Reports come to mind) AFAIK Ruport doesn’t support summarie…

---

## [ANN: Sequel 0.3.4 Released](https://www.ruby-forum.com/t/ann-sequel-0-3-4-released/119773)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 12:05am UTC](https://www.ruby-forum.com/t/ann-sequel-0-3-4-released/119773 "2007-11-11T00:05:59Z")

</div>

Sequel version 0.3.4 has just been released. This release includes a major improvement to column references, as well as a few other minor bug fixes and improvements. Sequel is a lightweight ORM library for Ruby. Seque…

---

## [Creature module for the Dragon class](https://www.ruby-forum.com/t/creature-module-for-the-dragon-class/119681)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [November 10, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/creature-module-for-the-dragon-class/119681 "2007-11-10T23:56:02Z")

</div>

I could have “instance” variables in Creature, which Dragon objects can use? Dragon would have all the methods of the Creature module available, for instance attribute accessors? C:\\code\> C:\\code\> C:\\code\>type Crea…

---

## [Yaml error. dunno why](https://www.ruby-forum.com/t/yaml-error-dunno-why/119787)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 3\
**Last updated:** [November 10, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/yaml-error-dunno-why/119787 "2007-11-10T22:35:06Z")

</div>

i have a simple yml file and am trying to parse it. development: TWSDirectory: E:\\Jts\\dlqkjifys Second: E:\\Jts\\test\\ i get a error that i am not able to comprehend. pl help irb(main):020:0\> conf = YAML::load(File.op…

---

## [Looking for a Sudoku Algorithm to implement in Ruby](https://www.ruby-forum.com/t/looking-for-a-sudoku-algorithm-to-implement-in-ruby/119800)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 5\
**Last updated:** [November 10, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/looking-for-a-sudoku-algorithm-to-implement-in-ruby/119800 "2007-11-10T22:15:30Z")

</div>

Hey, Did anyone know of a Sudoku algorithm, which I can use to implement a Ruby solution? Although I can solve Sudoku without much difficulty, I can’t say the same when I try to write a Ruby program to solve Soduku…

---

## [Undefined local variable or method (filling an array)](https://www.ruby-forum.com/t/undefined-local-variable-or-method-filling-an-array/119755)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [November 10, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-filling-an-array/119755 "2007-11-10T22:00:45Z")

</div>

I’ve been working on this for quite some time and don’t understand the error: C:\\code\> C:\\code\>type monsters.rb require ‘Dragon’ require ‘ArrayOfCreaturesAttributes’ require ‘CreatureAttributes’ monsters\[0\]=ArrayO…

---

## [No such file to load --- fox 16](https://www.ruby-forum.com/t/no-such-file-to-load-fox-16/119744)

<div class="topic-metadata">

**Author:** [@Hari\_P](https://www.ruby-forum.com/u/Hari_P)\
**Replies:** 9\
**Last updated:** [November 10, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-fox-16/119744 "2007-11-10T21:06:53Z")

</div>

Hi, I downloaded FxRuby via gem. The both direcories , C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\fxruby-1.6.13-mswin32 C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\fxruby-1.6.13 exist in the correct location, but when I try to run it, I get …

---

## [Is Set#freeze broken?](https://www.ruby-forum.com/t/is-set-freeze-broken/119811)

<div class="topic-metadata">

**Author:** [@Vasyl\_S](https://www.ruby-forum.com/u/Vasyl_S)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/is-set-freeze-broken/119811 "2007-11-10T20:53:19Z")

</div>

I’ve tried to freeze a Set instance, and it turned out not working: irb(main):001:0\> require ‘set’ =\> true irb(main):002:0\> x = Set.new \[“a”, “b”, “c”\] =\> #\<Set: {“a”, “b”, “c”}\> irb(main):003:0\> x =\> #\<Set: {“a”, …

---

## [REXML parsing issue](https://www.ruby-forum.com/t/rexml-parsing-issue/119790)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 3\
**Last updated:** [November 10, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/rexml-parsing-issue/119790 "2007-11-10T20:37:28Z")

</div>

Disclaimer: I’m new to programming and ruby. I’ve used REXML to write both tree and stream parsers for simple xml files but I can’t seem to return values for the xml below in either case: Sample Text In this exa…

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

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