# Ruby

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

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

---

## [Is Ruby RAILS really suitable for modern Web Development?](https://www.ruby-forum.com/t/is-ruby-rails-really-suitable-for-modern-web-development/51861)

<div class="topic-metadata">

**Author:** [@jules](https://www.ruby-forum.com/u/jules)\
**Replies:** 12\
**Last updated:** [January 10, 2006, 3:36am UTC](https://www.ruby-forum.com/t/is-ruby-rails-really-suitable-for-modern-web-development/51861 "2006-01-10T03:36:09Z")

</div>

I have been reading through RAILS and builing the Depot Application ect. And been very impressed with the RAILS framework. But I cannot help feeling that I seem to be writing a lot of HTML fragements and \<% Ruby inse…

---

## [Rio 0.3.7](https://www.ruby-forum.com/t/rio-0-3-7/89673)

<div class="topic-metadata">

**Author:** [@rio4ruby](https://www.ruby-forum.com/u/rio4ruby)\
**Replies:** 7\
**Last updated:** [January 10, 2006, 3:15am UTC](https://www.ruby-forum.com/t/rio-0-3-7/89673 "2006-01-10T03:15:01Z")

</div>

Announcing Rio 0.3.7 == Overview Rio is a Ruby I/O convenience class wrapping much of the functionality of IO, File and Dir. Rio also uses FileUtils, Tempfile, StringIO, OpenURI, Zlib, and CSV to provide similar func…

---

## [Regexp problem - differences in Perl and Ruby](https://www.ruby-forum.com/t/regexp-problem-differences-in-perl-and-ruby/52013)

<div class="topic-metadata">

**Author:** [@samckayak](https://www.ruby-forum.com/u/samckayak)\
**Replies:** 3\
**Last updated:** [January 10, 2006, 3:08am UTC](https://www.ruby-forum.com/t/regexp-problem-differences-in-perl-and-ruby/52013 "2006-01-10T03:08:59Z")

</div>

I got different results in Perl and Ruby of this regular expression. Can somebody maybe give me a “Ruby Way” solution of this? The output from Perl is what I want. But I’m currently programming this is Ruby. In Per…

---

## [Simple match of items in 2 arrays](https://www.ruby-forum.com/t/simple-match-of-items-in-2-arrays/51929)

<div class="topic-metadata">

**Author:** [@Charles\_LSSnyder](https://www.ruby-forum.com/u/Charles_LSSnyder)\
**Replies:** 6\
**Last updated:** [January 10, 2006, 2:38am UTC](https://www.ruby-forum.com/t/simple-match-of-items-in-2-arrays/51929 "2006-01-10T02:38:51Z")

</div>

Hi Inexperienced ruby user question: I have 2 large csv files: Zipdata = basically a frequency table of zipcodes: 02115, 10 64108, 9 99234, 8 etc Ziplookup (ziplu) = several column table of data assoc with z…

---

## [Case question](https://www.ruby-forum.com/t/case-question/94874)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 4\
**Last updated:** [January 10, 2006, 1:44am UTC](https://www.ruby-forum.com/t/case-question/94874 "2006-01-10T01:44:41Z")

</div>

Hello, I am a little confused irb(main):165:0\* case nil.class irb(main):166:1\> when NilClass irb(main):167:1\> puts “hier” irb(main):168:1\> when Array irb(main):169:1\> puts “dort” irb(main):170:1\> else irb(main):1…

---

## [Iterator Fu Failing Me](https://www.ruby-forum.com/t/iterator-fu-failing-me/94638)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 37\
**Last updated:** [January 10, 2006, 1:29am UTC](https://www.ruby-forum.com/t/iterator-fu-failing-me/94638 "2006-01-10T01:29:35Z")

</div>

I have a group of classes, all implementing a parse?() class method. Calling parse?(token) will return the constructed object, if it can be parsed by this class, or false otherwise. I want to run a bunch of tokens thr…

---

## [E-mail](https://www.ruby-forum.com/t/e-mail/94856)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 7\
**Last updated:** [January 10, 2006, 1:23am UTC](https://www.ruby-forum.com/t/e-mail/94856 "2006-01-10T01:23:33Z")

</div>

how to send e-mail with ruby on rails ?

---

## [Module\_eval: create method that contains value passed to it?](https://www.ruby-forum.com/t/module-eval-create-method-that-contains-value-passed-to-it/94666)

<div class="topic-metadata">

**Author:** [@henrik](https://www.ruby-forum.com/u/henrik)\
**Replies:** 3\
**Last updated:** [January 10, 2006, 1:23am UTC](https://www.ruby-forum.com/t/module-eval-create-method-that-contains-value-passed-to-it/94666 "2006-01-10T01:23:33Z")

</div>

This is a Rails example, but I think the problem is a general Ruby matter. I am using class\_eval within a class method, foobar(), to have it create an instance method, get\_foobar(). I am passing a value (“testing test…

---

## [Email Address Regex](https://www.ruby-forum.com/t/email-address-regex/89188)

<div class="topic-metadata">

**Author:** [@lukfugl](https://www.ruby-forum.com/u/lukfugl)\
**Replies:** 29\
**Last updated:** [January 10, 2006, 1:02am UTC](https://www.ruby-forum.com/t/email-address-regex/89188 "2006-01-10T01:02:25Z")

</div>

On 1/3/06, Dan K. removed\_email\_address@domain.invalid wrote: Here’s a rails example for validating email addresses. validates\_format\_of :login, :with =\> / ^\[-^!$#%&'+/=?\`{|}~.\\w\]+ @a-zA-Z0-9 (.a-zA-Z0-9\*)+$/x, :m…

---

## [Dice Roller (#61) We don't need no steenking leexer/parsers](https://www.ruby-forum.com/t/dice-roller-61-we-dont-need-no-steenking-leexer-parsers/51888)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 4\
**Last updated:** [January 9, 2006, 11:43pm UTC](https://www.ruby-forum.com/t/dice-roller-61-we-dont-need-no-steenking-leexer-parsers/51888 "2006-01-09T23:43:51Z")

</div>

Leexer/parsers? We ain’t got no Leexer/parsers. We don’t need no Leexer/parsers. I don’t have to show you any steenking Leexer/parser. Just call eval and use Ruby’s fine lexer/parser (apologies to Mel Brooks, John H…

---

## [Minimal Ruby distribution](https://www.ruby-forum.com/t/minimal-ruby-distribution/51987)

<div class="topic-metadata">

**Author:** [@Lois\_M](https://www.ruby-forum.com/u/Lois_M)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/minimal-ruby-distribution/51987 "2006-01-09T23:34:47Z")

</div>

I have the Ruby download and have installed it on my machine. I have created ruby files and templates. I want to have other people run my ruby files and use my ruby templates, but I do not want to require the other p…

---

## [\- Requesting Comments for Process Definition and Presentatio](https://www.ruby-forum.com/t/requesting-comments-for-process-definition-and-presentatio/88970)

<div class="topic-metadata">

**Author:** [@Ilias\_L](https://www.ruby-forum.com/u/Ilias_L)\
**Replies:** 22\
**Last updated:** [January 9, 2006, 11:16pm UTC](https://www.ruby-forum.com/t/requesting-comments-for-process-definition-and-presentatio/88970 "2006-01-09T23:16:42Z")

</div>

comp.lang.python / comp.lang.ruby I would like to ask for feedback on the Process Definition and Presentation. Essentially this is exactly what I’ve myself specialized to do. But I cannot apply the process to my …

---

## [Rubydoc.org](https://www.ruby-forum.com/t/rubydoc-org/94827)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [January 9, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/rubydoc-org/94827 "2006-01-09T20:35:46Z")

</div>

Does anyone know the status of Rubydoc.org? I haven’t been able to get it to load over the last week or so. Even before then I only seemed to have a 50/50 shot at actually reaching the site. -Matt

---

## [DRB server](https://www.ruby-forum.com/t/drb-server/94799)

<div class="topic-metadata">

**Author:** [@alexmaster](https://www.ruby-forum.com/u/alexmaster)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/drb-server/94799 "2006-01-09T20:26:42Z")

</div>

Hi! My DRB server should print a message if a new client has connected, maybe also with some details of this new client (IP or something like this). Is there a function that could help my with this problem? ALEX

---

## [Splitting strings on spaces, unless inside quotes](https://www.ruby-forum.com/t/splitting-strings-on-spaces-unless-inside-quotes/51790)

<div class="topic-metadata">

**Author:** [@rjlyders](https://www.ruby-forum.com/u/rjlyders)\
**Replies:** 16\
**Last updated:** [January 9, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/splitting-strings-on-spaces-unless-inside-quotes/51790 "2006-01-09T20:23:42Z")

</div>

I want to split a string into words, but group quoted words together such that… some words “some quoted text” some more words would get split up into: \[“some”, “words”, “some quoted text”, “some”, “more”, “words”\] S…

---

## [Newbie question about threads and gets](https://www.ruby-forum.com/t/newbie-question-about-threads-and-gets/51883)

<div class="topic-metadata">

**Author:** [@jacekolszak](https://www.ruby-forum.com/u/jacekolszak)\
**Replies:** 7\
**Last updated:** [January 9, 2006, 8:20pm UTC](https://www.ruby-forum.com/t/newbie-question-about-threads-and-gets/51883 "2006-01-09T20:20:16Z")

</div>

Hi everyone… I’ve a simple question - how can I write an application with two threads, where first thread reads the user input. I want both threads to run SIMULTANEOUSLY. So … here is my code: a=Thread.new do $stdi…

---

## [Ruby and Opengl samples](https://www.ruby-forum.com/t/ruby-and-opengl-samples/51972)

<div class="topic-metadata">

**Author:** [@Robert\_Maus](https://www.ruby-forum.com/u/Robert_Maus)\
**Replies:** 0\
**Last updated:** [January 9, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/ruby-and-opengl-samples/51972 "2006-01-09T19:58:29Z")

</div>

Hello, i have installed ruby 1.8.2.15 with the one Click installer on my PC. when I start the Script tess.rb becuase tess.rbw from E:\\ruby\\samples\\opengl comes an error: Microsoft Viusall C++ Runtime Libary Runtime…

---

## [Re: Ruby Rails - serving image files](https://www.ruby-forum.com/t/re-ruby-rails-serving-image-files/60547)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [January 9, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/re-ruby-rails-serving-image-files/60547 "2006-01-09T18:28:51Z")

</div>

Hi, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription and po…

---

## [Do you run a Ruby user group, SIG, or conference?](https://www.ruby-forum.com/t/do-you-run-a-ruby-user-group-sig-or-conference/94782)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 6:04pm UTC](https://www.ruby-forum.com/t/do-you-run-a-ruby-user-group-sig-or-conference/94782 "2006-01-09T18:04:36Z")

</div>

Red Letter: The Ruby Journal will feature a Community page dedicated to announcing Ruby events, user groups, SIGs, book and product releases, conferences, and more. If you would like to place an announcement on the Co…

---

## [Hash as paramerter container](https://www.ruby-forum.com/t/hash-as-paramerter-container/51939)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 3\
**Last updated:** [January 9, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/hash-as-paramerter-container/51939 "2006-01-09T17:58:30Z")

</div>

Hello all, I am looking for Ruby equivalent for this Python Code def foo(a,b,c): … print "a is ", a … print "b is ", b … print "c is ", c … h = {“c”:3, “a”:1, “b”:2} foo \<function foo at 0x403…

---

## [Re: Dice Roller (#61) We don't need no steenking leexer/pars](https://www.ruby-forum.com/t/re-dice-roller-61-we-dont-need-no-steenking-leexer-pars/51942)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/re-dice-roller-61-we-dont-need-no-steenking-leexer-pars/51942 "2006-01-09T17:03:26Z")

</div>

Hi, first: you don’t need the ‘to\_a’ second: (0…5).inject{|x,y| print y, ’ '} puts (1…5).inject(0){|x,y| print y, ’ '} puts output: 1 2 3 4 5 1 2 3 4 5 If you provide no parameter to inject it will give you the …

---

## [Compiling from the svn repository](https://www.ruby-forum.com/t/compiling-from-the-svn-repository/94649)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 9, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/compiling-from-the-svn-repository/94649 "2006-01-09T16:45:14Z")

</div>

Ok, so this might be a stupid question, but I just got the latest ruby from the cvs repo and I can’t find ‘configure’ in there ? So how am I suppose to compile ? I am puzzled… Note that I got the src from cvs using: …

---

## ["Living Dangerous" stage 2, summarizing ideas](https://www.ruby-forum.com/t/living-dangerous-stage-2-summarizing-ideas/60362)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 11\
**Last updated:** [January 9, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/living-dangerous-stage-2-summarizing-ideas/60362 "2006-01-09T16:36:12Z")

</div>

Okay, the thread on “Why Living Dangerous can be A Good Thing” is going quite well. I’d like to start drafting up notes for my article, so I’ve put them on a wiki page. http://tinyurl.com/alaxa Feel free to add sect…

---

## [Differing signedness warnings when compiling ruby-odbc](https://www.ruby-forum.com/t/differing-signedness-warnings-when-compiling-ruby-odbc/51948)

<div class="topic-metadata">

**Author:** [@Ben\_Gribaudo](https://www.ruby-forum.com/u/Ben_Gribaudo)\
**Replies:** 0\
**Last updated:** [January 9, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/differing-signedness-warnings-when-compiling-ruby-odbc/51948 "2006-01-09T16:24:07Z")

</div>

Hi, When compiling ruby-odbc 0.996 on Ubuntu Breezy, gcc outputs a number of warnings that “pointer targets in passing argument x of y differ in signedness”. (see output below) Should these warnings concern me? Is th…

---

## [About Tcl/Tk](https://www.ruby-forum.com/t/about-tcl-tk/94800)

<div class="topic-metadata">

**Author:** [@Surgeon](https://www.ruby-forum.com/u/Surgeon)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 3:05pm UTC](https://www.ruby-forum.com/t/about-tcl-tk/94800 "2006-01-09T15:05:37Z")

</div>

Hi, In order to build GUIs with Ruby, should I learn Tk? By the way, I have tried to find Tk tutorials and I have seen that all of them start with Tcl. Are Tcl and Tk “inseparable” things? If I want to use/learn Tk, …

---

## [Making a count of unique elements in an array](https://www.ruby-forum.com/t/making-a-count-of-unique-elements-in-an-array/51919)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 11:13am UTC](https://www.ruby-forum.com/t/making-a-count-of-unique-elements-in-an-array/51919 "2006-01-09T11:13:50Z")

</div>

Given an array, I need to produce a two-dimensional resulting array where each pair consists of a unique element from the original array and the number of times that element appears. I found two ways to do this. Is o…

---

## [Regular expressions for beginners](https://www.ruby-forum.com/t/regular-expressions-for-beginners/51818)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 8\
**Last updated:** [January 9, 2006, 10:10am UTC](https://www.ruby-forum.com/t/regular-expressions-for-beginners/51818 "2006-01-09T10:10:31Z")

</div>

There’s been a number of questions about regular expressions in recent days. The Ruby U.'s Guide has a small script to highlight regular expression patterns. I found it quite helpful for visualizing regex’s, especial…

---

## [DRb troubles, cannot Marshal or proxy objects successfully](https://www.ruby-forum.com/t/drb-troubles-cannot-marshal-or-proxy-objects-successfully/94802)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 9, 2006, 10:07am UTC](https://www.ruby-forum.com/t/drb-troubles-cannot-marshal-or-proxy-objects-successfully/94802 "2006-01-09T10:07:29Z")

</div>

I’ve been trying for hours trying ot get my DRb session store working. I can get it to work in a gerneralized way, but I need to add some validation to check the state of the session data, and keep track of it, in cas…

---

## [Gem installation](https://www.ruby-forum.com/t/gem-installation/51873)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 1\
**Last updated:** [January 9, 2006, 9:55am UTC](https://www.ruby-forum.com/t/gem-installation/51873 "2006-01-09T09:55:22Z")

</div>

I see that when I install a gem, it gets installed under /usr/local/lib/ruby/gems/1.8/gems/{gem-name}. What does the 1.8 represent? Is it the version of Ruby required to use the gem? Depending on what other gems I in…

---

## [PDF Library - Reading the PDF Document](https://www.ruby-forum.com/t/pdf-library-reading-the-pdf-document/51759)

<div class="topic-metadata">

**Author:** [@Chintakrindi\_Meghan](https://www.ruby-forum.com/u/Chintakrindi_Meghan)\
**Replies:** 2\
**Last updated:** [January 9, 2006, 9:30am UTC](https://www.ruby-forum.com/t/pdf-library-reading-the-pdf-document/51759 "2006-01-09T09:30:58Z")

</div>

Hi Thanks for everyone. I downloaded the PDF library and going through the documentation. Most of the documentation mentioned , how to create the documents. Can anyone tell me the which method to use to read the PDF …

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

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