# Ruby

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

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

---

## [Fail to compile mingw ruby](https://www.ruby-forum.com/t/fail-to-compile-mingw-ruby/166437)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/fail-to-compile-mingw-ruby/166437 "2009-04-25T16:25:37Z")

</div>

e$B=uED$G$9!#e(B trunk e$B$Ge(B Cygwine$B$N4D6-$Ge(B configure --prefix=/usr/local/ruby-trunk CC=‘gcc -mno-cygwin’ e$B$Ge(B mingw e$BHG$r%3%s%Q%$%k$7$h$&$H$9$k$He(B bigdecimal e$B$G\<:GT$7$^$9!#e(B e$B$&$A$N4D6-$@$1$…

---

## [(debian,eclipse) modify the code of a window created with glade](https://www.ruby-forum.com/t/debian-eclipse-modify-the-code-of-a-window-created-with-glade/166458)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 0\
**Last updated:** [April 25, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/debian-eclipse-modify-the-code-of-a-window-created-with-glade/166458 "2009-04-25T16:02:13Z")

</div>

hello, I would like to create a window with glade, import it in a ruby project, and add a buton to it but from eclipse. here it is an example: #!/usr/bin/env ruby require ‘libglade2’ require ‘gtk2’ class MonAppl…

---

## [Hygienic startup file](https://www.ruby-forum.com/t/hygienic-startup-file/166230)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 8\
**Last updated:** [April 25, 2009, 10:12am UTC](https://www.ruby-forum.com/t/hygienic-startup-file/166230 "2009-04-25T10:12:10Z")

</div>

Hello, a startup file to be loaded by RUBYOPT should have minimal side effects. I guess, this pattern will do it: class \<\< Object.new FOO = … # will not override FOO if defined before BAR = … # will introduce BAR in…

---

## [Connect fails on named ip but not localhost](https://www.ruby-forum.com/t/connect-fails-on-named-ip-but-not-localhost/166256)

<div class="topic-metadata">

**Author:** [@juliany](https://www.ruby-forum.com/u/juliany)\
**Replies:** 1\
**Last updated:** [April 25, 2009, 8:12am UTC](https://www.ruby-forum.com/t/connect-fails-on-named-ip-but-not-localhost/166256 "2009-04-25T08:12:24Z")

</div>

Dear all, I have jruby running and can connect as localhost:3000 or 127.0.0.1:3000 but when i try to connect the mymachinename:3000 i get a connection failure. this happen both with webrick and mongrel, so i believe …

---

## [Q: Architecting large Web service download app in Ruby](https://www.ruby-forum.com/t/q-architecting-large-web-service-download-app-in-ruby/166398)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 5\
**Last updated:** [April 25, 2009, 4:06am UTC](https://www.ruby-forum.com/t/q-architecting-large-web-service-download-app-in-ruby/166398 "2009-04-25T04:06:37Z")

</div>

Architecting large Web service downloads in Ruby. I’ve run up against a performance bottleneck (that I could have predicted), but fear my design is causing more grief. Here’s an outline: Background My app has to downl…

---

## [RDoc 2.4.2 Released](https://www.ruby-forum.com/t/rdoc-2-4-2-released/163903)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 5\
**Last updated:** [April 25, 2009, 3:04am UTC](https://www.ruby-forum.com/t/rdoc-2-4-2-released/163903 "2009-04-25T03:04:28Z")

</div>

rdoc version 2.4.2 has been released! RDoc Project Page - http://rubyforge.org/projects/rdoc/ RDoc Documentation - http://rdoc.rubyforge.org/ RDoc Bug Tracker - http://rubyforge.org/tracker/?atid=2472&group\_id=627&f…

---

## [Finding Quiz Responses (#200)](https://www.ruby-forum.com/t/finding-quiz-responses-200/165249)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 2:40am UTC](https://www.ruby-forum.com/t/finding-quiz-responses-200/165249 "2009-04-25T02:40:28Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Ruby Version History](https://www.ruby-forum.com/t/ruby-version-history/166306)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 13\
**Last updated:** [April 25, 2009, 1:02am UTC](https://www.ruby-forum.com/t/ruby-version-history/166306 "2009-04-25T01:02:53Z")

</div>

Where can I find Ruby Version History? I need to check differences between them. Regards

---

## [Proper way to daemonize](https://www.ruby-forum.com/t/proper-way-to-daemonize/166387)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 11\
**Last updated:** [April 25, 2009, 12:54am UTC](https://www.ruby-forum.com/t/proper-way-to-daemonize/166387 "2009-04-25T00:54:07Z")

</div>

module Process def self.daemon( nochdir = nil, noclose = nil ) exit if fork # Parent exits, child continues. Process.setsid # Become session leader. exit if fork …

---

## [Pls test and comment on rails patch to use jdom backend for Hash.to\_xml](https://www.ruby-forum.com/t/pls-test-and-comment-on-rails-patch-to-use-jdom-backend-for-hash-to-xml/166414)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 1\
**Last updated:** [April 25, 2009, 12:37am UTC](https://www.ruby-forum.com/t/pls-test-and-comment-on-rails-patch-to-use-jdom-backend-for-hash-to-xml/166414 "2009-04-25T00:37:43Z")

</div>

Rails normally uses REXML to implement this class method activesupport adds to Hash: Hash.to\_xml This is used when Rails needs to process data in XML form such as when ActiveResource consumes an external resource. R…

---

## [JRuby on Rails on Google App Engine](https://www.ruby-forum.com/t/jruby-on-rails-on-google-app-engine/165000)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 6\
**Last updated:** [April 24, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-on-google-app-engine/165000 "2009-04-24T23:51:29Z")

</div>

Hi friends, As you might have heard, Google has released support for Java on App Engine. I’ve been part of a preview, and know that JRuby works well on it. More information here: http://olabini.com/blog/2009/04/java…

---

## [Difference between gem install rmagick and port rb-rmagick](https://www.ruby-forum.com/t/difference-between-gem-install-rmagick-and-port-rb-rmagick/166417)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 1\
**Last updated:** [April 24, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/difference-between-gem-install-rmagick-and-port-rb-rmagick/166417 "2009-04-24T23:30:26Z")

</div>

This is an instance of a more general question… What is the difference if I install a gem with gem install vs. installing it with port (which I already use for other applications) or, is rb-rmagick something different…

---

## [(debian,eclipse) GUI created with glade doesn't appear](https://www.ruby-forum.com/t/debian-eclipse-gui-created-with-glade-doesnt-appear/166412)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/debian-eclipse-gui-created-with-glade-doesnt-appear/166412 "2009-04-24T22:35:21Z")

</div>

hi, some informations: I have debian lenny, with gnome I have eclipse + the plugin DLTK (for ruby) I have installed the packages ruby1.8, ruby1.8-dev, ruby-gnome2, libglade-2, glade-gnome and glade-3. I thought I ha…

---

## [Rack, map (forward) Port to URI](https://www.ruby-forum.com/t/rack-map-forward-port-to-uri/166374)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 1\
**Last updated:** [April 24, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/rack-map-forward-port-to-uri/166374 "2009-04-24T21:35:33Z")

</div>

Hello, Is that possible to map Port to URI with Rack? I want to integrate Site writen in Ruby with Zimbra Mail and some other systems: Site URI: www.company.com/site \<= localhost:80 Zimbra Mail: www.company.com/site/…

---

## [Code Review: v04](https://www.ruby-forum.com/t/code-review-v04/166400)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/code-review-v04/166400 "2009-04-24T20:16:20Z")

</div>

tfpt review “/shelveset:v04;REDMOND\\jdeville” Comment : Update version to 0.4.0.0. This is a code only “release.”

---

## [Char conversion when using puts to write file lint by line](https://www.ruby-forum.com/t/char-conversion-when-using-puts-to-write-file-lint-by-line/166394)

<div class="topic-metadata">

**Author:** [@gabutz](https://www.ruby-forum.com/u/gabutz)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/char-conversion-when-using-puts-to-write-file-lint-by-line/166394 "2009-04-24T19:05:41Z")

</div>

I’m trying to create a script to generate several win32 registry entries in a .reg file, using a template. The idea is that I have a registry entry in the template file with tokens to be replaced by values I determine…

---

## [Wow: jruby vs. MRE performance](https://www.ruby-forum.com/t/wow-jruby-vs-mre-performance/166385)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 3\
**Last updated:** [April 24, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/wow-jruby-vs-mre-performance/166385 "2009-04-24T18:31:58Z")

</div>

Hi Folks, I’ve been working on an application for a while now using MRE, and for a variety of reasons, I need to get things working with JRuby. I was pretty astounded by a couple of things: First, JRuby takes up a l…

---

## [Win32-clipboard 0.5.0](https://www.ruby-forum.com/t/win32-clipboard-0-5-0/166391)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/win32-clipboard-0-5-0/166391 "2009-04-24T17:50:52Z")

</div>

Hi, The Win32Utils Team is happy to announce the release of win32-clipboard 0.5.0. = What is it? A library for interacting with the MS Windows Clipboard = What’s new? Images, files, and Windows metafiles are now s…

---

## [Unicode Question](https://www.ruby-forum.com/t/unicode-question/166238)

<div class="topic-metadata">

**Author:** [@Daly](https://www.ruby-forum.com/u/Daly)\
**Replies:** 5\
**Last updated:** [April 24, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/unicode-question/166238 "2009-04-24T16:41:05Z")

</div>

Hello all, I download a file from a website and one of the lines look like this: row = “\\0001\\0002\\0003\\000\\t\\0002\\0004\\0008\\0004\\0005\\000\\t\\000C\\000o \\000m\\000p\\000U\\000S\\000A\\000\\t\\000W \\0006\\0003\\0001\\0000\\0003\\00…

---

## [Install a Windows server made with Ruby](https://www.ruby-forum.com/t/install-a-windows-server-made-with-ruby/165582)

<div class="topic-metadata">

**Author:** [@travisbarker](https://www.ruby-forum.com/u/travisbarker)\
**Replies:** 21\
**Last updated:** [April 24, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/install-a-windows-server-made-with-ruby/165582 "2009-04-24T16:18:11Z")

</div>

Hello everybody ! I’ve got this problem : my boss asked me to install 3 Windows Services made with Ruby on a new computer, because he wants to replace the one witch is actually in use. I found the Ruby files on the o…

---

## [Minimizing memory usage](https://www.ruby-forum.com/t/minimizing-memory-usage/165673)

<div class="topic-metadata">

**Author:** [@Martijn\_S](https://www.ruby-forum.com/u/Martijn_S)\
**Replies:** 20\
**Last updated:** [April 24, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/minimizing-memory-usage/165673 "2009-04-24T14:57:13Z")

</div>

Hi all, As you might know we run a small Rails hosting business in the Netherlands. I’m currently planning to offer shared JRuby hosting through the Glassfish gem or possibly mongrel (no ‘real’ app server just yet),…

---

## [Needed only the Domain name from an url](https://www.ruby-forum.com/t/needed-only-the-domain-name-from-an-url/166164)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 4\
**Last updated:** [April 24, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/needed-only-the-domain-name-from-an-url/166164 "2009-04-24T14:31:49Z")

</div>

hi, Suppose if i give, url=“www.google.com/picasa/images/1” I need only the string “google” which is the domain name. right now i have tried this, require ‘rubygems’ require ‘uri’ url = “http://www.google.com/pic…

---

## [Ruby plugin for eclipse](https://www.ruby-forum.com/t/ruby-plugin-for-eclipse/166159)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 3\
**Last updated:** [April 24, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/ruby-plugin-for-eclipse/166159 "2009-04-24T13:59:40Z")

</div>

Dear all Rubyist, I cant find the Ruby Plugin for eclipse. updatesite.rubypeople.org/releasedosen’t work anymore. I want to use with eclipse. Version: 3.4.2 Build id: M20090211-1700 many thanks in advance, salai

---

## [Is there a better way of doing this](https://www.ruby-forum.com/t/is-there-a-better-way-of-doing-this/166331)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 16\
**Last updated:** [April 24, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/is-there-a-better-way-of-doing-this/166331 "2009-04-24T13:38:04Z")

</div>

I have three classes. module mymodule class Abstract end class A \< Abstract end class B \< Abstract end end And I want the third class to subclass class A or B dependent on parameter passed. my\_src is also the …

---

## [Polymorphism](https://www.ruby-forum.com/t/polymorphism/165990)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 13\
**Last updated:** [April 24, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/polymorphism/165990 "2009-04-24T12:30:27Z")

</div>

As much as I like Ruby, I do miss the polymorphic behavior of routines in Java and C++. There are frequently times in which it would be useful to have constructors (or routines) that take different arguments. I do see…

---

## [Extending ruby classes - Against new methods?](https://www.ruby-forum.com/t/extending-ruby-classes-against-new-methods/166332)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [April 24, 2009, 11:57am UTC](https://www.ruby-forum.com/t/extending-ruby-classes-against-new-methods/166332 "2009-04-24T11:57:21Z")

</div>

Hi, Recently I added def strip! to class Array. I found that I needed it, and some of my arrays were collection of strings having whitespace. It was trivial, and I thought this could be part of standard ruby. But I …

---

## [Installation trouble?](https://www.ruby-forum.com/t/installation-trouble/166370)

<div class="topic-metadata">

**Author:** [@lostinruby](https://www.ruby-forum.com/u/lostinruby)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 11:28am UTC](https://www.ruby-forum.com/t/installation-trouble/166370 "2009-04-24T11:28:16Z")

</div>

Hi, I am very new to ruby and have hit a wall with the installation. I am using a Mac OS X 10.4.11(Tiger). I got everything installed correctly (Ruby Version 1.8.6, RubyGems 1.3.2, Rails Version 2.3.2, db adapter sql…

---

## [JRuby and eclipse plugin](https://www.ruby-forum.com/t/jruby-and-eclipse-plugin/166350)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 0\
**Last updated:** [April 24, 2009, 8:27am UTC](https://www.ruby-forum.com/t/jruby-and-eclipse-plugin/166350 "2009-04-24T08:27:17Z")

</div>

Hi,… I have a problem with running a ruby script from inside eclipse plugin. Simply, I created a ruby a script that calls some java functions from class inside eclipse plugin. the problem is that the script cannot loa…

---

## [Array.find with index](https://www.ruby-forum.com/t/array-find-with-index/166347)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 5\
**Last updated:** [April 24, 2009, 8:22am UTC](https://www.ruby-forum.com/t/array-find-with-index/166347 "2009-04-24T08:22:53Z")

</div>

How do I find matching expressions and return the match and the index of the match? Actually, I’d be happy with just the index. Basically, I want the Ruby way to: Given scalar s Given array a1 = \[\] which monotonical…

---

## [How to distinguish blocks of certain arity in 1.8](https://www.ruby-forum.com/t/how-to-distinguish-blocks-of-certain-arity-in-1-8/166203)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [April 24, 2009, 8:06am UTC](https://www.ruby-forum.com/t/how-to-distinguish-blocks-of-certain-arity-in-1-8/166203 "2009-04-24T08:06:30Z")

</div>

Hi all, I’d like to distinguish the two following blocks by means of their arity, but in Ruby 1.8 I don’t see how to do this as Proc#arity returns the same value. lambda {}.arity =\> -1 lambda {|\*a|}.arity =\> -1 Thi…

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

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