# Ruby

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

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

---

## [Class methods and instance variables in ActiveRecord::Base](https://www.ruby-forum.com/t/class-methods-and-instance-variables-in-activerecord-base/90010)

<div class="topic-metadata">

**Author:** [@zig](https://www.ruby-forum.com/u/zig)\
**Replies:** 12\
**Last updated:** [March 26, 2007, 2:17am UTC](https://www.ruby-forum.com/t/class-methods-and-instance-variables-in-activerecord-base/90010 "2007-03-26T02:17:33Z")

</div>

I’m still learning my way around ruby and I seem to be confused about class methods/variables versus instance methods/variables. My example comes from Ruby on Rails, but I don’t think my confusion is rails- specific. …

---

## [IDEA: Ruby "offline" CD / DVD](https://www.ruby-forum.com/t/idea-ruby-offline-cd-dvd/88776)

<div class="topic-metadata">

**Author:** [@stian](https://www.ruby-forum.com/u/stian)\
**Replies:** 24\
**Last updated:** [March 26, 2007, 2:10am UTC](https://www.ruby-forum.com/t/idea-ruby-offline-cd-dvd/88776 "2007-03-26T02:10:32Z")

</div>

Hi all. I hope this is the appropriate place to post my idea. I have been using Ruby on and off for two years now, but especially lately as I have been implementing some personal projects, and modifying some Rails app…

---

## [Unbuffered output - how to](https://www.ruby-forum.com/t/unbuffered-output-how-to/90094)

<div class="topic-metadata">

**Author:** [@Andres\_MSHidalgo](https://www.ruby-forum.com/u/Andres_MSHidalgo)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 1:53am UTC](https://www.ruby-forum.com/t/unbuffered-output-how-to/90094 "2007-03-26T01:53:31Z")

</div>

I need to do unbuffered output to sdtdout. Andres

---

## [Read only a few bytes from file](https://www.ruby-forum.com/t/read-only-a-few-bytes-from-file/90040)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 26, 2007, 12:16am UTC](https://www.ruby-forum.com/t/read-only-a-few-bytes-from-file/90040 "2007-03-26T00:16:23Z")

</div>

Is there any way to read only a determined amount of bytes from a specific file? I actually want to do that to a URL, but I assume the procedure would be the same. If someone could at least point me to the right direc…

---

## [Pretty tables CLI scripts](https://www.ruby-forum.com/t/pretty-tables-cli-scripts/90034)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/pretty-tables-cli-scripts/90034 "2007-03-25T22:51:16Z")

</div>

Does anyone know of any library or anything that can be used to display data on those neat tables on a CLI script? Sort of how MySQL or the Rails benchmarking scripts do, how can I do that? Thanks

---

## [Pointer to function](https://www.ruby-forum.com/t/pointer-to-function/90042)

<div class="topic-metadata">

**Author:** [@ekkehard.horner](https://www.ruby-forum.com/u/ekkehard.horner)\
**Replies:** 5\
**Last updated:** [March 25, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/pointer-to-function/90042 "2007-03-25T21:26:06Z")

</div>

Just starting to learn Ruby, I’d like to ask if somebody would be so kind as to help me ‘translate’ this Perl proof of concept code: package cApp; # POC application class that can run named Fncs via 'pointer to fun…

---

## [Ruby with C](https://www.ruby-forum.com/t/ruby-with-c/90014)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [March 25, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/ruby-with-c/90014 "2007-03-25T20:32:00Z")

</div>

I am new at programming ruby with C. I am trying to pass in a value from a test ruby program to my C class and trying to print it out. But when i print it out i am getting the wrong number printerd out. Here is what i…

---

## [RubyGems pre/post install](https://www.ruby-forum.com/t/rubygems-pre-post-install/90047)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [March 25, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/rubygems-pre-post-install/90047 "2007-03-25T18:49:45Z")

</div>

Does RubyGems support pre/post install scripting? T.

---

## [Ruby 1.8.6, zlib and x86\_64 problems](https://www.ruby-forum.com/t/ruby-1-8-6-zlib-and-x86-64-problems/90050)

<div class="topic-metadata">

**Author:** [@jz176](https://www.ruby-forum.com/u/jz176)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-zlib-and-x86-64-problems/90050 "2007-03-25T18:41:30Z")

</div>

Im trying to install ruby 1.8.6 on an x86\_64 centos 4.2 system. i’ve done this install several times on an i386 system with no problems. here i have ran into this… first i installed zlib-1.2.3 from source with ./confi…

---

## [Prcoessing outoput from tail](https://www.ruby-forum.com/t/prcoessing-outoput-from-tail/90011)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 2\
**Last updated:** [March 25, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/prcoessing-outoput-from-tail/90011 "2007-03-25T15:00:11Z")

</div>

Hello, I am trying to figure out how to perpetually process the output from a file. That is I continuously want to process output that is appended to a file and that file could get rolled out at any time. I use pope…

---

## [Change object class](https://www.ruby-forum.com/t/change-object-class/90038)

<div class="topic-metadata">

**Author:** [@uruz7](https://www.ruby-forum.com/u/uruz7)\
**Replies:** 2\
**Last updated:** [March 25, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/change-object-class/90038 "2007-03-25T13:59:17Z")

</div>

I’m still very new to Ruby and am having trouble with a small script that I’m working on. I am getting some data from a screen scrape using hpricot which works well although after I get the data, I wanted to use the …

---

## [\[ANN\] Rassmalog 3.0.0](https://www.ruby-forum.com/t/ann-rassmalog-3-0-0/87679)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 9\
**Last updated:** [March 25, 2007, 11:01am UTC](https://www.ruby-forum.com/t/ann-rassmalog-3-0-0/87679 "2007-03-25T11:01:47Z")

</div>

Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile. It features an extensible blog formatting mechanism, easy configuration, and automatic tagging, archiving, syntax coloring, and table of contents. …

---

## [\[ANN\] Rassmalog 3.2.0](https://www.ruby-forum.com/t/ann-rassmalog-3-2-0/90035)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 10:47am UTC](https://www.ruby-forum.com/t/ann-rassmalog-3-2-0/90035 "2007-03-25T10:47:17Z")

</div>

Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile. It features an extensible blog formatting mechanism, easy configuration, and automatic tagging, archiving, syntax coloring, and table of contents. …

---

## [Ruby18 vs. ruby](https://www.ruby-forum.com/t/ruby18-vs-ruby/90028)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [March 25, 2007, 9:57am UTC](https://www.ruby-forum.com/t/ruby18-vs-ruby/90028 "2007-03-25T09:57:37Z")

</div>

Hi, I am using the ruby-stable-snapshot on a more or less regualr basis on a Gentoo Linux system. I do not install ruby via Gentoo’s emerge mechanism. Suddenly all my ruby scripts stops to work. :slight\_smile: I not…

---

## [Appropriate directory for "third-party" utilities?](https://www.ruby-forum.com/t/appropriate-directory-for-third-party-utilities/89842)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 2\
**Last updated:** [March 25, 2007, 9:20am UTC](https://www.ruby-forum.com/t/appropriate-directory-for-third-party-utilities/89842 "2007-03-25T09:20:34Z")

</div>

Hi All, I just wrote searchdir.rb that works the way I like to search directories. I read recently there’s an appropriate place in the installed Ruby system to put third party routines, presumably including stuff we…

---

## [Eclipse Ruby Debugger: Port 1098 problem?](https://www.ruby-forum.com/t/eclipse-ruby-debugger-port-1098-problem/90020)

<div class="topic-metadata">

**Author:** [@Demetrius\_G](https://www.ruby-forum.com/u/Demetrius_G)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 4:23am UTC](https://www.ruby-forum.com/t/eclipse-ruby-debugger-port-1098-problem/90020 "2007-03-25T04:23:18Z")

</div>

I’ve read that Eclipse’s debugger will not work unless the Ruby debugger is bound to port 1098. Anyone know a solution? There may be another application binding to that port already, but is there a way around it? T…

---

## [Ruby Gem question, updating a gem of a called procedure](https://www.ruby-forum.com/t/ruby-gem-question-updating-a-gem-of-a-called-procedure/89756)

<div class="topic-metadata">

**Author:** [@dkmd\_nielsen](https://www.ruby-forum.com/u/dkmd_nielsen)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 4:01am UTC](https://www.ruby-forum.com/t/ruby-gem-question-updating-a-gem-of-a-called-procedure/89756 "2007-03-25T04:01:30Z")

</div>

How does one control Gem when it is a gem of a called procedure that is being enhanced. The gem to be enhanced has been checked out and I would like to unit test it, but the called procedure contains a gem statement.…

---

## [New Version of DRP (Genetic Programming)](https://www.ruby-forum.com/t/new-version-of-drp-genetic-programming/90005)

<div class="topic-metadata">

**Author:** [@christophe1](https://www.ruby-forum.com/u/christophe1)\
**Replies:** 4\
**Last updated:** [March 25, 2007, 3:00am UTC](https://www.ruby-forum.com/t/new-version-of-drp-genetic-programming/90005 "2007-03-25T03:00:13Z")

</div>

hello everyone, i’m working on the next release of DRP and was just curious if any of you have any suggestions/bugs/feature requests? thus far i have added the ability to load rules from files filters on a rule basi…

---

## [Re: Prcoessing outoput from tail](https://www.ruby-forum.com/t/re-prcoessing-outoput-from-tail/90015)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 12:54am UTC](https://www.ruby-forum.com/t/re-prcoessing-outoput-from-tail/90015 "2007-03-25T00:54:10Z")

</div>

What happens in the middle of a read from tail when the thread is interrupted? I have yet to get that stage where I can test this, but it is something I need to watch out for. Would hate to have a short read - only …

---

## [Re: Prcoessing outoput from tail](https://www.ruby-forum.com/t/re-prcoessing-outoput-from-tail/90013)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 12:45am UTC](https://www.ruby-forum.com/t/re-prcoessing-outoput-from-tail/90013 "2007-03-25T00:45:09Z")

</div>

Cool, thanks I will check this out. In the mean time I think I figured out a work around, the only problem left is to figure out how to make this thread-able: IO.popen(‘tail -F foo.txt’) {|file| while line = file.ge…

---

## [Junebug mongrel/camping](https://www.ruby-forum.com/t/junebug-mongrel-camping/89985)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 2\
**Last updated:** [March 24, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/junebug-mongrel-camping/89985 "2007-03-24T21:16:53Z")

</div>

Hi people I have just managed to install Junebug wiki. When first running it (./wiki run), I got: /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:266:in \`load\_missing\_constant’: uni…

---

## [Bioruby ent function](https://www.ruby-forum.com/t/bioruby-ent-function/89996)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 24, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/bioruby-ent-function/89996 "2007-03-24T20:43:06Z")

</div>

Hello, I can use the function “ent” from interactive bioruby environment ################################################### $ bioruby Loading config (session/config) … done Loading object (session/object) … done L…

---

## [Free pdf ebooks (for real)](https://www.ruby-forum.com/t/free-pdf-ebooks-for-real/89879)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [March 24, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/free-pdf-ebooks-for-real/89879 "2007-03-24T18:44:16Z")

</div>

Sadly, the previous thread didn’t mention any of the genuinely free ruby ebooks (other than the pickaxe, of course). Here’s a couple, for example: http://www.sapphiresteel.com/The-Little-Book-Of-Ruby http://www.brpre…

---

## [Hash#map\_pairs](https://www.ruby-forum.com/t/hash-map-pairs/89981)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [March 24, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/hash-map-pairs/89981 "2007-03-24T18:21:14Z")

</div>

class Hash def map\_pairs result = Array.new self.each\_pair { |k, v| result \<\< yield(k, v) } result end end h = { “a” =\> “x”, “b” =\> “y”, } puts h.map\_pairs { |k, v| “#{k} =\> #{v}” }.join(", ") I was surpris…

---

## [Scope and RAII](https://www.ruby-forum.com/t/scope-and-raii/89980)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [March 24, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/scope-and-raii/89980 "2007-03-24T18:06:09Z")

</div>

def scope(\*args) yield(\*args) end scope(Array.new) { |array| array.push 1 array.push 7 array.push 11 puts array.join(",") } here the variable ‘array’ is gone – is it deallocated? I am interested in using ruby fo…

---

## [Fail to copy argv on Win32?](https://www.ruby-forum.com/t/fail-to-copy-argv-on-win32/89964)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 1\
**Last updated:** [March 24, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/fail-to-copy-argv-on-win32/89964 "2007-03-24T16:50:54Z")

</div>

e$B%o%J%Y$G$9!#e(B trunke$B$Ne(Brev.12125e$B$re(Bmingw32e$B4D6-$G;n$7$?$H$3$m!"e(Bruby -e ‘p “1”’ e$B$Ge(B unterminated string meets end of file e$B$H8@$o$l$F$7$^$$$^$7$?!#e(B e$B0l1~e(Brev.12124 e$B$r;29M$K%Q%C%A$r…

---

## [Main-0.0.2](https://www.ruby-forum.com/t/main-0-0-2/89934)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 24, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/main-0-0-2/89934 "2007-03-24T16:33:51Z")

</div>

NAME main.rb SYNOPSIS a class factory and dsl for generating real main programs real quick URI http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby/ INSTALL $sudo gem install main DESCR…

---

## [Ajax woes](https://www.ruby-forum.com/t/ajax-woes/84514)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 20\
**Last updated:** [March 24, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/ajax-woes/84514 "2007-03-24T15:01:20Z")

</div>

The C# web app we are automating for QA testing has been recently converted to Ajax. Because of it’s asynchronous nature, this has broken all our test scripts. In order to get them to work, we resorted to inserting a …

---

## [About class methods visibility (public/private)](https://www.ruby-forum.com/t/about-class-methods-visibility-public-private/89600)

<div class="topic-metadata">

**Author:** [@rubarachni](https://www.ruby-forum.com/u/rubarachni)\
**Replies:** 22\
**Last updated:** [March 24, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/about-class-methods-visibility-public-private/89600 "2007-03-24T13:05:02Z")

</div>

Hi all, Here are some questions regarding the visibility of class methods : 1/ why public, protected, private methods cannot be used for defining the visibility of class methods in addition to defining the visibility …

---

## [Simple Captcha 1.0](https://www.ruby-forum.com/t/simple-captcha-1-0/89974)

<div class="topic-metadata">

**Author:** [@sur](https://www.ruby-forum.com/u/sur)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/simple-captcha-1-0/89974 "2007-03-24T12:30:55Z")

</div>

Finally released Simple Captcha 1.0 http://expressica.com/2007/03/23/simple\_captcha\_1\_0/ Bugs fixed and features added… 1.) update\_attribute/update\_attributes are now working fine 2.) Simple Captcha will bypass your …

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

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