# Ruby

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

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

---

## [Searching Active Directory](https://www.ruby-forum.com/t/searching-active-directory/87799)

<div class="topic-metadata">

**Author:** [@Robert\_Boone](https://www.ruby-forum.com/u/Robert_Boone)\
**Replies:** 1\
**Last updated:** [March 28, 2006, 9:59am UTC](https://www.ruby-forum.com/t/searching-active-directory/87799 "2006-03-28T09:59:36Z")

</div>

Hello, I have been trying to research this myself but I haven’t come up with much. I’m mostly a linux guy so I don’t know much about the inner workings of AD. This is what I’m trying to do, I need to search through e…

---

## [Deciphering poignant guide chapter 4 example](https://www.ruby-forum.com/t/deciphering-poignant-guide-chapter-4-example/87232)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 14\
**Last updated:** [March 28, 2006, 7:19am UTC](https://www.ruby-forum.com/t/deciphering-poignant-guide-chapter-4-example/87232 "2006-03-28T07:19:05Z")

</div>

Hi, I’m reading through the poignant guide, and am a bit stuck at the end of chapter 4 ( http://poignantguide.net/ruby/chapter-4.html ). It’s regarding the kitty\_toys example: #!/usr/bin/ruby kitty\_toys = \[:shape …

---

## [Timeout Error or sysread': end of file reached (EOFError)](https://www.ruby-forum.com/t/timeout-error-or-sysread-end-of-file-reached-eoferror/56105)

<div class="topic-metadata">

**Author:** [@Muazzam\_Mushtaq](https://www.ruby-forum.com/u/Muazzam_Mushtaq)\
**Replies:** 0\
**Last updated:** [March 28, 2006, 7:05am UTC](https://www.ruby-forum.com/t/timeout-error-or-sysread-end-of-file-reached-eoferror/56105 "2006-03-28T07:05:20Z")

</div>

I am trying to access the gmail account through net/pop library. I have set the open time out to 180 even but still whenever i try to execute the code it gives me the End of file reached (EOFError). And if keep the op…

---

## [Ruby and SQL Queries](https://www.ruby-forum.com/t/ruby-and-sql-queries/56080)

<div class="topic-metadata">

**Author:** [@crackotter](https://www.ruby-forum.com/u/crackotter)\
**Replies:** 2\
**Last updated:** [March 28, 2006, 5:33am UTC](https://www.ruby-forum.com/t/ruby-and-sql-queries/56080 "2006-03-28T05:33:49Z")

</div>

Hi all, I am new to Ruby ( and to Miscrosft SQL). I want to be able to do very basic queries from ruby to a external MS SQL databse. I have searched through the web and it seems you have to jump through hoops to get r…

---

## [IRB Core file?](https://www.ruby-forum.com/t/irb-core-file/87984)

<div class="topic-metadata">

**Author:** [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Replies:** 1\
**Last updated:** [March 28, 2006, 3:49am UTC](https://www.ruby-forum.com/t/irb-core-file/87984 "2006-03-28T03:49:49Z")

</div>

I have screwed up my cygwin env enough on my windows machine so that irb will consistently crash with no visible errors or messages. Does anyone knows where I can look to get info about the crash ie core file locatio…

---

## [Would this be possible?](https://www.ruby-forum.com/t/would-this-be-possible/56087)

<div class="topic-metadata">

**Author:** [@craigb](https://www.ruby-forum.com/u/craigb)\
**Replies:** 3\
**Last updated:** [March 28, 2006, 2:46am UTC](https://www.ruby-forum.com/t/would-this-be-possible/56087 "2006-03-28T02:46:48Z")

</div>

Would this work to find the mean average and the number of elements greater than the average? Calculating Avg and # of elements greater than Avg. in Ruby sum = 0.0 n = 0 count = 0 while figure = STDIN.gets.to\_f sum…

---

## [Oracle Stored Procedures - Out Vars](https://www.ruby-forum.com/t/oracle-stored-procedures-out-vars/55967)

<div class="topic-metadata">

**Author:** [@Vance\_H](https://www.ruby-forum.com/u/Vance_H)\
**Replies:** 1\
**Last updated:** [March 28, 2006, 1:52am UTC](https://www.ruby-forum.com/t/oracle-stored-procedures-out-vars/55967 "2006-03-28T01:52:56Z")

</div>

Can anyone help me with the syntax for retriving an ‘out’ variable from an Oracle Stored Procedure? I’m able to succesfully call several stored procedures, and can pass values in - both by putting the argument into t…

---

## [Using Rdoc when auto-creating methods](https://www.ruby-forum.com/t/using-rdoc-when-auto-creating-methods/56084)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 1\
**Last updated:** [March 28, 2006, 1:41am UTC](https://www.ruby-forum.com/t/using-rdoc-when-auto-creating-methods/56084 "2006-03-28T01:41:35Z")

</div>

For the Watir library, we had a lot of repetitive wrapper methods with a lot of duplicated logic. So i refactored the code. I’ve attached a portion of the code below. This works fine, except for one thing. I can’t gen…

---

## [Ruby Social Club - 1st April Milan Meeting](https://www.ruby-forum.com/t/ruby-social-club-1st-april-milan-meeting/88069)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 0\
**Last updated:** [March 28, 2006, 1:26am UTC](https://www.ruby-forum.com/t/ruby-social-club-1st-april-milan-meeting/88069 "2006-03-28T01:26:34Z")

</div>

The Ruby Social Club is getting up to speed and spreading fast. After the first two meetings in Rome we are going to meet up in Milan on the evening of saturday the first of April. The avenue has not been defined yet…

---

## [Newbie: Equivalent to "this" keyword in Java?](https://www.ruby-forum.com/t/newbie-equivalent-to-this-keyword-in-java/88033)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 28, 2006, 1:19am UTC](https://www.ruby-forum.com/t/newbie-equivalent-to-this-keyword-in-java/88033 "2006-03-28T01:19:50Z")

</div>

If I am writing a method and I want to refer to the instance of the object itself, do I use “self”? Can I use “this”? Is “this” an alias for “self”? Wes

---

## [Rails vs. Ruby Evolution](https://www.ruby-forum.com/t/rails-vs-ruby-evolution/85110)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 38\
**Last updated:** [March 27, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/rails-vs-ruby-evolution/85110 "2006-03-27T23:35:06Z")

</div>

I was just reading through http://scottraymond.net/articles/ 2006/02/28/rails-1.1, which gives an overview of the next Rails release. I noticed a number of extensions to the core ruby classes: Object#to\_json Enumerabl…

---

## [Round floats to N decimal places?](https://www.ruby-forum.com/t/round-floats-to-n-decimal-places/85109)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 4\
**Last updated:** [March 27, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/round-floats-to-n-decimal-places/85109 "2006-03-27T23:09:37Z")

</div>

I’m doing some math that results in floats with ~10 decimal places, but I’d like to round them to 2 places. Is there a built in way of doing this? Right now I’m doing format("%0.2f", the\_float).to\_f, which seems to …

---

## ["Unflattening" arrays](https://www.ruby-forum.com/t/unflattening-arrays/87932)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/unflattening-arrays/87932 "2006-03-27T22:59:02Z")

</div>

Hi folks, Is there an easy way to get \[1,2,3,4,5,6,7,8\] into \[\[1,2\],\[3,4\],\[5,6\],\[7,9\]\] or \[\[1,2,3,4\],\[5,6,7,8\]\] depending on a parameter? Farrel

---

## [Ara's double\_x : generate xml?](https://www.ruby-forum.com/t/aras-double-x-generate-xml/56046)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/aras-double-x-generate-xml/56046 "2006-03-27T22:19:12Z")

</div>

Does this library support generating of xml (not xhtml)? what’s the top level call? I tried xml\_ { …} and it dies with irb(main):021:0\> doc = xml\_ { p\_ “a” } NoMethodError: undefined method create' for nil:NilClass f…

---

## [Rexml - how to get element name](https://www.ruby-forum.com/t/rexml-how-to-get-element-name/55998)

<div class="topic-metadata">

**Author:** [@gadgeteer](https://www.ruby-forum.com/u/gadgeteer)\
**Replies:** 5\
**Last updated:** [March 27, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/rexml-how-to-get-element-name/55998 "2006-03-27T22:18:40Z")

</div>

If I have an instance of REXML::Element, is there a convenient way to get it’s element name? I would have expected a get\_name method for Element or something like that, but according to the stdlib documentation at RDo…

---

## [Compiling Ruby Source on Win32](https://www.ruby-forum.com/t/compiling-ruby-source-on-win32/56069)

<div class="topic-metadata">

**Author:** [@peterk](https://www.ruby-forum.com/u/peterk)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 10:13pm UTC](https://www.ruby-forum.com/t/compiling-ruby-source-on-win32/56069 "2006-03-27T22:13:50Z")

</div>

I want to compile the ruby source so I can have a play with the source and try creating some extensions :slight\_smile: So far I have Eclipse IDE with CDT (C Development Tools) and SVN installed, as well as Mingw32 whi…

---

## [Can't require ActiveRecord gem](https://www.ruby-forum.com/t/cant-require-activerecord-gem/87839)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [March 27, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/cant-require-activerecord-gem/87839 "2006-03-27T22:07:42Z")

</div>

According to the manual, if I call ruby this way ruby -rubygems script\_that\_uses\_gem require\_gem is not needed, plain require is enough. This indeed is working as documented with WWW::Mechanize, but not with ActiveR…

---

## [Re: "Unflattening" arrays](https://www.ruby-forum.com/t/re-unflattening-arrays/87934)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 10:06pm UTC](https://www.ruby-forum.com/t/re-unflattening-arrays/87934 "2006-03-27T22:06:39Z")

</div>

\[\[1,2\],\[3,4\],\[5,6\],\[7,9\]\] or \[\[1,2,3,4\],\[5,6,7,8\]\] depending on a parameter? Farrel See Enumerable#partition Regards, Dan

---

## [Which UI toolkit](https://www.ruby-forum.com/t/which-ui-toolkit/87540)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 27, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/which-ui-toolkit/87540 "2006-03-27T21:39:28Z")

</div>

Hi. I’ll be building a small app which should look and feel native on Windows and Mac OS X and optionally run on Linux. I’m thinking Ruby/Tk and deployment via Erik V.s sweet ruby2exe work. I do not have any UI toolk…

---

## [Re: win32/taskscheduler : Segmentation fault error](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/87887)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 1\
**Last updated:** [March 27, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/87887 "2006-03-27T21:39:07Z")

</div>

To: ruby-talk ML I get the following error : Note that I have the same error under ruby 1.8.4 Hi David, I’m not sure what’s happening. I’ll try to take a look at it this week. Note that win32-taskscheduler is o…

---

## [\[ANN\] ruby-sendfile 0.9.2](https://www.ruby-forum.com/t/ann-ruby-sendfile-0-9-2/87929)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/ann-ruby-sendfile-0-9-2/87929 "2006-03-27T21:33:51Z")

</div>

Hi all, Just a quick release, fixing that lame typo that Zed thankfully pointed out this morning. I was travelling all day or I’d have done it sooner. Just the typo fix, no new functionality yet. Thanks for picking up…

---

## [Mongrel Web Server 0.3.12 -- Pre-Release](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-pre-release/87539)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 5\
**Last updated:** [March 27, 2006, 9:10pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-pre-release/87539 "2006-03-27T21:10:19Z")

</div>

Hello Everyone, Mongrel is due for a 0.3.12 release which will feature some pretty insane goodies for everyone. There’s talk of IOWA support, lots of speed improvements (including sendfile support), a great Configur…

---

## [Concatenation of regular expressions](https://www.ruby-forum.com/t/concatenation-of-regular-expressions/87885)

<div class="topic-metadata">

**Author:** [@geoff](https://www.ruby-forum.com/u/geoff)\
**Replies:** 6\
**Last updated:** [March 27, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/concatenation-of-regular-expressions/87885 "2006-03-27T20:39:01Z")

</div>

Is there a way to concatenate regular expressions in ruby? Something like Regexp.union but without the or between expressions. For example say i have the following regular expressions: Set = /\[\[\]\[1-9\]\[\\d\]\[\]\]/ Field …

---

## [Simple pattern matching](https://www.ruby-forum.com/t/simple-pattern-matching/56053)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 4\
**Last updated:** [March 27, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/simple-pattern-matching/56053 "2006-03-27T19:25:39Z")

</div>

Hi group. Sorry for newbie question. Given the line like node: { title: “15597629” label: “up\[0,18 p:-2270.125\]” } How can I parse the above string into “15597629” and “up\[0,18 p:-2270.125\]”? There are numbers in the…

---

## [Best Database For Ruby](https://www.ruby-forum.com/t/best-database-for-ruby/55955)

<div class="topic-metadata">

**Author:** [@Butternut\_squash](https://www.ruby-forum.com/u/Butternut_squash)\
**Replies:** 19\
**Last updated:** [March 27, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/best-database-for-ruby/55955 "2006-03-27T19:23:58Z")

</div>

I want to learn DB and SQL using Ruby Project is not too big. Probably need 30 tables Everyone at work tells me MySQL is the best… I used to use Informix a long time ago. It doesn’t look like I can get this for linux…

---

## [Areal noob question](https://www.ruby-forum.com/t/areal-noob-question/55981)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 15\
**Last updated:** [March 27, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/areal-noob-question/55981 "2006-03-27T19:16:13Z")

</div>

Can Ruby run without rails? Do I have to have Ruby gems or is there other ways of using packages/extensions? I read the parts of the manual that I thought would explain such but to me, the manual takes an “assumed k…

---

## [Connection issue with dRuby](https://www.ruby-forum.com/t/connection-issue-with-druby/55530)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 1\
**Last updated:** [March 27, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/connection-issue-with-druby/55530 "2006-03-27T19:00:51Z")

</div>

I wrote a simple server and client using dRuby. on client side, I executed about 200 simultaneous instances of client to see how my server does. I noticed on client side, I am getting DRb::DRbConnError while server i…

---

## [Scintilla text editor can't find Ruby file (another really b](https://www.ruby-forum.com/t/scintilla-text-editor-cant-find-ruby-file-another-really-b/56052)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 27, 2006, 6:54pm UTC](https://www.ruby-forum.com/t/scintilla-text-editor-cant-find-ruby-file-another-really-b/56052 "2006-03-27T18:54:05Z")

</div>

I have installed Ruby and saved a file “calc.rb” per this lesson, which is saved to the same folder as Ruby. However, when I finish entering the code, and press “F5” to run it, I get a message saying that “The system …

---

## [Accessing object from dRuby server](https://www.ruby-forum.com/t/accessing-object-from-druby-server/56051)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 1\
**Last updated:** [March 27, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/accessing-object-from-druby-server/56051 "2006-03-27T18:33:36Z")

</div>

Here is server code: #!/usr/bin/env ruby require ‘drb’ location = “druby://localhost:9000” class Echo def initialize(msg=nil) @msg = msg.nil? ? “No message!” : msg end def message return @msg end end class …

---

## [Blixy Tee Bus Stop](https://www.ruby-forum.com/t/blixy-tee-bus-stop/56041)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 1\
**Last updated:** [March 27, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/blixy-tee-bus-stop/56041 "2006-03-27T18:25:04Z")

</div>

So I was wearing my chunky bacon Blixy Tee http://www.cafepress.com/blixytees.10116504 at the School bus stop the other day, and my son (5yrs) gets up on his tip toes and starts trying to read foxspeak: “Chunky?.. ba…

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

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