# Ruby

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

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

---

## [RProperties 0.0.1 Released](https://www.ruby-forum.com/t/rproperties-0-0-1-released/159384)

<div class="topic-metadata">

**Author:** [@twgnunes](https://www.ruby-forum.com/u/twgnunes)\
**Replies:** 5\
**Last updated:** [February 4, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/rproperties-0-0-1-released/159384 "2009-02-04T16:45:08Z")

</div>

Hello everybody! The first release of RProperties is on the RubyForge now on http://rubyforge.org/projects/rproperties/ ! RProperties is a simple (very simple) implementation of the Java Properties feature. In this …

---

## [Building the BSD port of OpenJDK, Java 1.7 on Max OS X 10.5.6](https://www.ruby-forum.com/t/building-the-bsd-port-of-openjdk-java-1-7-on-max-os-x-10-5-6/159445)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/building-the-bsd-port-of-openjdk-java-1-7-on-max-os-x-10-5-6/159445 "2009-02-04T16:43:57Z")

</div>

I’ve put some instructions for building Java 1.7.0 on a Mac OS X 10.5.6 system here: http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5 If you try this let me know if there are correc…

---

## [Calling methods on HttpServletRequest from a rails app](https://www.ruby-forum.com/t/calling-methods-on-httpservletrequest-from-a-rails-app/159418)

<div class="topic-metadata">

**Author:** [@Stefan\_Magnus\_Landr](https://www.ruby-forum.com/u/Stefan_Magnus_Landr)\
**Replies:** 4\
**Last updated:** [February 4, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/calling-methods-on-httpservletrequest-from-a-rails-app/159418 "2009-02-04T16:43:22Z")

</div>

Is there a way to call methods on the httpservletrequest from a jruby on rails app? I’m particularly interested in: getRemoteUser() isUserInRole() getPrincipal() Because we want to integrate a rails app in an SSO e…

---

## [Method.new - why not?](https://www.ruby-forum.com/t/method-new-why-not/159399)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [February 4, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/method-new-why-not/159399 "2009-02-04T16:29:50Z")

</div>

Hi, Just a random thought that I think was inspired by several people on the list asking about getting the name of the method from within the method - why don’t we have Method.new? In other words, what if this: def f…

---

## [Hash counting](https://www.ruby-forum.com/t/hash-counting/159268)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 21\
**Last updated:** [February 4, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/hash-counting/159268 "2009-02-04T16:25:43Z")

</div>

I am trying to load some data into a hash and then count how many times it occurs in the hash, if it occurs more than 5 times then we are adding some data to an array. Below is my code which I will explain eventdateID…

---

## [Exifr - Ruby EXIF reading library](https://www.ruby-forum.com/t/exifr-ruby-exif-reading-library/159378)

<div class="topic-metadata">

**Author:** [@Benjohn\_B](https://www.ruby-forum.com/u/Benjohn_B)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/exifr-ruby-exif-reading-library/159378 "2009-02-04T15:47:32Z")

</div>

I’ve just made use of the EXIFR library. The docs are here: http://exifr.rubyforge.org/api/index.html It’s splendid, and highly recommended as absolutely as simple as can be, but completely effective. Thank you very m…

---

## [URI.parse errors!](https://www.ruby-forum.com/t/uri-parse-errors/159387)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/uri-parse-errors/159387 "2009-02-04T15:31:05Z")

</div>

resp = Net::HTTP.get(URI.parse("http:#{img\['src'\]}")) thats the line that is making this error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/uri/common.rb:436:in \`split’: bad URI(is not UR…

---

## [Buffering or OpenSSL::Buffering](https://www.ruby-forum.com/t/buffering-or-openssl-buffering/159433)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/buffering-or-openssl-buffering/159433 "2009-02-04T14:47:54Z")

</div>

e$B@\>;3OB9-$G$9!#e(B ext/openssl/lib/openssl/buffering.rb e$B$Ge(B module Buffering e$B$,e(B e$B$"$j$^$9$,!"e(Bext/openssl/ossl\_ssl.c e$B$K$Oe(B The OpenSSL::Buffering module provides additional IO methods. e$B$H$$$&…

---

## [Recommendation for Ruby 1.9.1 gem compatibility](https://www.ruby-forum.com/t/recommendation-for-ruby-1-9-1-gem-compatibility/159432)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/recommendation-for-ruby-1-9-1-gem-compatibility/159432 "2009-02-04T14:36:01Z")

</div>

I just wanted to share this commit I saw from Passenger for Ruby 1.9.1 compatibility, in case anyone out there owns a gem/library that needs to work on both Ruby 1.8.6 and Ruby 1.9.1. It’s a couple simple macro chang…

---

## [New to group - is there a FAQ?](https://www.ruby-forum.com/t/new-to-group-is-there-a-faq/159286)

<div class="topic-metadata">

**Author:** [@Keithy\_Weasel](https://www.ruby-forum.com/u/Keithy_Weasel)\
**Replies:** 3\
**Last updated:** [February 4, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/new-to-group-is-there-a-faq/159286 "2009-02-04T12:53:07Z")

</div>

Hello, avid computer programmer here. Is there a FAQ for this group? Keithy Weasel

---

## [Is there an 'offical' Ruby binary for Windows?](https://www.ruby-forum.com/t/is-there-an-offical-ruby-binary-for-windows/159283)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 11\
**Last updated:** [February 4, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/is-there-an-offical-ruby-binary-for-windows/159283 "2009-02-04T12:04:15Z")

</div>

I know that there are at least three Ruby Windows distributions. One-Click Ruby Installer for Windows – http://rubyinstaller.rubyforge.org/wiki/wiki.pl Ruby-mswin32 – Index of /ruby/mswin32/en Ruby MS-Win32 Installe…

---

## [Call a Function](https://www.ruby-forum.com/t/call-a-function/159370)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 10\
**Last updated:** [February 4, 2009, 11:18am UTC](https://www.ruby-forum.com/t/call-a-function/159370 "2009-02-04T11:18:23Z")

</div>

Hello, I currently have an array of strings. Let’s say, for example, my array contains the following: \['one', 'two', 'three'\] Each element in my array is the name of a function in my program.…

---

## [Multiple c extensions with the same function names](https://www.ruby-forum.com/t/multiple-c-extensions-with-the-same-function-names/159337)

<div class="topic-metadata">

**Author:** [@icottee](https://www.ruby-forum.com/u/icottee)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 11:08am UTC](https://www.ruby-forum.com/t/multiple-c-extensions-with-the-same-function-names/159337 "2009-02-04T11:08:34Z")

</div>

Hi, A bit of a noob questions here, so please bear with me. I’ve been attempting to use multiple C extensions containing identical c function names. I had assumed that because the functions were in different modules…

---

## [Object#singleton\_class in Ruby 1.9?](https://www.ruby-forum.com/t/object-singleton-class-in-ruby-1-9/159000)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 47\
**Last updated:** [February 4, 2009, 8:40am UTC](https://www.ruby-forum.com/t/object-singleton-class-in-ruby-1-9/159000 "2009-02-04T08:40:15Z")

</div>

Hello, I was under the impresssion that Ruby 1.9 will provide Object#singleton\_class (or #eigen\_class or #meta\_class), which would save us the trouble of writing “class \<\< self; self; end” everywhere. But in Ruby 1.9…

---

## [Event-based stdout content capturing](https://www.ruby-forum.com/t/event-based-stdout-content-capturing/159313)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 6:25am UTC](https://www.ruby-forum.com/t/event-based-stdout-content-capturing/159313 "2009-02-04T06:25:34Z")

</div>

Some legacy code produces output to STDOUT during execution. I need to capture it on even-based model, something like the following: capture the\_legacy\_code\_lambda do |content| do something with content each time some…

---

## [Which File Classto use](https://www.ruby-forum.com/t/which-file-classto-use/159364)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 5:41am UTC](https://www.ruby-forum.com/t/which-file-classto-use/159364 "2009-02-04T05:41:00Z")

</div>

I am new to Ruby and would like to create a small project that deals with the file system. The parameters I would like to pass in the command window would be, how many iterations I would like to run, how many folders …

---

## [Initial release of Elemental](https://www.ruby-forum.com/t/initial-release-of-elemental/159281)

<div class="topic-metadata">

**Author:** [@mwlang88](https://www.ruby-forum.com/u/mwlang88)\
**Replies:** 5\
**Last updated:** [February 4, 2009, 4:05am UTC](https://www.ruby-forum.com/t/initial-release-of-elemental/159281 "2009-02-04T04:05:49Z")

</div>

Posted By: Michael Lang Date: 2009-02-02 18:42 Summary: \[ANN\] Initial release of Elemental Project: Elemental Enumerated Types I am happy to announce the initial release of Elemental 0.1.1. Elemental provides enumer…

---

## [Net/HTTP get](https://www.ruby-forum.com/t/net-http-get/159383)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 3:26am UTC](https://www.ruby-forum.com/t/net-http-get/159383 "2009-02-04T03:26:01Z")

</div>

doc = Hpricot(open(“http://redhanded.hobix.com/index.html”)) images = (doc/“img”) count = 0 Net::HTTP.start(“redhanded.hobix.com”) do |http| images.each do |img| filename = img\[‘src’\].match(/(\[^/\]+..+)/) resp = htt…

---

## [Collecting user stories for the Prawn PDF generator](https://www.ruby-forum.com/t/collecting-user-stories-for-the-prawn-pdf-generator/159343)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 2:35am UTC](https://www.ruby-forum.com/t/collecting-user-stories-for-the-prawn-pdf-generator/159343 "2009-02-04T02:35:41Z")

</div>

Prawn will move from alpha development status to beta in a couple weeks, when version 0.5 is released. To help prospective users evaluate whether it’s time to take the plunge, I’m collecting user stories on the Prawn …

---

## [FInding out the name of the method from which I was called?](https://www.ruby-forum.com/t/finding-out-the-name-of-the-method-from-which-i-was-called/159242)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 12:15am UTC](https://www.ruby-forum.com/t/finding-out-the-name-of-the-method-from-which-i-was-called/159242 "2009-02-04T00:15:42Z")

</div>

Is there a clever meta programming way for me to do this: def calling\_method\_1 reporting\_method end def reporting\_method\_2 puts “Hey I was just called from #{magic}” end and when running reporting\_method\_2 this pr…

---

## [Hpricot 'emptyelem'?](https://www.ruby-forum.com/t/hpricot-emptyelem/159372)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/hpricot-emptyelem/159372 "2009-02-03T23:06:07Z")

</div>

So I require hpricot, open-uri, and net/http in IRB. I type this bit of code; doc = Hpricot(open(“http://redhanded.hobix.com/index.html”)) then I run images = (doc/“img”) and I get this for images: #\<Hpricot::Eleme…

---

## [ANN: Sequel 2.10.0 Released](https://www.ruby-forum.com/t/ann-sequel-2-10-0-released/159359)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/ann-sequel-2-10-0-released/159359 "2009-02-03T22:50:01Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [Input text and take text from different places?](https://www.ruby-forum.com/t/input-text-and-take-text-from-different-places/159339)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/input-text-and-take-text-from-different-places/159339 "2009-02-03T21:02:59Z")

</div>

I haven’t been able to find anything on this, so here goes: Is it possible to be ‘puts’ing text to one place on the terminal while ‘gets’in from another? I have setup with VT100 control codes a basic layout for my MUD…

---

## [How to download all mp3 files from this website?](https://www.ruby-forum.com/t/how-to-download-all-mp3-files-from-this-website/159175)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 10\
**Last updated:** [February 3, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/how-to-download-all-mp3-files-from-this-website/159175 "2009-02-03T20:10:32Z")

</div>

Hi all, I want to download all the mp3 files from this website: 60-Second Science. But I cannot see the link to each mp3 file in the source file. I wonder how I can find out each link for the mp3 in source file. Tha…

---

## [Hpricot parsing problems](https://www.ruby-forum.com/t/hpricot-parsing-problems/159358)

<div class="topic-metadata">

**Author:** [@nfwt](https://www.ruby-forum.com/u/nfwt)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/hpricot-parsing-problems/159358 "2009-02-03T20:08:39Z")

</div>

Hi, I would like to get only post content of forum page without any banners etc. I made short code to make this. The problem is that Hpricot functions doesn’t return any content. Page loading works but parsing not an…

---

## [What kind of inheritance is that?](https://www.ruby-forum.com/t/what-kind-of-inheritance-is-that/159348)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/what-kind-of-inheritance-is-that/159348 "2009-02-03T19:38:06Z")

</div>

I founded this code at WEBrick library: class HTTPServer \< ::WEBrick::GenericServer def initialize(config={}, default=Config::HTTP) super What kind of inheritance is HTTPServer \<\< ::WEBrick, I don’t undestand de :: …

---

## [Continuations](https://www.ruby-forum.com/t/continuations/159277)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/continuations/159277 "2009-02-03T19:04:06Z")

</div>

Please help. I’m totally confused by following behaviour with regard to continuations (Ruby 1.8.7) My goal was to simply jump between two loops, which worked fine. But I do not really understand this behaviour: def lo…

---

## [Proper use of classes](https://www.ruby-forum.com/t/proper-use-of-classes/158881)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 31\
**Last updated:** [February 3, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/proper-use-of-classes/158881 "2009-02-03T18:48:01Z")

</div>

Greetings… I’m continuing my learn-to-write-OO-Ruby journey. Had a recent bad experience trying to convert a complex method to a class. The method gets a lot of use in my program, and each time it needs to know a lot …

---

## [Socket: Getting EADDRNOTAVAIL in bind method](https://www.ruby-forum.com/t/socket-getting-eaddrnotavail-in-bind-method/159272)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 4\
**Last updated:** [February 3, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/socket-getting-eaddrnotavail-in-bind-method/159272 "2009-02-03T18:02:17Z")

</div>

Hi, I am new to Socket programming in ruby and want to connect to a device. I am able to make a connection using the following code but failing in the bind method. Here’s the snippet: require 'socket' include Socke…

---

## [Warbler/tomcat RubyGems version problem](https://www.ruby-forum.com/t/warbler-tomcat-rubygems-version-problem/154979)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/warbler-tomcat-rubygems-version-problem/154979 "2009-02-03T17:09:28Z")

</div>

Hi, I’m new to packaging up jRuby apps with Warbler, so hopefully this is just a newbie issue… I created a new project to start testing my setup with jruby/warbler deploying to tomcat. I’m running jruby 1.1.5, and …

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

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