# Ruby

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

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

---

## [DRb Problems with Mac OS X 10.5.3](https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922)

<div class="topic-metadata">

**Author:** [@kschrader](https://www.ruby-forum.com/u/kschrader)\
**Replies:** 21\
**Last updated:** [June 24, 2008, 3:25am UTC](https://www.ruby-forum.com/t/drb-problems-with-mac-os-x-10-5-3/138922 "2008-06-24T03:25:18Z")

</div>

It looks like the Mac OS X 10.5.3 upgrade breaks DRb when it’s trying to open a TCPSocket. Looking into it now, but be warned: /opt/local/lib/ruby/1.8/drb/drb.rb:865:in initialize': getaddrinfo: nodename nor servname …

---

## [Code Review: FileStatFix](https://www.ruby-forum.com/t/code-review-filestatfix/141252)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 1\
**Last updated:** [June 24, 2008, 2:59am UTC](https://www.ruby-forum.com/t/code-review-filestatfix/141252 "2008-06-24T02:59:31Z")

</div>

tfpt review “/shelveset:FileStatFix;REDMOND\\dremy” Comment : Fixes bug \[#20412\] File::Stat

---

## [Wrong load path and/or require](https://www.ruby-forum.com/t/wrong-load-path-and-or-require/140691)

<div class="topic-metadata">

**Author:** [@Remi\_Gillig](https://www.ruby-forum.com/u/Remi_Gillig)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/wrong-load-path-and-or-require/140691 "2008-06-23T23:45:49Z")

</div>

Hello, I am just messing around with Ruby and its internals. I am embedding Ruby but without using the library, I directly link the .c files of Ruby with my program. I got it working with the same code as I used for …

---

## [One strange question](https://www.ruby-forum.com/t/one-strange-question/141011)

<div class="topic-metadata">

**Author:** [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Replies:** 5\
**Last updated:** [June 23, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/one-strange-question/141011 "2008-06-23T22:37:12Z")

</div>

Hi all, I’m 17 years old, I know XHTML,CSS,PHP+MySQL, few JavaScript and Ruby. I want to know, enough to be programmer? Thanks.

---

## [Rails threaded file upload via cURL](https://www.ruby-forum.com/t/rails-threaded-file-upload-via-curl/141235)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 0\
**Last updated:** [June 23, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/rails-threaded-file-upload-via-curl/141235 "2008-06-23T22:30:46Z")

</div>

Hi All, I am currently working on a project that needs to upload multiple files to a server. It needs to do so in quick fashion. Originally I had a script that simply uploaded files serially and it worked like a ch…

---

## [Zed and Luis drop the bomb on Ruby's poor performance](https://www.ruby-forum.com/t/zed-and-luis-drop-the-bomb-on-rubys-poor-performance/95125)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 116\
**Last updated:** [June 23, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/zed-and-luis-drop-the-bomb-on-rubys-poor-performance/95125 "2008-06-23T21:18:31Z")

</div>

The O’Reilly blog has two great interviews posted from the last week or so. The first \[1\] is with Zed S., the author of Mongrel (and a bunch of other Ruby frameworks and utilities). A follow-up interview with one of t…

---

## [Botched debian install](https://www.ruby-forum.com/t/botched-debian-install/134791)

<div class="topic-metadata">

**Author:** [@labyrinth](https://www.ruby-forum.com/u/labyrinth)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/botched-debian-install/134791 "2008-06-23T20:52:30Z")

</div>

I botched my ruby install to the point where I don’t know how to fix it. I used several different guides to get it installed, but I read differeing opinions on how to do it in Debian and uninstalled, reinstalled sever…

---

## [Extending a class](https://www.ruby-forum.com/t/extending-a-class/141153)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/extending-a-class/141153 "2008-06-23T20:16:56Z")

</div>

Hi All I’m trying to add methods to a class like: class Person def refresh p “refresh” end def dup P “DUP” end TIMED\_M = \[:refresh, :dup\] TIMED\_M.each do |method| p method alias\_method :"#{method}\_without\_t…

---

## [Mock web services through ruby](https://www.ruby-forum.com/t/mock-web-services-through-ruby/141217)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/mock-web-services-through-ruby/141217 "2008-06-23T20:10:29Z")

</div>

Hi, Has anyone managed to mock web services through Ruby. And if so, could anyone give me any pointers to libraries or frameworks? Aidy

---

## [Exception in thread not printed](https://www.ruby-forum.com/t/exception-in-thread-not-printed/141098)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 3\
**Last updated:** [June 23, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/exception-in-thread-not-printed/141098 "2008-06-23T18:08:02Z")

</div>

Hi, I’m not sure if this is a bug or “by design”, I have seen some references that it may be by design. The problem is it makes debugging very hard in jruby when a thread just dies with no error messages printed. D…

---

## [Timeout when reading from a pipe](https://www.ruby-forum.com/t/timeout-when-reading-from-a-pipe/141207)

<div class="topic-metadata">

**Author:** [@melmoth](https://www.ruby-forum.com/u/melmoth)\
**Replies:** 3\
**Last updated:** [June 23, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/timeout-when-reading-from-a-pipe/141207 "2008-06-23T17:49:14Z")

</div>

Hi, I would like to launch a process (external executable) and raise an exception if I cannot read any output from it on the stdout. Is that possible? Thanks in advance def execute\_mencoder(command) IO.popen(comman…

---

## [Sequel 2.1 and Windows](https://www.ruby-forum.com/t/sequel-2-1-and-windows/141035)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/sequel-2-1-and-windows/141035 "2008-06-23T17:05:48Z")

</div>

Does anyone have Sequel 2.1 running in Windows? I get the following when I require ‘sequel’ irb(main):002:0\> require ‘sequel’ Errno::ENOENT: No such file or directory - cl -nologo -LD -Wall -W -Wpointer-arith -Wcast-…

---

## [VM::InstructionSequence.load $B$N%P%0(B](https://www.ruby-forum.com/t/vm-instructionsequence-load-b-n-p-0-b/141195)

<div class="topic-metadata">

**Author:** [@Shumpei\_A](https://www.ruby-forum.com/u/Shumpei_A)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/vm-instructionsequence-load-b-n-p-0-b/141195 "2008-06-23T16:48:09Z")

</div>

e$B@V0f$H8@$$$^$9!%e(B e$B:rF|$Ne(BRejectRejectKaigie$B$GH/I=$7$?e(BVM::InstructionSequence.loade$B$N%P%0$rJse(B e$B9p$7$^$9!%e(B $ruby\_custom -v ruby 1.9.0 (2008-06-23 revision 16869) \[x86\_64-linux\] loade$B$GDj5A$7…

---

## [Texture/image similarity with ruby? (computer vision)](https://www.ruby-forum.com/t/texture-image-similarity-with-ruby-computer-vision/140876)

<div class="topic-metadata">

**Author:** [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Replies:** 8\
**Last updated:** [June 23, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/texture-image-similarity-with-ruby-computer-vision/140876 "2008-06-23T16:42:50Z")

</div>

Still no luck so far, still looking. Anyone?

---

## [Using memcached session with Jruby / rails](https://www.ruby-forum.com/t/using-memcached-session-with-jruby-rails/140952)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 4\
**Last updated:** [June 23, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/using-memcached-session-with-jruby-rails/140952 "2008-06-23T16:17:31Z")

</div>

Anyone know how to use memcached or file based sessions with Rails under Jruby ? Is there a way to override the servlet session management to be handled by rails ? Thanks Adam

---

## [Improved error handling if IronRuby.Libraries is not referenced](https://www.ruby-forum.com/t/improved-error-handling-if-ironruby-libraries-is-not-referenced/141164)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 3\
**Last updated:** [June 23, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/improved-error-handling-if-ironruby-libraries-is-not-referenced/141164 "2008-06-23T15:57:32Z")

</div>

Hi, This might sound like an odd request, but it has just caught me out. Basically, I wanted to host IronRuby within a Console Application (for a demo), however I didn’t reference IronRuby.Libraries, as a result I w…

---

## [JRuby Presentation: Need ideas/input](https://www.ruby-forum.com/t/jruby-presentation-need-ideas-input/141162)

<div class="topic-metadata">

**Author:** [@gennosuke](https://www.ruby-forum.com/u/gennosuke)\
**Replies:** 4\
**Last updated:** [June 23, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/jruby-presentation-need-ideas-input/141162 "2008-06-23T15:52:16Z")

</div>

Figure I’d through this out there to get some input from the community … I’m going to be doing a JRuby on Rails presentation for the AOL Rails group down in Dulles, VA next month at the AOL campus. I’m planning on do…

---

## [Changing a file inline on Windows](https://www.ruby-forum.com/t/changing-a-file-inline-on-windows/141119)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 4\
**Last updated:** [June 23, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/changing-a-file-inline-on-windows/141119 "2008-06-23T15:50:21Z")

</div>

Here is my current method for editing files: filename = File.join(‘path’, ‘to’, ‘file’) content = \[\] File.open(filename, ‘r’) do |file| content = file.readlines end content.collect! do |line| line.gsub!(/six/, “h…

---

## [Changing the program to work with files](https://www.ruby-forum.com/t/changing-the-program-to-work-with-files/141085)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 4\
**Last updated:** [June 23, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/changing-the-program-to-work-with-files/141085 "2008-06-23T15:18:47Z")

</div>

Hi every body I have a program that is working with Console ( input - output) I wanted to see if anybody can help me to modify it so that it takes its input from a file (text) and write its output also to a file (bina…

---

## ['ArgumentError: bad value for range' for range of Times](https://www.ruby-forum.com/t/argumenterror-bad-value-for-range-for-range-of-times/141184)

<div class="topic-metadata">

**Author:** [@David\_Bird](https://www.ruby-forum.com/u/David_Bird)\
**Replies:** 1\
**Last updated:** [June 23, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/argumenterror-bad-value-for-range-for-range-of-times/141184 "2008-06-23T14:14:35Z")

</div>

Hi, When using the calendar\_date\_select plugin, Rails kept throwing an ArgumentError: ‘bad value for range’, but only on Windows (fine on OSX). Playing around in the console I get… 38.years.ago…10.years.ago =\> Tue…

---

## [Rake tasks aborting with weird postgres issue](https://www.ruby-forum.com/t/rake-tasks-aborting-with-weird-postgres-issue/141193)

<div class="topic-metadata">

**Author:** [@Nic\_Young](https://www.ruby-forum.com/u/Nic_Young)\
**Replies:** 1\
**Last updated:** [June 23, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/rake-tasks-aborting-with-weird-postgres-issue/141193 "2008-06-23T13:32:20Z")

</div>

Hey guys, if anyone could help me here I’d really appreciate it. I’ve recently switched to Rails 2.1, and having a hard time with rake tasks and postgres. When I try run anything that involves db:test:purge it tell m…

---

## [Variable corruption when using ioctl?](https://www.ruby-forum.com/t/variable-corruption-when-using-ioctl/140994)

<div class="topic-metadata">

**Author:** [@A\_Sussex](https://www.ruby-forum.com/u/A_Sussex)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/variable-corruption-when-using-ioctl/140994 "2008-06-23T13:14:10Z")

</div>

I’m attempting to read the address assigned to an interface. After calling ioctl(SIOCGIFADDR) - which is 0x8915 on my system - I find that the destination buffer is corrupted and contains random garbage. Here I do thi…

---

## [Rails - Access denied for user 'root'@'localhost'](https://www.ruby-forum.com/t/rails-access-denied-for-user-root-localhost/141165)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 5\
**Last updated:** [June 23, 2008, 11:51am UTC](https://www.ruby-forum.com/t/rails-access-denied-for-user-root-localhost/141165 "2008-06-23T11:51:16Z")

</div>

I suppose I should post this in a Rails mailing list or wiki, but the medium I’m used to is USENET, so I thought I’d try here first. (I don’t think there’s a Rails newsgroup - please correct me if I’m wrong - and I s…

---

## [Decorating "types"](https://www.ruby-forum.com/t/decorating-types/141183)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [June 23, 2008, 11:23am UTC](https://www.ruby-forum.com/t/decorating-types/141183 "2008-06-23T11:23:58Z")

</div>

One can, in ruby, easily do something like this: @array\_foobar = \[\] @array\_foobar \<\< ‘bla’ @array\_foobar \<\< ‘ble’ Most, if not everyone I know, will naturally omit the array\_ part, and I even see some people that li…

---

## [Vancouver.rb - Open Ruby Hack Night #3 - Today 7pm - Whenever (9ish) @ Waves Coffee](https://www.ruby-forum.com/t/vancouver-rb-open-ruby-hack-night-3-today-7pm-whenever-9ish-waves-coffee/141174)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [June 23, 2008, 9:19am UTC](https://www.ruby-forum.com/t/vancouver-rb-open-ruby-hack-night-3-today-7pm-whenever-9ish-waves-coffee/141174 "2008-06-23T09:19:33Z")

</div>

Hello, Just a reminder that you’re invited to drop by for the weekly Vancouver Open Ruby Hack Night at Waves Coffee in downtown Vancouver (\*) at the Hastings and Richards corner (offering free wireless) one block fro…

---

## [Little problem (google hiring puzzle)](https://www.ruby-forum.com/t/little-problem-google-hiring-puzzle/140527)

<div class="topic-metadata">

**Author:** [@exexex](https://www.ruby-forum.com/u/exexex)\
**Replies:** 42\
**Last updated:** [June 23, 2008, 6:11am UTC](https://www.ruby-forum.com/t/little-problem-google-hiring-puzzle/140527 "2008-06-23T06:11:07Z")

</div>

Hi guys, I wonder if someone can find a pure ruby solution instead of mine (I still can get out of my loop mind): ################################################################################ There is an array A\[N\]…

---

## [RoR Help Authoring App](https://www.ruby-forum.com/t/ror-help-authoring-app/141169)

<div class="topic-metadata">

**Author:** [@aayla](https://www.ruby-forum.com/u/aayla)\
**Replies:** 0\
**Last updated:** [June 23, 2008, 5:50am UTC](https://www.ruby-forum.com/t/ror-help-authoring-app/141169 "2008-06-23T05:50:40Z")

</div>

Hi, Ive spent the whole morning searching for a help authoring application, and came across a couple of interesting ones, however im interested to know if there are any RoR apps out there. Similar to Adobe RoboHelp or …

---

## [My idea to read my email from my cell phone](https://www.ruby-forum.com/t/my-idea-to-read-my-email-from-my-cell-phone/141108)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 5:30am UTC](https://www.ruby-forum.com/t/my-idea-to-read-my-email-from-my-cell-phone/141108 "2008-06-23T05:30:44Z")

</div>

I have an idea on how to read email from my cell phone, I want to do this from my main email which doesn’t have a mobile portal. There is a portal for yahoo mail, but the idea is, suppose I go out to lunch for a coupl…

---

## [Regex - Exclude Multiple Characters and Global Scanning](https://www.ruby-forum.com/t/regex-exclude-multiple-characters-and-global-scanning/141044)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 3\
**Last updated:** [June 23, 2008, 3:35am UTC](https://www.ruby-forum.com/t/regex-exclude-multiple-characters-and-global-scanning/141044 "2008-06-23T03:35:32Z")

</div>

Hihi, I have 2 problems. --------------Question 1----------------------- Firstly, a Ruby question. I’m confused about how to match a single regular expression multiple times in a single string. For instance, ‘llglla…

---

## [\[ANN\] Gerbil 3.1.0](https://www.ruby-forum.com/t/ann-gerbil-3-1-0/141163)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [June 23, 2008, 2:28am UTC](https://www.ruby-forum.com/t/ann-gerbil-3-1-0/141163 "2008-06-23T02:28:16Z")

</div>

Gerbil is an extensible document generator based on eRuby that outputs to any format you want: plain text, HTML, LaTeX, UNIX man page, your own custom format, and so on. http://gerbil.rubyforge.org #######…

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

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