# Ruby

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

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

---

## [Add files to array matching pattern](https://www.ruby-forum.com/t/add-files-to-array-matching-pattern/116381)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 7\
**Last updated:** [October 5, 2007, 5:41am UTC](https://www.ruby-forum.com/t/add-files-to-array-matching-pattern/116381 "2007-10-05T05:41:04Z")

</div>

Hi all, I wanted to simply add files to an array. The files must match a pattern. I’m just starting with ruby so I really have to find my way in it. I tried something like: dir = “/home/leon/images” test = Array.new …

---

## [Whats going on!?!?](https://www.ruby-forum.com/t/whats-going-on/116119)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 12\
**Last updated:** [October 5, 2007, 4:46am UTC](https://www.ruby-forum.com/t/whats-going-on/116119 "2007-10-05T04:46:23Z")

</div>

Ok so I was programming perfectly fine earlier yesterday, then i got this idea about instead of going through cmd to open my program, why not just chose cmd as the program to open it?.. bad idea i got this weird acces…

---

## [Regular Expresion Error?](https://www.ruby-forum.com/t/regular-expresion-error/115896)

<div class="topic-metadata">

**Author:** [@Filipe](https://www.ruby-forum.com/u/Filipe)\
**Replies:** 4\
**Last updated:** [October 5, 2007, 3:36am UTC](https://www.ruby-forum.com/t/regular-expresion-error/115896 "2007-10-05T03:36:40Z")

</div>

Hello all, According to the Regular Expressions section of the following ruby guide: Programming Ruby: The Pragmatic Programmer's Guide, the piece of code bellow should have returned “He\<\>o”, instead of “No match”. …

---

## [Mapping an object](https://www.ruby-forum.com/t/mapping-an-object/116383)

<div class="topic-metadata">

**Author:** [@hbotadra](https://www.ruby-forum.com/u/hbotadra)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 3:07am UTC](https://www.ruby-forum.com/t/mapping-an-object/116383 "2007-10-05T03:07:58Z")

</div>

Hi, This is Harnish. I am looking for a way to map an object. Ex: Instead of doing, resultset = A.get\_arr result = resultset\[0\].my\_obj Can I combine the 2 statements into 1 when I know that my A.get\_arr is sure t…

---

## [\[n00b\] Need a good reference for var-types/string-esc, etc](https://www.ruby-forum.com/t/n00b-need-a-good-reference-for-var-types-string-esc-etc/116386)

<div class="topic-metadata">

**Author:** [@olie](https://www.ruby-forum.com/u/olie)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 3:06am UTC](https://www.ruby-forum.com/t/n00b-need-a-good-reference-for-var-types-string-esc-etc/116386 "2007-10-05T03:06:13Z")

</div>

One of the problems with Ruby being so popular is that any google search with “Ruby tutorial” or similar turns up about 8-bazillion pages, and they all want you to dive right in to see how easy everything is. …Which i…

---

## [RMagick 1.15.9 for Win32](https://www.ruby-forum.com/t/rmagick-1-15-9-for-win32/116385)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 2:32am UTC](https://www.ruby-forum.com/t/rmagick-1-15-9-for-win32/116385 "2007-10-05T02:32:56Z")

</div>

After about a month in beta and having received no complaints, I’ve promoted the RMagick 1.15.9 Win32 gem to production status. If you’ve already installed the beta you DO NOT need to install the production release. T…

---

## [MasterView 0.3.4 Rails-optimized (x)html template engine](https://www.ruby-forum.com/t/masterview-0-3-4-rails-optimized-x-html-template-engine/116339)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 1:15am UTC](https://www.ruby-forum.com/t/masterview-0-3-4-rails-optimized-x-html-template-engine/116339 "2007-10-05T01:15:48Z")

</div>

= MasterView - Rails-optimized (x)html friendly template engine MasterView is a template engine plugin that provides another option to the existing rails view templates (rhtml and rxml). This template engine has all t…

---

## [\[ANN\] Intro to JRuby @ Vancouver Ruby/Rails Meetup - Oct/9 @ 7pm](https://www.ruby-forum.com/t/ann-intro-to-jruby-vancouver-ruby-rails-meetup-oct-9-7pm/116374)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/ann-intro-to-jruby-vancouver-ruby-rails-meetup-oct-9-7pm/116374 "2007-10-04T23:26:27Z")

</div>

Hello, Just to let you know that the Vancouver Ruby/Rails User Group will host a talk by Teera Kanokkanjanarat introducing JRuby. The talk agenda reads: What is JRuby What’s in it for me? (why JRuby) Deployment opti…

---

## [Rails Developer](https://www.ruby-forum.com/t/rails-developer/116274)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 11\
**Last updated:** [October 4, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/rails-developer/116274 "2007-10-04T23:15:18Z")

</div>

Copious Creative is an award-winning creative agency specializing in effective brand, interactive, and marketing campaigns. Along with that, we’re also a Ruby/Rails/MySQL shop that works in small teams to build applic…

---

## [JRuby RoR scaling](https://www.ruby-forum.com/t/jruby-ror-scaling/116369)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/jruby-ror-scaling/116369 "2007-10-04T23:05:57Z")

</div>

Greetings, I’m starting up a project, and I’d like to use Ruby on Rails, and I’m curious about how well JRuby scales. I’ve read what I could find about it, and it looks like it can scale well, but may be resource-hung…

---

## [Creating a StringIO object](https://www.ruby-forum.com/t/creating-a-stringio-object/116202)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 2\
**Last updated:** [October 4, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/creating-a-stringio-object/116202 "2007-10-04T20:50:48Z")

</div>

Hi all, can any body tell me how to create a StringIO object from an existing string object. my code str = StringIO.new results an error saying that “uninitialized constant StringIO(NameError)” What i sthe problem …

---

## [64-bit Linux Ruby Problem - Segmentation Fault](https://www.ruby-forum.com/t/64-bit-linux-ruby-problem-segmentation-fault/116036)

<div class="topic-metadata">

**Author:** [@tinney](https://www.ruby-forum.com/u/tinney)\
**Replies:** 3\
**Last updated:** [October 4, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/64-bit-linux-ruby-problem-segmentation-fault/116036 "2007-10-04T20:44:25Z")

</div>

I’ve been running a basic ruby/rails CRUD application on a 32-bit Red Hat Linux machine. It works well on several 32-bit test/dev boxes. When I move it over to a 64-bit box it runs for a few minutes, then I start get…

---

## [Castor-like Package for Ruby](https://www.ruby-forum.com/t/castor-like-package-for-ruby/116267)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 3\
**Last updated:** [October 4, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/castor-like-package-for-ruby/116267 "2007-10-04T20:04:28Z")

</div>

Hello all, I come from a Java background, where lately I’ve been using Castor to generate Java objects from an XML schema and marshal/unmarshal XML documents using the generated Java objects. Is there a Ruby package …

---

## [Gsub in Probable Iterations (#141)](https://www.ruby-forum.com/t/gsub-in-probable-iterations-141/116353)

<div class="topic-metadata">

**Author:** [@Roland\_Cruesemann](https://www.ruby-forum.com/u/Roland_Cruesemann)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/gsub-in-probable-iterations-141/116353 "2007-10-04T18:46:54Z")

</div>

I think gsub(/(\\d)(\\d)/, ‘\\1,\\2’) doesn’t work. It should be gsub(/(\\d)(?=\\d)/, ‘\\1,’) instead.

---

## [Opinion on a simple method](https://www.ruby-forum.com/t/opinion-on-a-simple-method/116291)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 14\
**Last updated:** [October 4, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/opinion-on-a-simple-method/116291 "2007-10-04T17:45:54Z")

</div>

I am trying to find the better way to do things ruby style. I needed to make a method that would read in a file of movie titles and capitalize each word. “this is a string”.capitalize just gets the first word, so I d…

---

## [Generate texture](https://www.ruby-forum.com/t/generate-texture/116295)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/generate-texture/116295 "2007-10-04T16:21:55Z")

</div>

I am trying to generate a texture. When I execute: @texture = glGenTextures(1).first I get the following error: \[BUG\] Bus Error ruby 1.8.4 (2005-12-24) \[i686-darwin8.8.1\] Any help would be great. Thanks. Tom Belo…

---

## [File scope variable](https://www.ruby-forum.com/t/file-scope-variable/116171)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 6\
**Last updated:** [October 4, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/file-scope-variable/116171 "2007-10-04T16:20:44Z")

</div>

I tried to find a way to have a variable that has a file scope. A variable that I can access in each function of each class but which is private to my .rb file. Does anybody has a idea?

---

## [Newbie - mechanize multiple cookies problem with form login](https://www.ruby-forum.com/t/newbie-mechanize-multiple-cookies-problem-with-form-login/116330)

<div class="topic-metadata">

**Author:** [@friofool](https://www.ruby-forum.com/u/friofool)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/newbie-mechanize-multiple-cookies-problem-with-form-login/116330 "2007-10-04T15:01:48Z")

</div>

hi, i’m just starting to work with this incredible tool… but i got a first problem with the login process i’m logging on my app like this : @agent = WWW::Mechanize.new { |a| a.log = Logger.new(“mech.log”) } @agent.…

---

## [Probable Iterations (#141)](https://www.ruby-forum.com/t/probable-iterations-141/116321)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/probable-iterations-141/116321 "2007-10-04T14:15:14Z")

</div>

As a couple of solvers noted, this is an easy problem that’s really just about counting. In fact, you can solve the entire problem without ever rolling a die. The trick is really in how you think about the problem. …

---

## [A newbie question~ about 2 dimension hash? really appreciate~](https://www.ruby-forum.com/t/a-newbie-question-about-2-dimension-hash-really-appreciate/116304)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [October 4, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/a-newbie-question-about-2-dimension-hash-really-appreciate/116304 "2007-10-04T13:55:56Z")

</div>

I want to create a 2 dimension hash, and init it like A B C D E A 0 0 0 0 0 B 0 0 0 0 0 C 0 0 0 0 0 D 0 0 0 0 0 E 0 0 0 0 0 then I can set it by ARGV for example, …

---

## [PDF::SimpleTable](https://www.ruby-forum.com/t/pdf-simpletable/116310)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 6\
**Last updated:** [October 4, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/pdf-simpletable/116310 "2007-10-04T13:47:43Z")

</div>

Is it possible to have a table inside another table in PDF.

---

## [How to list all Child Processes of an Applikation](https://www.ruby-forum.com/t/how-to-list-all-child-processes-of-an-applikation/116299)

<div class="topic-metadata">

**Author:** [@janc](https://www.ruby-forum.com/u/janc)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/how-to-list-all-child-processes-of-an-applikation/116299 "2007-10-04T12:27:59Z")

</div>

In my Ruby Applikation I start a windows-batch-script which then starts apache tomcat. As i need the output of that programm i run it with “IO.popen(cmd)” Problems occur, when i now try to stop or kill that tomcat aga…

---

## [A Must Read!](https://www.ruby-forum.com/t/a-must-read/116194)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [October 4, 2007, 11:22am UTC](https://www.ruby-forum.com/t/a-must-read/116194 "2007-10-04T11:22:55Z")

</div>

I have found an excellent resource on Object Oriented Programming. http://technical-talk.com/SoftDev/OOP/OOPBASICS.asp

---

## [Searching through a sorted array](https://www.ruby-forum.com/t/searching-through-a-sorted-array/116181)

<div class="topic-metadata">

**Author:** [@FireAphis](https://www.ruby-forum.com/u/FireAphis)\
**Replies:** 15\
**Last updated:** [October 4, 2007, 10:44am UTC](https://www.ruby-forum.com/t/searching-through-a-sorted-array/116181 "2007-10-04T10:44:13Z")

</div>

Hello, I have a very big array of objects sorted by one of its numeric data members. During the flow of my application I need occasionally to get all the elements in a specific range. I could use find\_all partition =…

---

## [Creating an alphabetical index](https://www.ruby-forum.com/t/creating-an-alphabetical-index/116298)

<div class="topic-metadata">

**Author:** [@iva10](https://www.ruby-forum.com/u/iva10)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 10:27am UTC](https://www.ruby-forum.com/t/creating-an-alphabetical-index/116298 "2007-10-04T10:27:50Z")

</div>

I would like to be able to create an alphabetical index that accesses words in the database and displays them for the user. Can anyone please tell me how to go about it?

---

## [Question relations tables](https://www.ruby-forum.com/t/question-relations-tables/116203)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [October 4, 2007, 10:15am UTC](https://www.ruby-forum.com/t/question-relations-tables/116203 "2007-10-04T10:15:23Z")

</div>

hi, I have a user-table described as below. That is filled in trough the sign-in form and available through the edit-method. Field | Type | Null | Key | Default | Extra | ±----------------±…

---

## [IO, File Implementations](https://www.ruby-forum.com/t/io-file-implementations/115961)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 6\
**Last updated:** [October 4, 2007, 9:31am UTC](https://www.ruby-forum.com/t/io-file-implementations/115961 "2007-10-04T09:31:05Z")

</div>

What’s the status on the IO and File classes? Is that something you would take contributions on? I would rate that as a pretty high barrier to entry. Having File would make lots of useful scripts possible. -Eric

---

## [Probable Iterations (#141)](https://www.ruby-forum.com/t/probable-iterations-141/115788)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 15\
**Last updated:** [October 4, 2007, 6:00am UTC](https://www.ruby-forum.com/t/probable-iterations-141/115788 "2007-10-04T06:00:36Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Do ruby 1.9 require C99 compliant compiler?](https://www.ruby-forum.com/t/do-ruby-1-9-require-c99-compliant-compiler/116289)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 5:53am UTC](https://www.ruby-forum.com/t/do-ruby-1-9-require-c99-compliant-compiler/116289 "2007-10-04T05:53:36Z")

</div>

e$BLZB\<$G$9!#e(B e$B$^$D$b$H$5$s%3%\_%C%H$N0J2\<$NFsE@$N=$@5$G!"e(BC99e$B$G$J$$e(BCe$B%3%s%Q%$%i$Ge(B e$B%3%s%Q%$%k$G$-$J$/$J$C$F$$$^$9!#e(B http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/array.c?r1=13588&r2=13590 r…

---

## [wxRuby: MemoryDC problems](https://www.ruby-forum.com/t/wxruby-memorydc-problems/116287)

<div class="topic-metadata">

**Author:** [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 5:40am UTC](https://www.ruby-forum.com/t/wxruby-memorydc-problems/116287 "2007-10-04T05:40:44Z")

</div>

I’m trying to put together a quick test of buffered animation with WxRuby, but I’m encountering a fair amount of trouble… I’m drawing to a Wx::Bitmap first, then using Wx::DC#draw\_bitmap to copy it to a Wx::Window. …

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

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