# Ruby

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

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

---

## [Ruby library for AOL OSCAR protocol](https://www.ruby-forum.com/t/ruby-library-for-aol-oscar-protocol/47951)

<div class="topic-metadata">

**Author:** [@jonathan.otto](https://www.ruby-forum.com/u/jonathan.otto)\
**Replies:** 1\
**Last updated:** [November 15, 2005, 3:14pm UTC](https://www.ruby-forum.com/t/ruby-library-for-aol-oscar-protocol/47951 "2005-11-15T15:14:22Z")

</div>

Anyone away of an existing library in Ruby for AOL’s OSCAR protocol? I’ve found something through Google but the links are all broken.

---

## [\[ANN\] ruby-sendfile 0.0.1](https://www.ruby-forum.com/t/ann-ruby-sendfile-0-0-1/47963)

<div class="topic-metadata">

**Author:** [@toby](https://www.ruby-forum.com/u/toby)\
**Replies:** 0\
**Last updated:** [November 15, 2005, 2:55pm UTC](https://www.ruby-forum.com/t/ann-ruby-sendfile-0-0-1/47963 "2005-11-15T14:55:05Z")

</div>

Hi all, I just released ruby-sendfile 0.0.1, which is a Ruby binding for the sendfile(2) system call on platforms that support it (Linux, FreeBSD and Solaris). You can find it here: http://cbcg.net/code/ If you’re g…

---

## [Fwd: Ruby Quiz #54](https://www.ruby-forum.com/t/fwd-ruby-quiz-54/47961)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 0\
**Last updated:** [November 15, 2005, 2:52pm UTC](https://www.ruby-forum.com/t/fwd-ruby-quiz-54/47961 "2005-11-15T14:52:41Z")

</div>

Begin forwarded message:

---

## [Newbie question about Pickaxe example](https://www.ruby-forum.com/t/newbie-question-about-pickaxe-example/47952)

<div class="topic-metadata">

**Author:** [@carmineaskme](https://www.ruby-forum.com/u/carmineaskme)\
**Replies:** 2\
**Last updated:** [November 15, 2005, 2:14pm UTC](https://www.ruby-forum.com/t/newbie-question-about-pickaxe-example/47952 "2005-11-15T14:14:13Z")

</div>

Hi to everyone, I’m just approaching ruby (so far I like it) coming from Python and other OO languages. I’ve bought the new edition of the famous “Pickaxe” book and I’m having a little difficulties understanding a pi…

---

## [Use of Ruby in Laboratory Automation](https://www.ruby-forum.com/t/use-of-ruby-in-laboratory-automation/47945)

<div class="topic-metadata">

**Author:** [@benn](https://www.ruby-forum.com/u/benn)\
**Replies:** 1\
**Last updated:** [November 15, 2005, 2:05pm UTC](https://www.ruby-forum.com/t/use-of-ruby-in-laboratory-automation/47945 "2005-11-15T14:05:07Z")

</div>

Hello, I am guest editing a scientific journal (The Journal of the Association for Laboratory Automation - http://labautomation.org/journal.php) of which is concerned with the use of various programming language…

---

## [Re: Index and Query (#54)](https://www.ruby-forum.com/t/re-index-and-query-54/102317)

<div class="topic-metadata">

**Author:** [@kashia.buch](https://www.ruby-forum.com/u/kashia.buch)\
**Replies:** 0\
**Last updated:** [November 15, 2005, 12:23pm UTC](https://www.ruby-forum.com/t/re-index-and-query-54/102317 "2005-11-15T12:23:11Z")

</div>

Hi, looking at all those long subscriptions… couldn’t resist to make my own. probably not as complete/fast as those, but small and neat looking :smiley: should be pretty much self explenators. it’s using bignums for …

---

## [Recursive functions](https://www.ruby-forum.com/t/recursive-functions/47844)

<div class="topic-metadata">

**Author:** [@hans.sjunnesson](https://www.ruby-forum.com/u/hans.sjunnesson)\
**Replies:** 20\
**Last updated:** [November 15, 2005, 11:40am UTC](https://www.ruby-forum.com/t/recursive-functions/47844 "2005-11-15T11:40:50Z")

</div>

I know that this is a trivial problem, but I’m having a hard time solving it with tuby. I could use a little extra help with my programming in ruby skills. The problem I’m faced to solving (taken from a puzzle in a ne…

---

## [Re: Has anyone written an extconf.rb that depends on a Mac O](https://www.ruby-forum.com/t/re-has-anyone-written-an-extconf-rb-that-depends-on-a-mac-o/47942)

<div class="topic-metadata">

**Author:** [@Pete.Wood](https://www.ruby-forum.com/u/Pete.Wood)\
**Replies:** 0\
**Last updated:** [November 15, 2005, 10:43am UTC](https://www.ruby-forum.com/t/re-has-anyone-written-an-extconf-rb-that-depends-on-a-mac-o/47942 "2005-11-15T10:43:38Z")

</div>

I use a OS X framework in creating the FireRuby library on the Mac. All I did to support this in the extconf.rb was add a line like the following into this file… $LDFLAGS = $LDFLAGS + " -framework Firebird" I’m not…

---

## [Removing a constant definition from an environment](https://www.ruby-forum.com/t/removing-a-constant-definition-from-an-environment/47890)

<div class="topic-metadata">

**Author:** [@robert.evans](https://www.ruby-forum.com/u/robert.evans)\
**Replies:** 10\
**Last updated:** [November 15, 2005, 10:22am UTC](https://www.ruby-forum.com/t/removing-a-constant-definition-from-an-environment/47890 "2005-11-15T10:22:30Z")

</div>

Hi, I am running unit tests that test the assignment of a constant value in a “config” file that is actually ruby code, e.g. VARIABLE=“somevalue” On subsequent test methods in my unit test, I get a complaint that it …

---

## [FireRuby 0.4.0](https://www.ruby-forum.com/t/fireruby-0-4-0/96051)

<div class="topic-metadata">

**Author:** [@paw220470](https://www.ruby-forum.com/u/paw220470)\
**Replies:** 0\
**Last updated:** [November 15, 2005, 10:19am UTC](https://www.ruby-forum.com/t/fireruby-0-4-0/96051 "2005-11-15T10:19:29Z")

</div>

Actually released the files over the weekend but I’m only getting around to being able to make this announcement now… FireRuby 0.4.0 Released FireRuby is an extension for the Ruby programming language that provides …

---

## [Ruby / RoR Resumes Requested](https://www.ruby-forum.com/t/ruby-ror-resumes-requested/61809)

<div class="topic-metadata">

**Author:** [@superiorss](https://www.ruby-forum.com/u/superiorss)\
**Replies:** 1\
**Last updated:** [November 15, 2005, 9:04am UTC](https://www.ruby-forum.com/t/ruby-ror-resumes-requested/61809 "2005-11-15T09:04:01Z")

</div>

To whom it may concern, If anyone is looking for a job either F/T or contract, on-site or telecommute I’m getting tons of Ruby & RoR requests from current and prospective clients. If you are interested in this offer,…

---

## [Putting unit test cases in the code - RDoc & UnitTest](https://www.ruby-forum.com/t/putting-unit-test-cases-in-the-code-rdoc-unittest/48497)

<div class="topic-metadata">

**Author:** [@listrecv](https://www.ruby-forum.com/u/listrecv)\
**Replies:** 9\
**Last updated:** [November 15, 2005, 8:09am UTC](https://www.ruby-forum.com/t/putting-unit-test-cases-in-the-code-rdoc-unittest/48497 "2005-11-15T08:09:50Z")

</div>

Hi. I find that the best place to put unit test cases is in the file for the class being tested itself. This puts everything in the same place, and also makes examples readily available for someone trying to underst…

---

## [DateTime beauty](https://www.ruby-forum.com/t/datetime-beauty/47922)

<div class="topic-metadata">

**Author:** [@hhausman](https://www.ruby-forum.com/u/hhausman)\
**Replies:** 3\
**Last updated:** [November 15, 2005, 7:18am UTC](https://www.ruby-forum.com/t/datetime-beauty/47922 "2005-11-15T07:18:41Z")

</div>

I’ve got strings created by doing something on the order of DateTime.now.to\_s stored away. When I’m reading them out, and showing them to the user I want to see something pretty like: Sat Mar 10 at 12:34pm Heres the…

---

## [Index and Query (#54)](https://www.ruby-forum.com/t/index-and-query-54/48133)

<div class="topic-metadata">

**Author:** [@daniels](https://www.ruby-forum.com/u/daniels)\
**Replies:** 0\
**Last updated:** [November 15, 2005, 7:12am UTC](https://www.ruby-forum.com/t/index-and-query-54/48133 "2005-11-15T07:12:40Z")

</div>

My solution is here: http://members.iinet.net.au/~soxbox/ruby\_quiz\_54/indexer.rb And also a script that benchmarks it against grepping the files manually (My first attempts ended up being slower… eeep): I used shak…

---

## [Requiring extensions](https://www.ruby-forum.com/t/requiring-extensions/47879)

<div class="topic-metadata">

**Author:** [@hans](https://www.ruby-forum.com/u/hans)\
**Replies:** 3\
**Last updated:** [November 15, 2005, 5:45am UTC](https://www.ruby-forum.com/t/requiring-extensions/47879 "2005-11-15T05:45:26Z")

</div>

I’m wrapping a library with swig, and I’d like to also implement some rubyisms for it in a regular ruby file. So I have: ext/sndfile/extconf.rb ext/sndfile/sndfile.i ext/sndfile/sndfile.h lib/sndfile.rb I’d like to…

---

## [Using n.times with gsub](https://www.ruby-forum.com/t/using-n-times-with-gsub/47919)

<div class="topic-metadata">

**Author:** [@davidpthomas](https://www.ruby-forum.com/u/davidpthomas)\
**Replies:** 6\
**Last updated:** [November 15, 2005, 5:12am UTC](https://www.ruby-forum.com/t/using-n-times-with-gsub/47919 "2005-11-15T05:12:22Z")

</div>

GOAL: one-liner substitute of 5 spaces at beginning of a line. WORKS: gsub(/^/, " ") FAILS: gsub(/^/, 5.times {putc " "}) -example- WORKS: $ cat foo.out | ruby -pe ‘gsub(/^/, " ")’ FAILS: $ cat foo.out | rub…

---

## [Nesting Includes](https://www.ruby-forum.com/t/nesting-includes/51621)

<div class="topic-metadata">

**Author:** [@listrecv](https://www.ruby-forum.com/u/listrecv)\
**Replies:** 2\
**Last updated:** [November 15, 2005, 4:06am UTC](https://www.ruby-forum.com/t/nesting-includes/51621 "2005-11-15T04:06:14Z")

</div>

Hi. I’d like to include one module, which would include other modules into my namespace. Is this doable? Doing this: ----file1.rb module AAA include bbb end ----file2.rb include AAA does not seem to include bb…

---

## [Re: fxruby - need help](https://www.ruby-forum.com/t/re-fxruby-need-help/47838)

<div class="topic-metadata">

**Author:** [@piet.hadermann](https://www.ruby-forum.com/u/piet.hadermann)\
**Replies:** 1\
**Last updated:** [November 15, 2005, 4:00am UTC](https://www.ruby-forum.com/t/re-fxruby-need-help/47838 "2005-11-15T04:00:13Z")

</div>

… Have you tried ‘recalc’, like this: showButton.connect(SEL\_COMMAND) { recalc print "SHOW!\\n" … Piet.

---

## [REXML article on XML.com](https://www.ruby-forum.com/t/rexml-article-on-xml-com/47846)

<div class="topic-metadata">

**Author:** [@james\_b](https://www.ruby-forum.com/u/james_b)\
**Replies:** 10\
**Last updated:** [November 15, 2005, 2:33am UTC](https://www.ruby-forum.com/t/rexml-article-on-xml-com/47846 "2005-11-15T02:33:02Z")

</div>

There a nice article by Koen Vervloesem about REXML up on the XML.com site: http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html?CMP=OTC-TY3388567169 James B. – http://www.ruby-doc.org - Ruby …

---

## [Does IRB run on Windows-98?](https://www.ruby-forum.com/t/does-irb-run-on-windows-98/47910)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 2\
**Last updated:** [November 15, 2005, 2:24am UTC](https://www.ruby-forum.com/t/does-irb-run-on-windows-98/47910 "2005-11-15T02:24:00Z")

</div>

Using the current 1-click installer I don’t seem to get an IRB. Thanks for any tips.

---

## [Win32ole --Test-- Ruby vs. Python](https://www.ruby-forum.com/t/win32ole-test-ruby-vs-python/47816)

<div class="topic-metadata">

**Author:** [@ghalsey](https://www.ruby-forum.com/u/ghalsey)\
**Replies:** 3\
**Last updated:** [November 15, 2005, 12:32am UTC](https://www.ruby-forum.com/t/win32ole-test-ruby-vs-python/47816 "2005-11-15T00:32:45Z")

</div>

I am just starting to learn Ruby and I am a beginner at Python. So keep that in mind with this simple test using SciTEVersion 1.59. The task was to open up an Excel file, read down 1000 lines of data and close the fil…

---

## [Re: Ruby - Newbie to Guru - Advice?](https://www.ruby-forum.com/t/re-ruby-newbie-to-guru-advice/47889)

<div class="topic-metadata">

**Author:** [@dooby](https://www.ruby-forum.com/u/dooby)\
**Replies:** 3\
**Last updated:** [November 15, 2005, 12:14am UTC](https://www.ruby-forum.com/t/re-ruby-newbie-to-guru-advice/47889 "2005-11-15T00:14:43Z")

</div>

mental wrote: Somebody needs to write a Commentary on AOCP. With cartoon foxes. Vol 2, page xiv (cartoon digits 1…9) might help. Credits: JMK & JSK (John M. & Jennifer Sierra) Factoid: IIUC, – Knuth is pronounce…

---

## [RMagick 1.9.3: examples/histogram.rb - erro](https://www.ruby-forum.com/t/rmagick-1-9-3-examples-histogram-rb-erro/47831)

<div class="topic-metadata">

**Author:** [@ces.fci.junk](https://www.ruby-forum.com/u/ces.fci.junk)\
**Replies:** 5\
**Last updated:** [November 14, 2005, 11:44pm UTC](https://www.ruby-forum.com/t/rmagick-1-9-3-examples-histogram-rb-erro/47831 "2005-11-14T23:44:37Z")

</div>

Trying to run the histogram.rb ~/$myimage produces the following error: Creating b194000514\_7064\_Histogram.miffhistogram.rb:180:in histogram': undefined method+’ for nil:NilClass (NoMethodError) from histogram.rb:179:i…

---

## [RedCloth mailing list](https://www.ruby-forum.com/t/redcloth-mailing-list/47884)

<div class="topic-metadata">

**Author:** [@ruby-talk](https://www.ruby-forum.com/u/ruby-talk)\
**Replies:** 0\
**Last updated:** [November 14, 2005, 9:35pm UTC](https://www.ruby-forum.com/t/redcloth-mailing-list/47884 "2005-11-14T21:35:10Z")

</div>

If you are a user of RedCloth who wants to talk about improvements to RedCloth or pitch in testing beta versions, please hop on the new mailing list: http://rubyforge.org/mailman/listinfo/redcloth-upwards My thanks, …

---

## [REXML -\> attributes with single/double quotes](https://www.ruby-forum.com/t/rexml-attributes-with-single-double-quotes/47880)

<div class="topic-metadata">

**Author:** [@Stephan.Kaemper](https://www.ruby-forum.com/u/Stephan.Kaemper)\
**Replies:** 1\
**Last updated:** [November 14, 2005, 9:14pm UTC](https://www.ruby-forum.com/t/rexml-attributes-with-single-double-quotes/47880 "2005-11-14T21:14:06Z")

</div>

Hi all, when I write a previously read XML using REXML, all attribute values are single quoted. Unfortunately the application I’m feeding that XML to (currently) can’t cope with that. I tried to rad and understand th…

---

## [Time out of range when selecting from database?](https://www.ruby-forum.com/t/time-out-of-range-when-selecting-from-database/47869)

<div class="topic-metadata">

**Author:** [@rm\_rails](https://www.ruby-forum.com/u/rm_rails)\
**Replies:** 1\
**Last updated:** [November 14, 2005, 8:20pm UTC](https://www.ruby-forum.com/t/time-out-of-range-when-selecting-from-database/47869 "2005-11-14T20:20:28Z")

</div>

Why does Time allow such a limited set of years: irb\> Time.mktime('2205-01-01') ArgumentError: time out of range This especially annoying when other classes like DBI use the Time class, and when a 200-year-lease in a …

---

## [Re: Index and Query (#54)](https://www.ruby-forum.com/t/re-index-and-query-54/47867)

<div class="topic-metadata">

**Author:** [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Replies:** 0\
**Last updated:** [November 14, 2005, 7:00pm UTC](https://www.ruby-forum.com/t/re-index-and-query-54/47867 "2005-11-14T19:00:16Z")

</div>

thank you for the solution, but please try to respect the non-spoiler period in the future. Ummm, today is Monday :o)

---

## [SDL - how to enable window (surface) repaint](https://www.ruby-forum.com/t/sdl-how-to-enable-window-surface-repaint/47865)

<div class="topic-metadata">

**Author:** [@bouncer](https://www.ruby-forum.com/u/bouncer)\
**Replies:** 2\
**Last updated:** [November 14, 2005, 6:35pm UTC](https://www.ruby-forum.com/t/sdl-how-to-enable-window-surface-repaint/47865 "2005-11-14T18:35:29Z")

</div>

hello, i am using sdl library from Ruby/SDL. the problem is that if the sdl window is overlapped with another window(s) and then “switched” back, the surface of sdl has blank portion (where the overlapping window w…

---

## [KirbyBase 2.4](https://www.ruby-forum.com/t/kirbybase-2-4/95019)

<div class="topic-metadata">

**Author:** [@jcribbs](https://www.ruby-forum.com/u/jcribbs)\
**Replies:** 2\
**Last updated:** [November 14, 2005, 5:59pm UTC](https://www.ruby-forum.com/t/kirbybase-2-4/95019 "2005-11-14T17:59:24Z")

</div>

I would like to announce the release of version 2.4 of KirbyBase, a small, pure-Ruby database management system that stores it’s data in plain-text files. You can download it here: Windows: http://www.netpromi.com/f…

---

## [Re: Building postgresql on Windows](https://www.ruby-forum.com/t/re-building-postgresql-on-windows/48499)

<div class="topic-metadata">

**Author:** [@Daniel.Berger](https://www.ruby-forum.com/u/Daniel.Berger)\
**Replies:** 0\
**Last updated:** [November 14, 2005, 5:47pm UTC](https://www.ruby-forum.com/t/re-building-postgresql-on-windows/48499 "2005-11-14T17:47:21Z")

</div>

\-----Original Message----- From: Park H. \[mailto:removed\_email\_address@domain.invalid\] Sent: Friday, November 11, 2005 11:54 PM To: ruby-talk ML Subject: Re: Building postgresql on Windows –with-pgsql-include-dir…

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

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