# Ruby

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

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

---

## [Backport](https://www.ruby-forum.com/t/backport/100173)

<div class="topic-metadata">

**Author:** [@MIYAMUKO\_Katsuyuki](https://www.ruby-forum.com/u/MIYAMUKO_Katsuyuki)\
**Replies:** 6\
**Last updated:** [October 3, 2006, 7:44am UTC](https://www.ruby-forum.com/t/backport/100173 "2006-10-03T07:44:40Z")

</div>

ã¿ã??ã??ã?ã§ã?ã?? ã?ªã?ªã?¼ã?¹é??è¿?ã®å ±å??ã«ãªã£ã¦ç?³ã?è¨³ãªã?ã®ã§ã?ã?ã?HP-UX (IA64) ä¸?ã§ 1.8 ã?? ã?³ã?³ã??ã?¤ã?«ã?ã??ã¨ã?¨ã?©ã?¼ã«ãªã??ã¾ã?ã?? % uname -srm HP-UX B.11.23 ia64 % gcc -v Us…

---

## [Stupid Ruby Tricks Wiki](https://www.ruby-forum.com/t/stupid-ruby-tricks-wiki/70810)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 6:18am UTC](https://www.ruby-forum.com/t/stupid-ruby-tricks-wiki/70810 "2006-10-03T06:18:36Z")

</div>

Hi all! I would like to announce the grand opening of the Stupid Ruby Tricks Wiki. Add your cool extensions and tricks to it! http://sn.oplo.ws or http://oplo.ws

---

## [Undefining \`funcall' may cause serious problem I think](https://www.ruby-forum.com/t/undefining-funcall-may-cause-serious-problem-i-think/70780)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 5\
**Last updated:** [October 3, 2006, 4:06am UTC](https://www.ruby-forum.com/t/undefining-funcall-may-cause-serious-problem-i-think/70780 "2006-10-03T04:06:29Z")

</div>

e$BKNIt$G$9!#0J2\<$N$h$&$Je(B % ruby-trunk -e’Object.funcall :undef\_method, :funcall, :send, :id’ -e:1: warning: undefining \_\_send\_\_' may cause serious problem -e:1: warning: undefiningid’ may cause serious problem e$…

---

## [Parser bug?](https://www.ruby-forum.com/t/parser-bug/70793)

<div class="topic-metadata">

**Author:** [@Logan\_C](https://www.ruby-forum.com/u/Logan_C)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 1:30am UTC](https://www.ruby-forum.com/t/parser-bug/70793 "2006-10-03T01:30:21Z")

</div>

So I was playing around, and decided that I wanted to define a method that ended in ?, but also happened to not have anything but an ending, . So I did this: def ?() end I got a syntax error, not very surprising. T…

---

## [File Access Issues with File creation](https://www.ruby-forum.com/t/file-access-issues-with-file-creation/70787)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 2\
**Last updated:** [October 3, 2006, 12:08am UTC](https://www.ruby-forum.com/t/file-access-issues-with-file-creation/70787 "2006-10-03T00:08:16Z")

</div>

Ok, for all you Certificate Gurus, here is a bizarre one for you! I am downloading a .pfx (PKCS12) file to a local file. I then use a System call to run a Java application I have written to convert that PKCS12 file …

---

## [What's wrong in my loop?](https://www.ruby-forum.com/t/whats-wrong-in-my-loop/70734)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [October 3, 2006, 12:04am UTC](https://www.ruby-forum.com/t/whats-wrong-in-my-loop/70734 "2006-10-03T00:04:16Z")

</div>

I wrote the following loop some records , init an array db get a record , loop on all records indexing by i while record.start\_at \<= record.end\_at put in the db array \[record.start\_at, i\] end while loop on recor…

---

## [Email embedding](https://www.ruby-forum.com/t/email-embedding/70789)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [October 3, 2006, 12:00am UTC](https://www.ruby-forum.com/t/email-embedding/70789 "2006-10-03T00:00:15Z")

</div>

Hello! Seeing the XML-like format one of the quiz posters used for sending in his program, I wrote two programs that can embed and extract multiple files from an email. I’ll include the programs in their own format so …

---

## [Replace a string delimited by 2 other string, regexp problem](https://www.ruby-forum.com/t/replace-a-string-delimited-by-2-other-string-regexp-problem/70781)

<div class="topic-metadata">

**Author:** [@SSSSSbastien\_Mauret](https://www.ruby-forum.com/u/SSSSSbastien_Mauret)\
**Replies:** 3\
**Last updated:** [October 2, 2006, 11:42pm UTC](https://www.ruby-forum.com/t/replace-a-string-delimited-by-2-other-string-regexp-problem/70781 "2006-10-02T23:42:13Z")

</div>

Hello, I want to replace a string in a file who is delimited by 2 other string. My problem is to find the start and the end string delimiter and replace the content between both. Ex: str = " /\* startdel1 \*/ text1 te…

---

## [New magical version of Symbol.to\_proc](https://www.ruby-forum.com/t/new-magical-version-of-symbol-to-proc/70347)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 44\
**Last updated:** [October 2, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/new-magical-version-of-symbol-to-proc/70347 "2006-10-02T22:19:58Z")

</div>

\[Posted at http://drnicwilliams.com/2006/09/28/new-magical-version-of-symbolto\_proc/\] Before the magic, letâ??s go through a Beginnerâ??s Guide to Mapping, then Advanced Guide to Symbol.to\_proc, and THEN, the magical …

---

## [Embed Images in eruby](https://www.ruby-forum.com/t/embed-images-in-eruby/70721)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 5\
**Last updated:** [October 2, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/embed-images-in-eruby/70721 "2006-10-02T22:15:57Z")

</div>

I want to read an image from disk, modify it with rmagick (scale) and display it in an HTML IMG tag but without saving the modified image to disk. Is there a way to send the Image object directly to the IMG tag?? Som…

---

## [Ruby for Sysadmin](https://www.ruby-forum.com/t/ruby-for-sysadmin/70753)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 4\
**Last updated:** [October 2, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/ruby-for-sysadmin/70753 "2006-10-02T22:03:56Z")

</div>

I need to write a script that pulls usernames our of a file that is formatted like the following. “ADLER, CHARLES DAVID” 00-9388 x0753 Engineering “ANSELL, ROBERT D” 14-2675 x1624 Sales “BIANCHI, CHRISTOPHE…

---

## [Re: instance\_eva()l-ing a proc with parameters](https://www.ruby-forum.com/t/re-instance-eva-l-ing-a-proc-with-parameters/70769)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [October 2, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/re-instance-eva-l-ing-a-proc-with-parameters/70769 "2006-10-02T21:17:52Z")

</div>

Logan C. wrote: eigenclass.org has various implementations and their respective strengths and weaknesses. Or you can just use ruby 1.9 where it’s part of the core. Thanks a lot, Logan. That’s exactly what I need …

---

## [Parseexcel and email fields](https://www.ruby-forum.com/t/parseexcel-and-email-fields/70684)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 5\
**Last updated:** [October 2, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/parseexcel-and-email-fields/70684 "2006-10-02T21:13:52Z")

</div>

I am having a problem reading in a spreadsheet that contains email addresses in one of the columns. I get a “cannot convert nil into String” error when I try to parse the spreadsheet (see below). Has anyone else had…

---

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

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [October 2, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/rubygems-org-down/70767 "2006-10-02T21:01:51Z")

</div>

I’ve been getting 500 “Internal server error” messages from rubygems.org for the last day or so. Anyone know what’s going on? – Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/

---

## [Newbie - Source Code Study, Projects](https://www.ruby-forum.com/t/newbie-source-code-study-projects/70747)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 6\
**Last updated:** [October 2, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/newbie-source-code-study-projects/70747 "2006-10-02T19:53:42Z")

</div>

Hi! I’m a newbie to Ruby and programming. Can anyone recommend any online sources that has Ruby source code available for study? Also, can anyone suggest some projects that I can create in Ruby (newbie level)? I’m com…

---

## [Web User State Management and Serialization](https://www.ruby-forum.com/t/web-user-state-management-and-serialization/70761)

<div class="topic-metadata">

**Author:** [@jhoglund](https://www.ruby-forum.com/u/jhoglund)\
**Replies:** 0\
**Last updated:** [October 2, 2006, 7:41pm UTC](https://www.ruby-forum.com/t/web-user-state-management-and-serialization/70761 "2006-10-02T19:41:40Z")

</div>

Hello, I am currently playing with RoR and I wanted to get State Management in. If a user just shuts the browser down and starts it up again (+ logs in), there should be anything back on the screen (anything that was…

---

## [Instance\_eva()l-ing a proc with parameters](https://www.ruby-forum.com/t/instance-eva-l-ing-a-proc-with-parameters/70757)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 1\
**Last updated:** [October 2, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/instance-eva-l-ing-a-proc-with-parameters/70757 "2006-10-02T18:51:28Z")

</div>

Dear friends, I need to evaluate a proc within an instance context and would like to pass it a parameter. The only straight forward way I found is to use instance\_eval(), however it does not allow to pass parameters t…

---

## [Getting command line](https://www.ruby-forum.com/t/getting-command-line/70557)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 4\
**Last updated:** [October 2, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/getting-command-line/70557 "2006-10-02T18:27:25Z")

</div>

Hi, If I launch a Ruby process with: ruby something.rb lots of “stuff here” and I want all ‘of it’ How can I get a string from inside the ruby process with: lots of “stuff here” and I want all ‘of it’ in it?

---

## [Continuations across fork?](https://www.ruby-forum.com/t/continuations-across-fork/70368)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [October 2, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/continuations-across-fork/70368 "2006-10-02T16:57:10Z")

</div>

I wrote some code that deliberately uses continuations that cross a fork boundary. When I went to test it, I was surprised by the error: “continuation called across trap”. I can think of a few reasons why people mig…

---

## [Re: Story Generator (#96)](https://www.ruby-forum.com/t/re-story-generator-96/225923)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [October 2, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/re-story-generator-96/225923 "2006-10-02T15:57:03Z")

</div>

My submission might have been scrubbed because I included a ZIP file, so here it is again… On 10/1/06, James Edward G. II removed\_email\_address@domain.invalid wrote: Wow, I can’t wait to see that generator! James Ed…

---

## [FXRuby Install](https://www.ruby-forum.com/t/fxruby-install/70680)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 4\
**Last updated:** [October 2, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/fxruby-install/70680 "2006-10-02T15:38:57Z")

</div>

I am running Ubuntu Dapper Drake. I’m trying to install FXRuby using Ruby Gems. I’ve installed the Fox Toolkit v1.4 and 1.2c using the package manager. Now the instructions (http://www.ubuntuforums.org/showthread.php?…

---

## [Is object(y,z) always invalid?](https://www.ruby-forum.com/t/is-object-y-z-always-invalid/70309)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 11\
**Last updated:** [October 2, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/is-object-y-z-always-invalid/70309 "2006-10-02T15:30:56Z")

</div>

I’m working on converting a Python module (RPy) to Ruby and am trying to keep the api as close to the original as possible. In Python it (appears - my Python is very weak) that this is valid syntax: foox Where ‘foo’ …

---

## ['system' and printing in Windows](https://www.ruby-forum.com/t/system-and-printing-in-windows/70719)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 2, 2006, 1:02pm UTC](https://www.ruby-forum.com/t/system-and-printing-in-windows/70719 "2006-10-02T13:02:38Z")

</div>

Dear all, I’d like to give the user the possibility to print some Ruby-generated results of my programs (this can be PDF, PS, EPS, PNG files, a .doc document, …) from a GUI program developed in Ruby. So far, I ha…

---

## [Always Include Associations](https://www.ruby-forum.com/t/always-include-associations/70722)

<div class="topic-metadata">

**Author:** [@Murdoc](https://www.ruby-forum.com/u/Murdoc)\
**Replies:** 0\
**Last updated:** [October 2, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/always-include-associations/70722 "2006-10-02T12:30:35Z")

</div>

Hi All, This is probably really simple, but I couldn’t find a solution anywhere. Is there a mechanism in Ruby/Rails whereby I can tell a class to always pre-load the associations for it (rather than specifying :includ…

---

## [Is a timepoint DSL possible, like: 10:31 instead of "10:29"?](https://www.ruby-forum.com/t/is-a-timepoint-dsl-possible-like-10-31-instead-of-10-29/70639)

<div class="topic-metadata">

**Author:** [@crux](https://www.ruby-forum.com/u/crux)\
**Replies:** 10\
**Last updated:** [October 2, 2006, 12:04pm UTC](https://www.ruby-forum.com/t/is-a-timepoint-dsl-possible-like-10-31-instead-of-10-29/70639 "2006-10-02T12:04:31Z")

</div>

i could not think of any way to include the ‘:’ character in a DSL, so that i could write: from 10:30 to 11:30 instead from “10:30” to “11:30” I mean, it is not that bad, but still. dirk ps.: of course i can alway…

---

## [Open-uri and HTTPS, or net/https with a redirect](https://www.ruby-forum.com/t/open-uri-and-https-or-net-https-with-a-redirect/70710)

<div class="topic-metadata">

**Author:** [@jotto](https://www.ruby-forum.com/u/jotto)\
**Replies:** 4\
**Last updated:** [October 2, 2006, 9:22am UTC](https://www.ruby-forum.com/t/open-uri-and-https-or-net-https-with-a-redirect/70710 "2006-10-02T09:22:21Z")

</div>

Is there anything wrong with using this patch? http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/4365 How do you implement it? If not a good solution, can net/http be used with HTTPS sites and can redirecti…

---

## [Story Generator (#96)](https://www.ruby-forum.com/t/story-generator-96/70477)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 29\
**Last updated:** [October 2, 2006, 8:24am UTC](https://www.ruby-forum.com/t/story-generator-96/70477 "2006-10-02T08:24:17Z")

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

---

## [Web service plumbing for Ruby/ROR](https://www.ruby-forum.com/t/web-service-plumbing-for-ruby-ror/69975)

<div class="topic-metadata">

**Author:** [@Vivek\_Vaid](https://www.ruby-forum.com/u/Vivek_Vaid)\
**Replies:** 1\
**Last updated:** [October 2, 2006, 2:49am UTC](https://www.ruby-forum.com/t/web-service-plumbing-for-ruby-ror/69975 "2006-10-02T02:49:52Z")

</div>

I’m trying to use an exisitng web serivce which has a very exhaustive (wide & deep) set of APIs. I’ve looked at Soap4r but it seems to come with a GPL license. Is there any other library for webservice plumbing in rub…

---

## [SOAP Envelope Error](https://www.ruby-forum.com/t/soap-envelope-error/69402)

<div class="topic-metadata">

**Author:** [@Mark\_ASRichman](https://www.ruby-forum.com/u/Mark_ASRichman)\
**Replies:** 10\
**Last updated:** [October 2, 2006, 2:49am UTC](https://www.ruby-forum.com/t/soap-envelope-error/69402 "2006-10-02T02:49:52Z")

</div>

soap4r is generating this: POST /Wahp.Provisioning/User.asmx HTTP/1.1 SOAPAction: “http://affinity.com/Wahp/Provisioning/IsValidLogin” Content-Type: text/xml; charset=utf-8 Authorization: Basic U0hBUkVEXuaXN0cmF0b3I6…

---

## [Deutsche (German) comp.lang.ruby FAQ goes Wiki](https://www.ruby-forum.com/t/deutsche-german-comp-lang-ruby-faq-goes-wiki/70681)

<div class="topic-metadata">

**Author:** [@Josef\_SJuppS\_SCHUGT](https://www.ruby-forum.com/u/Josef_SJuppS_SCHUGT)\
**Replies:** 0\
**Last updated:** [October 2, 2006, 1:01am UTC](https://www.ruby-forum.com/t/deutsche-german-comp-lang-ruby-faq-goes-wiki/70681 "2006-10-02T01:01:48Z")

</div>

Hi! For English see below Seit einigen Minuten gibt es die deutsche Version der comp.lang.ruby-FAQ als bei Wikia gehostetes Miniwiki. Die einfach Wikisyntax erleichtert die Bearbeitung des Textes und ausserdem kann …

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

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