# Ruby

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

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

---

## [Helo on optparse](https://www.ruby-forum.com/t/helo-on-optparse/166543)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 11\
**Last updated:** [May 2, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/helo-on-optparse/166543 "2009-05-02T12:55:38Z")

</div>

hi i m using optparse. in that for copying i have implemented like below opts.on(’-r’, ‘–recursive RECURSIVE’, “specify for recursive copy” ) do | r| options.recursive = true end opts.on(’-o’, ‘–overwrite OVERWRITE…

---

## [Read and re-write file with one open?](https://www.ruby-forum.com/t/read-and-re-write-file-with-one-open/166850)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 18\
**Last updated:** [May 2, 2009, 10:29am UTC](https://www.ruby-forum.com/t/read-and-re-write-file-with-one-open/166850 "2009-05-02T10:29:13Z")

</div>

I would like to write a Ruby script that opens a text file, performs a gsub on each line, and then overwrites the file with the updated contents. Right now I open the file twice: once to read and once to write. The …

---

## [Rubyscript2exe TK tile problem](https://www.ruby-forum.com/t/rubyscript2exe-tk-tile-problem/167020)

<div class="topic-metadata">

**Author:** [@emersonf](https://www.ruby-forum.com/u/emersonf)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 9:36am UTC](https://www.ruby-forum.com/t/rubyscript2exe-tk-tile-problem/167020 "2009-05-02T09:36:24Z")

</div>

I have successfully used rubyscript2exe for some TK applications, but I have not yet had any luck creating a TK app that uses “tile.” I’m using Ruby 1.8.6 with ActiveTCL 8.4.13.O. tile075.dll. No difficulties runnin…

---

## [\[Bug #1429\] An arbitrary number of arguments of SortedSet#initialize](https://www.ruby-forum.com/t/bug-1429-an-arbitrary-number-of-arguments-of-sortedset-initialize/167017)

<div class="topic-metadata">

**Author:** [@ujihisa\_S](https://www.ruby-forum.com/u/ujihisa_S)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 4:55am UTC](https://www.ruby-forum.com/t/bug-1429-an-arbitrary-number-of-arguments-of-sortedset-initialize/167017 "2009-05-02T04:55:10Z")

</div>

Bug #1429: An arbitrary number of arguments of SortedSet#initialize http://redmine.ruby-lang.org/issues/show/1429 e$B5/I\<\<Te(B: ujihisa . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-05-0…

---

## [\[Bug #1427\] Difference between Array#to\_s and Array#inspect](https://www.ruby-forum.com/t/bug-1427-difference-between-array-to-s-and-array-inspect/166975)

<div class="topic-metadata">

**Author:** [@ujihisa\_S](https://www.ruby-forum.com/u/ujihisa_S)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 2:28am UTC](https://www.ruby-forum.com/t/bug-1427-difference-between-array-to-s-and-array-inspect/166975 "2009-05-02T02:28:17Z")

</div>

Bug #1427: Difference between Array#to\_s and Array#inspect http://redmine.ruby-lang.org/issues/show/1427 e$B5/I\<\<Te(B: ujihisa . e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: core, Target version: 1.9.2 …

---

## [Mechanize: 404 =\> Net::HTTPNotFound](https://www.ruby-forum.com/t/mechanize-404-net-httpnotfound/167016)

<div class="topic-metadata">

**Author:** [@quickshotjoe](https://www.ruby-forum.com/u/quickshotjoe)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 12:44am UTC](https://www.ruby-forum.com/t/mechanize-404-net-httpnotfound/167016 "2009-05-02T00:44:49Z")

</div>

Hi all, I’m able to use this script to enter my username and password, click a link and get to the page i need, but when I click the checkbox that I need and try to submit the page, I get this message: httpNotFound. I…

---

## [Code Review: NewInterpreterAndRubyCF](https://www.ruby-forum.com/t/code-review-newinterpreterandrubycf/167011)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/code-review-newinterpreterandrubycf/167011 "2009-05-01T23:05:53Z")

</div>

Fixes bugs in the new interpreter and implements more features to support IronRuby. Control flow a) Branches One of the most complicated cases is: { f(1, 2, try { g(3, 4, try { goto L } finally { … }, 6) …

---

## [JRuby 1.3.0RC1 Released](https://www.ruby-forum.com/t/jruby-1-3-0rc1-released/167005)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0rc1-released/167005 "2009-05-01T22:42:16Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.3.0RC1 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.3.0RC1 is a release to fix some issues which prevented JRuby …

---

## [\[ANN\] JRuby 1.3.0RC1 Released](https://www.ruby-forum.com/t/ann-jruby-1-3-0rc1-released/167006)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:36pm UTC](https://www.ruby-forum.com/t/ann-jruby-1-3-0rc1-released/167006 "2009-05-01T22:36:24Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.3.0RC1 Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.3.0RC1 is a release to fix some issues which prevented JRuby …

---

## [Ruby Interpreter not running scripts](https://www.ruby-forum.com/t/ruby-interpreter-not-running-scripts/167003)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/ruby-interpreter-not-running-scripts/167003 "2009-05-01T22:26:43Z")

</div>

Hi Have you had this happen to you? I have installed ruby and added all gems. However, when I try to run any script just be double clicking the file, the file opens with scite and doesnt run. I tried to change it to …

---

## [Netbeans 6.5.1. and warbler fails to create rake tasks](https://www.ruby-forum.com/t/netbeans-6-5-1-and-warbler-fails-to-create-rake-tasks/166714)

<div class="topic-metadata">

**Author:** [@juliany](https://www.ruby-forum.com/u/juliany)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/netbeans-6-5-1-and-warbler-fails-to-create-rake-tasks/166714 "2009-05-01T22:16:13Z")

</div>

When ever i create a new netbeans jruby project and include war rake targets i get the following error; rake aborted! Command failed with status (127): \["/Applications/NetBeans/NetBeans 6.5.1.app…\] /Applications/Net…

---

## [Strange Gem Problems](https://www.ruby-forum.com/t/strange-gem-problems/166932)

<div class="topic-metadata">

**Author:** [@requisition](https://www.ruby-forum.com/u/requisition)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/strange-gem-problems/166932 "2009-05-01T20:24:35Z")

</div>

Hey all, I’m trying to add to install the program Bangkok as a gem, but every time I try I get this error. sudo gem install bangkok /usr/local/lib/ruby/site\_ruby/1.9.1/rubygems/package.rb:10:in require': no such file…

---

## [Rubymacros 0.1.2 Released](https://www.ruby-forum.com/t/rubymacros-0-1-2-released/166989)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/rubymacros-0-1-2-released/166989 "2009-05-01T19:06:38Z")

</div>

RubyMacros version 0.1.2 has been released! http://rubymacros.rubyforge.org/ http://rubyforge.org/projects/rubymacros/ RubyMacros is a lisp-like macro pre-processor for Ruby. More than just a purely textual substitut…

---

## [Redparse 0.8.1 Released](https://www.ruby-forum.com/t/redparse-0-8-1-released/166988)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/redparse-0-8-1-released/166988 "2009-05-01T19:02:32Z")

</div>

RedParse version 0.8.1 has been released! http://redparse.rubyforge.org/ http://rubyforge.org/projects/redparse/ RedParse is a ruby parser written in pure ruby. Instead of YACC or ANTLR, it’s parse tool is a home-bre…

---

## [Finding Matches in Array of Classes](https://www.ruby-forum.com/t/finding-matches-in-array-of-classes/166815)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 9\
**Last updated:** [May 1, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/finding-matches-in-array-of-classes/166815 "2009-05-01T18:53:07Z")

</div>

I have an ActiveRecord find result. An element’s contents look like: irb(main):090:0\> results\[0\] =\> #\<InventoryHour id: 47475, observation\_time: “2008-01-01 00:00:00”, station\_id: 6, extension\_id: 22, disk: 4, archiv…

---

## [Implementing the log-in page](https://www.ruby-forum.com/t/implementing-the-log-in-page/166972)

<div class="topic-metadata">

**Author:** [@leena29](https://www.ruby-forum.com/u/leena29)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/implementing-the-log-in-page/166972 "2009-05-01T16:32:09Z")

</div>

I am implementing the log-in page for my user-case for a project that I am working on and I am facing this problem which I can’t seem to solve, so I was woundering if there’s anyone out there who would know or can thi…

---

## [Re: apparently only with extension methods nil != System::Object](https://www.ruby-forum.com/t/re-apparently-only-with-extension-methods-nil-system-object/166974)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/re-apparently-only-with-extension-methods-nil-system-object/166974 "2009-05-01T16:25:08Z")

</div>

I’ve done some more investigation and it appears that it has to do with Extension methods. public static bool IsNull(this object value) { return value == null; } and public static bool IsNull2(object value) { re…

---

## [Create a log-in & log-out page](https://www.ruby-forum.com/t/create-a-log-in-log-out-page/166969)

<div class="topic-metadata">

**Author:** [@leena29](https://www.ruby-forum.com/u/leena29)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/create-a-log-in-log-out-page/166969 "2009-05-01T16:19:57Z")

</div>

Anyone who can help me out with this! I have a project to complete and I am implementing a user-case where I have to create a loggin-in & logging-out page, is there anyone who has done this before? And help me and my …

---

## [Overriding unsafe methods](https://www.ruby-forum.com/t/overriding-unsafe-methods/166966)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/overriding-unsafe-methods/166966 "2009-05-01T15:06:39Z")

</div>

Hi I’m still working with Kean to port his ironpython samples, but we’ve run into another problem now. He needs to override an unsafe virtual method and then call it from ruby as super. I’m calling super with no a…

---

## [Lone Star Ruby Conference 2009 Talk Submission Deadline](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-talk-submission-deadline/196954)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-talk-submission-deadline/196954 "2009-05-01T15:01:58Z")

</div>

Hello This is friendly reminder about the speaker submission deadline. The deadline is Sunday, May 3 at midnight. We have extended it one day to give you the weekend to submit your proposal. If you plan on submittin…

---

## [\[ANN\] ruby backtracer (quality screen output) updated](https://www.ruby-forum.com/t/ann-ruby-backtracer-quality-screen-output-updated/166960)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 1:42pm UTC](https://www.ruby-forum.com/t/ann-ruby-backtracer-quality-screen-output-updated/166960 "2009-05-01T13:42:27Z")

</div>

Pleased to announce a new version of ruby\_backtracer. Here’s the readme. ruby\_backtracer: a library to output higher quality backtraces if an unhandled exception is raised ex: running given script examples/crash.rb …

---

## [Ruby 1.8.7-p72 installation on windows](https://www.ruby-forum.com/t/ruby-1-8-7-p72-installation-on-windows/166346)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p72-installation-on-windows/166346 "2009-05-01T12:45:39Z")

</div>

Hi… I m newb looking for help… i want to install ruby 1.8.7 on my windows machine… i extracted the zip file of ruby Ruby 1.8.7-p72 Binary in http://www.ruby- lang.org/en/downloads/ after that what should i do for …

---

## [Question about "protected" and "private"](https://www.ruby-forum.com/t/question-about-protected-and-private/166945)

<div class="topic-metadata">

**Author:** [@Fasun\_Lau](https://www.ruby-forum.com/u/Fasun_Lau)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 12:39pm UTC](https://www.ruby-forum.com/t/question-about-protected-and-private/166945 "2009-05-01T12:39:36Z")

</div>

Hi, all I’m reading “Programming Ruby”, and have some questions about “protected” and “private” of class. In “Programming Ruby” : Protected methods can be invoked only by objects of the defining class and its subc…

---

## [Mspec troubles](https://www.ruby-forum.com/t/mspec-troubles/166954)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 11:53am UTC](https://www.ruby-forum.com/t/mspec-troubles/166954 "2009-05-01T11:53:17Z")

</div>

I followed the steps described on the wiki to be able to run the specs for ironruby but when I then execute rake test I get the following output: C:\\tools\\ironruby\\merlin\\main\\Languages\\Ruby (master) Â» rake test …

---

## [Nil != null?](https://www.ruby-forum.com/t/nil-null/166951)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:19am UTC](https://www.ruby-forum.com/t/nil-null/166951 "2009-05-01T10:19:33Z")

</div>

Hi I had specs that used to work but now apparently they don’t anymore. I’d expect that a nil from ruby maps to null in C# but this doesn’t seem to be the case. I’m using the following code public static bool I…

---

## [Group several lines into one line](https://www.ruby-forum.com/t/group-several-lines-into-one-line/166608)

<div class="topic-metadata">

**Author:** [@dad](https://www.ruby-forum.com/u/dad)\
**Replies:** 6\
**Last updated:** [May 1, 2009, 3:04am UTC](https://www.ruby-forum.com/t/group-several-lines-into-one-line/166608 "2009-05-01T03:04:44Z")

</div>

After sitting at this problem for hours without much progress, now is the time that I need your help. Btw. I’m quite new to ruby. I have a file that looks like this: 00-04-00;Austragungssystem fÃ¼r lÃ¤ngliche oder 00…

---

## [Merb](https://www.ruby-forum.com/t/merb/166885)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 5\
**Last updated:** [May 1, 2009, 2:46am UTC](https://www.ruby-forum.com/t/merb/166885 "2009-05-01T02:46:01Z")

</div>

Hi I’m writing a class in /lib, I would like the class accessing the “request” object have you an idea ? Thx

---

## [An unusual(?) JRuby success story](https://www.ruby-forum.com/t/an-unusual-jruby-success-story/166925)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 2:41am UTC](https://www.ruby-forum.com/t/an-unusual-jruby-success-story/166925 "2009-05-01T02:41:55Z")

</div>

I’m a web developer by trade but my primary interest is in real time interactive multimedia and computer music composition. I use a software platform called Max/MSP to do a lot of my stuff. Last year I released a Ruby…

---

## [Advanced array merging](https://www.ruby-forum.com/t/advanced-array-merging/166809)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/advanced-array-merging/166809 "2009-04-30T23:31:14Z")

</div>

Hi everyone, I’m looking for the fastest way (or the version with the least code!) to consolidate a couple of arrays. Basically, what a dump of what I have is this: \[\[#\<Ifinoctets\_26 id: 2476, dtime: “2009-04-28 00:0…

---

## [Fwd: \[Phoenix Ruby Group\] JRuby on Rails (Consultant)](https://www.ruby-forum.com/t/fwd-phoenix-ruby-group-jruby-on-rails-consultant/166912)

<div class="topic-metadata">

**Author:** [@Logan\_B](https://www.ruby-forum.com/u/Logan_B)\
**Replies:** 4\
**Last updated:** [April 30, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/fwd-phoenix-ruby-group-jruby-on-rails-consultant/166912 "2009-04-30T23:09:42Z")

</div>

This was posted to our local user group’s mailing list. The requirements don’t seem possible, but at least you have folks looking for JRuby devs! Logan B. removed\_email\_address@domain.invalid http://www.logustus.com …

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

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