# Ruby

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

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

---

## [Why won't my FXRuby widgets update?](https://www.ruby-forum.com/t/why-wont-my-fxruby-widgets-update/75700)

<div class="topic-metadata">

**Author:** [@gsiener](https://www.ruby-forum.com/u/gsiener)\
**Replies:** 2\
**Last updated:** [November 13, 2006, 11:31am UTC](https://www.ruby-forum.com/t/why-wont-my-fxruby-widgets-update/75700 "2006-11-13T11:31:18Z")

</div>

Hi, Anybody out there faced this ? (the code below is actually just the core of the “babelfish” example). But there’s a “flaw” in the code that isn’t mentioned in the documentation. Specifically, when the button press …

---

## [Apache not loading plugins](https://www.ruby-forum.com/t/apache-not-loading-plugins/75764)

<div class="topic-metadata">

**Author:** [@lord-aragorn](https://www.ruby-forum.com/u/lord-aragorn)\
**Replies:** 1\
**Last updated:** [November 13, 2006, 9:28am UTC](https://www.ruby-forum.com/t/apache-not-loading-plugins/75764 "2006-11-13T09:28:18Z")

</div>

Hi everyone, this is my first post here and I’m sort of newbie with rails. I tried to use localization-simplified plugin in my rails app but apache don’t load the plugin, webrick load the plugin flawless. anyone can …

---

## [IRB: Arrow keys not working (neither Insert, home, etc)](https://www.ruby-forum.com/t/irb-arrow-keys-not-working-neither-insert-home-etc/75737)

<div class="topic-metadata">

**Author:** [@AnSSS\_bal](https://www.ruby-forum.com/u/AnSSS_bal)\
**Replies:** 3\
**Last updated:** [November 13, 2006, 9:22am UTC](https://www.ruby-forum.com/t/irb-arrow-keys-not-working-neither-insert-home-etc/75737 "2006-11-13T09:22:17Z")

</div>

Hello, I have Ruby 1.8.5 installed in Ubuntu 6.06 (Kernel: 2.6.15-27-686 ) IRB works fine with special characters (like accented a, and tilded n) but the arrow keys produce the following input: Up: ^\[\[A Right: ^\[\[C …

---

## [Help learning arrays \_Thanks](https://www.ruby-forum.com/t/help-learning-arrays-thanks/75752)

<div class="topic-metadata">

**Author:** [@jamison\_edmonds](https://www.ruby-forum.com/u/jamison_edmonds)\
**Replies:** 1\
**Last updated:** [November 13, 2006, 8:24am UTC](https://www.ruby-forum.com/t/help-learning-arrays-thanks/75752 "2006-11-13T08:24:12Z")

</div>

Hi Iâ€™m learning arrays from a book. I have learned the basics of branching and, looping using a handful of objects and, methods. Now Iâ€™m suppose to use the skills I have acquired to gets a list of words and, when…

---

## [Ruby floating point behavior typical of other langs?](https://www.ruby-forum.com/t/ruby-floating-point-behavior-typical-of-other-langs/75745)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 3\
**Last updated:** [November 13, 2006, 8:24am UTC](https://www.ruby-forum.com/t/ruby-floating-point-behavior-typical-of-other-langs/75745 "2006-11-13T08:24:11Z")

</div>

The second edition of The\_Ruby\_Way has an example similar to the following: irb(main):001:0\> puts ‘not equal’ unless (3.2 - 2.0) == 1.2 not equal =\>nil The point is to illustrate why you might want to use BigDecimal…

---

## [ParseTree 1.6.1 Released](https://www.ruby-forum.com/t/parsetree-1-6-1-released/75767)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 7:50am UTC](https://www.ruby-forum.com/t/parsetree-1-6-1-released/75767 "2006-11-13T07:50:08Z")

</div>

ParseTree version 1.6.1 has been released! zenspider projects | software projects | by ryan davis ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and…

---

## [Where is attr\_accessor located?](https://www.ruby-forum.com/t/where-is-attr-accessor-located/75723)

<div class="topic-metadata">

**Author:** [@Mariano\_K](https://www.ruby-forum.com/u/Mariano_K)\
**Replies:** 4\
**Last updated:** [November 13, 2006, 7:50am UTC](https://www.ruby-forum.com/t/where-is-attr-accessor-located/75723 "2006-11-13T07:50:07Z")

</div>

Hi, I am a bit confused. I get different responses when asking RI and IRB. It’s probably just me not understanding to read the output or issue the right queries. When calling “ri attr\_accesor” I get the following: l…

---

## [Ruby2ruby 1.1.1 Released](https://www.ruby-forum.com/t/ruby2ruby-1-1-1-released/75766)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 7:46am UTC](https://www.ruby-forum.com/t/ruby2ruby-1-1-1-released/75766 "2006-11-13T07:46:06Z")

</div>

ruby2ruby version 1.1.1 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [Test::Unit runner for HTML output](https://www.ruby-forum.com/t/test-unit-runner-for-html-output/75724)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 3\
**Last updated:** [November 13, 2006, 7:34am UTC](https://www.ruby-forum.com/t/test-unit-runner-for-html-output/75724 "2006-11-13T07:34:05Z")

</div>

Is there a Test::Unit runner for HTML output? I’d like to keep this available on an internal Continuos Integration web page. (Ideally, I’d like to be able to tell the rake test tasks to use HTML output to a certain f…

---

## [Re: VCR Program Manager (#101)](https://www.ruby-forum.com/t/re-vcr-program-manager-101/75751)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 4:15am UTC](https://www.ruby-forum.com/t/re-vcr-program-manager-101/75751 "2006-11-13T04:15:52Z")

</div>

Here is my solution. I used runt for handling scheduling. The most recently added program wins in a conflict. require ‘runt’ class Time include Runt::DPrecision attr\_accessor :date\_precision def date\_precision r…

---

## [TTF/Ruby, first release!](https://www.ruby-forum.com/t/ttf-ruby-first-release/75362)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 3\
**Last updated:** [November 13, 2006, 4:11am UTC](https://www.ruby-forum.com/t/ttf-ruby-first-release/75362 "2006-11-13T04:11:52Z")

</div>

I am pleased to announce the first release (version 0.1) of TTF/Ruby, under the terms of the GNU GPL. TTF/Ruby is a pure Ruby library to read and write TrueType fonts. Tables supported are : Cmap \* Cvt \* Fpgm \* Gasp …

---

## [November Phoenix Ruby Group Meeting](https://www.ruby-forum.com/t/november-phoenix-ruby-group-meeting/75739)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [November 13, 2006, 1:57am UTC](https://www.ruby-forum.com/t/november-phoenix-ruby-group-meeting/75739 "2006-11-13T01:57:41Z")

</div>

The Phoenix Ruby U. Group will have its November meeting this Monday, November 13, at 6:15 PM. The meeting will be at the Axway offices (formerly known as Cyclone Commerce) See http://www.rubyaz.org/groups/prug/ fo…

---

## [McGovern Likes JRuby](https://www.ruby-forum.com/t/mcgovern-likes-jruby/75631)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 25\
**Last updated:** [November 13, 2006, 12:13am UTC](https://www.ruby-forum.com/t/mcgovern-likes-jruby/75631 "2006-11-13T00:13:36Z")

</div>

I’m not sure how to feel about this one :slight\_smile: http://duckdown.blogspot.com/2006/11/thoughts-on-smalltalk.html “…the Ruby community at large should drop their current approach and embrace the JRuby stuff.” I …

---

## [Class reloading and constants](https://www.ruby-forum.com/t/class-reloading-and-constants/75644)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [November 12, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/class-reloading-and-constants/75644 "2006-11-12T23:41:33Z")

</div>

Context: I am trying to understand how does Rails implement class reloading. If we reload a .rb file that defines class A::B with Kernel#load we are just reopening the class, so that’s poor man’s reloading in the sen…

---

## [Saving an UTF-8 file](https://www.ruby-forum.com/t/saving-an-utf-8-file/75691)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 6\
**Last updated:** [November 12, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/saving-an-utf-8-file/75691 "2006-11-12T23:15:31Z")

</div>

Hi All I have a problem (newbie problem). I don’t know how to write a file using utf-8 encoding. Can you help me. Thanks in advance Kind regards – Miquel (a.k.a. Ton) Linux User #286784 GPG Key : 4D91EF7F Debi…

---

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

<div class="topic-metadata">

**Author:** [@wil](https://www.ruby-forum.com/u/wil)\
**Replies:** 11\
**Last updated:** [November 12, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/ruby-parsing-in-ruby/75621 "2006-11-12T23:03:29Z")

</div>

Hi all, I’ve been doing Ruby for a small while now, but I’m a newbie when it comes to parsing. I’ve been digging around, but still can’t seem to find the answer. I was wondering if Ruby itself has classes that I can …

---

## [Easy way to do a HTTPS POST?](https://www.ruby-forum.com/t/easy-way-to-do-a-https-post/75583)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 4\
**Last updated:** [November 12, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/easy-way-to-do-a-https-post/75583 "2006-11-12T21:45:13Z")

</div>

For a business banking app I needed to script out something that would upload a PGP-encrypted text file through a HTTPS POST command. Since Ruby is my language of choice for quick hitters like this I looked into using…

---

## [Help with correct syntax in win32ole and excel](https://www.ruby-forum.com/t/help-with-correct-syntax-in-win32ole-and-excel/75706)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [November 12, 2006, 9:37pm UTC](https://www.ruby-forum.com/t/help-with-correct-syntax-in-win32ole-and-excel/75706 "2006-11-12T21:37:11Z")

</div>

Hi all, I want to use win32ole to do some automation with excel. Here is a line code which works. … ChartTypeVal=4 excel.Range(“a1:b3”).Select(); excelchart = workbook.Charts.Add(); excelchart.Type = ChartTypeVal…

---

## [HTML table to matrix with WWW::Mechanize](https://www.ruby-forum.com/t/html-table-to-matrix-with-www-mechanize/75726)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 1\
**Last updated:** [November 12, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/html-table-to-matrix-with-www-mechanize/75726 "2006-11-12T20:30:56Z")

</div>

Hi, I am new to ruby and am trying to scrape a website table into a matrix, I have been playing around with WWW::Mechanize and have had some success getting the page, extracting the table I want and then separating th…

---

## [Can Ruby do this magic... elegantly](https://www.ruby-forum.com/t/can-ruby-do-this-magic-elegantly/75667)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 12\
**Last updated:** [November 12, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/can-ruby-do-this-magic-elegantly/75667 "2006-11-12T20:26:55Z")

</div>

I would like to be able to be able to include instance methods of a Struct into a class. e.g. foo = Struct.new(:attribute, :another\_attribute) bar = foo.new class Bas some\_ruby\_magic end So that I can then do Bas…

---

## [Redefining a method using Module#include](https://www.ruby-forum.com/t/redefining-a-method-using-module-include/75697)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [November 12, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/redefining-a-method-using-module-include/75697 "2006-11-12T19:16:44Z")

</div>

Hi, How can I redefine Array#\[\] using an included Module? Here is my attempt: module AbsenceHandling def if\_absent\_call§ @if\_absent = p self end def \[\](index) result = old\_accessor(index) if(result.nil? &…

---

## [Looking for some feedback about Certification](https://www.ruby-forum.com/t/looking-for-some-feedback-about-certification/75553)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 37\
**Last updated:** [November 12, 2006, 6:36pm UTC](https://www.ruby-forum.com/t/looking-for-some-feedback-about-certification/75553 "2006-11-12T18:36:32Z")

</div>

Aaah, nothing like a good controversial topic to stir up a holy war for the weekend. I’ve posted two different requests for feedback on a project over at my blog: They boil down to this: I’ve been asked to help a…

---

## [RubyGems Issue](https://www.ruby-forum.com/t/rubygems-issue/75712)

<div class="topic-metadata">

**Author:** [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Replies:** 0\
**Last updated:** [November 12, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/rubygems-issue/75712 "2006-11-12T18:14:26Z")

</div>

hi all, i have successfully installed gems on my winxp box. when i type in gems -v(or is it --version, i can’t recall off hand) i get back the current version (i think it is version 0.9). so far, so good. however, …

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [November 12, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/75710 "2006-11-12T18:10:24Z")

</div>

Begin forwarded message:

---

## [Controlling readline](https://www.ruby-forum.com/t/controlling-readline/75665)

<div class="topic-metadata">

**Author:** [@Luo\_Yong](https://www.ruby-forum.com/u/Luo_Yong)\
**Replies:** 4\
**Last updated:** [November 12, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/controlling-readline/75665 "2006-11-12T17:04:13Z")

</div>

Hi all Is there anyway to control the maxium length of the IO.readline can read? Thanks

---

## [Create local variable in Binding after it's creation](https://www.ruby-forum.com/t/create-local-variable-in-binding-after-its-creation/75702)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 5\
**Last updated:** [November 12, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/create-local-variable-in-binding-after-its-creation/75702 "2006-11-12T17:04:13Z")

</div>

Hi, Is it possible to create a new local variable in a binding after it’s creation? Specifically, what I’d like to do: l = lambda { puts a } # ‘a’ not defined at this point. eval(‘a = 7’, l.binding) # Hope to crea…

---

## [Eval question](https://www.ruby-forum.com/t/eval-question/75632)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 4\
**Last updated:** [November 12, 2006, 10:03am UTC](https://www.ruby-forum.com/t/eval-question/75632 "2006-11-12T10:03:27Z")

</div>

Hi, I am setting up a few variables based on user input with the following code snippet: ================================== vars = %w{a b c} vars.each do |var| print “#{var} = " val = gets eval(”$#{var}=#{val.cho…

---

## [Getopt/long and ARGV](https://www.ruby-forum.com/t/getopt-long-and-argv/75673)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 0\
**Last updated:** [November 12, 2006, 6:23am UTC](https://www.ruby-forum.com/t/getopt-long-and-argv/75673 "2006-11-12T06:23:19Z")

</div>

Why does getopts delete the option arguments but not the options themselves from ARGV: $ cat opt.rb require “getopt/long” include Getopt opts = Long.getopts( \["–plot", BOOLEAN\], \["–foo", OPTIONAL\] ) p ARGV $ ru…

---

## [Logger::ShiftingError](https://www.ruby-forum.com/t/logger-shiftingerror/75593)

<div class="topic-metadata">

**Author:** [@unni.tallman](https://www.ruby-forum.com/u/unni.tallman)\
**Replies:** 1\
**Last updated:** [November 12, 2006, 5:11am UTC](https://www.ruby-forum.com/t/logger-shiftingerror/75593 "2006-11-12T05:11:15Z")

</div>

What can be the cause of this error?

---

## [Graph orientation in Excel](https://www.ruby-forum.com/t/graph-orientation-in-excel/75609)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [November 12, 2006, 3:52am UTC](https://www.ruby-forum.com/t/graph-orientation-in-excel/75609 "2006-11-12T03:52:15Z")

</div>

Hi guys, I copy one script as follows to draw a graph. The result is a column-based serial, which means I get two lines composed of 3-2-1 and 10-6-3. My question is how I tell the script so that I get row-based seri…

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

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