# Ruby

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

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

---

## [Interesting set of articles on concurrent programming on Win](https://www.ruby-forum.com/t/interesting-set-of-articles-on-concurrent-programming-on-win/81033)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 0\
**Last updated:** [January 3, 2007, 7:41am UTC](https://www.ruby-forum.com/t/interesting-set-of-articles-on-concurrent-programming-on-win/81033 "2007-01-03T07:41:25Z")

</div>

I stumbled upon this rather interesting (although Windows-specific) series of articles on how to tweak Windows code for concurrency/multiple cores: http://www.devx.com/amd/Article/32246 http://www.devx.com/amd/Articl…

---

## [Inherited called at different times](https://www.ruby-forum.com/t/inherited-called-at-different-times/81032)

<div class="topic-metadata">

**Author:** [@darwin](https://www.ruby-forum.com/u/darwin)\
**Replies:** 0\
**Last updated:** [January 3, 2007, 7:31am UTC](https://www.ruby-forum.com/t/inherited-called-at-different-times/81032 "2007-01-03T07:31:13Z")

</div>

Hi. I have encountered a strange phenomenon about when self.inherited is called. Take the following code: class Base def self.inherited(sub) p “Base is being inherited” end end class A \< Base p “Declaring A” en…

---

## [Daemon in ruby uses alot of memory?](https://www.ruby-forum.com/t/daemon-in-ruby-uses-alot-of-memory/81023)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 3, 2007, 6:41am UTC](https://www.ruby-forum.com/t/daemon-in-ruby-uses-alot-of-memory/81023 "2007-01-03T06:41:18Z")

</div>

I was told by someone that tried to write a daemon process in Ruby to serve treaming audio files to multiple clients that it uses alot of memory which made the web server usage too high. Too high meaning the amount al…

---

## [Running a Rake task without prereqs](https://www.ruby-forum.com/t/running-a-rake-task-without-prereqs/81020)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 3\
**Last updated:** [January 3, 2007, 5:15am UTC](https://www.ruby-forum.com/t/running-a-rake-task-without-prereqs/81020 "2007-01-03T05:15:09Z")

</div>

Any way to force a rake task to run but skip its prereqs? Sometimes you need to do this.

---

## [New Ruby Feed Aggregator](https://www.ruby-forum.com/t/new-ruby-feed-aggregator/81022)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 0\
**Last updated:** [January 3, 2007, 4:21am UTC](https://www.ruby-forum.com/t/new-ruby-feed-aggregator/81022 "2007-01-03T04:21:23Z")

</div>

Hi All, I just thought I would drop in to let everyone know I’ve launched a new aggregator for ruby-related feeds. My primary goal was to have something to show clients, but my hope is that it can grow into somethin…

---

## [Solution #2](https://www.ruby-forum.com/t/solution-2/81016)

<div class="topic-metadata">

**Author:** [@Alex\_Watt](https://www.ruby-forum.com/u/Alex_Watt)\
**Replies:** 0\
**Last updated:** [January 3, 2007, 2:00am UTC](https://www.ruby-forum.com/t/solution-2/81016 "2007-01-03T02:00:44Z")

</div>

This is probably a better solution than my first, but you can be the judge of that. class Wordsearch DIRECTIONS = \[\[1,0\],\[-1,0\],\[0,1\],\[0,-1\],\[1,1\],\[1,-1\],\[-1,-1\],\[-1,1\]\] def initialize(wordsearch,words) @words = wo…

---

## [RMagick - missing methods on Magick::Draw](https://www.ruby-forum.com/t/rmagick-missing-methods-on-magick-draw/81013)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [January 3, 2007, 2:00am UTC](https://www.ruby-forum.com/t/rmagick-missing-methods-on-magick-draw/81013 "2007-01-03T02:00:43Z")

</div>

I’ve recently moved a Rails app from a Linux box to a Solaris container. The app makes use the excellent sparklines plug-in which in turn depends on RMagick. The Solaris box has RMagick gem 1.1.3 compiled against Grap…

---

## [Re: Detecting holidays](https://www.ruby-forum.com/t/re-detecting-holidays/81012)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [January 3, 2007, 1:24am UTC](https://www.ruby-forum.com/t/re-detecting-holidays/81012 "2007-01-03T01:24:41Z")

</div>

From: Daniel B. \[mailto:removed\_email\_address@domain.invalid\] def national\_holiday? new\_years? && memorial\_day? && independence\_day? && thanksgiving? && christmas? end You stingy bastard! I only get a holiday wh…

---

## [Re: Delete line from file](https://www.ruby-forum.com/t/re-delete-line-from-file/81010)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [January 3, 2007, 12:48am UTC](https://www.ruby-forum.com/t/re-delete-line-from-file/81010 "2007-01-03T00:48:37Z")

</div>

From: removed\_email\_address@domain.invalid =\> \[“a”, “b”, “c”, “d”, “e”, “f”\] irb(main):005:0\> \[1,3,5\].each {|e| a.slice!(e) } =\> \[1, 3, 5\] irb(main):006:0\> a =\> \[“a”, “c”, “d”, “f”\] You’d probably want to reverse …

---

## [Methods validating their arguments: good or bad?](https://www.ruby-forum.com/t/methods-validating-their-arguments-good-or-bad/80688)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 14\
**Last updated:** [January 3, 2007, 12:00am UTC](https://www.ruby-forum.com/t/methods-validating-their-arguments-good-or-bad/80688 "2007-01-03T00:00:31Z")

</div>

Code Complete\* recommends that methods validate the arguments they receive. The author went on to say that in a 1984 study, researchers discovered that miscommunication between routines caused 39% of the programming …

---

## [Webdav adding contacts](https://www.ruby-forum.com/t/webdav-adding-contacts/81005)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 2, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/webdav-adding-contacts/81005 "2007-01-02T23:46:29Z")

</div>

Does anyone have an example of adding/deleting contacts from an Exchange server using webdav? I found this link http://support.microsoft.com/kb/296126 but can figure out how to use the proppatch method in Ruby. Any i…

---

## [Question on rdoc, unwanted hyperlinked methods](https://www.ruby-forum.com/t/question-on-rdoc-unwanted-hyperlinked-methods/80882)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 7\
**Last updated:** [January 2, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/question-on-rdoc-unwanted-hyperlinked-methods/80882 "2007-01-02T23:34:27Z")

</div>

Hi all, Ruby 1.8.5 I thought you had to specially mark or tag methods in order for them to be hyperlinked. However, it seems that a comment that contains a plain word that happens to match a method name is hyperlink…

---

## [Strange behaviour with array of arrays](https://www.ruby-forum.com/t/strange-behaviour-with-array-of-arrays/80993)

<div class="topic-metadata">

**Author:** [@Dan\_Stevens\_SIAmAI](https://www.ruby-forum.com/u/Dan_Stevens_SIAmAI)\
**Replies:** 2\
**Last updated:** [January 2, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/strange-behaviour-with-array-of-arrays/80993 "2007-01-02T22:24:14Z")

</div>

Please observe the following code: Create an array of arrays by explicitly stating values test1 = \[\[nil, nil, nil\], \[nil, nil, nil\], \[nil, nil, nil\]\] =\> \[\[nil, nil, nil\], \[nil, nil, nil\], \[nil, nil, nil\]\] Create an ar…

---

## [Ruby In Steel Personal Edition RC1](https://www.ruby-forum.com/t/ruby-in-steel-personal-edition-rc1/80983)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 1\
**Last updated:** [January 2, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/ruby-in-steel-personal-edition-rc1/80983 "2007-01-02T21:34:04Z")

</div>

We’ve just put the first release candidate of Ruby In Steel PE online. Users of the beta versions will need to install this as the betas have now expired. RC1 has no expiry date. We shall release the final version of …

---

## [Detecting default used in method calls](https://www.ruby-forum.com/t/detecting-default-used-in-method-calls/80959)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 9\
**Last updated:** [January 2, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/detecting-default-used-in-method-calls/80959 "2007-01-02T20:51:48Z")

</div>

I would like to know if a function has been called with or without an optional argument. If I have - def the\_Function (a, b = ‘’) end and I invoke it like this - the\_Function(‘a’) the\_Function(‘a’, ‘’) is there a…

---

## [Re: ruby for SCO](https://www.ruby-forum.com/t/re-ruby-for-sco/80704)

<div class="topic-metadata">

**Author:** [@OverdorfS\_Sam](https://www.ruby-forum.com/u/OverdorfS_Sam)\
**Replies:** 4\
**Last updated:** [January 2, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/re-ruby-for-sco/80704 "2007-01-02T20:09:35Z")

</div>

Yes I have tried that. The SCO libraries have some compatibility problems. I Tried finding the “gcc” compiler and libraries but they were not current enough and had compilation error too. So I’m kind of wondering if …

---

## [How to properly format data when using TCPSocket.send()](https://www.ruby-forum.com/t/how-to-properly-format-data-when-using-tcpsocket-send/80661)

<div class="topic-metadata">

**Author:** [@shadowcipher](https://www.ruby-forum.com/u/shadowcipher)\
**Replies:** 11\
**Last updated:** [January 2, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/how-to-properly-format-data-when-using-tcpsocket-send/80661 "2007-01-02T20:02:24Z")

</div>

It would be greatly appreciated if someone would clue me in to what I am doing wrong here. I am trying to send this data below to httpd(Apache) however I am receiving a http response code of 400 (bad request). Apache…

---

## [Posipele to jump to another line in the program?](https://www.ruby-forum.com/t/posipele-to-jump-to-another-line-in-the-program/80978)

<div class="topic-metadata">

**Author:** [@hanez](https://www.ruby-forum.com/u/hanez)\
**Replies:** 4\
**Last updated:** [January 2, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/posipele-to-jump-to-another-line-in-the-program/80978 "2007-01-02T19:41:27Z")

</div>

Okay guys! I am pritty new to Ruby programing and i need your help. Is it possibel to ask the program to go back to another program line number and then proceed from there? an exampele: ans1 = gets.chomp \<----------…

---

## [Solution to ruby quiz #107](https://www.ruby-forum.com/t/solution-to-ruby-quiz-107/80912)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 1\
**Last updated:** [January 2, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/solution-to-ruby-quiz-107/80912 "2007-01-02T19:39:26Z")

</div>

Hello. This is my first ever ruby program of more than 10 lines, so be gentle. :slight\_smile: I’m a java programmer by profession and it will probably show in my solution, but I thought I’d post it and get feedback…

---

## [Modicum](https://www.ruby-forum.com/t/modicum/80980)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [January 2, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/modicum/80980 "2007-01-02T19:21:18Z")

</div>

Sometimes you have code, not because it looks beautiful, or reads well or gives you that warm toasty feeling in your swooner, but just because it’s Consistant, and it Works. T.

---

## [Operator precedence of assignment](https://www.ruby-forum.com/t/operator-precedence-of-assignment/80951)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 5\
**Last updated:** [January 2, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/operator-precedence-of-assignment/80951 "2007-01-02T18:10:59Z")

</div>

How do you think ruby parses this expression? a = 1 + b = 2 + c = 4 + d = 8 Originally I thought that operator precedence would result in a = (1 + b) = (2 + c) = (4 + d) = 8 and since an assignment requires a variabl…

---

## [Ruby-GNOME2-0.16.0](https://www.ruby-forum.com/t/ruby-gnome2-0-16-0/80636)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 2\
**Last updated:** [January 2, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-0-16-0/80636 "2007-01-02T18:02:55Z")

</div>

Hi, Ruby-GNOME2-0.16.0 is out. Enjoy! Highlights Fixed serious bugs (depends on GC) Support GTK±2.10 and the latest version of each libraries. Don’t include Ruby/GStreamer and Ruby/Libgda. We cancel to support Ruby/…

---

## [Re: Can't post to Rails form](https://www.ruby-forum.com/t/re-cant-post-to-rails-form/80967)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [January 2, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/re-cant-post-to-rails-form/80967 "2007-01-02T17:32:44Z")

</div>

From: Yitzhak Bar G. I can’t post to the Rails forum. Every time I try, I get: Application error (Rails) Try: http://groups.google.com/group/rubyonrails-talk

---

## [RubyOSA 0.2.0](https://www.ruby-forum.com/t/rubyosa-0-2-0/80958)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 1\
**Last updated:** [January 2, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/rubyosa-0-2-0/80958 "2007-01-02T17:04:06Z")

</div>

Hi, I’m pleased to announce the second public release of RubyOSA, 0.2.0. RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure. In big words, it allows you to do in Ruby what you could do i…

---

## [Can't post to Rails form](https://www.ruby-forum.com/t/cant-post-to-rails-form/80962)

<div class="topic-metadata">

**Author:** [@yitzhakbg](https://www.ruby-forum.com/u/yitzhakbg)\
**Replies:** 1\
**Last updated:** [January 2, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/cant-post-to-rails-form/80962 "2007-01-02T17:04:06Z")

</div>

I can’t post to the Rails forum. Every time I try, I get: Application error (Rails)

---

## [What gui tool does david use in that screencast?](https://www.ruby-forum.com/t/what-gui-tool-does-david-use-in-that-screencast/80942)

<div class="topic-metadata">

**Author:** [@microtime](https://www.ruby-forum.com/u/microtime)\
**Replies:** 3\
**Last updated:** [January 2, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/what-gui-tool-does-david-use-in-that-screencast/80942 "2007-01-02T16:25:55Z")

</div>

the admin tool for mysql he used in that video,—http://media.rubyonrails.org/video/rails\_take2\_with\_sound.mov, i download mysqladminister ,but it is for mysql5.0,and my version is 4.1.25, it often tells me that i hav…

---

## [Open source credit card processing in ruby](https://www.ruby-forum.com/t/open-source-credit-card-processing-in-ruby/80874)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 12\
**Last updated:** [January 2, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/open-source-credit-card-processing-in-ruby/80874 "2007-01-02T14:49:39Z")

</div>

Just recently I have the option to open source a credit card processing application that is written in ruby using eventmachine. This application processes cards directly to Vital. It basically replaces an online paym…

---

## [Fork on Windows](https://www.ruby-forum.com/t/fork-on-windows/80917)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 9\
**Last updated:** [January 2, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/fork-on-windows/80917 "2007-01-02T14:41:38Z")

</div>

What’s the best way to see if a particular platform supports fork? I know I could check if it’s running on Windows, but I’d like something more direct (and presumably accurate). A similar question: assuming a standar…

---

## [3D Game engine with Ruby binding?](https://www.ruby-forum.com/t/3d-game-engine-with-ruby-binding/80947)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 1\
**Last updated:** [January 2, 2007, 2:21pm UTC](https://www.ruby-forum.com/t/3d-game-engine-with-ruby-binding/80947 "2007-01-02T14:21:34Z")

</div>

Hello, who knows a 3D game engine with a solid and well maintained Ruby binding? Thanks

---

## [XML - converting from one feed to another (beginner)](https://www.ruby-forum.com/t/xml-converting-from-one-feed-to-another-beginner/80644)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [January 2, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/xml-converting-from-one-feed-to-another-beginner/80644 "2007-01-02T12:51:23Z")

</div>

I’m trying to read an XML feed of products and convert them to a different XML feed to upload to Froogle (Google Base). How do I read the lines of XML and then rewrite them in the new XML? I’ve started with rexml, but…

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

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