# Ruby

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

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

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229136)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [December 9, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229136 "2007-12-09T22:41:13Z")

</div>

Begin forwarded message:

---

## [Search-0.0.1](https://www.ruby-forum.com/t/search-0-0-1/122370)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 13\
**Last updated:** [December 9, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/search-0-0-1/122370 "2007-12-09T22:21:57Z")

</div>

NAME search SYNOPSIS search Directory re re\* \[options\]+ URIS http://codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ INSTALL gem install search DESCRIPTION search is a combination of fin…

---

## [Re: Word Loop (#149)](https://www.ruby-forum.com/t/re-word-loop-149/122587)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [December 9, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/re-word-loop-149/122587 "2007-12-09T21:49:06Z")

</div>

\#A loop is possible whenever there are two of the same lettter an even distance #greater than 2 from each other def first\_loop(letters) 0.upto(letters.length-1) do |idx1| (idx1+4).step(letters.length-1,2) do |idx2| …

---

## [Sorting by timestamp with uneven arrays](https://www.ruby-forum.com/t/sorting-by-timestamp-with-uneven-arrays/122534)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 4\
**Last updated:** [December 9, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/sorting-by-timestamp-with-uneven-arrays/122534 "2007-12-09T20:32:05Z")

</div>

Ok, this one is a little complicated and I’m sure there’s a better way to do it. Here’s what I’m doing: For presentation purposes, I have an array of arrays. Here’s the structure of the array: \[ “indicator (string…

---

## [EXE in windows](https://www.ruby-forum.com/t/exe-in-windows/122576)

<div class="topic-metadata">

**Author:** [@dannypotta](https://www.ruby-forum.com/u/dannypotta)\
**Replies:** 2\
**Last updated:** [December 9, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/exe-in-windows/122576 "2007-12-09T19:45:44Z")

</div>

I am new to Ruby (not to programming) and am trying to make executable files in Windows. The doc I am looking at only seems to have instructions for exe’s on unix/linux. Any advise on who to do this or whre to look …

---

## [Rails training from Ruby Power and Light in NYC, Feb. 2008!](https://www.ruby-forum.com/t/rails-training-from-ruby-power-and-light-in-nyc-feb-2008/122572)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [December 9, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/rails-training-from-ruby-power-and-light-in-nyc-feb-2008/122572 "2007-12-09T17:51:18Z")

</div>

Hello all – I’m happy to announce that Ruby Power and Light is offering the following Ruby on Rails training courses in New York City in February: \* Intro to Rails, New York, NY, February 4-7 2008 \* Advancing With Rai…

---

## [Regexp#names, MatchData#names, MatchData#regexp](https://www.ruby-forum.com/t/regexp-names-matchdata-names-matchdata-regexp/122551)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [December 9, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/regexp-names-matchdata-names-matchdata-regexp/122551 "2007-12-09T17:29:27Z")

</div>

named capture e$B$^$o$j$r$=$m$($F$$$F!"$d$O$jL\>A0$N%j%9%H$rF@$ke(B e$B%a%=%C%I$,I,MW$@$m$&$H$$$&$3$H$G!“e(BRegexp#names e$B$He(B MatchData#names e$B$r\<BAu$7$F$\_$^$7$?$,!”$I$&$G$7$g$&$+!#e(B e$B$"$H!“e(Bmatch.names e$B…

---

## [Man page from rdoc source](https://www.ruby-forum.com/t/man-page-from-rdoc-source/122512)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 1\
**Last updated:** [December 9, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/man-page-from-rdoc-source/122512 "2007-12-09T16:20:18Z")

</div>

Hi all, is there a way to create an unix man page from an rdoc formatted source? Thanks in advance. Andrea

---

## [Thought I'd share my alias](https://www.ruby-forum.com/t/thought-id-share-my-alias/119781)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [December 9, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/thought-id-share-my-alias/119781 "2007-12-09T15:55:04Z")

</div>

class Module As with alias\_method, but alias both reader and writer. attr\_accessor :x self.x = 1 alias\_accessor :y, :x y #=\> 1 self.y = 2 x #=\> 2 def alias\_accessor(\*args) orig = args.last args = args - \[orig\] args.…

---

## [FxRuby](https://www.ruby-forum.com/t/fxruby/122102)

<div class="topic-metadata">

**Author:** [@ernsttanaka](https://www.ruby-forum.com/u/ernsttanaka)\
**Replies:** 3\
**Last updated:** [December 9, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/fxruby/122102 "2007-12-09T13:59:00Z")

</div>

I have a big favor to ask. I am new to ruby and have managed to build an application which manages my Option Trades. Now I get to the point were I want to make a GUI for my application. Based on all the info provide I…

---

## [5 threads didn't exit](https://www.ruby-forum.com/t/5-threads-didnt-exit/122542)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [December 9, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/5-threads-didnt-exit/122542 "2007-12-09T12:17:40Z")

</div>

Hello I get this mesg whenever an i interrupt a Ruby program. How do i determine what these threads are e:/ruby/lib/ruby/1.8/date/format.rb: 959:in \_parse': Interrupt from e:/ruby/lib/ruby/1.8/time.rb:240:inparse’ f…

---

## [Print a method definition from irb?](https://www.ruby-forum.com/t/print-a-method-definition-from-irb/122488)

<div class="topic-metadata">

**Author:** [@Seth\_C](https://www.ruby-forum.com/u/Seth_C)\
**Replies:** 4\
**Last updated:** [December 9, 2007, 7:59am UTC](https://www.ruby-forum.com/t/print-a-method-definition-from-irb/122488 "2007-12-09T07:59:08Z")

</div>

Is it possible to reflect the text of a dynamically generated method definition? I’m debugging some ActiveRecord code and it would be very helpful to dump the text of some of the generated methods. For example, say I …

---

## [Self-calling method dumps core](https://www.ruby-forum.com/t/self-calling-method-dumps-core/122434)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 2\
**Last updated:** [December 9, 2007, 6:47am UTC](https://www.ruby-forum.com/t/self-calling-method-dumps-core/122434 "2007-12-09T06:47:52Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B e$B\<+J,\<+?H$NI\>2A7k2L$rJV$9%a%=%C%I$r8F$V$He(Bcoree$B$rEG$/$h$&$G$9!#e(B $ ruby-trunk -ve ‘def a; a; end; a’ ruby 1.9.0 (2007-12-07 patchlevel 0) \[i686-linux\] -e:1: – control frame ---------- …

---

## [Ruby on OLPC?](https://www.ruby-forum.com/t/ruby-on-olpc/121347)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 27\
**Last updated:** [December 9, 2007, 1:51am UTC](https://www.ruby-forum.com/t/ruby-on-olpc/121347 "2007-12-09T01:51:34Z")

</div>

I’ve been seriously considering the One Laptop Per Child Give One Get One program, and it’s starting to look really good at this point. However, the preferred scripting language is Python, and in fact the use of other…

---

## [Rucola 0.0.3 released](https://www.ruby-forum.com/t/rucola-0-0-3-released/122523)

<div class="topic-metadata">

**Author:** [@el-oy](https://www.ruby-forum.com/u/el-oy)\
**Replies:** 2\
**Last updated:** [December 9, 2007, 1:18am UTC](https://www.ruby-forum.com/t/rucola-0-0-3-released/122523 "2007-12-09T01:18:15Z")

</div>

Hello, We are pleased to announce the third release of Rucola today. http://rucola.rubyforge.org/ This release fixes some critical bugs which were introduced in the combination RubyCocoa 0.13 & Rucola 0.0.2 Cheers, …

---

## [Getting Access to a Row just Created](https://www.ruby-forum.com/t/getting-access-to-a-row-just-created/122524)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/getting-access-to-a-row-just-created/122524 "2007-12-08T23:36:17Z")

</div>

I’ve got a Ruby file where I take a table from my database named “Poc” and I’ve created a row in that table by executing: Poc.create() How do I access the id of the row I’ve just created? I could do some- thing lik…

---

## [.max a Block of code with yield?](https://www.ruby-forum.com/t/max-a-block-of-code-with-yield/122529)

<div class="topic-metadata">

**Author:** [@wrishel](https://www.ruby-forum.com/u/wrishel)\
**Replies:** 2\
**Last updated:** [December 8, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/max-a-block-of-code-with-yield/122529 "2007-12-08T23:04:02Z")

</div>

For a suitable value of pth, this works require ‘find’ Find.find (pth) { |x| puts x} This doesn’t require ‘find’ Find.find (pth) { |x| yield(x)}.max giving the error no block given (LocalJumpError), which I interpr…

---

## [Rubinius mailing list](https://www.ruby-forum.com/t/rubinius-mailing-list/122530)

<div class="topic-metadata">

**Author:** [@brixen](https://www.ruby-forum.com/u/brixen)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/rubinius-mailing-list/122530 "2007-12-08T21:26:32Z")

</div>

Hi folks, We’ve started up a mailing list again for Rubinius. Check it out here: http://groups.google.com/group/rubinius-dev Cheers, Brian

---

## [Regexp: str1-anything but str2-str2 =\> str1-str2](https://www.ruby-forum.com/t/regexp-str1-anything-but-str2-str2-str1-str2/122514)

<div class="topic-metadata">

**Author:** [@wxwxwx](https://www.ruby-forum.com/u/wxwxwx)\
**Replies:** 2\
**Last updated:** [December 8, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/regexp-str1-anything-but-str2-str2-str1-str2/122514 "2007-12-08T21:06:38Z")

</div>

A simple question about whether this can be done with regular expressions in Ruby: str = \<\<EOS start between1 between2 between3 between4 end EOS re = /what here?!/ puts str.gsub(re, ‘----------------- zap…

---

## [Sorting Array of accentuated Strings](https://www.ruby-forum.com/t/sorting-array-of-accentuated-strings/122346)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 8\
**Last updated:** [December 8, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/sorting-array-of-accentuated-strings/122346 "2007-12-08T20:16:43Z")

</div>

I’ve done a “self \<=\> anotherString” comparaison which works by itself : class String def \<=\>( aString ) \[blahblahblah\] end end however if i want to sort an Array of Strings, the Array is sorted as usual within Ru…

---

## [Dynamic local vars](https://www.ruby-forum.com/t/dynamic-local-vars/122400)

<div class="topic-metadata">

**Author:** [@Vasyl\_S](https://www.ruby-forum.com/u/Vasyl_S)\
**Replies:** 13\
**Last updated:** [December 8, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/dynamic-local-vars/122400 "2007-12-08T14:17:22Z")

</div>

Hi, I wonder if there is any way to create local variables dynamically, for example, given def foo bar puts x, y end is it possible for bar to somehow create and initialize x and y? Binding doesn’t seem to be mod…

---

## [Ruby Nuby Question](https://www.ruby-forum.com/t/ruby-nuby-question/122462)

<div class="topic-metadata">

**Author:** [@nigama](https://www.ruby-forum.com/u/nigama)\
**Replies:** 2\
**Last updated:** [December 8, 2007, 12:46pm UTC](https://www.ruby-forum.com/t/ruby-nuby-question/122462 "2007-12-08T12:46:02Z")

</div>

Hello, I am just learning Ruby, via several resources (online: Why’s, downloaded PDF’s, and Chris P.'s book “Learn to Program Ruby”). I finished Chris P.'s book and was going back through doing any of the exercises …

---

## [Random users generator](https://www.ruby-forum.com/t/random-users-generator/122416)

<div class="topic-metadata">

**Author:** [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Replies:** 11\
**Last updated:** [December 8, 2007, 9:59am UTC](https://www.ruby-forum.com/t/random-users-generator/122416 "2007-12-08T09:59:23Z")

</div>

Recently I’ve seen a random user generator for Rails on some blog bu I can’t find it now. I need to generate 1 million non-existing emails with associated names :slight\_smile: Could you please recommend a tool?

---

## [At\_exit() Inherited Across fork()](https://www.ruby-forum.com/t/at-exit-inherited-across-fork/122473)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 9\
**Last updated:** [December 8, 2007, 7:44am UTC](https://www.ruby-forum.com/t/at-exit-inherited-across-fork/122473 "2007-12-08T07:44:19Z")

</div>

I’m not saying this is wrong, just clarifying what I am seeing. Is it intended that at\_exit() handlers are inherited by a fork()ed process? For example: at\_exit { puts “Doing something important for #{Process.pid}.” …

---

## [WSO2 WSF/Ruby 1.0.0 - RC2 Released](https://www.ruby-forum.com/t/wso2-wsf-ruby-1-0-0-rc2-released/122498)

<div class="topic-metadata">

**Author:** [@janapriya](https://www.ruby-forum.com/u/janapriya)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 7:36am UTC](https://www.ruby-forum.com/t/wso2-wsf-ruby-1-0-0-rc2-released/122498 "2007-12-08T07:36:10Z")

</div>

WSF/Ruby - 1.0.0-RC WSF(Web Services Framework)/Ruby is the Ruby language extension to WSO2\[http://wso2.com/\] WSF/C \[http://www.wso2.org/projects/wsf/c\]. With this Ruby module, you can write client/service application…

---

## [Free Online Ruby Course Starts Soon](https://www.ruby-forum.com/t/free-online-ruby-course-starts-soon/122493)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 6:10am UTC](https://www.ruby-forum.com/t/free-online-ruby-course-starts-soon/122493 "2007-12-08T06:10:15Z")

</div>

The third batch of the free, online Ruby programming course starts on Monday, 7th Jan. 2008. This course is ideal for those of you who want to complement your skill-set with Ruby, but haven’t quite found the time to …

---

## [How to use split method in ruby](https://www.ruby-forum.com/t/how-to-use-split-method-in-ruby/122414)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 5\
**Last updated:** [December 8, 2007, 4:34am UTC](https://www.ruby-forum.com/t/how-to-use-split-method-in-ruby/122414 "2007-12-08T04:34:20Z")

</div>

hi friends, i have created a onject for string class, like @news = String.new and added contents using @news \>\> somevalue “somevalue” includes some alphabets, numbers, even whitespaces, special characters. now i n…

---

## [Real world viability of 1.9?](https://www.ruby-forum.com/t/real-world-viability-of-1-9/122439)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 2:30am UTC](https://www.ruby-forum.com/t/real-world-viability-of-1-9/122439 "2007-12-08T02:30:33Z")

</div>

Guys, I realize that 1.9 will be a “dev” release, similar to the Linux kernel. I’m curious, though, given the speed improvements, do folks intend to use this for production use? Is it likely that many applications wi…

---

## [Completely dumb iterator question from a newbie](https://www.ruby-forum.com/t/completely-dumb-iterator-question-from-a-newbie/122485)

<div class="topic-metadata">

**Author:** [@StecklyS\_Ron](https://www.ruby-forum.com/u/StecklyS_Ron)\
**Replies:** 2\
**Last updated:** [December 8, 2007, 2:16am UTC](https://www.ruby-forum.com/t/completely-dumb-iterator-question-from-a-newbie/122485 "2007-12-08T02:16:31Z")

</div>

Hi all, So I have a question about iteration. Here’s some code I saw on Ruby on Windows: inbox.Items.each do |message| message.Attachments.each do |attachment| filename = “c:\\attachments\\#{attachment.FileName}” at…

---

## [Rails, htmldoc and cgi](https://www.ruby-forum.com/t/rails-htmldoc-and-cgi/122406)

<div class="topic-metadata">

**Author:** [@Bober](https://www.ruby-forum.com/u/Bober)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 2:07am UTC](https://www.ruby-forum.com/t/rails-htmldoc-and-cgi/122406 "2007-12-08T02:07:11Z")

</div>

Hello, I have some problems with external proces, which is started by rails. I have found something about generate pdf in rails: http://wiki.rubyonrails.org/rails/pages/HowtoGeneratePDFs I would like use htmldoc but…

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

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