# Ruby

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

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

---

## [Curious include behavior](https://www.ruby-forum.com/t/curious-include-behavior/115823)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 7\
**Last updated:** [September 30, 2007, 5:10am UTC](https://www.ruby-forum.com/t/curious-include-behavior/115823 "2007-09-30T05:10:18Z")

</div>

This caused me a small headache the other day. By including a module, an instance method suddenly becomes accessible as a module method. Seems unintuitive, I’m curious to understand the reasoning behind it. module Foo …

---

## [Need a simplified understanding of Rubinius](https://www.ruby-forum.com/t/need-a-simplified-understanding-of-rubinius/115710)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 8\
**Last updated:** [September 30, 2007, 5:02am UTC](https://www.ruby-forum.com/t/need-a-simplified-understanding-of-rubinius/115710 "2007-09-30T05:02:34Z")

</div>

…just curious…how does Rubinius ‘boot’ itself up and how does translate ruby into bytecode… i know a little about parsing and compilers … but what makes rubinius different? i hear it is actually written in ruby… but t…

---

## [Eval("", TOPLEVEL\_BINDING) and ObjectSpace.\_id2ref](https://www.ruby-forum.com/t/eval-toplevel-binding-and-objectspace-id2ref/115904)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [September 30, 2007, 4:23am UTC](https://www.ruby-forum.com/t/eval-toplevel-binding-and-objectspace-id2ref/115904 "2007-09-30T04:23:20Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % ./ruby -e ’ eval("", TOPLEVEL\_BINDING) minobj = ObjectSpace.to\_enum(:each\_object).min {|a,b| a.object\_id \<=\> b.object\_id } maxobj = ObjectSpace.to\_enum(:each\_object).ma…

---

## [Script/generate model Cookbook yields: \`const\_missing': uninitialized constant](https://www.ruby-forum.com/t/script-generate-model-cookbook-yields-const-missing-uninitialized-constant/115889)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 3\
**Last updated:** [September 30, 2007, 3:29am UTC](https://www.ruby-forum.com/t/script-generate-model-cookbook-yields-const-missing-uninitialized-constant/115889 "2007-09-30T03:29:33Z")

</div>

This only appears to have started in the past day or so. I initially noticed a problem yesterday after a gem update(–system, I think) started giving me errors when I’d attempt to “rake migrate” and then updated today …

---

## [Gosu 0.7.6 - features RMagick integration & new example game](https://www.ruby-forum.com/t/gosu-0-7-6-features-rmagick-integration-new-example-game/115900)

<div class="topic-metadata">

**Author:** [@nex4k](https://www.ruby-forum.com/u/nex4k)\
**Replies:** 0\
**Last updated:** [September 30, 2007, 2:12am UTC](https://www.ruby-forum.com/t/gosu-0-7-6-features-rmagick-integration-new-example-game/115900 "2007-09-30T02:12:27Z")

</div>

Hi, Gosu is a 2D game development/multimedia library with a focus on simplicity and freedom. Version is now available from GoogleCode \[1\] and via ‘gem install gosu’ (on Windows and OS X). Example games are included, …

---

## [1.9 - modify frozen object exception](https://www.ruby-forum.com/t/1-9-modify-frozen-object-exception/115890)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 1\
**Last updated:** [September 30, 2007, 1:56am UTC](https://www.ruby-forum.com/t/1-9-modify-frozen-object-exception/115890 "2007-09-30T01:56:06Z")

</div>

In 1.9, I notice that the exception that is raised for trying to modify a frozen object is now RuntimeError instead of TypeError. Is this likely to be a permanent change?

---

## [ObjectSpace reveals order?](https://www.ruby-forum.com/t/objectspace-reveals-order/115846)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 4\
**Last updated:** [September 30, 2007, 1:47am UTC](https://www.ruby-forum.com/t/objectspace-reveals-order/115846 "2007-09-30T01:47:54Z")

</div>

If I do… ObjectSpace.each\_object { |o| puts o; gets } will it give me the consecutive order of the loading of the objects (i.e. the time order that memory is allocated on the heap)? Or is it a tree structure underne…

---

## [Ruby performance](https://www.ruby-forum.com/t/ruby-performance/115808)

<div class="topic-metadata">

**Author:** [@Vasyl\_S](https://www.ruby-forum.com/u/Vasyl_S)\
**Replies:** 9\
**Last updated:** [September 29, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/ruby-performance/115808 "2007-09-29T23:47:23Z")

</div>

Hi, I’m new to Ruby, and I’ve just tried to measure it’s performance compared to Python, and got some interesting results. The Ruby test script is: #!/usr/bin/env ruby s = “” i = 0 while line = gets s += line i …

---

## [Cut pages for OCR with RMagick?](https://www.ruby-forum.com/t/cut-pages-for-ocr-with-rmagick/115873)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/cut-pages-for-ocr-with-rmagick/115873 "2007-09-29T22:40:43Z")

</div>

Dear all, I have many scanned pages which I’d like to cut to prepare them for OCR. There are two things I’d like to do: 1.) Cut off a header of each page containing the page number, 2.) Find the largest horizontal b…

---

## [How to create a windows startup app](https://www.ruby-forum.com/t/how-to-create-a-windows-startup-app/115851)

<div class="topic-metadata">

**Author:** [@ssyed](https://www.ruby-forum.com/u/ssyed)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/how-to-create-a-windows-startup-app/115851 "2007-09-29T21:28:43Z")

</div>

I want my RUby app to automatically be called when windows boots up … what is the best way to do this? I am probably going to compile it to an exe… I would also like to know how to do this for Mac

---

## [IronRuby](https://www.ruby-forum.com/t/ironruby/114433)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 35\
**Last updated:** [September 29, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/ironruby/114433 "2007-09-29T21:18:24Z")

</div>

I have heard disturbing things about IronRuby. The short version is that MS wants to get into the open source arena as that seems to be their biggest competition, but not in the way that those already there are. I h…

---

## [How to setup Ruby on Apache](https://www.ruby-forum.com/t/how-to-setup-ruby-on-apache/115881)

<div class="topic-metadata">

**Author:** [@junu](https://www.ruby-forum.com/u/junu)\
**Replies:** 1\
**Last updated:** [September 29, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/how-to-setup-ruby-on-apache/115881 "2007-09-29T20:48:56Z")

</div>

Hi, i am new to ruby. here, i want to run ruby on apache, in which, embedding ruby within HTML pages. as what we do with PHP, JSP etc. please help. thanks

---

## [Why dynamic languages for ActiveRecord..?](https://www.ruby-forum.com/t/why-dynamic-languages-for-activerecord/115470)

<div class="topic-metadata">

**Author:** [@ypomonh](https://www.ruby-forum.com/u/ypomonh)\
**Replies:** 13\
**Last updated:** [September 29, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/why-dynamic-languages-for-activerecord/115470 "2007-09-29T20:13:08Z")

</div>

I¢m having problems understanding why people prefer to implement the ActiveRecord pattern in dynamic languages. Of course it is very convenient if you don¢t have to worry about what type is your column, but dynamic la…

---

## [Strange difference in performance (30x) between PPC and Intel](https://www.ruby-forum.com/t/strange-difference-in-performance-30x-between-ppc-and-intel/115850)

<div class="topic-metadata">

**Author:** [@julik](https://www.ruby-forum.com/u/julik)\
**Replies:** 1\
**Last updated:** [September 29, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/strange-difference-in-performance-30x-between-ppc-and-intel/115850 "2007-09-29T19:29:12Z")

</div>

Hello Rubytalkers I have a very odd problem here and thought that I should ask your opinion. I got a test suite here http://julik.textdriven.com/svn/tools/micro-apps/pasaporte/trunk/test/ it’s for a little Camping ap…

---

## [Erb - erubis problems](https://www.ruby-forum.com/t/erb-erubis-problems/115877)

<div class="topic-metadata">

**Author:** [@wibblecp](https://www.ruby-forum.com/u/wibblecp)\
**Replies:** 0\
**Last updated:** [September 29, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/erb-erubis-problems/115877 "2007-09-29T18:43:33Z")

</div>

Hi all, I have some problems using erb(o erubis) + cgi I am able to use single rb files or rhtml, but when I try to use a structure like that: file.rb+file.eruby I have an internal server error (500) I know, these …

---

## [Rubygems can't find gems](https://www.ruby-forum.com/t/rubygems-cant-find-gems/115832)

<div class="topic-metadata">

**Author:** [@mortee](https://www.ruby-forum.com/u/mortee)\
**Replies:** 2\
**Last updated:** [September 29, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/rubygems-cant-find-gems/115832 "2007-09-29T18:41:48Z")

</div>

Hi, I have a problem with rubygems on a OS X 10.4.10 Tiger PPC. Ruby 1.8.6 and rubygems 0.9.4 are installed properly. Ruby is installed through fink so I set PREFIX to /sw. I installed rubygems by PREFIX=/sw export …

---

## [Is there a combination of a struct and an array? I wanna iterate over all created objects from a cer](https://www.ruby-forum.com/t/is-there-a-combination-of-a-struct-and-an-array-i-wanna-iterate-over-all-created-objects-from-a-cer/115870)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 7\
**Last updated:** [September 29, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/is-there-a-combination-of-a-struct-and-an-array-i-wanna-iterate-over-all-created-objects-from-a-cer/115870 "2007-09-29T17:49:36Z")

</div>

I have a file with many entries and much of these I don’t need. Let’s imagine: name=arthur age=16 hobby=swimming job=dancer home=DE name=marry age=49 hobby=singing job=nurse home=US name=tom age=32 hobby=cr…

---

## [VimMate 0.6.5](https://www.ruby-forum.com/t/vimmate-0-6-5/115875)

<div class="topic-metadata">

**Author:** [@Guillaume\_Benny](https://www.ruby-forum.com/u/Guillaume_Benny)\
**Replies:** 0\
**Last updated:** [September 29, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/vimmate-0-6-5/115875 "2007-09-29T17:35:52Z")

</div>

Hi, A new version of VimMate is now available: Version 0.6.5 VimMate is a graphical add-on to Vim with IDE-like features: it does more than the plain Vim while still being lightweight. Even with the additional feat…

---

## [Noobie question: saving the values](https://www.ruby-forum.com/t/noobie-question-saving-the-values/115864)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/noobie-question-saving-the-values/115864 "2007-09-29T14:13:21Z")

</div>

May you forgive me for this irrelevant thread but nonetheless, I need your help. I’m new at programming and recently I’ve faced with the problem connected with the peculiarity of Ruby. Unlike many other languages, the …

---

## [A lot of directories each with a .zip](https://www.ruby-forum.com/t/a-lot-of-directories-each-with-a-zip/115854)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 10:17am UTC](https://www.ruby-forum.com/t/a-lot-of-directories-each-with-a-zip/115854 "2007-09-29T10:17:59Z")

</div>

I could go about this a bunch of different ways. my lame bash skills came up with: ls -R | grep “zip” | unzip -d /targetdir , which didn’t work (I get confused with the pipes and the input and the whatnot.) but that’…

---

## [Ruby Library for dealing with mbox files](https://www.ruby-forum.com/t/ruby-library-for-dealing-with-mbox-files/113303)

<div class="topic-metadata">

**Author:** [@Booker\_Bense](https://www.ruby-forum.com/u/Booker_Bense)\
**Replies:** 1\
**Last updated:** [September 29, 2007, 10:16am UTC](https://www.ruby-forum.com/t/ruby-library-for-dealing-with-mbox-files/113303 "2007-09-29T10:16:13Z")

</div>

I’m working on rewriting my email filtering hacks and I need a library that can parse unix mbox file format where the embedded '\\nFrom ’ in a message are not quoted. (i.e. one that knows about the Header Content-Lengt…

---

## [Platform-independent per-process initialization](https://www.ruby-forum.com/t/platform-independent-per-process-initialization/115843)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [September 29, 2007, 7:38am UTC](https://www.ruby-forum.com/t/platform-independent-per-process-initialization/115843 "2007-09-29T07:38:22Z")

</div>

e$B$J$+$@$G$9!#e(B e$B8=:\_e(Bmain.ce$B$G%W%i%C%H%U%)!\<%\`$4$H$K9T$C$F$$$k=i4|2=$r!"%W%m%;%9C1e(B e$B0L$N=i4|2=$H$7$FJ,N%$7$?$$$H;W$C$F$$$^$9!#e(BMetrowerkse$BMQ$NItJ,$,$9$Ce(B e$B$-$j$7$^$;$s$,!"$3$l$O5le(BMacintoshe$B…

---

## [Regex: capture groups and term binding](https://www.ruby-forum.com/t/regex-capture-groups-and-term-binding/115775)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 5\
**Last updated:** [September 29, 2007, 5:20am UTC](https://www.ruby-forum.com/t/regex-capture-groups-and-term-binding/115775 "2007-09-29T05:20:19Z")

</div>

Hi All, Let’s get down to it… I have a long string of the form: string = \<\<-EOVAR XD 1 \* 100000436 3441863 1550663 1161254 951982 XD 1 479903531056 47988002622 21360568539 18276299303 15476234490 XD 1 66934 5552 32…

---

## [Anyone interested In IronRuby](https://www.ruby-forum.com/t/anyone-interested-in-ironruby/115653)

<div class="topic-metadata">

**Author:** [@ironruby](https://www.ruby-forum.com/u/ironruby)\
**Replies:** 18\
**Last updated:** [September 29, 2007, 5:19am UTC](https://www.ruby-forum.com/t/anyone-interested-in-ironruby/115653 "2007-09-29T05:19:09Z")

</div>

Hello, I am coming from Dot Net World, now totally into IronRuby. IronRuby is a Dot Net Version of Ruby that works on DLR ( Dynamic layer RunTime ) with all advantages of Ruby plus Dot Net Framework. With IronRuby, y…

---

## [Problems with dbi to sql server](https://www.ruby-forum.com/t/problems-with-dbi-to-sql-server/115833)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 29, 2007, 4:13am UTC](https://www.ruby-forum.com/t/problems-with-dbi-to-sql-server/115833 "2007-09-29T04:13:17Z")

</div>

I’m trying to figure out how to connect to sql server (2005 i think) this program here, at first used to show the defaukt stuff, ODBC I think. DBI.available\_drivers.each do |drv| puts drv DBI.data\_sources(drv).each …

---

## [Running Ruby code from a ZIP file?](https://www.ruby-forum.com/t/running-ruby-code-from-a-zip-file/115827)

<div class="topic-metadata">

**Author:** [@rubymarc](https://www.ruby-forum.com/u/rubymarc)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 3:59am UTC](https://www.ruby-forum.com/t/running-ruby-code-from-a-zip-file/115827 "2007-09-29T03:59:39Z")

</div>

I would like to run Ruby code from a ZIP file directly rather than extracting the contents of the ZIP into a folder and run from there. I am familiar with the work done by this person: Tar2RubyScript - A Tool for Dist…

---

## [Is there to invoke 'previous' in Find? (or refresh the current path?)](https://www.ruby-forum.com/t/is-there-to-invoke-previous-in-find-or-refresh-the-current-path/115727)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [September 29, 2007, 12:33am UTC](https://www.ruby-forum.com/t/is-there-to-invoke-previous-in-find-or-refresh-the-current-path/115727 "2007-09-29T00:33:45Z")

</div>

I am writing a small script which recursively goes down a dir hierarchy, and when it reaches a set of files, it applies a 3rd party application which modifies those files, and prepends the name with “Mod-”. So for ex…

---

## [Feature request for RubyScript2Exe](https://www.ruby-forum.com/t/feature-request-for-rubyscript2exe/115545)

<div class="topic-metadata">

**Author:** [@rubymarc](https://www.ruby-forum.com/u/rubymarc)\
**Replies:** 10\
**Last updated:** [September 28, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/feature-request-for-rubyscript2exe/115545 "2007-09-28T23:24:04Z")

</div>

It would be nice if RubyScript2Exe was able to handle a passworded ZIP Lib rather than not. This way any code placed into the .EXE would be encrypted and this would be useful. Heck, I might even consider using Ruby …

---

## [Copying files to Vista Program Files in ruby script](https://www.ruby-forum.com/t/copying-files-to-vista-program-files-in-ruby-script/115836)

<div class="topic-metadata">

**Author:** [@shawniemc](https://www.ruby-forum.com/u/shawniemc)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/copying-files-to-vista-program-files-in-ruby-script/115836 "2007-09-28T23:21:24Z")

</div>

Newbie working on a helper script for app testers (who are using various OS’s) copying down files from network servers. All is going well until hitting this wall with Vista. I am not able to copy down a file from a fi…

---

## [Process usage](https://www.ruby-forum.com/t/process-usage/115733)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 5\
**Last updated:** [September 28, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/process-usage/115733 "2007-09-28T23:12:22Z")

</div>

long ago i recall a library the collected process usage, memory and such, in a platform independent way (at least across unices). does anyone else recall this lib? link? cheers. a @ http://drawohara.com/

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

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