# Ruby

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

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

---

## [Trying to install a gem from a tarball and getting an exception](https://www.ruby-forum.com/t/trying-to-install-a-gem-from-a-tarball-and-getting-an-exception/142425)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 2\
**Last updated:** [July 7, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/trying-to-install-a-gem-from-a-tarball-and-getting-an-exception/142425 "2008-07-07T22:16:25Z")

</div>

Hi, I’m trying to install RCov without the native extension with JRuby 1.1.2. And I’m getting an exception. the steps I’m following are: get the rcov-0.8.1.2 tarball - http://rubyforge.org/frs/download.php/28270/…

---

## [MiniExiftool 0.7.0 released](https://www.ruby-forum.com/t/miniexiftool-0-7-0-released/142427)

<div class="topic-metadata">

**Author:** [@janfoeh](https://www.ruby-forum.com/u/janfoeh)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/miniexiftool-0-7-0-released/142427 "2008-07-07T22:00:36Z")

</div>

MiniExiftool version 0.7.0 released! http://miniexiftool.rubyforge.org/ MiniExiftool is a wrapper library for the Exiftool command-line application (www.sno.phy.queensu.ca/~phil/exiftool/) written by Phil Harvay. One…

---

## [July 14 Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/july-14-phoenix-ruby-user-group-meeting/142419)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/july-14-phoenix-ruby-user-group-meeting/142419 "2008-07-07T20:41:02Z")

</div>

July Phoenix Ruby U. Group Meeting Date: Monday, July 14, 2008 Time: 6:30 pm - at Saguaro branch Phoenix Public Library Place: Saguaro branch Phoenix Public Library 2808 N. 46th Street Phoenix, AZ 85008 IMPORTANT…

---

## [Ruby as a standard](https://www.ruby-forum.com/t/ruby-as-a-standard/142417)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/ruby-as-a-standard/142417 "2008-07-07T20:24:37Z")

</div>

“Matz plans to hand in the standard to the ISO (International Organization for Standardization), however, a concrete date has not yet been determined-only that it will “at least take a couple of years for standardiz…

---

## [Spec changes](https://www.ruby-forum.com/t/spec-changes/142347)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 5\
**Last updated:** [July 7, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/spec-changes/142347 "2008-07-07T20:06:29Z")

</div>

I think the following spec is wrong for FileOps.dirname Â It is Â Â Â Â File.dirname(’/////’).should == ‘/’ Â but it should be Â Â Â Â File.dirname(’/////’).should == ‘//’ Â If it is my misunderstanding, plea…

---

## [Meta\_data from Raw Image files and \*.psd files](https://www.ruby-forum.com/t/meta-data-from-raw-image-files-and-psd-files/142412)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/meta-data-from-raw-image-files-and-psd-files/142412 "2008-07-07T19:16:42Z")

</div>

Hi I am needing to extract metadata from image files primarily canon .CR2 and photoshop.psd files so I can use the metadata in a mysql database. Does anyone know of any available routines to help with the task… I wo…

---

## [Vancouver.rb Open Ruby Hack Night #5 - Today 7pm - Whenever (9ish) @ Waves Coffee](https://www.ruby-forum.com/t/vancouver-rb-open-ruby-hack-night-5-today-7pm-whenever-9ish-waves-coffee/142411)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/vancouver-rb-open-ruby-hack-night-5-today-7pm-whenever-9ish-waves-coffee/142411 "2008-07-07T19:16:07Z")

</div>

Hello, Are you a Rubyist in the greater Vancouver metro in British Columbia (B.c.) on Canada’s West Coast in the Americas? Join us and drop by for the weekly Vancouver.rb Open Ruby Hack Night at Waves Coffee (offerin…

---

## [Issue with TestClassBuilder](https://www.ruby-forum.com/t/issue-with-testclassbuilder/142410)

<div class="topic-metadata">

**Author:** [@Brendan\_Grainger](https://www.ruby-forum.com/u/Brendan_Grainger)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/issue-with-testclassbuilder/142410 "2008-07-07T19:12:36Z")

</div>

Hi, Sorry if this is a dumb question, but does anyone know if this test should work? I am trying to play with generating class files using Compiler::Builder and was using the test\_class\_builder for inspiration. Howev…

---

## [Mysterious memory corruption, very confused](https://www.ruby-forum.com/t/mysterious-memory-corruption-very-confused/141685)

<div class="topic-metadata">

**Author:** [@Seebs](https://www.ruby-forum.com/u/Seebs)\
**Replies:** 10\
**Last updated:** [July 7, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/mysterious-memory-corruption-very-confused/141685 "2008-07-07T18:52:41Z")

</div>

ruby 1.8.7-p22, OS X 10.4.mumble, PostgreSQL 8.3.1, ruby-pg 2008-03-18. I get random data corruption when trying to execute queries. The data corruption comes and goes VERY unpredictably. I’ve narrowed it down to a s…

---

## [Another logical precedence question](https://www.ruby-forum.com/t/another-logical-precedence-question/142408)

<div class="topic-metadata">

**Author:** [@S-jb](https://www.ruby-forum.com/u/S-jb)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/another-logical-precedence-question/142408 "2008-07-07T18:06:22Z")

</div>

I am used to using the following shortcut: value = ARGV.shift or usage where usage is a method. However, I recently ran into a situation where the following did not work (as expected, anyway): $user\_type = ARGV.shif…

---

## [Hawthorne Press/IRHG site down?](https://www.ruby-forum.com/t/hawthorne-press-irhg-site-down/142407)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/hawthorne-press-irhg-site-down/142407 "2008-07-07T17:24:09Z")

</div>

Is the IRHG site down? I’m getting 404s, etc. M. Edward (Ed) Borasky http://ruby-perspectives.blogspot.com/ “A mathematician is a machine for turning coffee into theorems.” – AlfrÃ©d RÃ©nyi via Paul ErdÅ‘s

---

## ["No.9".succ == "Np.0"](https://www.ruby-forum.com/t/no-9-succ-np-0/140425)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [July 7, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/no-9-succ-np-0/140425 "2008-07-07T16:30:44Z")

</div>

e$B$k$S$-$A$G$9!#e(B e$B8=\>u$Ne(BString#succe$B$O0J2\<$N$h$&$J5sF0$K$J$k$N$G$9$,!"e(B e$BHs1Q?t;z$r69$s$@?t;z$H1Q;z$N7+$j\>e$,$j$OJL$K$7$?$\[$&$,$$$$$N$G$O$J$$$G$7$g$&$+!)e(B e$B$D$^$j!Ve(B"No.10"e$B!W$rJV$9$\[$&$,\<+A3$@$…

---

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

<div class="topic-metadata">

**Author:** [@bbnnt](https://www.ruby-forum.com/u/bbnnt)\
**Replies:** 6\
**Last updated:** [July 7, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/ruby-cache/141690 "2008-07-07T15:49:05Z")

</div>

Hi, would like to know if anybody has some information or experience about using ruby cache (PUPA: Ruby/Cache). Seems to be great, sometimes rails plugins seems to be heavy; as about, does it integrates with rails eas…

---

## [Origin of a definition](https://www.ruby-forum.com/t/origin-of-a-definition/142351)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/origin-of-a-definition/142351 "2008-07-07T15:40:51Z")

</div>

Is there any way to find out the filename and line number of a definition such as a class or method at runtime?

---

## [Does Ruby have any advantage over Python to create semantic applications?](https://www.ruby-forum.com/t/does-ruby-have-any-advantage-over-python-to-create-semantic-applications/142231)

<div class="topic-metadata">

**Author:** [@Costan](https://www.ruby-forum.com/u/Costan)\
**Replies:** 9\
**Last updated:** [July 7, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/does-ruby-have-any-advantage-over-python-to-create-semantic-applications/142231 "2008-07-07T15:31:28Z")

</div>

Hi all, I’m trying to choose between Ruby of Python as almost my first programming language (I started more that 10 years ago to study Computer Science but I changed major). The reason is that I want to create an app…

---

## [Re: inheritance v passing object through the constructor](https://www.ruby-forum.com/t/re-inheritance-v-passing-object-through-the-constructor/142381)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/re-inheritance-v-passing-object-through-the-constructor/142381 "2008-07-07T14:59:14Z")

</div>

box ||= Box.new class ErrorBox def initialize(box) end end That won’t do anything as written; the two ‘box’ local variables are distinct. I’m guessing you mean something like this: class ErrorBox def initializ…

---

## [Inheritance v passing object through the constructor](https://www.ruby-forum.com/t/inheritance-v-passing-object-through-the-constructor/142379)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/inheritance-v-passing-object-through-the-constructor/142379 "2008-07-07T14:35:39Z")

</div>

Hi, Could anyone please tell me what the difference would be of inheriting a class versus passing that class\\object through the initialize method? class ErrorBox \< Box end v box ||= Box.new class ErrorBox def in…

---

## [Rubygems won't run on WinXP after system update](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/rubygems-wont-run-on-winxp-after-system-update/142331 "2008-07-07T12:36:34Z")

</div>

hello. Anyone tried to upgrade rubygems from windows xp? I downloaded fresh ruby 1.8.6 installer, installed, did gem update –system and now whenever I try anything, i get this: C:\\Documents and Settings\\ArtÅ«ras\>gem …

---

## [Fetch 6 records from a table randomly](https://www.ruby-forum.com/t/fetch-6-records-from-a-table-randomly/142368)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/fetch-6-records-from-a-table-randomly/142368 "2008-07-07T12:09:57Z")

</div>

i have one table “documents” and i want to fetch 6 records randomly is there any solution reply me Thanx Pragash

---

## [Getting Folder Size](https://www.ruby-forum.com/t/getting-folder-size/142183)

<div class="topic-metadata">

**Author:** [@owc](https://www.ruby-forum.com/u/owc)\
**Replies:** 14\
**Last updated:** [July 7, 2008, 11:58am UTC](https://www.ruby-forum.com/t/getting-folder-size/142183 "2008-07-07T11:58:35Z")

</div>

When I use File.size(“C:/ruby”), all it returns is 0. But for files it does work fine. So is there a way to calculate folder size?

---

## [Re: Why can't I return "Threads.list" Array in DRb?](https://www.ruby-forum.com/t/re-why-cant-i-return-threads-list-array-in-drb/142367)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 7, 2008, 11:51am UTC](https://www.ruby-forum.com/t/re-why-cant-i-return-threads-list-array-in-drb/142367 "2008-07-07T11:51:31Z")

</div>

This might be helpful: http://rubygarden.org/Ruby/page/show/DRbTutorial Scroll down to “Why does the client run ‘DRb.start\_service’?” and read from there.

---

## [Amalgalite 0.2.1 Released](https://www.ruby-forum.com/t/amalgalite-0-2-1-released/142291)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [July 7, 2008, 11:25am UTC](https://www.ruby-forum.com/t/amalgalite-0-2-1-released/142291 "2008-07-07T11:25:46Z")

</div>

A quick bugfix release for amalgalite. If you had a bug running amalgalite with an error similar to: amalgalite-0.2.0/ext/amalgalite3.so: undefined symbol: pthread\_mutexattr\_init That is now fixed. This has to do …

---

## [Memory Leak with Certain Script Exceptions](https://www.ruby-forum.com/t/memory-leak-with-certain-script-exceptions/142289)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 10:23am UTC](https://www.ruby-forum.com/t/memory-leak-with-certain-script-exceptions/142289 "2008-07-07T10:23:13Z")

</div>

Hi, I use the IronRuby scripting engine in a long running server process and came across an issue where the memory utilisation of the process started steadily rising in line with a memory leak. The server process is …

---

## [MySQL/Ruby Module](https://www.ruby-forum.com/t/mysql-ruby-module/142247)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 9:45am UTC](https://www.ruby-forum.com/t/mysql-ruby-module/142247 "2008-07-07T09:45:32Z")

</div>

After downloading the mysql-ruby-2.8pre4 from \[http://tmtm.org/downloads/mysql/ruby/\]…I stuck it into C:\\ruby\\lib\\mysql-ruby-2.8pre4. The instructions on MySQL/Ruby says I need to run the command % ruby extconf.rb: c…

---

## [Accessing variables when loading a file to irb](https://www.ruby-forum.com/t/accessing-variables-when-loading-a-file-to-irb/142332)

<div class="topic-metadata">

**Author:** [@i-blis](https://www.ruby-forum.com/u/i-blis)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 7:36am UTC](https://www.ruby-forum.com/t/accessing-variables-when-loading-a-file-to-irb/142332 "2008-07-07T07:36:14Z")

</div>

Hi I’m new to Ruby. Coming from Perl I really do enjoy the syntax and… irb. When I load a file, classes are loaded but not the variables set in the file. My file ends like thatÂ : fields = Set.new bibfile.each do …

---

## [Array Combinations](https://www.ruby-forum.com/t/array-combinations/142349)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 7:19am UTC](https://www.ruby-forum.com/t/array-combinations/142349 "2008-07-07T07:19:16Z")

</div>

Hi, I want to find array combinations is there any way find combinations in array

---

## [Basic ruby Question](https://www.ruby-forum.com/t/basic-ruby-question/142180)

<div class="topic-metadata">

**Author:** [@Deepak\_G](https://www.ruby-forum.com/u/Deepak_G)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 6:57am UTC](https://www.ruby-forum.com/t/basic-ruby-question/142180 "2008-07-07T06:57:00Z")

</div>

Hello, I didn’t understand the following concept. \*class Universe private def self.private\_method p “=========Hello world=======” end end Universe.private\_method =\> “=========Hello world=======” \* How come I g…

---

## [Netbeans, Javafx & JRuby](https://www.ruby-forum.com/t/netbeans-javafx-jruby/142340)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 6:28am UTC](https://www.ruby-forum.com/t/netbeans-javafx-jruby/142340 "2008-07-07T06:28:57Z")

</div>

In the search for the “perfect” gui for ruby, my latest area of investigation is in the javafx world. Is it possible to use JRuby with javafx in the netbeans environment? The following code copied into a netbeans jfx …

---

## [Creating dynamic hashmap](https://www.ruby-forum.com/t/creating-dynamic-hashmap/142179)

<div class="topic-metadata">

**Author:** [@sameera](https://www.ruby-forum.com/u/sameera)\
**Replies:** 5\
**Last updated:** [July 7, 2008, 1:19am UTC](https://www.ruby-forum.com/t/creating-dynamic-hashmap/142179 "2008-07-07T01:19:38Z")

</div>

Hi All, I have a question about creating a dynamic hash map. I’m using “gruff” and in that , the lables parameter should be like this (as in example) g.labels = { 0 =\> ‘Mon’, 2 =\> ‘Wed’, 4 =\> ‘Fri’, 6 =\> ‘Sun’ } in …

---

## [Re: spec question](https://www.ruby-forum.com/t/re-spec-question/142299)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [July 7, 2008, 12:15am UTC](https://www.ruby-forum.com/t/re-spec-question/142299 "2008-07-07T00:15:56Z")

</div>

I’d say yes. You can commit to your local repository and use “git format-patch -1” to make the patches. Change the number to match the number of commits you have made. In addition, remember that rake spec runs the tes…

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

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