# Ruby

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

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

---

## [Writing Excel on MAC OS X](https://www.ruby-forum.com/t/writing-excel-on-mac-os-x/133945)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 3\
**Last updated:** [April 7, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/writing-excel-on-mac-os-x/133945 "2008-04-07T20:30:57Z")

</div>

Hi all, i’m currently working on an application that exports data and formulars as excel sheets. I’m using the WIN32OLE object (library? module?) for that. i am also currently thinking of changing to a Mac for develo…

---

## [Lisper says to rubyist: gimmie your syntax tree](https://www.ruby-forum.com/t/lisper-says-to-rubyist-gimmie-your-syntax-tree/133990)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [April 7, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/lisper-says-to-rubyist-gimmie-your-syntax-tree/133990 "2008-04-07T20:20:25Z")

</div>

module Tracer if $DEBUG def trace(str) STDERR.puts(str) end else def trace(str) end end end class Application include Tracer def initialize trace “initializing…” # … end def run trace “running…” # … en…

---

## [This Week in Ruby (April 7, 2008)](https://www.ruby-forum.com/t/this-week-in-ruby-april-7-2008/134088)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 0\
**Last updated:** [April 7, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/this-week-in-ruby-april-7-2008/134088 "2008-04-07T19:50:58Z")

</div>

Hi all, here you can find the new edition of “This Week in Ruby”: Cheers, Antonio

---

## [AWS/S3 and subclassing](https://www.ruby-forum.com/t/aws-s3-and-subclassing/134058)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 1\
**Last updated:** [April 7, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/aws-s3-and-subclassing/134058 "2008-04-07T14:56:32Z")

</div>

Hi all, How can I make this class return instances of Page instead of instances of AWS::S3::S3Object when I call Page.find(“mydomain”, “mypath”)? require “rubygems” require “aws/s3” class Page \< AWS::S3::S3Object c…

---

## [Strange, non-repetitious error](https://www.ruby-forum.com/t/strange-non-repetitious-error/134053)

<div class="topic-metadata">

