# Ruby

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

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

---

## [Cerberus 0.3.2 released. Now with Perforce and BJam support](https://www.ruby-forum.com/t/cerberus-0-3-2-released-now-with-perforce-and-bjam-support/78394)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 1\
**Last updated:** [December 6, 2006, 12:37am UTC](https://www.ruby-forum.com/t/cerberus-0-3-2-released-now-with-perforce-and-bjam-support/78394 "2006-12-06T00:37:11Z")

</div>

Hello, Rubyists. New version of lightweight and powerful Build Integration tool for Ruby has been released. Cerberus 0.3.2 in da game. Continuous Integration idiom is very important for Agile development and many of …

---

## [Dates, scheduling tasks, mysql](https://www.ruby-forum.com/t/dates-scheduling-tasks-mysql/77821)

<div class="topic-metadata">

**Author:** [@comforteagle](https://www.ruby-forum.com/u/comforteagle)\
**Replies:** 4\
**Last updated:** [December 6, 2006, 12:01am UTC](https://www.ruby-forum.com/t/dates-scheduling-tasks-mysql/77821 "2006-12-06T00:01:11Z")

</div>

What is the best Date format for working with dates in ruby & mysql? I have a recurring task that once complete I want to update the db to reflect the next time to do it. “2006-11-30” as a string ends up being just “2…

---

## [Re: number format](https://www.ruby-forum.com/t/re-number-format/78458)

<div class="topic-metadata">

**Author:** [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/re-number-format/78458 "2006-12-05T23:31:01Z")

</div>

You can use the number.round method, but this doesn’t take a number of decimal places. To round 1.234 to 1.23 use this code: x = 1.234 x = x \* 100 # -\> 123.4 x = x.round -\> 123 x = x / 100.0 =\> 1.23 At least, that…

---

## [Can one use line addresses...to select a portion of file](https://www.ruby-forum.com/t/can-one-use-line-addresses-to-select-a-portion-of-file/78188)

<div class="topic-metadata">

**Author:** [@JacobS\_Raymond\_A\_Jr](https://www.ruby-forum.com/u/JacobS_Raymond_A_Jr)\
**Replies:** 6\
**Last updated:** [December 5, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/can-one-use-line-addresses-to-select-a-portion-of-file/78188 "2006-12-05T23:22:58Z")

</div>

I would like to select a portion of a file to process like I did with sed. i.e. a file called Menu with the following contents: McDonalds … … …(stuff deleted) Happy\_Meal\_ With sed I would do something like sed -…

---

## [Xcode 3 and Ruby?](https://www.ruby-forum.com/t/xcode-3-and-ruby/78340)

<div class="topic-metadata">

**Author:** [@gcarcass](https://www.ruby-forum.com/u/gcarcass)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 10:50pm UTC](https://www.ruby-forum.com/t/xcode-3-and-ruby/78340 "2006-12-05T22:50:48Z")

</div>

Hello: I’ve heard more than rumours that the new Xcode 3 development environment for OSX (Leopard) will have support for Ruby. This means that the interface builder will work integrated witht the Ruby scripting capab…

---

## [Review of The Ruby Way at Linux Journal (not by me)](https://www.ruby-forum.com/t/review-of-the-ruby-way-at-linux-journal-not-by-me/78442)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 10:32pm UTC](https://www.ruby-forum.com/t/review-of-the-ruby-way-at-linux-journal-not-by-me/78442 "2006-12-05T22:32:45Z")

</div>

Go take a look at: The Ruby Way | Linux Journal (oh, and feel free to answer Nicholas’ questions (or any others that have shown up in the comments))

---

## ["Filing out" irb prototyping sessions?](https://www.ruby-forum.com/t/filing-out-irb-prototyping-sessions/78436)

<div class="topic-metadata">

**Author:** [@Griff](https://www.ruby-forum.com/u/Griff)\
**Replies:** 2\
**Last updated:** [December 5, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/filing-out-irb-prototyping-sessions/78436 "2006-12-05T21:28:38Z")

</div>

Hi folks, It looks like you can use irb as a rapid prototyping environment by combining ability to bind to objects and modify them, utilize tab completion, and of course interact/prototype with these objects you are …

---

## [SAP GUI Automation](https://www.ruby-forum.com/t/sap-gui-automation/78434)

<div class="topic-metadata">

**Author:** [@Christian\_Baumann](https://www.ruby-forum.com/u/Christian_Baumann)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 9:12pm UTC](https://www.ruby-forum.com/t/sap-gui-automation/78434 "2006-12-05T21:12:34Z")

</div>

Hello, for my diploma I have to automate the SAP GUI with ruby. So a ruby script should interact with the SAP GUI like a user: clicking, entering data, … etc. Until now I have only done a very simple proof of concept…

---

## [Rakefile help: rakefile calling a rakefile?](https://www.ruby-forum.com/t/rakefile-help-rakefile-calling-a-rakefile/70544)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/rakefile-help-rakefile-calling-a-rakefile/70544 "2006-12-05T21:04:43Z")

</div>

I’ve got a top-level Rakefile that builds some C files. So, I’ve got a rule in there for building .c files to .o files. This rakefile has its own global variables, like $CFLAGS for example. rule ‘.o’ =\> ‘.c’ do |t| c…

---

## [RJS/link\_to\_remote](https://www.ruby-forum.com/t/rjs-link-to-remote/78429)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/rjs-link-to-remote/78429 "2006-12-05T20:35:59Z")

</div>

I’m trying to build an WebFTP application in Rails for some practice. Here is a link located in a partial named \_display\_file that is called by a partial named \_list\_files. A similar link is created for every directo…

---

## [Before 'click' in WATIR](https://www.ruby-forum.com/t/before-click-in-watir/78362)

<div class="topic-metadata">

**Author:** [@curious](https://www.ruby-forum.com/u/curious)\
**Replies:** 2\
**Last updated:** [December 5, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/before-click-in-watir/78362 "2006-12-05T20:16:26Z")

</div>

I am using code below to click in a page when it finds “Next” link. ie.link(:text, “Next”).click But as many of you know, many web pages have these next links that goes on and on, but when it reaches the last pages, i…

---

## [Invoking a Method](https://www.ruby-forum.com/t/invoking-a-method/78426)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/invoking-a-method/78426 "2006-12-05T19:52:23Z")

</div>

Hi, Newbie Question: How do i invoke a method in belonging to a module? For Example: ############### #file: SampleModule.rb Module SampleModule def add(a, b) return a + b end def multiply(a, b) return a \* b e…

---

## [Tool for Program Visualization?](https://www.ruby-forum.com/t/tool-for-program-visualization/78273)

<div class="topic-metadata">

**Author:** [@Gilbert\_R](https://www.ruby-forum.com/u/Gilbert_R)\
**Replies:** 6\
**Last updated:** [December 5, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/tool-for-program-visualization/78273 "2006-12-05T19:50:22Z")

</div>

Hi, coming to Ruby from Java i’m lookin for a tool similar to = http://cs.joensuu.fi/jeliot/index.php which is for java only. Any tools available ? Thanks for any hints!! Regards, Gilbert

---

## [Problem running mongrel on win32](https://www.ruby-forum.com/t/problem-running-mongrel-on-win32/102870)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/problem-running-mongrel-on-win32/102870 "2006-12-05T18:34:12Z")

</div>

mongrel fails to start with the error below on my win32 box (needs win32/service). But I do have the win32gem install win32-service sits there forever (hours) while “building native extensions” which I abovrt. The…

---

## [Problem running mongrel on win32](https://www.ruby-forum.com/t/problem-running-mongrel-on-win32/102611)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/problem-running-mongrel-on-win32/102611 "2006-12-05T18:32:10Z")

</div>

mongrel fails to start with the error below on my win32 box (needs win32/service). But I do have the win32gem install win32-service sits there forever (hours) while “building native extensions” which I abovrt. The…

---

## [Problem running mongrel on win32](https://www.ruby-forum.com/t/problem-running-mongrel-on-win32/78424)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/problem-running-mongrel-on-win32/78424 "2006-12-05T18:32:10Z")

</div>

mongrel fails to start with the error below on my win32 box (needs win32/service). But I do have the win32gem install win32-service sits there forever (hours) while “building native extensions” which I abovrt. The…

---

## [Ruby / irb don't match up?](https://www.ruby-forum.com/t/ruby-irb-dont-match-up/78420)

<div class="topic-metadata">

**Author:** [@Matt\_Maycock](https://www.ruby-forum.com/u/Matt_Maycock)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/ruby-irb-dont-match-up/78420 "2006-12-05T18:10:03Z")

</div>

Hi, I have the following versions of ruby / irb (from the rubyforge windows installer) C:\\ruby\\bin\>ruby -v ruby 1.8.4 (2006-04-14) \[i386-mswin32\] C:\\ruby\\bin\>irb -v irb 0.9.5(05/04/13) and I wrote a module (as a C…

---

## [Hpricot 0.4.76 chokes on empty comment](https://www.ruby-forum.com/t/hpricot-0-4-76-chokes-on-empty-comment/78335)

<div class="topic-metadata">

**Author:** [@Ron\_M](https://www.ruby-forum.com/u/Ron_M)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/hpricot-0-4-76-chokes-on-empty-comment/78335 "2006-12-05T17:29:47Z")

</div>

Hpricot’s choking on some pages complaining about nil in Comment#parse. I can’t remember the HTML page that was parsing it; but this patch fixes the problem for me. Why? If you’re around, should something like this …

---

## [Rake 0.7.1 aborted! Test failures](https://www.ruby-forum.com/t/rake-0-7-1-aborted-test-failures/78348)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 2\
**Last updated:** [December 5, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/rake-0-7-1-aborted-test-failures/78348 "2006-12-05T17:19:40Z")

</div>

Hi, gem install --remote rake rake --trace Rake aborted! Test failures Any help would be greatly appreciated on fixing/testing rake installation C:\\Documents and Settings\\Dave\>cd C:\\Documents and Settings\\Dave\\work…

---

## [Rinjdael (AES) encryption in Ruby](https://www.ruby-forum.com/t/rinjdael-aes-encryption-in-ruby/78399)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 5, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/rinjdael-aes-encryption-in-ruby/78399 "2006-12-05T16:15:28Z")

</div>

I’ve got a quick general question about encryption. I’ve encrypted the same string with OpenSSL, ruby-aes, and Crypt, using the same cipher, key, and IV (I’ve slightly modified Crypt to accept an IV) and get different…

---

## [Nullcmd](https://www.ruby-forum.com/t/nullcmd/78356)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 4\
**Last updated:** [December 5, 2006, 4:07pm UTC](https://www.ruby-forum.com/t/nullcmd/78356 "2006-12-05T16:07:26Z")

</div>

e$B$3$s$K$A$O!#e(B ruby\_1\_8e$B$N%V%i%s%A$Ge(Bconfiguree$B$N7k2L!"e(B NULLCMD = … post-install-bin:: @$(NULLCMD) e$B$H!"$$$C$?9T$,:n@.$5$l$^$9!#e(BGNU makee$B$G$OLdBj$J$$$h$&$G$9$,!"e(BNetBSDe$B$Ne(B make(e$BB\>$Ne…

---

## [A true Ruby compiler (for Linux)](https://www.ruby-forum.com/t/a-true-ruby-compiler-for-linux/78390)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 2\
**Last updated:** [December 5, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/a-true-ruby-compiler-for-linux/78390 "2006-12-05T16:03:24Z")

</div>

People, I have found RubyScript2Exe but that is not a real compiler. Ruby is such an nice OO language to develop in - why isn’t there a demand to compile a finished script? - then you get the benefits of fast develo…

---

## [Integer#to\_s(2) works on x86, fails on x86\_64](https://www.ruby-forum.com/t/integer-to-s-2-works-on-x86-fails-on-x86-64/78354)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 6\
**Last updated:** [December 5, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/integer-to-s-2-works-on-x86-fails-on-x86-64/78354 "2006-12-05T15:41:19Z")

</div>

Hello, Can anyone explain why this is happening? ---- on x86\_64 ---- $ ruby -v ruby 1.8.4 (2005-12-24) \[x86\_64-linux\] $ irb 2956350890592680056.to\_s(2) RangeError: integer 2956350890592680056 too big to convert …

---

## [Gateway is malfunctioning](https://www.ruby-forum.com/t/gateway-is-malfunctioning/77870)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 30\
**Last updated:** [December 5, 2006, 2:51pm UTC](https://www.ruby-forum.com/t/gateway-is-malfunctioning/77870 "2006-12-05T14:51:12Z")

</div>

Someone recently mentioned missing posts. I just did a comparsion of comp.lang.ruby and ruby-talk-google and indeed the usenet is missing posts. James you want to have a look at the gateway? T.

---

## [Looping through & downloading web page - WATIR codes](https://www.ruby-forum.com/t/looping-through-downloading-web-page-watir-codes/78349)

<div class="topic-metadata">

**Author:** [@curious](https://www.ruby-forum.com/u/curious)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 10:20am UTC](https://www.ruby-forum.com/t/looping-through-downloading-web-page-watir-codes/78349 "2006-12-05T10:20:41Z")

</div>

What I am trying to realize through code below is to read a line by line in items.txt, and download each ensuing pages by having WATIR click ‘Next’ link. Now what I wish this code to do is when WATIR reaches the last …

---

## [Ie.link(:text, "Next").click](https://www.ruby-forum.com/t/ie-link-text-next-click/78359)

<div class="topic-metadata">

**Author:** [@curious](https://www.ruby-forum.com/u/curious)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 10:16am UTC](https://www.ruby-forum.com/t/ie-link-text-next-click/78359 "2006-12-05T10:16:40Z")

</div>

is there anyway to proceed with the WATIR code below after checking whether the link is present or not?? ie.link(:text, “Next”).click thanks.

---

## [How do I "unrequire" a file?](https://www.ruby-forum.com/t/how-do-i-unrequire-a-file/78322)

<div class="topic-metadata">

**Author:** [@tuka](https://www.ruby-forum.com/u/tuka)\
**Replies:** 3\
**Last updated:** [December 5, 2006, 9:58am UTC](https://www.ruby-forum.com/t/how-do-i-unrequire-a-file/78322 "2006-12-05T09:58:05Z")

</div>

Hi all, In using migrate manually, I “require” the file containing the migration and run it using console. I later decide to alter the same file on my editor and try to run the migration again (after the code below) …

---

## [Send over raw socket?](https://www.ruby-forum.com/t/send-over-raw-socket/78351)

<div class="topic-metadata">

**Author:** [@cbnewman](https://www.ruby-forum.com/u/cbnewman)\
**Replies:** 1\
**Last updated:** [December 5, 2006, 8:40am UTC](https://www.ruby-forum.com/t/send-over-raw-socket/78351 "2006-12-05T08:40:26Z")

</div>

Hi, This should be simple, but it doesn’t seem to be documented anywhere I can find… I want to send data over a raw IP socket - not TCP or UDP. Ideally I’d like the OS to provide it’s IP header, but I can do that mys…

---

## [MySQL and SQLite question](https://www.ruby-forum.com/t/mysql-and-sqlite-question/78250)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 9\
**Last updated:** [December 5, 2006, 7:08am UTC](https://www.ruby-forum.com/t/mysql-and-sqlite-question/78250 "2006-12-05T07:08:19Z")

</div>

Lo there all. I have been giving some thought to moving to SQLite from MySQL. We are moving our site from php to rails for what we call “the big rewrite” and since these changes are going on. I really like that SQLite…

---

## [Wisdom of including Rakefile in releases](https://www.ruby-forum.com/t/wisdom-of-including-rakefile-in-releases/77823)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 12\
**Last updated:** [December 5, 2006, 4:18am UTC](https://www.ruby-forum.com/t/wisdom-of-including-rakefile-in-releases/77823 "2006-12-05T04:18:05Z")

</div>

I was poking around in the /usr/lib/ruby/gems directory today and noticed that many of the installed libs/apps include Rakefiles in them. Now, I was thinking about this very thing in the distribution of my own package…

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

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