# Ruby

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

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

---

## [The funniest thing ever](https://www.ruby-forum.com/t/the-funniest-thing-ever/85125)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 26\
**Last updated:** [February 14, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/the-funniest-thing-ever/85125 "2007-02-14T19:08:13Z")

</div>

this was so dang funny i had to share it C++ : an octopus made by nailing extra legs onto a dog. -- off smalltalk.org http://www.cs.caltech.edu/~mvanier/hacking/rants/scalable\_computer\_programming\_languages.html i’m…

---

## [Problem with File.mv](https://www.ruby-forum.com/t/problem-with-file-mv/85422)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 12\
**Last updated:** [February 14, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/problem-with-file-mv/85422 "2007-02-14T17:25:55Z")

</div>

Hi, running Ruby 1.8.4 under Windows 2000 i have a dir with subdirs = deploy\_tmp/ /subdir1 /subsubdir1 /subsubdir2 /subdir2 /subsubdir1 /subsubdir2 … i look for the eldest dir with = CANDIDATE = Dir\["#{SRCDIR…

---

## [Re: Very interesting paper about future programming models](https://www.ruby-forum.com/t/re-very-interesting-paper-about-future-programming-models/85292)

<div class="topic-metadata">

**Author:** [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Replies:** 2\
**Last updated:** [February 14, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/re-very-interesting-paper-about-future-programming-models/85292 "2007-02-14T16:56:52Z")

</div>

Benjohn B. wrote: Having not even read the piece… I was following up on Software Transactional Memory from an earlier Ruby T. posting, and that looks extremely promising. Have you read this thread on Software Trans…

---

## [Question about rb\_cvar\_set](https://www.ruby-forum.com/t/question-about-rb-cvar-set/85459)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [February 14, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/question-about-rb-cvar-set/85459 "2007-02-14T16:05:41Z")

</div>

Hi, Ruby 1.8.5 p12 It looks like there was a prototype change in rb\_cvar\_set() at some point in the 1.8.x branch. It now takes a 4th parameter (an int). What is the 4th parameter supposed to be? Thanks, Dan

---

## [Debugging Ruby](https://www.ruby-forum.com/t/debugging-ruby/85513)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 3\
**Last updated:** [February 14, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/debugging-ruby/85513 "2007-02-14T15:42:29Z")

</div>

I am starting chapter 13 or Programming Ruby trying to debug the following factorial program (in file t.rb) on page 163: def fact(n) if n \<= 0 1 else n \* fact(n -1) end end p fact(5) When I run the command: ru…

---

## [Dynamic function calls](https://www.ruby-forum.com/t/dynamic-function-calls/85543)

<div class="topic-metadata">

**Author:** [@tomas](https://www.ruby-forum.com/u/tomas)\
**Replies:** 2\
**Last updated:** [February 14, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/dynamic-function-calls/85543 "2007-02-14T15:18:33Z")

</div>

Hi, I want to write an installer, which checks, if sth. is present on the target system and if not, the installer will install it. For example, the installer checks if zip is installed. So I have tons of check functi…

---

## [Wsdl2ruby.rb issue - part: value cannot be resolved (Runtime](https://www.ruby-forum.com/t/wsdl2ruby-rb-issue-part-value-cannot-be-resolved-runtime/85533)

<div class="topic-metadata">

**Author:** [@rheos](https://www.ruby-forum.com/u/rheos)\
**Replies:** 0\
**Last updated:** [February 14, 2007, 10:26am UTC](https://www.ruby-forum.com/t/wsdl2ruby-rb-issue-part-value-cannot-be-resolved-runtime/85533 "2007-02-14T10:26:00Z")

</div>

I’ trying to run wsdl2ruby but having an issue with it crashing before completion. this is the command… wsdl2ruby.rb --wsdl http://www.myfonts.com/soap/myfonts.wsdl --type client --force ignored attr: {}message I s…

---

## [Debugging SDL with the rsdl binary](https://www.ruby-forum.com/t/debugging-sdl-with-the-rsdl-binary/85531)

<div class="topic-metadata">

**Author:** [@SonOfLilit](https://www.ruby-forum.com/u/SonOfLilit)\
**Replies:** 0\
**Last updated:** [February 14, 2007, 10:21am UTC](https://www.ruby-forum.com/t/debugging-sdl-with-the-rsdl-binary/85531 "2007-02-14T10:21:00Z")

</div>

Hello all, On OSX (not sure about other platforms), to use Ruby/SDL, code needs to be executed by the executable rsdl (a C wrapper of ~10 lines, I read) and not by the ruby executable. That means no dropping into a…

---

## [One-Liners (#113)](https://www.ruby-forum.com/t/one-liners-113/85062)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 45\
**Last updated:** [February 14, 2007, 8:55am UTC](https://www.ruby-forum.com/t/one-liners-113/85062 "2007-02-14T08:55:50Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Newb - uninitialized constant error](https://www.ruby-forum.com/t/newb-uninitialized-constant-error/85482)

<div class="topic-metadata">

**Author:** [@srogers](https://www.ruby-forum.com/u/srogers)\
**Replies:** 3\
**Last updated:** [February 14, 2007, 6:12am UTC](https://www.ruby-forum.com/t/newb-uninitialized-constant-error/85482 "2007-02-14T06:12:32Z")

</div>

I am a Newbie who has written some Ruby code - it actually works when ‘all in one file’. To make it more re-usable and practice good coding style, I broke it into 2 - one for classes, one for test code. Call them ‘Tex…

---

## [Cannot read beyond the end of buffer on Opteron (and yes, pa](https://www.ruby-forum.com/t/cannot-read-beyond-the-end-of-buffer-on-opteron-and-yes-pa/85463)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 1\
**Last updated:** [February 14, 2007, 4:04am UTC](https://www.ruby-forum.com/t/cannot-read-beyond-the-end-of-buffer-on-opteron-and-yes-pa/85463 "2007-02-14T04:04:29Z")

</div>

Hi guys. I’m trying to get Ruby working properly on a Opteron (Ubuntu LTS server) system. It’s actually a Rails project, but I believe my problem to be specifically related to Ruby and not necessarily Rails. When I r…

---

## [Ruby2ruby 1.1.4 Released](https://www.ruby-forum.com/t/ruby2ruby-1-1-4-released/85477)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [February 14, 2007, 3:46am UTC](https://www.ruby-forum.com/t/ruby2ruby-1-1-4-released/85477 "2007-02-14T03:46:28Z")

</div>

ruby2ruby version 1.1.4 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [ParseTree 1.6.4 Released](https://www.ruby-forum.com/t/parsetree-1-6-4-released/85474)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [February 14, 2007, 3:45am UTC](https://www.ruby-forum.com/t/parsetree-1-6-4-released/85474 "2007-02-14T03:45:28Z")

</div>

ParseTree version 1.6.4 has been released! zenspider projects | software projects | by ryan davis ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and…

---

## [Jumping to "the next one" in something#each](https://www.ruby-forum.com/t/jumping-to-the-next-one-in-something-each/85094)

<div class="topic-metadata">

**Author:** [@Garance\_A\_Drosehn](https://www.ruby-forum.com/u/Garance_A_Drosehn)\
**Replies:** 13\
**Last updated:** [February 14, 2007, 3:45am UTC](https://www.ruby-forum.com/t/jumping-to-the-next-one-in-something-each/85094 "2007-02-14T03:45:28Z")

</div>

I’m sorry that this message will be long and somewhat rambling, but I wanted to try to write up my thoughts on this, even though my thoughts are not very clear… There’s a situation that I occassionally run into, which…

---

## [Env](https://www.ruby-forum.com/t/env/85136)

<div class="topic-metadata">

**Author:** [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Replies:** 10\
**Last updated:** [February 14, 2007, 3:18am UTC](https://www.ruby-forum.com/t/env/85136 "2007-02-14T03:18:23Z")

</div>

Hi, in irb I can have access to ENV\[‘COLUMNS’\] for the # of columns in the shell, and works fine. But inside a script (ruby script.rb), I can’t have access to that hash key and value. I’ve done a: puts ENV.to\_a an…

---

## [What is Proc#==](https://www.ruby-forum.com/t/what-is-proc/85293)

<div class="topic-metadata">

**Author:** [@Sylvain\_J](https://www.ruby-forum.com/u/Sylvain_J)\
**Replies:** 9\
**Last updated:** [February 14, 2007, 2:42am UTC](https://www.ruby-forum.com/t/what-is-proc/85293 "2007-02-14T02:42:21Z")

</div>

From the description, ---------------------------------------------------------------- Proc#== prc == other\_proc =\> true or false Return true if prc is the same object as other\_proc, or if they are both procs with…

---

## [Dynamically determining a class' namespace](https://www.ruby-forum.com/t/dynamically-determining-a-class-namespace/85467)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [February 14, 2007, 12:38am UTC](https://www.ruby-forum.com/t/dynamically-determining-a-class-namespace/85467 "2007-02-14T00:38:13Z")

</div>

Hi all, Ruby 1.8.x Is there a way to determine a classes namespace from within an instance method? class Foo def initialize # print namespace end end Foo.new # ‘Object’? ‘Kernel’? nil? module Bar Foo.new # ‘Ba…

---

## [Re: Los Angeles area users group?](https://www.ruby-forum.com/t/re-los-angeles-area-users-group/85122)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 7\
**Last updated:** [February 13, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/re-los-angeles-area-users-group/85122 "2007-02-13T23:28:06Z")

</div>

I’m in LA also; there’s a very active Perl user’s group, but no Ruby group. I’d love to see a Ruby group get started. Maybe enough locals here will chime in with a “me too” on this list, and we can get build some mome…

---

## [Editing environment.rb files](https://www.ruby-forum.com/t/editing-environment-rb-files/85223)

<div class="topic-metadata">

**Author:** [@Rae](https://www.ruby-forum.com/u/Rae)\
**Replies:** 4\
**Last updated:** [February 13, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223 "2007-02-13T23:26:05Z")

</div>

I did a search on the internet to try to find a way to get rid of message: C:0:Warning: require\_gem is obsolete. Use gem instead. I found in an old archive, the following suggestion: "You can fix it in environment.rb…

---

## [Hoe 1.2.0 Released](https://www.ruby-forum.com/t/hoe-1-2-0-released/85475)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [February 13, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/hoe-1-2-0-released/85475 "2007-02-13T23:11:03Z")

</div>

hoe version 1.2.0 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…

---

## [NEWBIE: What is the dos-box for and why is it there?](https://www.ruby-forum.com/t/newbie-what-is-the-dos-box-for-and-why-is-it-there/85473)

<div class="topic-metadata">

**Author:** [@noble](https://www.ruby-forum.com/u/noble)\
**Replies:** 1\
**Last updated:** [February 13, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/newbie-what-is-the-dos-box-for-and-why-is-it-there/85473 "2007-02-13T23:06:02Z")

</div>

I am very new to Ruby. In fact I just downloaded it and started looking at it today. I am using Windows. Here is my question: I loaded the program “fxri” and upon starting I got a screen full of warning messages in a…

---

## [Re : One-Click Ruby Installer for Windows: 185-22 Final](https://www.ruby-forum.com/t/re-one-click-ruby-installer-for-windows-185-22-final/85417)

<div class="topic-metadata">

**Author:** [@rubarachni](https://www.ruby-forum.com/u/rubarachni)\
**Replies:** 3\
**Last updated:** [February 13, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/re-one-click-ruby-installer-for-windows-185-22-final/85417 "2007-02-13T22:34:59Z")

</div>

I installed this release (without Scite) and the readline package is missing. Thus the TAB completion within irb doesn’t work. Trying require ‘readline’ returns false. CM. PS : Can you consider upgrading the scite …

---

## [Quick newbie true/false/nil question](https://www.ruby-forum.com/t/quick-newbie-true-false-nil-question/85465)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 7\
**Last updated:** [February 13, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/quick-newbie-true-false-nil-question/85465 "2007-02-13T22:20:57Z")

</div>

I ran across this line of code today, and it doesn’t make sense to me. if ((klass = CommDispatcher.check\_hash(path)) == nil) How would that value ever equal nil? I thought that if klass failed to be assigned to the …

---

## [Linux OS](https://www.ruby-forum.com/t/linux-os/84633)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 42\
**Last updated:** [February 13, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/linux-os/84633 "2007-02-13T22:19:57Z")

</div>

I’m building a Linux VM inside of my Windows box so I can experiment with setting up different ruby/rails situations, configuring apache, trying out nginx, etc. I know this is usually a heated debate, but does anyon…

---

## [Checking the name of the host Operating System](https://www.ruby-forum.com/t/checking-the-name-of-the-host-operating-system/85461)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 2\
**Last updated:** [February 13, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/checking-the-name-of-the-host-operating-system/85461 "2007-02-13T21:29:39Z")

</div>

Hey Guys, Anyone know how I can determine the name of the host operating system from within Ruby? Sonny.

---

## [Non-English characters](https://www.ruby-forum.com/t/non-english-characters/85454)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 4\
**Last updated:** [February 13, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/non-english-characters/85454 "2007-02-13T21:05:47Z")

</div>

Has anyone seen a non-english characters library for Ruby walking around? For now, I need to remove letter decorators (in other words, ‘ñ’ becomes n and ‘â’ becomes a) and drop non-alphanumeric characters (’!etter’ be…

---

## [Ruby, OO newb, subclassing question](https://www.ruby-forum.com/t/ruby-oo-newb-subclassing-question/85458)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 2\
**Last updated:** [February 13, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/ruby-oo-newb-subclassing-question/85458 "2007-02-13T20:40:45Z")

</div>

I am a Ruby, OO newbie. I mostly work with databases. I am trying to use ruby for scripting some of my routine tasks. I am trying to sub class a File, to create a HtmlReportFile with additional methods. class HtmlRep…

---

## [Extracting sub elements in array](https://www.ruby-forum.com/t/extracting-sub-elements-in-array/85453)

<div class="topic-metadata">

**Author:** [@wkc](https://www.ruby-forum.com/u/wkc)\
**Replies:** 4\
**Last updated:** [February 13, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/extracting-sub-elements-in-array/85453 "2007-02-13T20:27:42Z")

</div>

Is there a fast way to return a subsection of an array object as there is the minor function for a Matrix? For example testArray = \[\[1,2,3,4,5\], \[7,8,9,10,11\]\] How can the elements \[\[4,5\],\[10,11\]\] be extracted? Th…

---

## [OS X RubyGems installation question](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 4\
**Last updated:** [February 13, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449 "2007-02-13T20:24:42Z")

</div>

Hi, I am just migrating from one OS X system to a new MBP :slight\_smile: I’m trying the rubygem installation process, but when I run: sudo ruby setup.rb from rubygems-0.9.2 I get: setup.rb:52:in \`require’: no such …

---

## [GtkDialog with GdkWindow as parent](https://www.ruby-forum.com/t/gtkdialog-with-gdkwindow-as-parent/85350)

<div class="topic-metadata">

**Author:** [@cmanruby](https://www.ruby-forum.com/u/cmanruby)\
**Replies:** 2\
**Last updated:** [February 13, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/gtkdialog-with-gdkwindow-as-parent/85350 "2007-02-13T20:05:41Z")

</div>

I am trying to create a Gtk::MessageDialog with a win32 window as its parent (the reason comes in the end). Now, it is possible to make a Gdk::Window wrapper using require ‘gtk2’ win = Gdk::Window.foreign\_new ARGV\[0\]…

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

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