# Ruby

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

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

---

## [Jump in rescue clause in eval dumps core](https://www.ruby-forum.com/t/jump-in-rescue-clause-in-eval-dumps-core/111767)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/jump-in-rescue-clause-in-eval-dumps-core/111767 "2007-08-30T14:25:17Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B 1.9 e$B$G8eCVe(B rescue e$B@a$NCf$Ge(B break e$B$de(B next e$B$de(B redo e$B$r$9$k%3!\<%I$re(B eval e$B$9$k$HMn$A$^$9!#e(B $ ./ruby -ve ‘eval “0 rescue break”’ ruby 1.9.0 (2007-08-10 patchlevel…

---

## [Help parsing simple structured data](https://www.ruby-forum.com/t/help-parsing-simple-structured-data/113247)

<div class="topic-metadata">

**Author:** [@Nuby\_R](https://www.ruby-forum.com/u/Nuby_R)\
**Replies:** 8\
**Last updated:** [August 30, 2007, 9:57am UTC](https://www.ruby-forum.com/t/help-parsing-simple-structured-data/113247 "2007-08-30T09:57:34Z")

</div>

I’m rather new to Ruby and am trying to figure out how to parse some structured data… This is pretty much the most common problem I run into and it’d be really helpful to see an example to wrap my head around blocks &…

---

## [Heel 0.3.0 Released](https://www.ruby-forum.com/t/heel-0-3-0-released/113352)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 9:29am UTC](https://www.ruby-forum.com/t/heel-0-3-0-released/113352 "2007-08-30T09:29:30Z")

</div>

heel version 0.3.0 has been released. http://copiousfreetime.rubyforge.org/heel/ Heel is a mongrel based web server to quickly and easily serve up the contents of a directory as webpages. Beyond just serving up webpa…

---

## [Where is the define\_singleton\_method method?](https://www.ruby-forum.com/t/where-is-the-define-singleton-method-method/113240)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 4\
**Last updated:** [August 30, 2007, 7:08am UTC](https://www.ruby-forum.com/t/where-is-the-define-singleton-method-method/113240 "2007-08-30T07:08:16Z")

</div>

I just got the svn trunk and was testing some new stuff, but could not find the define\_singleton\_method: irb(main):001:0\> \[RUBY\_VERSION,RUBY\_RELEASE\_DATE\] =\> \[“1.9.0”, “2007-08-28”\] irb(main):002:0\> a = “” =\> “” ir…

---

## [Mkmf.rb:310:in \`method\_missing': undefined method \`quote' fo](https://www.ruby-forum.com/t/mkmf-rbin-method-missing-undefined-method-quote-fo/113344)

<div class="topic-metadata">

**Author:** [@akira\_yamada\_S\_SSB](https://www.ruby-forum.com/u/akira_yamada_S_SSB)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 6:51am UTC](https://www.ruby-forum.com/t/mkmf-rbin-method-missing-undefined-method-quote-fo/113344 "2007-08-30T06:51:15Z")

</div>

e$B8=:\_$Ne(BHEADe$B$G!"e(Bextconf.rbe$B$r\<B9T$7$h$&$H$9$k$He(B subjecte$B$N$h$&$J%(%i!\<$K$J$j$^$9!#e(B $ ruby1.9 extconf.rb checking for termios.h… /usr/lib/ruby/1.9/mkmf.rb:310:in method\_missing': undefined methodqu…

---

## [Displaying an array](https://www.ruby-forum.com/t/displaying-an-array/113332)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 6:30am UTC](https://www.ruby-forum.com/t/displaying-an-array/113332 "2007-08-30T06:30:40Z")

</div>

In irb, an array displays like this: irb(main):001:0\> a = %w(bird dog cat) =\> \[“bird”, “dog”, “cat”\] irb(main):002:0\> Is there a command to get the same format when I display an array with a program? r1test.rb: a1 …

---

## [ID3 Tags (#136)](https://www.ruby-forum.com/t/id3-tags-136/112921)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 36\
**Last updated:** [August 30, 2007, 1:57am UTC](https://www.ruby-forum.com/t/id3-tags-136/112921 "2007-08-30T01:57:53Z")

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

---

## [Array.sort](https://www.ruby-forum.com/t/array-sort/113285)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 9\
**Last updated:** [August 30, 2007, 12:58am UTC](https://www.ruby-forum.com/t/array-sort/113285 "2007-08-30T00:58:49Z")

</div>

Hi, I’m a novice programmer who is just starting out in Ruby. I’ve been playing around with arrays and have run into a problem: This works: array = \[3,2,1\] puts array.sort =\>123 BUT this doesn’t (error attached): …

---

## [Adding elements of one array to another](https://www.ruby-forum.com/t/adding-elements-of-one-array-to-another/113337)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 5\
**Last updated:** [August 30, 2007, 12:52am UTC](https://www.ruby-forum.com/t/adding-elements-of-one-array-to-another/113337 "2007-08-30T00:52:48Z")

</div>

I can’t remember who asked this a while ago, but while I was stumbling through my Programming Ruby book, I found a nice method in array that will instantly do the trick: Array#concat a = \[1, 2\] b = \[3, 4\] a.concat(…

---

## [Getting all google results with hpricot and connecting two g](https://www.ruby-forum.com/t/getting-all-google-results-with-hpricot-and-connecting-two-g/113280)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 6\
**Last updated:** [August 30, 2007, 12:27am UTC](https://www.ruby-forum.com/t/getting-all-google-results-with-hpricot-and-connecting-two-g/113280 "2007-08-30T00:27:47Z")

</div>

Hi, I’m trying to fetch all google results with hpricot. For the first page of results I wrote this here: #!/usr/bin/env ruby $Verbose=true require ‘hpricot’ require ‘open-uri’ google = Hpricot(open(“Google”)) (…

---

## [Newbie to Ruby](https://www.ruby-forum.com/t/newbie-to-ruby/113065)

<div class="topic-metadata">

**Author:** [@animate123](https://www.ruby-forum.com/u/animate123)\
**Replies:** 5\
**Last updated:** [August 30, 2007, 12:15am UTC](https://www.ruby-forum.com/t/newbie-to-ruby/113065 "2007-08-30T00:15:06Z")

</div>

Hi, I was reading through Learning R. and was trying to get the example on page 119 to work to scrape Google. But when I run it nothing happens. Any help would be appreciated. Thanks. require ‘open-uri’ url = “ruby …

---

## [Help design a plugin system for a DSL](https://www.ruby-forum.com/t/help-design-a-plugin-system-for-a-dsl/113296)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/help-design-a-plugin-system-for-a-dsl/113296 "2007-08-29T23:21:02Z")

</div>

Hello, I’ve been working through the “Creating DSLs with Ruby” tutorial here : http://www.artima.com/rubycs/articles/ruby\_as\_dsl4.html In my DSL I’d like users to be able to write code such as this : myDSL do plugin…

---

## [Bug in URI.parse?](https://www.ruby-forum.com/t/bug-in-uri-parse/113291)

<div class="topic-metadata">

**Author:** [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Replies:** 9\
**Last updated:** [August 29, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/bug-in-uri-parse/113291 "2007-08-29T23:20:31Z")

</div>

I have looked through the archives for the mailing list, but didn’t see this issue addressed. So here goes. My local machine is named 3beers-wrk. I achieved this by putting an entry in my local hosts file (since I’m…

---

## [Looking for help implementing static variables](https://www.ruby-forum.com/t/looking-for-help-implementing-static-variables/113279)

<div class="topic-metadata">

**Author:** [@rubyman](https://www.ruby-forum.com/u/rubyman)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/looking-for-help-implementing-static-variables/113279 "2007-08-29T22:59:22Z")

</div>

Hello, I am working on an application where we are trying to remember previous values from an execution of a Ruby program. Basically, we have a screen where a user can type an ‘X’ into either a ‘Yes’ or a ‘No’ box. We…

---

## [Find out the NameServers of a Domain name](https://www.ruby-forum.com/t/find-out-the-nameservers-of-a-domain-name/113282)

<div class="topic-metadata">

**Author:** [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/find-out-the-nameservers-of-a-domain-name/113282 "2007-08-29T22:24:05Z")

</div>

Hi guys, I was wondering if there is any way to find out all the Nameservers a domain is mapped to. Example: www.google.com Name Servers: ns1.google.com ns2.google.com ns3.google.com ns4.google.com Is there any …

---

## [Detect file encoding utf-8](https://www.ruby-forum.com/t/detect-file-encoding-utf-8/113276)

<div class="topic-metadata">

**Author:** [@RebhanS\_Gilbert](https://www.ruby-forum.com/u/RebhanS_Gilbert)\
**Replies:** 3\
**Last updated:** [August 29, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/detect-file-encoding-utf-8/113276 "2007-08-29T20:45:41Z")

</div>

Hi, I want to check the file encoding of files in a directory. Until now i have tried = found in an older thread in comp.lang.ruby class String def utf8? unpack(‘U\*’) rescue return false true end end found in an…

---

## [GetoptLong](https://www.ruby-forum.com/t/getoptlong/113322)

<div class="topic-metadata">

**Author:** [@Bill\_Saunders](https://www.ruby-forum.com/u/Bill_Saunders)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/getoptlong/113322 "2007-08-29T20:32:40Z")

</div>

I am new to this mailing. I have some users who are fed up with the following warning and my inability to explain and/or remove it. It occurs on every call to GetoptLong.new, and yes, it is on windows. H:/work/i2cc.rb…

---

## [IPAddr as Hash table key and accessing the mask\_addr](https://www.ruby-forum.com/t/ipaddr-as-hash-table-key-and-accessing-the-mask-addr/113320)

<div class="topic-metadata">

**Author:** [@ninj](https://www.ruby-forum.com/u/ninj)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/ipaddr-as-hash-table-key-and-accessing-the-mask-addr/113320 "2007-08-29T20:06:34Z")

</div>

Hi, I’m using IPAddr objects as hash keys. So I need the hash and eql? function as described in this post from the year 2004, which I’m reposting below It looks like a very simple and useful addition to the class. Co…

---

## [Optimize empty hash space](https://www.ruby-forum.com/t/optimize-empty-hash-space/113277)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/optimize-empty-hash-space/113277 "2007-08-29T20:03:31Z")

</div>

e$B6u$Ne(B Hash e$B$Oe(B st e$B$r3NJ\]$7$J$$$h$&$K$9$k$N$O$I$&$G$7$g$&$+!#e(B REXML e$B$@$H!“e(BXML e$B$NB0@-$KJ\]B8$Ke(B Hash e$B$r;H$&$N$G$9$,!”$3$N\>l9ge(B e$B6u$Ne(B Hash e$B$,$+$J$j;H$o$l$^$9!#e(B e$B$=$&$$$&$H$-$…

---

## [Gsub help](https://www.ruby-forum.com/t/gsub-help/113226)

<div class="topic-metadata">

**Author:** [@hurcan\_solter](https://www.ruby-forum.com/u/hurcan_solter)\
**Replies:** 6\
**Last updated:** [August 29, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/gsub-help/113226 "2007-08-29T20:01:31Z")

</div>

Hi there; this is more of a regexp question but I’de be happy if you help me since i am doing it in ruby. i want to beautify some line by inserting or removing some space around the operators like = or == so i came …

---

## [How to fix this error, help please!](https://www.ruby-forum.com/t/how-to-fix-this-error-help-please/196451)

<div class="topic-metadata">

**Author:** [@zlai](https://www.ruby-forum.com/u/zlai)\
**Replies:** 5\
**Last updated:** [August 29, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/how-to-fix-this-error-help-please/196451 "2007-08-29T17:56:11Z")

</div>

I want to run this simple test, but something is wrong. I don’t know how to fix them! help!! work\_test.rb: require File.dirname(FILE) + ‘/…/test\_helper’ class WorkTest \< Test::Unit::TestCase fixtures :works def set…

---

## [ComboBox into a Grid](https://www.ruby-forum.com/t/combobox-into-a-grid/113288)

<div class="topic-metadata">

**Author:** [@arevert](https://www.ruby-forum.com/u/arevert)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/combobox-into-a-grid/113288 "2007-08-29T17:40:02Z")

</div>

Hi everyboy, i’m trying to put in a grid’s cell a ComboBox. I don’t know how to put it into the cell. Thanks!!

---

## [Conducting Regular Expressions on a text file](https://www.ruby-forum.com/t/conducting-regular-expressions-on-a-text-file/113143)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 8\
**Last updated:** [August 29, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/conducting-regular-expressions-on-a-text-file/113143 "2007-08-29T17:31:02Z")

</div>

I’m trying to find and replacace the string “placeholder” in a text file. Any idea how I could get the following code to work? file = File.open('/folder/template.txt', 'r+') file.gsub!(/placeholder/, "word") Thanks, P…

---

## [Can't install//use the scrubyt gem? LoadError: no such file](https://www.ruby-forum.com/t/cant-install-use-the-scrubyt-gem-loaderror-no-such-file/113292)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/cant-install-use-the-scrubyt-gem-loaderror-no-such-file/113292 "2007-08-29T16:46:57Z")

</div>

Hi, someone here told me to try scubyt so I tried to install it with: sudo gem install mechanize parsetree ruby2ruby hpricot scrubyt But I still can’t use it: irb(main):001:0\> require ‘rubygems’ =\> true irb(main):0…

---

## [2d mmorpg](https://www.ruby-forum.com/t/2d-mmorpg/113029)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 23\
**Last updated:** [August 29, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/2d-mmorpg/113029 "2007-08-29T16:14:33Z")

</div>

I’ve been trying to find out what programming language would be best for creating a MMORPG game/engine. After some responses elsewhere I’ve decided to choose between Java and Ruby. I recently posted a question asking…

---

## [Address Book Import](https://www.ruby-forum.com/t/address-book-import/113278)

<div class="topic-metadata">

**Author:** [@pradeep](https://www.ruby-forum.com/u/pradeep)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/address-book-import/113278 "2007-08-29T15:52:45Z")

</div>

Hi All, Is there any way to import address book of rediffmail and indiatimes using ruby. Please let me know the details. Thanks in Advance Regards, Pradeep

---

## [Deleting empty directories](https://www.ruby-forum.com/t/deleting-empty-directories/113228)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/deleting-empty-directories/113228 "2007-08-29T15:50:45Z")

</div>

Hello, I’m putting together a script to automatically update a repository working copy. The scenario is such that the versioned working copy itself is not being modified, but I am simply rsync’ing changes from an un…

---

## [Calling VB6 dll from Ruby](https://www.ruby-forum.com/t/calling-vb6-dll-from-ruby/113284)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/calling-vb6-dll-from-ruby/113284 "2007-08-29T15:45:43Z")

</div>

I am trying to use a VB6 dll created by another programmer from Ruby. To see what was I opened it in Visual Studio’s object browser. It has a series of classes with their methods and properties. I want to acess the Lo…

---

## [Ruby\_1\_8\_5 undefined reference to \`\_RSTRING\_PTR'](https://www.ruby-forum.com/t/ruby-1-8-5-undefined-reference-to-rstring-ptr/113283)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-undefined-reference-to-rstring-ptr/113283 "2007-08-29T15:07:37Z")

</div>

e$B=uED$G$9!#e(B cygwine$B$N4D6-$Ge(Bruby\_1\_8\_5e$B$r%3%s%Q%$%k$7$h$&$H$7$?$ie(B \_RSTRING\_PTRe$B$,8+$D$+$i$J$/$F%j%s%/$,\<:GT$7$^$7$?!#e(B revision 13307e$B$G$9!#e(B libruby-static.a(ruby.o): In function rubylib\_mangle…

---

## [Ruby Swig passing Argument](https://www.ruby-forum.com/t/ruby-swig-passing-argument/113074)

<div class="topic-metadata">

**Author:** [@zdk](https://www.ruby-forum.com/u/zdk)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/ruby-swig-passing-argument/113074 "2007-08-29T13:41:13Z")

</div>

Hi Folks, If I have swig module %module example on2sc Flix2\_CreateEx (FLIX2HANDLE \*pFlix, const char \*rpchost, int32\_t timeout) How can I pass argument as a pointer in Ruby? ( I mean the “FLIX2HANDLE” type) requ…

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

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