# Ruby

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

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

---

## [SOAP and sending empty elements](https://www.ruby-forum.com/t/soap-and-sending-empty-elements/101366)

<div class="topic-metadata">

**Author:** [@emcconne](https://www.ruby-forum.com/u/emcconne)\
**Replies:** 0\
**Last updated:** [August 4, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/soap-and-sending-empty-elements/101366 "2006-08-04T15:03:16Z")

</div>

Using the classes provided by wsdl2ruby results in passing either “” or nil to create objects for use by the RPC driver. Is there any way to NOT send empty elements? For instance if I now have: 14 Bacon Street Can…

---

## [Changing dirs and exceptions](https://www.ruby-forum.com/t/changing-dirs-and-exceptions/101359)

<div class="topic-metadata">

**Author:** [@viciu](https://www.ruby-forum.com/u/viciu)\
**Replies:** 3\
**Last updated:** [August 4, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/changing-dirs-and-exceptions/101359 "2006-08-04T14:52:58Z")

</div>

Hi! I’ve been stuck with simple thing - I’m trying to change dir into not existant directory. I’m using following code: dir=“no\_such\_one” begin Dir.chdir(dir) rescue into\_dir = false; #we didn’t make it end An…

---

## [Re: Is there a way to avoid having the library slurp-read th](https://www.ruby-forum.com/t/re-is-there-a-way-to-avoid-having-the-library-slurp-read-th/101355)

<div class="topic-metadata">

**Author:** [@kivle](https://www.ruby-forum.com/u/kivle)\
**Replies:** 0\
**Last updated:** [August 4, 2006, 1:21pm UTC](https://www.ruby-forum.com/t/re-is-there-a-way-to-avoid-having-the-library-slurp-read-th/101355 "2006-08-04T13:21:11Z")

</div>

Thanks! Never knew you could do it that way. That’s of great help. :slight\_smile: Thanks again, Helge E.

---

## [Distributed Ruby slow startup under Windows XP](https://www.ruby-forum.com/t/distributed-ruby-slow-startup-under-windows-xp/101354)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 0\
**Last updated:** [August 4, 2006, 12:56pm UTC](https://www.ruby-forum.com/t/distributed-ruby-slow-startup-under-windows-xp/101354 "2006-08-04T12:56:56Z")

</div>

Hi, Running a ruby program under Windows XP shows a slot startup (about three seconds on my computer), compared to Unix. I’m running this: require ‘drb’ DRb.start\_service() obj = DRbObject.new(nil, ‘druby://localh…

---

## [R: Ruby Cookbook](https://www.ruby-forum.com/t/r-ruby-cookbook/101345)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 1\
**Last updated:** [August 4, 2006, 12:35pm UTC](https://www.ruby-forum.com/t/r-ruby-cookbook/101345 "2006-08-04T12:35:46Z")

</div>

Safari at $20 a month just for one book is not a good pitch. It should include a 10-slot bookshelf as well. Le informazioni trasmesse attraverso la presente e-mail ed i suoi allegati sono diretti esclusivamente al d…

---

## [Mechnize redirected url](https://www.ruby-forum.com/t/mechnize-redirected-url/101326)

<div class="topic-metadata">

**Author:** [@akanksha](https://www.ruby-forum.com/u/akanksha)\
**Replies:** 1\
**Last updated:** [August 4, 2006, 11:47am UTC](https://www.ruby-forum.com/t/mechnize-redirected-url/101326 "2006-08-04T11:47:34Z")

</div>

I am using mechanize to scrape and I know that mechanize goes to the url a browser would redirect me to. However is there some way to capture what this new url is? ex: abcd.com ----------------redirected to ---------…

---

## [Possible Tempfile Improvements?](https://www.ruby-forum.com/t/possible-tempfile-improvements/101333)

<div class="topic-metadata">

**Author:** [@Ian\_MacLeod](https://www.ruby-forum.com/u/Ian_MacLeod)\
**Replies:** 1\
**Last updated:** [August 4, 2006, 10:47am UTC](https://www.ruby-forum.com/t/possible-tempfile-improvements/101333 "2006-08-04T10:47:22Z")

</div>

Hey, new here. I’ve been mucking about with Tempfile lately, mainly in regards to using Ruby for web-coding. So with it in mind that I’m focusing on Tempfile from that angle, here are some quick improvements I’d lik…

---

## [What's wrong with this recursive function?](https://www.ruby-forum.com/t/whats-wrong-with-this-recursive-function/101076)

<div class="topic-metadata">

**Author:** [@knutert](https://www.ruby-forum.com/u/knutert)\
**Replies:** 5\
**Last updated:** [August 4, 2006, 10:24am UTC](https://www.ruby-forum.com/t/whats-wrong-with-this-recursive-function/101076 "2006-08-04T10:24:38Z")

</div>

Hello I’ve just started learning Ruby, and for a first project, I decided to make a Sudoku solver. I’ve done this in Java before, and tried a similar approach with Ruby. First, the program tries to solve the puzzle wi…

---

## [Array#size empties the Array?](https://www.ruby-forum.com/t/array-size-empties-the-array/101046)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 18\
**Last updated:** [August 4, 2006, 9:00am UTC](https://www.ruby-forum.com/t/array-size-empties-the-array/101046 "2006-08-04T09:00:04Z")

</div>

Hello, I’ve encountered the following strang behaviour of Array#size. The example is in a context of ActiveRecord, so I don’t know if it is an ActiveRecord or Ruby issue (or something even more bizarre…) I have take…

---

## [Initiate post protocol using ruby](https://www.ruby-forum.com/t/initiate-post-protocol-using-ruby/101311)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 4, 2006, 6:04am UTC](https://www.ruby-forum.com/t/initiate-post-protocol-using-ruby/101311 "2006-08-04T06:04:46Z")

</div>

HI I want to simulate the post protocol like a browser using ruby. I dont want to use watir … as it involves clicking. for eg the www.cboe.org accepts post requests for options data and returns a text file. any poin…

---

## [Re: Setting precision in Ruby-GSL calculations?](https://www.ruby-forum.com/t/re-setting-precision-in-ruby-gsl-calculations/101312)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 4, 2006, 5:55am UTC](https://www.ruby-forum.com/t/re-setting-precision-in-ruby-gsl-calculations/101312 "2006-08-04T05:55:45Z")

</div>

Hi Axel, sorry for late reply. Ruby-Gsl defines these as M= U S V^tr, where U can have uneven dimensions, but many authors require U to be square (and softwares, eg. Mathematica) This is because GSL can do so. …

---

## [Cute Emacs & Sawfish Hack for the day](https://www.ruby-forum.com/t/cute-emacs-sawfish-hack-for-the-day/101287)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [August 4, 2006, 2:28am UTC](https://www.ruby-forum.com/t/cute-emacs-sawfish-hack-for-the-day/101287 "2006-08-04T02:28:50Z")

</div>

So I use emacs (latest from CVS) and gnome sawfish as my window manager. But I… Hate the \*sh languages, they have awful design. I want to reuse emacs sessions, not start up a new one every time. I want the emacs windo…

---

## [Define\_method vs eval "def ..."](https://www.ruby-forum.com/t/define-method-vs-eval-def/101209)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 5\
**Last updated:** [August 4, 2006, 1:24am UTC](https://www.ruby-forum.com/t/define-method-vs-eval-def/101209 "2006-08-04T01:24:20Z")

</div>

Hello, Just wondering, with eval “def …” I can do: eval “def #{tag}(\*args, &blk) xml(:#{tag}, \*args, &blk) end” Of course it would be nicer to do: define\_method(tag) {|\*args,&blk|, xml(tag, \*args, &blk) } But that t…

---

## [Building the finite state machine of a Ruby regexp](https://www.ruby-forum.com/t/building-the-finite-state-machine-of-a-ruby-regexp/100937)

<div class="topic-metadata">

**Author:** [@Gilles\_L](https://www.ruby-forum.com/u/Gilles_L)\
**Replies:** 3\
**Last updated:** [August 4, 2006, 12:22am UTC](https://www.ruby-forum.com/t/building-the-finite-state-machine-of-a-ruby-regexp/100937 "2006-08-04T00:22:41Z")

</div>

Does anyone know if there is a nice way to build the Finite State Machine (FSM) of a Ruby regexp ? Assuming the native ruby regexp parser used a (more or less explicit) FSM I first thought that there was some builti…

---

## [Creating Classes at runtime](https://www.ruby-forum.com/t/creating-classes-at-runtime/101232)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 10\
**Last updated:** [August 4, 2006, 12:10am UTC](https://www.ruby-forum.com/t/creating-classes-at-runtime/101232 "2006-08-04T00:10:30Z")

</div>

Hi everybody, this is my first post and allready a nifty question :wink: What I want: Create a NAMED class at runtime. Adding functions is clear. E.g. somthing like that: (ClassGenerator is an existing module) modul…

---

## [Large gnome::canvas problem](https://www.ruby-forum.com/t/large-gnome-canvas-problem/101275)

<div class="topic-metadata">

**Author:** [@hagi](https://www.ruby-forum.com/u/hagi)\
**Replies:** 0\
**Last updated:** [August 3, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/large-gnome-canvas-problem/101275 "2006-08-03T23:27:27Z")

</div>

hi, I have a little problem with displaying items in ‘big’ canvas, test code: #!/usr/bin/env ruby require ‘gnomecanvas2’ window = Gtk::Window.new window.signal\_connect(“delete\_event”) do |widget, event| Gtk::main\_…

---

## [Using gsub to remove embedded newlines in HTML file](https://www.ruby-forum.com/t/using-gsub-to-remove-embedded-newlines-in-html-file/101030)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/using-gsub-to-remove-embedded-newlines-in-html-file/101030 "2006-08-03T22:49:12Z")

</div>

I have an HTML file that is in a string. I want to use gsub! to recursively remove any embedded newlines and whitespace within two known delimeters. Given a string that includes this kind of string: ~^LNK:http://slas…

---

## [Different semantics of Proc and method call -- bug or featur](https://www.ruby-forum.com/t/different-semantics-of-proc-and-method-call-bug-or-featur/101084)

<div class="topic-metadata">

**Author:** [@Tammo\_F](https://www.ruby-forum.com/u/Tammo_F)\
**Replies:** 16\
**Last updated:** [August 3, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/different-semantics-of-proc-and-method-call-bug-or-featur/101084 "2006-08-03T22:38:55Z")

</div>

Hi all, I stumbled over the following difference between method calls and Proc calls: require ‘pp’; def a\_method(arg, \*args) arg end a\_proc = Proc.new do | arg, \*args | arg end pp a\_method(1) # =\> expecte…

---

## [\[\].pack("P") $B$G(B SEGV](https://www.ruby-forum.com/t/pack-p-b-g-b-segv/101226)

<div class="topic-metadata">

**Author:** [@rucila](https://www.ruby-forum.com/u/rucila)\
**Replies:** 2\
**Last updated:** [August 3, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/pack-p-b-g-b-segv/101226 "2006-08-03T22:17:22Z")

</div>

rucila ã¨ç?³ã?ã¾ã?ã?? Array#pack ã® “P” ã§é?å??ã®é?·ã?ã?è¶³ã??ãªã?æ??ã« SEGV ã?ç?ºç??ã?ã??ã?ã¨ã? ã?ã??ã¾ã?ã?? ç?°å¢?ã??ã?¹ã?¯ã?ªã??ã??ã«ã??ã£ã¦ã¯å?¥ã®ã?¨ã?©ã?¼ã?ç?ºç??ã?ã¾ã?ã?ã? ã?¨ã?©…

---

## [Another word game](https://www.ruby-forum.com/t/another-word-game/101173)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 8\
**Last updated:** [August 3, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/another-word-game/101173 "2006-08-03T20:25:43Z")

</div>

A while back, we had “Ruby is to Rails as \_\_\_\_\_\_ is to \_\_\_\_\_\_?” How about, “When the only tool you have is Ruby, everything looks like a \_\_\_\_\_\_\_\_?”

---

## [RuportDay2006: A day of fun, prizes, and reporting software!](https://www.ruby-forum.com/t/ruportday2006-a-day-of-fun-prizes-and-reporting-software/101256)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 3, 2006, 8:19pm UTC](https://www.ruby-forum.com/t/ruportday2006-a-day-of-fun-prizes-and-reporting-software/101256 "2006-08-03T20:19:43Z")

</div>

Hi everyone, This is one of those ideas that I can’t decide if it’s crazy or awesome, but I figured I’d throw it out there. Basically, I plan to have all of my work done for Google’s Summer of Code, and have Ruport b…

---

## [\*\*\* POSSIBLE ISSUE with Ruby 1-click Installer for Windows 1](https://www.ruby-forum.com/t/possible-issue-with-ruby-1-click-installer-for-windows-1/101250)

<div class="topic-metadata">

**Author:** [@dplante](https://www.ruby-forum.com/u/dplante)\
**Replies:** 1\
**Last updated:** [August 3, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/possible-issue-with-ruby-1-click-installer-for-windows-1/101250 "2006-08-03T20:16:42Z")

</div>

I wanted to move from Ruby 1.8.2 to Ruby 1.8.4 on this windows machine. After reading the 1-click installer FAQ, I decided to uninstall 1.8.2 and install 1.8.4. Unfortunately, after the install I noticed the path for …

---

## [DRb on Windows Wants to Be Touched](https://www.ruby-forum.com/t/drb-on-windows-wants-to-be-touched/101247)

<div class="topic-metadata">

**Author:** [@keith2koool](https://www.ruby-forum.com/u/keith2koool)\
**Replies:** 1\
**Last updated:** [August 3, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/drb-on-windows-wants-to-be-touched/101247 "2006-08-03T19:25:38Z")

</div>

Hey, We all appreciate the special joy that human contact can bring, but this is driving me crazy… Warning: I’ll admit upfront that I only do occasionally Ruby programming on Windows, so this could be a simple issue. …

---

## [PDF::Writer Table of Contents problem](https://www.ruby-forum.com/t/pdf-writer-table-of-contents-problem/101227)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 3, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/pdf-writer-table-of-contents-problem/101227 "2006-08-03T18:22:29Z")

</div>

Hello, I am having some problems with the PDF::Writer gem. I cannot get the table of contents to display any items. Has anyone had this problem or used this library? I am unable to get feedback using their rubyforge …

---

## [A left-exclusive Range class](https://www.ruby-forum.com/t/a-left-exclusive-range-class/101093)

<div class="topic-metadata">

**Author:** [@Cyrus\_Hall](https://www.ruby-forum.com/u/Cyrus_Hall)\
**Replies:** 3\
**Last updated:** [August 3, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/a-left-exclusive-range-class/101093 "2006-08-03T17:21:09Z")

</div>

The current Range class in ruby is quite useful, however, I was recently trying to capture a simple algorithm and ended up needing to express left-exclusion. This is the one feature ruby currently does not support in…

---

## [Insertion problems with Opera](https://www.ruby-forum.com/t/insertion-problems-with-opera/101222)

<div class="topic-metadata">

**Author:** [@schdewwn](https://www.ruby-forum.com/u/schdewwn)\
**Replies:** 0\
**Last updated:** [August 3, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/insertion-problems-with-opera/101222 "2006-08-03T17:20:25Z")

</div>

Hi, as I couldn’t figure out how to post to the Ruby Spinoffs forum directly, I am starting a new post here and hope some kind admin can move it over to the appropriate forum. I am trying to insert a new row to a tab…

---

## [Chip-8 (#88)](https://www.ruby-forum.com/t/chip-8-88/101215)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 3, 2006, 4:40pm UTC](https://www.ruby-forum.com/t/chip-8-88/101215 "2006-08-03T16:40:10Z")

</div>

As some of you may know, the annual ICFP contest was just two weekends ago and this year’s problem involved the creation of a small virtual machine, much as this quiz does. We didn’t plan that, but it turned out to …

---

## [Cp \* except .svn directories](https://www.ruby-forum.com/t/cp-except-svn-directories/100709)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 9\
**Last updated:** [August 3, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/cp-except-svn-directories/100709 "2006-08-03T15:46:00Z")

</div>

Hi all, sorry if this is a repost! Don’t know if it’s Pan or my ISP but there’s some weirdness going on ATM! What I’d like to be able to do is write a script that can copy all files/directories from a subversion repo…

---

## [Rubyforge svn import](https://www.ruby-forum.com/t/rubyforge-svn-import/100869)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [August 3, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/rubyforge-svn-import/100869 "2006-08-03T15:42:59Z")

</div>

How to do an initial svn import to Rubyforge? Is it possible to use Darcs instead somehow?

---

## [Best way to assign args?](https://www.ruby-forum.com/t/best-way-to-assign-args/101188)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 3, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/best-way-to-assign-args/101188 "2006-08-03T15:27:58Z")

</div>

on Mac OS X using launchd i’m only able to pass args like that : \[“DEBUGG=true”, “auto=true”, “dummy=empty”, “files=/Users/yvon/MacSOUP\_proxad/proxad, /Users/yvon/MacSOUP\_eclipse/eclipse, /Users/yvon/MacSOUP\_news.ind…

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

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