# Ruby

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

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

---

## [\[ANN\] 1.9 String and M17N documentation](https://www.ruby-forum.com/t/ann-1-9-string-and-m17n-documentation/173304)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 19\
**Last updated:** [August 12, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/ann-1-9-string-and-m17n-documentation/173304 "2009-08-12T21:42:22Z")

</div>

I have put together a document which tries to outline the M17N properties of ruby 1.9 in a logical sequence and demonstrate the important behaviours. The file is called string19.rb and you can find it at There is t…

---

## [Multiple projects - Apache](https://www.ruby-forum.com/t/multiple-projects-apache/173594)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 4\
**Last updated:** [August 12, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/multiple-projects-apache/173594 "2009-08-12T19:46:04Z")

</div>

Hi, I’m trying to configure Apache so I can create multiple rails projects without modifying httpd.conf everytime. Right now, I have one project setup and a apache virtualhost that points to it. Here is how I have it …

---

## [Ruby class hierarchy](https://www.ruby-forum.com/t/ruby-class-hierarchy/173647)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/ruby-class-hierarchy/173647 "2009-08-12T17:50:55Z")

</div>

I was going to develop a tree view of ruby class hierarchy using the FreeMind software. I was thinking of basing it on http://www.insula.cz/dali/material/rubycl/ but I want to show pretty much everything with Object i…

---

## [Can URI retrieve the URL of a webpage when its open?](https://www.ruby-forum.com/t/can-uri-retrieve-the-url-of-a-webpage-when-its-open/173591)

<div class="topic-metadata">

