# Ruby

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

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

---

## [How compile a makefile in windows](https://www.ruby-forum.com/t/how-compile-a-makefile-in-windows/105347)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 1\
**Last updated:** [May 29, 2007, 6:51am UTC](https://www.ruby-forum.com/t/how-compile-a-makefile-in-windows/105347 "2007-05-29T06:51:57Z")

</div>

I modified the archive object.c(in C:\\ruby\\src\\ruby-1.8.6\>), I created the archive extconfig.rb with the following content: require “mkmf” create\_makefile(“Object”) and run ruby extconfig.rb â€œMakefileâ€ was crea…

---

## [Futures and JRuby: The Omnibus Concurrency Library 0.2.1](https://www.ruby-forum.com/t/futures-and-jruby-the-omnibus-concurrency-library-0-2-1/105341)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 3\
**Last updated:** [May 29, 2007, 4:25am UTC](https://www.ruby-forum.com/t/futures-and-jruby-the-omnibus-concurrency-library-0-2-1/105341 "2007-05-29T04:25:41Z")

</div>

Just a quick note that I’ve released version 0.2.1 of the ‘concurrent’ gem, which provides Actors, data-parallel programming, and transparent futures (plus lazy evaluation) for Ruby. This one adds: Actor timeouts Cl…

---

## [Developing cross-platform web/GUI applications](https://www.ruby-forum.com/t/developing-cross-platform-web-gui-applications/105186)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 10\
**Last updated:** [May 29, 2007, 1:01am UTC](https://www.ruby-forum.com/t/developing-cross-platform-web-gui-applications/105186 "2007-05-29T01:01:27Z")

</div>

Hi! I’d like to write cross-platform applications that either run in the browser or run as standalone GUI applications in a functional programming language. I understand that Ruby is a functional programming languag…

---

## [Putting executables in sbin in gems](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 4\
**Last updated:** [May 28, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193 "2007-05-28T23:37:22Z")

</div>

Hi all, My project\[1\] has a couple of daemons, which should go in sbin, but I can’t seem to find a way to get my gem specification to do so. Heck, I can’t even find any evidence that gems support sbin at all. Does …

---

## [Range object as a parameter](https://www.ruby-forum.com/t/range-object-as-a-parameter/105321)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/range-object-as-a-parameter/105321 "2007-05-28T22:26:15Z")

</div>

I trying to use a range object from an array of ranges objects as a parameter my\_range = \[(0…2), (2…5), (5…10), (10…15), (15…25)\] props = \[\] domains = Domain.find(:all) keep track of the number of domains @ props\[0\]…

---

## [Feature suggest: implicit AND explicit variable definitions](https://www.ruby-forum.com/t/feature-suggest-implicit-and-explicit-variable-definitions/105318)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/feature-suggest-implicit-and-explicit-variable-definitions/105318 "2007-05-28T21:46:09Z")

</div>

I remember reading that, in Python, working with variables can be slow because it needs to check if the variable is being changed to another type every time it’s used. I don’t know if Ruby is like that too, but this i…

---

## [Nanoc-1.1.3](https://www.ruby-forum.com/t/nanoc-1-1-3/105282)

<div class="topic-metadata">

**Author:** [@dddennisdennis734](https://www.ruby-forum.com/u/dddennisdennis734)\
**Replies:** 1\
**Last updated:** [May 28, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/nanoc-1-1-3/105282 "2007-05-28T21:40:08Z")

</div>

Hello list, (I’ve been wanting to announce this for a while, but only got around to it now…) nanoc (http://stoneship.org/software/nanoc/) is a Ruby CMS that doesn’t run on a server, but rather on a local machine. It …

---

## [Randomize array content](https://www.ruby-forum.com/t/randomize-array-content/105320)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 28, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/randomize-array-content/105320 "2007-05-28T20:51:04Z")

</div>

Hello, After 2 months working with ruby i still bump to some of those: what would be the simplest way (couldn’t find a rand method) to achieve a subject’s task? thanks! t

---

## [Classes within a module?](https://www.ruby-forum.com/t/classes-within-a-module/105316)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/classes-within-a-module/105316 "2007-05-28T19:45:54Z")

</div>

Why do Rubyists generally hold a number of classes within a module? cheers aidy

---

## [BackgrounDRb Theory](https://www.ruby-forum.com/t/backgroundrb-theory/105234)

<div class="topic-metadata">

**Author:** [@yeago](https://www.ruby-forum.com/u/yeago)\
**Replies:** 8\
**Last updated:** [May 28, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/backgroundrb-theory/105234 "2007-05-28T19:33:45Z")

</div>

I’m making a site which allows subscribers to scrape their unnamed social network profile for changes regularly using BackgrounDrb. I can: A) Create 1 worker which will update all subscriber profiles at once. I like t…

---

## [Debian ruby-full package - a full installation of Ruby](https://www.ruby-forum.com/t/debian-ruby-full-package-a-full-installation-of-ruby/105271)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 28, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/debian-ruby-full-package-a-full-installation-of-ruby/105271 "2007-05-28T19:10:49Z")

</div>

Hello Debian Ruby users, I have seen many complaints on this list that the debian ruby packages are split into several small components, which makes it a pain to get a ‘genuine’ ruby install. Though this is not about…

---

## [How to completely terminate a WIN32OLE Excel object?](https://www.ruby-forum.com/t/how-to-completely-terminate-a-win32ole-excel-object/105162)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 6\
**Last updated:** [May 28, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/how-to-completely-terminate-a-win32ole-excel-object/105162 "2007-05-28T18:57:48Z")

</div>

Hello, I can’t get rid of Excel, if I have ever called it, even with such a simple script: ---------- code starts -------------- require ‘win32ole’ def puts\_win32ole\_objects res = \[\] ObjectSpace.each\_object do |o| …

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/105310)

<div class="topic-metadata">

**Author:** [@Terry\_Bates](https://www.ruby-forum.com/u/Terry_Bates)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/no-subject/105310 "2007-05-28T18:29:44Z")

</div>

matome 17mp

---

## [Rubygems problem on Mac OS X, please help](https://www.ruby-forum.com/t/rubygems-problem-on-mac-os-x-please-help/105303)

<div class="topic-metadata">

**Author:** [@Karl\_von\_Laudermann](https://www.ruby-forum.com/u/Karl_von_Laudermann)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/rubygems-problem-on-mac-os-x-please-help/105303 "2007-05-28T18:24:47Z")

</div>

I finally got around to installing the latest Ruby version onto my Mac instead of using the one that comes with Mac OS X. I followed the instructions here: http://maczealots.com/tutorials/rubyosa/ Doing so, I install…

---

## [Methods as infix operators WAS: Defending Ruby's OOP](https://www.ruby-forum.com/t/methods-as-infix-operators-was-defending-rubys-oop/105305)

<div class="topic-metadata">

**Author:** [@Sammy\_L](https://www.ruby-forum.com/u/Sammy_L)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/methods-as-infix-operators-was-defending-rubys-oop/105305 "2007-05-28T18:11:42Z")

</div>

John J. wrote, On 5/15/2007 4:21 PM: components (that can be more logically represented as objects), then why Or even ‘occasionally’ or ‘usually’ for weighted randomness. This is one of Ruby’s biggest strengths, its…

---

## [Gem install directory error](https://www.ruby-forum.com/t/gem-install-directory-error/105302)

<div class="topic-metadata">

**Author:** [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/gem-install-directory-error/105302 "2007-05-28T17:47:13Z")

</div>

I updated my ruby/rails stack this morning on my mac os x 10.4.9 machine. Now I’m having a problem intalling gems. I get the following error while trying to install a gem ERROR: While executing gem … (ArgumentErro…

---

## [Core dump](https://www.ruby-forum.com/t/core-dump/105127)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 5\
**Last updated:** [May 28, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/core-dump/105127 "2007-05-28T16:43:33Z")

</div>

I’m new to Ruby, so I may be doing something wrong, but the following code continually gives me a core dump (Illegal instruction: 4 (core dumped)) in both irb and ruby. I’m running versions: ruby 1.8.6 (2007-03-13 pa…

---

## [Remove all whitespaces in a string](https://www.ruby-forum.com/t/remove-all-whitespaces-in-a-string/105292)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 9\
**Last updated:** [May 28, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/remove-all-whitespaces-in-a-string/105292 "2007-05-28T15:52:26Z")

</div>

I want to remove all whitespaces in a string. I know strip to remove whitespaces at the beginning and the end of the string. example: " bla @ bla. de " should become “removed\_email\_address@domain.invalid” …

---

## [Behavior of proc { || } on 1.9](https://www.ruby-forum.com/t/behavior-of-proc-on-1-9/105256)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/behavior-of-proc-on-1-9/105256 "2007-05-28T15:07:21Z")

</div>

Is this expected behavior? cout@bean:~$ ruby -v -e ‘proc { || }.call 42’ ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-linux\] -e:1: wrong number of arguments (1 for 0) (ArgumentError) from -e:1:in \`call’ from -e:1 cou…

---

## [Tricky problem with ===](https://www.ruby-forum.com/t/tricky-problem-with/105205)

<div class="topic-metadata">

**Author:** [@Erwin\_A](https://www.ruby-forum.com/u/Erwin_A)\
**Replies:** 16\
**Last updated:** [May 28, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/tricky-problem-with/105205 "2007-05-28T14:57:19Z")

</div>

I have a “BlankState” type of class and it’s method\_missing forwards everything to an instance variable. This way I can treat the object specially in my own code and all other code doesn’t need to know the difference…

---

## [Socket program in ruby, accept cookies](https://www.ruby-forum.com/t/socket-program-in-ruby-accept-cookies/105285)

<div class="topic-metadata">

**Author:** [@centrinel](https://www.ruby-forum.com/u/centrinel)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/socket-program-in-ruby-accept-cookies/105285 "2007-05-28T13:21:06Z")

</div>

can anyone give me an example ( just a simple one. ) how to accept cookies in ruby. sorry for this idiot question, but I am pretty new in this fun language.

---

## [Can an initialize method fail?](https://www.ruby-forum.com/t/can-an-initialize-method-fail/105211)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [May 28, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/can-an-initialize-method-fail/105211 "2007-05-28T13:11:03Z")

</div>

I may be doing this wrong. :slight\_smile: In some languages, I might do something like: user = User.new(name, password) If the User class is unable to initialize a corresponding user, it might not produce a valid U…

---

## [Please help me with OptionParser](https://www.ruby-forum.com/t/please-help-me-with-optionparser/105236)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 7\
**Last updated:** [May 28, 2007, 10:42am UTC](https://www.ruby-forum.com/t/please-help-me-with-optionparser/105236 "2007-05-28T10:42:02Z")

</div>

Here’s the pastebin of this post if you prefer looking at formatted source: http://pastebin.ca/514353 Ok, I’m having a multitude of problems with OptionParser. First, I can’t get it to work following the online docu…

---

## [Some probabilities fun](https://www.ruby-forum.com/t/some-probabilities-fun/105265)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 9:00am UTC](https://www.ruby-forum.com/t/some-probabilities-fun/105265 "2007-05-28T09:00:37Z")

</div>

Hello all. Only wanted to show two short probability tricks, which can make use in games or other “random” environments. #Trick 1: use ~ sign to say “approximately” class Numeric LEVEL = 0.3 def ~ self + self \* r…

---

## [Trap in 1.9](https://www.ruby-forum.com/t/trap-in-1-9/105263)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 8:56am UTC](https://www.ruby-forum.com/t/trap-in-1-9/105263 "2007-05-28T08:56:36Z")

</div>

e$B$J$+$@$G$9!#e(B \[ruby-dev:30820\]e$B$r;n$7$F$$$F5$$E$$$?$N$G$9$,!"e(B1.9e$B$G0J2\<$N%3!\<%Ie(B e$B$,e(BSEGVe$B$7$^$9!#e(BQundefe$B$rJV$7$F$$$k$h$&$G$9!#e(B p trap(:INT, trap(:INT, “EXIT”)) e$B$^$?!"e(Btrap(:EXIT)e$B$…

---

## [Trap() with String command dosn't work(1.8/1.9)](https://www.ruby-forum.com/t/trap-with-string-command-dosnt-work-1-8-1-9/105064)

<div class="topic-metadata">

**Author:** [@Chikanaga\_Tomoyuki](https://www.ruby-forum.com/u/Chikanaga_Tomoyuki)\
**Replies:** 1\
**Last updated:** [May 28, 2007, 8:39am UTC](https://www.ruby-forum.com/t/trap-with-string-command-dosnt-work-1-8-1-9/105064 "2007-05-28T08:39:35Z")

</div>

e$BF|K%3%s%H%m!\<%k%7%9%F%\`e(B(e$B3te(B)e$B$N6a1J$H?=$7$^$9!#e(B e$B%%s%i%$%s%^%K%e%"%k$NNc$K$h$k$He(B Kernel#trap e$B$$h$Se(B Signal.trap e$B$Oe(B e$B%O%s%I%i$KJ8;zNse(B(e$B%9%/%j%W%HJRe(B)e$B$r;XDj$G$-$k$H$J$C$F$$$^$…

---

## [ANN: Melbourne Ruby/Rails meetup this Thursday night](https://www.ruby-forum.com/t/ann-melbourne-ruby-rails-meetup-this-thursday-night/105260)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 7:33am UTC](https://www.ruby-forum.com/t/ann-melbourne-ruby-rails-meetup-this-thursday-night/105260 "2007-05-28T07:33:32Z")

</div>

The Melbourne (Australia, not Florida) Ruby group is having their next meetup Thursday night (May 31), 6:00 PM, at: ThoughtWorks Level 11, 155 Queen St (SMS Mark on 0414 740 489 if you have trouble getting in) P…

---

## [Ruby-1.8.6 and 1.8.5 fail to compile under MinGW](https://www.ruby-forum.com/t/ruby-1-8-6-and-1-8-5-fail-to-compile-under-mingw/105254)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 5:07am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-and-1-8-5-fail-to-compile-under-mingw/105254 "2007-05-28T05:07:41Z")

</div>

Hi, I’m trying to build Ruby under MinGW. However after running configure, I get some sed errors… d:\\MinGW\\bin\\sed.exe: -e expression #1, char 2: Extra characters after command configure: creating ./config.status d…

---

## [Interacting with another program](https://www.ruby-forum.com/t/interacting-with-another-program/105253)

<div class="topic-metadata">

**Author:** [@braas](https://www.ruby-forum.com/u/braas)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 4:51am UTC](https://www.ruby-forum.com/t/interacting-with-another-program/105253 "2007-05-28T04:51:40Z")

</div>

Hi all, I’m completely new to this aspect of programming so please excuse me for any complete noobnes :slight\_smile: I’m working on a project with a friend, where we have to read some data from a program and then mak…

---

## [Do I lack understanding or arrays?](https://www.ruby-forum.com/t/do-i-lack-understanding-or-arrays/105238)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 28, 2007, 1:42am UTC](https://www.ruby-forum.com/t/do-i-lack-understanding-or-arrays/105238 "2007-05-28T01:42:13Z")

</div>

I’m doing the pascal quiz on rubyquiz.com, but I’m finding that I’m having trouble assigning a value to my array. I’ve assigned it like this: pyramid\_lvl\[level\]\[i\] =\\ ( (pyramid\[level-1\]\[i-1\]).to\_i \\ + (…

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

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