# Ruby

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

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

---

## [Permission error in "ri" command](https://www.ruby-forum.com/t/permission-error-in-ri-command/176344)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 7:37pm UTC](https://www.ruby-forum.com/t/permission-error-in-ri-command/176344 "2009-09-29T19:37:35Z")

</div>

Hi - I get the following error when I run “ri” command. I’m using Mac OS X Snow Leopard. I installed Ruby with MacPorts. /opt/local/lib/ruby/gems/1.8/gems/rdoc-2.3.0/lib/rdoc/ri/driver.rb:405:in initialize': Permissio…

---

## [String.insert newbie question](https://www.ruby-forum.com/t/string-insert-newbie-question/83543)

<div class="topic-metadata">

**Author:** [@kreatix](https://www.ruby-forum.com/u/kreatix)\
**Replies:** 6\
**Last updated:** [September 29, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/string-insert-newbie-question/83543 "2009-09-29T17:26:16Z")

</div>

Hello, I’ve only been checking out Ruby for a couple of days, but today I came across this problem. If I do this: #!/usr/bin/env ruby -w string1 = “abc” string2 = string1 string2.insert(-1, “def”) puts string1 p…

---

## [Mimicking classpath and hierarchical packages?](https://www.ruby-forum.com/t/mimicking-classpath-and-hierarchical-packages/176350)

<div class="topic-metadata">

**Author:** [@Jean-Christophe\_Le\_S](https://www.ruby-forum.com/u/Jean-Christophe_Le_S)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/mimicking-classpath-and-hierarchical-packages/176350 "2009-09-29T13:43:13Z")

</div>

Hi, I’d like to have your advices concerning these points : how to to mimick the java notions of classpath and of hierarchical packages, in ruby, as close as possible ? Is there a standard and clean way of doing this…

---

## [Embedded Ruby 1.9.1, signals and multithreading](https://www.ruby-forum.com/t/embedded-ruby-1-9-1-signals-and-multithreading/176153)

<div class="topic-metadata">

**Author:** [@corck](https://www.ruby-forum.com/u/corck)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/embedded-ruby-1-9-1-signals-and-multithreading/176153 "2009-09-29T13:37:22Z")

</div>

Hello, I have some question abouts the signal handling in 1.9.1 and haven’t found any docs so I am asking here - based on assumptions of course so please correct me if I am mistaken. I am author of a window manager (…

---

## [Can't get rubygame to work](https://www.ruby-forum.com/t/cant-get-rubygame-to-work/176240)

<div class="topic-metadata">

**Author:** [@Sebastian\_BeSSSSler](https://www.ruby-forum.com/u/Sebastian_BeSSSSler)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 11:05am UTC](https://www.ruby-forum.com/t/cant-get-rubygame-to-work/176240 "2009-09-29T11:05:42Z")

</div>

Hello, I am new to ruby and rubygame and have tried to get http://rubygame.org/wiki/Generic\_Game\_Template to work as a starting point, but I only get this error: /usr/lib64/ruby/gems/1.8/gems/rubygame-2.5.3/lib/…/ext…

---

## [Kenlighten - A social network for knowledge seekers and providers](https://www.ruby-forum.com/t/kenlighten-a-social-network-for-knowledge-seekers-and-providers/176338)

<div class="topic-metadata">

**Author:** [@uma](https://www.ruby-forum.com/u/uma)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 9:35am UTC](https://www.ruby-forum.com/t/kenlighten-a-social-network-for-knowledge-seekers-and-providers/176338 "2009-09-29T09:35:32Z")

</div>

Dear friends, I am writing to share with you about a unique social knowledge network Kenlighten http://www.kenlighten.com . At Kenlighten you can register for a free account and create online tutorials in your area …

---

## [\[ANN\] IronRuby 0.9.1 Released](https://www.ruby-forum.com/t/ann-ironruby-0-9-1-released/176333)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 9:13am UTC](https://www.ruby-forum.com/t/ann-ironruby-0-9-1-released/176333 "2009-09-29T09:13:52Z")

</div>

The IronRuby team is pleased to release version 0.9.1! IronRuby.net / Get IronRuby Direct download link: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30916#DownloadId=85513 As IronRuby approach…

---

## [Hanging XMLRPC calls](https://www.ruby-forum.com/t/hanging-xmlrpc-calls/176072)

<div class="topic-metadata">

**Author:** [@rickthemick](https://www.ruby-forum.com/u/rickthemick)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 8:53am UTC](https://www.ruby-forum.com/t/hanging-xmlrpc-calls/176072 "2009-09-29T08:53:22Z")

</div>

Hi! I have a problem with hanging XMLRPC calls. It appears when I call XMLRPC::Client.new too freqently. For my own sake, I have a work around for this (I save the server reference in an instance variable, for exampl…

---

## [Jruby 1.3.0 + ARJdbc 0.9.1 + jtds 1.2.2 + MSSql 2005 - database.yml format?](https://www.ruby-forum.com/t/jruby-1-3-0-arjdbc-0-9-1-jtds-1-2-2-mssql-2005-database-yml-format/171310)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 8:52am UTC](https://www.ruby-forum.com/t/jruby-1-3-0-arjdbc-0-9-1-jtds-1-2-2-mssql-2005-database-yml-format/171310 "2009-09-29T08:52:15Z")

</div>

Hello All, I have a standalone ruby script that demonstrates correct connection to my sqlserver database (jdbc.rb in pastiehttp://pastie.org/529254) that succeeds. I have a Rails 2.3.2 app with this database.yml in …

---

## [Inconsistent behavior of singleton methods that access class variables: 1.8.7 vs 1.9.2](https://www.ruby-forum.com/t/inconsistent-behavior-of-singleton-methods-that-access-class-variables-1-8-7-vs-1-9-2/176242)

<div class="topic-metadata">

**Author:** [@Nikolai\_L](https://www.ruby-forum.com/u/Nikolai_L)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 6:32am UTC](https://www.ruby-forum.com/t/inconsistent-behavior-of-singleton-methods-that-access-class-variables-1-8-7-vs-1-9-2/176242 "2009-09-29T06:32:54Z")

</div>

Sample code (based on fragment from rails/actionpack/test/abstract\_unit.rb): module A class Sample; end module Incorrect; end module Correct; end class \<\< Sample; def list; @@list ||= \[\]; end; end class \<\< Inc…

---

## [IR -e not returning error codes properly](https://www.ruby-forum.com/t/ir-e-not-returning-error-codes-properly/176324)

<div class="topic-metadata">

**Author:** [@Xerxes\_Battiwalla](https://www.ruby-forum.com/u/Xerxes_Battiwalla)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 6:27am UTC](https://www.ruby-forum.com/t/ir-e-not-returning-error-codes-properly/176324 "2009-09-29T06:27:02Z")

</div>

This problem manifests itself when running rspec tests under IronRuby (through our Rakefile), and I think i’ve found a simple reproduction of the issue using the following command-line sequence. MRI does this: D:\>ruby…

---

## [Redifition warning for module\_function](https://www.ruby-forum.com/t/redifition-warning-for-module-function/176325)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 6:22am UTC](https://www.ruby-forum.com/t/redifition-warning-for-module-function/176325 "2009-09-29T06:22:56Z")

</div>

e$B$J$+$@$G$9!#e(B jsone$B$G7Y9p$,=P$^$9!#e(B $ ruby -w -rjson -ep /usr/local/lib/ruby/1.9.1/json/common.rb:273: warning: method redefined; discarding old recurse\_proc e$B:G\>.2=$9$k$He(B $ ruby -w -e ‘module M; mod…

---

## [Tag messup](https://www.ruby-forum.com/t/tag-messup/176323)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 5:37am UTC](https://www.ruby-forum.com/t/tag-messup/176323 "2009-09-29T05:37:51Z")

</div>

Ok, I messed up, and I pushed out an earlier version tagged as v0.9.1. I then fixed something, and retagged the fixed tree as v0.9.1 again. If you got the wrong tag, and want the new one, please delete the old one and…

---

## [Format problem](https://www.ruby-forum.com/t/format-problem/176284)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 7\
**Last updated:** [September 29, 2009, 2:59am UTC](https://www.ruby-forum.com/t/format-problem/176284 "2009-09-29T02:59:12Z")

</div>

Hi all, I have an 2D array and I write it a file using the following script. But when I open the written file I find the format is not what I want: the second and third row are not justified as the first row. I wonder…

---

## [Xmlrpc](https://www.ruby-forum.com/t/xmlrpc/176319)

<div class="topic-metadata">

**Author:** [@bryan](https://www.ruby-forum.com/u/bryan)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 2:08am UTC](https://www.ruby-forum.com/t/xmlrpc/176319 "2009-09-29T02:08:39Z")

</div>

hi all, i need some help with the following error from wordpress xmlrpc. error: /usr/local/lib/ruby/site\_ruby/1.8/xmlrpc/create.rb:267:in conv2value': #\<Class:0x33426c\> (RuntimeError) from /usr/local/lib/ruby/site\_rub…

---

## [Ri\_cal 0.8.5 Released](https://www.ruby-forum.com/t/ri-cal-0-8-5-released/176309)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [September 28, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/ri-cal-0-8-5-released/176309 "2009-09-28T23:42:29Z")

</div>

ri\_cal version 0.8.5 has been released! NOTE: Due to githubs migration to RackSpace this past weekend, and the fact that github gem generation is temporarily disabled, the 0.8.5 gem is only available via rubyforge. T…

---

## [Noob - loop indexing](https://www.ruby-forum.com/t/noob-loop-indexing/176310)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 4\
**Last updated:** [September 28, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/noob-loop-indexing/176310 "2009-09-28T23:07:56Z")

</div>

I try to make Ruby loops using “each” like this: a is an array a.each do … end But I always end up needing the array index in the body of the loop for one reason or another. Then I change it to: i=0; while i\<a.le…

---

## [\[Bug #2154\] filesystem encoding of UNIX](https://www.ruby-forum.com/t/bug-2154-filesystem-encoding-of-unix/176289)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [September 28, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/bug-2154-filesystem-encoding-of-unix/176289 "2009-09-28T21:27:50Z")

</div>

Bug #2154: filesystem encoding of UNIX http://redmine.ruby-lang.org/issues/show/2154 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yui NARUSE, e$B%+%F%4%je(B: M17N, Target ve…

---

## [SSO automation](https://www.ruby-forum.com/t/sso-automation/176280)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 1\
**Last updated:** [September 28, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/sso-automation/176280 "2009-09-28T20:43:03Z")

</div>

HÃ¦, is possible to automate a web page that includes SSO autthentication??

---

## [Regular expression question](https://www.ruby-forum.com/t/regular-expression-question/176239)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 9\
**Last updated:** [September 28, 2009, 8:38pm UTC](https://www.ruby-forum.com/t/regular-expression-question/176239 "2009-09-28T20:38:46Z")

</div>

Why does: puts /\\w+? \\w+?/.match “Ein kleiner Satz” return “Ein k” and not “n k” My understanding was that \\w represents any alphanumerical character, + means that it occurs at least once and the ? following the plus…

---

## [Internationalization, Localization and Encodings](https://www.ruby-forum.com/t/internationalization-localization-and-encodings/176263)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 4\
**Last updated:** [September 28, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/internationalization-localization-and-encodings/176263 "2009-09-28T18:40:25Z")

</div>

Hi, I’m sorry that this is a bit Off Topic, but I was wondering if there’s a good resource that you could point me to for understanding internationalization, localization and encodings. With the new support in 1.9 an…

---

## [Removing constant-able macros inside of the loop](https://www.ruby-forum.com/t/removing-constant-able-macros-inside-of-the-loop/176237)

<div class="topic-metadata">

**Author:** [@Masahiro\_Kanai\_SCan](https://www.ruby-forum.com/u/Masahiro_Kanai_SCan)\
**Replies:** 3\
**Last updated:** [September 28, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/removing-constant-able-macros-inside-of-the-loop/176237 "2009-09-28T16:33:22Z")

</div>

e$B6b0fe(B e$B?N90$H?=$7$^$9!#e(B e$B%k!\<%WFb$GDj?t2=$5$l$&$k%^%/%m$r!"%k!\<%W$N30$K=P$9$3$H$K$h$C$F!"e(B e$B0lIt%a%=%C%I$N9bB.2=$r?^$j$^$7$?!#e(B revision 24444e$B$G$N=$@5$HF1MM$NH/A\[$G$9!#e(B http://svn.ruby-lang.or…

---

## [Getting a valid URL from a command line](https://www.ruby-forum.com/t/getting-a-valid-url-from-a-command-line/176256)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 4\
**Last updated:** [September 28, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/getting-a-valid-url-from-a-command-line/176256 "2009-09-28T15:40:41Z")

</div>

Hi - I’m working on the script below, which attempts at getting a user input and validate that the input is formed like a URL. And if the user fails to input, it should ask again. require ‘uri’ puts “Type a URL” beg…

---

## [Ruby on Rails Ninja for Freshly Funded Startup - Cambridge, MA. $1000 referral reward](https://www.ruby-forum.com/t/ruby-on-rails-ninja-for-freshly-funded-startup-cambridge-ma-1000-referral-reward/176281)

<div class="topic-metadata">

**Author:** [@Marsh\_Sutherland](https://www.ruby-forum.com/u/Marsh_Sutherland)\
**Replies:** 0\
**Last updated:** [September 28, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-ninja-for-freshly-funded-startup-cambridge-ma-1000-referral-reward/176281 "2009-09-28T14:50:56Z")

</div>

Walden Recruiting’s client company is a known startup in the Boston innovation scene. They had their tough times during the recession, but are now refocused with a new revenue model, have a new hotshot CEO, and are f…

---

## [Regex problem for comments line](https://www.ruby-forum.com/t/regex-problem-for-comments-line/176261)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 4\
**Last updated:** [September 28, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/regex-problem-for-comments-line/176261 "2009-09-28T13:58:49Z")

</div>

str = " uses Windows, Messages, SysUtils, Classes, Controls, Forms, Dialogs, Graphics, Login\_c, Login\_i, Utility\_c, Utility\_i, Agent\_i, MMenu, // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆ CtrlFor…

---

## [Ruby, Windows, GTK2, and Microsoft Installer](https://www.ruby-forum.com/t/ruby-windows-gtk2-and-microsoft-installer/176248)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 28, 2009, 11:59am UTC](https://www.ruby-forum.com/t/ruby-windows-gtk2-and-microsoft-installer/176248 "2009-09-28T11:59:41Z")

</div>

I have to make my first GUI application that will be installed in Windows XP and have the usual kind of installer most Windows users usually use. I can make the app with GTK2, Perl, Komodo IDE, and ActiveStates PerlDe…

---

## [Calling 'C' code from Ruby](https://www.ruby-forum.com/t/calling-c-code-from-ruby/176234)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 5\
**Last updated:** [September 28, 2009, 11:04am UTC](https://www.ruby-forum.com/t/calling-c-code-from-ruby/176234 "2009-09-28T11:04:58Z")

</div>

Hi all, I am wondering if there is a tutorial that will show me how to call C code from Ruby? I am planning on playing with the idea of adding encryption support for Ruby that will be faster than current (pure) nat…

---

## [How to understand](https://www.ruby-forum.com/t/how-to-understand/176199)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 1\
**Last updated:** [September 28, 2009, 9:48am UTC](https://www.ruby-forum.com/t/how-to-understand/176199 "2009-09-28T09:48:34Z")

</div>

\#object.c: Init\_Object() { rb\_cObject = boot\_defclass(“Object”, 0); rb\_cModule = boot\_defclass(“Module”, rb\_cObject); rb\_cClass = boot\_defclass(“Class”, rb\_cModule); } =======boot\_defclass======== boot\_defclass…

---

## [Counting words for visual details](https://www.ruby-forum.com/t/counting-words-for-visual-details/176245)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [September 28, 2009, 7:22am UTC](https://www.ruby-forum.com/t/counting-words-for-visual-details/176245 "2009-09-28T07:22:12Z")

</div>

I’ve made a survey in Rails where I want people to pick three words, characteristics, from a list of 30 words for 20 different visual details; linear, organic, symmetry, etc. I save each answer for each user, with the…

---

## [Handling of regexp objects that aren't referenced by variables, arrays, tables or objects](https://www.ruby-forum.com/t/handling-of-regexp-objects-that-arent-referenced-by-variables-arrays-tables-or-objects/176233)

<div class="topic-metadata">

**Author:** [@ThomasW](https://www.ruby-forum.com/u/ThomasW)\
**Replies:** 11\
**Last updated:** [September 28, 2009, 3:55am UTC](https://www.ruby-forum.com/t/handling-of-regexp-objects-that-arent-referenced-by-variables-arrays-tables-or-objects/176233 "2009-09-28T03:55:55Z")

</div>

Hi, first of all I have to say I’m relatively unexperienced with Ruby and also new to regular expressions. This causes me some problems: I’m parsing text files and am using a lot of regexps for this. Initially I was…

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

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