# Ruby

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

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

---

## [Randomly generated words from a set of letters](https://www.ruby-forum.com/t/randomly-generated-words-from-a-set-of-letters/177585)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [October 21, 2009, 11:14am UTC](https://www.ruby-forum.com/t/randomly-generated-words-from-a-set-of-letters/177585 "2009-10-21T11:14:04Z")

</div>

Hi, I have an interesting problem to solve and thought I’d ask for some input here. We’re developing an application and one part of it is building a random combination for this lock… http://wordlock.com/\_pdf/Wordloc…

---

## [Jruby/rack/rails truncating post data when submitting data](https://www.ruby-forum.com/t/jruby-rack-rails-truncating-post-data-when-submitting-data/177359)

<div class="topic-metadata">

**Author:** [@stewartmckee](https://www.ruby-forum.com/u/stewartmckee)\
**Replies:** 1\
**Last updated:** [October 21, 2009, 11:13am UTC](https://www.ruby-forum.com/t/jruby-rack-rails-truncating-post-data-when-submitting-data/177359 "2009-10-21T11:13:31Z")

</div>

Hi, I am having a problem with post data being truncated at around 5k from a form running jruby 1.3.1 on rails 2.3.3 with warbler and jboss. I have posted the firebug copy of the post and the output from rails for t…

---

## [Slow script performance using jruby-complete & ant](https://www.ruby-forum.com/t/slow-script-performance-using-jruby-complete-ant/177632)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 21, 2009, 10:30am UTC](https://www.ruby-forum.com/t/slow-script-performance-using-jruby-complete-ant/177632 "2009-10-21T10:30:46Z")

</div>

Hello, I’m using ant 1.7.1 with jruby-complete-1.4.0RC1.jar via bsf. My problem is that the jruby performance inside ant is very bad (e.g. compared to a beanshell script). The ant test file (see below) compares two s…

---

## [Complex GSUB query](https://www.ruby-forum.com/t/complex-gsub-query/177589)

<div class="topic-metadata">

**Author:** [@nescripter](https://www.ruby-forum.com/u/nescripter)\
**Replies:** 4\
**Last updated:** [October 21, 2009, 9:52am UTC](https://www.ruby-forum.com/t/complex-gsub-query/177589 "2009-10-21T09:52:56Z")

</div>

Hello all, I am struggling with something and I have yet been able to find anything that may help me. I have a string like follows: string = ““bloggs, Joe (JBloggs, INFO)” joebloggs, “bloggs, Bill (BBloggs, INFO)” b…

---

## [Can't find Gem](https://www.ruby-forum.com/t/cant-find-gem/177621)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [October 21, 2009, 7:30am UTC](https://www.ruby-forum.com/t/cant-find-gem/177621 "2009-10-21T07:30:08Z")

</div>

I recently installed ruby 1.8.7 and rubygems 1.3.5. Right now i’m trying to use the ruby-debug gem, but when i script/server --debugger i get the error: You need to install ruby-debug to run the server in debugging m…

---

## [C extension: How to create a Hash entry with Symbol key?](https://www.ruby-forum.com/t/c-extension-how-to-create-a-hash-entry-with-symbol-key/177613)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [October 21, 2009, 4:43am UTC](https://www.ruby-forum.com/t/c-extension-how-to-create-a-hash-entry-with-symbol-key/177613 "2009-10-21T04:43:02Z")

</div>

Hi, I do know how to create a hash from C in wich keys and values are strings: VALUE hash = rb\_hash\_new(); rb\_hash\_aset(hash, rb\_str\_new(“mykey”,5), rb\_str\_new2(myvalue)); But now I want to create Hash entries with S…

---

## [Pik 0.2.2 Released](https://www.ruby-forum.com/t/pik-0-2-2-released/177620)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 0\
**Last updated:** [October 21, 2009, 4:26am UTC](https://www.ruby-forum.com/t/pik-0-2-2-released/177620 "2009-10-21T04:26:03Z")

</div>

pik version 0.2.2 has been released! \<Homepage: GitHub - vertiginous/pik: Ruby version manager for Windows\> \<Bugs/Feature: Issues · vertiginous/pik · GitHub\> \<Rubyforge: http://rubyforge.org/projects/pik/\> P…

---

## [Difficulty with name-mangling when extending Ruby with Thrust (C++)](https://www.ruby-forum.com/t/difficulty-with-name-mangling-when-extending-ruby-with-thrust-c/177617)

<div class="topic-metadata">

**Author:** [@Ralf\_Gunter](https://www.ruby-forum.com/u/Ralf_Gunter)\
**Replies:** 0\
**Last updated:** [October 21, 2009, 4:00am UTC](https://www.ruby-forum.com/t/difficulty-with-name-mangling-when-extending-ruby-with-thrust-c/177617 "2009-10-21T04:00:17Z")

</div>

Hello, I’m trying to extend Ruby with Thrust for a short physics project of mine, but I keep running into some trouble with C++'s name mangling. Specifically, when calling functions such as thrust::replace or thrust:…

---

## [Win32ole word find replace](https://www.ruby-forum.com/t/win32ole-word-find-replace/177590)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 1\
**Last updated:** [October 21, 2009, 3:51am UTC](https://www.ruby-forum.com/t/win32ole-word-find-replace/177590 "2009-10-21T03:51:49Z")

</div>

Hi everyone, I’m trying to use ruby to “find and replace” feature in Word and although i know the word is in the file it says it does not find it. What the name of god am i doing wrong here(please see code below). An…

---

## [Loading program that uses gems on network share is incredibly slow](https://www.ruby-forum.com/t/loading-program-that-uses-gems-on-network-share-is-incredibly-slow/177614)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 21, 2009, 2:58am UTC](https://www.ruby-forum.com/t/loading-program-that-uses-gems-on-network-share-is-incredibly-slow/177614 "2009-10-21T02:58:13Z")

</div>

Hi! Loading program that uses gems on network share is incredibly slow. Ruby’s need, due to Rubygems, to search a long list of directories for a file to load due to a require can become very tedious on, for example, …

---

## [Main-4.0.0 (for avdi)](https://www.ruby-forum.com/t/main-4-0-0-for-avdi/177618)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 0\
**Last updated:** [October 21, 2009, 2:23am UTC](https://www.ruby-forum.com/t/main-4-0-0-for-avdi/177618 "2009-10-21T02:23:05Z")

</div>

NAME main.rb SYNOPSIS a class factory and dsl for generating command line programs real quick URI http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ GitHub - ahoward/main: a class fac…

---

## [Rspec-rails 1.2.9 Released](https://www.ruby-forum.com/t/rspec-rails-1-2-9-released/176783)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 7\
**Last updated:** [October 21, 2009, 2:14am UTC](https://www.ruby-forum.com/t/rspec-rails-1-2-9-released/176783 "2009-10-21T02:14:54Z")

</div>

rspec-rails version 1.2.9 has been released! http://rspec.info http://rubyforge.org/projects/rspec http://github.com/dchelimsky/rspec-rails http://wiki.github.com/dchelimsky/rspec/rails removed\_email\_address@domain.inv…

---

## [\[ANN\] Creation of a ruby-talk FAQ page (again)](https://www.ruby-forum.com/t/ann-creation-of-a-ruby-talk-faq-page-again/177417)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [October 21, 2009, 12:50am UTC](https://www.ruby-forum.com/t/ann-creation-of-a-ruby-talk-faq-page-again/177417 "2009-10-21T00:50:55Z")

</div>

I am pleased to announce the creation of a small wiki page designed to try and serve as a FAQ for ruby-talk. http://wiki.github.com/rdp/ruby\_talk\_faq Please feel free to add to it and use it. Thanks! -r

---

## [Deep cloning, how?](https://www.ruby-forum.com/t/deep-cloning-how/177256)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 28\
**Last updated:** [October 20, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/deep-cloning-how/177256 "2009-10-20T23:55:31Z")

</div>

I am trying to figure out how to perform a deep clone class A attr\_accessor :name end a1 = A.new a1.name = “yoyoma” a2 = a1.dup a1.name.chop! puts a2.name I found the following way to write a deep clone method c…

---

## [Threads terminating](https://www.ruby-forum.com/t/threads-terminating/177541)

<div class="topic-metadata">

**Author:** [@pawel](https://www.ruby-forum.com/u/pawel)\
**Replies:** 4\
**Last updated:** [October 20, 2009, 10:05pm UTC](https://www.ruby-forum.com/t/threads-terminating/177541 "2009-10-20T22:05:27Z")

</div>

Why this simple program give no output, and terminates immidiatly after its launched? There should be thread running and giving lots of ‘lala’, am I right? class Bar def initialize end def foo Thread.new do while…

---

## [Urgent opening for Ruby on Rails Application Developer](https://www.ruby-forum.com/t/urgent-opening-for-ruby-on-rails-application-developer/177605)

<div class="topic-metadata">

**Author:** [@Kamlesh\_Yadav](https://www.ruby-forum.com/u/Kamlesh_Yadav)\
**Replies:** 0\
**Last updated:** [October 20, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/urgent-opening-for-ruby-on-rails-application-developer/177605 "2009-10-20T21:26:13Z")

</div>

Hi, Our client is in urgent need of Ruby on Rails Developer Title: Ruby on Rails Application Developer. Location: San Diego, CA.Candidate should be local. Start: ASAP Duration: 6+ months Ruby on Rails Application D…

---

## [/usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:384:in \`initialize': Permission denied](https://www.ruby-forum.com/t/usr-local-lib-ruby-1-9-1-rdoc-ri-driver-rbin-initialize-permission-denied/177601)

<div class="topic-metadata">

**Author:** [@eepeterson](https://www.ruby-forum.com/u/eepeterson)\
**Replies:** 4\
**Last updated:** [October 20, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/usr-local-lib-ruby-1-9-1-rdoc-ri-driver-rbin-initialize-permission-denied/177601 "2009-10-20T21:25:37Z")

</div>

I’m getting the following error when I try to run ‘ri’ command. I’m running on Snow Leopard if that helps at all. /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:384:in initialize': Permission denied - /Users/erik\_mbp/.ri/…

---

## [Ruby-amt 0.1.0 - first release](https://www.ruby-forum.com/t/ruby-amt-0-1-0-first-release/177602)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [October 20, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/ruby-amt-0-1-0-first-release/177602 "2009-10-20T19:44:56Z")

</div>

ruby-amt 0.1.0 released This is the initial version of ruby-amt. Four AMT services are already available: NetworkAdministration - for getting and setting network related information HardwareAsset - for retrieving in…

---

## [Dynamic nested each in ruby 1.8.7?](https://www.ruby-forum.com/t/dynamic-nested-each-in-ruby-1-8-7/177462)

<div class="topic-metadata">

**Author:** [@toi](https://www.ruby-forum.com/u/toi)\
**Replies:** 14\
**Last updated:** [October 20, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/dynamic-nested-each-in-ruby-1-8-7/177462 "2009-10-20T18:39:06Z")

</div>

How can one have a function that uses a dynamic amount of each statements? Below is the code for level 3. Is there a way to define this easily using recursion? I want to avoid having a separate function for each level…

---

## [Instance\_eval with method proc](https://www.ruby-forum.com/t/instance-eval-with-method-proc/177573)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 3\
**Last updated:** [October 20, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/instance-eval-with-method-proc/177573 "2009-10-20T17:54:17Z")

</div>

Hi I’m trying to invoke a method defined in one class with self set to an instance of a different class. I didn’t have much success (as shown below). Is there another way to achieve this? Many thanks Paul class Fo…

---

## [Install Error: No space left on device - write (Errno::ENOSP](https://www.ruby-forum.com/t/install-error-no-space-left-on-device-write-errno-enosp/177543)

<div class="topic-metadata">

**Author:** [@thinkwritemute](https://www.ruby-forum.com/u/thinkwritemute)\
**Replies:** 6\
**Last updated:** [October 20, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/install-error-no-space-left-on-device-write-errno-enosp/177543 "2009-10-20T17:40:04Z")

</div>

Trying to install Ruby on my Ubuntu parition. I untared, ./configure’d, make’d, and now on “sudo make install”: http://pastie.org/661313 Also, FYI but the FAQ link in “Please Read Before Posting” is a: File Not Found …

---

## [IronRuby.Rack app failing](https://www.ruby-forum.com/t/ironruby-rack-app-failing/177586)

<div class="topic-metadata">

**Author:** [@James\_Thompson](https://www.ruby-forum.com/u/James_Thompson)\
**Replies:** 1\
**Last updated:** [October 20, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/ironruby-rack-app-failing/177586 "2009-10-20T17:13:17Z")

</div>

I am getting a message that seems odd to me when my IronRuby.Rack app fails to start. This error only gets displayed to me in the browser, nothing is getting logged to production.log or ironrack.log besides the start…

---

## [Recursive function problem](https://www.ruby-forum.com/t/recursive-function-problem/177566)

<div class="topic-metadata">

**Author:** [@olistik](https://www.ruby-forum.com/u/olistik)\
**Replies:** 3\
**Last updated:** [October 20, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/recursive-function-problem/177566 "2009-10-20T17:02:09Z")

</div>

Hi all! I have a problem with this function, which should return a formatted string of an hash given as an argument: def show\_params(params, tabs\_num) params\_str = String.new if tabs\_num == -1 tabs\_num++ params.eac…

---

## [Ruby C-API reference](https://www.ruby-forum.com/t/ruby-c-api-reference/177572)

<div class="topic-metadata">

**Author:** [@rantanplan](https://www.ruby-forum.com/u/rantanplan)\
**Replies:** 2\
**Last updated:** [October 20, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/ruby-c-api-reference/177572 "2009-10-20T14:33:27Z")

</div>

Hi, I found a reference at: \> http://www.ruby-doc.org/doxygen/current/index.html but this documentation is just a API function listing without documentation and without tutorial … Q: does I miss something ? mfg ao…

---

## [Join .Net Community](https://www.ruby-forum.com/t/join-net-community/197105)

<div class="topic-metadata">

**Author:** [@Shawon\_S](https://www.ruby-forum.com/u/Shawon_S)\
**Replies:** 0\
**Last updated:** [October 20, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/join-net-community/197105 "2009-10-20T12:30:29Z")

</div>

Join .Net Community This group represents the Microsoft .Net community. All .net programmers all around the world are welcome here. In this group you’ll find the latest releases of .Net related products, frameworks, …

---

## [\[Bug #2237\] Interoperability between 1.8 and 1.9 through Marshal](https://www.ruby-forum.com/t/bug-2237-interoperability-between-1-8-and-1-9-through-marshal/177557)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 2\
**Last updated:** [October 20, 2009, 11:07am UTC](https://www.ruby-forum.com/t/bug-2237-interoperability-between-1-8-and-1-9-through-marshal/177557 "2009-10-20T11:07:21Z")

</div>

Bug #2237: Interoperability between 1.8 and 1.9 through Marshal http://redmine.ruby-lang.org/issues/show/2237 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1…

---

## [Pik 0.2.1 Released](https://www.ruby-forum.com/t/pik-0-2-1-released/177554)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 2\
**Last updated:** [October 20, 2009, 9:04am UTC](https://www.ruby-forum.com/t/pik-0-2-1-released/177554 "2009-10-20T09:04:24Z")

</div>

pik version 0.2.1 has been released! http://github.com/vertiginous/pik http://rubyforge.org/projects/pik/ Pik is a tool to switch between multiple versions of ruby on Windows. Or to put it another way doskey rvm=…

---

## [Statistics calculations in Ruby](https://www.ruby-forum.com/t/statistics-calculations-in-ruby/177540)

<div class="topic-metadata">

**Author:** [@thiagobrandam](https://www.ruby-forum.com/u/thiagobrandam)\
**Replies:** 2\
**Last updated:** [October 20, 2009, 8:04am UTC](https://www.ruby-forum.com/t/statistics-calculations-in-ruby/177540 "2009-10-20T08:04:06Z")

</div>

Hi all, I have to do some statistics calculations (normal distribution, etc) in Ruby and I don’t seem to find much of it in the language itself. Would be the R statistics package the best solution so far? Thanks in a…

---

## [Can 35.times do |i| be decrement of "i"?](https://www.ruby-forum.com/t/can-35-times-do-i-be-decrement-of-i/177556)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 8\
**Last updated:** [October 20, 2009, 8:02am UTC](https://www.ruby-forum.com/t/can-35-times-do-i-be-decrement-of-i/177556 "2009-10-20T08:02:20Z")

</div>

if there is a loop 35.times do |i| print i do something here… end it is nice except i hope to count down the “i”… it can be print 35 - i but then if the number needs to be 36 then i need to change both places. or…

---

## [Windows Ruby Version Check](https://www.ruby-forum.com/t/windows-ruby-version-check/177021)

<div class="topic-metadata">

**Author:** [@James\_Edward\_GSII](https://www.ruby-forum.com/u/James_Edward_GSII)\
**Replies:** 10\
**Last updated:** [October 20, 2009, 5:50am UTC](https://www.ruby-forum.com/t/windows-ruby-version-check/177021 "2009-10-20T05:50:02Z")

</div>

Can a Windows Ruby user please confirm that the “Ruby 1.9.1-p129 Binary” link under “Ruby on Windows” on this page: Download Ruby actually downloads version 1.9.1? I’m investigating a bug report that claimed it down…

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

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