# Ruby

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

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

---

## [Intensive computing: Ruby? Ruby/C? Pure C++?](https://www.ruby-forum.com/t/intensive-computing-ruby-ruby-c-pure-c/82083)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 20\
**Last updated:** [September 25, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/intensive-computing-ruby-ruby-c-pure-c/82083 "2007-09-25T22:45:55Z")

</div>

Hello, ruby-talk. I have a question about choosing between Ruby, Ruby with C extensions (InlineRuby, ruby2c, etc.) and pure C++. I’ll try to keep it short and to the point; thanks in advance for any answers, and of co…

---

## [Ruby and Python, questions (not a flamewar!)](https://www.ruby-forum.com/t/ruby-and-python-questions-not-a-flamewar/82256)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 24\
**Last updated:** [September 25, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/ruby-and-python-questions-not-a-flamewar/82256 "2007-09-25T22:45:47Z")

</div>

I’ve been using ruby for the past 6 months and I must say I am extremely impressed. I find it a joy to write and I even find myself making excuses to throw together simple scripts at work. I’m also teaching myself rai…

---

## [Word Blender (#108)](https://www.ruby-forum.com/t/word-blender-108/81701)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 7\
**Last updated:** [September 25, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/word-blender-108/81701 "2007-09-25T22:45:31Z")

</div>

I’m almost embarrassed to admit that I originally turned this quiz down. I thought it would be too similar to the Scrabble Stems problem we did long, long ago. Ben politely explained that he felt it was different en…

---

## [Re: Number Spiral (#109)](https://www.ruby-forum.com/t/re-number-spiral-109/82516)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/re-number-spiral-109/82516 "2007-09-25T22:44:52Z")

</div>

My answers assumes an odd numbered spirals (I inferred it from “The number zero represents the center of the spiral”). Sorry for my beginners ruby (are there some standard min(x,y)/max(x,y,) functions?) The approach …

---

## [Concurrency models](https://www.ruby-forum.com/t/concurrency-models/82235)

<div class="topic-metadata">

**Author:** [@Pit\_C](https://www.ruby-forum.com/u/Pit_C)\
**Replies:** 10\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/concurrency-models/82235 "2007-09-25T22:44:52Z")

</div>

In this blog post http://moonbase.rydia.net/mental/blog/programming/concurrency-five-ways.html MenTaLguY shows how to implement a thread-safe queue using five different concurrency models found in Ruby and other langu…

---

## [Mod\_ruby security](https://www.ruby-forum.com/t/mod-ruby-security/82265)

<div class="topic-metadata">

