# Ruby

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

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

---

## [Need help on: Linux Gnome2 Glade Cairo callback problem](https://www.ruby-forum.com/t/need-help-on-linux-gnome2-glade-cairo-callback-problem/71873)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/need-help-on-linux-gnome2-glade-cairo-callback-problem/71873 "2006-10-18T10:39:46Z")

</div>

Hi, I have a Glade project main app window with a toolbar and 4 'drawingarea’s, into which I draw some test images using Cairo. After anywhere between 50 and 100 drawingarea updates I get the following message when c…

---

## [Ruby Regexp vs Perl and C#](https://www.ruby-forum.com/t/ruby-regexp-vs-perl-and-c/71981)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/ruby-regexp-vs-perl-and-c/71981 "2006-10-18T10:39:41Z")

</div>

I am having trouble with the Ruby regexp engine and don’t know if it is my lack of experience with Ruby, or if it just isn’t possible to do certain things with the Ruby engine. Basically I have the following code in …

---

## [Rails/Ajax/File::Tail?](https://www.ruby-forum.com/t/rails-ajax-file-tail/72651)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/rails-ajax-file-tail/72651 "2006-10-18T10:39:40Z")

</div>

I’m using File::Tail for a few projects and… would like to incorporate it into a web based interface. Has anyone done this yet? I would even settle for a java applet but I cant find one of those :frowning: I was able …

---

## [Can't get ActiveSupport::Multibyte going](https://www.ruby-forum.com/t/cant-get-activesupport-multibyte-going/72644)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/cant-get-activesupport-multibyte-going/72644 "2006-10-18T10:39:35Z")

</div>

I’ve tried a few options but none of them have worked. Rather than describe symptoms, I’ll ask: I’m not using Rails but I want to try out ActiveSupport:Multibyte. What’s the right way to get that installed & working? …

---

## [Ruby2ruby 1.1.0 Released](https://www.ruby-forum.com/t/ruby2ruby-1-1-0-released/71905)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 10\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/ruby2ruby-1-1-0-released/71905 "2006-10-18T10:39:35Z")

</div>

ruby2ruby version 1.1.0 has been released! http://seattlerb.rubyforge.org/ http://rubyforge.org/projects/seattlerb ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps. This makes mak…

---

## [Yet another Hpricot question](https://www.ruby-forum.com/t/yet-another-hpricot-question/71826)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/yet-another-hpricot-question/71826 "2006-10-18T10:39:34Z")

</div>

I’m trying to scan an html file using Hpricot to produce a table of links within the file. Right now I’ve got something like this. doc = Hpricot(open(url)). doc.search(‘a’).each do | element | puts "#{element.inner\_…

---

## [RubyInline 3.6.2 Released](https://www.ruby-forum.com/t/rubyinline-3-6-2-released/72642)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/rubyinline-3-6-2-released/72642 "2006-10-18T10:39:34Z")

</div>

RubyInline version 3.6.2 has been released! This is a quick patch for weird versions of GCC and/or linux and makes ParseTree work again on (hopefully) everything under the sun. rubyinline | software projects | by ryan…

---

## [Re: Pre-RubyConf Gathering](https://www.ruby-forum.com/t/re-pre-rubyconf-gathering/72625)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/re-pre-rubyconf-gathering/72625 "2006-10-18T10:39:32Z")

</div>

From: Ben B. \[mailto:removed\_email\_address@domain.invalid\] What does transportation from DEN (or the conference hotel) to there look like? I’m sure I’m not the only one who won’t be renting a car… I’m not normally…

---

## [Ruby vs. Rails](https://www.ruby-forum.com/t/ruby-vs-rails/71369)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 47\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/ruby-vs-rails/71369 "2006-10-18T10:39:32Z")

</div>

OK, this question came up on a local list, and I don’t have the answer. Does Rails require Ruby? Before I go any further I should point out that I have in fact been banned from the Rails list, probably for loud and vi…

---

## [Re: match with string instead of regexp fails](https://www.ruby-forum.com/t/re-match-with-string-instead-of-regexp-fails/71921)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 1\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/re-match-with-string-instead-of-regexp-fails/71921 "2006-10-18T10:39:30Z")

</div>

I thought the syntax was incorrect… “cat” =~ “a” #=\> 1 Fails as it’s looking to match a reg ex not a string. Should be: “cat” =~ /a/ #=\> 1 Or am I wrong?!?! Gem This email and any attachments are confidential to …

---

## [Re: New to ruby questions](https://www.ruby-forum.com/t/re-new-to-ruby-questions/72622)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/re-new-to-ruby-questions/72622 "2006-10-18T10:39:23Z")

</div>

From: Jeremy W. Also, if anyone can help me to understand how to end the game or any other things you might find that can help I would greatly appreciate it. How about: while game.get\_player\_command != ‘quit’ … …

---

