# Ruby

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

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

---

## ["postgres" module needs work, author gone, patch included](https://www.ruby-forum.com/t/postgres-module-needs-work-author-gone-patch-included/82734)

<div class="topic-metadata">

**Author:** [@s450r1](https://www.ruby-forum.com/u/s450r1)\
**Replies:** 11\
**Last updated:** [January 21, 2007, 4:28am UTC](https://www.ruby-forum.com/t/postgres-module-needs-work-author-gone-patch-included/82734 "2007-01-21T04:28:06Z")

</div>

The “postgres” module is old and it’s been a long time since there’s been a release. The module has the following problems: uses PQescapeString() and PQescapeBytea(), both of which are long- since deprecated, and pr…

---

## [Building extensions with Hoe](https://www.ruby-forum.com/t/building-extensions-with-hoe/81892)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 2\
**Last updated:** [January 21, 2007, 4:27am UTC](https://www.ruby-forum.com/t/building-extensions-with-hoe/81892 "2007-01-21T04:27:06Z")

</div>

Hi, I’m developing a library that includes a C extension, so during development I need to keep re-compiling the extension before testing. I’m using Hoe for packaging, so I’ve added the following task to my Rakefile.r…

---

## [Implementing a "calcuator" feature](https://www.ruby-forum.com/t/implementing-a-calcuator-feature/82789)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 1\
**Last updated:** [January 21, 2007, 1:58am UTC](https://www.ruby-forum.com/t/implementing-a-calcuator-feature/82789 "2007-01-21T01:58:54Z")

</div>

Hey Guys, Can someone recommend a fast but robust way to implement a calculator feature? I want to allow my users the ability to enter simple agebraic expressions and then press ‘calc’. My initial thought was to: C…

---

## [IMAP stuff (or POP)](https://www.ruby-forum.com/t/imap-stuff-or-pop/82297)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 3\
**Last updated:** [January 20, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/imap-stuff-or-pop/82297 "2007-01-20T22:55:36Z")

</div>

I’ve been trying to find a good source of imap or pop information with ruby and cant. maybe I’m missing somthing. as I understand with imap you can select parts of the BODY like \[TEXT\] \[1\]. I understand what text does…

---

## [Proper way to either create or append to an array?](https://www.ruby-forum.com/t/proper-way-to-either-create-or-append-to-an-array/82770)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 7\
**Last updated:** [January 20, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/proper-way-to-either-create-or-append-to-an-array/82770 "2007-01-20T21:30:28Z")

</div>

Hi all. Let’s say I want to either create a new named array or append to that array if it already exists. Is there a more elegant way of doing the following? @foo\[:bar\].nil? ? foo\[:bar\] = \[“snafu”\] : foo\[:bar\] \<\< “…

---

## [TrueClass === TrueClass](https://www.ruby-forum.com/t/trueclass-trueclass/82703)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 6\
**Last updated:** [January 20, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/trueclass-trueclass/82703 "2007-01-20T20:46:22Z")

</div>

Hi all, why is: TrueClass === TrueClass # false Object === Object # true Documentation states that === method is used to provide meaningful semantic in case statements. Can anyone explain me why some classes return…

---

## [Fxri - Way too many warnings](https://www.ruby-forum.com/t/fxri-way-too-many-warnings/82781)

<div class="topic-metadata">

**Author:** [@grauenwolf](https://www.ruby-forum.com/u/grauenwolf)\
**Replies:** 0\
**Last updated:** [January 20, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/fxri-way-too-many-warnings/82781 "2007-01-20T19:36:24Z")

</div>

Whenever I start fxri I get way too many warnings, easily in the thousands. Suggestions? Jonathan C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/fxruby-1.2.6-mswin32/ext/fox12/fox1 2.so: warning: already initialized …

---

## [Conditional value in hash array?](https://www.ruby-forum.com/t/conditional-value-in-hash-array/82760)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 5\
**Last updated:** [January 20, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/conditional-value-in-hash-array/82760 "2007-01-20T19:01:01Z")

</div>

hos to have a conditional value ? : :category =\> domain unless domain.nil? wrote : \[ :distance =\> radius.to\_f , :category =\> domain unless domain.nil?, :valid\_until =\> Time.now.utc\] but giving an error… unexpe…

---

## [Conventions for project organization?](https://www.ruby-forum.com/t/conventions-for-project-organization/82708)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 8\
**Last updated:** [January 20, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/conventions-for-project-organization/82708 "2007-01-20T18:56:01Z")

</div>

Hi folks, I’m going to writing a short blog entry for the O’Reilly blog about ruby conventions for project layout. I think this is relatively valuable, as it greatly simplifies the ability to audit projects and poss…

---

## [Ruby-oci8 1.0.0-rc1](https://www.ruby-forum.com/t/ruby-oci8-1-0-0-rc1/82765)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 0\
**Last updated:** [January 20, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/ruby-oci8-1-0-0-rc1/82765 "2007-01-20T17:14:47Z")

</div>

ruby-oci8 1.0.0-rc1 is released. This is a Oracle module using OCI8 API. If this works fine on environments described later, it will be 1.0.0. http://rubyforge.org/projects/ruby-oci8/ I have been reported several time…

---

## [Flat file database for ruby?](https://www.ruby-forum.com/t/flat-file-database-for-ruby/82743)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 4\
**Last updated:** [January 20, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/flat-file-database-for-ruby/82743 "2007-01-20T14:54:35Z")

</div>

Does anyone know of any flat file database implementations for Ruby?

---

## [Is there any libs for WIN32 GUI test?](https://www.ruby-forum.com/t/is-there-any-libs-for-win32-gui-test/81915)

<div class="topic-metadata">

**Author:** [@wangdong](https://www.ruby-forum.com/u/wangdong)\
**Replies:** 3\
**Last updated:** [January 20, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/is-there-any-libs-for-win32-gui-test/81915 "2007-01-20T14:23:27Z")

</div>

Python has lots of such libs and the Ruby dose?

---

## [Transform non-english text](https://www.ruby-forum.com/t/transform-non-english-text/82313)

<div class="topic-metadata">

**Author:** [@migrate](https://www.ruby-forum.com/u/migrate)\
**Replies:** 4\
**Last updated:** [January 20, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/transform-non-english-text/82313 "2007-01-20T12:02:26Z")

</div>

Hello, I have a Ruby aplication that deals with non-english text and I want to transform some of that text to \[^a-zA-Z0-9\]. Examples: bÃºsqueda -\> busqueda presenÃ§as -\> presencas fÃ¼r -\> fur aviÃ£o1 -\> aviao1 Ca…

---

## [Multi frame image viewer not updating](https://www.ruby-forum.com/t/multi-frame-image-viewer-not-updating/82320)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 6\
**Last updated:** [January 20, 2007, 11:06am UTC](https://www.ruby-forum.com/t/multi-frame-image-viewer-not-updating/82320 "2007-01-20T11:06:41Z")

</div>

Hi. I’m relatively new to FXRuby, and Ruby in general, so hopefully I have just overlooked something simple. I am making a program that has a image viewer on one side that shows multiple jpg’s in a vertical frame. U…

---

## [Rubygem's gemri broken?](https://www.ruby-forum.com/t/rubygems-gemri-broken/82192)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 4\
**Last updated:** [January 20, 2007, 8:52am UTC](https://www.ruby-forum.com/t/rubygems-gemri-broken/82192 "2007-01-20T08:52:01Z")

</div>

gem -v 0.9.0 gemri String /usr/lib/ruby/1.8/rdoc/ri/ri\_descriptions.rb:99:in concat': can't convert nil into Array (TypeError) from /usr/lib/ruby/1.8/rdoc/ri/ri\_descriptions.rb:99:inmerge\_in’ from /usr/lib/ruby/1.…

---

## [Call for developers: Alexandria project](https://www.ruby-forum.com/t/call-for-developers-alexandria-project/82745)

<div class="topic-metadata">

**Author:** [@Joseph\_Method](https://www.ruby-forum.com/u/Joseph_Method)\
**Replies:** 0\
**Last updated:** [January 20, 2007, 7:38am UTC](https://www.ruby-forum.com/t/call-for-developers-alexandria-project/82745 "2007-01-20T07:38:57Z")

</div>

The Alexandria project (http://alexandria.rubyforge.org/), a project to develop a book-and-other-media management application written in Ruby for Gnome, is undergoing a minor renaissance after going dormant for a whil…

---

## [ERROR: Failed to build gem native extension](https://www.ruby-forum.com/t/error-failed-to-build-gem-native-extension/82735)

<div class="topic-metadata">

**Author:** [@rails-nooby](https://www.ruby-forum.com/u/rails-nooby)\
**Replies:** 3\
**Last updated:** [January 20, 2007, 3:37am UTC](https://www.ruby-forum.com/t/error-failed-to-build-gem-native-extension/82735 "2007-01-20T03:37:44Z")

</div>

Can anyone tell this noob what I’ve done wrong? I tried to install rmagick, but apparently it fails. C:\\InstantRails\\rails\_apps\>gem install rmagick -r Need to update 31 gems from http://gems.rubyforge.org … comple…

---

## [Looking for Rails/OWL,RDF,RDFS speaker](https://www.ruby-forum.com/t/looking-for-rails-owl-rdf-rdfs-speaker/82737)

<div class="topic-metadata">

**Author:** [@Kathryn](https://www.ruby-forum.com/u/Kathryn)\
**Replies:** 0\
**Last updated:** [January 20, 2007, 3:13am UTC](https://www.ruby-forum.com/t/looking-for-rails-owl-rdf-rdfs-speaker/82737 "2007-01-20T03:13:38Z")

</div>

Anybody out there interested in speaking/ demonstrating your work with Rails and OWL/RDF or RDFS? We’re trying to get a Rails day inserted into an existing upcoming local conference, but we can only do it if we can fi…

---

## [Errors in mysql + ruby connection](https://www.ruby-forum.com/t/errors-in-mysql-ruby-connection/82732)

<div class="topic-metadata">

**Author:** [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Replies:** 0\
**Last updated:** [January 20, 2007, 2:31am UTC](https://www.ruby-forum.com/t/errors-in-mysql-ruby-connection/82732 "2007-01-20T02:31:36Z")

</div>

Hi folks - After getting my installation worked out, I’m having an error in my test code that I just don’t understand. I am running on OS X (PowerPC). Ruby 1.8.4 mySQL 5.0.27 I’m using DBI to access the database, bo…

---

## [WEBrick cookies not persisting?](https://www.ruby-forum.com/t/webrick-cookies-not-persisting/82306)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 1\
**Last updated:** [January 20, 2007, 12:17am UTC](https://www.ruby-forum.com/t/webrick-cookies-not-persisting/82306 "2007-01-20T00:17:22Z")

</div>

Has anyone had any experience on mac os x with WEBrick and cookies not persisting? What I’m doing is pushing a cookie into the response obj of a webrick request. When another request comes in. The req.cookies is empty…

---

## [Declaring instance variables dynamically](https://www.ruby-forum.com/t/declaring-instance-variables-dynamically/82692)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 8\
**Last updated:** [January 19, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/declaring-instance-variables-dynamically/82692 "2007-01-19T23:50:21Z")

</div>

Coming from PHP I want to take a class say, class User @name end And call it: u = User.new And then add a second class variable previously not declared: u.mood = “happy” PHP being what it is, it let you declare p…

---

## [Acts\_as\_taggable (the gem) woes (solved)](https://www.ruby-forum.com/t/acts-as-taggable-the-gem-woes-solved/82716)

<div class="topic-metadata">

**Author:** [@jean\_l](https://www.ruby-forum.com/u/jean_l)\
**Replies:** 1\
**Last updated:** [January 19, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-the-gem-woes-solved/82716 "2007-01-19T23:47:20Z")

</div>

Hi, I had to battle quite a bit to find how to load acts\_as\_taggable without using require\_gem. where I previously had require\_gem ‘acts\_as\_taggable’ I tried replacing by the obvious gem ‘acts\_as\_taggable’ require…

---

## [The elusive rubyweaver dreamweaver extension](https://www.ruby-forum.com/t/the-elusive-rubyweaver-dreamweaver-extension/82719)

<div class="topic-metadata">

**Author:** [@libsfan01](https://www.ruby-forum.com/u/libsfan01)\
**Replies:** 1\
**Last updated:** [January 19, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/the-elusive-rubyweaver-dreamweaver-extension/82719 "2007-01-19T23:45:20Z")

</div>

Hi all Does anyone know where i can get hold of this much vaunted rubyweaver extension for dreamweaver. I have been to the site: http://www.ridingtheclutch.com/ but it doesnt seem to be working? Please help!!

---

## [FuseFS-version of cheat](https://www.ruby-forum.com/t/fusefs-version-of-cheat/82718)

<div class="topic-metadata">

**Author:** [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Replies:** 0\
**Last updated:** [January 19, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/fusefs-version-of-cheat/82718 "2007-01-19T23:31:18Z")

</div>

I don’t know if it’s done before, but today I created a nice script for using cheat (http://cheat.errtheblog.com/) in FuseFS. Something to add? script: http://judofyr.googlecode.com/svn/trunk/ruby/small-files/cheatfs…

---

## [How to deploy a Ruby executable?](https://www.ruby-forum.com/t/how-to-deploy-a-ruby-executable/82294)

<div class="topic-metadata">

**Author:** [@rmmarsh](https://www.ruby-forum.com/u/rmmarsh)\
**Replies:** 6\
**Last updated:** [January 19, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/how-to-deploy-a-ruby-executable/82294 "2007-01-19T23:25:17Z")

</div>

I have looked everywhere and can’t find answers to the following questions: Can I create a compiled executable with Ruby as I can with other languages? How does one deploy a Ruby application? If someone could please…

---

## [TrueClass/FalseClass vs. Boolean](https://www.ruby-forum.com/t/trueclass-falseclass-vs-boolean/56403)

<div class="topic-metadata">

**Author:** [@PrimaryKey](https://www.ruby-forum.com/u/PrimaryKey)\
**Replies:** 23\
**Last updated:** [January 19, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/trueclass-falseclass-vs-boolean/56403 "2007-01-19T22:27:09Z")

</div>

Greetings! I am wondering why there are two separate classes (TrueClass and FalseClass) to deal with boolean types insead of one class (something like Boolean?). Do you know why the library designer desided to use th…

---

## [Looking for Game Dev IRC channels/mailing lists/forums](https://www.ruby-forum.com/t/looking-for-game-dev-irc-channels-mailing-lists-forums/82710)

<div class="topic-metadata">

**Author:** [@h4lfl1ng](https://www.ruby-forum.com/u/h4lfl1ng)\
**Replies:** 0\
**Last updated:** [January 19, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/looking-for-game-dev-irc-channels-mailing-lists-forums/82710 "2007-01-19T22:22:08Z")

</div>

I recently started using Gosu with ruby, And I’m working on a 1:1 isometric rpg, But I am new to game development. So I’m looking for IRC channels/mailing lists/forums that deal with game development/rpg/isometric m…

---

## [Ruby 1.8.4](https://www.ruby-forum.com/t/ruby-1-8-4/75206)

<div class="topic-metadata">

**Author:** [@dirk](https://www.ruby-forum.com/u/dirk)\
**Replies:** 8\
**Last updated:** [January 19, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4/75206 "2007-01-19T21:00:54Z")

</div>

Matz, thank you for releasing 1.8.4!! i was wondering if i can manually update the windows one-click-installer to 1.8.4 if anyone knows how, that would be great, if not, i’ll wait for that release… merry christmas! …

---

## [What's wrong with this snippet](https://www.ruby-forum.com/t/whats-wrong-with-this-snippet/82690)

<div class="topic-metadata">

**Author:** [@jkit](https://www.ruby-forum.com/u/jkit)\
**Replies:** 2\
**Last updated:** [January 19, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/whats-wrong-with-this-snippet/82690 "2007-01-19T20:52:38Z")

</div>

Hi, all! I’ve just stumbled over this orphaned snippet on my hard drive that returns a NoMethodError message instead of “Method meow called”! Is there a workaround? Thanks! AnimalSounds = Module.new AnimalSounds.cl…

---

## [Copying strings](https://www.ruby-forum.com/t/copying-strings/82656)

<div class="topic-metadata">

**Author:** [@WoodHacker](https://www.ruby-forum.com/u/WoodHacker)\
**Replies:** 3\
**Last updated:** [January 19, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/copying-strings/82656 "2007-01-19T19:46:38Z")

</div>

I can’t believe this hasn’t been answered a thousand times, but I can’t seem to find the answer in the group archive. I am parsing a string into @text (i.e. abc.def) I want to save the part before the dot into @f…

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

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