# Ruby

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

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

---

## [Where is Fiber::Core in Ruby 1.9?](https://www.ruby-forum.com/t/where-is-fiber-core-in-ruby-1-9/129526)

<div class="topic-metadata">

**Author:** [@pluskid](https://www.ruby-forum.com/u/pluskid)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/where-is-fiber-core-in-ruby-1-9/129526 "2008-02-19T14:01:23Z")

</div>

Hi! I found some articles introduce the Fiber in Ruby 1.9. And also Fiber::Core as the coroutine support in Ruby. Here’s an example: require ‘fiber’ f = g = nil f = Fiber::Core.new { |x| puts “F1: #{x}” x = g.trans…

---

## [Can't run script after engine exception](https://www.ruby-forum.com/t/cant-run-script-after-engine-exception/129508)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 4\
**Last updated:** [February 19, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/cant-run-script-after-engine-exception/129508 "2008-02-19T13:26:27Z")

</div>

Hi All, I’ve got a problem where if I execute a Ruby script that has a syntax error or missing method and that correctly fails I cannot use that engine object to subsequently execute a valid script. If I restart the …

---

## [Super.index gives error](https://www.ruby-forum.com/t/super-index-gives-error/129535)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 11:51am UTC](https://www.ruby-forum.com/t/super-index-gives-error/129535 "2008-02-19T11:51:11Z")

</div>

Hello! I’m having a strange problem. class Super def index puts “some code” end end class Base \< Super def index super.index() # Says you super is nil! nil.index and an error. What might be wrong? end end

---

## [$BJ8;zNs=hM}$N9bB.2=(B?](https://www.ruby-forum.com/t/bj8-zns-hm-n9bb-2-b/129395)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 5\
**Last updated:** [February 19, 2008, 11:49am UTC](https://www.ruby-forum.com/t/bj8-zns-hm-n9bb-2-b/129395 "2008-02-19T11:49:23Z")

</div>

e$B$?$@$N0lNc$G$9$,!“@h=5$N6bMKF|$K\>\>K$5$s$K8+$;$?$H$-$Ke(B 50e$BIC$0$i$$$+$+$C$?%W%m%0%i%$O$=$N8e$Ne(B commit e$B$G$\*$=$/$J$j!"e(B 65e$BIC$0$i$$$+$+$C$F$$$^$9!#%W%m%0%i%$O0J2\<$NDL$je(B (e$B0JA0e(B Wolfgang Na’dasi-Don…

---

## [OT: Why are .zip files so much bigger than tar.gz files?](https://www.ruby-forum.com/t/ot-why-are-zip-files-so-much-bigger-than-tar-gz-files/129489)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 8\
**Last updated:** [February 19, 2008, 11:37am UTC](https://www.ruby-forum.com/t/ot-why-are-zip-files-so-much-bigger-than-tar-gz-files/129489 "2008-02-19T11:37:33Z")

</div>

So I has started to offer .zip packages of my projects to make life a little easier for Windows folks --seeing as it’s no sweat off the backs of Linux folks either (unzip) --but then I noticed that zip files are huge.…

---

## [RMagick: img.extract\_info contains no data](https://www.ruby-forum.com/t/rmagick-img-extract-info-contains-no-data/129531)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 11:14am UTC](https://www.ruby-forum.com/t/rmagick-img-extract-info-contains-no-data/129531 "2008-02-19T11:14:03Z")

</div>

Hi guys… i tried to find out the height and width of an img: img = Image.read(absolut\_path\_to\_a\_nice\_picture).first puts img.inspect puts img.extract\_info gets: nice\_picture.jpg JPEG 3504x2336 3504x2336+0+0 DirectC…

---

## [TRAC - Trac, Project Leads, Python, and Mr. Noah Kantrowitz (sanitizer)](https://www.ruby-forum.com/t/trac-trac-project-leads-python-and-mr-noah-kantrowitz-sanitizer/129303)

<div class="topic-metadata">

**Author:** [@Ilias\_L](https://www.ruby-forum.com/u/Ilias_L)\
**Replies:** 14\
**Last updated:** [February 19, 2008, 10:26am UTC](https://www.ruby-forum.com/t/trac-trac-project-leads-python-and-mr-noah-kantrowitz-sanitizer/129303 "2008-02-19T10:26:15Z")

</div>

Essence: Trac is deficient, cause of “proud to be an egoism driven amateur” developers Python and it’s communities is excellent for learning. Not programming, but to “learn from deficiency”, community organization, …

---

## [The meanings of Asterisk (and Webby)](https://www.ruby-forum.com/t/the-meanings-of-asterisk-and-webby/129467)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 9:44am UTC](https://www.ruby-forum.com/t/the-meanings-of-asterisk-and-webby/129467 "2008-02-19T09:44:30Z")

</div>

Hi all! I have a class that is used in a Webby page. The class needs to make use of a function within three modules: module Webby module Helpers #:nodoc: module UrlHelper Since the function is an “instance” functi…

---

## [REXML document creation speed](https://www.ruby-forum.com/t/rexml-document-creation-speed/129512)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 9:00am UTC](https://www.ruby-forum.com/t/rexml-document-creation-speed/129512 "2008-02-19T09:00:50Z")

</div>

Hi, Please excuse my ignorance, but I’m new to this. I’ve written a script that downloads historical stock quotes as .csv, parses it, then writes out an XML doc that I can then use elsewhere. It works as designed, bu…

---

## [Singleton methods on builtin global constants](https://www.ruby-forum.com/t/singleton-methods-on-builtin-global-constants/129509)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 8:46am UTC](https://www.ruby-forum.com/t/singleton-methods-on-builtin-global-constants/129509 "2008-02-19T08:46:39Z")

</div>

I’ve been looking into implementing environment variable lookup, eg ENV\[‘RUBYOPT’\] (as it is required for gems setup). ENV is a builtin global constant. In the CRuby implementation it points to a plain old Ruby obje…

---

## [Re: The Smallest Circle (#157)](https://www.ruby-forum.com/t/re-the-smallest-circle-157/129239)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 7:15am UTC](https://www.ruby-forum.com/t/re-the-smallest-circle-157/129239 "2008-02-19T07:15:48Z")

</div>

I for one welcome our new quiz masters.

---

## [Jobregator.com - Ruby and ROR Job Aggregator](https://www.ruby-forum.com/t/jobregator-com-ruby-and-ror-job-aggregator/129427)

<div class="topic-metadata">

**Author:** [@Husein\_C](https://www.ruby-forum.com/u/Husein_C)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 6:59am UTC](https://www.ruby-forum.com/t/jobregator-com-ruby-and-ror-job-aggregator/129427 "2008-02-19T06:59:10Z")

</div>

http://www.jobregator.com jobregator is a ruby and rails job aggregator, currently gathering jobs from following sources (and many more to come): http://railswork.com http://www.opensourcexperts.com http://rubyrocks…

---

## [Requiring .NET assemblies](https://www.ruby-forum.com/t/requiring-net-assemblies/129466)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 8\
**Last updated:** [February 19, 2008, 6:20am UTC](https://www.ruby-forum.com/t/requiring-net-assemblies/129466 "2008-02-19T06:20:25Z")

</div>

Hi, I ran into a pretty weird issue, I tried to use some of the .NET ORM’s with IronRuby. I haven’t investigated with the debugger turned on yet but here’s what I observed I tried this with ActiveRecord from Castle…

---

## [Issue installing Mongrel from Gems](https://www.ruby-forum.com/t/issue-installing-mongrel-from-gems/129495)

<div class="topic-metadata">

**Author:** [@jsierra](https://www.ruby-forum.com/u/jsierra)\
**Replies:** 2\
**Last updated:** [February 19, 2008, 5:49am UTC](https://www.ruby-forum.com/t/issue-installing-mongrel-from-gems/129495 "2008-02-19T05:49:54Z")

</div>

So I’m trying to install Mongrel (I’m running Fedora 8) by using gems… and here’s what I get: \[js@localhost ~\]$ sudo gem install mongrel Password: Select which gem to install for your platform (i386-linux) mongrel …

---

## [Mr Bones 1.3.3 (Fractal Bovine)](https://www.ruby-forum.com/t/mr-bones-1-3-3-fractal-bovine/129487)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 5:45am UTC](https://www.ruby-forum.com/t/mr-bones-1-3-3-fractal-bovine/129487 "2008-02-19T05:45:15Z")

</div>

Mr Bones version 1.3.3 by Tim P. http://codeforpeople.rubyforge.org/bones (the “Fractal Bovine” release) == DESCRIPTION Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton cont…

---

## [MergeLocation bug](https://www.ruby-forum.com/t/mergelocation-bug/129494)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 1\
**Last updated:** [February 19, 2008, 5:04am UTC](https://www.ruby-forum.com/t/mergelocation-bug/129494 "2008-02-19T05:04:12Z")

</div>

A Parser/scanner bug has been introduced in lastest revision. We used to be able to successfully parse rubygems-1.0.1\\setup.rb but it now raises an assertion error in SourceSpan::ValidateLocations. The problem lies in…

---

## [Upcoming Phoenix Ruby User Group Meetings](https://www.ruby-forum.com/t/upcoming-phoenix-ruby-user-group-meetings/129506)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 4:46am UTC](https://www.ruby-forum.com/t/upcoming-phoenix-ruby-user-group-meetings/129506 "2008-02-19T04:46:36Z")

</div>

Special note: James goofed at the last meeting and forgot to give out the PeepCode coupons. PLEASE don’t let me forget this twice. Folks new to Ruby get first dibs. Double-dibs if you missed getting a coupon at the F…

---

## [How come this code doesnt work as designed?](https://www.ruby-forum.com/t/how-come-this-code-doesnt-work-as-designed/129493)

<div class="topic-metadata">

**Author:** [@gmoniey](https://www.ruby-forum.com/u/gmoniey)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 2:12am UTC](https://www.ruby-forum.com/t/how-come-this-code-doesnt-work-as-designed/129493 "2008-02-19T02:12:12Z")

</div>

Hi, I found this web crawler code online using mechanize, require ‘mechanize’ agent = WWW::Mechanize.new page = agent.get(‘http://example.com/’) stack = page.links counter = 0; out = File.open(“out.txt”, “w”) whi…

---

## [Webby 0.7.2](https://www.ruby-forum.com/t/webby-0-7-2/127952)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 7\
**Last updated:** [February 19, 2008, 12:53am UTC](https://www.ruby-forum.com/t/webby-0-7-2/127952 "2008-02-19T00:53:14Z")

</div>

== Webby by Tim P. http://webby.rubyforge.org == Description Webby builds websites. It’s not a framework. It’s not a webserver. It’s not a content management system. Webby builds websites very, very well. Webby wi…

---

## [Open-uri behaviour change](https://www.ruby-forum.com/t/open-uri-behaviour-change/129485)

<div class="topic-metadata">

**Author:** [@sclaerhout](https://www.ruby-forum.com/u/sclaerhout)\
**Replies:** 0\
**Last updated:** [February 19, 2008, 12:04am UTC](https://www.ruby-forum.com/t/open-uri-behaviour-change/129485 "2008-02-19T00:04:15Z")

</div>

I noticed a change in behaviour for open-uri when using it for automatic ftp It works fine in Ruby 1.8.1 as follows:… \[foo@bar ~\]$ ruby -v ruby 1.8.1 (2003-12-25) \[x86\_64-linux-gnu\] \[foo@bar ~\]$ ruby -le ‘require “o…

---

## [Useful uses for instance-specific methods](https://www.ruby-forum.com/t/useful-uses-for-instance-specific-methods/129480)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/useful-uses-for-instance-specific-methods/129480 "2008-02-18T23:10:53Z")

</div>

I ran into two specific cases this weekend where singleton methods made my code feel a lot cleaner. For your enjoyment, I’ll show them both here. Here’s the first version of the code: class WordTreeNode attr\_accesso…

---

## [How to get html table value efficiently into an array](https://www.ruby-forum.com/t/how-to-get-html-table-value-efficiently-into-an-array/129474)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 18, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/how-to-get-html-table-value-efficiently-into-an-array/129474 "2008-02-18T23:06:04Z")

</div>

hi guys, I have a table in html and I’m using watir rudy to read values from that table and put into an array. Right now I’m doing like that: frame.table(:id, "SomeTable").rows.each\_with\_index{|r, i| totalce…

---

## [Problems with gembuilder 1.1.3 and rubygems 1.0.1](https://www.ruby-forum.com/t/problems-with-gembuilder-1-1-3-and-rubygems-1-0-1/129477)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/problems-with-gembuilder-1-1-3-and-rubygems-1-0-1/129477 "2008-02-18T22:56:01Z")

</div>

Wondering if anyone else has tried this combination? I found a patch on the gembuilder project page that updated it for rubygems 0.9.5, but while it appears to run on 1.0.1 I’m finding it creates malformed gems full o…

---

## [Send keystrokes to Firefox or Safari?](https://www.ruby-forum.com/t/send-keystrokes-to-firefox-or-safari/129341)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 8\
**Last updated:** [February 18, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/send-keystrokes-to-firefox-or-safari/129341 "2008-02-18T21:15:48Z")

</div>

Is there a way to send keystrokes to Firefox or Safari on Mac OS X Leopard using Ruby? I don’t want to remote control the web using watir or anything, I just want to send keystrokes (ie. I want to be able to type into…

---

## [Write a copy of the current script](https://www.ruby-forum.com/t/write-a-copy-of-the-current-script/129432)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 7\
**Last updated:** [February 18, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/write-a-copy-of-the-current-script/129432 "2008-02-18T20:08:10Z")

</div>

I would like to write a copy of the current script being executed. I’ve attempted to use FILE and $0, but neither is returning the full path name of script. I get the file name, but not the path in which it resides. …

---

## [Object specific methods and id](https://www.ruby-forum.com/t/object-specific-methods-and-id/129157)

<div class="topic-metadata">

**Author:** [@UpsNDowns](https://www.ruby-forum.com/u/UpsNDowns)\
**Replies:** 23\
**Last updated:** [February 18, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/object-specific-methods-and-id/129157 "2008-02-18T20:02:13Z")

</div>

Hi, If I create an object specifc method foo on my string instance obj, a new anonymous class (the singleton, I gather) is created and obj is considered an instance of that. Also, every thing is an object (event clas…

---

## [Outlook .NK2 record processing](https://www.ruby-forum.com/t/outlook-nk2-record-processing/129450)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/outlook-nk2-record-processing/129450 "2008-02-18T19:00:41Z")

</div>

How do I process records in MS Outlook.NK2 files?

---

## [Rice 1.0.1 - Bug Fixes](https://www.ruby-forum.com/t/rice-1-0-1-bug-fixes/129449)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [February 18, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/rice-1-0-1-bug-fixes/129449 "2008-02-18T18:50:43Z")

</div>

Rice: Ruby Interface for C++ Extensions Change Log: Fixed x86\_64 bit install bug with -fPIC Fixed the tarball and zip file, they were missing an essential configuration file. What is Rice? Rice is a C++ interface t…

---

## [IronRuby (Without MVC ) and ActiveRecord... Is it Possible](https://www.ruby-forum.com/t/ironruby-without-mvc-and-activerecord-is-it-possible/127591)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 12\
**Last updated:** [February 18, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/ironruby-without-mvc-and-activerecord-is-it-possible/127591 "2008-02-18T18:47:45Z")

</div>

Hi, I wa just reading a book called " Beginning Rails " and i found this information in it. Here it is… The fact is an Active Record subclass,isnâ€™t much different from a regular Ruby class. Active Record models ar…

---

## [Where to check for nils or empty?](https://www.ruby-forum.com/t/where-to-check-for-nils-or-empty/129323)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 7\
**Last updated:** [February 18, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/where-to-check-for-nils-or-empty/129323 "2008-02-18T18:15:08Z")

</div>

I am processing arrays of URLs. I call a series of methods to delete or modify those urls. I have a risk that those methods will return an empty or null array. I am trying to figure out where and how to best check if…

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

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