# Ruby

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

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

---

## [Newbie problem with modifying array correctly](https://www.ruby-forum.com/t/newbie-problem-with-modifying-array-correctly/84930)

<div class="topic-metadata">

**Author:** [@kreatix](https://www.ruby-forum.com/u/kreatix)\
**Replies:** 2\
**Last updated:** [February 8, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/newbie-problem-with-modifying-array-correctly/84930 "2007-02-08T22:31:00Z")

</div>

Hello, I have an array with subarrays containing integers, and want to make sure that the distance between any two numbers next to each other is equal to or less than 7, also from one subarray to the next. Rigth now I …

---

## [Hash#rekey](https://www.ruby-forum.com/t/hash-rekey/84364)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 18\
**Last updated:** [February 8, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/hash-rekey/84364 "2007-02-08T22:19:15Z")

</div>

There are a few facets (ie. extensions) I find myself using often. One of these is Hash#rekey. I used to use other methods like those found in the Gavin’s Extensions project and DHH’s ActiveSupport, eg. #convert\_keys,…

---

## [Fwd: Meeting: 13 February 5:00 pm](https://www.ruby-forum.com/t/fwd-meeting-13-february-5-00-pm/84969)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/fwd-meeting-13-february-5-00-pm/84969 "2007-02-08T22:18:15Z")

</div>

If you’re a rubyist in the Utah Valley area, or are willing to show up for a meeting in Utah Valley, this message might be for you. ---------- Forwarded message ---------- From: Devlin D. removed\_email\_address@domain.…

---

## [Rubyscript2exe.rb issue](https://www.ruby-forum.com/t/rubyscript2exe-rb-issue/84916)

<div class="topic-metadata">

**Author:** [@vinod](https://www.ruby-forum.com/u/vinod)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-rb-issue/84916 "2007-02-08T21:22:07Z")

</div>

I have created some script which runs fine when i ran it from the command promt ruby file.rb. but when i conver it to exe using rubyscript2exe & tried to ran the exe it gave me following error I didnt find WINDOWS-12…

---

## [String Equations (#112)](https://www.ruby-forum.com/t/string-equations-112/84956)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/string-equations-112/84956 "2007-02-08T21:10:05Z")

</div>

This quiz is much more difficult than it looks. There are an infinite number of combinations, even for small word sets, because each term can be repeated. To handle this, most brave souls who solved the quiz used so…

---

## [Survey about Architecture and Design Patterns](https://www.ruby-forum.com/t/survey-about-architecture-and-design-patterns/84949)

<div class="topic-metadata">

**Author:** [@Joerg\_Rech](https://www.ruby-forum.com/u/Joerg_Rech)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/survey-about-architecture-and-design-patterns/84949 "2007-02-08T20:31:00Z")

</div>

Dear software practitioners, consultants, and researchers, we are currently conducting an international survey about architecture and design patterns. Our goal is to discover how familiar people are with these pattern…

---

## [Negative Float conversion to Fixnum](https://www.ruby-forum.com/t/negative-float-conversion-to-fixnum/82704)

<div class="topic-metadata">

**Author:** [@Drew\_R](https://www.ruby-forum.com/u/Drew_R)\
**Replies:** 9\
**Last updated:** [February 8, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/negative-float-conversion-to-fixnum/82704 "2007-02-08T19:50:54Z")

</div>

I’m sure this has been hashed out somewhere on the list before, but my searches have turned up fruitless. I had a strange issue come up while diagnosing a unit test failure. Notice the first dialog compared with the …

---

## [Accessing helper module constants in rspec contexts](https://www.ruby-forum.com/t/accessing-helper-module-constants-in-rspec-contexts/84842)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 3\
**Last updated:** [February 8, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/accessing-helper-module-constants-in-rspec-contexts/84842 "2007-02-08T19:40:53Z")

</div>

I’m trying to learn rspec, and came across something unexpected with the following code. A little googling hasn’t turned any answers up so far… module TestHelper CONSTANT = “constant” end context “A context” do in…

---

## [Library for constructing terminal emulator interface](https://www.ruby-forum.com/t/library-for-constructing-terminal-emulator-interface/84936)

<div class="topic-metadata">

**Author:** [@Spam\_BSWare](https://www.ruby-forum.com/u/Spam_BSWare)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/library-for-constructing-terminal-emulator-interface/84936 "2007-02-08T19:08:50Z")

</div>

Hi all: Absolute know-nothing newbie here; please pardon my ignorance of everything. I’m looking to write a database interface that will run on any platform in a character-based terminal emulator environment. What …

---

## [Ruby on Rails Professional](https://www.ruby-forum.com/t/ruby-on-rails-professional/84931)

<div class="topic-metadata">

**Author:** [@nikhiljohn](https://www.ruby-forum.com/u/nikhiljohn)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-professional/84931 "2007-02-08T18:52:48Z")

</div>

We are looking for ruby on rails professionals to work with us. We are setup at Ann Arbor, Michigan. I’ll give you a brief of the requirement :- Were looking for :- Two years experience - Ruby on rails The requireme…

---

## [Patterns of semantic contradictions?](https://www.ruby-forum.com/t/patterns-of-semantic-contradictions/84824)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 3\
**Last updated:** [February 8, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/patterns-of-semantic-contradictions/84824 "2007-02-08T18:36:35Z")

</div>

Hi list I just could not resist to post a stupid remark - which was taken very gracefully ty :wink: - to a thread where somebody corrected his typo with the well known sub idiom, only that he did something like “abc…

---

## [Gtk2 on windows](https://www.ruby-forum.com/t/gtk2-on-windows/84926)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/gtk2-on-windows/84926 "2007-02-08T18:21:45Z")

</div>

For anyone else who wants to play around with the examples in the gtk2 section of The Ruby Way, but ran into some issues, here’s the info you might need. I found this page, and followed the directions: http://ruby-g…

---

## [System (cmd) on windows](https://www.ruby-forum.com/t/system-cmd-on-windows/84911)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/system-cmd-on-windows/84911 "2007-02-08T17:02:35Z")

</div>

Hi, two questions : system(“T:/cvsnt/cvs.exe”, “-d :pserver:username@cvshost:d:/cvsrepos/test co Foobar”) doesn’t work, whereas system(“T:/cvsnt/cvs.exe -d :pserver:username@cvshost:d:/cvsrepos/test co Foobar”) …

---

## [DRY or not](https://www.ruby-forum.com/t/dry-or-not/84888)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 5\
**Last updated:** [February 8, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/dry-or-not/84888 "2007-02-08T16:11:29Z")

</div>

as a new(ru)bie I always wonder when trying to DRY such code is good or not and why it should be (I don’t like a lot the if… else… elsif… but sometimes it seems better for readiness… vs performances (less code…) If…

---

## [Fetching objects used as hash keys](https://www.ruby-forum.com/t/fetching-objects-used-as-hash-keys/84659)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 2\
**Last updated:** [February 8, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/fetching-objects-used-as-hash-keys/84659 "2007-02-08T16:07:28Z")

</div>

Hello I’m using objects which are instances of a class that has 3 instance variables as hash keys, but I’m using the value of only two of those instance variables for the hash calculation. It’s something like this: c…

---

## [Can I rescue Errno::ECONNREFUSED?](https://www.ruby-forum.com/t/can-i-rescue-errno-econnrefused/84894)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/can-i-rescue-errno-econnrefused/84894 "2007-02-08T16:04:27Z")

</div>

Hi there, I’m trying to put a little robustness into a Rinda::Tuplespace setup, and I’ve run into a slight snag. Here’s some example client code to show the problem: require ‘rinda/tuplespace’ class Producer def in…

---

## [Newbie question](https://www.ruby-forum.com/t/newbie-question/84710)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 4\
**Last updated:** [February 8, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/newbie-question/84710 "2007-02-08T15:46:25Z")

</div>

I am very new to programming “infant new” and I have a question about a return I am scratching my head over in a simple program I am writing here is my code… shouldn’t the return of my method be “true” after pressing…

---

## [Threads and external methods](https://www.ruby-forum.com/t/threads-and-external-methods/84693)

<div class="topic-metadata">

**Author:** [@wonderdog](https://www.ruby-forum.com/u/wonderdog)\
**Replies:** 2\
**Last updated:** [February 8, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/threads-and-external-methods/84693 "2007-02-08T15:45:25Z")

</div>

If I have require’d a module and call a method within that module from within a thread, do all the variables within that external module need to be made thread safe? test.rb ==\> require ‘mod’ threads = \[\] (1…20).ea…

---

## [Spreadsheet-excel-0.3.5.1](https://www.ruby-forum.com/t/spreadsheet-excel-0-3-5-1/84903)

<div class="topic-metadata">

**Author:** [@spreadsheet](https://www.ruby-forum.com/u/spreadsheet)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/spreadsheet-excel-0-3-5-1/84903 "2007-02-08T15:37:24Z")

</div>

Hi all, This is a highly recommended release for all rubygem-installations of Spreadsheet::Excel. It fixes a critical bug reported by Kirk H… If you downladed and installed the tarball of 0.3.5 you’re fine: == What i…

---

## [Define\_method and alias\_method is not relevant to class\_eval](https://www.ruby-forum.com/t/define-method-and-alias-method-is-not-relevant-to-class-eval/84612)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/define-method-and-alias-method-is-not-relevant-to-class-eval/84612 "2007-02-08T15:35:24Z")

</div>

Hi. I have a question on the semantics of define\_method and alias\_method. Let me start with class\_eval and instance\_eval. Following is the excerpt from ri class\_eval and ri instance\_eval: Module.class\_eval Evaluat…

---

## [Beginner questions: sorting csv files](https://www.ruby-forum.com/t/beginner-questions-sorting-csv-files/84240)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 16\
**Last updated:** [February 8, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/beginner-questions-sorting-csv-files/84240 "2007-02-08T15:20:23Z")

</div>

Hello, I am a newbie with Ruby and I had a couple of questions while manipulating csv files. How would I do a multiple column sort? I have a file that needs to be sorted by the 3rd column, then 1st, then second. I …

---

## [Get username on windows](https://www.ruby-forum.com/t/get-username-on-windows/84897)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/get-username-on-windows/84897 "2007-02-08T14:39:42Z")

</div>

Hi, how to access the username on windows, the same as Systemproperty user.name in java ? Regards, Gilbert

---

## [Ruby Newbie Advice](https://www.ruby-forum.com/t/ruby-newbie-advice/84576)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 39\
**Last updated:** [February 8, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/ruby-newbie-advice/84576 "2007-02-08T14:08:15Z")

</div>

Hello all. I’ve decided after about a week or so of being on the list to come out of hiding and ask a couple of questions. My email addy of rubygeekgirl is not a reality, but more of an aspiration. :slight\_smile: R…

---

## [Access to constants from instance\_eval](https://www.ruby-forum.com/t/access-to-constants-from-instance-eval/84886)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [February 8, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/access-to-constants-from-instance-eval/84886 "2007-02-08T14:08:15Z")

</div>

Hi all, It seems that Ruby won’t allow me to directly access class constants from instance\_eval: irb(main):001:0\> class Foo irb(main):002:1\> BAR = “bar” irb(main):003:1\> def bar irb(main):004:2\> BAR irb(ma…

---

## [Method to get (Linux) user home path](https://www.ruby-forum.com/t/method-to-get-linux-user-home-path/84866)

<div class="topic-metadata">

**Author:** [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Replies:** 5\
**Last updated:** [February 8, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/method-to-get-linux-user-home-path/84866 "2007-02-08T13:44:13Z")

</div>

Hi, i am trying to create a file in ~/.myopts/myopts.yaml but, no go. Trying using $HOME/.myopts/myopts.yaml does not work either. Only specifying manually /home/me/.myopts/myopts.yaml but that is no solution. Is th…

---

## [Rubygem install "Invalid argument - sources-0.0.1.gem"](https://www.ruby-forum.com/t/rubygem-install-invalid-argument-sources-0-0-1-gem/83478)

<div class="topic-metadata">

**Author:** [@eboss](https://www.ruby-forum.com/u/eboss)\
**Replies:** 15\
**Last updated:** [February 8, 2007, 11:50am UTC](https://www.ruby-forum.com/t/rubygem-install-invalid-argument-sources-0-0-1-gem/83478 "2007-02-08T11:50:08Z")

</div>

Hi, This morning, I wanted to upgrade my rubygems install : 0.9.0 -\> 0.9.1 I’ve launched “ruby setup.rb” as root and got that at the end : hook /var/www/rubygems-0.9.1/./post-install.rb failed: Invalid argument - sou…

---

## [How to get a character for ANSI value](https://www.ruby-forum.com/t/how-to-get-a-character-for-ansi-value/84873)

<div class="topic-metadata">

**Author:** [@santoshat20007](https://www.ruby-forum.com/u/santoshat20007)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 11:20am UTC](https://www.ruby-forum.com/t/how-to-get-a-character-for-ansi-value/84873 "2007-02-08T11:20:55Z")

</div>

Hello, How to get a character for ANSI value.

---

## [Re: TupleSpace performance (TupleBag really)](https://www.ruby-forum.com/t/re-tuplespace-performance-tuplebag-really/84874)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 0\
**Last updated:** [February 8, 2007, 10:32am UTC](https://www.ruby-forum.com/t/re-tuplespace-performance-tuplebag-really/84874 "2007-02-08T10:32:49Z")

</div>

Eric H. wrote: restarted. We’ve been trying to come up with a better implementation of TupleBag but have not had much luck so far. Has anyone else done this? I’ve heard a few people talk of it (mainly, TupleSpac…

---

## [Web scraping article, episode 1](https://www.ruby-forum.com/t/web-scraping-article-episode-1/84560)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 4\
**Last updated:** [February 8, 2007, 9:12am UTC](https://www.ruby-forum.com/t/web-scraping-article-episode-1/84560 "2007-02-08T09:12:36Z")

</div>

Hi all, Once upon the time I wrote a silly little article on web scraping with Ruby: http://www.rubyrailways.com/data-extraction-for-web-20-screen-scraping-in-rubyrails The article got very popular somehow, so I have…

---

## [Masters Thesis on Ruby](https://www.ruby-forum.com/t/masters-thesis-on-ruby/84584)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 5\
**Last updated:** [February 8, 2007, 8:18am UTC](https://www.ruby-forum.com/t/masters-thesis-on-ruby/84584 "2007-02-08T08:18:29Z")

</div>

Dear Ruby community, Last week, I submitted by Masters Thesis\[1\] on – to summarize greatly – using Ruby to bring agile software development practices like TDD and BDD to the cold, dark realm of hardware development. I…

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

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