# Ruby

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

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

---

## [Execution problem in ruby](https://www.ruby-forum.com/t/execution-problem-in-ruby/111778)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/execution-problem-in-ruby/111778 "2007-08-10T19:16:11Z")

</div>

how to execute a ruby program which is inside a string ? for example ex.rb puts “start " temp=”(1…10).each do |count| print count end " puts “end” how to execute the source code in temp(String object)

---

## [Invalid string for Date.parse](https://www.ruby-forum.com/t/invalid-string-for-date-parse/111524)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 8\
**Last updated:** [August 10, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/invalid-string-for-date-parse/111524 "2007-08-10T18:49:08Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B \[ruby-core:11860\]e$B$K$h$l$P!"e(B1.8.6(e$B$He(Btrunk)e$B$G$Oe(B % ruby -r date -e ‘p Date.parse(“junk”).to\_s’ “2007-06-01” e$B$H$J$j$^$9!#$I$&$b!“e(Bjune$B$G$O$8$^$C$F$$$k$N$Ge(B6e$B…

---

## [ARGF.each\_byte yields a string](https://www.ruby-forum.com/t/argf-each-byte-yields-a-string/111777)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/argf-each-byte-yields-a-string/111777 "2007-08-10T18:45:08Z")

</div>

ARGF.each\_byte e$B$Oe(B String objecte$B$re(B yield e$B$9$k$h$&$G$9!#e(B % echo|./ruby -ve ‘ARGF.each\_byte {|b| p b }’ ruby 1.9.0 (2007-08-11 patchlevel 0) \[i686-linux\] “\\n”

---

## [Simple cipher solver, finding all possible key combinations](https://www.ruby-forum.com/t/simple-cipher-solver-finding-all-possible-key-combinations/111758)

<div class="topic-metadata">

**Author:** [@Aric\_C](https://www.ruby-forum.com/u/Aric_C)\
**Replies:** 6\
**Last updated:** [August 10, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/simple-cipher-solver-finding-all-possible-key-combinations/111758 "2007-08-10T17:55:04Z")

</div>

I am trying to find every possible combination of the letters of the alphabet to create a file by a program to solve simple replacement ciphers. There shouldn’t be any repeats of letters in the combination (i.e. a can…

---

## [Open link/DL file](https://www.ruby-forum.com/t/open-link-dl-file/111606)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 6\
**Last updated:** [August 10, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/open-link-dl-file/111606 "2007-08-10T16:24:21Z")

</div>

I was wondering what the command is for Ruby to DL files, and or open links on the internet?My favorite radio station has this link that feeds you the live radio via- real player or windows media player. My goal is t…

---

## [RubyDBI install fails during make](https://www.ruby-forum.com/t/rubydbi-install-fails-during-make/111663)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/rubydbi-install-fails-during-make/111663 "2007-08-10T14:20:44Z")

</div>

I downloaded Ruby DBI 0.1.1 from Rubyforge. I extracted it into a sub-folder in My Documents where I store setup files. I ran the following: ruby setup.rb config ruby setup.rb install however, this fails and I see …

---

## [Problem with rubygem](https://www.ruby-forum.com/t/problem-with-rubygem/111077)

<div class="topic-metadata">

**Author:** [@austeretown](https://www.ruby-forum.com/u/austeretown)\
**Replies:** 4\
**Last updated:** [August 10, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/problem-with-rubygem/111077 "2007-08-10T13:36:26Z")

</div>

Hello every body, I tried to install ruby and rubygem. So I have downloaded : ruby-1.8.5-p2 and rubygem-0.9.4 no problem for their installation. But when I tried to do: gem install rails --include-dependencies, i have …

---

## [Ruby app on a CD](https://www.ruby-forum.com/t/ruby-app-on-a-cd/111499)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 12\
**Last updated:** [August 10, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/ruby-app-on-a-cd/111499 "2007-08-10T13:34:26Z")

</div>

I have a client who wants to make an interactive CD to accompany a book. By interactive I mean search, hyperlink, etc. content from the book, not like homestarrunner.com or pbskids.org or something. The application is…

---

## [WEBRick: Problem to get the multipart/form-data decoded corr](https://www.ruby-forum.com/t/webrick-problem-to-get-the-multipart-form-data-decoded-corr/111664)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 5\
**Last updated:** [August 10, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/webrick-problem-to-get-the-multipart-form-data-decoded-corr/111664 "2007-08-10T13:28:24Z")

</div>

Hi list I have to admit that I feel this is a stupid question, but two days of Web search(1) and trials with WEBRick and CGI did not bring me any closer. Here is the problem: I am uploading files to my Webrick serve…

---

## [Newbie question: how to seek in a file](https://www.ruby-forum.com/t/newbie-question-how-to-seek-in-a-file/111739)

<div class="topic-metadata">

**Author:** [@ak756](https://www.ruby-forum.com/u/ak756)\
**Replies:** 7\
**Last updated:** [August 10, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/newbie-question-how-to-seek-in-a-file/111739 "2007-08-10T13:08:22Z")

</div>

Hi I want to find a string in a text file, then read some bytes data after the position of this string. Would anybody kindly help to tell me how to do? Thanks in advance.

---

## [Converting xml to MYSQL that reflects the "tag's embedding"?](https://www.ruby-forum.com/t/converting-xml-to-mysql-that-reflects-the-tags-embedding/111702)

<div class="topic-metadata">

**Author:** [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Replies:** 4\
**Last updated:** [August 10, 2007, 11:23am UTC](https://www.ruby-forum.com/t/converting-xml-to-mysql-that-reflects-the-tags-embedding/111702 "2007-08-10T11:23:01Z")

</div>

Dear Ruby guru’s, Can any of you tell me how to convert xml to SQL? The tags of the text I need to convert are linguistic in nature. E.g. \</ sentence\> and the like. What I need, is a database that somehow reflects t…

---

## [Standard IO directory surf](https://www.ruby-forum.com/t/standard-io-directory-surf/111686)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 5\
**Last updated:** [August 10, 2007, 10:20am UTC](https://www.ruby-forum.com/t/standard-io-directory-surf/111686 "2007-08-10T10:20:53Z")

</div>

how would i go about surfing a whole directory instead of using a Dir.glob(\*/\*\*) Basically how would i do it using the Find method. I need to surf the entire file system and pull up my total number of files that arnt …

---

## [RubyGems Problems](https://www.ruby-forum.com/t/rubygems-problems/111729)

<div class="topic-metadata">

**Author:** [@soliloquial](https://www.ruby-forum.com/u/soliloquial)\
**Replies:** 2\
**Last updated:** [August 10, 2007, 8:30am UTC](https://www.ruby-forum.com/t/rubygems-problems/111729 "2007-08-10T08:30:41Z")

</div>

Hello, I am having problems installing RubyGems on my Mac. Here is the shell output. \<code – setup.rb\> $ sudo ruby setup.rb —\> bin \<— bin —\> lib —\> lib/rbconfig \<— lib/rbconfig —\> lib/rubygems —\> lib/rubygems/c…

---

## [Lone Star Rubyconf 2007 - Registration Re-opened](https://www.ruby-forum.com/t/lone-star-rubyconf-2007-registration-re-opened/111733)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 7:02am UTC](https://www.ruby-forum.com/t/lone-star-rubyconf-2007-registration-re-opened/111733 "2007-08-10T07:02:36Z")

</div>

Greetings As you may know, Lone Star Rubyconf 2007 had closed registration a few days ago due to sales exceeding capacity. Since then, the emails have not stopped for us to find a way to accept more registrants to t…

---

## [Precision loss with pack/unpack?](https://www.ruby-forum.com/t/precision-loss-with-pack-unpack/111691)

<div class="topic-metadata">

**Author:** [@luispulidoman](https://www.ruby-forum.com/u/luispulidoman)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 3:21am UTC](https://www.ruby-forum.com/t/precision-loss-with-pack-unpack/111691 "2007-08-10T03:21:25Z")

</div>

Hello I’m reading Java class files using ruby and found some problems when handling float values. The numbers are stored using IEEE 754 format. After several hours trying and thinking I might be using unpack the wron…

---

## [Watir](https://www.ruby-forum.com/t/watir/111671)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 9\
**Last updated:** [August 10, 2007, 1:49am UTC](https://www.ruby-forum.com/t/watir/111671 "2007-08-10T01:49:01Z")

</div>

I been teaching myself Ruby for three months now and I’ve needed very Little help until now. I’ve been working with text files using strings, array’s, hash’s and CSV all with Little problem Now I’ve moved onto using…

---

## [Define\_method with default parameters](https://www.ruby-forum.com/t/define-method-with-default-parameters/111676)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 12\
**Last updated:** [August 10, 2007, 1:22am UTC](https://www.ruby-forum.com/t/define-method-with-default-parameters/111676 "2007-08-10T01:22:17Z")

</div>

how can i use define\_method to assign default parameters? I want to do this: a\_helper\_module.module\_eval do define\_method(:method\_name) do |parameter, parameter2= “default”| puts parameter puts parameter2 end end …

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/111711)

<div class="topic-metadata">

**Author:** [@lnramirez](https://www.ruby-forum.com/u/lnramirez)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 12:34am UTC](https://www.ruby-forum.com/t/no-subject/111711 "2007-08-10T00:34:14Z")

</div>

unsubscribe removed\_email\_address@domain.invalid

---

## [\[ANN\] London Ruby User Group - 13th August 2007](https://www.ruby-forum.com/t/ann-london-ruby-user-group-13th-august-2007/111710)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 12:03am UTC](https://www.ruby-forum.com/t/ann-london-ruby-user-group-13th-august-2007/111710 "2007-08-10T00:03:12Z")

</div>

Hi all, The next London Ruby U. Group meeting is on this coming Monday: Date: August 13th Time: 6:30pm onwards Location: the Skills Matter offices at 1 Sekeford Street, EC1R 0BEL\[1\] Closest tube: Farringdon Agenda: …

---

## [Re: define\_method with default parameters](https://www.ruby-forum.com/t/re-define-method-with-default-parameters/111689)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/re-define-method-with-default-parameters/111689 "2007-08-09T20:57:49Z")

</div>

Has the addition of block argument defaults to the language been considered? It looks like it has: http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9 Gordon

---

## [Can't get 'require' to work](https://www.ruby-forum.com/t/cant-get-require-to-work/111605)

<div class="topic-metadata">

**Author:** [@drhowarddrfine](https://www.ruby-forum.com/u/drhowarddrfine)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/cant-get-require-to-work/111605 "2007-08-09T20:30:11Z")

</div>

I just started tinkering with Ruby. From “The Poignant Ruby P.mer” or whatever it’s called (you know what I mean) I tried running the small example but get an error. This is the first file called m2.rb: require ‘/us…

---

## [SWIG question: how to return an array from C to Ruby?](https://www.ruby-forum.com/t/swig-question-how-to-return-an-array-from-c-to-ruby/111638)

<div class="topic-metadata">

**Author:** [@Joachim\_SMSSS\_nchen](https://www.ruby-forum.com/u/Joachim_SMSSS_nchen)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/swig-question-how-to-return-an-array-from-c-to-ruby/111638 "2007-08-09T19:58:42Z")

</div>

I need to make some C functions available to Ruby. One of them sets an array of doubles. I want to return this array to Ruby. On the C side: data\_reader.c: #include “hardwaredriver.h” … void read\_data( double \*data…

---

## [Ruport Book Blog](https://www.ruby-forum.com/t/ruport-book-blog/111677)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/ruport-book-blog/111677 "2007-08-09T19:30:37Z")

</div>

Hi folks, this is a one time announcement / advertisement for a new blog on the Ruport Book\[0\]. http://blog.ruportbook.com/ The content there will be primarily news and announcements, though readers are welcome to c…

---

## [Rubygems.org down?](https://www.ruby-forum.com/t/rubygems-org-down/111567)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/rubygems-org-down/111567 "2007-08-09T19:01:33Z")

</div>

Is the rubygems.org site still operational? Maybe it’s just down right now. Mark V.

---

## [Net/SMTP Question](https://www.ruby-forum.com/t/net-smtp-question/111662)

<div class="topic-metadata">

**Author:** [@lmcilwain](https://www.ruby-forum.com/u/lmcilwain)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/net-smtp-question/111662 "2007-08-09T16:16:11Z")

</div>

Hello all, I am trying to get Net/SMTP to send emails to 2 separate arrays of emails within the same block of code. I use this script to send out notifications for testing and I want to be able to cc the developers …

---

## [Ruby/mkmf manual on line?](https://www.ruby-forum.com/t/ruby-mkmf-manual-on-line/111655)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-mkmf-manual-on-line/111655 "2007-08-09T16:12:10Z")

</div>

because i need to do some special things with mkmf i’m looking for a manual of it over the net ? Yvon

---

## [New releases on RubyForge](https://www.ruby-forum.com/t/new-releases-on-rubyforge/111652)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/new-releases-on-rubyforge/111652 "2007-08-09T15:56:08Z")

</div>

Hi all - Just FYI, on RubyForge we’re having a bit of a problem with the process that sync’s newly released files out to the mirrors. Thus, er, newly released files aren’t getting sync’d out to the mirrors. We hope …

---

## [Numbers Can Be Words (#133)](https://www.ruby-forum.com/t/numbers-can-be-words-133/111653)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/numbers-can-be-words-133/111653 "2007-08-09T15:39:07Z")

</div>

We all know this problem isn’t tough at all. Myself and several others solved it with a one-liner. We all enjoy a good one-liner, right? Actually, I built this solution before the quiz was posted and when I shared …

---

## [Numbers Can Be Words (#133)](https://www.ruby-forum.com/t/numbers-can-be-words-133/196424)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/numbers-can-be-words-133/196424 "2007-08-09T15:35:07Z")

</div>

We all know this problem isn’t tough at all. Myself and several others solved it with a one-liner. We all enjoy a good one-liner, right? Actually, I built this solution before the quiz was posted and when I shared …

---

## [Collect objects from an array based on one unique parameter](https://www.ruby-forum.com/t/collect-objects-from-an-array-based-on-one-unique-parameter/111634)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 12\
**Last updated:** [August 9, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/collect-objects-from-an-array-based-on-one-unique-parameter/111634 "2007-08-09T14:20:27Z")

</div>

If one has an array of objects, each containing various values, what means are there to find all the objects where one of these particular values is unique? I have done this using a hash to record values I’ve seen bef…

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

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