# Ruby

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

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

---

## [Webby 0.9.1 (Gallus Gallus Toothicus)](https://www.ruby-forum.com/t/webby-0-9-1-gallus-gallus-toothicus/148269)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 11, 2008, 5:17am UTC](https://www.ruby-forum.com/t/webby-0-9-1-gallus-gallus-toothicus/148269 "2008-09-11T05:17:26Z")

</div>

Webby version 0.9.1 by Tim P. http://webby.rubyforge.org/ (the “Gallus Gallus Toothicus” release) == DESCRIPTION Webby is a fantastic little website management system. It would be called a content management syste…

---

## [How to change the owner of a method in a block?](https://www.ruby-forum.com/t/how-to-change-the-owner-of-a-method-in-a-block/148201)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 7\
**Last updated:** [September 11, 2008, 4:14am UTC](https://www.ruby-forum.com/t/how-to-change-the-owner-of-a-method-in-a-block/148201 "2008-09-11T04:14:18Z")

</div>

Hi, let me explain with this simple code: class A def initialize(&blk) blk.call end def hello puts “HELLO !!!” end end a=A.new { hello() } =\> block\_1.rb:13: undefined method hello' for main:Object (NoMethodErr…

---

## [YAML doesn't seem to be working properly](https://www.ruby-forum.com/t/yaml-doesnt-seem-to-be-working-properly/148180)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 3\
**Last updated:** [September 11, 2008, 3:29am UTC](https://www.ruby-forum.com/t/yaml-doesnt-seem-to-be-working-properly/148180 "2008-09-11T03:29:16Z")

</div>

Hi, I’m trying to marshal some data using Ruby’s YAML library, but the files that YAML.rb is creating aren’t loading up properly. I’ve brought in the libraries from the most recent 1.8.6 branch, but the problem isn’t …

---

## [Frustrated: System call timeouts](https://www.ruby-forum.com/t/frustrated-system-call-timeouts/147873)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 10\
**Last updated:** [September 11, 2008, 2:57am UTC](https://www.ruby-forum.com/t/frustrated-system-call-timeouts/147873 "2008-09-11T02:57:38Z")

</div>

Hello all, I am having some (un)fun with timing out a database calls. Basically I have some database calls that go out to a remote database server on the other side of the planet, (using Rails’ active record). This w…

---

## [Ruby Bug? Windows and UDPSocket and Errno:ENOTCONN](https://www.ruby-forum.com/t/ruby-bug-windows-and-udpsocket-and-errno-enotconn/148182)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 2\
**Last updated:** [September 11, 2008, 2:56am UTC](https://www.ruby-forum.com/t/ruby-bug-windows-and-udpsocket-and-errno-enotconn/148182 "2008-09-11T02:56:28Z")

</div>

If I have a pair of Win2k Ruby processes bouncing UDP packets back and forth… After awhile one of them dies with Errno::ENOTCONN The code works under Linux but not under Win2k, neither on ruby-1.8.6 nor 1.8.7. Any g…

---

## [Code Review: RhsArg](https://www.ruby-forum.com/t/code-review-rhsarg/148234)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [September 11, 2008, 12:47am UTC](https://www.ruby-forum.com/t/code-review-rhsarg/148234 "2008-09-11T00:47:50Z")

</div>

tfpt review “/shelveset:RhsArg;REDMOND\\tomat” Implements block dispatch for R(N, \*, =) case, i.e. N arguments, a splat argument and a right hand side of assignment are passed to a block. Exxample: class C define\_me…

---

## [Ruby Open Space (Ruby DCamp) event seeking JRuby weenies](https://www.ruby-forum.com/t/ruby-open-space-ruby-dcamp-event-seeking-jruby-weenies/148252)

<div class="topic-metadata">

**Author:** [@elight](https://www.ruby-forum.com/u/elight)\
**Replies:** 1\
**Last updated:** [September 11, 2008, 12:24am UTC](https://www.ruby-forum.com/t/ruby-open-space-ruby-dcamp-event-seeking-jruby-weenies/148252 "2008-09-11T00:24:26Z")

</div>

Guys, With a help of a bunch of locals, I’ve put together what will be one of the first Ruby Open Space events: Ruby DCamp. Being somewhat of a JRuby nut (and a small-time contributor), I’d love to have some other JR…

---

## [Mod\_fcgid: couldn't bind unix domain socket](https://www.ruby-forum.com/t/mod-fcgid-couldnt-bind-unix-domain-socket/148255)

<div class="topic-metadata">

**Author:** [@Gambito](https://www.ruby-forum.com/u/Gambito)\
**Replies:** 0\
**Last updated:** [September 11, 2008, 12:10am UTC](https://www.ruby-forum.com/t/mod-fcgid-couldnt-bind-unix-domain-socket/148255 "2008-09-11T00:10:24Z")

</div>

hi! i’m having the following problem installing fast-cgi to use ruby on rails \[Wed Sep 10 16:48:35 2008\] \[error\] (13)Permission denied: mod\_fcgid: couldn’t bind unix domain socket /tmp/fcgid\_sock/6389.14 is a very s…

---

## [Commandline options and output-"method"](https://www.ruby-forum.com/t/commandline-options-and-output-method/148249)

<div class="topic-metadata">

**Author:** [@skaverat](https://www.ruby-forum.com/u/skaverat)\
**Replies:** 3\
**Last updated:** [September 11, 2008, 12:07am UTC](https://www.ruby-forum.com/t/commandline-options-and-output-method/148249 "2008-09-11T00:07:27Z")

</div>

I’ve got two questions: Is it possible to run a ruby script with options? i.e.: foobar.rb --someoption foobar.rb -o secondly, (how) is it possible to change the output of a script to a static output, so you only up…

---

## [Build box nearly ready](https://www.ruby-forum.com/t/build-box-nearly-ready/148165)

<div class="topic-metadata">

**Author:** [@C.JSAdams-Collier](https://www.ruby-forum.com/u/C.JSAdams-Collier)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/build-box-nearly-ready/148165 "2008-09-10T23:16:33Z")

</div>

Seo, Oh, please help me. I’ve got all the deps installed. Now I’m at the point where it doesn’t build and you usually build a patch to make it work. Could you take it from here? :slight\_smile: Cheers, C.J.

---

## [Recurrence 0.1.0, Ruby library for recurring stuff](https://www.ruby-forum.com/t/recurrence-0-1-0-ruby-library-for-recurring-stuff/147678)

<div class="topic-metadata">

**Author:** [@edvardm](https://www.ruby-forum.com/u/edvardm)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/recurrence-0-1-0-ruby-library-for-recurring-stuff/147678 "2008-09-10T23:05:25Z")

</div>

git clone git://github.com/EdvardM/recurrence.git From the README: Recurrence \*\* Overview Recurrence provides a simple class for handling recurring, time- associated objects. The goal is to create a general-purpos…

---

## [Invalid char '\\220' in expression](https://www.ruby-forum.com/t/invalid-char-220-in-expression/148206)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 6\
**Last updated:** [September 10, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/invalid-char-220-in-expression/148206 "2008-09-10T21:45:06Z")

</div>

Greetings, Using Ruby in NetBeans I’ve got following error in separate cases with gems: /.so:1: Invalid char \`\\220’ in expression. What is it about ? Thanks.

---

## [Terminator-0.4.2](https://www.ruby-forum.com/t/terminator-0-4-2/148244)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/terminator-0-4-2/148244 "2008-09-10T21:34:33Z")

</div>

NAME terminator SYNOPSIS an external timeout mechanism based on processes and signals. safe on windows. safe for system calls. safe for minors. INSTALL gem install terminator URIS http://codeforpeople.com/lib…

---

## [State-0.4.2](https://www.ruby-forum.com/t/state-0-4-2/148243)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/state-0-4-2/148243 "2008-09-10T21:32:47Z")

</div>

NAME state SYNOPSIS platform agnostic persistent state for ruby processes based on sqlite DESCRIPTION state provides an extremely simple to use state mechanism for ruby programs which require state between invocat…

---

## [RubyConf Registration is Open!](https://www.ruby-forum.com/t/rubyconf-registration-is-open/148241)

<div class="topic-metadata">

**Author:** [@Chad\_F](https://www.ruby-forum.com/u/Chad_F)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/rubyconf-registration-is-open/148241 "2008-09-10T21:28:40Z")

</div>

Hello all! We are excited to announce that registration for RubyConf 2008 is now open! RubyConf will be held November 6-8 in Orlando, FL this year. We have a killer program including all sorts of diverse topics (mus…

---

## [Find a button using mechanize](https://www.ruby-forum.com/t/find-a-button-using-mechanize/147926)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 20\
**Last updated:** [September 10, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/find-a-button-using-mechanize/147926 "2008-09-10T20:59:00Z")

</div>

Hi all, I wonder how I find a button in a page(buttons #\<WWW::Mechanize::Form::Button:0x3a69908 @name=nil, @value=“Go”\>}) with mechanize. Thanks, Li

---

## [Code Review: MethodBinder23](https://www.ruby-forum.com/t/code-review-methodbinder23/148238)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/code-review-methodbinder23/148238 "2008-09-10T20:24:40Z")

</div>

tfpt review “/shelveset:MethodBinder23;REDMOND\\tomat” Ruby changes This change significantly affects Ruby method definitions in C# libraries: CodeContext hidden parameter is replaced with RubyScope or RubyContext …

---

## [Calling DLL's from Ruby](https://www.ruby-forum.com/t/calling-dlls-from-ruby/147641)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/calling-dlls-from-ruby/147641 "2008-09-10T19:47:36Z")

</div>

I’ve written quite a bit of logic into DLL’s using C#. I would like to leverage that logic in my Ruby scripts, but I am unsure where to start or how to start. I’ve installed RubyClr, but no documentation installed w…

---

## [CGI unescapeHTML to escape code '&# 8211;'](https://www.ruby-forum.com/t/cgi-unescapehtml-to-escape-code-8211/147962)

<div class="topic-metadata">

**Author:** [@shashank\_hi](https://www.ruby-forum.com/u/shashank_hi)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/cgi-unescapehtml-to-escape-code-8211/147962 "2008-09-10T19:13:40Z")

</div>

I’m reading an XML file that has the html codes for hyphens and stuff like that. I tried escaping hyphen’s html code, which is ‘&# 8211;’ (space added to avoid interpretation) with the CGI::unescapeHTML function. But …

---

## [Problems with oniguruma lookahead](https://www.ruby-forum.com/t/problems-with-oniguruma-lookahead/148169)

<div class="topic-metadata">

**Author:** [@xiongchiamiov](https://www.ruby-forum.com/u/xiongchiamiov)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/problems-with-oniguruma-lookahead/148169 "2008-09-10T17:59:46Z")

</div>

Ruby 1.8.6 with Oniguruama installed and working (everywhere else, this seems to be my problem). Let me preface this by saying that I am new to Ruby (and kinda jumped in, rather than learning it properly), and regexes…

---

## [Difference between "sleep()" and "Thread.stop"?](https://www.ruby-forum.com/t/difference-between-sleep-and-thread-stop/148221)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/difference-between-sleep-and-thread-stop/148221 "2008-09-10T17:40:58Z")

</div>

Hi, is there any difference between doing: sleep and: Thread.stop ? In both cases the current thread is in “sleep” state. Also, why there is no way to stop/pause/sleep a thread different of the current? I mean so…

---

## [\[Feature #546\] String#gsub $B$H(B Strnig#scan $B$N%V%m%C%/%Q%i%a!\<%?$N0lCW(B](https://www.ruby-forum.com/t/feature-546-string-gsub-b-h-b-strnig-scan-b-n-v-m-c-q-i-a-n0lcw-b/147875)

<div class="topic-metadata">

**Author:** [@Motonori\_IWAMURO](https://www.ruby-forum.com/u/Motonori_IWAMURO)\
**Replies:** 6\
**Last updated:** [September 10, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/feature-546-string-gsub-b-h-b-strnig-scan-b-n-v-m-c-q-i-a-n0lcw-b/147875 "2008-09-10T17:33:20Z")

</div>

Feature #546: String#gsub e$B$He(B Strnig#scan e$B$N%V%m%C%/%Q%i%a!\<%?$N0lCWe(B http://redmine.ruby-lang.org/issues/show/546 e$B5/I\<\<Te(B: Motonori IWAMURO e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal String#gsub e$…

---

## [Please explain that](https://www.ruby-forum.com/t/please-explain-that/148214)

<div class="topic-metadata">

**Author:** [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Replies:** 7\
**Last updated:** [September 10, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/please-explain-that/148214 "2008-09-10T17:05:11Z")

</div>

Can you please explain this behaviour ? irb(main):017:0\> 071.to\_s =\> “57” irb(main):018:0\> 71.to\_s =\> “71” Why is an octal Number converted to decimal when outputted as String ?

---

## [How to pick up dropped script automatically, active records](https://www.ruby-forum.com/t/how-to-pick-up-dropped-script-automatically-active-records/148181)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/how-to-pick-up-dropped-script-automatically-active-records/148181 "2008-09-10T16:11:06Z")

</div>

Hi! I have been using Ruby for a while now - so I have a reasonable understanding of how it works. But I have a problem that I can’t seem to be able to solve on my own, so here goes: I am using an active records bas…

---

## [\<internal\> instead of prelude.rb on stack trace](https://www.ruby-forum.com/t/internal-instead-of-prelude-rb-on-stack-trace/147590)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [September 10, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/internal-instead-of-prelude-rb-on-stack-trace/147590 "2008-09-10T16:11:06Z")

</div>

e$B1sF#$G$9!#e(B Mutex#synchronize e$B$N%V%m%C%/$NCf$J$I$GNc30$,Ej$2$i$l$k$H!"e(B e$B%9%?%C%/%H%l!\<%9$Ke(B prelude.rb e$B$,=P$F$-$^$9!#e(B $ ruby19 -e ‘Mutex.new.synchronize { raise }’ -e:1:in block in \<main\>': unhan…

---

## [Error when running an exe created with rubyscript2exe](https://www.ruby-forum.com/t/error-when-running-an-exe-created-with-rubyscript2exe/148215)

<div class="topic-metadata">

**Author:** [@pihentagy](https://www.ruby-forum.com/u/pihentagy)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/error-when-running-an-exe-created-with-rubyscript2exe/148215 "2008-09-10T15:24:37Z")

</div>

Hi! I’ve successfully created an executable with rubyscript2exe and ruby186-26 (gem version 0.9.4), but when I try to run it, it says: C:/DOCUME~1/rhene/LOCALS~1/Temp/1/eee.heti\_jelent-20080910.exe.2/lib/ rubygems.rb…

---

## [Ruby equivalent of Integer.toHexstring(int) method in java](https://www.ruby-forum.com/t/ruby-equivalent-of-integer-tohexstring-int-method-in-java/148209)

<div class="topic-metadata">

**Author:** [@anil\_kandimalla](https://www.ruby-forum.com/u/anil_kandimalla)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-of-integer-tohexstring-int-method-in-java/148209 "2008-09-10T15:22:51Z")

</div>

Hi all Hi guys i am new to ruby,i am searching for a ruby method which gives the same output as given by Integer.toHexstring(int),but unable to find any methods. Is there is a ruby method or can i call this java meth…

---

## [FXRuby run error under NetBeans](https://www.ruby-forum.com/t/fxruby-run-error-under-netbeans/148113)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 3\
**Last updated:** [September 10, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/fxruby-run-error-under-netbeans/148113 "2008-09-10T15:11:05Z")

</div>

Greetings, I’ve got FXRuby gem installed in NetBeans 6.5b Code starts: require ‘rubygems’ require ‘fox16’ --\> this line returns error (from custom\_require.rb file) … and following: fox16.so:32:in ‘require’ E:/Pr…

---

## [Can play wav file on XP but not on Vista](https://www.ruby-forum.com/t/can-play-wav-file-on-xp-but-not-on-vista/148213)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/can-play-wav-file-on-xp-but-not-on-vista/148213 "2008-09-10T14:41:11Z")

</div>

Hi all, I know this is not a Ruby-related question but I wonder if anyone there can give me a hand. I download some wav files from the website. To my suprise that the same wav files can be played by Windows media pla…

---

## [Templates in Ruby](https://www.ruby-forum.com/t/templates-in-ruby/148212)

<div class="topic-metadata">

**Author:** [@Harshad\_Wankhede](https://www.ruby-forum.com/u/Harshad_Wankhede)\
**Replies:** 0\
**Last updated:** [September 10, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/templates-in-ruby/148212 "2008-09-10T14:34:41Z")

</div>

Hi, I have a created a dll using c# .net. I am trying to access this dll using rubyclr. Templates are to be passed as parameters to this dll to return a specific object. window.Get(SearchCriteria.ByText(“buttonname”)…

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

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