# Ruby

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

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

---

## [There has got to be a better way](https://www.ruby-forum.com/t/there-has-got-to-be-a-better-way/99798)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 7\
**Last updated:** [July 26, 2006, 8:23am UTC](https://www.ruby-forum.com/t/there-has-got-to-be-a-better-way/99798 "2006-07-26T08:23:50Z")

</div>

i’m looking to simplify the below… @tournament.rounds = Array.new(4) { Round.new } @tournament.rounds\[0\].matches = Array.new(8) { Match.new } @tournament.rounds\[1\].matches = Array.new(4) { Match.new } @tournament.r…

---

## [ParseDate in local format](https://www.ruby-forum.com/t/parsedate-in-local-format/99799)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 2\
**Last updated:** [July 26, 2006, 8:01am UTC](https://www.ruby-forum.com/t/parsedate-in-local-format/99799 "2006-07-26T08:01:27Z")

</div>

when a user choose a date from my datepicker calendar, an european local startdate is displayed in the text field : 30/7/2006, fine ! As I must add 10 days to this starting date to ‘ajax-modify’ the ending date…

---

## [Re: Ducks!](https://www.ruby-forum.com/t/re-ducks/99919)

<div class="topic-metadata">

**Author:** [@William\_SBillS\_Froe](https://www.ruby-forum.com/u/William_SBillS_Froe)\
**Replies:** 0\
**Last updated:** [July 26, 2006, 6:37am UTC](https://www.ruby-forum.com/t/re-ducks/99919 "2006-07-26T06:37:11Z")

</div>

Me … I sidestepped all of that and became an Illini. :slight\_smile: But my heart is with the Cougars. If it snarls like a cougar … Now your talking! Go Illini! I - L - L

---

## [Ducks!](https://www.ruby-forum.com/t/ducks/99850)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 26, 2006, 4:41am UTC](https://www.ruby-forum.com/t/ducks/99850 "2006-07-26T04:41:37Z")

</div>

Hi – I was just in downtown Portland, taking a lunch break from OSCON, and I happened to walk past the Duck Shop! It turns out that University of Oregon’s athletic teams are called the Ducks. I guess if it bats lik…

---

## [Re: Hash order bug?](https://www.ruby-forum.com/t/re-hash-order-bug/99796)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [July 26, 2006, 2:39am UTC](https://www.ruby-forum.com/t/re-hash-order-bug/99796 "2006-07-26T02:39:29Z")

</div>

=\> false} Now, i delete the foo function from the code (the foo Hashes are unordered. If you need an ordered collection, you’ll need to use an array. David Oh my god, i didn’t know it, sorry. Is that a missin…

---

## [Open-uri question](https://www.ruby-forum.com/t/open-uri-question/99871)

<div class="topic-metadata">

**Author:** [@akanksha](https://www.ruby-forum.com/u/akanksha)\
**Replies:** 2\
**Last updated:** [July 26, 2006, 2:29am UTC](https://www.ruby-forum.com/t/open-uri-question/99871 "2006-07-26T02:29:46Z")

</div>

I am using open-uri for the first time. I need to visit a bunch of urls and gather some data. Here is a samll code snippet require ‘open-uri’ # allows the use of a file like API for URLs open( “http://no-way-outspaik3…

---

## [Ruby nuby and mailing lists](https://www.ruby-forum.com/t/ruby-nuby-and-mailing-lists/99863)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 2\
**Last updated:** [July 26, 2006, 1:49am UTC](https://www.ruby-forum.com/t/ruby-nuby-and-mailing-lists/99863 "2006-07-26T01:49:06Z")

</div>

rubynuby.org seems to be down. Am I the only one having problems accessing it? I was at rubynuby.org because I was looking for a beginners’ Ruby mailing list to which I could direct a friend (something perhaps e…

---

## [Meta-Meta-Programming, revisited](https://www.ruby-forum.com/t/meta-meta-programming-revisited/99313)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 21\
**Last updated:** [July 26, 2006, 12:29am UTC](https://www.ruby-forum.com/t/meta-meta-programming-revisited/99313 "2006-07-26T00:29:43Z")

</div>

Do you remember the discussion about monitor-functions and metameta-programming? Well, I’ve completely rewritten this Module#wrap\_method. It should be more robust now: thread-safety, better execution order of recursi…

---

## [Dumb question about assigments](https://www.ruby-forum.com/t/dumb-question-about-assigments/99637)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 9\
**Last updated:** [July 26, 2006, 12:17am UTC](https://www.ruby-forum.com/t/dumb-question-about-assigments/99637 "2006-07-26T00:17:23Z")

</div>

Hi, I feel kind of dumb for asking this, but I can’t honestly find the answer anywere. I came across a attribute defined like: class BlahBlah def something=(x,y) #code end end I tried to assign the values as: Bl…

---

## ["Self" confusion](https://www.ruby-forum.com/t/self-confusion/99839)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 11\
**Last updated:** [July 25, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/self-confusion/99839 "2006-07-25T23:32:19Z")

</div>

Can someone explain why the following produces different results? In another question I wrote that by default, programs run inside the definition-space of Object, but now I think that I was wrong: class Yoghurt def s…

---

## [Defining a method with an argument with a default value](https://www.ruby-forum.com/t/defining-a-method-with-an-argument-with-a-default-value/99770)

<div class="topic-metadata">

**Author:** [@Pedro\_CSSSSrte-Real](https://www.ruby-forum.com/u/Pedro_CSSSSrte-Real)\
**Replies:** 11\
**Last updated:** [July 25, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/defining-a-method-with-an-argument-with-a-default-value/99770 "2006-07-25T23:15:49Z")

</div>

I have this line in a class method to define an initializer: define\_method(:initialize){|value| @value = value} But I want something more like this: define\_method(:initialize){|value=nil| @value = value if value} whi…

---

## [Noob devision question](https://www.ruby-forum.com/t/noob-devision-question/99832)

<div class="topic-metadata">

**Author:** [@jamiethehutt](https://www.ruby-forum.com/u/jamiethehutt)\
**Replies:** 7\
**Last updated:** [July 25, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/noob-devision-question/99832 "2006-07-25T23:09:04Z")

</div>

I’m trying to make a percentage progress bar for an XMMS web interface, I want to take the total track time and the elapsed time and then make a length for the bar from the percentage completed. something like: total…

---

## [What the hell is happening with 'facets'](https://www.ruby-forum.com/t/what-the-hell-is-happening-with-facets/99809)

<div class="topic-metadata">

**Author:** [@simonh](https://www.ruby-forum.com/u/simonh)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/what-the-hell-is-happening-with-facets/99809 "2006-07-25T22:52:25Z")

</div>

have a look at this link: http://rubyforge.vm.bytemark.co.uk/gems/ and have a look at facets. version 1.4.0 is about 355kb, version 1.4.1 jumps up to 1000kb, version 1.4.2 is 590kb. it keeps growing (up and down) ti…

---

## [Any irb info or debug techniques](https://www.ruby-forum.com/t/any-irb-info-or-debug-techniques/99846)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 1\
**Last updated:** [July 25, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/any-irb-info-or-debug-techniques/99846 "2006-07-25T22:42:28Z")

</div>

…how do you use irb to interactively debug a while/end group to single step it a line @ time…and on the fly change stmts from within the loops body without having to stop it and paste a whole newly revised group? …a…

---

## [Rubby pptp/vpn library?](https://www.ruby-forum.com/t/rubby-pptp-vpn-library/99848)

<div class="topic-metadata">

**Author:** [@Andre\_Ludwig](https://www.ruby-forum.com/u/Andre_Ludwig)\
**Replies:** 0\
**Last updated:** [July 25, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/rubby-pptp-vpn-library/99848 "2006-07-25T22:42:14Z")

</div>

Does such thing exist? Been looking around on rubyforge and other sites but havent found a single library that has to deal with vpns. pptp/ipsec is what i am looking for (and im sure that rubydl2 could be used) Woul…

---

## [RoR/Ruby job in Switzerland](https://www.ruby-forum.com/t/ror-ruby-job-in-switzerland/99831)

<div class="topic-metadata">

**Author:** [@kaspar](https://www.ruby-forum.com/u/kaspar)\
**Replies:** 1\
**Last updated:** [July 25, 2006, 10:35pm UTC](https://www.ruby-forum.com/t/ror-ruby-job-in-switzerland/99831 "2006-07-25T22:35:26Z")

</div>

Hello list, We’re looking for a developer that has solid rails knowledge, choses Ruby over other things but can handle the other stuff too (Java, C#, C, whatever we might come across, the number of things you can ha…

---

## [RubyGems or packages or both?](https://www.ruby-forum.com/t/rubygems-or-packages-or-both/99633)

<div class="topic-metadata">

**Author:** [@rhaus](https://www.ruby-forum.com/u/rhaus)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/rubygems-or-packages-or-both/99633 "2006-07-25T22:28:40Z")

</div>

I am puzzled as to what the recommended way to install packages (from the point of view of Ruby developers) should be: RubyGems or distribution-specific (Linux)packages for each (Ruby)package? I am asking because Ubun…

---

## [Gem install problem](https://www.ruby-forum.com/t/gem-install-problem/99829)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/gem-install-problem/99829 "2006-07-25T22:21:11Z")

</div>

C:\\RUBY182\\BIN\>gem environment C:\\RUBY182\\BIN\>“c:\\ruby182\\bin\\ruby.exe” “c:\\ruby182\\bin\\gem” environment Rubygems Environment: VERSION: 0.8.10 (0.8.10) INSTALLATION DIRECTORY: c:/ruby182/lib/ruby/gems/1.8 GEM PATH: …

---

## [Method self.a= and a= create different instance variables](https://www.ruby-forum.com/t/method-self-a-and-a-create-different-instance-variables/99826)

<div class="topic-metadata">

**Author:** [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Replies:** 4\
**Last updated:** [July 25, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/method-self-a-and-a-create-different-instance-variables/99826 "2006-07-25T21:09:44Z")

</div>

i try this in irb . irb(main):001:0\> def a=(a) irb(main):002:1\> @a=a irb(main):003:1\> end =\> nil irb(main):004:0\> def a irb(main):005:1\> @a irb(main):006:1\> end =\> nil irb(main):007:0\> a=1 =\> 1 irb(main):0…

---

## [How to verify cgi.params values?](https://www.ruby-forum.com/t/how-to-verify-cgi-params-values/99783)

<div class="topic-metadata">

**Author:** [@carl\_mcdade](https://www.ruby-forum.com/u/carl_mcdade)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/how-to-verify-cgi-params-values/99783 "2006-07-25T20:40:59Z")

</div>

Hi I am running Ruby as CGI and have a form that returns a simple string. The porblem I am having is that if nothing is entered in the form the use of .empty does not work. There must be a carriage return or a space …

---

## [WxRuby: Opening and Displaying PNG images on a window](https://www.ruby-forum.com/t/wxruby-opening-and-displaying-png-images-on-a-window/99815)

<div class="topic-metadata">

**Author:** [@kpeng1](https://www.ruby-forum.com/u/kpeng1)\
**Replies:** 1\
**Last updated:** [July 25, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/wxruby-opening-and-displaying-png-images-on-a-window/99815 "2006-07-25T20:05:54Z")

</div>

Hello, I am still pretty new to wxwidgets and I am trying to learn as fast as possible. Currently I am using wxruby and I want to build an application that would display all png images that are in its current directo…

---

## [FCGI: How do you use it?](https://www.ruby-forum.com/t/fcgi-how-do-you-use-it/99764)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/fcgi-how-do-you-use-it/99764 "2006-07-25T19:47:26Z")

</div>

I’m kind of perplexed here so I’ll ask the stupid questions. When I use perl and call for a CGI module, I get with it all kinds of really cool abilities related to %ENV and STDIN/STDOUT and the ability to even set c…

---

## [Test\_s\_open\_no\_create in test/gdbm/test\_gdbm.rb](https://www.ruby-forum.com/t/test-s-open-no-create-in-test-gdbm-test-gdbm-rb/99820)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [July 25, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/test-s-open-no-create-in-test-gdbm-test-gdbm-rb/99820 "2006-07-25T19:25:16Z")

</div>

e$B@\>;3OB9-$G$9!#e(B ruby\_1\_8e$B$Ne(Btest/gdbm/test\_gdbm.rbe$B$Ne(Btest\_s\_open\_no\_createe$B$Ge(B e$B%3%a%s%H$K!Ve(Bthis test is failed on libgdbm 1.8.0e$B!W$He(B e$B=q$$$F$"$j$^$9$,!"e(Btest/openssl/test\_x509store.rbe…

---

## [Druby - How to close connection from client?](https://www.ruby-forum.com/t/druby-how-to-close-connection-from-client/99753)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 4\
**Last updated:** [July 25, 2006, 7:13pm UTC](https://www.ruby-forum.com/t/druby-how-to-close-connection-from-client/99753 "2006-07-25T19:13:06Z")

</div>

I need to disconnect explicitly from a druby client. My code is like: DRb.start\_service @drb = DRbObject.new(nil, ‘druby://localhost:7777’) @drb.dosomething(param1, param2, param3) …(here I’d like to disconnect!!)… …

---

## [Re: Hash order bug?](https://www.ruby-forum.com/t/re-hash-order-bug/99817)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [July 25, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/re-hash-order-bug/99817 "2006-07-25T18:51:31Z")

</div>

afraid I don’t remember) as to whether making hashes ordered in a Paul. Oh, yeah, that brings up the whole Comparable bugbear. I didn’t think about that. /me votes to just leave it alone Dan This communicatio…

---

## [Problem building ruby-audio-0.1.1 on OSX 10.4.7](https://www.ruby-forum.com/t/problem-building-ruby-audio-0-1-1-on-osx-10-4-7/99516)

<div class="topic-metadata">

**Author:** [@Mike\_Spears](https://www.ruby-forum.com/u/Mike_Spears)\
**Replies:** 6\
**Last updated:** [July 25, 2006, 6:26pm UTC](https://www.ruby-forum.com/t/problem-building-ruby-audio-0-1-1-on-osx-10-4-7/99516 "2006-07-25T18:26:40Z")

</div>

Hi, I’m trying to install ruby-audio on OS X. The instructions for installing say to run ‘rake’ but when I do, I get the following error: /usr/bin/ld: Undefined symbols: \_cNArray \_na\_sizeof narray is a prerequisite…

---

## [Rmagick w/o -I](https://www.ruby-forum.com/t/rmagick-w-o-i/99792)

<div class="topic-metadata">

**Author:** [@ammonc](https://www.ruby-forum.com/u/ammonc)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/rmagick-w-o-i/99792 "2006-07-25T16:59:21Z")

</div>

When I installed rmagick (on Debian Linux using the -dev imagemagick packages and then sudo gem install rmagick) it said that it was successful, but it can’t find RMagick.rb unless I specify the -I (for include path) …

---

## [Ruby, CSV and PDF / Porting xtopdf to Ruby with PDF::Writer](https://www.ruby-forum.com/t/ruby-csv-and-pdf-porting-xtopdf-to-ruby-with-pdf-writer/99791)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 0\
**Last updated:** [July 25, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/ruby-csv-and-pdf-porting-xtopdf-to-ruby-with-pdf-writer/99791 "2006-07-25T16:05:41Z")

</div>

Hey, Started porting my xtopdf PDF creation/conversion toolkit - Conversion of other file formats to PDF download | SourceForge.net - from Python to Ruby. Using PDF::Writer for the underlying PDF creation work. It lo…

---

## [Ruby Central's Regional Conference Grant Program](https://www.ruby-forum.com/t/ruby-centrals-regional-conference-grant-program/99705)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/ruby-centrals-regional-conference-grant-program/99705 "2006-07-25T15:33:35Z")

</div>

Hello everyone – We are very pleased to announce the launching of the Ruby Central Regional Conference Grant Program for 2006. This program will provide grants of up to $1500 US to approximate six to eight regional c…

---

## [Most Compelling Ruby + 2D Web Graphics Combination](https://www.ruby-forum.com/t/most-compelling-ruby-2d-web-graphics-combination/99724)

<div class="topic-metadata">

**Author:** [@David\_Worden](https://www.ruby-forum.com/u/David_Worden)\
**Replies:** 3\
**Last updated:** [July 25, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/most-compelling-ruby-2d-web-graphics-combination/99724 "2006-07-25T15:08:57Z")

</div>

Hello, An admitted Ruby novice that has just been looking at Ruby off/on for a couple of weeks. I have a web application in mind (think Google Maps) that I would like to implement primarily in Ruby. I am just in the…

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

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