# Ruby

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

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

---

## [Libnet4r errors](https://www.ruby-forum.com/t/libnet4r-errors/119269)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/libnet4r-errors/119269 "2007-11-05T18:09:19Z")

</div>

Hi @all For my packetgenerator, I use a rubyadapter to share the available libnet library in C. It runs well, but when I create over 1000 packets, the buffer is overflowing (Error: libnet\_write\_link(): only -1 bytes …

---

## [Ruby: Watir HRESULT error code 0x80020006](https://www.ruby-forum.com/t/ruby-watir-hresult-error-code-0x80020006/119265)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/ruby-watir-hresult-error-code-0x80020006/119265 "2007-11-05T17:33:41Z")

</div>

Hi, I’m having some problems with a Ruby script that I’ve adapted to use HTTPWatch. The program uses Watir, and goes through a site and checks all the links. However when the link checker reaches a page that is a red…

---

## [JRuby performance questions answered](https://www.ruby-forum.com/t/jruby-performance-questions-answered/118862)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 16\
**Last updated:** [November 5, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/jruby-performance-questions-answered/118862 "2007-11-05T16:42:44Z")

</div>

Many folks still seem to be in the dark about JRuby performance relative to Ruby 1.8.x. I figured a short post with some basic info could start a discussion for anyone wanting to know more. Long story short, JRuby 1.1…

---

## [Def blah do |x| -- alternate method definition syntax](https://www.ruby-forum.com/t/def-blah-do-x-alternate-method-definition-syntax/119224)

<div class="topic-metadata">

**Author:** [@jhosteny](https://www.ruby-forum.com/u/jhosteny)\
**Replies:** 11\
**Last updated:** [November 5, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/def-blah-do-x-alternate-method-definition-syntax/119224 "2007-11-05T15:40:44Z")

</div>

Hi all, This came up in a discussion about Ruby with a friend who is learning… Why aren’t method definitions more like blocks? Perhaps it’s easier to explain with some examples. Consider the method blah: def blah(x) …

---

## [Delete files in a directory](https://www.ruby-forum.com/t/delete-files-in-a-directory/119123)

<div class="topic-metadata">

**Author:** [@oderas](https://www.ruby-forum.com/u/oderas)\
**Replies:** 4\
**Last updated:** [November 5, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/delete-files-in-a-directory/119123 "2007-11-05T14:44:11Z")

</div>

Hello, this is my first post here, so first i would like to thanks all the people who works for this site. Well, i’m trying to set up a little script that should delete all the files in a given drectory; the system sh…

---

## [Rucola 0.0.1 released](https://www.ruby-forum.com/t/rucola-0-0-1-released/119184)

<div class="topic-metadata">

**Author:** [@el-oy](https://www.ruby-forum.com/u/el-oy)\
**Replies:** 6\
**Last updated:** [November 5, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/rucola-0-0-1-released/119184 "2007-11-05T13:21:55Z")

</div>

Hello, Yesterday we released the first alpha version of rucola: http://rucola.rubyforge.org/ For a screencast (showed at RubyConf by Dr Nic) using the rucola command see this post: http://www.superalloy.nl/blog/2007…

---

## [Drawing in ruby (antigrain bindings)](https://www.ruby-forum.com/t/drawing-in-ruby-antigrain-bindings/119213)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 4\
**Last updated:** [November 5, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/drawing-in-ruby-antigrain-bindings/119213 "2007-11-05T12:42:42Z")

</div>

Hi! I’m needing a good drawing solution for ruby. All the present options are ugly IMHO, because require a very big framework to work (cairo needs GTK bindings for ruby for working out of the box in windows, don’t kno…

---

## [X=\[\]; x\[:bla\]\[:some\_key\] does not work?](https://www.ruby-forum.com/t/x-x-bla-some-key-does-not-work/119150)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 24\
**Last updated:** [November 5, 2007, 11:28am UTC](https://www.ruby-forum.com/t/x-x-bla-some-key-does-not-work/119150 "2007-11-05T11:28:21Z")

</div>

Hi all PHP lets me easily create multidimensional hashes using the following syntax: x = array(); x\[“bla”\]\[“some\_key”\] = true; Is Ruby not capable of doing this? x = \[\] x\[:bla\]\[:some\_key\] = true gives me a nil er…

---

## [Can't use "|" in open-uri](https://www.ruby-forum.com/t/cant-use-in-open-uri/119237)

<div class="topic-metadata">

**Author:** [@UTUMI\_Hirosi](https://www.ruby-forum.com/u/UTUMI_Hirosi)\
**Replies:** 2\
**Last updated:** [November 5, 2007, 11:10am UTC](https://www.ruby-forum.com/t/cant-use-in-open-uri/119237 "2007-11-05T11:10:47Z")

</div>

e$BFb3$$H?=$7$^$9!#$O$8$a$^$7$F!#e(B open-uri e$B$G;HMQ$9$kJ8;zNs$Ke(B “|” e$B$,4^$^$l$F$$$k$H!"e(B bad URI e$B$HI=\<($5$l$F=\*N;$7$F$7$^$$$^$9!#e(B e$B;d$Oe(B Yahoo!e$B%G%Y%m%C%Q!\<%M%C%H%o!\<%/$Ne(B e$B!VF|K\\8l7ABVAG2r…

---

## [How to make Jruby faster?](https://www.ruby-forum.com/t/how-to-make-jruby-faster/119233)

<div class="topic-metadata">

**Author:** [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 8:52am UTC](https://www.ruby-forum.com/t/how-to-make-jruby-faster/119233 "2007-11-05T08:52:36Z")

</div>

The recent Jruby 1.1b should be nearly or faster than matz ruby implementation. However, when I try to run it for a big source file ~2Mb, I found that Jruby still around 40% slower than matz ruby. (matz ruby time is n…

---

## [This is how we Roll](https://www.ruby-forum.com/t/this-is-how-we-roll/119191)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 16\
**Last updated:** [November 5, 2007, 3:20am UTC](https://www.ruby-forum.com/t/this-is-how-we-roll/119191 "2007-11-05T03:20:10Z")

</div>

Hi– I’ve decide to go ahead and announce Roll(s) today. Even though the code still needs fine-tuning and the docs aren’t completely up to date, I’ve been using it productively for the last few weeks. So I figure it’s…

---

## [Any recovering PHP coders around? was Re: x=does not work?](https://www.ruby-forum.com/t/any-recovering-php-coders-around-was-re-x-does-not-work/119194)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 3\
**Last updated:** [November 5, 2007, 3:18am UTC](https://www.ruby-forum.com/t/any-recovering-php-coders-around-was-re-x-does-not-work/119194 "2007-11-05T03:18:59Z")

</div>

On 11/3/07, Joshua M. removed\_email\_address@domain.invalid wrote: Ups I’m sorry, I messed things up because PHP uses \[\] for both arrays and hashes. E-mail me off list if you want to help me with something. It’s occ…

---

## [30 lines implementation of eRuby](https://www.ruby-forum.com/t/30-lines-implementation-of-eruby/119219)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 3:17am UTC](https://www.ruby-forum.com/t/30-lines-implementation-of-eruby/119219 "2007-11-05T03:17:49Z")

</div>

Hi all, Do you like eRuby? Do you want to customize ERB? The following is 30 lines implementation of eRuby. This will help you to get your own eRuby implementation. class TinyEruby def initialize(input=nil) @s…

---

## [Heel 0.4.0 Released](https://www.ruby-forum.com/t/heel-0-4-0-released/119217)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 2:14am UTC](https://www.ruby-forum.com/t/heel-0-4-0-released/119217 "2007-11-05T02:14:41Z")

</div>

heel version 0.4.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 webp…

---

## [Rubyforge and httpclient](https://www.ruby-forum.com/t/rubyforge-and-httpclient/119141)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 3\
**Last updated:** [November 5, 2007, 2:09am UTC](https://www.ruby-forum.com/t/rubyforge-and-httpclient/119141 "2007-11-05T02:09:25Z")

</div>

I know I’ve asked this before, but I’m still at a loss. Does anyone have any idea why every time I login to Rubyforge.org using httpclient (v2.1.2) I get this message: at depth 0 - 18: self signed certificate My scri…

---

## [Check if MyClass extends OtherClass?](https://www.ruby-forum.com/t/check-if-myclass-extends-otherclass/119207)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [November 5, 2007, 12:58am UTC](https://www.ruby-forum.com/t/check-if-myclass-extends-otherclass/119207 "2007-11-05T00:58:24Z")

</div>

Hi all def OtherClass end def MyClass \< OtherClass end How can I check if MyClass extends OtherClass? When I have an instance I can call my\_class\_instance.kind\_of?(OtherClass), but what can I call when only having…

---

## [Problems install mongrel](https://www.ruby-forum.com/t/problems-install-mongrel/119208)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 12:03am UTC](https://www.ruby-forum.com/t/problems-install-mongrel/119208 "2007-11-05T00:03:42Z")

</div>

Hey Guys, I’m having problems with installing Mongrel on Ubuntu 7.1 (Gutsy Gibbons). I installed the ruby dev library as per an earlier thread and that got me further along the way. The install completes with the f…

---

## [Sprintf percent sign problem](https://www.ruby-forum.com/t/sprintf-percent-sign-problem/119173)

<div class="topic-metadata">

**Author:** [@Efthimios\_Bothos](https://www.ruby-forum.com/u/Efthimios_Bothos)\
**Replies:** 2\
**Last updated:** [November 4, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/sprintf-percent-sign-problem/119173 "2007-11-04T20:18:52Z")

</div>

Hi, I am trying to format some text using sprintf. The text itself contains the percent sign (%). When I use it without any escape character, as expected ruby throws error (unkonown format sequence). When I use the …

---

## [ANN: Sequel 0.3.3 Released](https://www.ruby-forum.com/t/ann-sequel-0-3-3-released/119195)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [November 4, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-3-3-released/119195 "2007-11-04T19:54:19Z")

</div>

Sequel version 0.3.3 has just been released. This release includes extensions for easily specifying relative time stamps and a simple worker thread implementation for asynchronous processing. Sequel is a lightweight O…

---

## [Class from string](https://www.ruby-forum.com/t/class-from-string/62057)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 9\
**Last updated:** [November 4, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/class-from-string/62057 "2007-11-04T18:27:16Z")

</div>

Is there a better way to get to a class when you have the class name in a string? (This is rails-related, btw)… For instance, if I have a string clname = ‘Train’, and I want to access a class method Train#label. I…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/119175)

<div class="topic-metadata">

**Author:** [@terry\_p](https://www.ruby-forum.com/u/terry_p)\
**Replies:** 6\
**Last updated:** [November 4, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/no-subject/119175 "2007-11-04T18:14:49Z")

</div>

This is my first thread on this mailing list, so bare with me. I’ve this and it does download TARGET from the FTP server successfully – I also have accessed it via lukeftp, i.e. the ftp client that comes with my Fre…

---

## [Emacs highlighting, keywords](https://www.ruby-forum.com/t/emacs-highlighting-keywords/119179)

<div class="topic-metadata">

**Author:** [@rolfa](https://www.ruby-forum.com/u/rolfa)\
**Replies:** 1\
**Last updated:** [November 4, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/emacs-highlighting-keywords/119179 "2007-11-04T16:16:29Z")

</div>

Hi, I’m a new user trying to set up a Ruby dev environment. I’ve gotten to the point where emacs is willing to highlight some syntax, but not all. Specifically, I get strings in grey and comments in red, but keywords …

---

## [Html designing?](https://www.ruby-forum.com/t/html-designing/119105)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 1\
**Last updated:** [November 4, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/html-designing/119105 "2007-11-04T16:11:47Z")

</div>

Dear Friends, How can I start to write the html desinging in rails. Please could anyone help me. And also ,I want basic connectivity and what are things are needed. How can I run the html script in rails. by vellin…

---

## [Monkeybars 0.5 released](https://www.ruby-forum.com/t/monkeybars-0-5-released/119182)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [November 4, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/monkeybars-0-5-released/119182 "2007-11-04T14:37:33Z")

</div>

Monkeybars, a cross platform GUI building library has reached 0.5. This update includes some new features and several bug fixes. Monkeybars is now “stable”, at least with its current feature set. A better packaged di…

---

## [How do I make variables defined in a method accessible on another method?](https://www.ruby-forum.com/t/how-do-i-make-variables-defined-in-a-method-accessible-on-another-method/119164)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 4\
**Last updated:** [November 4, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/how-do-i-make-variables-defined-in-a-method-accessible-on-another-method/119164 "2007-11-04T14:36:22Z")

</div>

Team, I would like to initialize some variables/arrays in a method, and access them within another method. For instance, class My\_Class def init\_method(size) arr = Array.new(size) index = 1 end # End m…

---

## [Eruby - How to get my grubby mittens on the URL?](https://www.ruby-forum.com/t/eruby-how-to-get-my-grubby-mittens-on-the-url/118973)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 4, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/eruby-how-to-get-my-grubby-mittens-on-the-url/118973 "2007-11-04T14:05:57Z")

</div>

Hi all! 8) Suppose I have some ruby code in a .rhtml -file, which is processed by eruby. How can I get the url string of the page? (so I can chop it up). Whats a good place for reference on this? Csmr

---

## [Using flickr API to download photo](https://www.ruby-forum.com/t/using-flickr-api-to-download-photo/119118)

<div class="topic-metadata">

**Author:** [@jutirain](https://www.ruby-forum.com/u/jutirain)\
**Replies:** 1\
**Last updated:** [November 4, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/using-flickr-api-to-download-photo/119118 "2007-11-04T13:15:37Z")

</div>

I have wrote a small script to download flickr photo by tags, as the following ======================================= require ‘rubygems’ require ‘flickr’ flickr = Flickr.new for page\_iter in (1…100) criteria = { …

---

## [Database speed issues](https://www.ruby-forum.com/t/database-speed-issues/119061)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 9\
**Last updated:** [November 4, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/database-speed-issues/119061 "2007-11-04T12:30:31Z")

</div>

So, I have a bit of a design problem. I have an application that work, but not as well as I would like it to. My problem is that I had to write an application that checks millions of records against hundreds of millio…

---

## [The return of the son of Umlaute](https://www.ruby-forum.com/t/the-return-of-the-son-of-umlaute/118769)

<div class="topic-metadata">

**Author:** [@rainer](https://www.ruby-forum.com/u/rainer)\
**Replies:** 6\
**Last updated:** [November 4, 2007, 11:46am UTC](https://www.ruby-forum.com/t/the-return-of-the-son-of-umlaute/118769 "2007-11-04T11:46:41Z")

</div>

Hello everybody, I’d like to get a hint about a little Ruby problem I’m dealing with. In my spare time I wrote a little Ruby program with a plain text interface for I/O. I use Windows XP (yeah, I know :slight\_smile: w…

---

## [Sprintf percent sign problem](https://www.ruby-forum.com/t/sprintf-percent-sign-problem/119172)

<div class="topic-metadata">

**Author:** [@mpthimios](https://www.ruby-forum.com/u/mpthimios)\
**Replies:** 2\
**Last updated:** [November 4, 2007, 10:09am UTC](https://www.ruby-forum.com/t/sprintf-percent-sign-problem/119172 "2007-11-04T10:09:38Z")

</div>

Hi, I am trying to format some text using sprintf. The text itself contains the percent sign (%). When I use it without any escape character, as expected ruby throws error (unkonown format sequence). When I use the …

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

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