# Ruby

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

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

---

## [Log4r](https://www.ruby-forum.com/t/log4r/100867)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 2\
**Last updated:** [August 1, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/log4r/100867 "2006-08-01T20:57:06Z")

</div>

The following code is throwing errors below. It looks like the wrong module is getting referenced. The constructor for c:\\ruby\\lib\\ruby\\1.8\\Logger.rb takes 3-arguments. Seems to be some confusion here. Can someone poi…

---

## [Ucs-2](https://www.ruby-forum.com/t/ucs-2/100780)

<div class="topic-metadata">

**Author:** [@nexflo](https://www.ruby-forum.com/u/nexflo)\
**Replies:** 4\
**Last updated:** [August 1, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/ucs-2/100780 "2006-08-01T20:33:11Z")

</div>

Hi! Is there any way to decode a UCS-2 string with ruby? Thanks! Ciao! Florian

---

## [Enumerable](https://www.ruby-forum.com/t/enumerable/100866)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [August 1, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/enumerable/100866 "2006-08-01T18:22:34Z")

</div>

Am new to Ruby and have the folloiwng Question. I have a class, say Collect, and I want to mixin Enumerable. How do I write the each method in Collect? class Collect include Enumerable def initialize() @array = Arr…

---

## [XMLBuilder: no such file to load -- builder](https://www.ruby-forum.com/t/xmlbuilder-no-such-file-to-load-builder/100854)

<div class="topic-metadata">

**Author:** [@matterker](https://www.ruby-forum.com/u/matterker)\
**Replies:** 6\
**Last updated:** [August 1, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/xmlbuilder-no-such-file-to-load-builder/100854 "2006-08-01T17:21:16Z")

</div>

I’m trying to use the XML builder package, but the require is not working. I have a hunch that I don’t have all the requisite dependencies installed, but what, I can’t figure out. Note, I’m a Ruby newbie. I’ve tried…

---

## [ActiveRecord: find\_or\_create with has\_and\_belongs\_to\_many --](https://www.ruby-forum.com/t/activerecord-find-or-create-with-has-and-belongs-to-many/100858)

<div class="topic-metadata">

**Author:** [@Red\_Daly](https://www.ruby-forum.com/u/Red_Daly)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/activerecord-find-or-create-with-has-and-belongs-to-many/100858 "2006-08-01T16:35:23Z")

</div>

I am attempting to use find\_or\_create on a foreign table with a has\_and\_belongs\_to\_many relationship with my current table. I am doing the following: term = school.terms.find\_or\_create\_by\_code(“FALL06”) the queries …

---

## [Detecting similar strings](https://www.ruby-forum.com/t/detecting-similar-strings/100811)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 9\
**Last updated:** [August 1, 2006, 4:06pm UTC](https://www.ruby-forum.com/t/detecting-similar-strings/100811 "2006-08-01T16:06:35Z")

</div>

Is there a way to take two strings, and decide if they are “similar.” I’m creating a contact system in Rails, and am having a large problem with my users punching in duplicate entries with the last names spelled sligh…

---

## [Default shell for Kernel::system()?](https://www.ruby-forum.com/t/default-shell-for-kernel-system/100820)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 2\
**Last updated:** [August 1, 2006, 3:49pm UTC](https://www.ruby-forum.com/t/default-shell-for-kernel-system/100820 "2006-08-01T15:49:21Z")

</div>

Ist it possible to kind of define a default shell which will be used for Kernel::system? I often need to invoke from my Ruby scripts external commands, involving redirection and globbing, for example (bash syntax) fo…

---

## [Does WideStudio require a special ruby build?](https://www.ruby-forum.com/t/does-widestudio-require-a-special-ruby-build/100523)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [August 1, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/does-widestudio-require-a-special-ruby-build/100523 "2006-08-01T15:33:02Z")

</div>

I installed the latest version of Ruby and WideStudio (Ruby 1.8.4 and WideStudio 3.94-1). I also installed the Ruby that came with WideStudio (Ruby 1.8.0). So now I have two versions of Ruby and only the one that came…

---

## [\[ANN\] Nitro/Og 0.31.0](https://www.ruby-forum.com/t/ann-nitro-og-0-31-0/99585)

<div class="topic-metadata">

**Author:** [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Replies:** 24\
**Last updated:** [August 1, 2006, 2:35pm UTC](https://www.ruby-forum.com/t/ann-nitro-og-0-31-0/99585 "2006-08-01T14:35:45Z")

</div>

(forwarding from nitro’s list) Nitro version 0.31 is a maintenance release, mostly aimed at fixing small things in 0.30 release. The release is mostly due to the great work of Bryan Soto at integrating patches from t…

---

## [Class is converting fixnum to array!?!](https://www.ruby-forum.com/t/class-is-converting-fixnum-to-array/100832)

<div class="topic-metadata">

**Author:** [@stuartbrand](https://www.ruby-forum.com/u/stuartbrand)\
**Replies:** 5\
**Last updated:** [August 1, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/class-is-converting-fixnum-to-array/100832 "2006-08-01T14:24:30Z")

</div>

Hi all I have made a class to return a value of either 1 or 0 depending on conditions, however once it returns the fixnum is converted to an Array? user = 0 puts user.class # -\> fixnum user = My\_class.test(name) pu…

---

## [Weird elusive bug using Comparable](https://www.ruby-forum.com/t/weird-elusive-bug-using-comparable/100711)

<div class="topic-metadata">

**Author:** [@Pedro\_CSSSSrte-Real](https://www.ruby-forum.com/u/Pedro_CSSSSrte-Real)\
**Replies:** 10\
**Last updated:** [August 1, 2006, 1:48pm UTC](https://www.ruby-forum.com/t/weird-elusive-bug-using-comparable/100711 "2006-08-01T13:48:52Z")

</div>

I have this class: class SimpleDate include Comparable VALS = \[:year, :month, :day\] attr\_accessor \*VALS def initialize(year, month, day) @year = year @month = month @day = day end #ideas on making this much sho…

---

## [State of unicode support](https://www.ruby-forum.com/t/state-of-unicode-support/100368)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 22\
**Last updated:** [August 1, 2006, 1:45pm UTC](https://www.ruby-forum.com/t/state-of-unicode-support/100368 "2006-08-01T13:45:21Z")

</div>

I’ve heard rumors that “oniguruma fixes everything”, and the like. I’m sure that’s a touch of hyperbole, but in any case: What’s the current state of Unicode support in Ruby? My recollection is of Unicode support so…

---

## [Re: Detecting similar strings](https://www.ruby-forum.com/t/re-detecting-similar-strings/100824)

<div class="topic-metadata">

**Author:** [@kivle](https://www.ruby-forum.com/u/kivle)\
**Replies:** 0\
**Last updated:** [August 1, 2006, 12:08pm UTC](https://www.ruby-forum.com/t/re-detecting-similar-strings/100824 "2006-08-01T12:08:54Z")

</div>

This should point you in the right direction I think: http://raa.ruby-lang.org/project/levenshtein/ http://raa.ruby-lang.org/project/soundex/ http://raa.ruby-lang.org/project/metaphone/ The levenshtein algorithm basi…

---

## [Re: Mini quiz (Was: Detecting similar strings)](https://www.ruby-forum.com/t/re-mini-quiz-was-detecting-similar-strings/100817)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 10:45am UTC](https://www.ruby-forum.com/t/re-mini-quiz-was-detecting-similar-strings/100817 "2006-08-01T10:45:56Z")

</div>

You know, there are lots of implementations \[of the Levenstein distance\] there, but the \>Ruby one seems to be missing :slight\_smile: That’s not true: there is one in Hal F.'s book “the Ruby Way” - it’s available …

---

## [RSS Guid Field](https://www.ruby-forum.com/t/rss-guid-field/100255)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [August 1, 2006, 5:32am UTC](https://www.ruby-forum.com/t/rss-guid-field/100255 "2006-08-01T05:32:15Z")

</div>

Can anyone give me a hint on the syntax for adding a guid field while using RSS::Maker? I’ve found a way to add it with a regular expression, but I cannot seem to figure out the interface to do it properly. James Ed…

---

## [Ruby hangs when executing a another program](https://www.ruby-forum.com/t/ruby-hangs-when-executing-a-another-program/100751)

<div class="topic-metadata">

**Author:** [@Christopher\_Rasch](https://www.ruby-forum.com/u/Christopher_Rasch)\
**Replies:** 2\
**Last updated:** [August 1, 2006, 5:25am UTC](https://www.ruby-forum.com/t/ruby-hangs-when-executing-a-another-program/100751 "2006-08-01T05:25:33Z")

</div>

If I run the following command on the command line, it executes without difficulty: crasch$ ssh -l root localhost /Library/FrontBase/bin/FBExec & \[1\] 4340 crasch$ ps -aux | grep ‘FBExec’ root 4344 0.0 -0.0 …

---

## [Check if 2 objects are equal](https://www.ruby-forum.com/t/check-if-2-objects-are-equal/100793)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 1, 2006, 5:22am UTC](https://www.ruby-forum.com/t/check-if-2-objects-are-equal/100793 "2006-08-01T05:22:23Z")

</div>

Hi I havea a class with this structure. how do i check if 2 objects instanialted from this class are equal. they could be separate instantialtion but have exactly the same values? class SymbolObject def initialize(s…

---

## [Hpricot question](https://www.ruby-forum.com/t/hpricot-question/100706)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 1\
**Last updated:** [August 1, 2006, 4:43am UTC](https://www.ruby-forum.com/t/hpricot-question/100706 "2006-08-01T04:43:32Z")

</div>

I’m trying to use Hpricot to clean up the text in a big site full of old-style HTML. I’m just trying to do things like replacing literal quote characters with and . I’m hampered by the fact that my understanding of t…

---

## [What method should a class provide for printf's %c format st](https://www.ruby-forum.com/t/what-method-should-a-class-provide-for-printfs-c-format-st/100486)

<div class="topic-metadata">

**Author:** [@Gerald](https://www.ruby-forum.com/u/Gerald)\
**Replies:** 3\
**Last updated:** [August 1, 2006, 3:45am UTC](https://www.ruby-forum.com/t/what-method-should-a-class-provide-for-printfs-c-format-st/100486 "2006-08-01T03:45:14Z")

</div>

Consider the following snippet: #!/usr/bin/ruby class Thing def initialize(name) @name = name end def to\_s @name end def to\_i @name.length end end a = B…

---

## [Array#permutate](https://www.ruby-forum.com/t/array-permutate/100628)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 2\
**Last updated:** [August 1, 2006, 3:38am UTC](https://www.ruby-forum.com/t/array-permutate/100628 "2006-08-01T03:38:37Z")

</div>

Hello, this is my handmade Array#permutate function are there any alternatives (maybe C extension modules)? especially are there functions that would not create all permutations and return them as one single memory c…

---

## [Still looking for a Ruby MUD client?](https://www.ruby-forum.com/t/still-looking-for-a-ruby-mud-client/99707)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 3\
**Last updated:** [August 1, 2006, 3:17am UTC](https://www.ruby-forum.com/t/still-looking-for-a-ruby-mud-client/99707 "2006-08-01T03:17:07Z")

</div>

Look no further! For the longest time, I was searching for a pure-Ruby mud client. I even found a few which threatened to let me do Ruby scripting, but nothing paid off. Until last weekend, when Martin K. emailed m…

---

## [Environment variables with empty value missing from ENV?](https://www.ruby-forum.com/t/environment-variables-with-empty-value-missing-from-env/100659)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 11\
**Last updated:** [August 1, 2006, 1:08am UTC](https://www.ruby-forum.com/t/environment-variables-with-empty-value-missing-from-env/100659 "2006-08-01T01:08:52Z")

</div>

Under Windows XP (using cygwin’s bash, but native Ruby), I found the following six-legged feature: $ ruby -v ruby 1.8.2 (2004-12-25) \[i386-mswin32\] $ unset FOO; env|grep FOO; ruby -e ‘p ENV\[“FOO”\]’ nil $ FOO= env |…

---

## [Mysterious conf in irb](https://www.ruby-forum.com/t/mysterious-conf-in-irb/100750)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 2\
**Last updated:** [August 1, 2006, 1:05am UTC](https://www.ruby-forum.com/t/mysterious-conf-in-irb/100750 "2006-08-01T01:05:13Z")

</div>

when you run irb and type: require ‘config’ conf a huge amount of information prints out on the screen (at least on the windows 1.8.2 one-click installer irb) what kind of container is it where does it come from…

---

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

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [August 1, 2006, 12:39am UTC](https://www.ruby-forum.com/t/ruby-forum/100778 "2006-08-01T00:39:26Z")

</div>

Hi! Can anyone recommend good forum software written in Ruby? I need something that’s fairly mature (stable), quick and easily customisable. I’ve looked around and there seem to be a few programs available, but most…

---

## [More info on RubyConf 2006 registration](https://www.ruby-forum.com/t/more-info-on-rubyconf-2006-registration/100677)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 31, 2006, 11:55pm UTC](https://www.ruby-forum.com/t/more-info-on-rubyconf-2006-registration/100677 "2006-07-31T23:55:48Z")

</div>

Hi – Registration for RubyConf 2006 is still scheduled to open on August 2, in the early evening Pacific (US West Coast) time. Also, there’s more info at http://www.rubycentral.org/conference (e.g., the fact that thi…

---

## [\#88 Chip-8](https://www.ruby-forum.com/t/88-chip-8/100601)

<div class="topic-metadata">

**Author:** [@tomrobinson](https://www.ruby-forum.com/u/tomrobinson)\
**Replies:** 4\
**Last updated:** [July 31, 2006, 11:05pm UTC](https://www.ruby-forum.com/t/88-chip-8/100601 "2006-07-31T23:05:50Z")

</div>

Hi, Here is my solution to the current quiz. It has a few flaws, and it uses a method call for each statement (which is probably quite slow). The nice thing is that you can dump a program and view it in an assembler-…

---

## [Ruby Reports 0.4.19 Released](https://www.ruby-forum.com/t/ruby-reports-0-4-19-released/100604)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 6\
**Last updated:** [July 31, 2006, 10:11pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-19-released/100604 "2006-07-31T22:11:45Z")

</div>

Hi folks, I’m happy to announce the 7th Summer of Code release of Ruport. = Ruby Reports 0.4.19 : The “Robber Baron” Edition = == What is Ruport? == Ruby Reports is a library and soon-to-be framework for doing busine…

---

## [Chip-8 (#88)](https://www.ruby-forum.com/t/chip-8-88/100407)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 18\
**Last updated:** [July 31, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/chip-8-88/100407 "2006-07-31T21:45:31Z")

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

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/124799)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [July 31, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/124799 "2006-07-31T21:41:53Z")

</div>

Begin forwarded message:

---

## [Does Ruby need a "line separator" class?](https://www.ruby-forum.com/t/does-ruby-need-a-line-separator-class/100714)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 14\
**Last updated:** [July 31, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/does-ruby-need-a-line-separator-class/100714 "2006-07-31T21:22:04Z")

</div>

I’ve run into a problem where Ruby can’t handle newlines on Windows because the regexp is explicitly looking for \\n and not \\r\\n. In the Java world, there is a system property to represent line separator so that you c…

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

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