# Ruby

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

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

---

## [JRuby in Google Summer of Code 2008](https://www.ruby-forum.com/t/jruby-in-google-summer-of-code-2008/130298)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 5:53am UTC](https://www.ruby-forum.com/t/jruby-in-google-summer-of-code-2008/130298 "2008-02-27T05:53:54Z")

</div>

GSoC is back, as you’ve all heard. And we’re looking for a few good hackers to work on JRuby projects. There’s a whole slew of ideas already, and I’m sure you have some you can contribute. Have a look at the JRuby GSo…

---

## [Open-uri bug](https://www.ruby-forum.com/t/open-uri-bug/130256)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 5\
**Last updated:** [February 27, 2008, 5:52am UTC](https://www.ruby-forum.com/t/open-uri-bug/130256 "2008-02-27T05:52:44Z")

</div>

Hello all, I’m using open-uri combined with hpricot to make a basic web crawler that scrapes for different links that I need. It seems to be working perfectly, but I have encountered the following bug when this type o…

---

## [Unable to install sexp gem](https://www.ruby-forum.com/t/unable-to-install-sexp-gem/130291)

<div class="topic-metadata">

**Author:** [@vishyanand](https://www.ruby-forum.com/u/vishyanand)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 4:44am UTC](https://www.ruby-forum.com/t/unable-to-install-sexp-gem/130291 "2008-02-27T04:44:05Z")

</div>

I am getting error while installing sexp-0.1.gem (RuntimeError) Error instaling sexp-0.1.gem: sexp requires multi = 0.1 My ruby version is “ruby 1.8.5 (2006-12-25 patchlevel 12) \[i386-mswin32\]” What could be the re…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/130288)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 4:33am UTC](https://www.ruby-forum.com/t/unsubscribe/130288 "2008-02-27T04:33:37Z")

</div>

Please unsubscribe me. Thank you, Robert

---

## [IO.popen how to separate $stdout and $stderr](https://www.ruby-forum.com/t/io-popen-how-to-separate-stdout-and-stderr/130232)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 1:53am UTC](https://www.ruby-forum.com/t/io-popen-how-to-separate-stdout-and-stderr/130232 "2008-02-27T01:53:39Z")

</div>

when doing a : r = IO.popen( cmd ) are the outputs of the cmd still separated in $stdout and stderr ? how to retrieve them. my basic usage is for an xslt transform (xslt 2.0) using saxon8.jar : cmd = java -cp …/saxo…

---

## [Getting client ip address](https://www.ruby-forum.com/t/getting-client-ip-address/85280)

<div class="topic-metadata">

**Author:** [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 12:42am UTC](https://www.ruby-forum.com/t/getting-client-ip-address/85280 "2008-02-27T00:42:18Z")

</div>

whats the best way to get a client ip address. I am using rails if that makes any difference

---

## [How to make the gem?](https://www.ruby-forum.com/t/how-to-make-the-gem/186770)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 12:40am UTC](https://www.ruby-forum.com/t/how-to-make-the-gem/186770 "2008-02-27T00:40:57Z")

</div>

Hi all, I wanted to test thin at work, on Windows with VC++ 2005, but I can’t install it because I got an error with the compilation of em.cpp, because EINTR was not included in the “project.h”. I would like to test…

---

## [Rutema 0.5.0 Released](https://www.ruby-forum.com/t/rutema-0-5-0-released/130277)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/rutema-0-5-0-released/130277 "2008-02-26T23:52:08Z")

</div>

rutema version 0.5.0 has been released! DESCRIPTION: Rutema provides the basis for building tools that can manage the execution of tests as well as an example implementation as proof-of-concept for the ideas behind i…

---

## [Regexp anomalous behavior](https://www.ruby-forum.com/t/regexp-anomalous-behavior/130192)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/regexp-anomalous-behavior/130192 "2008-02-26T22:58:04Z")

</div>

Consider following program (test.rb): puts ‘aaabbbaaa’.match(‘aaa’).length puts ‘aaabbbaaa’.match(‘x’).length With CRuby, the result or running is: \[08:49:31 ~\] ruby test.rb 1 test.rb:2: undefined method \`length’ f…

---

## [Re: Windows System Administration: State of the Art](https://www.ruby-forum.com/t/re-windows-system-administration-state-of-the-art/130263)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/re-windows-system-administration-state-of-the-art/130263 "2008-02-26T21:44:22Z")

</div>

I think that Perl has a richer library of Windows functions available by virtue of the fact that it’s been around longer. However, Ruby’s WIN32OLE and WIN32API libraries allow you to do most of the common Windows sy…

---

## [Having trouble reading from stderr](https://www.ruby-forum.com/t/having-trouble-reading-from-stderr/130172)

<div class="topic-metadata">

**Author:** [@crose1](https://www.ruby-forum.com/u/crose1)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/having-trouble-reading-from-stderr/130172 "2008-02-26T20:25:48Z")

</div>

Hi, I’m trying to write a script that will establish an ssh tunnel through “gatewaymachine.com” to a “targetmachine” on the other side. Sometimes there’s already a tunnel established on the same port, in which case, …

---

## [Slide Show (S9) v0.2 - Now w/ "Loss-Free" Vector Graphics Gradient Themes](https://www.ruby-forum.com/t/slide-show-s9-v0-2-now-w-loss-free-vector-graphics-gradient-themes/130249)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/slide-show-s9-v0-2-now-w-loss-free-vector-graphics-gradient-themes/130249 "2008-02-26T19:21:34Z")

</div>

Hello, I’ve uploaded version 0.2 of slideshow - a free web alternative to PowerPoint and Keynote in Ruby that lets you create slide shows and author slides in plain text using a wiki-style markup language that’s easy…

---

## [2008 Summer of Code](https://www.ruby-forum.com/t/2008-summer-of-code/130247)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/2008-summer-of-code/130247 "2008-02-26T19:02:03Z")

</div>

If you’re interested in being a GSoC mentor in 2008, I need you to contact me before 3/1. I’m also still looking for project ideas to add to a Ruby GSoC ‘Ideas Page’. Feel free to contact me directly or post to the …

---

## [\# arguments to rand](https://www.ruby-forum.com/t/arguments-to-rand/130227)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 6\
**Last updated:** [February 26, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/arguments-to-rand/130227 "2008-02-26T17:14:38Z")

</div>

hi - can someone help with suggesting what is wrong below? i am trying to add a simple method to array#random but get the wrong number of args error… have tried lots of variations! class Array def random n = ran…

---

## [Multiple substitutions in one pass](https://www.ruby-forum.com/t/multiple-substitutions-in-one-pass/130231)

<div class="topic-metadata">

**Author:** [@chriscauser](https://www.ruby-forum.com/u/chriscauser)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/multiple-substitutions-in-one-pass/130231 "2008-02-26T16:24:02Z")

</div>

I have a long document which I am trying to parse. I am coming unstuck trying to speed it up and get all the substitutions out the way quickly. I have a hash array of original and new things to substitute, and it work…

---

## [Array help needed](https://www.ruby-forum.com/t/array-help-needed/130226)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 6\
**Last updated:** [February 26, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/array-help-needed/130226 "2008-02-26T15:49:39Z")

</div>

Hello, sorry if this question is stupid but I can’t find a solution after several readings about Arrays Array ‘a’ contains several objets (ruby classes instances), each instance have an id property I need a clean sol…

---

## [Download Zip File](https://www.ruby-forum.com/t/download-zip-file/130216)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/download-zip-file/130216 "2008-02-26T15:36:34Z")

</div>

I have tried to use rio gem to download a zip file (in windows) but it results in a corrupt d/l. I think this is because binary mode is not available in rio. So I am now trying to use open-uri require ‘open-uri’ f =…

---

## [Rack 0.3, a modular Ruby webserver interface](https://www.ruby-forum.com/t/rack-0-3-a-modular-ruby-webserver-interface/130217)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/rack-0-3-a-modular-ruby-webserver-interface/130217 "2008-02-26T14:30:45Z")

</div>

Hello, Today I’m proud to release Rack 0.3. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and …

---

## [How do C programmers do unit testing?](https://www.ruby-forum.com/t/how-do-c-programmers-do-unit-testing/128919)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 12\
**Last updated:** [February 26, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/how-do-c-programmers-do-unit-testing/128919 "2008-02-26T14:23:03Z")

</div>

This may seem like a silly question, but how do C programmers (assume gcc/linux for now) do behavior-driven/test-driven development? Aside from the obvious cheat (using RSpec to compile, link and execute the C code) a…

---

## [Wxruby application skeleton like from fxruby](https://www.ruby-forum.com/t/wxruby-application-skeleton-like-from-fxruby/130042)

<div class="topic-metadata">

**Author:** [@gerapcik](https://www.ruby-forum.com/u/gerapcik)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/wxruby-application-skeleton-like-from-fxruby/130042 "2008-02-26T14:19:30Z")

</div>

hi, i was searching an application skeleton for wxruby like ‘fxshutter’ example from fx ruby. here is a link: http://www.fxruby.org/doc/examples.html i think that with wxruby this is possible. thanks

---

## [Attr\_writer vs attr\_accessor](https://www.ruby-forum.com/t/attr-writer-vs-attr-accessor/130194)

<div class="topic-metadata">

**Author:** [@ycsunil](https://www.ruby-forum.com/u/ycsunil)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/attr-writer-vs-attr-accessor/130194 "2008-02-26T12:11:58Z")

</div>

Hello all, From readings I understood that attr\_accessor is the one which has the property of attr\_reader and attr\_writer. If we define a variable as attr\_writer, we can use it to read and write as well. My question i…

---

## [\--host=i586-mingw32msvc](https://www.ruby-forum.com/t/host-i586-mingw32msvc/130020)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/host-i586-mingw32msvc/130020 "2008-02-26T12:04:54Z")

</div>

e$B?\\F#$G$9!#e(B –host=i586-mingw32msvce$B$Ge(Bconfiguree$B$7$Fe(Bmsvcrc-ruby190.dlle$B$r%/e(B e$B%m%9%3%s%Q%$%k$G%S%k%I$9$k$?$a$N%Q%C%A$G$9!#0J2\<$,@.8y$9$k$he(B e$B$&$K$J$j$^$9!#e(B % ./configure --host=i586-mingw32…

---

## [Hot-swapping classes using Kernel.load -- catching excptns](https://www.ruby-forum.com/t/hot-swapping-classes-using-kernel-load-catching-excptns/130203)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 11:46am UTC](https://www.ruby-forum.com/t/hot-swapping-classes-using-kernel-load-catching-excptns/130203 "2008-02-26T11:46:54Z")

</div>

In my Ruby script, I’d like to be able to hotswap classes. The best way I’ve found to do this thus far is with the Kernel.load method: load ‘class\_file.rb’ It’s not perfect – it can’t redefine constants, for instance…

---

## [How to find out memory leak?](https://www.ruby-forum.com/t/how-to-find-out-memory-leak/186734)

<div class="topic-metadata">

**Author:** [@pluskid](https://www.ruby-forum.com/u/pluskid)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 11:01am UTC](https://www.ruby-forum.com/t/how-to-find-out-memory-leak/186734 "2008-02-26T11:01:46Z")

</div>

Hi, all! I’m having memory leak problem with my program, but can’t find where’s the leak. I have a program written in pure-Ruby. It implemented a Chinese word segment algorithm. I call segment(text)' to get the resu…

---

## [Ruby-1.9.0-0 make error](https://www.ruby-forum.com/t/ruby-1-9-0-0-make-error/127337)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 10:29am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-0-make-error/127337 "2008-02-26T10:29:13Z")

</div>

e$BK-J!$G$9!#e(B e$B:G6a$N%9%J%C%W%7%g%C%HHG$G$O5/$-$J$/$J$C$?$N$G$9$,%P%0$,e(B e$B@x:\_2=$7$?$@$1$@$H$$$1$J$$$N$GJs9p$7$F$\*$-$^$9!#e(B ruby 1.9.0 (2007-12-25 revision 14709) e$B$re(B make e$B$9$k$He(B rbconfig.rb e$…

---

## [ARM Win CE / CEGCC progress & memory issues](https://www.ruby-forum.com/t/arm-win-ce-cegcc-progress-memory-issues/130198)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 10:15am UTC](https://www.ruby-forum.com/t/arm-win-ce-cegcc-progress-memory-issues/130198 "2008-02-26T10:15:28Z")

</div>

I’ve got more pieces of the standard Unix version of Ruby 1.8.6 working on ARM / Windows CE with CEGCC. I’ve built ARM/WinCE/CEGCC versions of zlib and openssl that have allowed me to compile and load: ext/bigdecimal…

---

## [Linq to SQL with IronRuby... Is it Possible...?](https://www.ruby-forum.com/t/linq-to-sql-with-ironruby-is-it-possible/129518)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 9\
**Last updated:** [February 26, 2008, 9:53am UTC](https://www.ruby-forum.com/t/linq-to-sql-with-ironruby-is-it-possible/129518 "2008-02-26T09:53:53Z")

</div>

hello, i’m a newbie here. joined now. i’m exploring ironruby from scratch. few questions to start with… LINQ to SQL… is a nice thing currently supported in C# and Vb.Net. i would like to know… if this has been imple…

---

## [Deprecated](https://www.ruby-forum.com/t/deprecated/186771)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 8:46am UTC](https://www.ruby-forum.com/t/deprecated/186771 "2008-02-26T08:46:07Z")

</div>

This just occurred to me (for Java fans): class Module def deprecated \*meths meths.each do |me| aliased = “deprecate#{me}” alias\_method aliased, me class\_eval “def #{me}(\*a,&b) $stderr.puts ‘WARNING: deprecated me…

---

## [Another win32 service error](https://www.ruby-forum.com/t/another-win32-service-error/186776)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 8:26am UTC](https://www.ruby-forum.com/t/another-win32-service-error/186776 "2008-02-26T08:26:11Z")

</div>

Is there anything that my executable should do in order to be a service. i have created services before with vb and have not experienced issues. bat file is a simple one having this statemetn. thin start -e productio…

---

## [Suprising behaviour with "def property=" method](https://www.ruby-forum.com/t/suprising-behaviour-with-def-property-method/130050)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 13\
**Last updated:** [February 26, 2008, 7:31am UTC](https://www.ruby-forum.com/t/suprising-behaviour-with-def-property-method/130050 "2008-02-26T07:31:58Z")

</div>

I had a bit of a surprise with the following class Foo def bar(value) @bar = value.upcase end end f = Foo.new my\_bar = (f.bar = “bar”) I initially thought that my\_bar would == “BAR” but in fact it equals “bar”. …

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

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