**Author:** [@arti\_singh](https://www.ruby-forum.com/u/arti_singh)\
**Replies:** 2\
**Last updated:** [August 12, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/can-uri-retrieve-the-url-of-a-webpage-when-its-open/173591 "2009-08-12T16:47:28Z")

</div>

Can I use uri to get the URL Of a web page? I am opening a webapge by clicking on a link and I am flipping to this new window after I have gotten the handle, I attach to the window after attaching to this window, I wa…

---

## [Scrubyt and line breaks](https://www.ruby-forum.com/t/scrubyt-and-line-breaks/173642)

<div class="topic-metadata">

**Author:** [@cesardiaz](https://www.ruby-forum.com/u/cesardiaz)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/scrubyt-and-line-breaks/173642 "2009-08-12T16:18:22Z")

</div>

Hi, I’m trying to get a portion of text from a web page using Scrubyt. The portion is like this: I don't feel like I'm at home In the morning all alone Trying hard to do the things I know I should When the night t…

---

## [Sha1/base64](https://www.ruby-forum.com/t/sha1-base64/173632)

<div class="topic-metadata">

**Author:** [@babiben](https://www.ruby-forum.com/u/babiben)\
**Replies:** 4\
**Last updated:** [August 12, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/sha1-base64/173632 "2009-08-12T16:06:56Z")

</div>

hello, i have this string in input : 97975000-5RUT DE PRUEBA 3312002003-09-040a4O6Kbx8Qj3K4iWSP4w7KneZYeJ+g/prihYtIEolKt3cykSxl1zO8vSXu397QhTmsX7SBEudTUx++2zDXBhZw==Aw==100 i try to compute the SHA-1 : sha = Digest::S…

---

## [Ruby thread is buggy while using serialport](https://www.ruby-forum.com/t/ruby-thread-is-buggy-while-using-serialport/173372)

<div class="topic-metadata">

**Author:** [@ashikalim](https://www.ruby-forum.com/u/ashikalim)\
**Replies:** 7\
**Last updated:** [August 12, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/ruby-thread-is-buggy-while-using-serialport/173372 "2009-08-12T15:04:42Z")

</div>

Hi all , I am using following gems . gem1.8 list \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3.2) actionpack (2.3.2) activesupport (2.3.2) ruby-ole (1.2.8.2) ruby-serialport (0.7.0) spreadsheet (0.6.3.1) xml-simple (1.0…

---

## [Readline not working with Ruby](https://www.ruby-forum.com/t/readline-not-working-with-ruby/173574)

<div class="topic-metadata">

**Author:** [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Replies:** 23\
**Last updated:** [August 12, 2009, 1:17pm UTC](https://www.ruby-forum.com/t/readline-not-working-with-ruby/173574 "2009-08-12T13:17:20Z")

</div>

Hey I compiled ruby with readline support. However when i go to IRB i just get jibbrish when i press the up arrow on my keyboard. Any suggestions?

---

## [Adaptive Text Editor (#217)](https://www.ruby-forum.com/t/adaptive-text-editor-217/173434)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/adaptive-text-editor-217/173434 "2009-08-12T12:45:09Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Which initialize method? (or, who is self?)](https://www.ruby-forum.com/t/which-initialize-method-or-who-is-self/173597)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 5\
**Last updated:** [August 12, 2009, 9:26am UTC](https://www.ruby-forum.com/t/which-initialize-method-or-who-is-self/173597 "2009-08-12T09:26:43Z")

</div>

Hi. Consider the ruby-hmac gem: http://pastie.org/580360 Line 81 makes the following call: hmac = self.new(key) But, insofar as I understand Ruby’s wonderful world context switching, self, in the instance in which i…

---

## [Ruby & Watir](https://www.ruby-forum.com/t/ruby-watir/165125)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 11\
**Last updated:** [August 12, 2009, 8:55am UTC](https://www.ruby-forum.com/t/ruby-watir/165125 "2009-08-12T08:55:11Z")

</div>

Hey guys, It’s the first time to use ruby, I’m .Net developer I’m using ruby and watir to create automated test for my web site, I have many sections in my web site, for instance i have a sign-up wizard, create peopl…

---

## [Subject: \[ANN\] ri\_cal 0.8.0 Released](https://www.ruby-forum.com/t/subject-ann-ri-cal-0-8-0-released/173616)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 3:41am UTC](https://www.ruby-forum.com/t/subject-ann-ri-cal-0-8-0-released/173616 "2009-08-12T03:41:57Z")

</div>

ri\_cal version 0.8.0 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

---

## [\[Bug #1931\] stdout$B$X$N%G%P%C%0=PNO(B](https://www.ruby-forum.com/t/bug-1931-stdout-b-x-n-g-p-c-0-pno-b/173610)

<div class="topic-metadata">

**Author:** [@akira\_yamada](https://www.ruby-forum.com/u/akira_yamada)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/bug-1931-stdout-b-x-n-g-p-c-0-pno-b/173610 "2009-08-11T23:44:54Z")

</div>

Bug #1931: stdoute$B$X$N%G%P%C%0=PNOe(B http://redmine.ruby-lang.org/issues/show/1931 e$B5/I\<\<Te(B: akira yamada e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.8dev (2009-08-07 revision 24442) \[i686-l…

---

## [Dynamically creating a multi dimensional hash](https://www.ruby-forum.com/t/dynamically-creating-a-multi-dimensional-hash/173600)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/dynamically-creating-a-multi-dimensional-hash/173600 "2009-08-11T22:18:15Z")

</div>

Hello, I am trying to do something that on the surface seems easy, but in practice I don’t have a clue how to approach it. I need to create a multi-dimensional hash to represent certain attributes of a particular it…

---

## [How to get image extension in Watir?](https://www.ruby-forum.com/t/how-to-get-image-extension-in-watir/173598)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/how-to-get-image-extension-in-watir/173598 "2009-08-11T21:29:32Z")

</div>

Hello, how can I get an image extension in Watir, or at least headers of the request so that I can parse Content-Type myself? TIA

---

## [Ocra: Newest version not Ruby 1.9](https://www.ruby-forum.com/t/ocra-newest-version-not-ruby-1-9/173592)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 1\
**Last updated:** [August 11, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/ocra-newest-version-not-ruby-1-9/173592 "2009-08-11T20:19:15Z")

</div>

Why: Ruby 1.9 isn’t compatible with the “win32-api” gem. Solution: Downgrade Ocra gem to at least “1.1.1” (one version lower) I was very confused when the Ocra website was saying that Ocra is 1.9 compatible, and then …

---

## [Use fortran libraries in Ruby](https://www.ruby-forum.com/t/use-fortran-libraries-in-ruby/173584)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/use-fortran-libraries-in-ruby/173584 "2009-08-11T19:23:17Z")

</div>

I noticed from an older post that I might want to try to use ruby2c2fortran to access the functionality of a fortran library in a ruby program. Is this pretty much my only option? I saw Ruby/DL but I could not figure …

---

## [Signature XML : library?](https://www.ruby-forum.com/t/signature-xml-library/173583)

<div class="topic-metadata">

**Author:** [@babiben](https://www.ruby-forum.com/u/babiben)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/signature-xml-library/173583 "2009-08-11T18:18:20Z")

</div>

Anyone knows how to use XML signature with ruby ? Are there libraries to do it ? If don’t exist library, how can i compute the digestvalue ?

---

## [IronRuby with ASP.Net and Silverlight](https://www.ruby-forum.com/t/ironruby-with-asp-net-and-silverlight/173581)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/ironruby-with-asp-net-and-silverlight/173581 "2009-08-11T17:34:26Z")

</div>

Hi there, I’ve got a question about the plans for V1 for ASP.Net and Silverlight. Regarding ASP.Net - I know that there is an ASP.NET dynamic language support project on codeplex, but it says that the IronRuby support…

---

## [Fail to load the win32-api gem when running OCRA](https://www.ruby-forum.com/t/fail-to-load-the-win32-api-gem-when-running-ocra/173572)

<div class="topic-metadata">

**Author:** [@xinelo](https://www.ruby-forum.com/u/xinelo)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/fail-to-load-the-win32-api-gem-when-running-ocra/173572 "2009-08-11T17:21:08Z")

</div>

Hi, I’m trying to run ocra but I seem to have a problem with win32-api. I’m running this on cygwin and have also tried in an Ubuntu server. Running ocra outputs an error that tells me to install win32-api, which I do, …

---

## [How to define doubles: Array-to-hash](https://www.ruby-forum.com/t/how-to-define-doubles-array-to-hash/173457)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 8\
**Last updated:** [August 11, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/how-to-define-doubles-array-to-hash/173457 "2009-08-11T16:13:28Z")

</div>

Hi there, Assume the following array (contains doubles): original = \[1, 2, 3, 3, 3, 3, 4, 4, 5\] What’s the most efficient way to obtain a hash that tells me what elements of “original” have more than 1 appearance/ent…

---

## [Instance\_variables vs. local\_variables](https://www.ruby-forum.com/t/instance-variables-vs-local-variables/173517)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 9\
**Last updated:** [August 11, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/instance-variables-vs-local-variables/173517 "2009-08-11T16:04:04Z")

</div>

Can anyone offer a reasonable explanation for the difference in behavior between the methods instance\_variables and local\_variables? For example puts “before setting ‘@a’” puts " instance variables = #{instance\_vari…

---

## [Textmate with JRuby](https://www.ruby-forum.com/t/textmate-with-jruby/173549)

<div class="topic-metadata">

**Author:** [@jhosteny](https://www.ruby-forum.com/u/jhosteny)\
**Replies:** 1\
**Last updated:** [August 11, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/textmate-with-jruby/173549 "2009-08-11T15:36:09Z")

</div>

Hi there, does anyone uses succesfully Textmate with JRuby. Setting TM\_RUBY = \<JRUBY\_HOME\>/bin/jruby seems to fail in my case. Hitting cmd-r prints: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/pro…

---

## [Libxml: trying to set encoding for a document](https://www.ruby-forum.com/t/libxml-trying-to-set-encoding-for-a-document/173506)

<div class="topic-metadata">

**Author:** [@Diana\_J](https://www.ruby-forum.com/u/Diana_J)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/libxml-trying-to-set-encoding-for-a-document/173506 "2009-08-11T15:26:02Z")

</div>

Hi all! I have problems with setting encoding for an xml file. I want to produce an xml file which starts with \<?xml version="1.0" encoding="UTF-8"?\> I tried the following code, but it gives initialized constant err…

---

## [Object as second parameter to raise](https://www.ruby-forum.com/t/object-as-second-parameter-to-raise/173567)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/object-as-second-parameter-to-raise/173567 "2009-08-11T15:00:17Z")

</div>

Hi I’ve just realised that I’ve been inadvertently passing objects other than strings to raise. As in this example: class Foo def bar :bar end end begin raise RuntimeError, Foo.new rescue =\> e puts e.message.b…

---

## [Hiding Ruby tasks in Windows display](https://www.ruby-forum.com/t/hiding-ruby-tasks-in-windows-display/173562)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/hiding-ruby-tasks-in-windows-display/173562 "2009-08-11T14:16:45Z")

</div>

Hi, I’ve got a PC acting as a server that only runs Ruby scripts, using the Windows task scheduler. If I sit down at that PC I’m constantly bombarded by command shells opening and closing as these scripts fire off an…

---

## [Using Ruby on a PC](https://www.ruby-forum.com/t/using-ruby-on-a-pc/173526)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/using-ruby-on-a-pc/173526 "2009-08-11T13:31:41Z")

</div>

I haven’t used Ruby on a PC in a while and I’m wondering what my options are. Installing instantrails, installing linux on top of vmware server and installing ruby inside linux… Anything else?

---

## [Load & Execute Code From a Database](https://www.ruby-forum.com/t/load-execute-code-from-a-database/173500)

<div class="topic-metadata">

**Author:** [@Paul\_F\_Fraser](https://www.ruby-forum.com/u/Paul_F_Fraser)\
**Replies:** 8\
**Last updated:** [August 11, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/load-execute-code-from-a-database/173500 "2009-08-11T13:10:13Z")

</div>

Hi, Sometime ago there was a discussion about loading & running code held in a database and there were some adverse comments about security etc… Was the method based on eval, or are there other ways to load and exec…

---

## [Loofah 0.2.0 Released](https://www.ruby-forum.com/t/loofah-0-2-0-released/173547)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 8:46am UTC](https://www.ruby-forum.com/t/loofah-0-2-0-released/173547 "2009-08-11T08:46:48Z")

</div>

loofah version 0.2.0 has been released! http://loofah.rubyforge.org/ http://rubyforge.org/projects/loofah http://github.com/flavorjones/loofah Loofah is an HTML sanitizer. It will always fix broken markup, but can al…

---

## [Neversaydie version 1.0.0 has been released!](https://www.ruby-forum.com/t/neversaydie-version-1-0-0-has-been-released/173545)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 7:42am UTC](https://www.ruby-forum.com/t/neversaydie-version-1-0-0-has-been-released/173545 "2009-08-11T07:42:25Z")

</div>

neversaydie version 1.0.0 has been released! http://seattlerb.rubyforge.org http://github.com/tenderlove/neversaydie NEVER SAY DIE lets you rescue from segmentation faults. Got a SEGV, don’t worry about it anymore!…

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

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