**Author:** [@flisak](https://www.ruby-forum.com/u/flisak)\
**Replies:** 7\
**Last updated:** [April 7, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/strange-non-repetitious-error/134053 "2008-04-07T14:33:33Z")

</div>

Hello I have that exception sometimes: “can’t convert false into Integer” This error is non-repetitious. This exception occur once in a while when I run progam on the same data. sample code: for z in 1…lines.length …

---

## [Sending a file via XML RPC](https://www.ruby-forum.com/t/sending-a-file-via-xml-rpc/134025)

<div class="topic-metadata">

**Author:** [@e\_deleflie](https://www.ruby-forum.com/u/e_deleflie)\
**Replies:** 3\
**Last updated:** [April 7, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/sending-a-file-via-xml-rpc/134025 "2008-04-07T14:32:23Z")

</div>

Hi all, I’m trying to send a file via XML RPC … the below code doesn’t work (some HTTP error) and I cant find any samples anywhere on Google … can someone shed some light? @server = XMLRPC::Client.new2(“http://” + @l…

---

## [BasicSocket.do\_not\_reverse\_lookup patch](https://www.ruby-forum.com/t/basicsocket-do-not-reverse-lookup-patch/133926)

<div class="topic-metadata">

**Author:** [@Terence\_L](https://www.ruby-forum.com/u/Terence_L)\
**Replies:** 2\
**Last updated:** [April 7, 2008, 10:41am UTC](https://www.ruby-forum.com/t/basicsocket-do-not-reverse-lookup-patch/133926 "2008-04-07T10:41:59Z")

</div>

Hello list, Please find attached a small patch for BasicSocket.do\_not\_reverse\_lookup. Regards Terence

---

## [Regex and non-greedy matching?](https://www.ruby-forum.com/t/regex-and-non-greedy-matching/134027)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [April 7, 2008, 10:07am UTC](https://www.ruby-forum.com/t/regex-and-non-greedy-matching/134027 "2008-04-07T10:07:14Z")

</div>

I have a slight problem. I have strings with some tags such as ‘name:\</\>’ I need to match “name:” and “lightblue” In other words: What is between \<\> \</\> and What is inside the first \<\> right next to “name:” The fo…

---

## [Passing command line arguments to Ruby or JRuby script](https://www.ruby-forum.com/t/passing-command-line-arguments-to-ruby-or-jruby-script/133663)

<div class="topic-metadata">

**Author:** [@swati\_sharma](https://www.ruby-forum.com/u/swati_sharma)\
**Replies:** 5\
**Last updated:** [April 7, 2008, 8:15am UTC](https://www.ruby-forum.com/t/passing-command-line-arguments-to-ruby-or-jruby-script/133663 "2008-04-07T08:15:21Z")

</div>

hi all, have just started working with ruby. i am building a jruby script which has to branch to 20 threads and perform simultaneously. I am using Java’s Native threads and then calling ruby scripts in each of them. B…

---

## [Arbitrary mathematical relations, not just hashes](https://www.ruby-forum.com/t/arbitrary-mathematical-relations-not-just-hashes/134030)

<div class="topic-metadata">

**Author:** [@Kelly\_J](https://www.ruby-forum.com/u/Kelly_J)\
**Replies:** 5\
**Last updated:** [April 7, 2008, 6:02am UTC](https://www.ruby-forum.com/t/arbitrary-mathematical-relations-not-just-hashes/134030 "2008-04-07T06:02:22Z")

</div>

Many programming languages (including Perl, Ruby, and PHP) support hashes: $color\[‘apple’\] = ‘red’; $color\[‘ruby’\] = ‘red’; $type\[‘apple’\] = ‘fruit’; $type\[‘ruby’\] = ‘gem’; This quickly lets me find the color or ty…

---

## [Ruby1.9 $B$G$N(B $SAFE==4 $B$G$NF0:n$N;EMMJQ99$K$D$$$F(B](https://www.ruby-forum.com/t/ruby1-9-b-g-n-b-safe-4-b-g-nf0-n-n-emmjq99-k-d-f-b/133639)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 2\
**Last updated:** [April 7, 2008, 3:40am UTC](https://www.ruby-forum.com/t/ruby1-9-b-g-n-b-safe-4-b-g-nf0-n-n-emmjq99-k-d-f-b/133639 "2008-04-07T03:40:20Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B e$BI8Bj$N7o$K$D$$$F$G$9$+!$$I$3$+$K$^$H$a$i$l$?\>pJs$H$+$O$J$$$G$7$g$&$+!)e(B e$B$H$j$"$($:8=\>u$G!$e(Brb\_str\_intern e$B$N;EMMJQ99$Ge(B SecurityError e$B$r=P$9$h$&$K$J$C$F:$$C$F$^$9!%e(B …

---

## [Lone Star Rubyconf 2008 - Now Accepting Speaker Proposals](https://www.ruby-forum.com/t/lone-star-rubyconf-2008-now-accepting-speaker-proposals/196635)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 7, 2008, 1:12am UTC](https://www.ruby-forum.com/t/lone-star-rubyconf-2008-now-accepting-speaker-proposals/196635 "2008-04-07T01:12:25Z")

</div>

Greetings from LSRC 2008 The second annual Lone Star Ruby Conference is now accepting speaker proposals for the Sep 4-6 conference in Austin, TX. All Ruby-related topics will be considered. Speakers will receive fre…

---

## [Is posible to get the Module(s), Class and Method names in which we are?](https://www.ruby-forum.com/t/is-posible-to-get-the-module-s-class-and-method-names-in-which-we-are/134003)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [April 7, 2008, 12:42am UTC](https://www.ruby-forum.com/t/is-posible-to-get-the-module-s-class-and-method-names-in-which-we-are/134003 "2008-04-07T00:42:37Z")

</div>

Hi, for logging purposes I’d like to print the Modules, Class and Method in with the logger is called. Imagine this case: module App module TransportLayer class Server def get\_data() … … logger.info “We are in X…

---

## [Ruby graph: coordinate plane?](https://www.ruby-forum.com/t/ruby-graph-coordinate-plane/133933)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/ruby-graph-coordinate-plane/133933 "2008-04-06T23:26:25Z")

</div>

Been digging through the net this past day and I can’t seem to come up with any gem that supports coordinate plane graphing. Checked out mainly Ruport, Scruffy, and GNUplot They all have scatter plots but I’m looking …

---

## [Reading files in Dynamic Silverlight](https://www.ruby-forum.com/t/reading-files-in-dynamic-silverlight/133980)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/reading-files-in-dynamic-silverlight/133980 "2008-04-06T23:17:03Z")

</div>

Hi I can’t work out how I can read external xaml files from Silverlight with IronRuby. I’ve tried to use System::IO::File and StreamReader but both give me a MethodAccessException. How would I accomplish reading a …

---

## [Using object methods of first module in methods of second module](https://www.ruby-forum.com/t/using-object-methods-of-first-module-in-methods-of-second-module/133952)

<div class="topic-metadata">

**Author:** [@nixon](https://www.ruby-forum.com/u/nixon)\
**Replies:** 2\
**Last updated:** [April 6, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/using-object-methods-of-first-module-in-methods-of-second-module/133952 "2008-04-06T22:49:55Z")

</div>

Beforehand sorry for my English, I’m from Russia. I have 2 modules: module SendMail def self.send\_mail(hash) # some code end end module ActionMailer def quoted\_printable(text, charset) # some code end end Ple…

---

## [SQL Database to MS Excel sheet](https://www.ruby-forum.com/t/sql-database-to-ms-excel-sheet/133977)

<div class="topic-metadata">

**Author:** [@Tej](https://www.ruby-forum.com/u/Tej)\
**Replies:** 1\
**Last updated:** [April 6, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/sql-database-to-ms-excel-sheet/133977 "2008-04-06T22:28:08Z")

</div>

Hey, Well I have been trying to query from a SQL server directly to a Excel spreadsheet where i can configure Ruby to directly give me a Chart as an output.But, am unable to do so. Can any one let me know of a way by…

---

## [Re: Safe Level checking](https://www.ruby-forum.com/t/re-safe-level-checking/134017)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 0\
**Last updated:** [April 6, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/re-safe-level-checking/134017 "2008-04-06T20:29:13Z")

</div>

We need to respect tainting because tons of specs test for correct behavior. John Sent from my phone From: Peter Bacon D. removed\_email\_address@domain.invalid Sent: Sunday, April 06, 2008 11:13 AM To: removed\_ema…

---

## [Ruby imap sync script error with attachments](https://www.ruby-forum.com/t/ruby-imap-sync-script-error-with-attachments/133966)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 6, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/ruby-imap-sync-script-error-with-attachments/133966 "2008-04-06T20:20:58Z")

</div>

I have found a ruby imap script online that i’m having some trouble with, its originally from http://blog.wherenow.org/blog/2008/01/10/transferring-email-via-imap/ but I was hoping to get some help from the group with…

---

## [Safe Level checking](https://www.ruby-forum.com/t/safe-level-checking/134012)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 2\
**Last updated:** [April 6, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/safe-level-checking/134012 "2008-04-06T20:14:29Z")

</div>

The Sockets library does a lot of Security checking, i.e. Is the SafeLevel too high for this action. It may be helpful to be able to specify this kind of thing as an attribute on the method. Something like: \[Ru…

---

## [About exerb--when i use other gem](https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996)

<div class="topic-metadata">

**Author:** [@oztoto](https://www.ruby-forum.com/u/oztoto)\
**Replies:** 2\
**Last updated:** [April 6, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996 "2008-04-06T19:01:02Z")

</div>

I want to generate .rb file to .exe file in windows by using exerb. And my ruby program contains some gems(for example: Watir) but when i display .exe in command line this error comes: why?~~ D:\>test\_watir.exe tes…

---

## [Ruby meeting in Munich, Germany](https://www.ruby-forum.com/t/ruby-meeting-in-munich-germany/134006)

<div class="topic-metadata">

**Author:** [@Stephan\_KSSS\_mper](https://www.ruby-forum.com/u/Stephan_KSSS_mper)\
**Replies:** 1\
**Last updated:** [April 6, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/ruby-meeting-in-munich-germany/134006 "2008-04-06T18:21:42Z")

</div>

Hi all, this Wednesday, 9. April 2008 we’ll join for the next Ruby (and Rails) meeting in Munich Germany. The location is “Pizzeria Michelangelo” on the “SchleiÃŸheimer StraÃŸe”. We’ll start at 19:00 CEST and there a…

---

## [Problem while printing the content of an array, which is pointed by a variable](https://www.ruby-forum.com/t/problem-while-printing-the-content-of-an-array-which-is-pointed-by-a-variable/134014)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 2\
**Last updated:** [April 6, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/problem-while-printing-the-content-of-an-array-which-is-pointed-by-a-variable/134014 "2008-04-06T18:19:18Z")

</div>

Team, I am trying to print the content of array, which is “addressed?” by a variable. Instead of getting the content of the array, I am getting its name. I think it is better to take a look at the code bellow. PLEEE…

---

## [Rubygems 1.0.1 installation segfault](https://www.ruby-forum.com/t/rubygems-1-0-1-installation-segfault/131412)

<div class="topic-metadata">

**Author:** [@hoodwink](https://www.ruby-forum.com/u/hoodwink)\
**Replies:** 1\
**Last updated:** [April 6, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/rubygems-1-0-1-installation-segfault/131412 "2008-04-06T17:45:04Z")

</div>

Instalation of rubygems 1.0.1 fails on Debian Sid. Failure both when installing via .tgz package and .deb package Using ruby 1.8.6 (2008-03-03 patchlevel 114).

---

## [ActionMailer Message-Id field](https://www.ruby-forum.com/t/actionmailer-message-id-field/133971)

<div class="topic-metadata">

**Author:** [@nixon](https://www.ruby-forum.com/u/nixon)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/actionmailer-message-id-field/133971 "2008-04-06T17:05:44Z")

</div>

I am attempting to set my own value for the message-id header in emails delivered via ActionMailer. The underlying TMail object allows the message\_id to be set, but it looks like the deliver method of action mailer …

---

## [Gondor Library 0.1.1](https://www.ruby-forum.com/t/gondor-library-0-1-1/134013)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 0\
**Last updated:** [April 6, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/gondor-library-0-1-1/134013 "2008-04-06T16:44:35Z")

</div>

The Gondor Library enables users of the Ruby language (on the MRI, JRuby or IronRuby) to quickly implement agents for all kinds of situations (for example game AI, or stock market modeling), while focusing on the tas…

---

## [Thin 0.8.0 Dodgy Dentist release](https://www.ruby-forum.com/t/thin-0-8-0-dodgy-dentist-release/134000)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 0\
**Last updated:** [April 6, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/thin-0-8-0-dodgy-dentist-release/134000 "2008-04-06T12:20:59Z")

</div>

Hey all, Thin version 0.8.0 (codename Dodgy Dentist) is out! == What’s new? 2 important bugfixes, please update if you’re running in production. Also notice the -r option was renamed to -R. Builtin support for Merb,…

---

## [Memory allocation failure: heavy files](https://www.ruby-forum.com/t/memory-allocation-failure-heavy-files/133969)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 11:07am UTC](https://www.ruby-forum.com/t/memory-allocation-failure-heavy-files/133969 "2008-04-06T11:07:12Z")

</div>

Seems like any combo I try, eventually it lands me in a NoMemory error. I’ve tried: file = File.open(datafile) file.each{|data| @store \<\< data} file.close() @large = @store.to\_s.split(" ") File.open(datafile) do …

---

## [I use exerb to generate exe file,but it doesnt work](https://www.ruby-forum.com/t/i-use-exerb-to-generate-exe-file-but-it-doesnt-work/133992)

<div class="topic-metadata">

**Author:** [@oztoto](https://www.ruby-forum.com/u/oztoto)\
**Replies:** 3\
**Last updated:** [April 6, 2008, 11:00am UTC](https://www.ruby-forum.com/t/i-use-exerb-to-generate-exe-file-but-it-doesnt-work/133992 "2008-04-06T11:00:44Z")

</div>

my program is just puts “hello world” I use exerb to generate exe file, “exerb a.rb” it generate a exe file: a.exe when i enter it nothing happen I just see a cmd windows flash why? my exerb is 4.2 ruby 1.8.5 …

---

## [Augmented exceptions](https://www.ruby-forum.com/t/augmented-exceptions/133995)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 1\
**Last updated:** [April 6, 2008, 10:55am UTC](https://www.ruby-forum.com/t/augmented-exceptions/133995 "2008-04-06T10:55:28Z")

</div>

I was working with exceptions bubbling up out of some C code, and having trouble crafting an exception message that was descriptive enough to identify the object(s) involved so I could easily find and inspect them. Th…

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

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