# Ruby

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

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

---

## [Rake db:migrate command question](https://www.ruby-forum.com/t/rake-db-migrate-command-question/87689)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 7:25am UTC](https://www.ruby-forum.com/t/rake-db-migrate-command-question/87689 "2007-03-05T07:25:38Z")

</div>

In chapter five of the book Build Your Own Ruby on Rails Applications, when I entered the rake db:migrate command in the Ruby console, I got the following message back: : Warning require\_gem is obsolete. Use gem inst…

---

## [Help with FXDialogBox](https://www.ruby-forum.com/t/help-with-fxdialogbox/87506)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 5\
**Last updated:** [March 5, 2007, 6:20am UTC](https://www.ruby-forum.com/t/help-with-fxdialogbox/87506 "2007-03-05T06:20:32Z")

</div>

I want a DialogBox where I can click a button, perform some operation, possibly returning a value, and then the DialogBox should close (not hide, close). The methods I have tried for this have failed. My current set…

---

## [Array#each, safe when modifying it's elements?](https://www.ruby-forum.com/t/array-each-safe-when-modifying-its-elements/87681)

<div class="topic-metadata">

**Author:** [@onionknight](https://www.ruby-forum.com/u/onionknight)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 4:17am UTC](https://www.ruby-forum.com/t/array-each-safe-when-modifying-its-elements/87681 "2007-03-05T04:17:05Z")

</div>

Will Array#each only go through each unique element once even if you were to throw around the elements in the array or will it just take whatever element is after the current one? I tried it myself but it behaves a bi…

---

## [Design question - mmap, insert/delete editing on huge binary](https://www.ruby-forum.com/t/design-question-mmap-insert-delete-editing-on-huge-binary/87638)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 8\
**Last updated:** [March 5, 2007, 3:57am UTC](https://www.ruby-forum.com/t/design-question-mmap-insert-delete-editing-on-huge-binary/87638 "2007-03-05T03:57:25Z")

</div>

Hi, I’d like to create Ruby bindings for a library that may or may not exist yet. What I’d like to be able to do, is make an arbitrary number of insert/delete (cut/paste) style edits on huge binary files (\> 4 GB). …

---

## [Altering 1 line in an existing file](https://www.ruby-forum.com/t/altering-1-line-in-an-existing-file/87659)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 3\
**Last updated:** [March 5, 2007, 3:08am UTC](https://www.ruby-forum.com/t/altering-1-line-in-an-existing-file/87659 "2007-03-05T03:08:42Z")

</div>

I’m in the process of creating an application launcher in ruby. I’ve hit one little hang up though. I want to have the launcher access a file containing a log of how many times each application has been run, for ranki…

---

## [Using closures, continuations in real life](https://www.ruby-forum.com/t/using-closures-continuations-in-real-life/87675)

<div class="topic-metadata">

**Author:** [@Fefo](https://www.ruby-forum.com/u/Fefo)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 3:05am UTC](https://www.ruby-forum.com/t/using-closures-continuations-in-real-life/87675 "2007-03-05T03:05:20Z")

</div>

Hi all !! I’m fairly new to Rails programming and finding somewhat different n the approach than .NET programming I did previosuly. I found this blog post : It’s about closures and contiinuations, I get the basic ide…

---

## [Rubyforge Wiki?](https://www.ruby-forum.com/t/rubyforge-wiki/87587)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [March 5, 2007, 2:49am UTC](https://www.ruby-forum.com/t/rubyforge-wiki/87587 "2007-03-05T02:49:19Z")

</div>

Looks like Rubyforge’s Wiki feature has been downt for a while now. Will it be coming back up anytime soon? Better yet, any plans to put it on something more Rubyfied? T.

---

## [Help needed with Regexp Class](https://www.ruby-forum.com/t/help-needed-with-regexp-class/87670)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 2:46am UTC](https://www.ruby-forum.com/t/help-needed-with-regexp-class/87670 "2007-03-05T02:46:44Z")

</div>

I can not seem to get the Regexp::MULTILINE mode enabled for specific Regexp objects. I’ve tried: Regexp.new(expr, ‘m’) Regexp.new(expr, ‘/m’) Regexp.new(expr, Regexp::MULTILINE) among others. What goes in the optio…

---

## [Ruby interface to AutoHotKeys?](https://www.ruby-forum.com/t/ruby-interface-to-autohotkeys/87668)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 1:56am UTC](https://www.ruby-forum.com/t/ruby-interface-to-autohotkeys/87668 "2007-03-05T01:56:15Z")

</div>

Is there such a thing? Thanks.

---

## [Exceptions automatically emailed](https://www.ruby-forum.com/t/exceptions-automatically-emailed/87667)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 1:54am UTC](https://www.ruby-forum.com/t/exceptions-automatically-emailed/87667 "2007-03-05T01:54:26Z")

</div>

Hi, I was wondering if there is a way to override the Exception class so that any exception is automatically emailed using my email library. Right now I just do it in rescue blocks, but it would be useful to me if I …

---

## [Array$B$N%a%=%C%IA}6/$K$D$$$F(B](https://www.ruby-forum.com/t/array-b-n-a-c-ia-6-k-d-f-b/86661)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 6\
**Last updated:** [March 5, 2007, 1:50am UTC](https://www.ruby-forum.com/t/array-b-n-a-c-ia-6-k-d-f-b/86661 "2007-03-05T01:50:15Z")

</div>

e$B@DLZ$G$9!#e(B 1.9 e$B$Ge(B String#each e$B$,$J$/$J$j$^$7$?$,!"$I$&$K$bITJX$G$9!#e(B e$B$J$s$GITJX$J$N$+9M$($F$\_$?$H$3$m!"e(BArray e$B$N%a%=%C%I$,e(B String e$B$KHf$Y$F\<e$$$N$,860x$G$O$J$$$+$H9M$($k$h$&$K$J$je(B e$…

---

## [Detecting associations in rails](https://www.ruby-forum.com/t/detecting-associations-in-rails/87575)

<div class="topic-metadata">

**Author:** [@zig](https://www.ruby-forum.com/u/zig)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/detecting-associations-in-rails/87575 "2007-03-04T23:10:56Z")

</div>

In Rails, is there a way to list at runtime the associations (has\_one, belongs\_to, etc) made for an ActiveRecord::Base model? I would like to make my views be a little smarter about these associations. Currently, the…

---

## [Creating binary gems, from source gems](https://www.ruby-forum.com/t/creating-binary-gems-from-source-gems/87648)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/creating-binary-gems-from-source-gems/87648 "2007-03-04T22:47:53Z")

</div>

So here is my question: Is there an easy (read automated) way to take a gem (that requires a binary compilation) from a properly configured development/build machine and create a binary gem? I have production servers…

---

## [Loading one YAML object at a time](https://www.ruby-forum.com/t/loading-one-yaml-object-at-a-time/87644)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/loading-one-yaml-object-at-a-time/87644 "2007-03-04T20:41:38Z")

</div>

I’d like to write a series of YAMLized objects to a file, then read them in one by one. I tried this test: rick@frodo:/public/rubyscripts$ cat multiyaml.rb require ‘yaml’ File.open(‘testyaml’,‘w’) do |f| YAML.dump(…

---

## [Defining object methods in initialize](https://www.ruby-forum.com/t/defining-object-methods-in-initialize/87614)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 3\
**Last updated:** [March 4, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/defining-object-methods-in-initialize/87614 "2007-03-04T20:35:38Z")

</div>

I’d like to define methods on initialize that are specific for the created object. However it seems that the few lines of code below is defining them somewhere else since they are ‘overwriting’ each other: =========…

---

## [GEGL extension for ruby and presentation app](https://www.ruby-forum.com/t/gegl-extension-for-ruby-and-presentation-app/87642)

<div class="topic-metadata">

**Author:** [@SSSSSyvind\_KolSSSSs](https://www.ruby-forum.com/u/SSSSSyvind_KolSSSSs)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/gegl-extension-for-ruby-and-presentation-app/87642 "2007-03-04T20:01:35Z")

</div>

I made a presentation about GEGL\[1\], the image processing and compositing engine developed to replace the aging core of GIMP at FOSDEM\[2\] this year. A video of the presentation exists\[3\] but for the subscribers of thi…

---

## [Qt4 designer, custom slots and rbuic4](https://www.ruby-forum.com/t/qt4-designer-custom-slots-and-rbuic4/87629)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/qt4-designer-custom-slots-and-rbuic4/87629 "2007-03-04T19:19:32Z")

</div>

Hello everyone, I just started looking at trying to write some Qt stuff in ruby. I whipped up a quick widget in designer to see how the whole process works. When it came time to connect a button to a custom slot I g…

---

## [Solution consuming .NET SOAP service](https://www.ruby-forum.com/t/solution-consuming-net-soap-service/87632)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/solution-consuming-net-soap-service/87632 "2007-03-04T17:50:54Z")

</div>

Hey all I have been trying to consume a .NET exposed web-service with soap4r and have found some things that might help others when doing the same thing Oddly, soap4r interprted the following WSDL \<s:element name=“Ge…

---

## [Graphs with decorated edges](https://www.ruby-forum.com/t/graphs-with-decorated-edges/87567)

<div class="topic-metadata">

**Author:** [@Edgardo\_H](https://www.ruby-forum.com/u/Edgardo_H)\
**Replies:** 3\
**Last updated:** [March 4, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/graphs-with-decorated-edges/87567 "2007-03-04T16:36:10Z")

</div>

Hello dear rubyists, I’m working on an application that simulates several components interacting with each other. I would like to represent this situation using a graph, where each component is a vertex and the intera…

---

## [South East Michigan Ruby Brigade Meeting](https://www.ruby-forum.com/t/south-east-michigan-ruby-brigade-meeting/87618)

<div class="topic-metadata">

**Author:** [@patrickharlan](https://www.ruby-forum.com/u/patrickharlan)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/south-east-michigan-ruby-brigade-meeting/87618 "2007-03-04T16:26:08Z")

</div>

Date: Monday, March 5th 2007 Time: 7:00-8:30pm Location: Location: Ann Arbor, MI U of M, North Campus 1670 CSE (if you are not familiar with campus don’t be intimidated, ask on the mailing list (http://lists.rubym…

---

## [Starting applications from Ruby](https://www.ruby-forum.com/t/starting-applications-from-ruby/87608)

<div class="topic-metadata">

**Author:** [@ISP](https://www.ruby-forum.com/u/ISP)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/starting-applications-from-ruby/87608 "2007-03-04T15:33:03Z")

</div>

ruby-talk ML DE I. P. At the end of Ruby program I want to show results to user. But sending them to standard output isn’t appropriate because of encoding issues (cp866 vs cp1251). So I put data to file and finish pro…

---

## [Installing .gem in an embedded system](https://www.ruby-forum.com/t/installing-gem-in-an-embedded-system/87263)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/installing-gem-in-an-embedded-system/87263 "2007-03-04T15:11:01Z")

</div>

Hi, I am trying to install sqlite3-ruby-1.1.0.gem on an embedded system (with ARM cpu). From the target I use the command gem install sqlite3-ruby-1.1.0.gem but the installation fail, saying that sqlite3.h cannot b…

---

## [Rex: multiline comment](https://www.ruby-forum.com/t/rex-multiline-comment/87613)

<div class="topic-metadata">

**Author:** [@Harry\_van\_Stedum](https://www.ruby-forum.com/u/Harry_van_Stedum)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/rex-multiline-comment/87613 "2007-03-04T14:30:58Z")

</div>

Hi all, does anybody using Rex know how to deal with multline comments (of the kind “/\* … \*/”)? In the Rex-docs I can find this: macro REMIN /\* REMOUT \*/ rule {REMIN} { state = :RE…

---

## [Gui Builders for Ruby](https://www.ruby-forum.com/t/gui-builders-for-ruby/87471)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 4\
**Last updated:** [March 4, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/gui-builders-for-ruby/87471 "2007-03-04T13:04:51Z")

</div>

This maybe a bit off topic, and is really more of a discussion question but… Are there GUI builders for Ruby that allow one to truly divorce the GUI from the logic? Reading the tutorials for the GUI toolkits, and th…

---

## [Instant Rails 1.6, with MySQL 5](https://www.ruby-forum.com/t/instant-rails-1-6-with-mysql-5/87611)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/instant-rails-1-6-with-mysql-5/87611 "2007-03-04T12:58:50Z")

</div>

The main change in this release is that MySQL has been upgraded to version 5.0.27 and Rake has been upgraded to the recently released 0.7.2. Many thanks to Jirka Pech who made the MySQL upgrade possible. You can down…

---

## [Ruby .exe Maker](https://www.ruby-forum.com/t/ruby-exe-maker/87603)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/ruby-exe-maker/87603 "2007-03-04T12:34:49Z")

</div>

Does anybody know of a good way to make Ruby programs into .exe’s so people without RUby installed can run them and not edit the code?

---

## [Notepad Font Defaults](https://www.ruby-forum.com/t/notepad-font-defaults/87586)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [March 4, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/notepad-font-defaults/87586 "2007-03-04T12:32:49Z")

</div>

Does anybody have code that will change the default font and size in Notepad? If so, please share it. Thanks in advance!

---

## [Open a URL in a new browser tab?](https://www.ruby-forum.com/t/open-a-url-in-a-new-browser-tab/87487)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 4\
**Last updated:** [March 4, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/open-a-url-in-a-new-browser-tab/87487 "2007-03-04T12:10:46Z")

</div>

Sounds like the sort of thing that must already exist, but I can’t find it… Is there a standard cross-platform way in Ruby to drive the user’s default web browser to open a URL in a new window/tab? Because if not, I …

---

## [Munich.rb meets on Thursday 15th March](https://www.ruby-forum.com/t/munich-rb-meets-on-thursday-15th-march/87605)

<div class="topic-metadata">

**Author:** [@Urban\_H](https://www.ruby-forum.com/u/Urban_H)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 10:59am UTC](https://www.ruby-forum.com/t/munich-rb-meets-on-thursday-15th-march/87605 "2007-03-04T10:59:42Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hej! After a long (too long) time the Munich Ruby and Rails users are meeting again! We’ll meet at Bohne & Malz am Rathaus \[1\]\[2\] on 15th March at 7pm. I’ll wear my Mu…

---

## [Rack 0.1, a modular Ruby webserver interface](https://www.ruby-forum.com/t/rack-0-1-a-modular-ruby-webserver-interface/87531)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 10:45am UTC](https://www.ruby-forum.com/t/rack-0-1-a-modular-ruby-webserver-interface/87531 "2007-03-04T10:45:41Z")

</div>

Hello, Today I’m proud to release Rack 0.1. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and …

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

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