# Ruby

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

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

---

## [Ruby exception handling](https://www.ruby-forum.com/t/ruby-exception-handling/146130)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 6:23am UTC](https://www.ruby-forum.com/t/ruby-exception-handling/146130 "2008-08-19T06:23:28Z")

</div>

Hi I have been learning exception handling in ruby.I am not familiar with the exception handling mechanisms (The project which I am working is my first project and it is in Ruby)…Could anyone explain me how to add ex…

---

## [Ruby 1.8.\* convert string to utf-8](https://www.ruby-forum.com/t/ruby-1-8-convert-string-to-utf-8/146144)

<div class="topic-metadata">

**Author:** [@pavel\_drabushevich](https://www.ruby-forum.com/u/pavel_drabushevich)\
**Replies:** 7\
**Last updated:** [August 19, 2008, 6:03am UTC](https://www.ruby-forum.com/t/ruby-1-8-convert-string-to-utf-8/146144 "2008-08-19T06:03:56Z")

</div>

Hi all, I has problem with convert string or file to utf-8 encoding. input file can has different encoding. Ruby 1.9 has feature force\_encoding of String class. But in 1.8.\* I found Iconv.conv(‘UTF-8’, from, contents)…

---

## [Zomg 1.0.0 Released](https://www.ruby-forum.com/t/zomg-1-0-0-released/146215)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 4:55am UTC](https://www.ruby-forum.com/t/zomg-1-0-0-released/146215 "2008-08-19T04:55:34Z")

</div>

zomg version 1.0.0 has been released! http://zomg.rubyforge.org/ http://tenderlovemaking.com/ ZOMG is an OMG IDL parser. ZOMG will generate a Ruby AST from an IDL AST, and will even generate ruby (by means of Ruby2…

---

## [Easiest way to access rb\_sprintf](https://www.ruby-forum.com/t/easiest-way-to-access-rb-sprintf/146150)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 3:30am UTC](https://www.ruby-forum.com/t/easiest-way-to-access-rb-sprintf/146150 "2008-08-19T03:30:45Z")

</div>

Hi I want to create a ruby method in a C++ extension that will spit out the C++ pointer address of the wrapped object - useful for debugging. I have got the following, which works, but I was wondering if there was an …

---

## [Help needed getting started with Mod\_ruby](https://www.ruby-forum.com/t/help-needed-getting-started-with-mod-ruby/146185)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 3:25am UTC](https://www.ruby-forum.com/t/help-needed-getting-started-with-mod-ruby/146185 "2008-08-19T03:25:05Z")

</div>

Hi, I just installed mod\_ruby under Windows XP, and I need some help getting started with it. I’m trying to run a simple script that goes like this: \<TEMP.RB\> require “TEMP2” include TEMP2 myMethod \<TEMP2.RB\> mo…

---

## [Mapping file-not-found to a .rb file?](https://www.ruby-forum.com/t/mapping-file-not-found-to-a-rb-file/146009)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 3:13am UTC](https://www.ruby-forum.com/t/mapping-file-not-found-to-a-rb-file/146009 "2008-08-19T03:13:01Z")

</div>

I am using latest Apache on Linux. I would like to have something like this: localhost/query localhost/query/foobar All these should be mapped to a specific .rb file but I wonder which limitation this would have (I’…

---

## [Iterating over a hash of hash of hashes](https://www.ruby-forum.com/t/iterating-over-a-hash-of-hash-of-hashes/146208)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 2:37am UTC](https://www.ruby-forum.com/t/iterating-over-a-hash-of-hash-of-hashes/146208 "2008-08-19T02:37:35Z")

</div>

Is there a more “rubyesque” idiom for iterating of a multi-dimensional hash other than the following: workq\_dev.get\_all\_zapps.each do |k,v| print "#{k} ==\> " v.each do |k,v| puts "#{k} ==\> " puts v.class v.each …

---

## [Hartford Ruby Brigade 8/25 meeting](https://www.ruby-forum.com/t/hartford-ruby-brigade-8-25-meeting/146206)

<div class="topic-metadata">

**Author:** [@Dan\_Bernier](https://www.ruby-forum.com/u/Dan_Bernier)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 1:58am UTC](https://www.ruby-forum.com/t/hartford-ruby-brigade-8-25-meeting/146206 "2008-08-19T01:58:55Z")

</div>

Hello everyone, The Hartford Ruby Brigade’s August meeting is next week: Monday, 8/25 6 - 8 PM GeeZeo’s offices 750 Main St, Suite 1314 Hartford, CT We have no official speaker lined up, which means we’ll probably…

---

## [Matrix: Need help to understand this behavior](https://www.ruby-forum.com/t/matrix-need-help-to-understand-this-behavior/146080)

<div class="topic-metadata">

**Author:** [@marcioab](https://www.ruby-forum.com/u/marcioab)\
**Replies:** 9\
**Last updated:** [August 19, 2008, 12:42am UTC](https://www.ruby-forum.com/t/matrix-need-help-to-understand-this-behavior/146080 "2008-08-19T00:42:01Z")

</div>

a=\[1\] b=a # make matrix “b” equal matrix “a”, but expected 2 separated matrices b\[0\]=2\*b\[0\] # I want to change matrix “b” (and not matrix “a”) p a # print matrix “a” and see the “issue” The expect…

---

## [Rack servlet filter failure on AIX 5.3 Websphere 6.1.0.11](https://www.ruby-forum.com/t/rack-servlet-filter-failure-on-aix-5-3-websphere-6-1-0-11/146176)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/rack-servlet-filter-failure-on-aix-5-3-websphere-6-1-0-11/146176 "2008-08-18T23:52:37Z")

</div>

Rack 0.3.0 Merb 0.9.4 Warbler 0.9.10 This is more of an FYI than anything - I suspect that it is related to the following Websphere issue (PK53885; 6.1.0.11: Unexpected IllegalStateException: writer already obtained)…

---

## [RubyAMP plugin problems Setup](https://www.ruby-forum.com/t/rubyamp-plugin-problems-setup/135785)

<div class="topic-metadata">

**Author:** [@railsroad](https://www.ruby-forum.com/u/railsroad)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/rubyamp-plugin-problems-setup/135785 "2008-08-18T22:14:32Z")

</div>

I’ve been trying to use the RubyAMP bundle to speed up my coding. I’m still trying to figure out how to do something similar to the now deprecated Rails debugger which used to allow a console to be opened up from the …

---

## [Where did this constant come from?](https://www.ruby-forum.com/t/where-did-this-constant-come-from/146090)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/where-did-this-constant-come-from/146090 "2008-08-18T22:05:07Z")

</div>

What’s the simplest way to find out where a constant was defined? I did come up with a way (probably partly ripped off from ActiveSupport), but it feels convoluted and fragile: class Module def parent\_namespace par…

---

## [Rbgccxml / rbplusplus gem dependency on hpricot question](https://www.ruby-forum.com/t/rbgccxml-rbplusplus-gem-dependency-on-hpricot-question/196784)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 5\
**Last updated:** [August 18, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/rbgccxml-rbplusplus-gem-dependency-on-hpricot-question/196784 "2008-08-18T21:19:41Z")

</div>

Dear all, I am having problems installing the rbgccxml gem on ubuntu 8.04, I get a runtime error saying that hpricot version=0.6 is required. Now I had hpricot installed, as a gem, but it is version 0.6.161 . Is the…

---

## [Code Review: bugs-1](https://www.ruby-forum.com/t/code-review-bugs-1/146179)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/code-review-bugs-1/146179 "2008-08-18T20:40:51Z")

</div>

tfpt review “/shelveset:bugs-1;REDMOND\\jflam” Comment : Fixes Rakefile to correctly generate case-sensitive filenames during compilation Fixes String#reverse and taint flow Fixes File#zero? behavior (works correctl…

---

## [Need ruby code to get a latest file from a Directory](https://www.ruby-forum.com/t/need-ruby-code-to-get-a-latest-file-from-a-directory/146177)

<div class="topic-metadata">

**Author:** [@Rajeswar\_reddy\_G](https://www.ruby-forum.com/u/Rajeswar_reddy_G)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/need-ruby-code-to-get-a-latest-file-from-a-directory/146177 "2008-08-18T20:07:20Z")

</div>

Hi All, I am having log files with time stamp in a log directory, how to open a latest log file and read it?. Eg: directory name log/ files log/log20080812152634Lbuild.34.xml log/log20080812122634Lbuild.34.xml lo…

---

## [RubyConf 2008 Call for Proposals](https://www.ruby-forum.com/t/rubyconf-2008-call-for-proposals/144896)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 7\
**Last updated:** [August 18, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/rubyconf-2008-call-for-proposals/144896 "2008-08-18T19:13:23Z")

</div>

Ok, folks, it’s RubyConf time again. I’m starting up this thread to see who’s planning on going, who’s going to submit proposals, and make sure everyone’s on the same page. There’s so much to cover in the JRuby world …

---

## [Global constants](https://www.ruby-forum.com/t/global-constants/146127)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/global-constants/146127 "2008-08-18T19:05:44Z")

</div>

I want set up some constants that can be accesed since another classes. Which is the best way? Using a singleton to access to variables? (as if were global vars.)?

---

## [Hash#each vs Hash#each\_pair](https://www.ruby-forum.com/t/hash-each-vs-hash-each-pair/146146)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 10\
**Last updated:** [August 18, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/hash-each-vs-hash-each-pair/146146 "2008-08-18T18:56:58Z")

</div>

Sorry if this is a FAQ, but I’m curious to learn the rationale behind having Hash#each be the same as Hash#each\_pair instead of Hash#each\_value. For my own (self-interested) case, I would prefer that Hash#each and Ar…

---

## [Command line options hash](https://www.ruby-forum.com/t/command-line-options-hash/146173)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/command-line-options-hash/146173 "2008-08-18T18:32:56Z")

</div>

Hi, I have an options hash map as a run method’s second parameter I am currently doing this run File.join(File.dirname(FILE), “…/projects/#{filename}”, {"- fh:" =\> “C:/rspec\_reports/#{filename}.htm”}) But I am recie…

---

## [How to move on to next url if current one is a dud](https://www.ruby-forum.com/t/how-to-move-on-to-next-url-if-current-one-is-a-dud/146159)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/how-to-move-on-to-next-url-if-current-one-is-a-dud/146159 "2008-08-18T17:49:23Z")

</div>

hmm wasnt too sure how to make the subject both concise and understandable at the same time so my apologies if i was vague. I searched under “ignore missing” but didnt come up wiht anything. Perhaps someone can help m…

---

## [Borrowing a Jruby runtime in a Rails application from Java](https://www.ruby-forum.com/t/borrowing-a-jruby-runtime-in-a-rails-application-from-java/145783)

<div class="topic-metadata">

**Author:** [@SchultzS\_Darcy\_L](https://www.ruby-forum.com/u/SchultzS_Darcy_L)\
**Replies:** 3\
**Last updated:** [August 18, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/borrowing-a-jruby-runtime-in-a-rails-application-from-java/145783 "2008-08-18T17:47:02Z")

</div>

We have an application that is partly written in Java and partly in Rails. On the Java side we’re using the Quartz Scheduler. When a job runs, is there a way to borrow an instantiated Ruby runtime from the RackApplic…

---

## [Test](https://www.ruby-forum.com/t/test/146162)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/test/146162 "2008-08-18T16:50:41Z")

</div>

e$B%F%9%He(B

---

## [Re: r132 - can you check if it builds correctly on	mono?](https://www.ruby-forum.com/t/re-r132-can-you-check-if-it-builds-correctly-on-mono/146050)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 7\
**Last updated:** [August 18, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/re-r132-can-you-check-if-it-builds-correctly-on-mono/146050 "2008-08-18T16:30:41Z")

</div>

I was just trying to think of something that wouldn’t get messed up again.

---

## [Make gedit color-format rpdf like an rb file?](https://www.ruby-forum.com/t/make-gedit-color-format-rpdf-like-an-rb-file/146151)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/make-gedit-color-format-rpdf-like-an-rb-file/146151 "2008-08-18T16:02:30Z")

</div>

Sorry, i know this isn’t really a ruby question but thought someone here would know. I just want to tell gedit to format an rpdf file with the same rules as it formats an rb file. In case that wasn’t obvious from the…

---

## [Speed tests for ruby interpreters](https://www.ruby-forum.com/t/speed-tests-for-ruby-interpreters/146147)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/speed-tests-for-ruby-interpreters/146147 "2008-08-18T15:43:10Z")

</div>

Hi all, Are there any published tests for the speed of various ruby interpreters available and also how it compares with other languages like python,java,perl etc.I do hear concerns about the fact that ruby is a tad …

---

## [Unescaping html](https://www.ruby-forum.com/t/unescaping-html/146141)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 4\
**Last updated:** [August 18, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/unescaping-html/146141 "2008-08-18T15:20:48Z")

</div>

Hi, Is there a method or any library which allows me to unescape encoded html. For example If I have hi%5Bthere%5D I should get hi\[there\] vivek

---

## [Advices on Rake tasks organization](https://www.ruby-forum.com/t/advices-on-rake-tasks-organization/146143)

<div class="topic-metadata">

**Author:** [@Jean-Philippe\_M](https://www.ruby-forum.com/u/Jean-Philippe_M)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/advices-on-rake-tasks-organization/146143 "2008-08-18T13:57:32Z")

</div>

Hello, I am using some Rake tasks for various actions (from backup to project management) using this layout : |-- Rakefile |-- assets |-- config | |-- YAML files |-- lib | |-- parametres.rb \`-- tasks |-- .r…

---

## [How to draw a table(mxn) in gruff?](https://www.ruby-forum.com/t/how-to-draw-a-table-mxn-in-gruff/146113)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/how-to-draw-a-table-mxn-in-gruff/146113 "2008-08-18T13:55:11Z")

</div>

how to draw a table with m rows and n columns in gruff

---

## [Emulating an ANSI terminal?](https://www.ruby-forum.com/t/emulating-an-ansi-terminal/146142)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/emulating-an-ansi-terminal/146142 "2008-08-18T13:46:23Z")

</div>

I’d like to emulate an ANSI terminal from Ruby\[Cocoa\] using ssh. Do you know of gem helper for that purpose ? For the time being, I’m able to emulate a pseudo-terminal connection even if ssh answers : Pseudo-terminal…

---

## [Nanoc 2.1](https://www.ruby-forum.com/t/nanoc-2-1/146138)

<div class="topic-metadata">

**Author:** [@dddennisdennis734](https://www.ruby-forum.com/u/dddennisdennis734)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/nanoc-2-1/146138 "2008-08-18T13:14:44Z")

</div>

Hello list, I’m happy to announce the release of nanoc 2.1. nanoc is a powerful static site compiler. It layouts HTML pages, filters Markdown/Textile/…, compiles assets, and more. It generates HTML files ready for up…

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

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