# Ruby

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

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

---

## [Installing eruby](https://www.ruby-forum.com/t/installing-eruby/71592)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 0\
**Last updated:** [October 10, 2006, 6:29am UTC](https://www.ruby-forum.com/t/installing-eruby/71592 "2006-10-10T06:29:05Z")

</div>

I just learned about embedding ruby into html docs. i managed to add AddType application/x-httpd-eruby .rhtml Action application/x-httpd-eruby /cgi-bin/eruby to my httpd.conf. At this point i get the “Not Found - The re…

---

## [Re: Curses](https://www.ruby-forum.com/t/re-curses/71585)

<div class="topic-metadata">

**Author:** [@OverdorfS\_Sam](https://www.ruby-forum.com/u/OverdorfS_Sam)\
**Replies:** 2\
**Last updated:** [October 10, 2006, 5:11am UTC](https://www.ruby-forum.com/t/re-curses/71585 "2006-10-10T05:11:30Z")

</div>

So how do I go about getting this changed for the Ruby Curses Library? Sam Overdorf

---

## [ruby/GTK : Embedded terminal or redirecting process output](https://www.ruby-forum.com/t/ruby-gtk-embedded-terminal-or-redirecting-process-output/71364)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 2\
**Last updated:** [October 10, 2006, 4:13am UTC](https://www.ruby-forum.com/t/ruby-gtk-embedded-terminal-or-redirecting-process-output/71364 "2006-10-10T04:13:23Z")

</div>

Hi, Using ruby-gnome2 (gtk) I’d like to embed a terminal in a window, or redirect the output of a child process into a text editor. Something like sbtn.signal\_connect(“pressed”) { system(‘ls’) } … launch the comma…

---

## [Packaging hybrid extension?](https://www.ruby-forum.com/t/packaging-hybrid-extension/71561)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 4\
**Last updated:** [October 10, 2006, 2:55am UTC](https://www.ruby-forum.com/t/packaging-hybrid-extension/71561 "2006-10-10T02:55:18Z")

</div>

I’m writing something which is partially written in ruby, but uses an extension which adds methods to some of the classes in the ruby part. Right now I’ve got a directory which contains both the ruby code and the so c…

---

## [Re: Shortcut for nested modules (RESOLVED)](https://www.ruby-forum.com/t/re-shortcut-for-nested-modules-resolved/71582)

<div class="topic-metadata">

**Author:** [@John\_Ky](https://www.ruby-forum.com/u/John_Ky)\
**Replies:** 0\
**Last updated:** [October 10, 2006, 2:25am UTC](https://www.ruby-forum.com/t/re-shortcut-for-nested-modules-resolved/71582 "2006-10-10T02:25:15Z")

</div>

Awesome, thanks -John

---

## [Installing mysql-ruby on windows - russian edition](https://www.ruby-forum.com/t/installing-mysql-ruby-on-windows-russian-edition/71567)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 10, 2006, 12:51am UTC](https://www.ruby-forum.com/t/installing-mysql-ruby-on-windows-russian-edition/71567 "2006-10-10T00:51:06Z")

</div>

Available at http://jug.org.ua/wiki/pages/viewpage.action?pageId=8479

---

## [Subtle change in ruby 1.9](https://www.ruby-forum.com/t/subtle-change-in-ruby-1-9/71559)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [October 10, 2006, 12:11am UTC](https://www.ruby-forum.com/t/subtle-change-in-ruby-1-9/71559 "2006-10-10T00:11:03Z")

</div>

While reading the ruby source code, I found an interesting trivia nugget about module mix-in semantics, and that it appears to be subtly changing in 1.9. I hadn’t seen mention of this change anywhere, so I wrote about…

---

## [Stupid TypeError while checking array values](https://www.ruby-forum.com/t/stupid-typeerror-while-checking-array-values/71556)

<div class="topic-metadata">

**Author:** [@kly](https://www.ruby-forum.com/u/kly)\
**Replies:** 7\
**Last updated:** [October 9, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/stupid-typeerror-while-checking-array-values/71556 "2006-10-09T23:19:26Z")

</div>

Not sure if I’m even close to the mark on this. Ruby noob here…RACKIN M’BRAINS HERE!! :frowning: I am trying to check values of an array against another value. Unfortunately, I keep getting a TypeError that says: ca…

---

## [Allow Users](https://www.ruby-forum.com/t/allow-users/71523)

<div class="topic-metadata">

**Author:** [@acoole](https://www.ruby-forum.com/u/acoole)\
**Replies:** 7\
**Last updated:** [October 9, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/allow-users/71523 "2006-10-09T23:00:56Z")

</div>

Ok so im new to ruby, I Want to make it so the person using the application can type a word and it will turn backwords Thanks,

---

## [Global rake tasks](https://www.ruby-forum.com/t/global-rake-tasks/71456)

<div class="topic-metadata">

**Author:** [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Replies:** 1\
**Last updated:** [October 9, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/global-rake-tasks/71456 "2006-10-09T22:22:45Z")

</div>

Hi! Does rake support some kind of ‘global’ tasks that would be loaded from ~/.rake or some similar directory? I’d like to have some admin tasks or some subversion related tasks (like svn:tag that tags the trunk as a…

---

## [Distributed testing with Test::Unit and Rinda](https://www.ruby-forum.com/t/distributed-testing-with-test-unit-and-rinda/71514)

<div class="topic-metadata">

**Author:** [@jhosteny](https://www.ruby-forum.com/u/jhosteny)\
**Replies:** 1\
**Last updated:** [October 9, 2006, 9:34pm UTC](https://www.ruby-forum.com/t/distributed-testing-with-test-unit-and-rinda/71514 "2006-10-09T21:34:42Z")

</div>

Hi all, I have been working on some code to assist with distributed unit testing using Test::Unit and Rinda. I thought I’d post it here assuming that someone else might find it interesting or useful. It’s a bit raw, a…

---

## [SqlStatement 1.0.0 - hide the syntax of SQL behind familiar](https://www.ruby-forum.com/t/sqlstatement-1-0-0-hide-the-syntax-of-sql-behind-familiar/71513)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 3\
**Last updated:** [October 9, 2006, 8:48pm UTC](https://www.ruby-forum.com/t/sqlstatement-1-0-0-hide-the-syntax-of-sql-behind-familiar/71513 "2006-10-09T20:48:36Z")

</div>

sqlstatement - Generate complex SQL statements programmatically The main goal of this library is to be able to construct an SQL statement from “slices” that concern different aspects of the final query (perhaps in dif…

---

## [Instant Rails 1.4 final released (with RadRails support!)](https://www.ruby-forum.com/t/instant-rails-1-4-final-released-with-radrails-support/71502)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 4\
**Last updated:** [October 9, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/instant-rails-1-4-final-released-with-radrails-support/71502 "2006-10-09T20:24:26Z")

</div>

This is the final release for Instant Rails 1.4. It corrects the two known problems with the preview1 release (two help menu items caused Instant Rails to crash). Instant Rails 1.4 contains the following major changes…

---

## [Error: private method \`gsub' called for :city:Symbol](https://www.ruby-forum.com/t/error-private-method-gsub-called-for-symbol/71527)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [October 9, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/error-private-method-gsub-called-for-symbol/71527 "2006-10-09T19:58:23Z")

</div>

I googled around on this one but found nothing. Anyone know what these error means ? I’m trying to use it in a form field : \<%= text\_field(:search,:city.gsub(/\\s/, “’’”)) %\> But also found the same error when using …

---

## [Should this work? C++/CLI and Ruby UTF-8 Strings](https://www.ruby-forum.com/t/should-this-work-c-cli-and-ruby-utf-8-strings/71540)

<div class="topic-metadata">

**Author:** [@sams](https://www.ruby-forum.com/u/sams)\
**Replies:** 0\
**Last updated:** [October 9, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/should-this-work-c-cli-and-ruby-utf-8-strings/71540 "2006-10-09T19:02:13Z")

</div>

I need to convert a .NET Unicode String to a UTF-8 byte-array to create a Ruby String that I can display on a UTF-8 encoded web-page. I don’t know C++ really, but a friend and I have stumbled our way through most of w…

---

## [How to remove empty space in a string and others](https://www.ruby-forum.com/t/how-to-remove-empty-space-in-a-string-and-others/71503)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [October 9, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/how-to-remove-empty-space-in-a-string-and-others/71503 "2006-10-09T18:48:11Z")

</div>

Hi all, I read lines from a file and put them into one string. There are many empty sapces within the string. Which method is used to remove the spaces? I try gsub!("\\s",’’) but it doesn’t work. Any help will be ap…

---

## [Beginning of day given a Time value](https://www.ruby-forum.com/t/beginning-of-day-given-a-time-value/71506)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 3\
**Last updated:** [October 9, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/beginning-of-day-given-a-time-value/71506 "2006-10-09T16:51:50Z")

</div>

Anyone have a nice idiomatic way given an instance of Time, to return the beginning of that day? Below is my approach but it just feels very wrong… require “test/unit” require “time” class Time def begin\_of\_day …

---

## [Gsub and slash-ampersand in the substitution string](https://www.ruby-forum.com/t/gsub-and-slash-ampersand-in-the-substitution-string/71498)

<div class="topic-metadata">

**Author:** [@jpatokal](https://www.ruby-forum.com/u/jpatokal)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/gsub-and-slash-ampersand-in-the-substitution-string/71498 "2006-10-09T16:45:48Z")

</div>

Greetings, I’m trying to do something that should be very simple: stick a “” in front of every instance of “&” in a string. However, the obvious code… “this&that”.gsub!("&", “") –\> "thisthat” # OK! “this&that”.gsu…

---

## [HTML reporter for Test::Unit](https://www.ruby-forum.com/t/html-reporter-for-test-unit/71400)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 17\
**Last updated:** [October 9, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/html-reporter-for-test-unit/71400 "2006-10-09T15:59:42Z")

</div>

Tesly Jr. (http://junior.tesly.com) is a hosted web app that provides an HTML reporter for your unit tests. With an RSS feed that gets updated with your test results every time you run your tests, it’s great for cont…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [October 9, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229068 "2006-10-09T15:11:35Z")

</div>

Begin forwarded message:

---

## [Shortcut for nested modules](https://www.ruby-forum.com/t/shortcut-for-nested-modules/71501)

<div class="topic-metadata">

**Author:** [@John\_Ky](https://www.ruby-forum.com/u/John_Ky)\
**Replies:** 3\
**Last updated:** [October 9, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/shortcut-for-nested-modules/71501 "2006-10-09T15:01:33Z")

</div>

Hello, Is there a short cut for: module A; module B; module C; module D def D.f end end; end; end; end The following doesn’t work for me: module A::b::C::smiley: def D.f end end Thanks -John

---

## [Where to start](https://www.ruby-forum.com/t/where-to-start/71472)

<div class="topic-metadata">

**Author:** [@Pet\_F](https://www.ruby-forum.com/u/Pet_F)\
**Replies:** 3\
**Last updated:** [October 9, 2006, 1:03pm UTC](https://www.ruby-forum.com/t/where-to-start/71472 "2006-10-09T13:03:17Z")

</div>

Hi, I found there are some Ruby programs are running in this development machines. Now I need to add some functionality into the Ruby program, but I don’t know where to look into its starting program or its main body…

---

## [Parsing Islamic date](https://www.ruby-forum.com/t/parsing-islamic-date/71475)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 12:01pm UTC](https://www.ruby-forum.com/t/parsing-islamic-date/71475 "2006-10-09T12:01:12Z")

</div>

Hello all, Is it possible to parse an Islamic date in Ruby by any means? I have found nothing but this: (from date.rb): … Alternative calendars such as the Chinese Lunar Calendar, the Islamic Calendar, or the French…

---

## [Stripping unwanted html](https://www.ruby-forum.com/t/stripping-unwanted-html/71217)

<div class="topic-metadata">

**Author:** [@wildal](https://www.ruby-forum.com/u/wildal)\
**Replies:** 6\
**Last updated:** [October 9, 2006, 7:37am UTC](https://www.ruby-forum.com/t/stripping-unwanted-html/71217 "2006-10-09T07:37:03Z")

</div>

Hi everyone: I’m trying to strip html with the exception of a few html tags. I have found the following code: def strip\_tags(html) if html.index("\<") text = “” tokenizer = HTML::Tokenizer.new(html) while token =…

---

## [Conditional class extension](https://www.ruby-forum.com/t/conditional-class-extension/71445)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [October 9, 2006, 6:26am UTC](https://www.ruby-forum.com/t/conditional-class-extension/71445 "2006-10-09T06:26:54Z")

</div>

Is there a better way to do conditional class extension? module Foo if const\_get(:Bar) class Bar def x; end end end recue nil end The ‘if const\_get … rescue nil’ doesn’t seem very elegant. Thanks, T.

---

## [Error at "bison parse.y" when compiling Ruby with MinGW](https://www.ruby-forum.com/t/error-at-bison-parse-y-when-compiling-ruby-with-mingw/71455)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 5:00am UTC](https://www.ruby-forum.com/t/error-at-bison-parse-y-when-compiling-ruby-with-mingw/71455 "2006-10-09T05:00:51Z")

</div>

I’m trying to build Ruby from source with MinGW (Windows XP SP 2), and it bombs at bison: sh configure --prefix=c:\\my\_ruby --enable-shared i386-mingw32 … lots 'o stuff make gcc -g -O2 -DRUBY\_EXPORT -I. -I. -c…

---

## [ZenProfile: Bus Error on OS X](https://www.ruby-forum.com/t/zenprofile-bus-error-on-os-x/71450)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 1\
**Last updated:** [October 9, 2006, 2:42am UTC](https://www.ruby-forum.com/t/zenprofile-bus-error-on-os-x/71450 "2006-10-09T02:42:42Z")

</div>

Hi, I tried ZenProfile with both 1.8.4 and 1.8.5 from Darwinports. I get the following error when requiring ZenProfile: $ gdb ruby (gdb) run -rubygems -e ‘require “zenprofile”’ Starting program: /opt/local/bin/ruby …

---

## [How to use a class](https://www.ruby-forum.com/t/how-to-use-a-class/71452)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 1:10am UTC](https://www.ruby-forum.com/t/how-to-use-a-class/71452 "2006-10-09T01:10:39Z")

</div>

Hi guys, Thank you all for taking your time and replying my previous post. Now I have other questions: 1) After I write a class with some methods I want to save the file called test. Which extension is associated with …

---

## [Phoenix Ruby Users Group October Meeting. NEW LOCATION!](https://www.ruby-forum.com/t/phoenix-ruby-users-group-october-meeting-new-location/71449)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [October 9, 2006, 12:30am UTC](https://www.ruby-forum.com/t/phoenix-ruby-users-group-october-meeting-new-location/71449 "2006-10-09T00:30:32Z")

</div>

The Phoenix Ruby U. Group will meet this Monday, Oct. 9, at 6:30 PM. THE MEETING LOCATION HAS CHANGED The meeting will be at the offices of Grid7, in Tempe: 420 w. 1st st. #108 Tempe, AZ http://rubyurl.com/4Mh AKA …

---

## [How to concatenate all the lines into one string](https://www.ruby-forum.com/t/how-to-concatenate-all-the-lines-into-one-string/71440)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [October 8, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/how-to-concatenate-all-the-lines-into-one-string/71440 "2006-10-08T20:49:20Z")

</div>

Hi all, I am new to Ruby. I just wonder how I can concatenate all the lines from one file and let them become one string. Thanks, Li

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

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