# Ruby

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

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

---

## [Mechanize problem with proxies](https://www.ruby-forum.com/t/mechanize-problem-with-proxies/151608)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/mechanize-problem-with-proxies/151608 "2008-10-23T13:24:48Z")

</div>

Hi, I’m using Mechanize-0.8.4 to pass some traffic through a custom proxy. This proxy requires basic authentication. If I request www.google.com, I will get redirected to google.co.uk or whatever. The problem is that …

---

## [Using buttons in CGI](https://www.ruby-forum.com/t/using-buttons-in-cgi/151591)

<div class="topic-metadata">

**Author:** [@asafdasa](https://www.ruby-forum.com/u/asafdasa)\
**Replies:** 5\
**Last updated:** [October 23, 2008, 12:26pm UTC](https://www.ruby-forum.com/t/using-buttons-in-cgi/151591 "2008-10-23T12:26:42Z")

</div>

Hi all, I have a problem, I have table such that each line on it is textfield (something that I defined). I want to make a button, which isn’t the ‘submit’ or ‘reset’ button, such that when I click on it, a new line o…

---

## [ANN: EMDRb 0.1.0 (initial release)](https://www.ruby-forum.com/t/ann-emdrb-0-1-0-initial-release/151602)

<div class="topic-metadata">

**Author:** [@Dido\_S](https://www.ruby-forum.com/u/Dido_S)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/ann-emdrb-0-1-0-initial-release/151602 "2008-10-23T12:20:08Z")

</div>

I am pleased to announce the release of EMDRb version 0.1.0, a rudimentary implementation of a distributed Ruby server based on EventMachine. It’s available on Rubyforge at http://rubyforge.org/projects/emdrb but I m…

---

## [Cygwin: Dir.glob ALWAYS accesses floppy?](https://www.ruby-forum.com/t/cygwin-dir-glob-always-accesses-floppy/151445)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 7\
**Last updated:** [October 23, 2008, 11:56am UTC](https://www.ruby-forum.com/t/cygwin-dir-glob-always-accesses-floppy/151445 "2008-10-23T11:56:37Z")

</div>

I’m finding under Cygwin, with ruby 1.8.7 (2008-08-11 patchlevel 72) \[i386-cygwin\] that if I Dir.glob(path) for a path under /cygdrive/c, the floppy drive is accessed. I’m trying to avoid a Huge recursive glob that …

---

## [JRuby threading - thread safety of database connection objects](https://www.ruby-forum.com/t/jruby-threading-thread-safety-of-database-connection-objects/151601)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 11:30am UTC](https://www.ruby-forum.com/t/jruby-threading-thread-safety-of-database-connection-objects/151601 "2008-10-23T11:30:12Z")

</div>

Hi guys, I’m trying to make the code I have written that populates an LDAP server from a list of user accounts a little more efficient. The logic behind the application is fairly straightforward: For every username i…

---

## [Define\_method inside a module](https://www.ruby-forum.com/t/define-method-inside-a-module/151223)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 6\
**Last updated:** [October 23, 2008, 10:53am UTC](https://www.ruby-forum.com/t/define-method-inside-a-module/151223 "2008-10-23T10:53:07Z")

</div>

hi, I am trying to use some dynamic features of ruby. Inside my module, I try to add some method dynamicaly but I get an error when I am trying to. module Rubyhaviour def add(object) name = “@” + object.class.downc…

---

## [\[Feature #679\] Integer#to\_s(:step=\>3, :sep=\>",") $B$,M\_$7$$(B](https://www.ruby-forum.com/t/feature-679-integer-to-s-step-3-sep-b-m-7-b/151590)

<div class="topic-metadata">

**Author:** [@Martin\_DSSS\_rst](https://www.ruby-forum.com/u/Martin_DSSS_rst)\
**Replies:** 3\
**Last updated:** [October 23, 2008, 10:38am UTC](https://www.ruby-forum.com/t/feature-679-integer-to-s-step-3-sep-b-m-7-b/151590 "2008-10-23T10:38:31Z")

</div>

e$B%A%1%C%He(B #679 e$B$,99?7$5$l$^$7$?!#e(B (by Martin De$(D+de(Brst) e$B:G=i$NNc$Oe(B “12,345,678” e$B$N$G$O$J$$$G$7$g$&$+!#e(B e$B$3$l$G$O%$%s%IIw$NI=5-$,IT2DG=$G$O$J$$$G$7$g$&$+e(B (“1,23,45,678”, e$B$h$&$9$k$K0lH…

---

## [Subclass a class in the namespace of the that subclass](https://www.ruby-forum.com/t/subclass-a-class-in-the-namespace-of-the-that-subclass/151564)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 9\
**Last updated:** [October 23, 2008, 9:26am UTC](https://www.ruby-forum.com/t/subclass-a-class-in-the-namespace-of-the-that-subclass/151564 "2008-10-23T09:26:22Z")

</div>

Ever get stuck on a problem, and then after staring at it for way too long, get disgusted b/c there is no way to do it the way you need to do it, and none of the workable alternatives quite cut it? Well, that’s been m…

---

## [Neatest way to extend Struct](https://www.ruby-forum.com/t/neatest-way-to-extend-struct/151565)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 9\
**Last updated:** [October 23, 2008, 9:21am UTC](https://www.ruby-forum.com/t/neatest-way-to-extend-struct/151565 "2008-10-23T09:21:40Z")

</div>

I want a Structlike class that takes a hash constructor, so I can say class A \< MyStruct.new(\*keys); end a = A.new(:key1 =\> val1, :key2 =\> val2) Is there any way to base this off Struct? martin

---

## [RMagick: Method to invert the colors of an image](https://www.ruby-forum.com/t/rmagick-method-to-invert-the-colors-of-an-image/151589)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 1\
**Last updated:** [October 23, 2008, 9:20am UTC](https://www.ruby-forum.com/t/rmagick-method-to-invert-the-colors-of-an-image/151589 "2008-10-23T09:20:30Z")

</div>

Hi, I am using RMagick gem to work with images. In one of my methods, I want to totally invert the colors of the image file. I searched the Rmagick API but am not able to converge to a method which can do so (Probably…

---

## [Why is irb different from script file?](https://www.ruby-forum.com/t/why-is-irb-different-from-script-file/151586)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 8:37am UTC](https://www.ruby-forum.com/t/why-is-irb-different-from-script-file/151586 "2008-10-23T08:37:21Z")

</div>

in irb def why? end =\> nil Object.public\_instance\_methods.include?(“why?”) =\> true in test.rb def why? end p Object.private\_instance\_methods.include?(“why?”) # =\> true ################## Help Me^^ #######…

---

## [\[Feature #679\] Integer#to\_s(:step=\>3, :sep=\>",") $B$,M\_$7$$(B](https://www.ruby-forum.com/t/feature-679-integer-to-s-step-3-sep-b-m-7-b/151587)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 7:56am UTC](https://www.ruby-forum.com/t/feature-679-integer-to-s-step-3-sep-b-m-7-b/151587 "2008-10-23T07:56:47Z")

</div>

Feature #679: Integer#to\_s(:step=\>3, :sep=\>“,”) e$B$,M\_$7$$e(B http://redmine.ruby-lang.org/issues/show/679 e$B5/I\<\<Te(B: Takeyuki F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version:…

---

## [ParseTree 3.0.1 Released (the "I'm a tired dumbass" release)](https://www.ruby-forum.com/t/parsetree-3-0-1-released-the-im-a-tired-dumbass-release/151584)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 7:38am UTC](https://www.ruby-forum.com/t/parsetree-3-0-1-released-the-im-a-tired-dumbass-release/151584 "2008-10-23T07:38:03Z")

</div>

ParseTree version 3.0.1 has been released! (the “I’m a tired dumbass” release) http://rubyforge.org/projects/parsetree/ http://www.zenspider.com/ZSS/Products/ParseTree/ removed\_email\_address@domain.invalid ParseTree …

---

## [Ruby2ruby 1.2.0 Released](https://www.ruby-forum.com/t/ruby2ruby-1-2-0-released/151577)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 5:27am UTC](https://www.ruby-forum.com/t/ruby2ruby-1-2-0-released/151577 "2008-10-23T05:27:40Z")

</div>

ruby2ruby version 1.2.0 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…

---

## [ParseTree 3.0.0 Released](https://www.ruby-forum.com/t/parsetree-3-0-0-released/151579)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 5:26am UTC](https://www.ruby-forum.com/t/parsetree-3-0-0-released/151579 "2008-10-23T05:26:29Z")

</div>

ParseTree version 3.0.0 has been released! http://rubyforge.org/projects/parsetree/ http://www.zenspider.com/ZSS/Products/ParseTree/ removed\_email\_address@domain.invalid ParseTree is a C extension (using RubyInline) t…

---

## [RubyInline 3.8.0 Released](https://www.ruby-forum.com/t/rubyinline-3-8-0-released/151575)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 5:25am UTC](https://www.ruby-forum.com/t/rubyinline-3-8-0-released/151575 "2008-10-23T05:25:54Z")

</div>

RubyInline version 3.8.0 has been released! http://rubyforge.org/projects/rubyinline/ http://rubyinline.rubyforge.org/RubyInline/ http://www.zenspider.com/ZSS/Products/RubyInline/ removed\_email\_address@domain.invalid I…

---

## [What exactly does "rubyish" or "ruby way" mean?](https://www.ruby-forum.com/t/what-exactly-does-rubyish-or-ruby-way-mean/151532)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 11\
**Last updated:** [October 23, 2008, 5:20am UTC](https://www.ruby-forum.com/t/what-exactly-does-rubyish-or-ruby-way-mean/151532 "2008-10-23T05:20:39Z")

</div>

Over the last month I have been reading a lot of blogs, searching, going through source code of some apps and my pickaxe. I am still unable to clearly understand what all “the ruby way” means. I will be perfectly happ…

---

## [Is It Possible to Override a java method in JRuby code?](https://www.ruby-forum.com/t/is-it-possible-to-override-a-java-method-in-jruby-code/151573)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 1\
**Last updated:** [October 23, 2008, 4:53am UTC](https://www.ruby-forum.com/t/is-it-possible-to-override-a-java-method-in-jruby-code/151573 "2008-10-23T04:53:45Z")

</div>

Is It Possible to Override a java method in JRuby code? Googling the subject returns a few comments infering that it is not possible without doing something with byte code :frowning: Thanks Paul F. To unsubscribe f…

---

## [Tagz-4.3.0](https://www.ruby-forum.com/t/tagz-4-3-0/151574)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 4:52am UTC](https://www.ruby-forum.com/t/tagz-4-3-0/151574 "2008-10-23T04:52:34Z")

</div>

NAME tagz.rb SYNOPSIS require Tagz include Tagz.globally a\_(:href =\> “/foo”){ “bar” } #=\> bar DESCRIPTION tagz.rb is generates html, xml, or any sgml variant like a small ninja running across the backs of a he…

---

## [RedParse 0.8.0 released](https://www.ruby-forum.com/t/redparse-0-8-0-released/151572)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 3:41am UTC](https://www.ruby-forum.com/t/redparse-0-8-0-released/151572 "2008-10-23T03:41:46Z")

</div>

= RedParse redparse.rubyforge.org rubyforge.org/projects/redparse == DESCRIPTION: RedParse is a ruby parser written in pure ruby. Instead of YACC or ANTLR, it’s parse tool is a home-brewed “compiler-interpreter”. (T…

---

## [\[Bug:1.9\] GzipReader with iso-2022-jp to euc-jp and gets(euc-jp-record-separator)](https://www.ruby-forum.com/t/bug-1-9-gzipreader-with-iso-2022-jp-to-euc-jp-and-gets-euc-jp-record-separator/151568)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [October 23, 2008, 2:39am UTC](https://www.ruby-forum.com/t/bug-1-9-gzipreader-with-iso-2022-jp-to-euc-jp-and-gets-euc-jp-record-separator/151568 "2008-10-23T02:39:44Z")

</div>

Zlib::GzipReader e$B$Ne(B gets e$B$N5sF0$,e(B IO e$B$H0J2\<$N$h$&$K0\[$J$j$^$9!#e(B “e$B$”$$$&e(B" e$B$H$$$&e(B EUC-JP e$B$NJ8;zNs$re(B gzip e$B$7$?F~NO$KBP$7!"e(B Zlib::GzipReader#gets(“e$B$$e(B”) e$B$H$7$F$be(B “e$B$…

---

## [Cucumber / RSpec Story Runner](https://www.ruby-forum.com/t/cucumber-rspec-story-runner/151143)

<div class="topic-metadata">

**Author:** [@putterson](https://www.ruby-forum.com/u/putterson)\
**Replies:** 28\
**Last updated:** [October 22, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/cucumber-rspec-story-runner/151143 "2008-10-22T22:42:47Z")

</div>

Has anyone tried to get Cucumber (or it’s predecessor: the RSpec story runner) to work with IronRuby? I have not had any luck thus far (I am extremely new to Ruby), and I would really like to be able to use Cucumber …

---

## [Jruby/netbeans file suffix question](https://www.ruby-forum.com/t/jruby-netbeans-file-suffix-question/151558)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/jruby-netbeans-file-suffix-question/151558 "2008-10-22T22:00:31Z")

</div>

I’m getting interested in the Ruby Red project, which translates Ruby to JavaScript. However, it uses “.red” as a suffix for its Ruby source files (the ones that get translated), so I need to figure out how to tell NB…

---

## [Extending object with another object](https://www.ruby-forum.com/t/extending-object-with-another-object/151508)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 4\
**Last updated:** [October 22, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/extending-object-with-another-object/151508 "2008-10-22T21:19:56Z")

</div>

Hi, How is it possible to extend an object using another object? I know I can iterate the public methods of one and define them (or maybe clone, and bind) in the other, but I’m looking for something that will work mo…

---

## [$LOAD\_PATH and different OSes](https://www.ruby-forum.com/t/load-path-and-different-oses/151504)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [October 22, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/load-path-and-different-oses/151504 "2008-10-22T21:18:21Z")

</div>

Looking for best practice guidance on dealing with differing paths to libraries & gems amongst OSes. I can write some reasonably decent Ruby at this point, but still a padawan when it comes to really understanding the…

---

## [Why?](https://www.ruby-forum.com/t/why/151506)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/why/151506 "2008-10-22T21:08:46Z")

</div>

in irb self =\> main def why? end =\> nil self.why? =\> nil in test.rb p self # =\> main def why? end self.why? # private method ‘why?’ called for main:Object (NoMethodError) Anyway, one more… …

---

## [Broken Gems on Windows (still)](https://www.ruby-forum.com/t/broken-gems-on-windows-still/151533)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/broken-gems-on-windows-still/151533 "2008-10-22T19:25:51Z")

</div>

(I realized I posted this originally on the Rails mailing list, when it probably should have been here… oops!) Hello… Is there any word on when the eventmachine 0.12.2 and sqlite3-ruby 1.2.4 gems are going to be fixe…

---

## [Rubyforge 1.0.1 Released](https://www.ruby-forum.com/t/rubyforge-1-0-1-released/151546)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/rubyforge-1-0-1-released/151546 "2008-10-22T18:58:16Z")

</div>

rubyforge version 1.0.1 has been released! http://codeforpeople.rubyforge.org/rubyforge/ http://rubyforge.org/projects/codeforpeople/ A script which automates a limited set of rubyforge operations. Run ‘rubyforge he…

---

## [Rake: How do I Override Var's Used by a Rule?](https://www.ruby-forum.com/t/rake-how-do-i-override-vars-used-by-a-rule/151543)

<div class="topic-metadata">

**Author:** [@rake\_newb](https://www.ruby-forum.com/u/rake_newb)\
**Replies:** 5\
**Last updated:** [October 22, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/rake-how-do-i-override-vars-used-by-a-rule/151543 "2008-10-22T18:30:42Z")

</div>

All: For our rakefile system, we would like to have the ability to build either a “debug” version of our code, or a “release” version. My plan is to have 2 separate high-level tasks, where one of them invokes the othe…

---

## [Re: Where is libopenssl-ruby - For Rails install - UPDATED!](https://www.ruby-forum.com/t/re-where-is-libopenssl-ruby-for-rails-install-updated/151542)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/re-where-is-libopenssl-ruby-for-rails-install-updated/151542 "2008-10-22T18:09:32Z")

</div>

On Tue, Oct 21, 2008 at 5:18 PM, Hugh S. removed\_email\_address@domain.invalid wrote: libopenssl-ruby.I am running LINUX Suse: 2.6.16.21-0.8-smp Ruby S. fact. Thank you Hugh Well Team, you might be corre…

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

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