# Ruby

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

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

---

## [Webrick override HTTPResponse::setup\_header](https://www.ruby-forum.com/t/webrick-override-httpresponse-setup-header/135146)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 23, 2008, 3:05am UTC](https://www.ruby-forum.com/t/webrick-override-httpresponse-setup-header/135146 "2008-04-23T03:05:57Z")

</div>

Hi, all. My subj solution: class MyServlet \< HTTPServlet::AbstractServlet def do\_GET(req, res) class \<\<res def setup\_header() … my code … end end … end … end I think my solution is’t good and is’t true ruby …

---

## [Rake: race condition between task prerequisites](https://www.ruby-forum.com/t/rake-race-condition-between-task-prerequisites/135466)

<div class="topic-metadata">

**Author:** [@tobie](https://www.ruby-forum.com/u/tobie)\
**Replies:** 4\
**Last updated:** [April 23, 2008, 2:35am UTC](https://www.ruby-forum.com/t/rake-race-condition-between-task-prerequisites/135466 "2008-04-23T02:35:34Z")

</div>

Hi, I’m having a strange race condition between task prerequisites in the following rakefile: At line #49, the :test rake tasks has the following prerequisites: :build\_tests, :dist and :test\_units. :build\_tests is…

---

## [Follow the conversation and search relevant sites with What's up in Ruby](https://www.ruby-forum.com/t/follow-the-conversation-and-search-relevant-sites-with-whats-up-in-ruby/135552)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 2:11am UTC](https://www.ruby-forum.com/t/follow-the-conversation-and-search-relevant-sites-with-whats-up-in-ruby/135552 "2008-04-23T02:11:36Z")

</div>

Hey all, We (Atlantic Dominion Solutions) launched http://www.whatsupinruby.com this morning. This is a niche site that does two things: Tells you what is going on in the Ruby world (we parse many many RSS feeds). P…

---

## [IronRuby patch # 19175 - compiling under Mono](https://www.ruby-forum.com/t/ironruby-patch-19175-compiling-under-mono/135545)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 1:11am UTC](https://www.ruby-forum.com/t/ironruby-patch-19175-compiling-under-mono/135545 "2008-04-23T01:11:19Z")

</div>

Has this been fixed in Mono? I’m reluctant to make changes in our sources regarding this issue unless there is no workaround in Mono. Thanks, -John

---

## [Why doesn't ruby have generics?](https://www.ruby-forum.com/t/why-doesnt-ruby-have-generics/135224)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 17\
**Last updated:** [April 23, 2008, 1:10am UTC](https://www.ruby-forum.com/t/why-doesnt-ruby-have-generics/135224 "2008-04-23T01:10:43Z")

</div>

Is it because Ruby is dynamic, or something else? -Thufir

---

## [Wxruby with wxglade?](https://www.ruby-forum.com/t/wxruby-with-wxglade/135523)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/wxruby-with-wxglade/135523 "2008-04-22T23:16:08Z")

</div>

Hi I’ve been trying to do some search on using wxruby with wxglade but haven’t been able to find anything so far… is it possible?

---

## [Gem malfunction](https://www.ruby-forum.com/t/gem-malfunction/135470)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 10:33pm UTC](https://www.ruby-forum.com/t/gem-malfunction/135470 "2008-04-22T22:33:32Z")

</div>

Sometimes, when I use ‘gem’ to install a package, say ‘sudo gem install dbi’, gem uses up all my memory and CPU, and, if I can’t manage to arrive at a terminal and do ‘sudo killall -9 ruby’, I’m left with no choice bu…

---

## [Problem in installing gems](https://www.ruby-forum.com/t/problem-in-installing-gems/135332)

<div class="topic-metadata">

**Author:** [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Replies:** 10\
**Last updated:** [April 22, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/problem-in-installing-gems/135332 "2008-04-22T22:31:46Z")

</div>

Hi friends I am trying to install the gems, but I am having the problem in installing them. the error is as follows: ERROR: While executing gem…(Gem::InstallError) invalid gem format for C:/ruby/lib/ruby/gems/1.8/c…

---

## [Treetop parser (or PEG in general?) questions](https://www.ruby-forum.com/t/treetop-parser-or-peg-in-general-questions/127305)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 18\
**Last updated:** [April 22, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/treetop-parser-or-peg-in-general-questions/127305 "2008-04-22T22:01:24Z")

</div>

I’ve been looking for something like treetop for a while now. Very excited to have found it, and to play with it. I’m rather new to PEGs, having only experienced them briefly in Lua. Following are some questions as I …

---

## [Where did the monsters go?](https://www.ruby-forum.com/t/where-did-the-monsters-go/135522)

<div class="topic-metadata">

**Author:** [@gastrogreen](https://www.ruby-forum.com/u/gastrogreen)\
**Replies:** 5\
**Last updated:** [April 22, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/where-did-the-monsters-go/135522 "2008-04-22T21:48:22Z")

</div>

Stuck again. My random monster-fight generator works, but it’s so BASIC. How can I do this without the if-statements? Is it a bad thing to stick class objects into an array? Also, I know Moblist\[0\].fight works, but wh…

---

## [Installing Rails, noobhelp needed!](https://www.ruby-forum.com/t/installing-rails-noobhelp-needed/135524)

<div class="topic-metadata">

**Author:** [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/installing-rails-noobhelp-needed/135524 "2008-04-22T21:28:12Z")

</div>

rails path/to/your/new/application cd path/to/your/new/application ruby script/server i dont get exactly what im supposed ti wrote there. 1.the location of rails on my harddrive C:\\ruby… 2.how do i write cd… cd… c…

---

## [Ruby and Contract Programming (was Ruby vs. Ada)](https://www.ruby-forum.com/t/ruby-and-contract-programming-was-ruby-vs-ada/135467)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/ruby-and-contract-programming-was-ruby-vs-ada/135467 "2008-04-22T21:11:45Z")

</div>

Hi list I have had some thoughts about Contract Programming and Ruby, this after the recent suggestion that Ruby might have to evolve into this direction. I am a complete ignorant of CP (also aka Programming by Contr…

---

## [\#wday and #cwday same thing?](https://www.ruby-forum.com/t/wday-and-cwday-same-thing/135521)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/wday-and-cwday-same-thing/135521 "2008-04-22T21:08:05Z")

</div>

The documentation for #wday says that the start-of-week is Sunday. #cwday says the start-of-week is Monday. However, in IRB, both methods return the same value. Today is Tuesday for me, and they’re both returning 2. I…

---

## [IronRuby concurrency](https://www.ruby-forum.com/t/ironruby-concurrency/135518)

<div class="topic-metadata">

**Author:** [@mental](https://www.ruby-forum.com/u/mental)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/ironruby-concurrency/135518 "2008-04-22T20:14:12Z")

</div>

So, I was wondering what the IronRuby concurrency story was like at this point… are there any articles or other public resources on this topic? Thanks, -mental

---

## [Sup 0.5 Released](https://www.ruby-forum.com/t/sup-0-5-released/135506)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/sup-0-5-released/135506 "2008-04-22T19:09:52Z")

</div>

Sup version 0.5 has been released! http://sup.rubyforge.org Sup is a console-based email client for people with a lot of email. It supports tagging, very fast full-text search, automatic contact- list management, an…

---

## [Looking for Hidden Gems](https://www.ruby-forum.com/t/looking-for-hidden-gems/134556)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 12\
**Last updated:** [April 22, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/looking-for-hidden-gems/134556 "2008-04-22T18:04:39Z")

</div>

I’m hunting for some gems that are under loved, off the beaten path, poorly documented, or just lesser known yet still wickedly useful. I think something like NArray or RBTree falls into this category. I would love t…

---

## [Catching runtime exceptions from callbacks](https://www.ruby-forum.com/t/catching-runtime-exceptions-from-callbacks/135495)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/catching-runtime-exceptions-from-callbacks/135495 "2008-04-22T18:01:41Z")

</div>

Hello, I am currently integrating Ruby (1.8.6) inside an application. Until now, I had no impossible problem although the API documentation is a bit poor. I use rb\_load\_protect to load a startup script file that cont…

---

## [Protocols and implicit conversions](https://www.ruby-forum.com/t/protocols-and-implicit-conversions/135473)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/protocols-and-implicit-conversions/135473 "2008-04-22T17:43:06Z")

</div>

I wanted to call out a fairly simple pattern that shows up in our libraries that folks largely haven’t caught onto in the patches that they’ve been submitting: Wayne recently submitted a patch for exist? and exists? w…

---

## [What is your favourite IDE?](https://www.ruby-forum.com/t/what-is-your-favourite-ide/91795)

<div class="topic-metadata">

**Author:** [@ChrisKaelin](https://www.ruby-forum.com/u/ChrisKaelin)\
**Replies:** 94\
**Last updated:** [April 22, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/what-is-your-favourite-ide/91795 "2008-04-22T16:39:41Z")

</div>

I prefer using eclipse for it’s freedom, ruby and svn plugins etc. But the big problem now is, debuggin does not work anymore after v. 3.2 and a solution seems to be quite some time away and rdb is a little unhandy fo…

---

## [Coerce with Rational and Complex](https://www.ruby-forum.com/t/coerce-with-rational-and-complex/135358)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/coerce-with-rational-and-complex/135358 "2008-04-22T16:31:49Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B e$B0J2\<$N5sF0$O0U?^E\*$G$7$g$&$+!#e(B p 1.coerce(Rational(1, 2)) #=\> \[0.5, 1.0\] e$BD\>46E\*$K$Oe(B \[Rational(1, 2), Rational(1, 1)\] e$B$,M\_$7$$$G$9!#e(B e$B$^$?!"0J2\<$O$I$&$G$7$g$&$+!#e(B p 1.co…

---

## [Rools gem for rule engine?](https://www.ruby-forum.com/t/rools-gem-for-rule-engine/135459)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/rools-gem-for-rule-engine/135459 "2008-04-22T15:43:33Z")

</div>

Hi All, Any one worked on Rools rule engine.If yes pls tell me some idea that how to use this and how can i make most of it. Need your help… Thanks, Varun

---

## [CSV nesting](https://www.ruby-forum.com/t/csv-nesting/135366)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/csv-nesting/135366 "2008-04-22T15:05:16Z")

</div>

I have a snippet of code that looks like this: next if row.nil? for i in 0...row.length next if row\[i\].nil? f.puts " \<#{fields\[i\]}\>#{row\[i\]}\</#{fields\[i\]}\>" end this is part of a small script that parses a CSV doc…

---

## [SVN r94: Getting Ruby String to Rails spec pass rate of 89%](https://www.ruby-forum.com/t/svn-r94-getting-ruby-string-to-rails-spec-pass-rate-of-89/135468)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/svn-r94-getting-ruby-string-to-rails-spec-pass-rate-of-89/135468 "2008-04-22T14:44:43Z")

</div>

Summary: Changes in String to get us closer to running Rails. We are now passing Rails specs at a 375/421 (89%) rate. String specs overall are passing at a 572/744 (76%) rate. Most of the specs that are failing are re…

---

## [Sybase ruby almost working](https://www.ruby-forum.com/t/sybase-ruby-almost-working/129936)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/sybase-ruby-almost-working/129936 "2008-04-22T14:22:56Z")

</div>

Hello Everyone, I am trying out sybase and ruby. I installed freetds-0.64. I am able to connect to the sybase server in port 4101 using tsql. I am then downloaded sybct-ruby-0.2.9 and commented out the freetds lines. …

---

## [Check\_insecure\_method in trunk/lib/drb/drb.rb](https://www.ruby-forum.com/t/check-insecure-method-in-trunk-lib-drb-drb-rb/135462)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/check-insecure-method-in-trunk-lib-drb-drb-rb/135462 "2008-04-22T13:22:37Z")

</div>

e$B@\>;3OB9-$G$9!#e(B 1.9e$B$Ne(Blib/drb/drb.rbe$B$Ne(Bcheck\_insecure\_methode$B$Oe(B obj.private\_methods.include?(msg\_id.to\_s)e$B$N$h$&$Ke(B e$B$J$C$F$$$F!"e(Bprivate\_methodse$B$J$I$,e(BSymbole$B$NG\[Ns$re(B e$BJV$9$N$…

---

## [How to write data to Excel file format in Ruby on linux platform](https://www.ruby-forum.com/t/how-to-write-data-to-excel-file-format-in-ruby-on-linux-platform/135458)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/how-to-write-data-to-excel-file-format-in-ruby-on-linux-platform/135458 "2008-04-22T12:18:37Z")

</div>

Hi All, I want to create a excel sheet and write a data to it in Ruby langauge on a lunux platform. My current ruby script reads some information from YAML format and want to create one excel file as a result file on …

---

## [Deleting of files older than a stipulated date](https://www.ruby-forum.com/t/deleting-of-files-older-than-a-stipulated-date/135012)

<div class="topic-metadata">

**Author:** [@owc](https://www.ruby-forum.com/u/owc)\
**Replies:** 7\
**Last updated:** [April 22, 2008, 11:47am UTC](https://www.ruby-forum.com/t/deleting-of-files-older-than-a-stipulated-date/135012 "2008-04-22T11:47:43Z")

</div>

Pardon for my multiple posts in this forum as Im rushing a project but still quite new in ruby… Anyway, I would like to select files to delete based on their datestamped folders. For example, I would like to delete f…

---

## [How to use regexp assertion](https://www.ruby-forum.com/t/how-to-use-regexp-assertion/135448)

<div class="topic-metadata">

**Author:** [@smellcode](https://www.ruby-forum.com/u/smellcode)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 11:40am UTC](https://www.ruby-forum.com/t/how-to-use-regexp-assertion/135448 "2008-04-22T11:40:01Z")

</div>

how to use regexp assertion like this in perl /some\_pattern(?=exp)/

---

## [Module\_function](https://www.ruby-forum.com/t/module-function/135415)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 9:39am UTC](https://www.ruby-forum.com/t/module-function/135415 "2008-04-22T09:39:05Z")

</div>

Is anyone currently working on or have any ideas regarding the implementation of Module::module\_function? (this is where I’m currently stuck in trying to execute setup.rb for gems) module\_function is meant to take a …

---

## [Gem setup.rb](https://www.ruby-forum.com/t/gem-setup-rb/135445)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 9:22am UTC](https://www.ruby-forum.com/t/gem-setup-rb/135445 "2008-04-22T09:22:32Z")

</div>

Still working towards executing setup.rb for gems … After sidestepping the lack of a module\_function implementation and implementing a few dummy modules such as etc.so … Undefined method ‘extend’ (missing from Kerne…

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

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