## [Re: Isolating non-unique items in an array](https://www.ruby-forum.com/t/re-isolating-non-unique-items-in-an-array/72620)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/re-isolating-non-unique-items-in-an-array/72620 "2006-10-18T10:39:22Z")

</div>

From: Gavin K. But of course, other posts in this thread are likely faster. How much faster? Much. class Array def dcount1 Hash\[ \*uniq.map{ |e| if ( count = grep(e).size ) \> 1 \[e, count\] end }.compact.flatten …

---

## [Re: Isolating non-unique items in an array](https://www.ruby-forum.com/t/re-isolating-non-unique-items-in-an-array/72617)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/re-isolating-non-unique-items-in-an-array/72617 "2006-10-18T10:39:19Z")

</div>

a = \[“a”, “a”, “a”, “b”, “c”, “d”, “d”\] p a.duplicates\_count #=\> \[{“a”=\>3}, {“d”=\>2}\] Don’t listen to that Phrogz character, he’s insane! More like: class Array def duplicates\_count Hash\[ \*uniq.map{ |e| if ( co…

---

## [New to ruby questions](https://www.ruby-forum.com/t/new-to-ruby-questions/71959)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 9\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/new-to-ruby-questions/71959 "2006-10-18T10:39:17Z")

</div>

I am still new to ruby and programming itself. This is my first programming language. My task that was given to me for practice was to recreate the game BlackJack. I have all my classes and all my methods defined, now…

---

## [How to get Response URL value - help requested](https://www.ruby-forum.com/t/how-to-get-response-url-value-help-requested/70446)

<div class="topic-metadata">

**Author:** [@snoops](https://www.ruby-forum.com/u/snoops)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/how-to-get-response-url-value-help-requested/70446 "2006-10-18T10:39:17Z")

</div>

Hi, I have a problem here. I have a ruby code that opens Google, types “book stores” and clicks on “Search” button. Code Snippet Begins here require ‘net/http’ require ‘uri’ require ‘watir’ term=“book stores” ur…

---

## [Re: Multiple values for the same key in a Hash](https://www.ruby-forum.com/t/re-multiple-values-for-the-same-key-in-a-hash/72613)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/re-multiple-values-for-the-same-key-in-a-hash/72613 "2006-10-18T10:39:05Z")

</div>

From: Dominic S. Yes, i was thinking your later suggestion, but how do i iterate through them… the price, and quanity come back too containated (ie : 1.995 ) do i have to mess with a .split and reg exp at this poi…

---

## [Rails OSX Tiger RMagick Bus Error Abort trap](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 8\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/rails-osx-tiger-rmagick-bus-error-abort-trap/70238 "2006-10-18T10:38:56Z")

</div>

Hi; I am using a PowerBook G4 with: OSX Tiger version 10.4.7; Rubygems 0.9; Rails 1.1.6; RMagic 1.13.0 I have Ruby and friends installed at /usr/local/… just as described in: then installed RMagick as descibed in: …

---

## [Ruby appscript 0.1.1 released](https://www.ruby-forum.com/t/ruby-appscript-0-1-1-released/71863)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/ruby-appscript-0-1-1-released/71863 "2006-10-18T10:38:53Z")

</div>

Announcing the first public release of Ruby appscript, a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications using ordinary Ruby scripts. http://rb-appscript.rubyfo…

---

## [Xml/libxml thread safety](https://www.ruby-forum.com/t/xml-libxml-thread-safety/71823)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/xml-libxml-thread-safety/71823 "2006-10-18T10:38:53Z")

</div>

Hello, my simple question is that is libxml thread-safe? I would like to use it in production environment. Mage

---

## [Counting Frequency of Values in an Array (And Sorting by Fre](https://www.ruby-forum.com/t/counting-frequency-of-values-in-an-array-and-sorting-by-fre/71893)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 9\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/counting-frequency-of-values-in-an-array-and-sorting-by-fre/71893 "2006-10-18T10:38:51Z")

</div>

Is there no method for an array that will tell me the # of occurrences for an item? IE: \[“a”, “a”, “a”, “b”, “c”, “c”\].count(“a”) #producing 3 ? I almost thought that rindex would do the trick when looking at the cl…

---

## [URUG: meeting with matz](https://www.ruby-forum.com/t/urug-meeting-with-matz/72590)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/urug-meeting-with-matz/72590 "2006-10-18T10:38:42Z")

</div>

Okay, it looks like all the plans are laid. Sorry I can’t give you more warning or more details, but this is all I’ve got and I’ve only had it for a couple of hours. matz will be speaking in the BYU CS colloquia seri…

---

## [Booksales @Rubyconf?](https://www.ruby-forum.com/t/booksales-rubyconf/71711)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 15\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/booksales-rubyconf/71711 "2006-10-18T10:38:41Z")

</div>

Will someone be setting up a bookstand at Rubyconf? I see this at quite a few tech conferences. If so, I’d appreciate a pointer to whoever’s doing it. -Tim

---

## [Introducing SpecUnit](https://www.ruby-forum.com/t/introducing-specunit/72588)

<div class="topic-metadata">

**Author:** [@Trotter\_Cashion](https://www.ruby-forum.com/u/Trotter_Cashion)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 10:38am UTC](https://www.ruby-forum.com/t/introducing-specunit/72588 "2006-10-18T10:38:39Z")

</div>

Hello everyone, Two weeks ago at BarCamp NYC, I put together a little addition to Test::Unit that I’m tentatively calling SpecUnit. It clocks in at 61 lines, is well tested, and adds nested contexts to Test::Unit. I…

---

## [Re: Splitting a sentence with delimiter preserved](https://www.ruby-forum.com/t/re-splitting-a-sentence-with-delimiter-preserved/72540)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 7\
**Last updated:** [October 18, 2006, 10:36am UTC](https://www.ruby-forum.com/t/re-splitting-a-sentence-with-delimiter-preserved/72540 "2006-10-18T10:36:01Z")

</div>

From: Ajithkumar Warrier \[mailto:removed\_email\_address@domain.invalid\] puts b p string.scan( /\\w\[^.!?\]+\\S+/ ) #=\> \[“This is an example string.”, “The purpose is to save the delimiter during split.”, “Does this work…

---

## [Ap4r-0.2.0 Released](https://www.ruby-forum.com/t/ap4r-0-2-0-released/72582)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 8:27am UTC](https://www.ruby-forum.com/t/ap4r-0-2-0-released/72582 "2006-10-18T08:27:38Z")

</div>

AP4R version 0.2.0 has been released! http://rubyforge.org/projects/ap4r/ Changes: == 0.2.0 (October 17th, 2006) \* Added: Protocols to invoke asynchronous logics \* Added: At-lease-once QoS Now, asynchronous process…

---

## [Re: Non-declared variables](https://www.ruby-forum.com/t/re-non-declared-variables/72349)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 7\
**Last updated:** [October 18, 2006, 7:49am UTC](https://www.ruby-forum.com/t/re-non-declared-variables/72349 "2006-10-18T07:49:33Z")

</div>

From: Martin C. \[mailto:removed\_email\_address@domain.invalid\] Every language feature that reduces how much typing I have to do is a tangible benefit to me. It eases stress on my body machine, and speeds the delivery…

---

## [Time bug?](https://www.ruby-forum.com/t/time-bug/72245)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 4:49am UTC](https://www.ruby-forum.com/t/time-bug/72245 "2006-10-18T04:49:24Z")

</div>

I’m trying to figure out how Ruby’s Time class deals with timezones and standard/summer time, and noticed the following inconsistency (second one down): t = Time.local(2006, 3, 26, 0, 59, 59) # winter p \[t.isdst, t\] …

---

## [Newbie: Ruby and Writing Variables In Strings](https://www.ruby-forum.com/t/newbie-ruby-and-writing-variables-in-strings/72571)

<div class="topic-metadata">

**Author:** [@lmcilwain](https://www.ruby-forum.com/u/lmcilwain)\
**Replies:** 10\
**Last updated:** [October 18, 2006, 4:46am UTC](https://www.ruby-forum.com/t/newbie-ruby-and-writing-variables-in-strings/72571 "2006-10-18T04:46:49Z")

</div>

Hello all, As I am going through my ruby book (Trying to learn Ruby of course) on how to use flow control, one of the exercises is to create a program that sings “99 bottles of beer on the wall” I have started to cre…

---

## [Stompserver 0.9.4 released](https://www.ruby-forum.com/t/stompserver-0-9-4-released/72575)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 4:29am UTC](https://www.ruby-forum.com/t/stompserver-0-9-4-released/72575 "2006-10-18T04:29:23Z")

</div>

stompserver version 0.9.4 has been released! by Patrick H. http://stompserver.rubyforge.org/ Don’t want to install a JVM, but still want to use messaging? Me too, so I threw together this little server. Alright, I …

---

## [XSPF for Ruby](https://www.ruby-forum.com/t/xspf-for-ruby/72573)

<div class="topic-metadata">

**Author:** [@Pau\_Garcia\_i\_Quiles](https://www.ruby-forum.com/u/Pau_Garcia_i_Quiles)\
**Replies:** 0\
**Last updated:** [October 18, 2006, 3:09am UTC](https://www.ruby-forum.com/t/xspf-for-ruby/72573 "2006-10-18T03:09:10Z")

</div>

Hello, URI http://www.elpauer.org/xspf/ SYNOPSIS XSPF for Ruby is a pure-Ruby XML Shareable Playlist Format parser in Ruby. HISTORY Current version is 0.2, the first public version. STATUS Parser mostly complete…

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

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