# Ruby

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

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

---

## [Mechanize timeout errors](https://www.ruby-forum.com/t/mechanize-timeout-errors/101946)

<div class="topic-metadata">

**Author:** [@akanksha](https://www.ruby-forum.com/u/akanksha)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/mechanize-timeout-errors/101946 "2006-08-08T20:45:27Z")

</div>

I am using mechanize for scraping some urls. begin page = agent.get(url) rescue puts “oops!!” end catches invalid urls etc. , but how to I handle timeout errors? In particular this is the error I get : request-he…

---

## [FireRuby 0.4.1 and blob data](https://www.ruby-forum.com/t/fireruby-0-4-1-and-blob-data/101696)

<div class="topic-metadata">

**Author:** [@Vitor\_P](https://www.ruby-forum.com/u/Vitor_P)\
**Replies:** 2\
**Last updated:** [August 8, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/fireruby-0-4-1-and-blob-data/101696 "2006-08-08T20:31:04Z")

</div>

Hello, First, I would like to apologize if I am skipping any vital steps in my ignorance. I am currently building a GTK application using Ruby, a small data retrieval and storage thingie that deals basically with drag…

---

## [Irc](https://www.ruby-forum.com/t/irc/101939)

<div class="topic-metadata">

**Author:** [@innu](https://www.ruby-forum.com/u/innu)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/irc/101939 "2006-08-08T20:00:25Z")

</div>

Can i use ruby language for building irc client and how? Im pretty newbie about system programming. So all suggestions are welcome.

---

## [An integer's life span?](https://www.ruby-forum.com/t/an-integers-life-span/101787)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 12\
**Last updated:** [August 8, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/an-integers-life-span/101787 "2006-08-08T19:57:24Z")

</div>

Hello! Here’s my code. class Integer def prime? return false if self \< 2 return @is\_prime if @prime\_cached @prime\_cached = true (2…(self \*\* 0.5)).each do |i| return (@is\_prime = false) if i.prime? and self % i =…

---

## [End-to-End performance - premature optimization](https://www.ruby-forum.com/t/end-to-end-performance-premature-optimization/101938)

<div class="topic-metadata">

**Author:** [@igouy](https://www.ruby-forum.com/u/igouy)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 7:30pm UTC](https://www.ruby-forum.com/t/end-to-end-performance-premature-optimization/101938 "2006-08-08T19:30:23Z")

</div>

Peter H. wrote: Isaac G. wrote: -snip- D and Clean are other languages you might look at, but using a different language won’t make what you’re trying to do any more feasible. True, but as I’ve said before C is …

---

## [Ruby can't see RMagick installed from gem on FC4](https://www.ruby-forum.com/t/ruby-cant-see-rmagick-installed-from-gem-on-fc4/100997)

<div class="topic-metadata">

**Author:** [@komb](https://www.ruby-forum.com/u/komb)\
**Replies:** 27\
**Last updated:** [August 8, 2006, 7:28pm UTC](https://www.ruby-forum.com/t/ruby-cant-see-rmagick-installed-from-gem-on-fc4/100997 "2006-08-08T19:28:38Z")

</div>

I’m planning on using RMagick to do thumbnails for a Rails project. Installed RMagick using ‘gem install rmagick’ Here are last few lines… gcc -fPIC -Wall -g -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i3…

---

## [Strange irb behaviour](https://www.ruby-forum.com/t/strange-irb-behaviour/101917)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/strange-irb-behaviour/101917 "2006-08-08T19:21:22Z")

</div>

HI When i use irb, sometimes i get a strage behavour especially when i do a error. As you can see from the below example, where it jumped from rb(main):034:0 to rb(main):035:1 when i did not close the block properly…

---

## [Profiling Ruby Matrix operations](https://www.ruby-forum.com/t/profiling-ruby-matrix-operations/101636)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 11\
**Last updated:** [August 8, 2006, 5:27pm UTC](https://www.ruby-forum.com/t/profiling-ruby-matrix-operations/101636 "2006-08-08T17:27:07Z")

</div>

A while back, I wondered if anyone had ever profiled the Ruby interpreter itself with “gprof”. I don’t recall if anyone ever answered, so I ran a short test to see what would happen. I’ll spare you the details, since …

---

## [Require 'mysql' is failing](https://www.ruby-forum.com/t/require-mysql-is-failing/101886)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [August 8, 2006, 5:24pm UTC](https://www.ruby-forum.com/t/require-mysql-is-failing/101886 "2006-08-08T17:24:20Z")

</div>

I really thought I’d be through at this point … but Thanks to several of you here (and I REALLY appreciate the help), I FINALLY managed to get the mysql gem installed. When I ran gem install, it gave me several option…

---

## [Prob with tutorial example](https://www.ruby-forum.com/t/prob-with-tutorial-example/101880)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 9\
**Last updated:** [August 8, 2006, 5:12pm UTC](https://www.ruby-forum.com/t/prob-with-tutorial-example/101880 "2006-08-08T17:12:05Z")

</div>

Hey there, just got the pickaxe book, and i am working thru the beginning. one example prog is this #!/usr/bin/ruby def fib\_up\_to(max) i1, i2 = 1, 1 while i1 \<= max yeild i1 i1, i2 = i2, i1 + i2 end end fib\_up…

---

## [Contract to hire: 2- Ruby Developers- Denver, CO 3-6month](https://www.ruby-forum.com/t/contract-to-hire-2-ruby-developers-denver-co-3-6month/101896)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/contract-to-hire-2-ruby-developers-denver-co-3-6month/101896 "2006-08-08T16:33:00Z")

</div>

Kforce is currently seeking a Ruby on Rails Web D. for a 3-month+ contract to perm position in Denver. Length of Assignment: 3 months contract to perm. Environment: UNIX / Linux with deployment on Linux servers. Oracl…

---

## [Value of $1is retained](https://www.ruby-forum.com/t/value-of-1is-retained/101844)

<div class="topic-metadata">

**Author:** [@Anders\_V](https://www.ruby-forum.com/u/Anders_V)\
**Replies:** 3\
**Last updated:** [August 8, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/value-of-1is-retained/101844 "2006-08-08T15:38:53Z")

</div>

Hi I am using regexp in a loop to extract a value from a string. I have noticed that when string is nil $1 keeps its old value, which means that the expression after regexp does not get the correct value (which shoul…

---

## [File.join : can't convert Fixnum into String?](https://www.ruby-forum.com/t/file-join-cant-convert-fixnum-into-string/101862)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [August 8, 2006, 3:02pm UTC](https://www.ruby-forum.com/t/file-join-cant-convert-fixnum-into-string/101862 "2006-08-08T15:02:46Z")

</div>

Where’s the Fixnum? class X \< Array def to\_s join(’.’) end def inspect ; to\_s ; end end x=X.new x \<\< 1 x \<\< 2 x \<\< 3 x #=\> 1.2.3 x.class #=\> X File.join( x, ‘index.rb’ ) TypeError: can’t convert…

---

## [AMD Dual Core and Ruby](https://www.ruby-forum.com/t/amd-dual-core-and-ruby/101845)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 6\
**Last updated:** [August 8, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/amd-dual-core-and-ruby/101845 "2006-08-08T14:40:18Z")

</div>

Hi, does the ruby interpreter use both cores automagically or do I have to do/program something special ? Kind regards, mcc

---

## [Method\_missing to define\_method](https://www.ruby-forum.com/t/method-missing-to-define-method/101650)

<div class="topic-metadata">

**Author:** [@maraby](https://www.ruby-forum.com/u/maraby)\
**Replies:** 4\
**Last updated:** [August 8, 2006, 2:39pm UTC](https://www.ruby-forum.com/t/method-missing-to-define-method/101650 "2006-08-08T14:39:18Z")

</div>

Given the circumstance that you don’t want to explicitly predefine your methods for properties, etc, but that you’re certain your parameters won’t somehow change to affect your design, would it be beneficial to have m…

---

## [Humanized Xml tree navigation](https://www.ruby-forum.com/t/humanized-xml-tree-navigation/100707)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 20\
**Last updated:** [August 8, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/humanized-xml-tree-navigation/100707 "2006-08-08T14:14:34Z")

</div>

Does anybody know of a library that allows to go through an xml tree as if it were made of normal objects? I have seen e4x on rubyforge, but it doesn’t seem to work. simplexml returns hashes rather than employing dy…

---

## [Porting perl regexp to ruby](https://www.ruby-forum.com/t/porting-perl-regexp-to-ruby/101865)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/porting-perl-regexp-to-ruby/101865 "2006-08-08T14:08:33Z")

</div>

I have a perl regexp that strips c++ comments (I have not constructed this myself, found it here: Perl Documentation - Perldoc Browser ). However, it uses the ‘e’ modifier that will take the replacement value and eval…

---

## [ANN: ruby-snarl](https://www.ruby-forum.com/t/ann-ruby-snarl/101779)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 2\
**Last updated:** [August 8, 2006, 1:59pm UTC](https://www.ruby-forum.com/t/ann-ruby-snarl/101779 "2006-08-08T13:59:32Z")

</div>

Envious of autotest/growl integration, but stuck in Win32 land? Well come checkout ruby-snarl - the initial release includes full support of autotest, but can be used for most any application that needs an attractive …

---

## [Resolv.getaddress](https://www.ruby-forum.com/t/resolv-getaddress/101843)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 1:59pm UTC](https://www.ruby-forum.com/t/resolv-getaddress/101843 "2006-08-08T13:59:32Z")

</div>

e$BEOJUE/Li$G$9!#e(B Resolv.getaddress e$B$,\<:GT$9$k$h$&$G$9!#e(B $ /t/bin/ruby-1.9.0 -rresolv -e ‘p Resolv.getaddress(“www.ruby-lang.org”)’ /t/lib/ruby/1.9/resolv.rb:89:in Resolv#getaddress': no address for www.ru…

---

## [\[ANN\] 0.3.13.4 Pre-Release -- Almost Ready](https://www.ruby-forum.com/t/ann-0-3-13-4-pre-release-almost-ready/101861)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 1\
**Last updated:** [August 8, 2006, 12:57pm UTC](https://www.ruby-forum.com/t/ann-0-3-13-4-pre-release-almost-ready/101861 "2006-08-08T12:57:30Z")

</div>

Hi folks, I just put a pre-release of Mongrel up for people to try. You can install it with: gem install mongrel --source=http://mongrel.rubyforge.org/releases/ And try out your application and confirm the stuff wor…

---

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

<div class="topic-metadata">

**Author:** [@Morton\_G](https://www.ruby-forum.com/u/Morton_G)\
**Replies:** 53\
**Last updated:** [August 8, 2006, 11:51am UTC](https://www.ruby-forum.com/t/ruby-cookbook/101080 "2006-08-08T11:51:01Z")

</div>

Anyone care to post their first impressions on Ruby Cookbook? I haven’t seen it yet. I’d like hear what others think of it before buying or not. Regards, Morton

---

## [Min, max for Fixnum?](https://www.ruby-forum.com/t/min-max-for-fixnum/101863)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 2\
**Last updated:** [August 8, 2006, 11:50am UTC](https://www.ruby-forum.com/t/min-max-for-fixnum/101863 "2006-08-08T11:50:20Z")

</div>

Did I understand it right that there are no operators/functions predefined in Ruby for getting the minimum and maximum for two Fixnum? I.e. def min(a,b) a \< b ? a : b end Or did I just overlook something? Ronald

---

## [Re: Profiling Ruby Matrix operations](https://www.ruby-forum.com/t/re-profiling-ruby-matrix-operations/101846)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 10:59am UTC](https://www.ruby-forum.com/t/re-profiling-ruby-matrix-operations/101846 "2006-08-08T10:59:11Z")

</div>

This is the sort of code I’d like to write in pure Ruby, rather than having to call a C library for efficiency. The matrix I generated is quite ill-conditioned. It’s quite possible that a “standard” floating poin…

---

## [How to make objects that can set $1 when obj =~ /(.)/ is cal](https://www.ruby-forum.com/t/how-to-make-objects-that-can-set-1-when-obj-is-cal/101830)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 3\
**Last updated:** [August 8, 2006, 10:41am UTC](https://www.ruby-forum.com/t/how-to-make-objects-that-can-set-1-when-obj-is-cal/101830 "2006-08-08T10:41:09Z")

</div>

Something like that would be a reasonable thing to do: class Foo def initialize(t) @text = t end def =~(x) @text =~ x end end And it works for non-capturing regexps, but when we want to capture something $1 et…

---

## [Writing native ObjC extension to ruby?](https://www.ruby-forum.com/t/writing-native-objc-extension-to-ruby/101684)

<div class="topic-metadata">

**Author:** [@Yvon\_T](https://www.ruby-forum.com/u/Yvon_T)\
**Replies:** 12\
**Last updated:** [August 8, 2006, 10:17am UTC](https://www.ruby-forum.com/t/writing-native-objc-extension-to-ruby/101684 "2006-08-08T10:17:07Z")

</div>

i’d like to write a natine objc ext to ruby. i’m in search of an example or a tuto. (i’ve found how to write C ext)

---

## [Soap and Http-access problem](https://www.ruby-forum.com/t/soap-and-http-access-problem/101386)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 5\
**Last updated:** [August 8, 2006, 9:44am UTC](https://www.ruby-forum.com/t/soap-and-http-access-problem/101386 "2006-08-08T09:44:05Z")

</div>

Hi, I’m working on an application where some of the business logic is accessible with SOAP. I’ve used SOAP4R to generate everything and it works splendid (I use http-access2 since we require https). Anyway, a week ag…

---

## [Ruby/Tk : How to show tooltips (please correct my ugly imple](https://www.ruby-forum.com/t/ruby-tk-how-to-show-tooltips-please-correct-my-ugly-imple/101675)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 5\
**Last updated:** [August 8, 2006, 8:47am UTC](https://www.ruby-forum.com/t/ruby-tk-how-to-show-tooltips-please-correct-my-ugly-imple/101675 "2006-08-08T08:47:01Z")

</div>

Could someone please help me with the following? I would like to add kind of a “show tooltips” function to my application, which means that some piece of text should be shown when the mourse moves over a certain are…

---

## [Rubymanual.org and railmanual.com?](https://www.ruby-forum.com/t/rubymanual-org-and-railmanual-com/101592)

<div class="topic-metadata">

**Author:** [@tesla](https://www.ruby-forum.com/u/tesla)\
**Replies:** 5\
**Last updated:** [August 8, 2006, 8:35am UTC](https://www.ruby-forum.com/t/rubymanual-org-and-railmanual-com/101592 "2006-08-08T08:35:00Z")

</div>

Who runs these sites and why are thye never mentioned on any of the other Rubyist websites? How are they creating the documentation? -Tesla

---

## [Writing a C ext to Ruby and dyld: NSLinkModule() error](https://www.ruby-forum.com/t/writing-a-c-ext-to-ruby-and-dyld-nslinkmodule-error/101834)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 8:31am UTC](https://www.ruby-forum.com/t/writing-a-c-ext-to-ruby-and-dyld-nslinkmodule-error/101834 "2006-08-08T08:31:59Z")

</div>

iu’ev to write a C ext to Ruby (i’ve allready an ObjC one) and, for that purpose i familiarise myself with C and Ruby ext. i’ve done the test in “How to create a Ruby extension in C in under 5 minutes” \<http://www.ru…

---

## [Ruby-VPI 0.9](https://www.ruby-forum.com/t/ruby-vpi-0-9/101832)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [August 8, 2006, 8:13am UTC](https://www.ruby-forum.com/t/ruby-vpi-0-9/101832 "2006-08-08T08:13:58Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Website: http://ruby-vpi.rubyforge.org Tutorial…

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

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