# Ruby

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

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

---

## [Re: Question about regular expression](https://www.ruby-forum.com/t/re-question-about-regular-expression/95399)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [January 17, 2006, 9:38am UTC](https://www.ruby-forum.com/t/re-question-about-regular-expression/95399 "2006-01-17T09:38:52Z")

</div>

^ as a first character inside \[\] indicates negation, for example \[^abc\] means a character other then ‘a’, ‘b’ or ‘c’.

---

## [Re: Question about regular expression](https://www.ruby-forum.com/t/re-question-about-regular-expression/62002)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [January 17, 2006, 9:26am UTC](https://www.ruby-forum.com/t/re-question-about-regular-expression/62002 "2006-01-17T09:26:50Z")

</div>

^ means from the beginning of a line ($ - end of line). means that a preceding character or group may be repeated 0 or more times. Gennady.

---

## [JOB: Ruby/Rails Software Engineer, Chicago, IL](https://www.ruby-forum.com/t/job-ruby-rails-software-engineer-chicago-il/52620)

<div class="topic-metadata">

**Author:** [@Beau\_Gould](https://www.ruby-forum.com/u/Beau_Gould)\
**Replies:** 5\
**Last updated:** [January 17, 2006, 8:38am UTC](https://www.ruby-forum.com/t/job-ruby-rails-software-engineer-chicago-il/52620 "2006-01-17T08:38:41Z")

</div>

Details: http://www.superiorss.com/jobs.htm

---

## [Help with some PayPal SOAP code](https://www.ruby-forum.com/t/help-with-some-paypal-soap-code/52612)

<div class="topic-metadata">

**Author:** [@Jonathan\_Dodson](https://www.ruby-forum.com/u/Jonathan_Dodson)\
**Replies:** 1\
**Last updated:** [January 17, 2006, 7:14am UTC](https://www.ruby-forum.com/t/help-with-some-paypal-soap-code/52612 "2006-01-17T07:14:29Z")

</div>

I am having issues with PayPal’s SOAP API layer. I am using Ruby 1.8.3 in Ubuntu Breezy. I downloaded soap4r and used the wsdl2ruby.rb to create ‘defaultDriver.rb’ and other files to map to the PayPal SOAP API. I am…

---

## [Populating long data column with Ruby OCI8](https://www.ruby-forum.com/t/populating-long-data-column-with-ruby-oci8/52631)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [January 17, 2006, 7:08am UTC](https://www.ruby-forum.com/t/populating-long-data-column-with-ruby-oci8/52631 "2006-01-17T07:08:27Z")

</div>

Hi, friends I am back to the list after a while. And I start the reunion with a question ;-). Is there any way to insert a big chunk of data (say, 100K) into a column of type long with Ruby OCI8 or by any other Ruby …

---

## [Nitro + Og 0.27.0 Client code, WebFile, Elements improved, N](https://www.ruby-forum.com/t/nitro-og-0-27-0-client-code-webfile-elements-improved-n/52564)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 5\
**Last updated:** [January 17, 2006, 6:35am UTC](https://www.ruby-forum.com/t/nitro-og-0-27-0-client-code-webfile-elements-improved-n/52564 "2006-01-17T06:35:19Z")

</div>

Dear devs, new versions of Nitro and Og where just released homepage: http://www.nitrohq.com install: gem install nitro download: http://rubyforge.org/projects/nitro/ irc: irc.freenode.net #nitro mailing list: http…

---

## [Errors produced when starting nautilus in a ruby script](https://www.ruby-forum.com/t/errors-produced-when-starting-nautilus-in-a-ruby-script/52629)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [January 17, 2006, 5:26am UTC](https://www.ruby-forum.com/t/errors-produced-when-starting-nautilus-in-a-ruby-script/52629 "2006-01-17T05:26:03Z")

</div>

I have the following line in a script:- proc{nautilus --no-desktop ~/path/to/file &} which produces the following immediately after nautilus is closed- (nautilus:6832): Eel-WARNING \*\*: “nautilus-metafile.c: metafiles”…

---

## [Regex](https://www.ruby-forum.com/t/regex/95291)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 7\
**Last updated:** [January 17, 2006, 4:19am UTC](https://www.ruby-forum.com/t/regex/95291 "2006-01-17T04:19:50Z")

</div>

I’m digging through the Pragmatic Programmers book and had some questions about regex support. Initially they only mention .sub and .gsub. If I wanted to write a regex block using additional flags, say something like…

---

## [Const\_defined? behavior](https://www.ruby-forum.com/t/const-defined-behavior/52548)

<div class="topic-metadata">

**Author:** [@dazuma](https://www.ruby-forum.com/u/dazuma)\
**Replies:** 4\
**Last updated:** [January 17, 2006, 1:24am UTC](https://www.ruby-forum.com/t/const-defined-behavior/52548 "2006-01-17T01:24:41Z")

</div>

Is this the intended behavior of const\_defined? IO::SYNC =\> 4096 IO.const\_defined? :SYNC =\> false It appears that const\_defined? only returns true if the class is the originator of the constant. If the consta…

---

## [Ppp-1.0.0](https://www.ruby-forum.com/t/ppp-1-0-0/95342)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 17, 2006, 1:09am UTC](https://www.ruby-forum.com/t/ppp-1-0-0/95342 "2006-01-17T01:09:33Z")

</div>

Hi, == Abstract ppp' is a powerful version of kernel#p’. It is useful for debugging. : ppp stderr with inspect : pppp stderr with pp : ppm ((\<message|URL:http://www.rubyist.net/~rubikitch/computer/belld/\>)) wit…

---

## ['env ruby -v' returns nothing](https://www.ruby-forum.com/t/env-ruby-v-returns-nothing/52568)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 2\
**Last updated:** [January 17, 2006, 1:09am UTC](https://www.ruby-forum.com/t/env-ruby-v-returns-nothing/52568 "2006-01-17T01:09:33Z")

</div>

Hi everyone, I’'m trying to figure out why rubygems won’t install correctly on this particular RHEL4 box, but it does on others. Obviously, it’s an environment issue, but I can’t track down where. here are some det…

---

## [Compile Ruby9i on Windows](https://www.ruby-forum.com/t/compile-ruby9i-on-windows/52462)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 4\
**Last updated:** [January 16, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/compile-ruby9i-on-windows/52462 "2006-01-16T20:26:24Z")

</div>

Hi, in my company we use Oracle and Windows :-(. Now, I would like at least to start for some quick-and-dirty solutions to use Ruby. Maybe my boss could be convinced it’s worth a closer look. I’m afraid, I don’t suc…

---

## [XMLRPC problem. Can anyone help?](https://www.ruby-forum.com/t/xmlrpc-problem-can-anyone-help/102488)

<div class="topic-metadata">

**Author:** [@Jawaad\_Mahmood](https://www.ruby-forum.com/u/Jawaad_Mahmood)\
**Replies:** 0\
**Last updated:** [January 16, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/xmlrpc-problem-can-anyone-help/102488 "2006-01-16T20:02:25Z")

</div>

Hi everyone, I was working on a small program to contact a third party website and retrieve some classified advertisements. Information must be transmitted to the website in the form of a struct, and returned as a s…

---

## [DANGER ! Ruby-Newbie ahead: How to access binary files](https://www.ruby-forum.com/t/danger-ruby-newbie-ahead-how-to-access-binary-files/52570)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 5\
**Last updated:** [January 16, 2006, 7:14pm UTC](https://www.ruby-forum.com/t/danger-ruby-newbie-ahead-how-to-access-binary-files/52570 "2006-01-16T19:14:03Z")

</div>

Hi, There is a file on my HD, which was written by a C program. The C program wrotes the contents of an array of structures (each array element was made from the same structure) to that file. Since accessing that fil…

---

## [Problems with SRPM of ruby-1.8.4](https://www.ruby-forum.com/t/problems-with-srpm-of-ruby-1-8-4/52544)

<div class="topic-metadata">

**Author:** [@mly](https://www.ruby-forum.com/u/mly)\
**Replies:** 3\
**Last updated:** [January 16, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/problems-with-srpm-of-ruby-1-8-4/52544 "2006-01-16T18:22:46Z")

</div>

I’m building ruby-1.8.4 on CentOS4 (clone of RHEL4) and I ran into a couple of problems. First, the build requires libX11-devel which isn’t available for CentOS4 and doesn’t seem to be needed. Second, the build uses…

---

## [Ruby under cygwin & windows paths](https://www.ruby-forum.com/t/ruby-under-cygwin-windows-paths/52382)

<div class="topic-metadata">

**Author:** [@mojca](https://www.ruby-forum.com/u/mojca)\
**Replies:** 14\
**Last updated:** [January 16, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/ruby-under-cygwin-windows-paths/52382 "2006-01-16T17:37:29Z")

</div>

Hello, I’m using a script located under c:\\mypath\\myscript.rb which has require ‘mylib’ (I have another file c:\\mypath\\mylib.rb.) If I call ruby, the cygwin executable is called (I have no admin rights on the comp…

---

## [Generating combinations from multiple sets](https://www.ruby-forum.com/t/generating-combinations-from-multiple-sets/52543)

<div class="topic-metadata">

**Author:** [@Srinivas\_J](https://www.ruby-forum.com/u/Srinivas_J)\
**Replies:** 2\
**Last updated:** [January 16, 2006, 1:20pm UTC](https://www.ruby-forum.com/t/generating-combinations-from-multiple-sets/52543 "2006-01-16T13:20:48Z")

</div>

Dear all, I have a requirement as below. There are ‘n’ containers of lengths {l\_i}, i = 1,…,n. All these containers are collected into an array. Picking one element at a time from each container, an array has to be c…

---

## [Foxruby codes clarification please!](https://www.ruby-forum.com/t/foxruby-codes-clarification-please/52542)

<div class="topic-metadata">

**Author:** [@mohsena](https://www.ruby-forum.com/u/mohsena)\
**Replies:** 0\
**Last updated:** [January 16, 2006, 6:51am UTC](https://www.ruby-forum.com/t/foxruby-codes-clarification-please/52542 "2006-01-16T06:51:36Z")

</div>

Hello this is a ruby example that present a list of customers form external source (customer.rb) in a fox ruby tutorials: require ‘rubygems’ require\_gem ‘fxruby’ require ‘customer’ include Fox class ClipMainWindow…

---

## [Range#member? Oddity](https://www.ruby-forum.com/t/range-member-oddity/52418)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 42\
**Last updated:** [January 16, 2006, 6:34am UTC](https://www.ruby-forum.com/t/range-member-oddity/52418 "2006-01-16T06:34:24Z")

</div>

I’m not understanding what I am seeing here. Can anyone please explain why the last line of this session gives false as an answer? range = (“1”…“10”) =\> “1”…“10” range.to\_a =\> \[“1”, “2”, “3”, “4”, “5”, “6”, “7”…

---

## [ANN: RubyCLR first drop](https://www.ruby-forum.com/t/ann-rubyclr-first-drop/52423)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 8\
**Last updated:** [January 16, 2006, 4:00am UTC](https://www.ruby-forum.com/t/ann-rubyclr-first-drop/52423 "2006-01-16T04:00:53Z")

</div>

I posted the first drop of my RubyCLR bridge here: http://www.iunknown.com/articles/2006/01/12/first-drop-of-rubyclr There’s more information about it on the blog entry. This is a very early build, but the unit tests…

---

## [Passing functions as arguments](https://www.ruby-forum.com/t/passing-functions-as-arguments/52531)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 2\
**Last updated:** [January 16, 2006, 1:54am UTC](https://www.ruby-forum.com/t/passing-functions-as-arguments/52531 "2006-01-16T01:54:38Z")

</div>

I’m just starting out with ruby. I’m trying to make an array of arrays containing \[a pattern, a string, a function\] Patterns and strings went fine but when I put in a function ruby tries to eval it and complains abou…

---

## [Packing (#62)](https://www.ruby-forum.com/t/packing-62/95121)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 15\
**Last updated:** [January 16, 2006, 12:57am UTC](https://www.ruby-forum.com/t/packing-62/95121 "2006-01-16T00:57:26Z")

</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: …

---

## [Comp.lang.ruby FAQ](https://www.ruby-forum.com/t/comp-lang-ruby-faq/95251)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 15, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/comp-lang-ruby-faq/95251 "2006-01-15T19:31:57Z")

</div>

RUBY NEWSGROUP FAQ – Welcome to comp.lang.ruby! (Revised 2005-4-14) This FAQ contains information for those who want to: learn more about Ruby, and want to post to comp.lang.ruby or to the ruby-lang mail list, or wan…

---

## [Duration between two days](https://www.ruby-forum.com/t/duration-between-two-days/52461)

<div class="topic-metadata">

**Author:** [@cookoo](https://www.ruby-forum.com/u/cookoo)\
**Replies:** 7\
**Last updated:** [January 15, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/duration-between-two-days/52461 "2006-01-15T17:10:54Z")

</div>

According to the Rdoc of Date class, operator ‘-(x)’ is described as: If x is a Date http://www.ruby-doc.org/core/classes/Date.html, return the number of days between the two dates; or, more precisely, how many days …

---

## [Canada on Rails - 15 Speakers To Debut at the First Ruby on](https://www.ruby-forum.com/t/canada-on-rails-15-speakers-to-debut-at-the-first-ruby-on/61516)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 0\
**Last updated:** [January 15, 2006, 1:20pm UTC](https://www.ruby-forum.com/t/canada-on-rails-15-speakers-to-debut-at-the-first-ruby-on/61516 "2006-01-15T13:20:51Z")

</div>

Canada on Rails (http://canadaonrails.com) has just announced that 15 speakers will head up the first ever Ruby on Rails conference in Vancouver, BC on April 13-14th, with two days afterwards for a Workshop held by S…

---

## [Librend 0.4](https://www.ruby-forum.com/t/librend-0-4/95220)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 4\
**Last updated:** [January 15, 2006, 4:55am UTC](https://www.ruby-forum.com/t/librend-0-4/95220 "2006-01-15T04:55:51Z")

</div>

Librend 0.4 Real-time rendering on Ruby Download now! http://rubyforge.org/frs/?group\_id=716 Gracefully degrading functionality! No more installing 6 support libraries just to get a rotating cube going! RMagick supp…

---

## [Ruby / Rails / MySQL/ AJAX project, developer needed (Oasis](https://www.ruby-forum.com/t/ruby-rails-mysql-ajax-project-developer-needed-oasis/95227)

<div class="topic-metadata">

**Author:** [@Kyle\_Cordes](https://www.ruby-forum.com/u/Kyle_Cordes)\
**Replies:** 0\
**Last updated:** [January 15, 2006, 4:22am UTC](https://www.ruby-forum.com/t/ruby-rails-mysql-ajax-project-developer-needed-oasis/95227 "2006-01-15T04:22:48Z")

</div>

Hello. My company (Oasis Digital) wants to hire a developer to create a work time tracking system, using Ruby, Rails, and MySQL. This will be an off-site / outsource project, not a full time position. You can download …

---

## [Why is this a comile error](https://www.ruby-forum.com/t/why-is-this-a-comile-error/52419)

<div class="topic-metadata">

**Author:** [@bimo](https://www.ruby-forum.com/u/bimo)\
**Replies:** 20\
**Last updated:** [January 15, 2006, 1:40am UTC](https://www.ruby-forum.com/t/why-is-this-a-comile-error/52419 "2006-01-15T01:40:07Z")

</div>

I am doing a tutorial from the Thomas~Hansson book and am getting this error: Extracted source (around line #17): 14: \<%= link\_to ‘Add to Cart’, 15: {:action =\> ‘add\_to\_cart’, 16: :id =\> pr…

---

## [Controller issue with rails? (OSX)](https://www.ruby-forum.com/t/controller-issue-with-rails-osx/52483)

<div class="topic-metadata">

**Author:** [@Joseph\_G](https://www.ruby-forum.com/u/Joseph_G)\
**Replies:** 1\
**Last updated:** [January 15, 2006, 12:16am UTC](https://www.ruby-forum.com/t/controller-issue-with-rails-osx/52483 "2006-01-15T00:16:45Z")

</div>

hello, I created a table in MySQL and generated a scaffold against the database with a product named “article” and the controller named “admin”, but when i try to load up the /admin view i get the following stack tra…

---

## [Newbie regex question about \\w](https://www.ruby-forum.com/t/newbie-regex-question-about-w/52482)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 6\
**Last updated:** [January 15, 2006, 12:13am UTC](https://www.ruby-forum.com/t/newbie-regex-question-about-w/52482 "2006-01-15T00:13:44Z")

</div>

I’m trying to parse ruby files to find all the class definitions in the file. For each line in the file, I thought I could use the following to pull out the class name: \\bclass\\b(\\w+)\\b so then $1 would give me the c…

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

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