# Ruby

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

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

---

## [Install rmagick in win32,but no work](https://www.ruby-forum.com/t/install-rmagick-in-win32-but-no-work/54776)

<div class="topic-metadata">

**Author:** [@adong](https://www.ruby-forum.com/u/adong)\
**Replies:** 8\
**Last updated:** [March 15, 2006, 8:44am UTC](https://www.ruby-forum.com/t/install-rmagick-in-win32-but-no-work/54776 "2006-03-15T08:44:39Z")

</div>

i use instantRails 1.0 on winxp.download ‘RMagick-1.9.2-IM-6.2.4-6-win32.zip’ from www after install,i write code in irb: require ‘RMagick’ it shows follow errors: no such file to load – RMagick. why?

---

## [Hash default -- what's going on here?](https://www.ruby-forum.com/t/hash-default-whats-going-on-here/82114)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 15, 2006, 8:41am UTC](https://www.ruby-forum.com/t/hash-default-whats-going-on-here/82114 "2006-03-15T08:41:01Z")

</div>

I’ve hit what is either an egregious bug in ruby (1.8.4) or some subtlety that I haven’t grasped. \[Most likely the latter… (:-)\] Briefly I had two arrays of symbol strings of which I wanted to find which symbols occ…

---

## [Known isp running ruby](https://www.ruby-forum.com/t/known-isp-running-ruby/82008)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [March 15, 2006, 5:11am UTC](https://www.ruby-forum.com/t/known-isp-running-ruby/82008 "2006-03-15T05:11:28Z")

</div>

i’m looking for an internet provider able to run ruby (nitro). some refs ?

---

## [Unix file desciptors](https://www.ruby-forum.com/t/unix-file-desciptors/54904)

<div class="topic-metadata">

**Author:** [@Lorenzo\_Chomp](https://www.ruby-forum.com/u/Lorenzo_Chomp)\
**Replies:** 0\
**Last updated:** [March 15, 2006, 4:36am UTC](https://www.ruby-forum.com/t/unix-file-desciptors/54904 "2006-03-15T04:36:12Z")

</div>

Hi! I’m new on this list, and right now I’m wondering something… Does somedy know if Ruby streams are Unix File Descriptor’s compatible? I need to use a file descriptor opened by another process (a daemon written in C…

---

## [Net::HTML#post\_form with ASP](https://www.ruby-forum.com/t/net-html-post-form-with-asp/54846)

<div class="topic-metadata">

**Author:** [@SSMKSM](https://www.ruby-forum.com/u/SSMKSM)\
**Replies:** 4\
**Last updated:** [March 15, 2006, 2:15am UTC](https://www.ruby-forum.com/t/net-html-post-form-with-asp/54846 "2006-03-15T02:15:47Z")

</div>

Hello, I’ve been trying to use Net::HTML.post\_form to POST to a .asp file. url = URI.parse("http://www.ascca.com/findashop/findashopdetail.asp") res = Poster.post\_form(url, { "id" =\> '1' } ) puts res.body This does no…

---

## [Some questions on language syntax](https://www.ruby-forum.com/t/some-questions-on-language-syntax/54864)

<div class="topic-metadata">

**Author:** [@elgato](https://www.ruby-forum.com/u/elgato)\
**Replies:** 13\
**Last updated:** [March 15, 2006, 12:28am UTC](https://www.ruby-forum.com/t/some-questions-on-language-syntax/54864 "2006-03-15T00:28:36Z")

</div>

Hi, I’m new to this language and as I’m Perl user, some things seems strange to me: = %w{a b} produces \[‘a’, ‘b’\]. Is there some similarily easy way for {‘a’ =\> ‘b’}? Or, can I transform an array to some “list”? I can…

---

## [Setting the namespace of an object](https://www.ruby-forum.com/t/setting-the-namespace-of-an-object/54880)

<div class="topic-metadata">

**Author:** [@dbf](https://www.ruby-forum.com/u/dbf)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 11:36pm UTC](https://www.ruby-forum.com/t/setting-the-namespace-of-an-object/54880 "2006-03-14T23:36:14Z")

</div>

I posted this to the soap mailing list but have not received any input. Hopefully someone here knows the answer. I am wondering how to change the namespace (xmlns) on the SetResponse element from “http://www.ruby-lang…

---

## [Why's Poignant Guide site down?](https://www.ruby-forum.com/t/whys-poignant-guide-site-down/81860)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 6\
**Last updated:** [March 14, 2006, 10:56pm UTC](https://www.ruby-forum.com/t/whys-poignant-guide-site-down/81860 "2006-03-14T22:56:30Z")

</div>

Why’s Poignant Guide has been unavailable for at least the last couple of days. Does anyone know if that has been moved somewhere else? I’m trying http://poignantguide.net/ruby/.

---

## [Setup.rb --prefix not working?](https://www.ruby-forum.com/t/setup-rb-prefix-not-working/54872)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 10:47pm UTC](https://www.ruby-forum.com/t/setup-rb-prefix-not-working/54872 "2006-03-14T22:47:04Z")

</div>

I’m trying to use setup.rb’s --prefix option, but it only seems to be copy the data/ file to the prefix location. Everything else is gogin to the ususual places. Below is the output I’m getting. Thanks, T. ruby setu…

---

## [Understanding Variable Naming in Ruby](https://www.ruby-forum.com/t/understanding-variable-naming-in-ruby/81897)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 2\
**Last updated:** [March 14, 2006, 10:01pm UTC](https://www.ruby-forum.com/t/understanding-variable-naming-in-ruby/81897 "2006-03-14T22:01:09Z")

</div>

I’m trying to better understand how variables are named in Ruby… here’s what I think I understand. Please correct me where I misunderstand: #Globals are defined outside a class/method and are #available everywhere. M…

---

## [Writing Good #each Methods?](https://www.ruby-forum.com/t/writing-good-each-methods/54781)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 12\
**Last updated:** [March 14, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/writing-good-each-methods/54781 "2006-03-14T21:54:19Z")

</div>

I’m working my way through The Ruby Course slides at the moment and am on the section about dynamicity. Specifically I’m on slide 59 right now, the slide about a ListItem – essentially a link list. So, this got me th…

---

## [Re: Small optimization tips](https://www.ruby-forum.com/t/re-small-optimization-tips/81831)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 8\
**Last updated:** [March 14, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/re-small-optimization-tips/81831 "2006-03-14T21:47:51Z")

</div>

I made a script run 800% faster by using the Time class instead of the DateTime class. You can see the scripts and more details at http://www.recentrambles.com/pragmatic/view/33 Also, using a “memoize” function when…

---

## [FSDB to turn file systems into applications](https://www.ruby-forum.com/t/fsdb-to-turn-file-systems-into-applications/81661)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 14, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/fsdb-to-turn-file-systems-into-applications/81661 "2006-03-14T21:09:39Z")

</div>

In search for a simple database system that’s also an an universal application service ( similar to Frontier) I’ve started again to play around with FSDB. By accident I’ve found out that this way every file system can…

---

## [Implementing concurrent Test Cases in Ruby and Watir](https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540)

<div class="topic-metadata">

**Author:** [@kalensr](https://www.ruby-forum.com/u/kalensr)\
**Replies:** 2\
**Last updated:** [March 14, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540 "2006-03-14T20:54:13Z")

</div>

Can anyone point me to an example of executing a test case in multiple threads concurrently? There are 10 instances of the application under tests running on 4 different boxes. I am attempting to build a release nigh…

---

## [Abstract method in Ruby](https://www.ruby-forum.com/t/abstract-method-in-ruby/79853)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 54\
**Last updated:** [March 14, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/abstract-method-in-ruby/79853 "2006-03-14T20:04:54Z")

</div>

To define abstract method in Ruby, I use NotImplementedError like the following: class Foo def m1 raise NotImpelemntedError("#{self.class.name}#m1() is not implemented.") end end I think it is convenient if the M…

---

## [Constraint Processing](https://www.ruby-forum.com/t/constraint-processing/54780)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 2\
**Last updated:** [March 14, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/constraint-processing/54780 "2006-03-14T19:46:59Z")

</div>

I had to give this a couple tries before I just broke down and went for what amounts to brute force. This solution can get slow pretty quickly; I’m sure there are some easy speedups (i.e. narrow the search space) that…

---

## [Ruby Include Dirs for libs](https://www.ruby-forum.com/t/ruby-include-dirs-for-libs/54804)

<div class="topic-metadata">

**Author:** [@Florian\_Assmann](https://www.ruby-forum.com/u/Florian_Assmann)\
**Replies:** 3\
**Last updated:** [March 14, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/ruby-include-dirs-for-libs/54804 "2006-03-14T19:31:16Z")

</div>

Hi there, does anybody know which are the default dirs for ruby to search its …rb’s and .so’s? I tried to include postgres-pr but ruby fails finding it. It’s residing in my ruby/gems/1.8/ dir. I don’t know it’s reall…

---

## [Unicode in ruby](https://www.ruby-forum.com/t/unicode-in-ruby/78376)

<div class="topic-metadata">

**Author:** [@nibbler61](https://www.ruby-forum.com/u/nibbler61)\
**Replies:** 34\
**Last updated:** [March 14, 2006, 5:50pm UTC](https://www.ruby-forum.com/t/unicode-in-ruby/78376 "2006-03-14T17:50:00Z")

</div>

i’m using IO.foreach to parse the lines in a file. now i’m trying to get it to work with unicode encoded files. does ruby support unicode? how do i compare a variable with a unicode constant string? the script goes so…

---

## [Popen broken in win32?](https://www.ruby-forum.com/t/popen-broken-in-win32/54816)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 2\
**Last updated:** [March 14, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/popen-broken-in-win32/54816 "2006-03-14T17:31:31Z")

</div>

I am running a visual studio command line build via IO.popen, like so: IO.popen(“devenv my\_solution.sln /rebuild ‘release Win32’”) do | pipe | pipe.each\_line { |line| puts line } end While if I run this command in a …

---

## [Re: abstract method in Ruby](https://www.ruby-forum.com/t/re-abstract-method-in-ruby/81726)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/re-abstract-method-in-ruby/81726 "2006-03-14T17:07:05Z")

</div>

Bill B. wrote: If I have the constraint that objects within a certain group must be able to respond to the methods that make up behavior X, then what would be the best way to ensure that? Unit tests? :wink: Ste…

---

## [Re: abstract method in Ruby](https://www.ruby-forum.com/t/re-abstract-method-in-ruby/54814)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/re-abstract-method-in-ruby/54814 "2006-03-14T16:24:14Z")

</div>

end – END ABSTRACT METHOD IMPLEMENTATION ----------------------------- – – Jim W. g that’s a realy good one! cheers Simon

---

## [Autorequire](https://www.ruby-forum.com/t/autorequire/80422)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 14, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/autorequire/80422 "2006-03-14T15:17:01Z")

</div>

I know Rails uses some const\_missing magic to automatically require modules and classes based on their names (ie RealEstate::Location.new –\> autorequires ‘real\_estate/location’). Any advice on how to use this for gene…

---

## [Nabaztag 0.1](https://www.ruby-forum.com/t/nabaztag-0-1/80419)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 8\
**Last updated:** [March 14, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/nabaztag-0-1/80419 "2006-03-14T15:07:40Z")

</div>

http://opensource.reevoo.com/2006/03/13/release-nabaztag-01/ I’m pleased to announce the public release of our Nabaztag communication library for Ruby. The Nabaztag (http://www.nabaztag.com/) is a small electronic rab…

---

## [Newbie question about the # symbol](https://www.ruby-forum.com/t/newbie-question-about-the-symbol/54801)

<div class="topic-metadata">

**Author:** [@justin](https://www.ruby-forum.com/u/justin)\
**Replies:** 5\
**Last updated:** [March 14, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/newbie-question-about-the-symbol/54801 "2006-03-14T14:46:39Z")

</div>

I have just started learning Ruby and I am going through as much documentation as I can find. The only question that I cannot seem to find an answer to concerns the use of the # symbol when referring to methods (I th…

---

## [Win32ole question - how to get handle on currently running a](https://www.ruby-forum.com/t/win32ole-question-how-to-get-handle-on-currently-running-a/79930)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 3\
**Last updated:** [March 14, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/win32ole-question-how-to-get-handle-on-currently-running-a/79930 "2006-03-14T14:45:55Z")

</div>

I need to process a bunch of word files using win32ole. word = WIN32OLE.new(‘word.application’) starts a new word application instance each time it executes. Is there a way to get a hold of the currently running word…

---

## [RDoc Doesn't like quoted symbols](https://www.ruby-forum.com/t/rdoc-doesnt-like-quoted-symbols/81696)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 1:46pm UTC](https://www.ruby-forum.com/t/rdoc-doesnt-like-quoted-symbols/81696 "2006-03-14T13:46:07Z")

</div>

When running rdoc against Facets it reports a number of mesages like this: lib/facet/kernel/generate\_method\_name.rb:15:20: ‘:’ not followed by identified or operator Line 15 is: return :"#{s}" This is perfectly leg…

---

## [Suggestions for improving code](https://www.ruby-forum.com/t/suggestions-for-improving-code/79904)

<div class="topic-metadata">

**Author:** [@adityam](https://www.ruby-forum.com/u/adityam)\
**Replies:** 2\
**Last updated:** [March 14, 2006, 8:02am UTC](https://www.ruby-forum.com/t/suggestions-for-improving-code/79904 "2006-03-14T08:02:00Z")

</div>

I am trying to convert a plain text file into a tex file with somemarkup. I have the following piece of code that does most of the work. It works fine but does not “look good”. Can someone suggest how can I improve th…

---

## [Newbie Questions: How to set the proxy to download files by](https://www.ruby-forum.com/t/newbie-questions-how-to-set-the-proxy-to-download-files-by/54786)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 7:30am UTC](https://www.ruby-forum.com/t/newbie-questions-how-to-set-the-proxy-to-download-files-by/54786 "2006-03-14T07:30:26Z")

</div>

Hi I want to download a log file from the remote server, and I’m outside of the firewall. so I need to access the remote server by proxy. But I failed to figure out what’s the correct way to set the proxy. I had the …

---

## [Passing methods around](https://www.ruby-forum.com/t/passing-methods-around/54720)

<div class="topic-metadata">

**Author:** [@Greg\_Buchholz](https://www.ruby-forum.com/u/Greg_Buchholz)\
**Replies:** 7\
**Last updated:** [March 14, 2006, 5:26am UTC](https://www.ruby-forum.com/t/passing-methods-around/54720 "2006-03-14T05:26:25Z")

</div>

I’m a Ruby novice working my way through the pickaxe book, and I’ve got what should be an easy syntax question. On page 84 of chapter 6, the authors present the following program… print "(t)imes or (p)lus: " times = …

---

## [Trying to install win32-service gem](https://www.ruby-forum.com/t/trying-to-install-win32-service-gem/81564)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 14, 2006, 3:11am UTC](https://www.ruby-forum.com/t/trying-to-install-win32-service-gem/81564 "2006-03-14T03:11:35Z")

</div>

I’m trying to install the rubygem for win32-service but can’t get it to work. Here’s the command I use: gem install win32-service --remote --include-dependencies --test and the output is below. It says “Successfully i…

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

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