# Ruby

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

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

---

## [ActiveRecord through Drb: problem with ids](https://www.ruby-forum.com/t/activerecord-through-drb-problem-with-ids/66440)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/activerecord-through-drb-problem-with-ids/66440 "2006-09-04T23:59:19Z")

</div>

Hi, I’m trying to use ActiveRecord objects through Drb, and I’m facing a strange thing: Firstly, I’m using the following database: – SQL CREATE TABLE gardens ( lock\_version integer DEFAULT 0, id …

---

## [1.8.5 release schedule?](https://www.ruby-forum.com/t/1-8-5-release-schedule/63011)

<div class="topic-metadata">

**Author:** [@URABE\_Shyouhei](https://www.ruby-forum.com/u/URABE_Shyouhei)\
**Replies:** 104\
**Last updated:** [September 4, 2006, 10:54pm UTC](https://www.ruby-forum.com/t/1-8-5-release-schedule/63011 "2006-09-04T22:54:24Z")

</div>

e$B$H$$$&$o$1$G:#F|$N4pD49V1i$Ge(B8e$B7n$Ke(B1.8.5e$B$,=P$k$3$H$K$J$C$?$o$1$G$9$,!#e(B e$B6qBNE\*$JF|IU$H$7$F$O$$$D$N%j%j!\<%9$r9M$($F$\*$i$l$^$9$+e(B? 6/11e$B$+$ie(B10e$B=54V$N%j%j!\<%9%5%$%/%k$r9T$&$H%j%j!\<%9$Oe(B8e$B7ne…

---

## [Rails AJAX help](https://www.ruby-forum.com/t/rails-ajax-help/67514)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 10:44pm UTC](https://www.ruby-forum.com/t/rails-ajax-help/67514 "2006-09-04T22:44:23Z")

</div>

I have an input, and I want to, when the user types a number on that input and exits it (the onBlur event), to search a table on that number and return a value to that input. Thanks in advance.

---

## [Rcov & Ruby 1.8.5](https://www.ruby-forum.com/t/rcov-ruby-1-8-5/67177)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 5\
**Last updated:** [September 4, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/rcov-ruby-1-8-5/67177 "2006-09-04T18:19:50Z")

</div>

Is it my fevered imagination, or has Ruby-1.8.5 clobbered rcov-0.7.0, causing it to segfault. Here is a backtrace… #0 coverage\_mark\_caller () at rcovrt.c:81 #1 0xb7b19535 in coverage\_event\_coverage\_hook (event=, no…

---

## [Ruby for Symbian Preview Release](https://www.ruby-forum.com/t/ruby-for-symbian-preview-release/67500)

<div class="topic-metadata">

**Author:** [@Jeff\_Hughes](https://www.ruby-forum.com/u/Jeff_Hughes)\
**Replies:** 0\
**Last updated:** [September 4, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/ruby-for-symbian-preview-release/67500 "2006-09-04T18:05:47Z")

</div>

I’m pleased to announce the first preview release of Ruby for Symbian! http://ruby-symbian.rubyforge.org/ What is Symbian? Symbian is an operating system developed specifically for mobile devices. It has been deplo…

---

## [Problem with reading from socket](https://www.ruby-forum.com/t/problem-with-reading-from-socket/67499)

<div class="topic-metadata">

**Author:** [@Hemant\_S](https://www.ruby-forum.com/u/Hemant_S)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/problem-with-reading-from-socket/67499 "2006-09-04T17:45:46Z")

</div>

I have a issue in reading from Sockets(both TCPSockets and UNIXSockets).the problem is with following code snippets: begin timeout(8) do ret\_data = @proxy\_con.gets() end rescue Timeout::Error return nil re…

---

## [Mysql ruby settup](https://www.ruby-forum.com/t/mysql-ruby-settup/66705)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 7\
**Last updated:** [September 4, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/mysql-ruby-settup/66705 "2006-09-04T17:31:56Z")

</div>

To use mysql with a ruby application is these modules at http://dev.mysql.com/downloads/ruby.html all I need? Also is there any good tutorials talking about using mysql with ruby? Or setting up your first ruby mysql a…

---

## [Ruby IRC client](https://www.ruby-forum.com/t/ruby-irc-client/67460)

<div class="topic-metadata">

**Author:** [@SSMKSM](https://www.ruby-forum.com/u/SSMKSM)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/ruby-irc-client/67460 "2006-09-04T17:17:43Z")

</div>

Hello, The other night I was talking to a friend over IRC about how simple IRC clients scripting would be if Ruby was used. Well, why not have a whole client coded with Ruby? Since my experience/knowledge with Ruby i…

---

## [Changing Log4r methods](https://www.ruby-forum.com/t/changing-log4r-methods/67079)

<div class="topic-metadata">

**Author:** [@ejepsen](https://www.ruby-forum.com/u/ejepsen)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/changing-log4r-methods/67079 "2006-09-04T17:16:56Z")

</div>

Hello, Can anybody here tell me why the example below is not outputting “Overruling error” on the log.error ? require ‘log4r’ include Log4r class MyLogger \< Log4r::Logger def error(progname = nil, &block) add(ERR…

---

## [Already stalled in Pick Axe book - could use some help](https://www.ruby-forum.com/t/already-stalled-in-pick-axe-book-could-use-some-help/67395)

<div class="topic-metadata">

**Author:** [@wirelesspower](https://www.ruby-forum.com/u/wirelesspower)\
**Replies:** 7\
**Last updated:** [September 4, 2006, 4:55pm UTC](https://www.ruby-forum.com/t/already-stalled-in-pick-axe-book-could-use-some-help/67395 "2006-09-04T16:55:40Z")

</div>

Hi, total noob here. I’m only on page 25 of the Pick Axe book and I’m a little stuck: I’m running Ruby version 1.8.4 on Windows XP Home Edition. I’m entering code via irb. Here’s the problem: I enter the following co…

---

## [Column sort (Noobie question)](https://www.ruby-forum.com/t/column-sort-noobie-question/67488)

<div class="topic-metadata">

**Author:** [@ptejada](https://www.ruby-forum.com/u/ptejada)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/column-sort-noobie-question/67488 "2006-09-04T16:11:27Z")

</div>

I am write a program to sort pictures, I can read in the directory and rename the picture basied on the exif information but I now want to do load the directory and exif timestamp into a two column table and then sort…

---

## [One-Click Ruby Installer for Windows 1.8.5-21 released](https://www.ruby-forum.com/t/one-click-ruby-installer-for-windows-1-8-5-21-released/66828)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 17\
**Last updated:** [September 4, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-for-windows-1-8-5-21-released/66828 "2006-09-04T15:57:49Z")

</div>

This release upgrades Ruby to the recently released version 1.8.5. A few Win32-Utils packages have also been upgraded to newly released versions, but other than that, everything else is the same as the 1.8.4 release.…

---

## [Dr. Dobb's dumps on RedCloth](https://www.ruby-forum.com/t/dr-dobbs-dumps-on-redcloth/66770)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 31\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/dr-dobbs-dumps-on-redcloth/66770 "2006-09-04T14:46:42Z")

</div>

As part of their “best Ajax” article: http://www.ddj.com/dept/architect/192203368?pgno=7 Welcome to the 1980s. Want to make text bold? You’ll have to put the characters \* and \* around it. For big text, first type in …

---

## [Building Ruby by newbi on Win32](https://www.ruby-forum.com/t/building-ruby-by-newbi-on-win32/67213)

<div class="topic-metadata">

**Author:** [@dingo](https://www.ruby-forum.com/u/dingo)\
**Replies:** 4\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/building-ruby-by-newbi-on-win32/67213 "2006-09-04T14:46:41Z")

</div>

Hi, All, My first post here:) I am trying something I have been doing with Lua for years - dragging Ruby source files into an empty VS project and trying to build it. That’s all on Win32 XP with MSVS. It doesn’t comp…

---

## [Using in Ruby/Tk on OS X](https://www.ruby-forum.com/t/using-in-ruby-tk-on-os-x/67162)

<div class="topic-metadata">

**Author:** [@Morton\_G](https://www.ruby-forum.com/u/Morton_G)\
**Replies:** 5\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/using-in-ruby-tk-on-os-x/67162 "2006-09-04T14:46:40Z")

</div>

I’m using Ruby 1.8.2 on Mac OS X 10.4.7. I discovered the Ruby distribution included a directory supporting \[incr Widgets\]. Some of them seemed pretty nifty, so I thought I’d try them out. My first try was to make an …

---

## [Crash on gc\_mark()](https://www.ruby-forum.com/t/crash-on-gc-mark/67221)

<div class="topic-metadata">

**Author:** [@Abhisek\_Datta](https://www.ruby-forum.com/u/Abhisek_Datta)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/crash-on-gc-mark/67221 "2006-09-04T14:46:39Z")

</div>

Hi, I am doing a Ruby binding for libnids library (http://libnids.sourceforge.net) Libnids uses callback functions which are triggered on packet capture. Now apparently my binding is working fine, but it is crashing …

---

## [(again) Rescue clauses on do/end blocks?](https://www.ruby-forum.com/t/again-rescue-clauses-on-do-end-blocks/66432)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 5\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/again-rescue-clauses-on-do-end-blocks/66432 "2006-09-04T14:46:33Z")

</div>

Sorry to beat a dead horse, but I still have a question on the optional ‘begin’ sentiment when rescuing exceptions. It seems like the standing issue was with the use of it in brackets. Especially when deciding which…

---

## [My book is out -- Ruby on Rails: Up and Running](https://www.ruby-forum.com/t/my-book-is-out-ruby-on-rails-up-and-running/66444)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 24\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/my-book-is-out-ruby-on-rails-up-and-running/66444 "2006-09-04T14:46:29Z")

</div>

The book that Bruce Tate and I co-authored was released yesterday by O’Reilly --“Ruby on Rails: Up and Running”. It is a quick-start guide expressly designed to get you going with Rails quickly. The press release is h…

---

## [Piston 1.0.1 - Remote Repository Copying](https://www.ruby-forum.com/t/piston-1-0-1-remote-repository-copying/66400)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 7\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/piston-1-0-1-remote-repository-copying/66400 "2006-09-04T14:46:27Z")

</div>

http://piston.rubyforge.org/ From the README: Piston is a utility that enables merge tracking of remote repositories. This is similar to svn:externals, except you have a local copy of the files, which you can modify …

---

## [Rubyinline](https://www.ruby-forum.com/t/rubyinline/66497)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 21\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/rubyinline/66497 "2006-09-04T14:46:27Z")

</div>

Hi– I managed to generalize my ‘rubytest’ this afternoon into a nice general purpose comment code block runner. It defaults to unit tests, but you can use if for any variety of embedded code such as examples. I’m sur…

---

## [Call functions of superclass](https://www.ruby-forum.com/t/call-functions-of-superclass/66145)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 65\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/call-functions-of-superclass/66145 "2006-09-04T14:46:26Z")

</div>

I’d like to be able to do class Parent def iamuseful end end class Child def iamuseful # do stuff super.iamuseful end end But that gives strange results, I seem to be unable to call methods from a superclass…

---

## [Re: ActiveRecord through Drb: problem with ids](https://www.ruby-forum.com/t/re-activerecord-through-drb-problem-with-ids/66507)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/re-activerecord-through-drb-problem-with-ids/66507 "2006-09-04T14:46:25Z")

</div>

Ezra Z. wrote: g = obj.find(1) puts “#{g\[:id\]} | #{g.name}” g.flowers.each do |f| puts “#{f\[:if\]} | #{f\[:id\]} | #{f.name}” end So by using arinstance\[:id\] instead of arinstance.id you will avoid this problem all…

---

## [Map and join or inject?](https://www.ruby-forum.com/t/map-and-join-or-inject/66503)

<div class="topic-metadata">

**Author:** [@akoSS](https://www.ruby-forum.com/u/akoSS)\
**Replies:** 7\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/map-and-join-or-inject/66503 "2006-09-04T14:46:25Z")

</div>

hello, given an array of strings A, i need to map a given function F to each element of A and concatenate the results. which way is more memory efficient: A.inject("") { |t,x| t + F(x) } (A.map { |x| F(x) }).join t…

---

## [Re: Can you temporarily turn off STDERR?](https://www.ruby-forum.com/t/re-can-you-temporarily-turn-off-stderr/66515)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/re-can-you-temporarily-turn-off-stderr/66515 "2006-09-04T14:46:24Z")

</div>

IO#reopen to take class IO begin end puts “normal stuff 2” File.open(‘error\_log\_4’, ‘w’) do |log\_file| $stderr.reopen(‘error\_log\_5’, ‘w’) do $stderr.puts “Stuff on error 5” puts “normal stuff 5” raise “This me…

---

## [How to - Get method's name?](https://www.ruby-forum.com/t/how-to-get-methods-name/65329)

<div class="topic-metadata">

**Author:** [@henrys](https://www.ruby-forum.com/u/henrys)\
**Replies:** 10\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/how-to-get-methods-name/65329 "2006-09-04T14:46:24Z")

</div>

Dear Ruby gurus: How to get the method’s name inside itself. For example to send it to Error Processor Thank you, Henry

---

## [No speedup...!](https://www.ruby-forum.com/t/no-speedup/66498)

<div class="topic-metadata">

**Author:** [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Replies:** 12\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/no-speedup/66498 "2006-09-04T14:46:24Z")

</div>

Hello, The Code: ==================================== def look\_for\_begin while line = gets if line =~ /^begin/ puts line # return end end end ARGF.each { look\_for\_begin } I have files with uuencoded and yencod…

---

## [Can you temporarily turn off STDERR?](https://www.ruby-forum.com/t/can-you-temporarily-turn-off-stderr/66485)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 5\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/can-you-temporarily-turn-off-stderr/66485 "2006-09-04T14:46:23Z")

</div>

Inside a ruby script I want to: redirect STDERR to /dev/null Issue a system call (e.g. system(tar xf tarfile file) ) revert to normal STDERR output I have a script that issues 3-4 system calls that are returning the …

---

## [Can't get ActiveRecord to work with Ruby and Postgres](https://www.ruby-forum.com/t/cant-get-activerecord-to-work-with-ruby-and-postgres/66486)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 2\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/cant-get-activerecord-to-work-with-ruby-and-postgres/66486 "2006-09-04T14:46:23Z")

</div>

Hi all, I’m experimenting with ActiveRecord with Ruby – no Rails. I installed both the Mysql and Postgres (the C one, not the fully Ruby one) database dependent drivers. I can use them to manipulate their databases,…

---

## [Ruby 1.8.5 released](https://www.ruby-forum.com/t/ruby-1-8-5-released/66407)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 16\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-released/66407 "2006-09-04T14:46:21Z")

</div>

Hello, We have just released the latest stable version of Ruby. This is a bug fix release. There should be no big difference from 1.8.4. We hope 1.8.5 is more stable and reliable than its preceding versions. ftp:/…

---

## [DayRange (#92)](https://www.ruby-forum.com/t/dayrange-92/66433)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 49\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/dayrange-92/66433 "2006-09-04T14:46:20Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

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

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