# Ruby

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

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

---

## [Gosu 0.7.9 on Windows/Mac, also: Ludum Dare timed gamedev compo again!](https://www.ruby-forum.com/t/gosu-0-7-9-on-windows-mac-also-ludum-dare-timed-gamedev-compo-again/134682)

<div class="topic-metadata">

**Author:** [@nex4k](https://www.ruby-forum.com/u/nex4k)\
**Replies:** 0\
**Last updated:** [April 14, 2008, 12:09am UTC](https://www.ruby-forum.com/t/gosu-0-7-9-on-windows-mac-also-ludum-dare-timed-gamedev-compo-again/134682 "2008-04-14T00:09:51Z")

</div>

Hi, Gosu is a free 2D game development library for Ruby and C++, available via gem install gosu on Windows and Mac OS X, now available in version 0.7.9. (The gem is tagged as 0.7.9.1 because of ongoing trouble with t…

---

## [Socket patch](https://www.ruby-forum.com/t/socket-patch/134678)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/socket-patch/134678 "2008-04-13T22:28:30Z")

</div>

I have uploaded a patch to the rubyforge project site. You can see it at: http://rubyforge.org/tracker/index.php?func=detail&aid=19494&group\_id=4359&a tid=16800 Here is the blurb if you don’t have time to check it o…

---

## [Getpass](https://www.ruby-forum.com/t/getpass/134467)

<div class="topic-metadata">

**Author:** [@Yang\_Z](https://www.ruby-forum.com/u/Yang_Z)\
**Replies:** 7\
**Last updated:** [April 13, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/getpass/134467 "2008-04-13T22:20:46Z")

</div>

Hi, how do I do getpass() in ruby? Thanks!

---

## [Mod\_rails -- where do logs go?](https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637 "2008-04-13T20:33:06Z")

</div>

I just set up mod\_rails (http://www.modrails.com/). Install was easy. Application seems to be running fine. One thing I am confused about is that on my server no new entries to the production log are being added. I …

---

## [Monday, 14 April: Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/monday-14-april-phoenix-ruby-user-group-meeting/134666)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/monday-14-april-phoenix-ruby-user-group-meeting/134666 "2008-04-13T19:32:49Z")

</div>

April Phoenix Ruby U. Group Meeting Date: Monday, April 14, 2008 Time: 6:00 pm - Socializing 6:30 pm - Official start of meeting Place: Rising Tide Software 4643 E. Thomas Rd, Suite #3 Phoenix, AZ 85018 (602) 71…

---

## [How to check record duplication before saving?](https://www.ruby-forum.com/t/how-to-check-record-duplication-before-saving/134551)

<div class="topic-metadata">

**Author:** [@limatsao](https://www.ruby-forum.com/u/limatsao)\
**Replies:** 25\
**Last updated:** [April 13, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/how-to-check-record-duplication-before-saving/134551 "2008-04-13T18:37:40Z")

</div>

Hi, everyone, I am a beginner in ruby programming and I have a minor question about data checking, if someone who could give me a suggestion that would be great. The system needs to prevent a duplicated record happen…

---

## [AutoIt over Ruby question - How do I call ObjGet()?](https://www.ruby-forum.com/t/autoit-over-ruby-question-how-do-i-call-objget/134592)

<div class="topic-metadata">

**Author:** [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Replies:** 5\
**Last updated:** [April 13, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/autoit-over-ruby-question-how-do-i-call-objget/134592 "2008-04-13T14:20:42Z")

</div>

Here’s an example of using autoit inside of ruby. require ‘win32ole’ autoit = WIN32OLE.new(“AutoItX3.Control”) autoit.WinActivate(‘Yahoo!’) So if this works, how come this doesn’t work? require ‘win32ole’ autoit = …

---

## [Ruby 1.9 on MacOS X 10.5.2](https://www.ruby-forum.com/t/ruby-1-9-on-macos-x-10-5-2/134650)

<div class="topic-metadata">

**Author:** [@Masaru\_Sato](https://www.ruby-forum.com/u/Masaru_Sato)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/ruby-1-9-on-macos-x-10-5-2/134650 "2008-04-13T13:10:28Z")

</div>

e$B$5$H$&$H$$$$$^$9!#e(B Intel CPU + MacOS X 10.5.2 Leopard + XQuartz 2.1.4 e$B$N4D6-$Ge(B marphy03:~ marphy$ ruby19 --version ruby 1.9.0 (2008-04-13 revision 15990) \[i686-darwin9.2.2\] e$B$J$N$G$9$,e(B make test e$B$…

---

## [Ensuring FTP calls complete](https://www.ruby-forum.com/t/ensuring-ftp-calls-complete/134604)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/ensuring-ftp-calls-complete/134604 "2008-04-13T12:56:56Z")

</div>

I’m a mid level java guy trying out Ruby. I’m rewriting a java ftp app in Ruby to learn about this aspect of language. One thing I’ve been wondering is how Ruby handles problems encountered with ftp. For example, i…

---

## [Doodle version 0.0.10 released](https://www.ruby-forum.com/t/doodle-version-0-0-10-released/134648)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/doodle-version-0-0-10-released/134648 "2008-04-13T12:38:36Z")

</div>

This release fixes a bug in setting class and singleton attributes (and adds a spec to catch it). Apologies to anyone who installed 0.0.9 and got hit by this bug. Docs at http://doodle.rubyforge.org. Regards, Sean

---

## [Cannot debug IronRuby + Silverlight - any hint?](https://www.ruby-forum.com/t/cannot-debug-ironruby-silverlight-any-hint/134345)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 7\
**Last updated:** [April 13, 2008, 3:59am UTC](https://www.ruby-forum.com/t/cannot-debug-ironruby-silverlight-any-hint/134345 "2008-04-13T03:59:14Z")

</div>

Hi, I followed the debugging guidelines provided at the bottom of http://silverlight.net/Quickstarts/ProgramDlr.aspx but could not get them to work so far. My breakpoints in VisualStudio 2008 keep their label “This …

---

## [Make test-all gets stuck](https://www.ruby-forum.com/t/make-test-all-gets-stuck/134620)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 3:51am UTC](https://www.ruby-forum.com/t/make-test-all-gets-stuck/134620 "2008-04-13T03:51:37Z")

</div>

e$B1sF#$G$9!#e(B e$B8=:$Ne(B trunk e$B$G!"e(Bmake test-all e$B$,ESCf$G8G$^$j$^$9!#e(B verbose e$B$G$$?$H$3$m!"e(Btest\_mutex\_synchronize(TestThread) e$B$Ge(B e$B8G$^$C$F$$$k$h$&$G$9!#e(B e$B$G$be(B test\_thread.rb e$BC…

---

## [Doodle-0.0.9 released](https://www.ruby-forum.com/t/doodle-0-0-9-released/134617)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 3:43am UTC](https://www.ruby-forum.com/t/doodle-0-0-9-released/134617 "2008-04-13T03:43:59Z")

</div>

Doodle 0.0.9 has been released. Doodle simplifies the definition of Ruby classes by providing a simple DSL for declaring attribute validations and conversions. Doodle is eco-friendly – it does not globally modify Obje…

---

## [Designing Namespaces](https://www.ruby-forum.com/t/designing-namespaces/134520)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [April 13, 2008, 3:37am UTC](https://www.ruby-forum.com/t/designing-namespaces/134520 "2008-04-13T03:37:28Z")

</div>

I find it curious that whenever I design an application and begin to organize the class/module namespaces, I get something like: module FooMusic class Instruments::WindInstruments::Trumpet \< WindInstrument class Inst…

---

## [Re: Problem with saving records through the form](https://www.ruby-forum.com/t/re-problem-with-saving-records-through-the-form/134622)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 2:56am UTC](https://www.ruby-forum.com/t/re-problem-with-saving-records-through-the-form/134622 "2008-04-13T02:56:32Z")

</div>

I have a form on a page add\_flight.rhtml - \<%=form\_tag({:controller=\>“local\_flights”,:action=\>“shared”}, {:id=\>“add\_flight”, :method=\>“post”})%\> … \<%=submit\_tag(“Add your Flight Request”)%\> Then,\* in controller - \* …

---

## [ANN: DocTest 0.0.1 version code-name: bazooka](https://www.ruby-forum.com/t/ann-doctest-0-0-1-version-code-name-bazooka/134607)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 1:54am UTC](https://www.ruby-forum.com/t/ann-doctest-0-0-1-version-code-name-bazooka/134607 "2008-04-13T01:54:26Z")

</div>

I have recently coded up an implementation of Doctest for Ruby. Kind of ugly, but it works. DocTest Explanation: Or rather, example: Here are some examples copied from http://clintonforbes.blogspot.com/2007/08/docte…

---

## [foxGUIb - status?](https://www.ruby-forum.com/t/foxguib-status/134583)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [April 12, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/foxguib-status/134583 "2008-04-12T23:42:21Z")

</div>

This project - “a GUI creator and code generator for FXRuby” - looks promising, but… no posts to this list re foxGUIb since 09.12.2006 forum (http://rubyforge.org/pipermail/fox-tool-users/2006-September/date.html) h…

---

## [Instance Variable On-Change](https://www.ruby-forum.com/t/instance-variable-on-change/134600)

<div class="topic-metadata">

**Author:** [@lazukars](https://www.ruby-forum.com/u/lazukars)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/instance-variable-on-change/134600 "2008-04-12T21:06:14Z")

</div>

I need to make a way to run a method when class’ instance variable changes from false to true and only run it once. But I have no idea how to do this. Any ideas?

---

## [CGI - problem with calling methods](https://www.ruby-forum.com/t/cgi-problem-with-calling-methods/134586)

<div class="topic-metadata">

**Author:** [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/cgi-problem-with-calling-methods/134586 "2008-04-12T20:56:07Z")

</div>

Hi all, First post here, I hope it is in the right place. I am new to Ruby, and I am trying to write a simple cgi script. I want to execute a method inside a cgi script, but I constantly get the error: \[Sat Apr 12 1…

---

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

<div class="topic-metadata">

**Author:** [@baptiste\_AuguiSSSS](https://www.ruby-forum.com/u/baptiste_AuguiSSSS)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/no-subject/134601 "2008-04-12T19:28:48Z")

</div>

unsubscribe baptiste Augui

---

## [Irb error on osx 10.4.11](https://www.ruby-forum.com/t/irb-error-on-osx-10-4-11/134553)

<div class="topic-metadata">

**Author:** [@dhuebsch](https://www.ruby-forum.com/u/dhuebsch)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/irb-error-on-osx-10-4-11/134553 "2008-04-12T19:03:19Z")

</div>

irb dyld: NSLinkModule() error dyld: Symbol not found: \_rl\_filename\_completion\_function Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.11.0/readline.bundle Expected in: flat namespace Trace/BPT trap ruby…

---

## [How to create random object to a particular ruby object?](https://www.ruby-forum.com/t/how-to-create-random-object-to-a-particular-ruby-object/134488)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 21\
**Last updated:** [April 12, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/how-to-create-random-object-to-a-particular-ruby-object/134488 "2008-04-12T18:05:47Z")

</div>

how to create random object to a particular ruby object ? for example i want like this rand(Fixnum) --\> 345 (randomly) rand(Float) --\> 3877.5545(randomly) rand(String) --\> “sfskgksf” (randomly) rand(boolean)…

---

## [Fxruby gem install problem](https://www.ruby-forum.com/t/fxruby-gem-install-problem/134580)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [April 12, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/fxruby-gem-install-problem/134580 "2008-04-12T18:02:14Z")

</div>

I’m trying to install the most recent fxruby gem - I don’t understand what’s happening: sudo gem install fxruby-1.6.14.gem ERROR: While executing gem … (Gem::GemNotFoundException) Could not find fxruby-1.6.14.gem (\> …

---

## [ERROR: While executing gem ... (Gem::GemNotFoundException) C](https://www.ruby-forum.com/t/error-while-executing-gem-gem-gemnotfoundexception-c/134596)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/error-while-executing-gem-gem-gemnotfoundexception-c/134596 "2008-04-12T17:50:15Z")

</div>

hi every one i am facing this problem .please tell how to solve it.if i am instaling rails its showing rails installed.bu if i tried rails test.Its giving rails command not found

---

## [Listing folder contents](https://www.ruby-forum.com/t/listing-folder-contents/131349)

<div class="topic-metadata">

**Author:** [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/listing-folder-contents/131349 "2008-04-12T17:02:41Z")

</div>

Hi Im listing the contents of a folder using this: Find.find(’/Volumes/MYBOOK/stuff/’) do |f| p f end This is fine, but im seeing hidden files are with .\_ prefix. Is there any easy way to exclude this? The folder co…

---

## [Fw: Bug in ruby complex module](https://www.ruby-forum.com/t/fw-bug-in-ruby-complex-module/134591)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 2\
**Last updated:** [April 12, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/fw-bug-in-ruby-complex-module/134591 "2008-04-12T16:01:02Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B8+Mn$H$7$F$^$7$?$,!":rG/Kv$K!Ve(BComplexe$B$N=|;;$K%P%0$,$"$k!W$He(B e$B$$$&%a!\<%k$,e(Bruby-coree$B$KMh$F$^$7$?!#e(B\[ruby-talk:285292\] e$B8=\>u$Ne(BCe$BAH$9~$$Ne(Bcomplexe$B$G$bF1MM…

---

## [Finalizers](https://www.ruby-forum.com/t/finalizers/134571)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/finalizers/134571 "2008-04-12T15:39:22Z")

</div>

e$B$J$+$@$G$9!#e(B ObjectSpace::{add,remove,call}\_finalizere$B$Oe(Bdeprecatede$B$H7Y9p$,=P$ke(B e$B$h$&$K$J$C$F$+$i$b$&D9$$$3$H7P$A$^$9!#$=$m$=$m\>C$7$F$b$$$$$s$8$ce(B e$B$J$$$G$7$g$&$+!#e(B Index: gc.c — gc.c (revis…

---

## [Enumerable.cycle(n)](https://www.ruby-forum.com/t/enumerable-cycle-n/134516)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/enumerable-cycle-n/134516 "2008-04-12T14:28:52Z")

</div>

ã€€Enumerable#cycle ã‚’å›žæ•°æŒ‡å®šå¯èƒ½ã«ã™ã‚‹ã®ã¯ã©ã†ã§ã—ã‚‡ã†ã‹ã€‚ (1…3).cycle(2) { |obj| … } # 1,2,3,1,2,3 ã€€ä½•å›žç›®ãªã®ã‹ã‚’æ¸¡ã™ #cycle\_with\_counter { |obj, counter| … } ã‚‚ ã»ã—ã„ã‹ã‚‚ã€‚…

---

## [Controlling non-IE based application](https://www.ruby-forum.com/t/controlling-non-ie-based-application/134106)

<div class="topic-metadata">

**Author:** [@sean\_n](https://www.ruby-forum.com/u/sean_n)\
**Replies:** 9\
**Last updated:** [April 12, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/controlling-non-ie-based-application/134106 "2008-04-12T14:20:38Z")

</div>

Hello, I’ve been previously been using waitr to control a web based application. The application has been rewritten so that it doesn’t use IE anymore so my watir scripts don’t work anymore. I know the application i…

---

## [Missing openssl.so in x86\_64-linux/](https://www.ruby-forum.com/t/missing-openssl-so-in-x86-64-linux/134563)

<div class="topic-metadata">

**Author:** [@jnylund](https://www.ruby-forum.com/u/jnylund)\
**Replies:** 2\
**Last updated:** [April 12, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/missing-openssl-so-in-x86-64-linux/134563 "2008-04-12T14:10:40Z")

</div>

Hi, I am running centos 5.0 (64 bit) and want to run ruby 1.8.6 and rails. I installed 1.8.6 from source using: wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p114.tar.gz tar xfz ruby-\* cd ruby-\* ./configure …

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

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