# Ruby

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

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

---

## [Rb\_funcall() Ruby code callback invoked from within a native](https://www.ruby-forum.com/t/rb-funcall-ruby-code-callback-invoked-from-within-a-native/70950)

<div class="topic-metadata">

**Author:** [@ru551an](https://www.ruby-forum.com/u/ru551an)\
**Replies:** 1\
**Last updated:** [October 4, 2006, 7:51am UTC](https://www.ruby-forum.com/t/rb-funcall-ruby-code-callback-invoked-from-within-a-native/70950 "2006-10-04T07:51:40Z")

</div>

Dear All, I have created a Ruby extension that runs under both Windows (Ruby 1.8.4) and Linux (Ruby 1.8.5), using SWIG. The extension is written in C and is multi-threaded, thanks to PThreads. Several C functions are …

---

## [Special variable within iterators to hold results?](https://www.ruby-forum.com/t/special-variable-within-iterators-to-hold-results/70760)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 10\
**Last updated:** [October 4, 2006, 7:40am UTC](https://www.ruby-forum.com/t/special-variable-within-iterators-to-hold-results/70760 "2006-10-04T07:40:09Z")

</div>

I have this: FILTER\_COLUMNS = Array.new DISPLAYABLE\_COLUMNS.each do |field\_array| FILTER\_COLUMNS \<\< \[ field\_array\[1\], field\_array\[0\] \] end Is there any way to write this so that it could look something like: FILTER…

---

## [Using Each to Iterate](https://www.ruby-forum.com/t/using-each-to-iterate/70886)

<div class="topic-metadata">

**Author:** [@ixnay](https://www.ruby-forum.com/u/ixnay)\
**Replies:** 10\
**Last updated:** [October 4, 2006, 7:35am UTC](https://www.ruby-forum.com/t/using-each-to-iterate/70886 "2006-10-04T07:35:38Z")

</div>

Greetings all. Hopefully I’ve described this adequately and someone can see what I’m missing. I have a feeling it’s obvious. I’ve been using the Song and SongList examples from the Pragmatic Programmer’s guide, but I’…

---

## [Portable script deployment](https://www.ruby-forum.com/t/portable-script-deployment/70938)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [October 4, 2006, 3:45am UTC](https://www.ruby-forum.com/t/portable-script-deployment/70938 "2006-10-04T03:45:13Z")

</div>

I am trying to deploy several ruby scripts in a unix environment. My goal is to avoid as much as possible any hard-coding of dependencies or any modifications to scripts to work in the environment and maintain easy p…

---

## [Rdoc -\> pdf](https://www.ruby-forum.com/t/rdoc-pdf/70386)

<div class="topic-metadata">

**Author:** [@Mariano\_K](https://www.ruby-forum.com/u/Mariano_K)\
**Replies:** 3\
**Last updated:** [October 4, 2006, 2:29am UTC](https://www.ruby-forum.com/t/rdoc-pdf/70386 "2006-10-04T02:29:09Z")

</div>

Hi, I found the below quoted message when searching for a pdf output formatter for rdoc. Any idea if there has been progress made? Cheers, Mariano From: Gregory B. Date: Thurs, Dec 15 2005 11:35 pm On 12/15/05,…

---

## [Hpricot - Trying to do a few things...are they possible?](https://www.ruby-forum.com/t/hpricot-trying-to-do-a-few-things-are-they-possible/70749)

<div class="topic-metadata">

**Author:** [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Replies:** 2\
**Last updated:** [October 4, 2006, 12:02am UTC](https://www.ruby-forum.com/t/hpricot-trying-to-do-a-few-things-are-they-possible/70749 "2006-10-04T00:02:56Z")

</div>

I’ve been messing with Hpricot and I’m trying to do a few things that aren’t apparently documented or available as part of Hpricot. Can someone verify the following… Is there a simple way to determine the element’s…

---

## [Test/spec 0.1, a BDD interface for Test::Unit](https://www.ruby-forum.com/t/test-spec-0-1-a-bdd-interface-for-test-unit/70499)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 4\
**Last updated:** [October 3, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/test-spec-0-1-a-bdd-interface-for-test-unit/70499 "2006-10-03T23:04:50Z")

</div>

Hello, today I’m releasing test/spec, a library to do BDD with Test::Unit. == What is test/spec? test/spec layers an RSpec-inspired interface on top of Test::Unit, so you can mix TDD and BDD (Behavior-Driven Developm…

---

## [Apache upgrade in instant rails](https://www.ruby-forum.com/t/apache-upgrade-in-instant-rails/70894)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 1\
**Last updated:** [October 3, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/apache-upgrade-in-instant-rails/70894 "2006-10-03T21:00:36Z")

</div>

I have installed instant rails 1.1 which includes apache web server 1.3.33. However, I need to upgrade this to 2.0.59. Can I just go ahead and install the Apache web server for 2.0.59 right over 1.3.33 that was insta…

---

## [Boost.Python equivalent for Ruby?](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844)

<div class="topic-metadata">

**Author:** [@valachi](https://www.ruby-forum.com/u/valachi)\
**Replies:** 3\
**Last updated:** [October 3, 2006, 7:56pm UTC](https://www.ruby-forum.com/t/boost-python-equivalent-for-ruby/70844 "2006-10-03T19:56:28Z")

</div>

Does something like Boost.Python exist for Ruby? Couple of similar, now aborted projects, were mentioned on this newsgroup but perhaps I miss something new. (I know about C extensions and SWIG.) /Pavel

---

## [Sparse multi-dimensional arrays](https://www.ruby-forum.com/t/sparse-multi-dimensional-arrays/70872)

<div class="topic-metadata">

**Author:** [@Bill\_Birkett](https://www.ruby-forum.com/u/Bill_Birkett)\
**Replies:** 5\
**Last updated:** [October 3, 2006, 7:24pm UTC](https://www.ruby-forum.com/t/sparse-multi-dimensional-arrays/70872 "2006-10-03T19:24:24Z")

</div>

I did like to convert some programs I wrote in Perl to Ruby. I’m working with sparse three dimensional data. Here’s an example in Perl. The array @a has just two elements. The rest are undefined. #!/usr/bin/perl -w $…

---

## [Finding the file version of a win32 dll in Ruby](https://www.ruby-forum.com/t/finding-the-file-version-of-a-win32-dll-in-ruby/70878)

<div class="topic-metadata">

**Author:** [@tankow](https://www.ruby-forum.com/u/tankow)\
**Replies:** 3\
**Last updated:** [October 3, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/finding-the-file-version-of-a-win32-dll-in-ruby/70878 "2006-10-03T18:22:09Z")

</div>

Is there a way to determine the file version attribute in win32 using Ruby? I would like to report and compare file versions between 2 different windows computers using Ruby. I am mainly concerned with dll, ocx and …

---

## [Newbie: Question =\> How to do this with Classes?](https://www.ruby-forum.com/t/newbie-question-how-to-do-this-with-classes/70851)

<div class="topic-metadata">

**Author:** [@eyematz](https://www.ruby-forum.com/u/eyematz)\
**Replies:** 14\
**Last updated:** [October 3, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/newbie-question-how-to-do-this-with-classes/70851 "2006-10-03T18:16:08Z")

</div>

class Important def set\_this\_value\_method(value) end end class SemiImportant \< Important set\_this\_value\_method :something\_or\_anything end Could some kind sould please, please take the time to explain the fundamen…

---

## [Nw version of the TextMate book is available](https://www.ruby-forum.com/t/nw-version-of-the-textmate-book-is-available/70880)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/nw-version-of-the-textmate-book-is-available/70880 "2006-10-03T18:00:04Z")

</div>

Folks: I’ve uploaded the B1.02 version of Jame Edward G. II’s TextMate book. The first beta release covered all you need to know to build and make use of TextMate’s automations. This second beta goes back to the ba…

---

## [Redefining splat?](https://www.ruby-forum.com/t/redefining-splat/70765)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 11\
**Last updated:** [October 3, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/redefining-splat/70765 "2006-10-03T17:54:03Z")

</div>

Can you redefine the \* prefix operator? I’m in the middle of refactoring some code. I have a function that looks like this def send\_command cmd\_arry type = cmd\_arry.shift @comms.send(type, \*cmd\_arry) end I want to…

---

## [ActiveRecord-JDBC 0.2.2 released](https://www.ruby-forum.com/t/activerecord-jdbc-0-2-2-released/70884)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/activerecord-jdbc-0-2-2-released/70884 "2006-10-03T17:52:03Z")

</div>

ActiveRecord-JDBC 0.2.2 have now been released. This release is mostly a bug fix release, but also adds support for MimerSQL. Further, the internal structure have been changed, to allow further refactorings down the r…

---

## [Southeast Michigan Ruby Users Group. Meeting Oct 3rd at 7:00](https://www.ruby-forum.com/t/southeast-michigan-ruby-users-group-meeting-oct-3rd-at-7-00/70876)

<div class="topic-metadata">

**Author:** [@Winston\_T](https://www.ruby-forum.com/u/Winston_T)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/southeast-michigan-ruby-users-group-meeting-oct-3rd-at-7-00/70876 "2006-10-03T16:47:53Z")

</div>

The Southeast Michigan Ruby U. Group will be meeting tonight (October 3rd). 1200 EECS on UofM Campus in Ann Arbor from 7:00-8:30pm http://rubymi.org/index.php?title=Southeast\_Michigan\_Ruby\_Users\_Group Agenda: Gener…

---

## [How to Call a static method?](https://www.ruby-forum.com/t/how-to-call-a-static-method/70873)

<div class="topic-metadata">

**Author:** [@Daniel\_VSSSSlkerts](https://www.ruby-forum.com/u/Daniel_VSSSSlkerts)\
**Replies:** 7\
**Last updated:** [October 3, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/how-to-call-a-static-method/70873 "2006-10-03T16:37:52Z")

</div>

Hi there, after I searched the ruby-doc.org site I couldn’t find a hint how to call a class method on different classes. I’ve a helper class which parses a text input and which should either call Role.something or O…

---

## [Why can't I get on Top?](https://www.ruby-forum.com/t/why-cant-i-get-on-top/70694)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 15\
**Last updated:** [October 3, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/why-cant-i-get-on-top/70694 "2006-10-03T15:29:42Z")

</div>

More Toplevel blow: $toplevel = self module Test def self.included( base ) p base == $toplevel end end include Test Produces: false :frowning: T.

---

## [Monitoring Socket Disconnect during gets or readline](https://www.ruby-forum.com/t/monitoring-socket-disconnect-during-gets-or-readline/70750)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/monitoring-socket-disconnect-during-gets-or-readline/70750 "2006-10-03T14:45:38Z")

</div>

Hello… I am writing a simple chat program, but i have encountered a problem. I ask for a client to provide a handle, but it he disconnects during a gets call, it does weird things. def get\_handle(session) for at…

---

## [Ferret install, rake failing on make](https://www.ruby-forum.com/t/ferret-install-rake-failing-on-make/70842)

<div class="topic-metadata">

**Author:** [@dougal.s](https://www.ruby-forum.com/u/dougal.s)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 1:45pm UTC](https://www.ruby-forum.com/t/ferret-install-rake-failing-on-make/70842 "2006-10-03T13:45:28Z")

</div>

I’m currently trying to install the latest version of Ferret (0.10.9) on my Ubuntu Dapper (6.06) system. I have tried the gem, but it does not generate the ferret\_ext.so file. I am now trying an install from source, b…

---

## [How would I go about doing this in ruby](https://www.ruby-forum.com/t/how-would-i-go-about-doing-this-in-ruby/70802)

<div class="topic-metadata">

**Author:** [@pinkman](https://www.ruby-forum.com/u/pinkman)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 12:45pm UTC](https://www.ruby-forum.com/t/how-would-i-go-about-doing-this-in-ruby/70802 "2006-10-03T12:45:11Z")

</div>

Quick question, I have asked some other programmers, they were not sure… my friend who knows c had said cout.SetColor(‘color’); although, ruby is not c, but I take its something simular… so if anyone, can help me, thi…

---

## [Regular expressions](https://www.ruby-forum.com/t/regular-expressions/70798)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 8\
**Last updated:** [October 3, 2006, 11:40am UTC](https://www.ruby-forum.com/t/regular-expressions/70798 "2006-10-03T11:40:54Z")

</div>

I’m sorry if this has been done before, but I can’t seem to find any good examples: I’m trying to search mail messages for headers based on the following: config = YAML.load\_file(‘config.yaml’) $stdin.each do |line| …

---

## [Shell, ruby and regexp](https://www.ruby-forum.com/t/shell-ruby-and-regexp/70816)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [October 3, 2006, 11:22am UTC](https://www.ruby-forum.com/t/shell-ruby-and-regexp/70816 "2006-10-03T11:22:53Z")

</div>

over Mac OS X the latest and ruby 1.8.4 i’ve found strange interferences between the shell (in my case zsh) and arguments to a ruby script if one of the args is a Regexp as for examples : /to./ - case 1 /^Tit./ …

---

## [How to retrieve current ruby stacktrace](https://www.ruby-forum.com/t/how-to-retrieve-current-ruby-stacktrace/70815)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 3\
**Last updated:** [October 3, 2006, 11:00am UTC](https://www.ruby-forum.com/t/how-to-retrieve-current-ruby-stacktrace/70815 "2006-10-03T11:00:51Z")

</div>

My ruby program is stuck somewhere on some blocking call, but I don’t know where. Any way to probe it for a stack trace without sending it a kill signal? What are some debugger tools for something like this? Thanks …

---

## [Creating modules](https://www.ruby-forum.com/t/creating-modules/70715)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 20\
**Last updated:** [October 3, 2006, 10:32am UTC](https://www.ruby-forum.com/t/creating-modules/70715 "2006-10-03T10:32:49Z")

</div>

I am dynamically creating modules \[1\]. I would like to be able to add methods and constants to the module using the “normal” notation: module MyModule def a\_method; ‘wibble’; end end But the module doesn’t have an c…

---

## [Hoe 1.0.5 Released](https://www.ruby-forum.com/t/hoe-1-0-5-released/70829)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 10:04am UTC](https://www.ruby-forum.com/t/hoe-1-0-5-released/70829 "2006-10-03T10:04:46Z")

</div>

hoe version 1.0.5 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [Codeforpeople's rubyforge 0.3.0 released](https://www.ruby-forum.com/t/codeforpeoples-rubyforge-0-3-0-released/70827)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 9:42am UTC](https://www.ruby-forum.com/t/codeforpeoples-rubyforge-0-3-0-released/70827 "2006-10-03T09:42:45Z")

</div>

I’m proud to announce that codeforpeople’s rubyforge 0.3.0 has been released! This release further refines rubyforge’s abilities, adding news posting and finally adding multiple file releases! We still have a lot of p…

---

## [Couple of questions about constant lookups](https://www.ruby-forum.com/t/couple-of-questions-about-constant-lookups/70826)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 9:30am UTC](https://www.ruby-forum.com/t/couple-of-questions-about-constant-lookups/70826 "2006-10-03T09:30:44Z")

</div>

I asked something along these lines recently (subject: “const\_defined? not quite in sync with const\_get ??”). I don’t think this exact case was addressed in that mail but I apologise if it was… I’m wondering why the …

---

## [Rubygems user install of extensions](https://www.ruby-forum.com/t/rubygems-user-install-of-extensions/69922)

<div class="topic-metadata">

**Author:** [@Dimitri\_A](https://www.ruby-forum.com/u/Dimitri_A)\
**Replies:** 4\
**Last updated:** [October 3, 2006, 8:38am UTC](https://www.ruby-forum.com/t/rubygems-user-install-of-extensions/69922 "2006-10-03T08:38:42Z")

</div>

Hello, My problem is that I am trying to run a gems installation as a non-root user, and this doesn’t work out-of-the-box for any gems that include the building of extensions with mkmf. For each gem (example: mongrel…

---

## [IRB problem in Eclispe](https://www.ruby-forum.com/t/irb-problem-in-eclispe/67701)

<div class="topic-metadata">

**Author:** [@oshybrid](https://www.ruby-forum.com/u/oshybrid)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 8:36am UTC](https://www.ruby-forum.com/t/irb-problem-in-eclispe/67701 "2006-10-03T08:36:42Z")

</div>

Just wonderin if anyone else ran into this problem. You can set up Eclipse to use an external tool (in this case the IRB) to launch in Eclipse in a console session, and can specify a working directory to easily import…

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

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