# Ruby

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

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

---

## [Hoe and rubyforge and all that](https://www.ruby-forum.com/t/hoe-and-rubyforge-and-all-that/72419)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 4\
**Last updated:** [October 17, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/hoe-and-rubyforge-and-all-that/72419 "2006-10-17T14:52:57Z")

</div>

Hi all - We’ve started using HTTPS to make RubyForge logins more secure. However, this will probably hose up the various utilities that folks are using to automate releases - like hoe, and I think Ara’s got one, and …

---

## [Table linking question](https://www.ruby-forum.com/t/table-linking-question/72461)

<div class="topic-metadata">

**Author:** [@Vedran](https://www.ruby-forum.com/u/Vedran)\
**Replies:** 0\
**Last updated:** [October 17, 2006, 11:46am UTC](https://www.ruby-forum.com/t/table-linking-question/72461 "2006-10-17T11:46:19Z")

</div>

Hello!! I have two tables in the database: registrations and vehicles. Vehicles contains types of vehicles. I would like to put in the registrations view a drop down list (i think it is called select) that lists all t…

---

## [Edit Distance at Wikipedia](https://www.ruby-forum.com/t/edit-distance-at-wikipedia/72316)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 7\
**Last updated:** [October 17, 2006, 10:59am UTC](https://www.ruby-forum.com/t/edit-distance-at-wikipedia/72316 "2006-10-17T10:59:52Z")

</div>

Hi list. I read an article posted at Wikipedia about Levenshtein distance (aka edit distance). The location of the document is In the document, a sample Ruby code goes like the following: class String def levensh…

---

## [Where to find a good std lib index?](https://www.ruby-forum.com/t/where-to-find-a-good-std-lib-index/72441)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 2\
**Last updated:** [October 17, 2006, 10:47am UTC](https://www.ruby-forum.com/t/where-to-find-a-good-std-lib-index/72441 "2006-10-17T10:47:49Z")

</div>

Hi, before I create it myself : where can I find a full index, well presented of all the classes of the std library ? Here, Programming Ruby: The Pragmatic Programmer's Guide The built-ins page is ok, with the first p…

---

## [ActiveRecord & Legacy DBs](https://www.ruby-forum.com/t/activerecord-legacy-dbs/72412)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 1\
**Last updated:** [October 17, 2006, 9:28am UTC](https://www.ruby-forum.com/t/activerecord-legacy-dbs/72412 "2006-10-17T09:28:46Z")

</div>

I have a legacy MySQL DB which is ALMOST Rails-ready, i.e. the table names are correct, they all have a unique integer index ‘id’ etc. However, I have a table, ‘leads’ which contains an index to ‘origins’ such that …

---

## [Shell commands in irb](https://www.ruby-forum.com/t/shell-commands-in-irb/72338)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 6\
**Last updated:** [October 17, 2006, 9:03am UTC](https://www.ruby-forum.com/t/shell-commands-in-irb/72338 "2006-10-17T09:03:26Z")

</div>

Hi I was quite bored this morning and the coffee machine went into its 30 minute clean cycle, so I came up with this… $ cat .irbrc Dir\["{,/usr,/usr/local}/bin/\*"\].each do |bin| Object.instance\_eval do define\_method…

---

## [Stompserver 0.9.0 Released](https://www.ruby-forum.com/t/stompserver-0-9-0-released/72398)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 7\
**Last updated:** [October 17, 2006, 8:01am UTC](https://www.ruby-forum.com/t/stompserver-0-9-0-released/72398 "2006-10-17T08:01:20Z")

</div>

stompserver version 0.9.0 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. All the hard …

---

## [RubyConf Ticket $200 (includes food package)](https://www.ruby-forum.com/t/rubyconf-ticket-200-includes-food-package/72414)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 1\
**Last updated:** [October 17, 2006, 6:29am UTC](https://www.ruby-forum.com/t/rubyconf-ticket-200-includes-food-package/72414 "2006-10-17T06:29:04Z")

</div>

Unfortunately I’ve had something come up and will be unable to make the conference. If anyone would like to buy my ticket please contact me offline, $200 includes food package. Thanks. Josh

---

## [RSRuby 0.4](https://www.ruby-forum.com/t/rsruby-0-4/72274)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 11\
**Last updated:** [October 17, 2006, 5:55am UTC](https://www.ruby-forum.com/t/rsruby-0-4/72274 "2006-10-17T05:55:02Z")

</div>

Hi All, I have released a new version of RSRuby on rubyforge today: http://rubyforge.org/projects/rsruby/ RSRuby allows the user to embed a full R interpreter into a Ruby script. This allows the script to call any R …

---

## [UDP Server](https://www.ruby-forum.com/t/udp-server/72270)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 5\
**Last updated:** [October 17, 2006, 3:48am UTC](https://www.ruby-forum.com/t/udp-server/72270 "2006-10-17T03:48:37Z")

</div>

Alright I’ve been trying to set up a UDP server for my “Game”, the “Client” is in python, but I want a ruby server. I tried some code from the Ruby book, but I wasn’t able to get it to work. If someone could please he…

---

## [Web programming trick](https://www.ruby-forum.com/t/web-programming-trick/72387)

<div class="topic-metadata">

**Author:** [@James\_Toomey](https://www.ruby-forum.com/u/James_Toomey)\
**Replies:** 2\
**Last updated:** [October 17, 2006, 3:36am UTC](https://www.ruby-forum.com/t/web-programming-trick/72387 "2006-10-17T03:36:49Z")

</div>

A bit off-topic, but my fellow Rubyists are pretty web-savvy, so I figured I’d post it: Has anyone else been tricked by these websites which frequently come up at the top of Google searches? They always appear to have…

---

## [Ruby and Prolog](https://www.ruby-forum.com/t/ruby-and-prolog/72162)

<div class="topic-metadata">

**Author:** [@S\_Kevin](https://www.ruby-forum.com/u/S_Kevin)\
**Replies:** 10\
**Last updated:** [October 17, 2006, 3:22am UTC](https://www.ruby-forum.com/t/ruby-and-prolog/72162 "2006-10-17T03:22:47Z")

</div>

Anyone had any experience interfacing Prolog with Ruby? \_Kevin

---

## [What is the reason for this syntax?](https://www.ruby-forum.com/t/what-is-the-reason-for-this-syntax/71047)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 81\
**Last updated:** [October 17, 2006, 3:08am UTC](https://www.ruby-forum.com/t/what-is-the-reason-for-this-syntax/71047 "2006-10-17T03:08:45Z")

</div>

Hello I have been using ruby off and on for a few months and I have been having a great time with the language but a few things bother me about the syntax of the language itself. The two glaring issues are: The synt…

---

## [RubyConf 2006 Facebook](https://www.ruby-forum.com/t/rubyconf-2006-facebook/72409)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 17, 2006, 2:48am UTC](https://www.ruby-forum.com/t/rubyconf-2006-facebook/72409 "2006-10-17T02:48:41Z")

</div>

I enjoyed watching the facebook fun last year and I didn’t even make the conference. This year I’m going, so I thought I would start us off: http://wiki.rubygarden.org/Ruby/page/show/RubyConf2006Facebook Feel free to…

---

## [Re: What is the reason for this syntax?](https://www.ruby-forum.com/t/re-what-is-the-reason-for-this-syntax/72407)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 0\
**Last updated:** [October 17, 2006, 2:22am UTC](https://www.ruby-forum.com/t/re-what-is-the-reason-for-this-syntax/72407 "2006-10-17T02:22:37Z")

</div>

“Never give up, never surrender!” – Jason Nesmith

---

## [Fix for next word/previous word Eclipse bug?](https://www.ruby-forum.com/t/fix-for-next-word-previous-word-eclipse-bug/72403)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 0\
**Last updated:** [October 17, 2006, 1:14am UTC](https://www.ruby-forum.com/t/fix-for-next-word-previous-word-eclipse-bug/72403 "2006-10-17T01:14:16Z")

</div>

As far as I know, this isn’t a ruby/eclipse bug, but I certainly haven’t found a general fix for it, so was wondering if anyone knowledgeable about the Ruby Eclipse plugin might have suggestions. In Eclipse (my versio…

---

## [eRuby, lack of information](https://www.ruby-forum.com/t/eruby-lack-of-information/72300)

<div class="topic-metadata">

**Author:** [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Replies:** 3\
**Last updated:** [October 17, 2006, 12:44am UTC](https://www.ruby-forum.com/t/eruby-lack-of-information/72300 "2006-10-17T00:44:03Z")

</div>

Hi, I’ve seen many web articles on how to use eRuby but i can’t seem to find eruby.exe as being part of the 1.8.x release. All I can see is a batch file named erb.bat which works fine when working from the command lin…

---

## [Test if Directory is Empty](https://www.ruby-forum.com/t/test-if-directory-is-empty/72320)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [October 17, 2006, 12:42am UTC](https://www.ruby-forum.com/t/test-if-directory-is-empty/72320 "2006-10-17T00:42:01Z")

</div>

Hi all I browsed through the FileUtils and Dir documentation and found no obvious way to test if a directory exists and is empty. Various hacks can be used (like checking file count and size, testing if the directory…

---

## [Wxruby2-preview 0.0.36](https://www.ruby-forum.com/t/wxruby2-preview-0-0-36/72146)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 8\
**Last updated:** [October 16, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/wxruby2-preview-0-0-36/72146 "2006-10-16T23:03:25Z")

</div>

wxRuby2 preview 0.0.36 has been released! wxRuby brings wxWidgets, a mature cross-platform GUI toolkit to Ruby. It uses native widgets on Windows, OS X and Linux/GTK; you can write GUI code once and still give users …

---

## [Problem with set up after Windows' build](https://www.ruby-forum.com/t/problem-with-set-up-after-windows-build/72234)

<div class="topic-metadata">

**Author:** [@joshs](https://www.ruby-forum.com/u/joshs)\
**Replies:** 7\
**Last updated:** [October 16, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/problem-with-set-up-after-windows-build/72234 "2006-10-16T22:30:49Z")

</div>

Hello everyone, I would like to start doing some lower level development with Ruby, so I started by building Ruby 1.8.5 under windows using Visual-C 8. That went smoothly, so my first test after installing Ruby was to …

---

## [Rails Mailing List Errors (during subscription)](https://www.ruby-forum.com/t/rails-mailing-list-errors-during-subscription/72366)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 16, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/rails-mailing-list-errors-during-subscription/72366 "2006-10-16T21:40:16Z")

</div>

Does anyone here have info about the Rails Mailing List, why it errors during subscription attempts, and why the email to the webmaster(s) is bouncing? I am trying to describe here: http://lists.rubyonrails.org/mailm…

---

## [Yet another RubyConf ticket for sale (w/food)](https://www.ruby-forum.com/t/yet-another-rubyconf-ticket-for-sale-w-food/72372)

<div class="topic-metadata">

**Author:** [@nick1123](https://www.ruby-forum.com/u/nick1123)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/yet-another-rubyconf-ticket-for-sale-w-food/72372 "2006-10-16T21:03:56Z")

</div>

As stated above…

---

## [No freeride](https://www.ruby-forum.com/t/no-freeride/72334)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 3\
**Last updated:** [October 16, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/no-freeride/72334 "2006-10-16T20:55:55Z")

</div>

I know this is a newbie question, but I’ve just installed InstantRails and am trying to invoke the Freeride editor from the command line (using the same command as in the run.bat provided with freeride, so that I can …

---

## [QtRuby 1.4.6](https://www.ruby-forum.com/t/qtruby-1-4-6/99199)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [October 16, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/qtruby-1-4-6/99199 "2006-10-16T20:54:06Z")

</div>

URIS http://rubyforge.org/projects/korundum/ http://developer.kde.org/language-bindings/ruby/index.html NAME QtRuby 1.4.6 SYNOPSIS Ruby bindings for the Qt4 GUI apis DESCRIPTION Highlights from the QtRuby ChangeLo…

---

## [Rakelibdir (was: Global rake tasks)](https://www.ruby-forum.com/t/rakelibdir-was-global-rake-tasks/72369)

<div class="topic-metadata">

**Author:** [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/rakelibdir-was-global-rake-tasks/72369 "2006-10-16T20:35:49Z")

</div>

I’ve tried posting on rake-devel, but my message didn’t get through, so I thought I could ask it here: I’m trying to use -R (–rakelibdir) option to specify a directory where my rake scripts containing some admin tasks…

---

## [How to replace file's content directly?](https://www.ruby-forum.com/t/how-to-replace-files-content-directly/72321)

<div class="topic-metadata">

**Author:** [@camenix](https://www.ruby-forum.com/u/camenix)\
**Replies:** 4\
**Last updated:** [October 16, 2006, 8:11pm UTC](https://www.ruby-forum.com/t/how-to-replace-files-content-directly/72321 "2006-10-16T20:11:38Z")

</div>

I have a sql file exported from mysql,and want to chang the charecter set to utf-8. sqltempfile=File.new(sqltemp,‘w+’) ### How to get rid of it? File.open(sqlfile,‘r+’) do |file| lines=file.gets(nil) lines.gsub!(/T…

---

## [Re: Pattern based substitution](https://www.ruby-forum.com/t/re-pattern-based-substitution/72364)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/re-pattern-based-substitution/72364 "2006-10-16T19:29:24Z")

</div>

From: Daniel Mircea How does pattern based substitution works ? See http://phrogz.net/ProgrammingRuby/tut\_stdtypes.html#regularexpressions particularly the section near the end of that page titled “Pattern-Based S…

---

## [Pattern based substitution](https://www.ruby-forum.com/t/pattern-based-substitution/72363)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/pattern-based-substitution/72363 "2006-10-16T19:17:26Z")

</div>

How does pattern based substitution works ? For example, how does textilize replace all occurrences of hello world with hello world ? Thanks

---

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

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 16, 2006, 7:05pm UTC](https://www.ruby-forum.com/t/re-non-declared-variables/72361 "2006-10-16T19:05:12Z")

</div>

From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] it’s not the actual typing of the lines that takes so long - it’s reasoning over it. …and yet (for me) the actual typing of th…

---

## [Global lock](https://www.ruby-forum.com/t/global-lock/72141)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 5\
**Last updated:** [October 16, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/global-lock/72141 "2006-10-16T18:57:39Z")

</div>

Hi there! Does Ruby threading model uses a global lock as Python uses? Thanks!

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

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