# Ruby

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

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

---

## [Uninstall rubyosx](https://www.ruby-forum.com/t/uninstall-rubyosx/116091)

<div class="topic-metadata">

**Author:** [@mortee](https://www.ruby-forum.com/u/mortee)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 10:51am UTC](https://www.ruby-forum.com/t/uninstall-rubyosx/116091 "2007-10-02T10:51:51Z")

</div>

Does someone know how can one uninstall rubyosx, alias the Ruby One-Click Installer for OS X? They promise on the main page that it’s trivial to uninstall, but I just can’t find how. I found it inappropriate in favor …

---

## [Creating a directory with File.makedirs](https://www.ruby-forum.com/t/creating-a-directory-with-file-makedirs/116084)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 10:18am UTC](https://www.ruby-forum.com/t/creating-a-directory-with-file-makedirs/116084 "2007-10-02T10:18:29Z")

</div>

I am trying to create a directory in Rails with the following code: File.makedirs ‘/folder/subfolder/’ However, I get the error “undefined method \`makedirs’ for File:Class”. Has makedirs been deprecated to something e…

---

## [Outputting results as html in a file](https://www.ruby-forum.com/t/outputting-results-as-html-in-a-file/116087)

<div class="topic-metadata">

**Author:** [@Jenny\_P](https://www.ruby-forum.com/u/Jenny_P)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 9:50am UTC](https://www.ruby-forum.com/t/outputting-results-as-html-in-a-file/116087 "2007-10-02T09:50:59Z")

</div>

Background: I’m working on a Ruby program to simulate horse races for a fantasy horse racing league. It works off a csv file I put together by hand with the information necessary for each race. I realize it would be e…

---

## [Instance variable/ I'm lost](https://www.ruby-forum.com/t/instance-variable-im-lost/116077)

<div class="topic-metadata">

**Author:** [@dust](https://www.ruby-forum.com/u/dust)\
**Replies:** 10\
**Last updated:** [October 2, 2007, 8:37am UTC](https://www.ruby-forum.com/t/instance-variable-im-lost/116077 "2007-10-02T08:37:12Z")

</div>

Hello i am new to programming/ ruby but i have had some help from a cousin and read a book so i have some knowlage of what I’m doing. Anyways in my free time i was creating a program that tested me on easy multiplicat…

---

## [Entering try-catch with non-empty stack](https://www.ruby-forum.com/t/entering-try-catch-with-non-empty-stack/116074)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 5:45am UTC](https://www.ruby-forum.com/t/entering-try-catch-with-non-empty-stack/116074 "2007-10-02T05:45:54Z")

</div>

As a recent thread pointed out, this list so far have been more like ironruby-talk than ironruby-core. :slight\_smile: So, to start the discussion, I have a question. In tests/ironruby/Runtime/Block/test\_closure, I see…

---

## [Re: Probable Iterations (#141)](https://www.ruby-forum.com/t/re-probable-iterations-141/116073)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 3:35am UTC](https://www.ruby-forum.com/t/re-probable-iterations-141/116073 "2007-10-02T03:35:45Z")

</div>

This week’s quiz was extremely simple. My solution mostly-worked on the first try. DES\_NUMBER = 5 DICE\_SIDES = 6 verbose = ARGV.include? “-v” sample = ARGV.include? “-s” dice = ARGV\[-2\].to\_i min\_des = ARGV\[-1\].to\_…

---

## [Recursing through directories](https://www.ruby-forum.com/t/recursing-through-directories/115590)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 13\
**Last updated:** [October 2, 2007, 2:08am UTC](https://www.ruby-forum.com/t/recursing-through-directories/115590 "2007-10-02T02:08:36Z")

</div>

Hi there I have a simple script (untested) require ‘ftools’ Dir.entries( ‘/Volumes/’ ).each |item| do File.move( item, item.gsub( ///, ‘-’ ) ) if File.file? item end The idea is to remove slashes from file names, I…

---

## [Calling Ruby from PHP fails on "requires 'mysql'"](https://www.ruby-forum.com/t/calling-ruby-from-php-fails-on-requires-mysql/115891)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 8\
**Last updated:** [October 2, 2007, 1:32am UTC](https://www.ruby-forum.com/t/calling-ruby-from-php-fails-on-requires-mysql/115891 "2007-10-02T01:32:18Z")

</div>

I’m calling Ruby from PHP using system(). This works fine until I add “require ‘mysql’”. I think it’s likely missing a path for the Ruby MySQL gem. I can call the same script successfully from crontab by adding the li…

---

## [Ruby Contacts Importer?](https://www.ruby-forum.com/t/ruby-contacts-importer/116067)

<div class="topic-metadata">

**Author:** [@Mojave](https://www.ruby-forum.com/u/Mojave)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 1:31am UTC](https://www.ruby-forum.com/t/ruby-contacts-importer/116067 "2007-10-02T01:31:08Z")

</div>

Is there a Ruby based email contacts importer? Would like to be able to import from gmail, yahoo, hotmail, etc. Thanks.

---

## [Void value expression for 'retry'](https://www.ruby-forum.com/t/void-value-expression-for-retry/116057)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 2\
**Last updated:** [October 1, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/void-value-expression-for-retry/116057 "2007-10-01T23:52:02Z")

</div>

following code returns, retry.rb:13: void value expression What is wrong with this code? #!/usr/bin/env ruby retry\_count = 0 retry\_max = 4 begin sleep 30 rescue Interrupt if ( retry\_count \< retry\_max) retry\_cou…

---

## [Dike-0.0.3](https://www.ruby-forum.com/t/dike-0-0-3/115882)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 4\
**Last updated:** [October 1, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/dike-0-0-3/115882 "2007-10-01T23:32:44Z")

</div>

NAME dike SYNOPSIS a simple memory leak detector for ruby with preconfigured rails hooks. INSTALL gem install dike URIS http://www.codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ DESCRI…

---

## [Optimizing testing](https://www.ruby-forum.com/t/optimizing-testing/115955)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 6\
**Last updated:** [October 1, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/optimizing-testing/115955 "2007-10-01T23:25:37Z")

</div>

I have a rake task that lunches all my unit tests. The execution of those tests may take over 20 mins. I would like to have two rake task, one that executes a set of quick tests and one that executes all the tests th…

---

## [Public versus private discussion and community momentum](https://www.ruby-forum.com/t/public-versus-private-discussion-and-community-momentum/116038)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 17\
**Last updated:** [October 1, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/public-versus-private-discussion-and-community-momentum/116038 "2007-10-01T23:24:31Z")

</div>

It seems like although there’s some discussion on the RubyForge list about IronRuby progress, challenges, things to work on, and the rest, there’s not as much discussion as a project might like, and practically none f…

---

## [URI.join inconsistency](https://www.ruby-forum.com/t/uri-join-inconsistency/115985)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 2\
**Last updated:** [October 1, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/uri-join-inconsistency/115985 "2007-10-01T23:11:37Z")

</div>

I just got stung by rather annoying feature of URI.join: irb(main):001:0\> URI.join(‘http://www.example.com/something’, ‘else’).to\_s =\> “http://www.example.com/else” Note that this completely ignores the ‘something’ …

---

## [Using XSD Module](https://www.ruby-forum.com/t/using-xsd-module/116049)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 0\
**Last updated:** [October 1, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/using-xsd-module/116049 "2007-10-01T22:33:23Z")

</div>

Hello all, Does anyone know where one can find a good tutorial on the XSD module provided by Ruby? I’m trying to generate Ruby objects from XML schemas, and I’m wondering if the XSD CodeGen stuff will do the trick. T…

---

## [Amazon s3sh socket connection error](https://www.ruby-forum.com/t/amazon-s3sh-socket-connection-error/116048)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [October 1, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/amazon-s3sh-socket-connection-error/116048 "2007-10-01T22:31:53Z")

</div>

Hello there, I’m using Windows XP to connect to Amazon webservices using s3sh library. I’m facing problems with uploading files to my bucket. AWS::S3::S3Object.store(“paper.pdf”, open(“paper.pdf”), “this\_is\_my\_uniq…

---

## [MIME HTML (mhtml) encoding](https://www.ruby-forum.com/t/mime-html-mhtml-encoding/116047)

<div class="topic-metadata">

**Author:** [@McLaughlinS\_James\_T](https://www.ruby-forum.com/u/McLaughlinS_James_T)\
**Replies:** 0\
**Last updated:** [October 1, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/mime-html-mhtml-encoding/116047 "2007-10-01T22:09:47Z")

</div>

Greetings - I need to take a web page, such as Google , and save it as an MHTML document I can then load into a browser (IE currently, Firefox doesn’t have MHT support) and view. I have been looking and playing wit…

---

## [GTK ListBox?](https://www.ruby-forum.com/t/gtk-listbox/115967)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 3\
**Last updated:** [October 1, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/gtk-listbox/115967 "2007-10-01T21:50:20Z")

</div>

Greetings Ruby gurus I have recently started using ruby (cool!) and have written a couple of simple programs with Ruby/Tk interfaces. They work fine but I have been unable to access Tk without using a barrow load of …

---

## [Accessing a .class](https://www.ruby-forum.com/t/accessing-a-class/115822)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 7\
**Last updated:** [October 1, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/accessing-a-class/115822 "2007-10-01T21:49:10Z")

</div>

Hi, How do you access a .class placed, say, in the directory as the .rb? I read Eric A.'s piece: Using Java classes in JRuby but this didn’t seem to contain the answer. I also found this: http://www.headius.com/jru…

---

## [WxRuby StatusBar](https://www.ruby-forum.com/t/wxruby-statusbar/116031)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 1\
**Last updated:** [October 1, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/wxruby-statusbar/116031 "2007-10-01T20:41:00Z")

</div>

How do you change the text value of a StatusBar in WxRuby?

---

## [Exception catch-all](https://www.ruby-forum.com/t/exception-catch-all/75235)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 5\
**Last updated:** [October 1, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/exception-catch-all/75235 "2007-10-01T20:29:07Z")

</div>

I have a script that needs to run unattended every night, and I need to log if it throws an exception anywhere. Is this as simple as putting a begin…rescue…end around the top-most statements? I know that doesn’t work …

---

## [Variables with a name ending in question mark](https://www.ruby-forum.com/t/variables-with-a-name-ending-in-question-mark/116027)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [October 1, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/variables-with-a-name-ending-in-question-mark/116027 "2007-10-01T19:56:11Z")

</div>

question? is that a valid ruby variable name? if not: would that be a useful feature for ruby to introduce? if so: should I RCR it? Thanks! -Roger

---

## [Help with a Windows port of a Ruby extension](https://www.ruby-forum.com/t/help-with-a-windows-port-of-a-ruby-extension/115946)

<div class="topic-metadata">

**Author:** [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Replies:** 5\
**Last updated:** [October 1, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/help-with-a-windows-port-of-a-ruby-extension/115946 "2007-10-01T19:27:53Z")

</div>

I’m working on a game that’s in the early stages, and I want to make sure it runs on both OS X and Windows before I continue development. OS X is my primary OS, and it runs fine on that. But it crashes in Windows. T…

---

## [\[QUIZ\] Probable Iterations (#141)](https://www.ruby-forum.com/t/quiz-probable-iterations-141/116032)

<div class="topic-metadata">

**Author:** [@mental](https://www.ruby-forum.com/u/mental)\
**Replies:** 0\
**Last updated:** [October 1, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/quiz-probable-iterations-141/116032 "2007-10-01T19:15:24Z")

</div>

My solution follows. Nothing fancy this time; just enough to do the job. One feature of interest: it calculates the exact room needed for the left-hand column in advance. -mental mode = nil if ARGV\[0\] =~ /-(\[sv\])…

---

## [Ruby-odbc giving memory access error](https://www.ruby-forum.com/t/ruby-odbc-giving-memory-access-error/116018)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 0\
**Last updated:** [October 1, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/ruby-odbc-giving-memory-access-error/116018 "2007-10-01T17:42:02Z")

</div>

I’m using ruby-odbc on a macbook pro, trying to connect to an Oracle database (10g), using Actual Technologies ODBC driver, I was working through bugs until I got to this: $ irb require ‘odbc’ =\> true conn = OD…

---

## [Connecting to PostgreSQL Database](https://www.ruby-forum.com/t/connecting-to-postgresql-database/116011)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 4\
**Last updated:** [October 1, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/connecting-to-postgresql-database/116011 "2007-10-01T17:40:52Z")

</div>

Hello, I am trying to move data from one postgres database to another using the Ruby postgres adapter. However, I keep getting a password authentication error whenever I try. My sysadmin keeps indicating that there i…

---

## [Mac - hpricot problems](https://www.ruby-forum.com/t/mac-hpricot-problems/115730)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 23\
**Last updated:** [October 1, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/mac-hpricot-problems/115730 "2007-10-01T17:22:42Z")

</div>

i am trying to get hpricot running (so i can run mechanize) and am running into problems… i have installed hpricot a few times (just deleted it from the gems) and did a fresh ‘gem install hpricot’… the problem i have…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229111)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 1, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229111 "2007-10-01T16:39:49Z")

</div>

Begin forwarded message:

---

## [Unicode](https://www.ruby-forum.com/t/unicode/114786)

<div class="topic-metadata">

**Author:** [@Zephyr\_P](https://www.ruby-forum.com/u/Zephyr_P)\
**Replies:** 25\
**Last updated:** [October 1, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/unicode/114786 "2007-10-01T16:22:03Z")

</div>

I hate to discuss something related to the development timeline, I know its tenable, but When will it be reasonable to expect Unicode support from Ruby?

---

## [Trapping TERM in a daemonized (Daemon gem) script](https://www.ruby-forum.com/t/trapping-term-in-a-daemonized-daemon-gem-script/115834)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 2\
**Last updated:** [October 1, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/trapping-term-in-a-daemonized-daemon-gem-script/115834 "2007-10-01T16:16:46Z")

</div>

I’m using the Daemon gem, and I’d like to trap the TERM signal so that I can have graceful termination of my main execution loop: $running = true; Signal.trap(“TERM”) do $running = false end while($running) do #so…

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

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