# Ruby

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

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

---

## [Revision control for Ruby](https://www.ruby-forum.com/t/revision-control-for-ruby/149809)

<div class="topic-metadata">

**Author:** [@thiagobrandam](https://www.ruby-forum.com/u/thiagobrandam)\
**Replies:** 24\
**Last updated:** [October 3, 2008, 3:49am UTC](https://www.ruby-forum.com/t/revision-control-for-ruby/149809 "2008-10-03T03:49:12Z")

</div>

Does anyone know any good revision control tool/software for Ruby? Thanks in advance.

---

## [Code Review: RandomRubyFixes03](https://www.ruby-forum.com/t/code-review-randomrubyfixes03/150060)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [October 3, 2008, 12:32am UTC](https://www.ruby-forum.com/t/code-review-randomrubyfixes03/150060 "2008-10-03T00:32:06Z")

</div>

tfpt review “/shelveset:RandomRubyFixes03;REDMOND\\curth” Comment : Implement unpack directive L as equivalent to I on this platform Fix stack overflow resulting from inspecting recursive objects Fix instance variabl…

---

## [Cookie Monster (#178)](https://www.ruby-forum.com/t/cookie-monster-178/149592)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 16\
**Last updated:** [October 2, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/cookie-monster-178/149592 "2008-10-02T23:28:13Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [Cookie Monster (#178)](https://www.ruby-forum.com/t/cookie-monster-178/150058)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/cookie-monster-178/150058 "2008-10-02T23:22:57Z")

</div>

I managed to get the summary done today, so here you go! We’re going to look at the solution from Christian N. this week. It’s a recursive solution, as several of the submissions were, but I found it easy to follow. F…

---

## [Great Lakes Ruby Bash - Speaker Form Error](https://www.ruby-forum.com/t/great-lakes-ruby-bash-speaker-form-error/150050)

<div class="topic-metadata">

**Author:** [@bdimcheff](https://www.ruby-forum.com/u/bdimcheff)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/great-lakes-ruby-bash-speaker-form-error/150050 "2008-10-02T22:22:28Z")

</div>

This message is intended for anyone who has submitted a speaker proposal to Great Lakes Ruby Bash via the online form. It seems that a bad version of the form somehow got deployed that was causing submissions to bounc…

---

## [What does %r](https://www.ruby-forum.com/t/what-does-r/150047)

<div class="topic-metadata">

**Author:** [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Replies:** 2\
**Last updated:** [October 2, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/what-does-r/150047 "2008-10-02T22:17:20Z")

</div>

match = url.match(%r\[http://(.+).site.com/a-(\\d+).html\]) my question is what is this %r, i know that %w(x 1 2)=\[‘x’,‘1’,‘2’\] but what’s %r, can i read more about these percents? links please

---

## [Building postgres 0.7.1 on Windows](https://www.ruby-forum.com/t/building-postgres-0-7-1-on-windows/150033)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/building-postgres-0-7-1-on-windows/150033 "2008-10-02T17:32:28Z")

</div>

Hi all, Windows XP Pro VC++ 8 When attempting to build the postgres-0.7.1 library, I get this error: C:\\ruby\\bin\\ruby -e "puts 'EXPORTS', 'Init\_postgres'" \> postgres-i386-mswin32\_80. cl -W3 -nologo -I. -I. -IC…

---

## [\[ANN\] LinkedIn JRuby Group](https://www.ruby-forum.com/t/ann-linkedin-jruby-group/150032)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/ann-linkedin-jruby-group/150032 "2008-10-02T17:22:31Z")

</div>

Hey, Just wanted to give everyone a heads up that I started a JRuby group on LinkedIN if anyone finds it valuable. Could be a great way to help network the community of JRuby users in the enterprise. Regards, A…

---

## [Telnet - login](https://www.ruby-forum.com/t/telnet-login/150029)

<div class="topic-metadata">

**Author:** [@adler1](https://www.ruby-forum.com/u/adler1)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/telnet-login/150029 "2008-10-02T16:57:07Z")

</div>

Dear all, i used one of the simples examples to open a telnet connection, #Begin Ruby code #!/usr/bin/ruby require ‘net/telnet’ remote = Net::Telnet::new( “Host” =\> “192.168.80.1”, “Port” =\> “23”, “Timeout” …

---

## [Off Topic: Lots of Ruby Jobs Available!](https://www.ruby-forum.com/t/off-topic-lots-of-ruby-jobs-available/196819)

<div class="topic-metadata">

**Author:** [@rorjobs](https://www.ruby-forum.com/u/rorjobs)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/off-topic-lots-of-ruby-jobs-available/196819 "2008-10-02T16:52:18Z")

</div>

Hi All - Just wanted to let you know about a bunch of new jobs now listed on http://www.RORJobs.com: Backend Lead Engineer for Social Network Startup at Plinky, Inc. (Lafayette, California) Website Developer/Producer…

---

## [What does this regexp do?](https://www.ruby-forum.com/t/what-does-this-regexp-do/150018)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 1\
**Last updated:** [October 2, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/what-does-this-regexp-do/150018 "2008-10-02T16:51:21Z")

</div>

I can’t figure out what this does: “1\\n2\\n3\\n”\[ /.\\Z?/ \] =\> “” I would expect it to output “1”, just as: “1\\n2\\n3\\n”\[ /.(\\Z)?/ \] =\> “1” Is this a bug?

---

## [Debugging Ruby Core](https://www.ruby-forum.com/t/debugging-ruby-core/149283)

<div class="topic-metadata">

**Author:** [@saladinmundi](https://www.ruby-forum.com/u/saladinmundi)\
**Replies:** 8\
**Last updated:** [October 2, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/debugging-ruby-core/149283 "2008-10-02T16:50:13Z")

</div>

Hello everyone, is there a debugger which I could use for debugging the C-Core if I modify it? Thanks so much, sala

---

## [Gecode/R 1.0.0](https://www.ruby-forum.com/t/gecode-r-1-0-0/150022)

<div class="topic-metadata">

**Author:** [@andreas\_l](https://www.ruby-forum.com/u/andreas_l)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/gecode-r-1-0-0/150022 "2008-10-02T16:20:13Z")

</div>

Gecode/R version 1.0.0 has been released. http://gecoder.rubyforge.org/ This is the first officially stable release of Gecode/R. == What is Gecode/R? Gecode/R is a Ruby interface to the Gecode constraint programming …

---

## [Using Ruby to control a scanner on Windows](https://www.ruby-forum.com/t/using-ruby-to-control-a-scanner-on-windows/149972)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 1\
**Last updated:** [October 2, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/using-ruby-to-control-a-scanner-on-windows/149972 "2008-10-02T13:30:09Z")

</div>

Does anybody know if it is possible to control a flatbed or sheetfed scanner from Ruby, on Windows XP? My goal is to be able to place a paper on the scanner and then just start a Ruby script that would start up the s…

---

## [Printf statement - "args" as an Array (or something...)](https://www.ruby-forum.com/t/printf-statement-args-as-an-array-or-something/150011)

<div class="topic-metadata">

**Author:** [@johnpetterson](https://www.ruby-forum.com/u/johnpetterson)\
**Replies:** 3\
**Last updated:** [October 2, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/printf-statement-args-as-an-array-or-something/150011 "2008-10-02T13:15:15Z")

</div>

I’m trying to tart up some logged prepared SQL statements like this: SELECT col FROM table WHERE a =? AND b =? PARAMS: 1=‘one’, 2=‘two’ I thought about using a ‘printf’ like this, first alter the SQL statement to: s…

---

## [Mirroring large files over HTTP](https://www.ruby-forum.com/t/mirroring-large-files-over-http/149877)

<div class="topic-metadata">

**Author:** [@lheese](https://www.ruby-forum.com/u/lheese)\
**Replies:** 4\
**Last updated:** [October 2, 2008, 11:35am UTC](https://www.ruby-forum.com/t/mirroring-large-files-over-http/149877 "2008-10-02T11:35:23Z")

</div>

I’m working on a script where I want to download large files off a remote web server and store on a local filesystem. At the moment I’m using code like this: require ‘open-uri’ open(filename, ‘w’) do |file| file.wr…

---

## [Escaped symbols when parsing XLS](https://www.ruby-forum.com/t/escaped-symbols-when-parsing-xls/150009)

<div class="topic-metadata">

**Author:** [@dive](https://www.ruby-forum.com/u/dive)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 11:31am UTC](https://www.ruby-forum.com/t/escaped-symbols-when-parsing-xls/150009 "2008-10-02T11:31:37Z")

</div>

Hi all. how can I escaped special characters when parsing XLS? i try to parse by this line of code: grid = Spreadsheet::ParseExcel.parse(“C:/Projects/Temp/arch/0043247/1.xls”).worksheet(0).map() { |r| r }.compact.ma…

---

## [Using irb console in Swing app though BSF?](https://www.ruby-forum.com/t/using-irb-console-in-swing-app-though-bsf/150002)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [October 2, 2008, 10:47am UTC](https://www.ruby-forum.com/t/using-irb-console-in-swing-app-though-bsf/150002 "2008-10-02T10:47:19Z")

</div>

I’d like to run an irb console via bsf in a swing application – has anyone done this? The code here: org/jruby/demo/IRBConsole.java directly accesses jruby from Java without bsf. I’m hoping to adapt it. I have jruby…

---

## [Problems with ar-jdbc and SybaseDB](https://www.ruby-forum.com/t/problems-with-ar-jdbc-and-sybasedb/150004)

<div class="topic-metadata">

**Author:** [@tradem](https://www.ruby-forum.com/u/tradem)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 9:56am UTC](https://www.ruby-forum.com/t/problems-with-ar-jdbc-and-sybasedb/150004 "2008-10-02T09:56:26Z")

</div>

Hi everyone! We have a problem connecting to a SybaseDB via ar-jdbc 0.8.2 and jruby 1.1.4. Connecting to the database directly via ActiveRecord::Base.establish\_connection … ActiveRecord::Base.connection.execute(some…

---

## [Ruby1.9 block scope](https://www.ruby-forum.com/t/ruby1-9-block-scope/149756)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 44\
**Last updated:** [October 2, 2008, 8:17am UTC](https://www.ruby-forum.com/t/ruby1-9-block-scope/149756 "2008-10-02T08:17:51Z")

</div>

I could have sworn that one of the firm changes in ruby 1.9 was that variables defined inside a block would also exist outside the block. But when I try it: 1.times{ x=2 } =\> 1 x NameError: undefined local vari…

---

## [Code Review: BugFixes1.1](https://www.ruby-forum.com/t/code-review-bugfixes1-1/149996)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [October 2, 2008, 6:19am UTC](https://www.ruby-forum.com/t/code-review-bugfixes1-1/149996 "2008-10-02T06:19:42Z")

</div>

tfpt review “/shelveset:BugFixes1.1;REDMOND\\tomat” Fixes several minor issues that were introduced by previous shelveset (RubyOps2). Adds unit tests for all of the missed cases. Tomas

---

## [Real world ruby programs to learn from](https://www.ruby-forum.com/t/real-world-ruby-programs-to-learn-from/149848)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 11\
**Last updated:** [October 2, 2008, 6:04am UTC](https://www.ruby-forum.com/t/real-world-ruby-programs-to-learn-from/149848 "2008-10-02T06:04:15Z")

</div>

Hi, Can you recommend some Ruby projects in which I can have a look to learn good Ruby practices / idioms and why not contribute to them? I am fed up with the stupid code examples we find in books. The Ruby on Rails …

---

## [Static content in/public](https://www.ruby-forum.com/t/static-content-in-public/149978)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 3\
**Last updated:** [October 2, 2008, 5:33am UTC](https://www.ruby-forum.com/t/static-content-in-public/149978 "2008-10-02T05:33:30Z")

</div>

As expected, JRuby is placing 404.html and 500.html in the root of the war instead of under WEB-INF/public. The problem is that rails is trying to get it under /WEB-INF/public and not finding it: Rendering /opt/rails-…

---

## [Code Review: RubyOps2](https://www.ruby-forum.com/t/code-review-rubyops2/149987)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [October 2, 2008, 12:17am UTC](https://www.ruby-forum.com/t/code-review-rubyops2/149987 "2008-10-02T00:17:05Z")

</div>

tfpt review “/shelveset:RubyOps2;REDMOND\\tomat” (Reviewed by John). Moves emitted helpers from RuntimeFlowControl and BlockParam classes to RubyOps and makes all of them static. Adds a debug-only attribute \[Emitted\] …

---

## [Base64 for URL variant](https://www.ruby-forum.com/t/base64-for-url-variant/149982)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 2\
**Last updated:** [October 2, 2008, 12:10am UTC](https://www.ruby-forum.com/t/base64-for-url-variant/149982 "2008-10-02T00:10:38Z")

</div>

Does ruby core has any method to create a Base64 for URL variant? Using a URL-encoder on standard Base64, however, is inconvenient as it will translate the ‘+’ and ‘/’ characters into special percent-encoded hexadeci…

---

## [What hash method is called in this code?](https://www.ruby-forum.com/t/what-hash-method-is-called-in-this-code/149976)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/what-hash-method-is-called-in-this-code/149976 "2008-10-01T23:30:48Z")

</div>

When writing : my\_hash = {“a” =\> “b”} what method is called ? I tried patching initialize\_copy , and initialize , but that doesn’t seem to be it . What am I missing ?

---

## [Code Review: BugFixesX2](https://www.ruby-forum.com/t/code-review-bugfixesx2/149981)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/code-review-bugfixesx2/149981 "2008-10-01T23:30:13Z")

</div>

tfpt review “/shelveset:BugFixesX2;REDMOND\\tomat” (Reviewed by John). Fixes various bugs, enables specs. Bugs fixed include: \[ ironruby-Bugs-21729 \] UnboundMethod raises ArgumentError when called. \[ ironruby-Bugs-2…

---

## [Simple gsub method](https://www.ruby-forum.com/t/simple-gsub-method/149979)

<div class="topic-metadata">

**Author:** [@smithy](https://www.ruby-forum.com/u/smithy)\
**Replies:** 4\
**Last updated:** [October 1, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/simple-gsub-method/149979 "2008-10-01T22:58:34Z")

</div>

I have simplified my method for searching test to the following: def replacer(a, b) x = “now is the time for all good men to come to the aid of their country” x.gsub(/#{a}/, b) puts x end puts "enter what to repla…

---

## [Bug in the money gem?](https://www.ruby-forum.com/t/bug-in-the-money-gem/149529)

<div class="topic-metadata">

**Author:** [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Replies:** 3\
**Last updated:** [October 1, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/bug-in-the-money-gem/149529 "2008-10-01T22:50:56Z")

</div>

For anyone of you using the money gem (http://dist.leetsoft.com/api/ money/), I noticed today that 0 - 100 does not equal -100, it equals 100 instead (all numbers here represent Money objects). Do any of you find tha…

---

## [Can't find jruby-openssl, even though it's clearly installed](https://www.ruby-forum.com/t/cant-find-jruby-openssl-even-though-its-clearly-installed/149464)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 5\
**Last updated:** [October 1, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/cant-find-jruby-openssl-even-though-its-clearly-installed/149464 "2008-10-01T22:19:17Z")

</div>

I am trying to POST to an https URL. I am using JRuby 1.1.4, which I’ve confirmed by printing JRUBY\_VERSION. And I’ve confirmed that jruby-openssl is installed. Yet, when I run the program in NetBeans, I see this i…

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

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