**Author:** [@Parragh\_S](https://www.ruby-forum.com/u/Parragh_S)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/mod-ruby-security/82265 "2007-09-25T22:44:37Z")

</div>

Hi, I have a quiestion regarding mod\_ruby security, hope someone might help me out. Suppose, I have a local user on my server, who has a chroot jail, scponly web-home folder to upload .rhtml (or .rb) files, that apac…

---

## [How to translate base 10 number into base 2 number](https://www.ruby-forum.com/t/how-to-translate-base-10-number-into-base-2-number/82472)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 15\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/how-to-translate-base-10-number-into-base-2-number/82472 "2007-09-25T22:44:36Z")

</div>

Hi all, I want to write a method to tranlate base 10 number into base 2 number. I want to call the method within itself. But it doesn’t work. What is the right way to do something like this? Thanks, Li def ten\_to…

---

## [Binding to Java based Websphere MQ libraries](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625)

<div class="topic-metadata">

**Author:** [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625 "2007-09-25T22:44:36Z")

</div>

Hi, IBM make available a fairly comprehensive collection of Java classes for managing MQ. I’m interested in creating Ruby bindings (wrappers?) to these classes and was wondering if anyone could point me in the right …

---

## [Backquote command execution path problem](https://www.ruby-forum.com/t/backquote-command-execution-path-problem/81266)

<div class="topic-metadata">

**Author:** [@Felipe\_N](https://www.ruby-forum.com/u/Felipe_N)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/backquote-command-execution-path-problem/81266 "2007-09-25T22:44:36Z")

</div>

C:\\projeto\>irb irb(main):001:0\> cd =\> “C:\\projeto\\n” How i change the path that the command will be executed ? What must happen: C:\\projeto\>irb irb(main):001:0\> YOUR\_MAGIC\_COMMAND(“C:\\projeto\\blablabla”) irb(main)…

---

## [Upcoming Madison, WI Ruby/Rails events](https://www.ruby-forum.com/t/upcoming-madison-wi-ruby-rails-events/82543)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/upcoming-madison-wi-ruby-rails-events/82543 "2007-09-25T22:44:22Z")

</div>

We have a bunch of events planned for the next month – if you are in the area come out! Jan 22nd - Web Framework Comparisons meeting (Rails vs Groovy/Grails vs J2EE) http://madisonrails.com/wiki/pages/details+on+W…

---

## [Number Spiral (#109)](https://www.ruby-forum.com/t/number-spiral-109/82443)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 25\
**Last updated:** [September 25, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/number-spiral-109/82443 "2007-09-25T22:43:46Z")

</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: …

---

## [RubyConf 2006 Presenter? Send me your materials!](https://www.ruby-forum.com/t/rubyconf-2006-presenter-send-me-your-materials/82075)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/rubyconf-2006-presenter-send-me-your-materials/82075 "2007-09-25T22:42:18Z")

</div>

I’ve been hosting the rubyconf presentation materials for the past 5 years and I’m not about to stop now. Please send me your slides / pdfs / whatever and I’ll get them up.

---

## [Running Webrick alongside IIS on port 80](https://www.ruby-forum.com/t/running-webrick-alongside-iis-on-port-80/81761)

<div class="topic-metadata">

**Author:** [@pdeva](https://www.ruby-forum.com/u/pdeva)\
**Replies:** 11\
**Last updated:** [September 25, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/running-webrick-alongside-iis-on-port-80/81761 "2007-09-25T22:42:06Z")

</div>

Hi, I am hosting a couple of asp.net sites on IIS on my server. Now I need to host another site in ruby on the same machine. For this I guess i will need to run the webrick server. Can anyone tell me how to have both…

---

## [Rake PackageTask, undefined method exitstatus](https://www.ruby-forum.com/t/rake-packagetask-undefined-method-exitstatus/81325)

<div class="topic-metadata">

**Author:** [@warhero](https://www.ruby-forum.com/u/warhero)\
**Replies:** 6\
**Last updated:** [September 25, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/rake-packagetask-undefined-method-exitstatus/81325 "2007-09-25T22:41:58Z")

</div>

Hey all, I am trying to get some rake tasks going. I have a package task that is this: Rake::PackageTask.new(“deploy”, ARGV\[1\]) do |p| p.need\_zip = true p.name = ‘rubyamf’ p.package\_files.include(“lib/\*\*/.”) p.pac…

---

## [Recurring intervals in ruby](https://www.ruby-forum.com/t/recurring-intervals-in-ruby/82495)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/recurring-intervals-in-ruby/82495 "2007-09-25T22:41:55Z")

</div>

I’m setting about to write a mini language of sorts for defining recurring intervals that will be used in a recurring billing application. In the past I wrote a simpler version in perl using the awsome Date::Manip mo…

---

## [Number Spiral (#109)](https://www.ruby-forum.com/t/number-spiral-109/82245)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/number-spiral-109/82245 "2007-09-25T22:41:39Z")

</div>

I had trouble with this problem when it appeared on Code Golf. It seemed easy enough but I just couldn’t come up with a solid strategy. Luckily, the people who solved this week’s quiz are much smarter than me and I…

---

## [Word Blender (#108)](https://www.ruby-forum.com/t/word-blender-108/81283)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 56\
**Last updated:** [September 25, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/word-blender-108/81283 "2007-09-25T22:41:29Z")

</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: …

---

## [Qtruby and Qwt](https://www.ruby-forum.com/t/qtruby-and-qwt/82264)

<div class="topic-metadata">

**Author:** [@Fredrik\_J](https://www.ruby-forum.com/u/Fredrik_J)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/qtruby-and-qwt/82264 "2007-09-25T22:41:20Z")

</div>

I am trying to set up a “live” plotting in my Qtruby application (see my earlier post), and it seems that the Qwt library might be what I am looking for. As I understand it, Qtruby supports Qwt, but I can’t find much …

---

## [How does Array.map work for 2D arrays?](https://www.ruby-forum.com/t/how-does-array-map-work-for-2d-arrays/81798)

<div class="topic-metadata">

**Author:** [@pearl8](https://www.ruby-forum.com/u/pearl8)\
**Replies:** 6\
**Last updated:** [September 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/how-does-array-map-work-for-2d-arrays/81798 "2007-09-25T22:40:59Z")

</div>

I was reading this example: pt = \[ \[ “Check”, “check” \], \[ “Credit card”, “cc” \], \[ “Purchase order”, “po” \] \] pt.map {|value| value} Displays the 2D Array elements as expected =\> \[\[“Check”, “check”\], \[“Credit card…

---

## [Building Ruby with dmalloc](https://www.ruby-forum.com/t/building-ruby-with-dmalloc/81625)

<div class="topic-metadata">

**Author:** [@Young\_H](https://www.ruby-forum.com/u/Young_H)\
**Replies:** 7\
**Last updated:** [September 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/building-ruby-with-dmalloc/81625 "2007-09-25T22:40:48Z")

</div>

Has anyone managed to build Ruby with dmalloc support? I’m having numerous problems trying to do so on MacOS X 10.4.8 and FreeBSD 6.1. I’m trying to hunt down a memory leak in Ruby, probably in the Mutex code. Also,…

---

## [Hoe 1.1.7 Released](https://www.ruby-forum.com/t/hoe-1-1-7-released/81642)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/hoe-1-1-7-released/81642 "2007-09-25T22:40:38Z")

</div>

hoe version 1.1.7 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [Undefined method \`refresh' after rubygem 0.9.1 upgrade](https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542 "2007-09-25T22:40:37Z")

</div>

I upgraded RubyGems to 0.9.1 using Eric’s instructions here: http://blog.segment7.net/articles/2007/01/18/rubygems-0-9-1 basically: gem update gem pristine --all but now I get this error: gem update sexp Updating…

---

## [Why doesn't Ruby allow for overloaded methods within a class](https://www.ruby-forum.com/t/why-doesnt-ruby-allow-for-overloaded-methods-within-a-class/81737)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 11\
**Last updated:** [September 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/why-doesnt-ruby-allow-for-overloaded-methods-within-a-class/81737 "2007-09-25T22:40:24Z")

</div>

(from a Java refugee) All, I’ve done quite a bit of googling and read a bunch of posts about this, but I’m looking for a simple explanation of why Ruby doesn’t support method overloading within a class to allow metho…

---

## [Unpack 4 bytes to a signed integer](https://www.ruby-forum.com/t/unpack-4-bytes-to-a-signed-integer/82537)

<div class="topic-metadata">

**Author:** [@w\_wg](https://www.ruby-forum.com/u/w_wg)\
**Replies:** 7\
**Last updated:** [September 25, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/unpack-4-bytes-to-a-signed-integer/82537 "2007-09-25T22:39:52Z")

</div>

Hi I’ m using unpack to convert 4 bytes to local integer, but ruby just supply the “N” modifer which means unsigned long integer. My questions is : How to unpack 4 bytes to a signed integer ? Thank you.

---

## [Higher-Order Procedures Tutorial (long)](https://www.ruby-forum.com/t/higher-order-procedures-tutorial-long/80516)

<div class="topic-metadata">

**Author:** [@jashmenn](https://www.ruby-forum.com/u/jashmenn)\
**Replies:** 18\
**Last updated:** [September 25, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/higher-order-procedures-tutorial-long/80516 "2007-09-25T22:39:23Z")

</div>

Hey Guys, I’ve been going through the video lectures "Structure and Interpretation of Computer Programs by Hal Abelson and Gerald Jay Sussman. " ( Project MAC Home Page ). The section on Higher-Order Procedures was …

---

## [Help me..Urgent](https://www.ruby-forum.com/t/help-me-urgent/82072)

<div class="topic-metadata">

**Author:** [@Anjum\_P](https://www.ruby-forum.com/u/Anjum_P)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/help-me-urgent/82072 "2007-09-25T22:39:17Z")

</div>

Hi all… PLZ help me I am new to both ruby and rails. I was trying to install rails on My FC5 machine but it didn’t succeed… I have successfully installed latest version of Ruby on my machine, and Gems too… When I …

---

## [RDoc Improvement Request](https://www.ruby-forum.com/t/rdoc-improvement-request/82560)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/rdoc-improvement-request/82560 "2007-09-25T22:39:15Z")

</div>

In searching through the online docs, I noticed that attributes are not listed in the Methods section to browse for them. Since an attribute is nothing more than setter/getter methods, I was expecting to find them in …

---

## [Test/ruby/test\_process.rb](https://www.ruby-forum.com/t/test-ruby-test-process-rb/81281)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/test-ruby-test-process-rb/81281 "2007-09-25T22:39:04Z")

</div>

e$B@\>;3OB9-$G$9!#e(B tk runnere$B$r;H$&$H%(%i!\<$G=\*N;$7$F$7$^$&$J$I$NLdBj$,$"$k$h$&$J$N$G!"e(B test/ruby/test\_process.rbe$B$G$Oe(Bexite$B$G$O$J$/e(Bexit!e$B$r;H$C$?J}$,e(B e$BNI$$$N$G$O$J$$$G$7$g$&$+e(B? % ruby-1.8.…

---

## [Rails 1.2: REST admiration, HTTP lovefest, and UTF-8 celebra](https://www.ruby-forum.com/t/rails-1-2-rest-admiration-http-lovefest-and-utf-8-celebra/102655)

<div class="topic-metadata">

**Author:** [@DHH](https://www.ruby-forum.com/u/DHH)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/rails-1-2-rest-admiration-http-lovefest-and-utf-8-celebra/102655 "2007-09-25T22:38:48Z")

</div>

Get out your party balloons and funny hats because we’re there, baby. Yes, sire, Rails 1.2 is finally available in all it’s glory. It took a little longer than we initially anticipated to get everything lined up (and …

---

## [ODBC, MS SQL Server](https://www.ruby-forum.com/t/odbc-ms-sql-server/81204)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/odbc-ms-sql-server/81204 "2007-09-25T22:37:54Z")

</div>

Hello I try to connect ruby to a MS SQL database . This the error message. b.michelin@srv-mq-lamp2:~$ irb1.8 irb(main):001:0\> require “dbi” =\> true irb(main):002:0\> dbh = DBI.connect(‘dbi:ODBC:DataBase’, ‘user’, ‘p…

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

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