# Ruby

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

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

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/109192)

<div class="topic-metadata">

**Author:** [@Junk\_Male](https://www.ruby-forum.com/u/Junk_Male)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 10:31am UTC](https://www.ruby-forum.com/t/unsubscribe/109192 "2007-07-12T10:31:39Z")

</div>

unsubscribe ----- Original Message ----- From: removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Thursday, July 12, 2007 12:09 AM Subject: Welcome to our (ruby-talk ML) You are adde…

---

## [0x3fffffffffffffff.succ](https://www.ruby-forum.com/t/0x3fffffffffffffff-succ/109175)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [July 12, 2007, 10:00am UTC](https://www.ruby-forum.com/t/0x3fffffffffffffff-succ/109175 "2007-07-12T10:00:34Z")

</div>

LP64 e$B4D6-$Ge(B 0x3fffffffffffffff.succ e$B$,e(B -4611686018427387904 e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p 0x3fffffffffffffff.succ’ ruby 1.9.0 (2007-07-12 patchlevel 0) \[x86\_64-freebsd6.2\] -4611686018427387904

---

## [Having problem with jpg image delegate](https://www.ruby-forum.com/t/having-problem-with-jpg-image-delegate/109188)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 9:31am UTC](https://www.ruby-forum.com/t/having-problem-with-jpg-image-delegate/109188 "2007-07-12T09:31:32Z")

</div>

Hi, I’ve been trying to get Rmagick working with Imagemagick for the last two days and although I’ve made some progress, I’m stuck on an error that is really confusing: Adispatch.rb:4:in read': no decode delegate for…

---

## [Open4-0.9.4](https://www.ruby-forum.com/t/open4-0-9-4/109184)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 7:57am UTC](https://www.ruby-forum.com/t/open4-0-9-4/109184 "2007-07-12T07:57:22Z")

</div>

URIS http://rubyforge.org/projects/codeforpeople/ http://www.codeforpeople.com/lib/ruby/ SYNOPSIS open child process with handles on pid, stdin, stdout, and stderr: manage child processes and their io handles easil…

---

## [Module name == class name?](https://www.ruby-forum.com/t/module-name-class-name/109110)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 12, 2007, 5:09am UTC](https://www.ruby-forum.com/t/module-name-class-name/109110 "2007-07-12T05:09:15Z")

</div>

Hi, I use the open-source automated functional test tool: Watir. In each class I hold methods relating to a specific HTML page. To avoid any name conflict, I think I should be wrapping each class within a module. Is …

---

## [0x3fffffff.succ](https://www.ruby-forum.com/t/0x3fffffff-succ/109173)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 12, 2007, 4:55am UTC](https://www.ruby-forum.com/t/0x3fffffff-succ/109173 "2007-07-12T04:55:15Z")

</div>

0x3fffffff.succ e$B$,e(B 6 e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p 0x3fffffff.succ’ ruby 1.9.0 (2007-07-12 patchlevel 0) \[i686-linux\] 6

---

## [Why is my program taking so long?](https://www.ruby-forum.com/t/why-is-my-program-taking-so-long/109098)

<div class="topic-metadata">

**Author:** [@finer\_recliner](https://www.ruby-forum.com/u/finer_recliner)\
**Replies:** 3\
**Last updated:** [July 12, 2007, 3:00am UTC](https://www.ruby-forum.com/t/why-is-my-program-taking-so-long/109098 "2007-07-12T03:00:06Z")

</div>

i just wrote a program in ruby that generates sudoku puzzles. its fairly long (~600 lines) so i wont post it all here. from what i’ve read from other programmers (who may have coded their sudoku generators in C++ or j…

---

## [Ruby Live Tree Error](https://www.ruby-forum.com/t/ruby-live-tree-error/188341)

<div class="topic-metadata">

**Author:** [@couldusesomehelp](https://www.ruby-forum.com/u/couldusesomehelp)\
**Replies:** 2\
**Last updated:** [July 12, 2007, 2:32am UTC](https://www.ruby-forum.com/t/ruby-live-tree-error/188341 "2007-07-12T02:32:04Z")

</div>

The website I am working (http://xoth.media.mit.edu:8000/ica/view) on uses a LiveTree add-on that should update a portion of the page to reflect the components of the tree when the appropriate textbox is used. For so…

---

## [Rubys License](https://www.ruby-forum.com/t/rubys-license/109161)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [July 12, 2007, 1:38am UTC](https://www.ruby-forum.com/t/rubys-license/109161 "2007-07-12T01:38:02Z")

</div>

Hello everybody ! I was just looking up something on the OSI website when I saw that the Ruby license isn’t listed there. Because I was wondering about that I had a look at the license: You can redistribute it and/or…

---

## [Question about passing hashes to an action](https://www.ruby-forum.com/t/question-about-passing-hashes-to-an-action/109146)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [July 12, 2007, 1:03am UTC](https://www.ruby-forum.com/t/question-about-passing-hashes-to-an-action/109146 "2007-07-12T01:03:45Z")

</div>

It seems to be a common tactic in ruby to pash what looks like a key-value pair, in which the key is a symbol, to an action. For example with the rails action ‘render’, we say render :text =\> “Hello world!” #(from d…

---

## [Hangman (#130)](https://www.ruby-forum.com/t/hangman-130/108748)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 12\
**Last updated:** [July 11, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/hangman-130/108748 "2007-07-11T23:43:47Z")

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

---

## [Hangman (#130)](https://www.ruby-forum.com/t/hangman-130/109158)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/hangman-130/109158 "2007-07-11T23:41:46Z")

</div>

People wrote quite a bit of code for this quiz. I’m guessing that’s because it can be challenging to see where how your code is doing and to refine that. I’m going to show my own solution this time, not because it’s…

---

## [Why no next! method in integer class?](https://www.ruby-forum.com/t/why-no-next-method-in-integer-class/109137)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 3\
**Last updated:** [July 11, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/why-no-next-method-in-integer-class/109137 "2007-07-11T21:51:25Z")

</div>

Just curious… The string class contains a next! method. Is there a technical reason for not having a next! method in the integer class, or was it just a language designer preference?

---

## [Polymorphic Code](https://www.ruby-forum.com/t/polymorphic-code/108854)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 32\
**Last updated:** [July 11, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/polymorphic-code/108854 "2007-07-11T21:17:21Z")

</div>

Hey, Just a curious question. So does ruby have anything to accommodate for it? If not, what about a work around? Thanks, ~ Ari English is like a pseudo-random number generator - there are a bajillion rules to it,…

---

## [Gecode/R 0.5.0](https://www.ruby-forum.com/t/gecode-r-0-5-0/109139)

<div class="topic-metadata">

**Author:** [@andreas\_l](https://www.ruby-forum.com/u/andreas_l)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/gecode-r-0-5-0/109139 "2007-07-11T20:34:13Z")

</div>

Gecode/R version 0.5.0 has been released. http://gecoder.rubyforge.org/ It’s still in the development, so don’t expect any form of backwards compatibility (things will change left and right if needed to). == What is …

---

## [Icanhasaudio 0.0.1 Released](https://www.ruby-forum.com/t/icanhasaudio-0-0-1-released/109130)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [July 11, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/icanhasaudio-0-0-1-released/109130 "2007-07-11T20:34:12Z")

</div>

icanhasaudio version 0.0.1 has been released! http://seattlerb.rubyforge.org/ Hai! icanhasaudio? is an interface to lame for decoding ur MP3s. I iz in ur computer. Decodin ur mp3s. SYNOPSYS ROFLOL require ‘icanha…

---

## [Problem with HERE document as first parameter (parser bug?)](https://www.ruby-forum.com/t/problem-with-here-document-as-first-parameter-parser-bug/109086)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 5\
**Last updated:** [July 11, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/problem-with-here-document-as-first-parameter-parser-bug/109086 "2007-07-11T20:29:36Z")

</div>

I have problems passing a HERE document as the first parameter to a function expecting more than 1 parameter. Example: This is file here1.rb def q(a,b) end q(\<\<-END line1 line2 END ,‘x’) Executing this program y…

---

## [How to repeat string patterns in Ruby?](https://www.ruby-forum.com/t/how-to-repeat-string-patterns-in-ruby/107200)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 8\
**Last updated:** [July 11, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/how-to-repeat-string-patterns-in-ruby/107200 "2007-07-11T20:26:12Z")

</div>

I have some funky Python code that I’m trying to modify but it’s formatted with spaces instead of tabs, making it impossible to change. Now, there may be many different ways to solve this problem but the first impuls…

---

## [TestGen4Ruby (tg4rb) 0.0.2 Released](https://www.ruby-forum.com/t/testgen4ruby-tg4rb-0-0-2-released/109071)

<div class="topic-metadata">

**Author:** [@helder](https://www.ruby-forum.com/u/helder)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/testgen4ruby-tg4rb-0-0-2-released/109071 "2007-07-11T20:01:10Z")

</div>

Here’s my Google Summer of Code offspring!!! =D If you find any problem with the code or the documentation, please send an email to the tg4rb mailing list or post an issue in our issue tracker. I’m off to Peru today, …

---

## [Error](https://www.ruby-forum.com/t/error/109134)

<div class="topic-metadata">

**Author:** [@cautionsaywhat](https://www.ruby-forum.com/u/cautionsaywhat)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/error/109134 "2007-07-11T19:22:35Z")

</div>

I am helping to write an event planning site, one part of which uses a live tree add-on. For some reason, instead of simply reloading the partial that contains the live tree, the site redirects to a NEW page with only…

---

## [Catching what a block returns (A newbie lesson learned)](https://www.ruby-forum.com/t/catching-what-a-block-returns-a-newbie-lesson-learned/109127)

<div class="topic-metadata">

**Author:** [@rjlyders](https://www.ruby-forum.com/u/rjlyders)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/catching-what-a-block-returns-a-newbie-lesson-learned/109127 "2007-07-11T18:33:22Z")

</div>

Hello all, This is a message intended to be from one newbie to another. Until last night, I couldn’t quite understand something about Ruby blocks: namely, how to get anything back from them. I have read a number of…

---

## [Running linux command from inside](https://www.ruby-forum.com/t/running-linux-command-from-inside/109124)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 5\
**Last updated:** [July 11, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/running-linux-command-from-inside/109124 "2007-07-11T18:29:21Z")

</div>

I’ve ran a search in ruby-talk but I couldn’t find an answer so… Can I run a linux command inside a ruby program. Like history =\> 63 history history -d63 Thanks Jeff B.

---

## [Win32ole: application.quit() leave process running](https://www.ruby-forum.com/t/win32ole-application-quit-leave-process-running/108871)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 9\
**Last updated:** [July 11, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/win32ole-application-quit-leave-process-running/108871 "2007-07-11T17:58:15Z")

</div>

I’m working a lot with Excel lately in Win XP Pro. It seems EXCEL.EXE continues to run after my script is finished. I have: xlapp = WIN32OLE.new(‘excel.application’) … xlapp.activeworkbook.close ; xlapp.quit() ; I…

---

## [TCPSocket.open in 1.8.6 Windows?](https://www.ruby-forum.com/t/tcpsocket-open-in-1-8-6-windows/109121)

<div class="topic-metadata">

**Author:** [@Dick\_Monahan](https://www.ruby-forum.com/u/Dick_Monahan)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/tcpsocket-open-in-1-8-6-windows/109121 "2007-07-11T16:53:09Z")

</div>

I have a program that works under Windows XP and Ruby 1.8.5. I just switched to 1.8.6 and a new bug appeared. In net/imap.rb, there is a statement “@sock = TCPSocket.open(host, port)”. If host is a remote URL (e.g.,…

---

## [Yield should be renamed call\_block](https://www.ruby-forum.com/t/yield-should-be-renamed-call-block/108888)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 69\
**Last updated:** [July 11, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/yield-should-be-renamed-call-block/108888 "2007-07-11T16:43:07Z")

</div>

One of the virtues of the Ruby language that is touted by just about everyone including the language designer Matz is that it is supposedly very intuitive, follows principle of least surprise, duck typing and on and o…

---

## [HTTP Post using Internet Explorer](https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118)

<div class="topic-metadata">

**Author:** [@Charles\_Gillman](https://www.ruby-forum.com/u/Charles_Gillman)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118 "2007-07-11T16:39:06Z")

</div>

Hi I am using Win32ole to automate Internet Explorer and need to “post” the form variables. This is done by passing additional parameters to the IE Navigate method. I can nearly get the function to work by passing t…

---

## [Ruby Windows user information and Active Directory querying](https://www.ruby-forum.com/t/ruby-windows-user-information-and-active-directory-querying/109108)

<div class="topic-metadata">

**Author:** [@fufufu](https://www.ruby-forum.com/u/fufufu)\
**Replies:** 3\
**Last updated:** [July 11, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/ruby-windows-user-information-and-active-directory-querying/109108 "2007-07-11T16:38:59Z")

</div>

Hi, Does someone have a few guidelines for the following: Get the information about the user currently logged in (at least username would be good), Use the above information to query the Active Directory (can net/ l…

---

## [Recurring search too complex for me](https://www.ruby-forum.com/t/recurring-search-too-complex-for-me/109099)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/recurring-search-too-complex-for-me/109099 "2007-07-11T16:36:05Z")

</div>

even if I am progressing, I’m still a newbie… I need you advice on doing the follwing search from an object \<:id =\> 25\> I would like to get the path up to another object, ex \<:id =\> 81\> using a :parent\_collection to…

---

## [How to get a newline when writing file from PC to Linux usin](https://www.ruby-forum.com/t/how-to-get-a-newline-when-writing-file-from-pc-to-linux-usin/109103)

<div class="topic-metadata">

**Author:** [@billbell52](https://www.ruby-forum.com/u/billbell52)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-get-a-newline-when-writing-file-from-pc-to-linux-usin/109103 "2007-07-11T16:23:01Z")

</div>

I am trying to write a text file on Unix (via Samba) from a Ruby program running on the PC. I am trying to get the end of line correct. I cannot get the Unix newline character (0x0a) in the file. I am getting the sa…

---

## [Create a string from a pattern?](https://www.ruby-forum.com/t/create-a-string-from-a-pattern/109102)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 3\
**Last updated:** [July 11, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/create-a-string-from-a-pattern/109102 "2007-07-11T16:19:59Z")

</div>

Im trying to come up with an easy way to generate a random string, based on a supplied pattern, maybe something like: String.from\_pattern("\\d\\d\\d@\\w{3,5}.com") =\> “removed\_email\_address@domain.invalid” Ive used a stan…

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

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