# Ruby

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

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

---

## [Win32OLE. Opening an existing file](https://www.ruby-forum.com/t/win32ole-opening-an-existing-file/73706)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/win32ole-opening-an-existing-file/73706 "2006-10-27T14:19:22Z")

</div>

Hi, Can someone tell me how I can use Win32OLE to open an existing file? All the doc I’ve seen just shows you how to start a new file, like this: require ‘Win32ole’ excel = WIN32OLE.new(“excel.application”) Thanks, …

---

## [London Ruby User Group (LRUG), 13 November 2006](https://www.ruby-forum.com/t/london-ruby-user-group-lrug-13-november-2006/73832)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 27, 2006, 1:05pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-lrug-13-november-2006/73832 "2006-10-27T13:05:26Z")

</div>

The next LRUG meeting will be on Monday November 13, 6:30-8pm (http://lrug.org/). We’ve got two neat presentations lined up. Tom W. will be encouraging us to Do Bad Things with Capistrano. Paul B. will be sharing wha…

---

## [Re: Potential Brit ruby meeting formally Chunky Bacon](https://www.ruby-forum.com/t/re-potential-brit-ruby-meeting-formally-chunky-bacon/73829)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 27, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/re-potential-brit-ruby-meeting-formally-chunky-bacon/73829 "2006-10-27T12:51:25Z")

</div>

Be good to see you! I’ll be the girl with pink hair. ( : Gem

---

## [Re: Potential Brit ruby meeting formally Chunky Bacon](https://www.ruby-forum.com/t/re-potential-brit-ruby-meeting-formally-chunky-bacon/73725)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 3\
**Last updated:** [October 27, 2006, 12:49pm UTC](https://www.ruby-forum.com/t/re-potential-brit-ruby-meeting-formally-chunky-bacon/73725 "2006-10-27T12:49:25Z")

</div>

Apologies, I’m a n00b. At least people are more aware that there is stuff going on, for instance I’m going along to a meeting in manchester which should be fun! Gem

---

## [Re: Chunky Bacon](https://www.ruby-forum.com/t/re-chunky-bacon/73723)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 7\
**Last updated:** [October 27, 2006, 11:25am UTC](https://www.ruby-forum.com/t/re-chunky-bacon/73723 "2006-10-27T11:25:19Z")

</div>

Am I too british or too young to understand? =Þ Gem

---

## [Re: Potential Brit ruby meeting formally Chunky Bacon](https://www.ruby-forum.com/t/re-potential-brit-ruby-meeting-formally-chunky-bacon/73823)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [October 27, 2006, 11:09am UTC](https://www.ruby-forum.com/t/re-potential-brit-ruby-meeting-formally-chunky-bacon/73823 "2006-10-27T11:09:17Z")

</div>

My knuckles have been severely rapped. I won’t try anything like that again, no sir! Gem

---

## [Beginner would like help with oo-modelling](https://www.ruby-forum.com/t/beginner-would-like-help-with-oo-modelling/73691)

<div class="topic-metadata">

**Author:** [@paper](https://www.ruby-forum.com/u/paper)\
**Replies:** 14\
**Last updated:** [October 27, 2006, 11:01am UTC](https://www.ruby-forum.com/t/beginner-would-like-help-with-oo-modelling/73691 "2006-10-27T11:01:17Z")

</div>

I’m new to ruby and basically oop as well, but based on what I’ve seen so far, ruby seems the way to understand and learn oop. Now, I would like to write a cute little script that generates a ruler in svg (or maybe ps…

---

## [Gem error on "require 'rubygems'"](https://www.ruby-forum.com/t/gem-error-on-require-rubygems/73820)

<div class="topic-metadata">

**Author:** [@Luc\_J](https://www.ruby-forum.com/u/Luc_J)\
**Replies:** 0\
**Last updated:** [October 27, 2006, 10:47am UTC](https://www.ruby-forum.com/t/gem-error-on-require-rubygems/73820 "2006-10-27T10:47:16Z")

</div>

Hello RubyComminity !!! I have decided to move to ruby to make the util script I usually do in Perl. I need to create a graph from an XML file. For this, it seems that I can use gruff and magic/xml (not sure this is…

---

## [Question about require and pdf-writer](https://www.ruby-forum.com/t/question-about-require-and-pdf-writer/57231)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 3\
**Last updated:** [October 27, 2006, 10:42am UTC](https://www.ruby-forum.com/t/question-about-require-and-pdf-writer/57231 "2006-10-27T10:42:22Z")

</div>

I am just begining with Ruby (decent overall programming background though) and I’m looking to try out the pdf-writer ruby gem. I read the guide from the pdf-writer author, Austin Z. (artima - Creating Printable Docum…

---

## [Ubuntu tcltklib absolute beginner question](https://www.ruby-forum.com/t/ubuntu-tcltklib-absolute-beginner-question/73708)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 27, 2006, 9:31am UTC](https://www.ruby-forum.com/t/ubuntu-tcltklib-absolute-beginner-question/73708 "2006-10-27T09:31:12Z")

</div>

I’m trying to start from absolute basics. I have ruby 1.8 installed and working and want to have a look at the Tk interface. I get the following:- irb(main):001:0\> require ‘tk’ RuntimeError: tcltklib: fail to Tk\_Ini…

---

## [Time without Date](https://www.ruby-forum.com/t/time-without-date/73770)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 7\
**Last updated:** [October 27, 2006, 8:23am UTC](https://www.ruby-forum.com/t/time-without-date/73770 "2006-10-27T08:23:09Z")

</div>

Is there any class or lib to deal with Times without Date? (Eg “3:30 PM” - but I don’t want it associated with a date.) Ideally, I’d like to: Have clock arithmetic (1 AM minus 90 minutes is 11:30 PM) Convert from Da…

---

## [ActiveRecord::Extensions 0.0.5](https://www.ruby-forum.com/t/activerecord-extensions-0-0-5/73806)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [October 27, 2006, 6:06am UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-0-5/73806 "2006-10-27T06:06:59Z")

</div>

ActiveRecord::Extensions 0.0.5 is out! ActiveRecord::Extensions (ARE) is a suite of extensions to ActiveRecord. It includes better support for ActiveRecord find methods by supporting core Ruby classes such as Arrays, …

---

## [Backtick commands and stderr](https://www.ruby-forum.com/t/backtick-commands-and-stderr/73784)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 5:52am UTC](https://www.ruby-forum.com/t/backtick-commands-and-stderr/73784 "2006-10-27T05:52:58Z")

</div>

Hi! When executing a system op using the backtick method, the standard output is caught and returned in the assigned variable: output= ls -Al I am wondering what happens with the standard error output? I have writte…

---

## [How can I populate header values in SOAP document?](https://www.ruby-forum.com/t/how-can-i-populate-header-values-in-soap-document/73759)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [October 27, 2006, 5:38am UTC](https://www.ruby-forum.com/t/how-can-i-populate-header-values-in-soap-document/73759 "2006-10-27T05:38:57Z")

</div>

Hi all, Got a question about the Ruby SOAP library. I’ve generated a proxy using the SOAP::WSDLDriverFactory as follows: ws = SOAP::WSDLDriverFactory.new(‘http://foo.com/foo.wsdl’).create\_rpc\_driver I can see that …

---

## [Documentation formats (RDoc to PDF output?)](https://www.ruby-forum.com/t/documentation-formats-rdoc-to-pdf-output/73563)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 11\
**Last updated:** [October 27, 2006, 5:22am UTC](https://www.ruby-forum.com/t/documentation-formats-rdoc-to-pdf-output/73563 "2006-10-27T05:22:54Z")

</div>

Hi, I’m in the process of writing a manual/tutorial for RSRuby (http:// rubyforge.org/projects/rsruby/), but I’m not sure what the best format for this kind of document is. The source code is documented using RDoc, b…

---

## [Server response time](https://www.ruby-forum.com/t/server-response-time/73800)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 27, 2006, 4:52am UTC](https://www.ruby-forum.com/t/server-response-time/73800 "2006-10-27T04:52:52Z")

</div>

Hello, I just started using SugarCRM an online CRM tool. I noticed that at the bottom of the page it would print out the following line for every page Server response time: 0.315068 seconds. Is there a way to do the…

---

## [Downcase part of a string](https://www.ruby-forum.com/t/downcase-part-of-a-string/73166)

<div class="topic-metadata">

**Author:** [@ilhamik](https://www.ruby-forum.com/u/ilhamik)\
**Replies:** 39\
**Last updated:** [October 27, 2006, 4:35am UTC](https://www.ruby-forum.com/t/downcase-part-of-a-string/73166 "2006-10-27T04:35:31Z")

</div>

hi, I want to downcase a string but without specific parts. for example: msg = “THIS is a Text and (NO Change HERE) HELP” after downcase it should look like “this is a text and (NO Change HERE) help” I don’t want t…

---

## [Finding digest/md5.so and compiling ruby cleanly](https://www.ruby-forum.com/t/finding-digest-md5-so-and-compiling-ruby-cleanly/73668)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [October 27, 2006, 4:25am UTC](https://www.ruby-forum.com/t/finding-digest-md5-so-and-compiling-ruby-cleanly/73668 "2006-10-27T04:25:25Z")

</div>

Hi All, I need tips on how to compile ruby cleanly (Linux ubuntu dapper 6.06 and ruby’s stable-snapshot). I screwed up my compilation and now ruby cannot\_ load digest/md5.so. (i recompiled again, still cannot load). …

---

## [Beginning Ruby](https://www.ruby-forum.com/t/beginning-ruby/73765)

<div class="topic-metadata">

**Author:** [@phalcos](https://www.ruby-forum.com/u/phalcos)\
**Replies:** 1\
**Last updated:** [October 27, 2006, 2:37am UTC](https://www.ruby-forum.com/t/beginning-ruby/73765 "2006-10-27T02:37:20Z")

</div>

Hello Rubygroup, Im quite new to Ruby (unexpected heh?) but is currently planning on building a website community with it just in order to see how powerful it accually can be. I usually use PHP when building webapplic…

---

## [Re: backtick commands and stderr](https://www.ruby-forum.com/t/re-backtick-commands-and-stderr/73787)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 27, 2006, 1:37am UTC](https://www.ruby-forum.com/t/re-backtick-commands-and-stderr/73787 "2006-10-27T01:37:14Z")

</div>

From: Alexandru P. \[mailto:removed\_email\_address@domain.invalid\] On 10/27/06, Gavin K. removed\_email\_address@domain.invalid wrote: I believe you want to look at open3 or open4 Can you please add some more details? …

---

## [Re: backtick commands and stderr](https://www.ruby-forum.com/t/re-backtick-commands-and-stderr/73786)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 27, 2006, 1:35am UTC](https://www.ruby-forum.com/t/re-backtick-commands-and-stderr/73786 "2006-10-27T01:35:14Z")

</div>

From: Alexandru P. \[mailto:removed\_email\_address@domain.invalid\] When executing a system op using the backtick method, the standard output is caught and returned in the assigned variable: output= ls -Al I am wonderi…

---

## [Re: modeling a simple cpu](https://www.ruby-forum.com/t/re-modeling-a-simple-cpu/73764)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 7\
**Last updated:** [October 27, 2006, 1:25am UTC](https://www.ruby-forum.com/t/re-modeling-a-simple-cpu/73764 "2006-10-27T01:25:12Z")

</div>

From: Ara.T.Howard \[mailto:removed\_email\_address@domain.invalid\] i need to model the on board cpu of a satellite in order to mock running uploaded commands. basically i need to model the internal state and all incom…

---

## [Newbie q on class Foo::Bar](https://www.ruby-forum.com/t/newbie-q-on-class-foo-bar/73771)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [October 27, 2006, 1:21am UTC](https://www.ruby-forum.com/t/newbie-q-on-class-foo-bar/73771 "2006-10-27T01:21:12Z")

</div>

What’s the point of a class-within-a-class? For example, I take it that I can say: class Foo class Bar def whatever … And then I can say my\_foo\_bar = Foo::Bar.new For example, isn’t that what something like File:…

---

## [Modeling a simple cpu](https://www.ruby-forum.com/t/modeling-a-simple-cpu/73758)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 27, 2006, 1:09am UTC](https://www.ruby-forum.com/t/modeling-a-simple-cpu/73758 "2006-10-27T01:09:11Z")

</div>

i need to model the on board cpu of a satellite in order to mock running uploaded commands. basically i need to model the internal state and all incoming commands so i can determine register states at a given point in …

---

## [Pass block instead of here document?](https://www.ruby-forum.com/t/pass-block-instead-of-here-document/73634)

<div class="topic-metadata">

**Author:** [@Morton\_G](https://www.ruby-forum.com/u/Morton_G)\
**Replies:** 8\
**Last updated:** [October 27, 2006, 12:35am UTC](https://www.ruby-forum.com/t/pass-block-instead-of-here-document/73634 "2006-10-27T00:35:06Z")

</div>

I have a situation where I want to send many messages, one after the other, to single object. Instead of writing, say, foo.eat burger, fries foo.drink beer foo.be\_merry I want to be able to write something like: foo.…

---

## [Debugging memory use and GC](https://www.ruby-forum.com/t/debugging-memory-use-and-gc/73623)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 11\
**Last updated:** [October 27, 2006, 12:27am UTC](https://www.ruby-forum.com/t/debugging-memory-use-and-gc/73623 "2006-10-27T00:27:05Z")

</div>

What is a good way to find out what objects are not being GC’d ? I am seeing a strange pattern I can’t figure out. The app is handling large files and will use up to 150mb or so of memory and then when I call GC.sta…

---

## [Re: Trouble with Marshal](https://www.ruby-forum.com/t/re-trouble-with-marshal/73780)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 11:51pm UTC](https://www.ruby-forum.com/t/re-trouble-with-marshal/73780 "2006-10-26T23:51:03Z")

</div>

From: Gavin K. p s2 = Marshal.load( IO.read( ‘desc.marshal’ ) ) #=\> foo.rb:13:in \`load’: marshal data too short (ArgumentError) Bah, my stupid fault. It was binary mode at stake, but on reading, not writing. Mauric…

---

## [Re: Trouble with Marshal](https://www.ruby-forum.com/t/re-trouble-with-marshal/73781)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/re-trouble-with-marshal/73781 "2006-10-26T23:47:02Z")

</div>

From: Gavin K. It took less time than I thought to bring it down to a simple, reproducible, moderately sanitized case: Bah…this time manually wrapped to less than 70 characters in the hope that it will survive inta…

---

## [Re: Trouble with Marshal](https://www.ruby-forum.com/t/re-trouble-with-marshal/73779)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/re-trouble-with-marshal/73779 "2006-10-26T23:41:00Z")

</div>

From: Nick S. \[mailto:removed\_email\_address@domain.invalid\] Wild guess, but can you try opening the file with “wb+”? The marshal format is binary, isn’t it, so the windows line ending could make a difference. Reaso…

---

## [Re: Trouble with Marshal](https://www.ruby-forum.com/t/re-trouble-with-marshal/73778)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [October 26, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/re-trouble-with-marshal/73778 "2006-10-26T23:41:00Z")

</div>

From: Gavin K. I’m trying to use Marshal on Windows to cache some results that take a while to generate, and I’m getting some bad results. It took less time than I thought to bring it down to a simple, reproducible…

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

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