# Ruby

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

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

---

## [Spreadsheet gem](https://www.ruby-forum.com/t/spreadsheet-gem/197380)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [October 13, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/spreadsheet-gem/197380 "2010-10-13T15:59:06Z")

</div>

Hi, Here is a newbie question on the spreadsheet gem. I have the following simple test code in a controller action : require "spreadsheet" @csd = cns\_period\_conv(params\[:date\]\[:year\],params\[:period\_start\]) book = Spr…

---

## [Help to run Ruby](https://www.ruby-forum.com/t/help-to-run-ruby/188400)

<div class="topic-metadata">

**Author:** [@balzer](https://www.ruby-forum.com/u/balzer)\
**Replies:** 11\
**Last updated:** [October 13, 2010, 3:02pm UTC](https://www.ruby-forum.com/t/help-to-run-ruby/188400 "2010-10-13T15:02:57Z")

</div>

I am on windows XP. Ruby.exe is in directory “bin”: E:\\Ruby\\bin script is in directory “embed”: E:\\Ruby\\myprogram-beta1\\sources\\scripts\\embed how to run script which is in embed dir? thanks

---

## [How to broadcast a service over the network for clients to discover without any need for server IP](https://www.ruby-forum.com/t/how-to-broadcast-a-service-over-the-network-for-clients-to-discover-without-any-need-for-server-ip/197370)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [October 13, 2010, 3:02pm UTC](https://www.ruby-forum.com/t/how-to-broadcast-a-service-over-the-network-for-clients-to-discover-without-any-need-for-server-ip/197370 "2010-10-13T15:02:01Z")

</div>

how to broadcast/multicast a service over the network for clients to discover without any need for server IP? how to let other clients discover the service from a server, without the client requiring the IP address of…

---

## [Recursion in a class method](https://www.ruby-forum.com/t/recursion-in-a-class-method/197371)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 13, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/recursion-in-a-class-method/197371 "2010-10-13T14:33:08Z")

</div>

Hi, If I’ve written a class method that calls itself recursively is there a problem or any difference between doing something like this: class \<\< self def mymeth( n ) blah blah… mymeth( n + 1) end end as opposed…

---

## [Help with require in 1.9.2 p0](https://www.ruby-forum.com/t/help-with-require-in-1-9-2-p0/197367)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [October 13, 2010, 2:25pm UTC](https://www.ruby-forum.com/t/help-with-require-in-1-9-2-p0/197367 "2010-10-13T14:25:39Z")

</div>

I have this strange bug with a chain of requires, after a certain number of hops. It is independant of the file to require. Even in the following case with the same file twice \<processor.rb\> 6 require ‘slot.rb’ 7 pu…

---

## [E ten glofiish MS Mobile 6.1 pro OS cell phone](https://www.ruby-forum.com/t/e-ten-glofiish-ms-mobile-6-1-pro-os-cell-phone/197364)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 13, 2010, 11:25am UTC](https://www.ruby-forum.com/t/e-ten-glofiish-ms-mobile-6-1-pro-os-cell-phone/197364 "2010-10-13T11:25:18Z")

</div>

anyone here had experience with this device? I may have to know up a ruby app to run on this phone and would like some pointers, like is it ruby friendly. would Sinatra be best to use on it? the phone will be used to…

---

## [Ruby Sanity Check](https://www.ruby-forum.com/t/ruby-sanity-check/196329)

<div class="topic-metadata">

**Author:** [@flebber](https://www.ruby-forum.com/u/flebber)\
**Replies:** 10\
**Last updated:** [October 13, 2010, 10:34am UTC](https://www.ruby-forum.com/t/ruby-sanity-check/196329 "2010-10-13T10:34:59Z")

</div>

HI Just a quick check. I am starting into Ruby with little interest in Ruby on Rails (its good to know its there though). I want to use Ruby as a more data centric means. So in my first case I want to extract data fr…

---

## [Can DRbUndumped be disabled for certain return types?](https://www.ruby-forum.com/t/can-drbundumped-be-disabled-for-certain-return-types/196312)

<div class="topic-metadata">

**Author:** [@joshm1](https://www.ruby-forum.com/u/joshm1)\
**Replies:** 8\
**Last updated:** [October 13, 2010, 10:30am UTC](https://www.ruby-forum.com/t/can-drbundumped-be-disabled-for-certain-return-types/196312 "2010-10-13T10:30:22Z")

</div>

I have server model classes that definitely need DRbUndumped. Except for the methods that return an array. I would rather it return an array that is NOT wrapped in a DRbObject, and everything else still be a DRbObje…

---

## [Rake aborted! Validation failed:](https://www.ruby-forum.com/t/rake-aborted-validation-failed/196371)

<div class="topic-metadata">

**Author:** [@masterly](https://www.ruby-forum.com/u/masterly)\
**Replies:** 5\
**Last updated:** [October 13, 2010, 9:35am UTC](https://www.ruby-forum.com/t/rake-aborted-validation-failed/196371 "2010-10-13T09:35:37Z")

</div>

Trying to populate a database with some users using rake db:populate. But im getting this error trace: \*\* Invoke db:populate (first\_time) \*\* Invoke db:populate:accounts (first\_time) \*\* Invoke db:populate:setup (first…

---

## [How to do this](https://www.ruby-forum.com/t/how-to-do-this/196386)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 4\
**Last updated:** [October 13, 2010, 8:16am UTC](https://www.ruby-forum.com/t/how-to-do-this/196386 "2010-10-13T08:16:08Z")

</div>

I don’t know how to explain so I will just code: template = ‘some text #{variable}’ # single quotes for reason variable = ‘filled’ res = some\_method(template) Here, res should have value ‘some text filled’. Is there…

---

## [Map-1.3.0](https://www.ruby-forum.com/t/map-1-3-0/196345)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 10\
**Last updated:** [October 13, 2010, 4:19am UTC](https://www.ruby-forum.com/t/map-1-3-0/196345 "2010-10-13T04:19:17Z")

</div>

NAME map.rb SYNOPSIS the ruby container you’ve always wanted: a string/symbol indifferent ordered hash that works in all rubies INSTALL gem install map URI http://github.com/ahoward/map DESCRIPTION m = Map\[:k,…

---

## [More Malt Engines?](https://www.ruby-forum.com/t/more-malt-engines/197339)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [October 13, 2010, 1:24am UTC](https://www.ruby-forum.com/t/more-malt-engines/197339 "2010-10-13T01:24:29Z")

</div>

I’ll be working on an update to Malt soon. Currently it supports these template engines: bluecloth erb erubis haml kramdown less liquid radius rdiscount rdoc redcloth rtals ruby sass tenjin What other eng…

---

## [Minitest randomization](https://www.ruby-forum.com/t/minitest-randomization/196114)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 11\
**Last updated:** [October 13, 2010, 12:26am UTC](https://www.ruby-forum.com/t/minitest-randomization/196114 "2010-10-13T00:26:30Z")

</div>

Minitest was intended to be a minimal replacement for Test::Unit and RSpec. It mostly succeeds in this goal; however, it violates it in one annoying case. It adds a feature not found in RSpec, a feature that I find no…

---

## [Error while executing the code](https://www.ruby-forum.com/t/error-while-executing-the-code/197331)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [October 12, 2010, 10:24pm UTC](https://www.ruby-forum.com/t/error-while-executing-the-code/197331 "2010-10-12T22:24:30Z")

</div>

i run the below code with ruby interpritor(1.8.7) i am getting error " ruby: illegal switch in RUBYOPT: - (RuntimeError)" class Animal def set\_noise(noi) @noise=noi end def make\_noise @noise end end ani=Animal…

---

## [wxWidgets +wxRuby + wxFormBuilder](https://www.ruby-forum.com/t/wxwidgets-wxruby-wxformbuilder/196390)

<div class="topic-metadata">

**Author:** [@rarstd](https://www.ruby-forum.com/u/rarstd)\
**Replies:** 3\
**Last updated:** [October 12, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/wxwidgets-wxruby-wxformbuilder/196390 "2010-10-12T21:28:38Z")

</div>

Hello. I have a problems. Can you help me? I create GUI-program, based on wxWidgets, in wxFormBuilder. 1.jpg) I create a form in wxFormBuilder, it will see as left part of image. If i test it on View-\>XRC WIndow, it s…

---

## [If the variable is set](https://www.ruby-forum.com/t/if-the-variable-is-set/196398)

<div class="topic-metadata">

**Author:** [@leonel](https://www.ruby-forum.com/u/leonel)\
**Replies:** 5\
**Last updated:** [October 12, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/if-the-variable-is-set/196398 "2010-10-12T20:25:37Z")

</div>

How can I create an if statement to check if a variable contains a value? If it does contain a value, I want to send an email. I’m doing the following but it doesn’t work… EXTRACT def create @appointment = Appointme…

---

## [Attach to an external thread end with core dump](https://www.ruby-forum.com/t/attach-to-an-external-thread-end-with-core-dump/196401)

<div class="topic-metadata">

**Author:** [@rantanplan](https://www.ruby-forum.com/u/rantanplan)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/attach-to-an-external-thread-end-with-core-dump/196401 "2010-10-12T20:23:32Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have an problem … I create an external thread with pthread\_create and create new ruby objects in this thread. it seems to work until the GC is running. #0 mark\_…

---

## [Monitor Error when Joining Threads](https://www.ruby-forum.com/t/monitor-error-when-joining-threads/144131)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 4\
**Last updated:** [October 12, 2010, 7:36pm UTC](https://www.ruby-forum.com/t/monitor-error-when-joining-threads/144131 "2010-10-12T19:36:27Z")

</div>

Hello all, Note: this may get published twice… I posted via the email list but it never went through… I’m getting the following error when I I try to join some threads: c:/ruby/lib/ruby/1.8/monitor.rb:215:in mon\_ente…

---

## [Ruby simple browser base source level debugger](https://www.ruby-forum.com/t/ruby-simple-browser-base-source-level-debugger/196395)

<div class="topic-metadata">

**Author:** [@arton](https://www.ruby-forum.com/u/arton)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/ruby-simple-browser-base-source-level-debugger/196395 "2010-10-12T18:28:44Z")

</div>

Hi I recently start to develop a ruby source level debugger (ruined) with small foot print and easy to install and use. I believe it’s useful for whom teachs ruby to learners because the debugger shows the trace of …

---

## [OT: file attribute serialization in Windows](https://www.ruby-forum.com/t/ot-file-attribute-serialization-in-windows/196381)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 3\
**Last updated:** [October 12, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/ot-file-attribute-serialization-in-windows/196381 "2010-10-12T17:06:38Z")

</div>

I am writing a backup program (not necessarily in Ruby) and I need to back up ALL of a file’s attributes. For Windows: R Read-only files H Hidden files A Files ready for archiving S System files I Not content inde…

---

## [Create an enum from ironruby](https://www.ruby-forum.com/t/create-an-enum-from-ironruby/196391)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/create-an-enum-from-ironruby/196391 "2010-10-12T16:37:13Z")

</div>

I need to create an enum from IronRuby in order to bind a datagrid comboboxcolumn in wpf. Is it possible? Thank you in advance Eduardo

---

## [Help with regexp's](https://www.ruby-forum.com/t/help-with-regexps/196387)

<div class="topic-metadata">

**Author:** [@Thiago\_M](https://www.ruby-forum.com/u/Thiago_M)\
**Replies:** 2\
**Last updated:** [October 12, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/help-with-regexps/196387 "2010-10-12T15:26:23Z")

</div>

Is there any way to a regexp allow any character but the comma? My regexp is getting ugly like /(\\x2E|\\x3A|\\x27|\\x28|\\x29|\\x2D|\\x21|\\x2B)\*/ and so on(i ommited the real one for the love of god) I’m even thinking abou…

---

## [Using DRB as a secure interface](https://www.ruby-forum.com/t/using-drb-as-a-secure-interface/196383)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 1\
**Last updated:** [October 12, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/using-drb-as-a-secure-interface/196383 "2010-10-12T15:06:20Z")

</div>

Is it possible to implement a secure interface exposed to the internet using DRB? I want to pass complex structures through an external API and DRB seems like an obvious choice, but I’m concerned that DRB will allow c…

---

## [Ruby bug with fork and signals (SIGTERM)](https://www.ruby-forum.com/t/ruby-bug-with-fork-and-signals-sigterm/196365)

<div class="topic-metadata">

**Author:** [@rantanplan](https://www.ruby-forum.com/u/rantanplan)\
**Replies:** 2\
**Last updated:** [October 12, 2010, 1:20pm UTC](https://www.ruby-forum.com/t/ruby-bug-with-fork-and-signals-sigterm/196365 "2010-10-12T13:20:59Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I writing a C-Extension for ruby using “rb\_fork(0,0,0,Qnil)” to create a new process. Behaviour: before fork a SIGTERM send to the parent terminate the parent afte…

---

## [Email sending issue with ar\_mailer + rails 2.3.5](https://www.ruby-forum.com/t/email-sending-issue-with-ar-mailer-rails-2-3-5/196370)

<div class="topic-metadata">

**Author:** [@saurabh\_purnaye](https://www.ruby-forum.com/u/saurabh_purnaye)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 10:44am UTC](https://www.ruby-forum.com/t/email-sending-issue-with-ar-mailer-rails-2-3-5/196370 "2010-10-12T10:44:17Z")

</div>

Hi, I am using rails 2.3.5, for simple Action mailer the emails are getting sent without an error. For ar\_mailer, I am following all the settings as per given here I want to send emails by smtp. My settings are c…

---

## [Ruby 1.9.2: How to sanitize text with invalid characters?](https://www.ruby-forum.com/t/ruby-1-9-2-how-to-sanitize-text-with-invalid-characters/196325)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 6\
**Last updated:** [October 12, 2010, 9:30am UTC](https://www.ruby-forum.com/t/ruby-1-9-2-how-to-sanitize-text-with-invalid-characters/196325 "2010-10-12T09:30:16Z")

</div>

I process a lot of text files of which I know the encoding, but that might contain a few bytes that are invalid (i.e., make gsub fail with “ArgumentError: invalid byte sequence in US-ASCII/UTF8”). What’s the best way …

---

## [\[Ruby 1.9-Bug#3923\]\[Closed\] bad error messages for Winsock (on Win32)](https://www.ruby-forum.com/t/ruby-1-9-bug-3923-closed-bad-error-messages-for-winsock-on-win32/196364)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 9:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3923-closed-bad-error-messages-for-winsock-on-win32/196364 "2010-10-12T09:17:47Z")

</div>

$B%A%1%C%H(B #3923 $B$,99?7$5$l$^$7$?!#(B (by Usaku NAKAMURA) $B%9%F!\<%?%9(B Assigned$B$+$i(BClosed$B$KJQ99(B r29449 $B$G=$@5$5$l$^$7$?(B($B$J$\<$+\<+F0(Bclose$B$5$l$J$$(B)

---

## [\[Ruby 1.9-Bug#3923\] bad error messages for Winsock (on Win32)](https://www.ruby-forum.com/t/ruby-1-9-bug-3923-bad-error-messages-for-winsock-on-win32/196360)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [October 12, 2010, 9:04am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3923-bad-error-messages-for-winsock-on-win32/196360 "2010-10-12T09:04:02Z")

</div>

$B%A%1%C%H(B #3923 $B$,99?7$5$l$^$7$?!#(B (by Usaku NAKAMURA) $B5UJQ49$9$kHO0O$r!"(BVC10$B$N$!"$+$D!"DI2C$5$l$?(Berrno$B$K9J$k$h$&$K$7$F(B $B%Q%C%A$rF~$l$F$$^$7$?!#(B $BMW$9$k$K(BVC10$B$N%P%+%d%m%&$,(Berrno$BDI2C$7$?$…

---

## [\[Ruby 1.9-Bug#3923\] bad error messages for Winsock (on Win32)](https://www.ruby-forum.com/t/ruby-1-9-bug-3923-bad-error-messages-for-winsock-on-win32/196343)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 2\
**Last updated:** [October 12, 2010, 6:15am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-3923-bad-error-messages-for-winsock-on-win32/196343 "2010-10-12T06:15:51Z")

</div>

$B%A%1%C%H(B #3923 $B$,99?7$5$l$^$7$?!#(B (by Usaku NAKAMURA) $B$\*LsB+$G$9$,!"%Q%C%A$O(Bunified diff$B7A\<0$G=P$7$F$/$l$k$H=u$+$j$^$9!#(B $B$=$l$O$5$F$\*$-!"$3$l$?$V$s(BVC10$B$@$1$G$9$h$M!#(B $B@5D\>$J$H$3$m!"$3$NBP=hK!…

---

## [Bug in flog?](https://www.ruby-forum.com/t/bug-in-flog/196307)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 1\
**Last updated:** [October 12, 2010, 1:42am UTC](https://www.ruby-forum.com/t/bug-in-flog/196307 "2010-10-12T01:42:01Z")

</div>

Minimal case : bug appears when adding this two lines =begin =end at the end of a file, and disappears when taking them out. from \<internal:lib/rubygems/custom\_require\>:29:in \`require' F:/Ruby191/lib/ruby/gems/1.9.1…

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

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