# Ruby

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

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

---

## [Is there a difference between load "file" and eval content](https://www.ruby-forum.com/t/is-there-a-difference-between-load-file-and-eval-content/131073)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/is-there-a-difference-between-load-file-and-eval-content/131073 "2008-06-16T16:38:47Z")

</div>

I am just wondering is there any differnece between these two techniques. There is file.rb use load to execute contents of file.rb load “file.rb” use eval to execute contents of file.rb c = File.open(‘file.rb’)…

---

## [Ruby Hoedown 2008 - August 8-9, Huntsville, AL - Keynotes, Registration, and CFP OPEN!](https://www.ruby-forum.com/t/ruby-hoedown-2008-august-8-9-huntsville-al-keynotes-registration-and-cfp-open/136803)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/ruby-hoedown-2008-august-8-9-huntsville-al-keynotes-registration-and-cfp-open/136803 "2008-06-16T15:31:35Z")

</div>

Hello all! The Ruby Hoedown, the southeastern regional Ruby conference, is happening again this year! This year’s conference, hosted by Hsv.rb and sponsored by Engine Y., will be happening on August 8th and 9th at t…

---

## [How !isset in Ruby](https://www.ruby-forum.com/t/how-isset-in-ruby/140515)

<div class="topic-metadata">

**Author:** [@dracula](https://www.ruby-forum.com/u/dracula)\
**Replies:** 20\
**Last updated:** [June 16, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/how-isset-in-ruby/140515 "2008-06-16T13:29:11Z")

</div>

Hello people! How !isset in Ruby? example php \<?php if(!isset($MY\_UID)) { //bla-bla } else { //bla-bla } ?\>

---

## [Simple memoization module](https://www.ruby-forum.com/t/simple-memoization-module/140580)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/simple-memoization-module/140580 "2008-06-16T13:25:59Z")

</div>

If you ewer wanted to easilly cache memoizable functions (ones that output depend ONLY on parameters given)- here’s a way! Implementation contains sweeping support for classes/modules and methods inside those classes,…

---

## [Ruby to convert US to UK punctuation/spelling?](https://www.ruby-forum.com/t/ruby-to-convert-us-to-uk-punctuation-spelling/140544)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/ruby-to-convert-us-to-uk-punctuation-spelling/140544 "2008-06-16T12:48:06Z")

</div>

I have about a thousand multipage documents which I need to convert from US English and punctuation to UK English and punctuation. Before I start on a ruby script (I’m just learning ruby) wanted to see if anyone knows …

---

## [Is hash ordered in JRuby 1.1?](https://www.ruby-forum.com/t/is-hash-ordered-in-jruby-1-1/140290)

<div class="topic-metadata">

**Author:** [@Barbara\_McInnes](https://www.ruby-forum.com/u/Barbara_McInnes)\
**Replies:** 7\
**Last updated:** [June 16, 2008, 10:44am UTC](https://www.ruby-forum.com/t/is-hash-ordered-in-jruby-1-1/140290 "2008-06-16T10:44:50Z")

</div>

Hi all, Do hashes maintain insertion order in JRuby 1.1? I would like to take a JRuby hash to a Java LinkedHashMap and maintain insertion order throughout. Thanks, Barbara

---

## [Array addressing problem](https://www.ruby-forum.com/t/array-addressing-problem/140556)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 9:02am UTC](https://www.ruby-forum.com/t/array-addressing-problem/140556 "2008-06-16T09:02:47Z")

</div>

I know this is a simple problem - to 'most everyone but me, but I cannot see why I’m getting this error. I’ve explored things with ruby-debug, and with irb inside of the debugger, and I simply cannot replicate the err…

---

## [Ruby string format kicks in when doign wild card in activerecord](https://www.ruby-forum.com/t/ruby-string-format-kicks-in-when-doign-wild-card-in-activerecord/140537)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [June 16, 2008, 8:07am UTC](https://www.ruby-forum.com/t/ruby-string-format-kicks-in-when-doign-wild-card-in-activerecord/140537 "2008-06-16T08:07:38Z")

</div>

when i was doing a LIKE statement in my wild card query. Ruby thinks that the % is a String Format charactor and throws exception. what are my options. Rawdata.find(:all , :conditions=\>\[“processed\_indicator like ‘LF…

---

## [\[Ruby 1.9 - Bug #164\] (Open) set\_trace\_func no longer reports 'line', 'call' and 'return' events](https://www.ruby-forum.com/t/ruby-1-9-bug-164-open-set-trace-func-no-longer-reports-line-call-and-return-events/140549)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 5:13am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-164-open-set-trace-func-no-longer-reports-line-call-and-return-events/140549 "2008-06-16T05:13:40Z")

</div>

e$B%A%1%C%He(B #164 e$B$,Js9p$5$l$^$7$?!#e(B (by Dave T.) Bug #164: set\_trace\_func no longer reports ‘line’, ‘call’ and ‘return’ events http://redmine.ruby-lang.org/issues/show/164 e$B5/I\<\<Te(B: Dave T. e$B%9%F!\<%?…

---

## [Jruby-1.1.2 - rails-2.1.0 - activerecord-jdbcmysql-adapter-0.8.1 - Table does not exist error](https://www.ruby-forum.com/t/jruby-1-1-2-rails-2-1-0-activerecord-jdbcmysql-adapter-0-8-1-table-does-not-exist-error/139784)

<div class="topic-metadata">

**Author:** [@jraines](https://www.ruby-forum.com/u/jraines)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 5:08am UTC](https://www.ruby-forum.com/t/jruby-1-1-2-rails-2-1-0-activerecord-jdbcmysql-adapter-0-8-1-table-does-not-exist-error/139784 "2008-06-16T05:08:59Z")

</div>

I posted this on the Nabble list but I’m not sure if that is the same as this mailling list, so I apologize if this is a duplicate. When I run my database migrationI get an error that the table it just created does n…

---

## [Open() and encodings](https://www.ruby-forum.com/t/open-and-encodings/139455)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 52\
**Last updated:** [June 16, 2008, 3:45am UTC](https://www.ruby-forum.com/t/open-and-encodings/139455 "2008-06-16T03:45:57Z")

</div>

æˆç€¬ã§ã™ã€‚ Dir.open/entries ã«é–¢é€£ã—ã¦ã€open() çµ¡ã¿ã®å¤‰æ›´æ¡ˆã§ã™ã€‚ ã¾ãšã€ãƒ•ã‚¡ã‚¤ãƒ«ãƒ‘ã‚¹ã«ã¤ã„ã¦ã€ç¾åœ¨ã¯ãƒ•ã‚¡ã‚¤ãƒ«ã‚·ã‚¹ãƒ†ãƒ ã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã«é–¢ã‚‰ãšã€ ä¸Žãˆã‚‰ã‚Œã…

---

## [Re: Circle Drawing (#166)](https://www.ruby-forum.com/t/re-circle-drawing-166/140541)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 12:44am UTC](https://www.ruby-forum.com/t/re-circle-drawing-166/140541 "2008-06-16T00:44:27Z")

</div>

Quick solution. Draws filled circles, corrected for non-square pixels. Can take non-integer x,y and radius. Here http://pastie.org/214895 or below (not sure how long pastie keeps the content) Cheers, Dave http://p…

---

## [Extracting mail from outlook express dbx files](https://www.ruby-forum.com/t/extracting-mail-from-outlook-express-dbx-files/140532)

<div class="topic-metadata">

**Author:** [@miner](https://www.ruby-forum.com/u/miner)\
**Replies:** 0\
**Last updated:** [June 15, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/extracting-mail-from-outlook-express-dbx-files/140532 "2008-06-15T21:54:24Z")

</div>

does anyone know of a library that can extract mail from outlook express dbx files? would prefer output to be rfc2822-compatible (i.e. headers and body in ascii). failing that, any rational, accessible format would d…

---

## [Maintenance for Ruby 1.8.5 series to be officially dropped soon](https://www.ruby-forum.com/t/maintenance-for-ruby-1-8-5-series-to-be-officially-dropped-soon/139164)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/maintenance-for-ruby-1-8-5-series-to-be-officially-dropped-soon/139164 "2008-06-15T19:16:35Z")

</div>

Hello all, I’m a person in charge of 1.8.5 maintenance. As knu released new 1.8.7 release, we are planning to drop official support for 1.8.5, mainly due to human resource limitations. But don’t be hurry, not now. We…

---

## [Examples/lists of common Ruby bugs](https://www.ruby-forum.com/t/examples-lists-of-common-ruby-bugs/140514)

<div class="topic-metadata">

**Author:** [@drweb](https://www.ruby-forum.com/u/drweb)\
**Replies:** 2\
**Last updated:** [June 15, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/examples-lists-of-common-ruby-bugs/140514 "2008-06-15T19:08:23Z")

</div>

Hi! I need some examples or lists of common Ruby bugs (logical bugs). If someone can help me in this mater. Kind regards /Muzaffar

---

## [Why can't an instance instantiated within a class method access a protected instance method?](https://www.ruby-forum.com/t/why-cant-an-instance-instantiated-within-a-class-method-access-a-protected-instance-method/140513)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [June 15, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/why-cant-an-instance-instantiated-within-a-class-method-access-a-protected-instance-method/140513 "2008-06-15T18:32:36Z")

</div>

Hi, Why can’t an instance instantiated within a class method access a protected instance method? e.g. class Recurring \< ActiveRecord::Base def self.reconcile t = Transaction.find(:first)

---

## [Errno::ENOENT and %x\[..\]](https://www.ruby-forum.com/t/errno-enoent-and-x/140512)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/errno-enoent-and-x/140512 "2008-06-15T18:29:54Z")

</div>

Hi, Last month, in my spare time, I have started to implement Process::Status and the related methods Kernel#system, Kernel#exec and %x\[…\]. While trying to solve a few design issues on my side, I noticed that %x\[…\] …

---

## [How to get 'NewMail' event from Outlook](https://www.ruby-forum.com/t/how-to-get-newmail-event-from-outlook/140231)

<div class="topic-metadata">

**Author:** [@cklin](https://www.ruby-forum.com/u/cklin)\
**Replies:** 2\
**Last updated:** [June 15, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-get-newmail-event-from-outlook/140231 "2008-06-15T17:21:18Z")

</div>

Hi, I wrote the this script to get the ‘NewMail’ event from Outlook ================newmail.rb======================= require ‘win32ole’ ol = WIN32OLE.new(‘Outlook.Application’) ev = WIN32OLE\_EVENT.new(ol, ‘Applicat…

---

## [\[ANN\] JtestR 0.3 Released](https://www.ruby-forum.com/t/ann-jtestr-0-3-released/140518)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 0\
**Last updated:** [June 15, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/ann-jtestr-0-3-released/140518 "2008-06-15T15:43:40Z")

</div>

JtestR allows you to test your Java code with Ruby frameworks. Homepage: http://jtestr.codehaus.org Download: http://dist.codehaus.org/jtestr JtestR 0.3 is the current release of the JtestR testing tool. JtestR integ…

---

## [Knowing which subclass called a superclass class method](https://www.ruby-forum.com/t/knowing-which-subclass-called-a-superclass-class-method/140477)

<div class="topic-metadata">

**Author:** [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Replies:** 6\
**Last updated:** [June 15, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/knowing-which-subclass-called-a-superclass-class-method/140477 "2008-06-15T13:18:38Z")

</div>

Hi All, If I have class A and class B, and they both inherit from S. And in S there is a class method called doSomething. How do I know in S’s doSomething wether it was called like: A.doSomething or B.doSomething t…

---

## [Binary string packing/unpacking issues](https://www.ruby-forum.com/t/binary-string-packing-unpacking-issues/140462)

<div class="topic-metadata">

**Author:** [@genericguy](https://www.ruby-forum.com/u/genericguy)\
**Replies:** 11\
**Last updated:** [June 15, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/binary-string-packing-unpacking-issues/140462 "2008-06-15T12:14:05Z")

</div>

Hi, I have a packed string of raw binary pixel data that I want to manipulate. However, I’m facing a few problems. Firstly, the only way I’ve managed to unpack the data so far is with “pixels.unpack(‘b\*’)”. It works …

---

## [Ruby 1.8.7-p17 has been released](https://www.ruby-forum.com/t/ruby-1-8-7-p17-has-been-released/139959)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 12\
**Last updated:** [June 15, 2008, 4:10am UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p17-has-been-released/139959 "2008-06-15T04:10:54Z")

</div>

ã€€Ruby 1.8.7-p17 ã‚’ãƒªãƒªãƒ¼ã‚¹ã—ã¾ã—ãŸã€‚ ã€€æœ¬ãƒªãƒªãƒ¼ã‚¹ã¯ 1.8.7 ãƒªãƒªãƒ¼ã‚¹å¾Œã«è¦‹ã¤ã‹ã£ãŸå•é¡Œã®ä¿®æ­£ã‚’ç›®çš„ã¨ã™ã‚‹ ãƒ‘ãƒƒãƒãƒªãƒªãƒ¼ã‚¹ã§ã‚ã‚Šã€å®‰å®šæ€§ã¨äº’æ›æ€§ãŒå‘ä¸Šã—ã¦ã„ã…

---

## [Alias throwing exception: undefined method \`send\_mail' for class \`HeartBeat' (NameError)](https://www.ruby-forum.com/t/alias-throwing-exception-undefined-method-send-mail-for-class-heartbeat-nameerror/140495)

<div class="topic-metadata">

**Author:** [@tristincolby](https://www.ruby-forum.com/u/tristincolby)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 2:38am UTC](https://www.ruby-forum.com/t/alias-throwing-exception-undefined-method-send-mail-for-class-heartbeat-nameerror/140495 "2008-06-15T02:38:34Z")

</div>

I’m having a problem with the code below. when I try and alias the send\_mail method, it throws an exception. undefined method send\_mail' for classHeartBeat’ (NameError) Any help would be appreciated. :slight\_smile: c…

---

## [Ruby 1.8.6 - serialport.so (i386-mswin32)](https://www.ruby-forum.com/t/ruby-1-8-6-serialport-so-i386-mswin32/140426)

<div class="topic-metadata">

**Author:** [@hsv-robert](https://www.ruby-forum.com/u/hsv-robert)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 1:45am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-serialport-so-i386-mswin32/140426 "2008-06-15T01:45:18Z")

</div>

Hello All, Am very new with ruby and use ruby 1.8.6 (i386-mswin32), for my first try is running as bellow. C:\\ruby\>ruby miniterm.rb COM3 9600 8 1 (eval):1: (eval):1:in private\_class\_method': undefined methodcreate’ …

---

## [InstantRails Error on Vista](https://www.ruby-forum.com/t/instantrails-error-on-vista/140496)

<div class="topic-metadata">

**Author:** [@Titus\_Barik](https://www.ruby-forum.com/u/Titus_Barik)\
**Replies:** 1\
**Last updated:** [June 15, 2008, 12:26am UTC](https://www.ruby-forum.com/t/instantrails-error-on-vista/140496 "2008-06-15T00:26:15Z")

</div>

All, When I try to run InstantRails 2.0 under Vista, which I’ve extracted to C:\\InstantRails, I get the following error: Either Apache or MySQL cannot run because another program is using it’s port. MySQL starts suc…

---

## [A simple patch for the ri utility](https://www.ruby-forum.com/t/a-simple-patch-for-the-ri-utility/196712)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 14\
**Last updated:** [June 14, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/a-simple-patch-for-the-ri-utility/196712 "2008-06-14T23:54:57Z")

</div>

Hi everyone I wrote a simple patch for the ri Ruby documentation viewer that makes to easier to look up ambiguous methods. Please check it out and send or post me feedback. Here’s the link: http://danielchoi.com/sof…

---

## [Inverted text in Ruby Tk canvas postscript](https://www.ruby-forum.com/t/inverted-text-in-ruby-tk-canvas-postscript/140492)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 0\
**Last updated:** [June 14, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/inverted-text-in-ruby-tk-canvas-postscript/140492 "2008-06-14T23:43:41Z")

</div>

A new problem with ruby-tk, specific to ruby1.8.7. The underlying tk version has not changed but now text in a postscript file generated from a tk canvas is mirror imaged about both horizontal and vertical axes. Line…

---

## [Math::erfinv inverse error function](https://www.ruby-forum.com/t/math-erfinv-inverse-error-function/140442)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/math-erfinv-inverse-error-function/140442 "2008-06-14T23:02:06Z")

</div>

Hi, Does anyone know where to find a Ruby /inverse/ error function?^1 Thanks, Bil kleb \[1\] See for example Error function - Wikipedia

---

## [What is the error in this program](https://www.ruby-forum.com/t/what-is-the-error-in-this-program/140483)

<div class="topic-metadata">

**Author:** [@graphicmist](https://www.ruby-forum.com/u/graphicmist)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/what-is-the-error-in-this-program/140483 "2008-06-14T22:17:23Z")

</div>

class Customer @@no\_of\_customers=0 def initialize(id, name, addr) @id=id @name=name @addr=addr end def display\_details() puts “Customer ID #@id” puts “Customer Name #@name” puts “Customer Address #@addr” @@no\_…

---

## [Definning "to\_s" in a class - inexpected result](https://www.ruby-forum.com/t/definning-to-s-in-a-class-inexpected-result/140487)

<div class="topic-metadata">

**Author:** [@kaizen](https://www.ruby-forum.com/u/kaizen)\
**Replies:** 4\
**Last updated:** [June 14, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/definning-to-s-in-a-class-inexpected-result/140487 "2008-06-14T22:00:28Z")

</div>

Hi, I’m trying to obtain the cards of a Deck in a string like “2s…KsAs2h…Ah2d…Ad2c…Ac”. The problem with the folowing code is that in the end of the string appears “#Deck:0x2bb5880”. Why? Can I avoid it? class Deck …

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

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