# Ruby

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

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

---

## [Rails: has\_many issue](https://www.ruby-forum.com/t/rails-has-many-issue/53455)

<div class="topic-metadata">

**Author:** [@treefrog](https://www.ruby-forum.com/u/treefrog)\
**Replies:** 1\
**Last updated:** [February 6, 2006, 8:43pm UTC](https://www.ruby-forum.com/t/rails-has-many-issue/53455 "2006-02-06T20:43:38Z")

</div>

Hi, I’m trying to work out how to tackle a particular problem in rails. I have some data. A lot of data (well not NSA style a lot of data, but a lot for me: 1Gb at the moment, more to come). I’m building a ruby appli…

---

## [Adding properties to a method?](https://www.ruby-forum.com/t/adding-properties-to-a-method/53443)

<div class="topic-metadata">

**Author:** [@jonT](https://www.ruby-forum.com/u/jonT)\
**Replies:** 5\
**Last updated:** [February 6, 2006, 8:34pm UTC](https://www.ruby-forum.com/t/adding-properties-to-a-method/53443 "2006-02-06T20:34:34Z")

</div>

Hi, I’d like to be able to do the following: class Method; attr\_accessor :foo; end def bar; “some\_res”; end method(:bar).foo=1 method(:bar).foo #= 1 Of coures what i’d actually get is: method(:bar).foo #= nil bec…

---

## [Merging regular expressions](https://www.ruby-forum.com/t/merging-regular-expressions/101543)

<div class="topic-metadata">

**Author:** [@bishopneo](https://www.ruby-forum.com/u/bishopneo)\
**Replies:** 10\
**Last updated:** [February 6, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/merging-regular-expressions/101543 "2006-02-06T20:28:26Z")

</div>

Hello all, I’ve got a tricky puzzle. Imagine I have a bunch of n RegExps r\[\] - they could be any valid ruby Regexps. Say I want to match each of them in turn to a certain something s to make sure that no two Regexps…

---

## [Torn in two - Pythonist](https://www.ruby-forum.com/t/torn-in-two-pythonist/101531)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 8\
**Last updated:** [February 6, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/torn-in-two-pythonist/101531 "2006-02-06T19:26:08Z")

</div>

You probably get this question all the time or some version of it. I’ve been hovering in this mailing list for a time just to get a feel for the community. I must say I’m pretty impressed. Its friendly, very active a…

---

## [Nitro + Og 0.28.0: Cacheable, Ruby Query Language, Mongrel,](https://www.ruby-forum.com/t/nitro-og-0-28-0-cacheable-ruby-query-language-mongrel/101623)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 0\
**Last updated:** [February 6, 2006, 7:19pm UTC](https://www.ruby-forum.com/t/nitro-og-0-28-0-cacheable-ruby-query-language-mongrel/101623 "2006-02-06T19:19:52Z")

</div>

Dear devs, new versions of Nitro and Og where just released homepage: http://www.nitrohq.com install: gem install nitro download: http://rubyforge.org/projects/nitro/ irc: irc.freenode.net #nitro mailing list: http…

---

## [Webrick, ldap segfault on Linux](https://www.ruby-forum.com/t/webrick-ldap-segfault-on-linux/101616)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 6, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/webrick-ldap-segfault-on-linux/101616 "2006-02-06T19:10:42Z")

</div>

Hi all, Although this is happening in a Rails app, this is mainly a Ruby issue. I hit this issue on Solaris 10 with 1.8.2 but it went away with 1.8.4. However, when I moved the app over to a Linux box (kernel 2.6.8), …

---

## [Grammars (mini-scripting languages)](https://www.ruby-forum.com/t/grammars-mini-scripting-languages/100165)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 5\
**Last updated:** [February 6, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/grammars-mini-scripting-languages/100165 "2006-02-06T18:28:09Z")

</div>

I’m working on implementing mini-scripting languages for two different projects, so I’m building a framework that could handle the task generically. Does this seem like a good way to approach it? 1. Store each comman…

---

## [Is the SQLite3 gem known to have memory corruption?](https://www.ruby-forum.com/t/is-the-sqlite3-gem-known-to-have-memory-corruption/53442)

<div class="topic-metadata">

**Author:** [@Timothy\_JSWood](https://www.ruby-forum.com/u/Timothy_JSWood)\
**Replies:** 3\
**Last updated:** [February 6, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/is-the-sqlite3-gem-known-to-have-memory-corruption/53442 "2006-02-06T18:24:58Z")

</div>

Running the following produces bizarre results (trimmed down from an actual app): #!/opt/local/bin/ruby require ‘rubygems’ require\_gem ‘sqlite3-ruby’ def each\_batch(size=1) until false batch = \[\] (1…20).each {|i…

---

## [Compile problems with 1.8.4 on HP](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 4\
**Last updated:** [February 6, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/compile-problems-with-1-8-4-on-hp/53395 "2006-02-06T17:59:19Z")

</div>

Hi Ruby 1.8.4 doesn’t want to build on my HP machine. I get the following error: cc -s -DRUBY\_EXPORT -DYYMAXDEPTH=300 -I. -I. -c eval.c (Bundled) cc: “eval.c”, line 1657: error 1000: Unexpected symbol: “VALUE”. (…

---

## [Mongrel HTTP Library 0.2.2 (Serving Directories)](https://www.ruby-forum.com/t/mongrel-http-library-0-2-2-serving-directories/102825)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 8\
**Last updated:** [February 6, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/mongrel-http-library-0-2-2-serving-directories/102825 "2006-02-06T16:33:14Z")

</div>

Hey Folks, Another announcement of Mongrel – the fastest little web server library for Ruby yet. This release is nice in that it should build on win32 better and it now sports a small DirHandler that can serve direc…

---

## [Help with "rubyizing" script](https://www.ruby-forum.com/t/help-with-rubyizing-script/53438)

<div class="topic-metadata">

**Author:** [@Sebastian\_Steinlech](https://www.ruby-forum.com/u/Sebastian_Steinlech)\
**Replies:** 1\
**Last updated:** [February 6, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/help-with-rubyizing-script/53438 "2006-02-06T16:23:58Z")

</div>

Hi list, I haven’t gotten around to do some serious programming with Ruby, but today I decided to hack up a quick script to help me with calculating Miller’s indices (if you don’t know what that is, doesn’t matter…). …

---

## [\#65: Splitting the Loot](https://www.ruby-forum.com/t/65-splitting-the-loot/53439)

<div class="topic-metadata">

**Author:** [@hagus](https://www.ruby-forum.com/u/hagus)\
**Replies:** 9\
**Last updated:** [February 6, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/65-splitting-the-loot/53439 "2006-02-06T16:17:50Z")

</div>

My submission is attached. The key insight: if you start with the largest values you can divide the loot one gang member at a time without fear of getting wrongly stuck. For an example of being wrongly stuck, consid…

---

## [Editor on Mac OS X](https://www.ruby-forum.com/t/editor-on-mac-os-x/53404)

<div class="topic-metadata">

**Author:** [@dkam](https://www.ruby-forum.com/u/dkam)\
**Replies:** 18\
**Last updated:** [February 6, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/editor-on-mac-os-x/53404 "2006-02-06T15:04:58Z")

</div>

Hello, I am evaluating a number of editors for my company for Rails and utility development. I am looking at TextMate SubEthaEdit Komodo I would appreciate any recommendations. Thanks, Dan

---

## [Rgl and vertices on path](https://www.ruby-forum.com/t/rgl-and-vertices-on-path/100068)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 6, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/rgl-and-vertices-on-path/100068 "2006-02-06T14:55:51Z")

</div>

How can get list of vertices from start node to end node in rgl? For example: require ‘rgl/adjacency’ dg=RGL::DirectedAdjacencyGraph\[1,2 ,2,3 ,2,4, 4,5, 6,4, 1,6\] How to do following? get\_path(1,5) should give \[1,2,…

---

## [Adding user input to a hash](https://www.ruby-forum.com/t/adding-user-input-to-a-hash/101530)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [February 6, 2006, 12:33pm UTC](https://www.ruby-forum.com/t/adding-user-input-to-a-hash/101530 "2006-02-06T12:33:23Z")

</div>

Chaps, Say you’ve got an hash that you are using to capturing user input… nearly there:- #!/usr/bin/ruby -w def testwrite ask\_list = { ‘Your name’ =\> ‘Nil’, ‘Your dob’ =\> ‘Nil’, } ask\_list.each\_key { |z| puts "…

---

## [Ann: FarPy GUIE v0.4.2](https://www.ruby-forum.com/t/ann-farpy-guie-v0-4-2/101485)

<div class="topic-metadata">

**Author:** [@David\_Berlin](https://www.ruby-forum.com/u/David_Berlin)\
**Replies:** 0\
**Last updated:** [February 6, 2006, 8:34am UTC](https://www.ruby-forum.com/t/ann-farpy-guie-v0-4-2/101485 "2006-02-06T08:34:41Z")

</div>

About GUIE (GUI Editor) provides a simple WYSIWYG GUI editor for wxWidgets. The program was made in C# and saves the GUI that was created to a XML format I called GUIML. This GUIML is a pretty standard representation …

---

## [I need some help with browser output in ruby cgi - cgi.rb](https://www.ruby-forum.com/t/i-need-some-help-with-browser-output-in-ruby-cgi-cgi-rb/101484)

<div class="topic-metadata">

**Author:** [@Professor\_Chen](https://www.ruby-forum.com/u/Professor_Chen)\
**Replies:** 0\
**Last updated:** [February 6, 2006, 8:13am UTC](https://www.ruby-forum.com/t/i-need-some-help-with-browser-output-in-ruby-cgi-cgi-rb/101484 "2006-02-06T08:13:33Z")

</div>

Whenever I try to send out some output in CGI my scripts generates an error 500 with Error message: malformed header from script. Bad header=.: dblist.cgi I am not really sure how to output text with the cgi.pre, CGI:…

---

## [Problem with weak references on OS X 10.3](https://www.ruby-forum.com/t/problem-with-weak-references-on-os-x-10-3/53419)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 9\
**Last updated:** [February 6, 2006, 6:29am UTC](https://www.ruby-forum.com/t/problem-with-weak-references-on-os-x-10-3/53419 "2006-02-06T06:29:13Z")

</div>

I am having problems with weak references. The program below exhibits the problem: 100\_000.times{|n| o=Object.new; i=o.id; o2=ObjectSpace.\_id2ref(i); o.equal? o2 or raise “o=#{o}, i=#{”%x"%i}, o2=#{o2.inspect}, n=#…

---

## [Cookbook2 tutorial error: The error occured while evaluatin](https://www.ruby-forum.com/t/cookbook2-tutorial-error-the-error-occured-while-evaluatin/101300)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 6, 2006, 5:43am UTC](https://www.ruby-forum.com/t/cookbook2-tutorial-error-the-error-occured-while-evaluatin/101300 "2006-02-06T05:43:39Z")

</div>

I am following the Cookbook2 tutorial on the InstantRails website ( http://instantrails.rubyforge.org/tutorial/index.html ). I am almost finshed with the tutorial but have started getting the following error: NoMetho…

---

## [Need help with soap timeout issue](https://www.ruby-forum.com/t/need-help-with-soap-timeout-issue/102799)

<div class="topic-metadata">

**Author:** [@Werner\_Bohl](https://www.ruby-forum.com/u/Werner_Bohl)\
**Replies:** 1\
**Last updated:** [February 6, 2006, 5:13am UTC](https://www.ruby-forum.com/t/need-help-with-soap-timeout-issue/102799 "2006-02-06T05:13:09Z")

</div>

Hi Have a Rails 1.0 based Web Service. This service exports many method. All run fine except for a methos that takes 60-300 secs to complete. This long running method errs when invoked from client, but it passes func…

---

## [Weird bug in SQLite3](https://www.ruby-forum.com/t/weird-bug-in-sqlite3/101425)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 1\
**Last updated:** [February 6, 2006, 4:36am UTC](https://www.ruby-forum.com/t/weird-bug-in-sqlite3/101425 "2006-02-06T04:36:55Z")

</div>

I was trying to do some remote bugsquashing by SSHing on a Windows computer running the Cygwin sshd. It’s a clean Cygwin ruby setup, with the minimum required for Rails, and the SQLite3 Driver compiled with gcc 3.4.4 …

---

## [Question on soap](https://www.ruby-forum.com/t/question-on-soap/52896)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 1\
**Last updated:** [February 6, 2006, 1:51am UTC](https://www.ruby-forum.com/t/question-on-soap/52896 "2006-02-06T01:51:13Z")

</div>

Hi, I’m using SOAP::RPC::Driver in order to write a soap client. They webservice method that I’m using has a complex type as an input parameter. When I invoke the webservice method (a login method) I get an error re…

---

## [How to vary sort's block?](https://www.ruby-forum.com/t/how-to-vary-sorts-block/53413)

<div class="topic-metadata">

**Author:** [@wybodekker](https://www.ruby-forum.com/u/wybodekker)\
**Replies:** 7\
**Last updated:** [February 6, 2006, 1:51am UTC](https://www.ruby-forum.com/t/how-to-vary-sorts-block/53413 "2006-02-06T01:51:13Z")

</div>

When I have an array of objects (Thing’s, say) with two properties (say name' andamount’) I want to be able to sort that array by either of these properties, depending on circumstances (like the value of the variable …

---

## [Quiz #65, Principle of Great Surprise, and Array.delete sled](https://www.ruby-forum.com/t/quiz-65-principle-of-great-surprise-and-array-delete-sled/101117)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 24\
**Last updated:** [February 6, 2006, 1:12am UTC](https://www.ruby-forum.com/t/quiz-65-principle-of-great-surprise-and-array-delete-sled/101117 "2006-02-06T01:12:04Z")

</div>

I thought I was actually going to enter my first RubyQuiz, but I’ve spent three times as much time trying to get Ruby to stop surprising me as I have trying to implement my algorithm, and I’ve had to abandon my effort…

---

## [One click installer + gems](https://www.ruby-forum.com/t/one-click-installer-gems/53420)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 6, 2006, 1:09am UTC](https://www.ruby-forum.com/t/one-click-installer-gems/53420 "2006-02-06T01:09:03Z")

</div>

Hi! It was expected, that as of 1.8.4, ruby networking works on windows. However using the latest installer, when I tried to install a gem (actually rails), the gem process failed. So is there anybody having the sam…

---

## [Ruby Cryptography Extension (RCE)](https://www.ruby-forum.com/t/ruby-cryptography-extension-rce/100840)

<div class="topic-metadata">

**Author:** [@hgranqvist](https://www.ruby-forum.com/u/hgranqvist)\
**Replies:** 2\
**Last updated:** [February 6, 2006, 12:13am UTC](https://www.ruby-forum.com/t/ruby-cryptography-extension-rce/100840 "2006-02-06T00:13:12Z")

</div>

I want to write a pure Ruby implementation of W3C’s XML encryption/signature specifications, but while spec:ing it out, it struck me there is no general-use crypto foundation available in Ruby. It also seems all of t…

---

## [I Broke Ruby (i.e. Missing the Brutally Obvious)](https://www.ruby-forum.com/t/i-broke-ruby-i-e-missing-the-brutally-obvious/53412)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 2\
**Last updated:** [February 5, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/i-broke-ruby-i-e-missing-the-brutally-obvious/53412 "2006-02-05T23:59:25Z")

</div>

It’s been yet another late Friday. It’s practically a lifestyle by this point. (I’m glad my wife understands.) So anyway, things were going fine until I tried to get two ruby files to require each other. Suddenly th…

---

## [What is YARV?](https://www.ruby-forum.com/t/what-is-yarv/101120)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 2\
**Last updated:** [February 5, 2006, 11:56pm UTC](https://www.ruby-forum.com/t/what-is-yarv/101120 "2006-02-05T23:56:39Z")

</div>

I see it’s a VM for Ruby, but what does that mean and what is it good for?

---

## [FXRuby question](https://www.ruby-forum.com/t/fxruby-question/101390)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 5, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/fxruby-question/101390 "2006-02-05T23:35:32Z")

</div>

Dear all, I would like to use FXRuby to program a GUI application, which when loaded, shows a png image for some time (similar to if you open,say, OpenOffice, you get some picture in the middle of the screen for som…

---

## [DevLists :: Mailing lists made easy](https://www.ruby-forum.com/t/devlists-mailing-lists-made-easy/101342)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/devlists-mailing-lists-made-easy/101342 "2006-02-05T20:03:59Z")

</div>

I posted this message on the Rails list a few weeks ago, and now that the initial bugs have been ironed out, I thought this would be a good time to invite you kind folks to visit my new site - I hope you find it as he…

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

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