# Ruby

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

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

---

## [MountainWest RubyConf 2010](https://www.ruby-forum.com/t/mountainwest-rubyconf-2010/179790)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-2010/179790 "2009-12-03T21:27:48Z")

</div>

MountainWest RubyConf 2010 will be held March 11 and 12, 2010, in Salt Lake City, UT, USA. http://mtnwestrubyconf.org/ Talk proposals are also being accepted. Submit yours here: http://spreadsheets.google.com/viewf…

---

## [Kramdown 0.2.0 - definition list syntax and better HTML parser](https://www.ruby-forum.com/t/kramdown-0-2-0-definition-list-syntax-and-better-html-parser/179792)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/kramdown-0-2-0-definition-list-syntax-and-better-html-parser/179792 "2009-12-03T20:55:37Z")

</div>

About kramdown kramdown is a free GPL-licensed Ruby library for parsing a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some minor modifications) and various extensions that…

---

## [FileUtils noop?](https://www.ruby-forum.com/t/fileutils-noop/179779)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [December 3, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/fileutils-noop/179779 "2009-12-03T18:07:03Z")

</div>

http://ruby-doc.org/core/classes/FileUtils.html#M004315 states that some methods can accept a :noop flag Any guesses why this would ever be useful? -r

---

## [Easy dsl style method generation?](https://www.ruby-forum.com/t/easy-dsl-style-method-generation/179778)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [December 3, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/easy-dsl-style-method-generation/179778 "2009-12-03T18:05:53Z")

</div>

Here’s what I wish I could easily do. Move.from(x).to(y) and set it up easily, like class Move def from(x).to(y) end end Any helpers out there to make this somewhat possible that anyone knows of? Much thanks. -…

---

## [Graphics mode](https://www.ruby-forum.com/t/graphics-mode/179719)

<div class="topic-metadata">

**Author:** [@diabolator2](https://www.ruby-forum.com/u/diabolator2)\
**Replies:** 23\
**Last updated:** [December 3, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/graphics-mode/179719 "2009-12-03T16:53:53Z")

</div>

Hi all! I’m a beginner. I need to include graphics mode in my program, I dunno how. I can do it in C++, but I can’t in Ruby. Example: a ball falls down. Da program calculates it’s coordinates and it works. But I wann…

---

## [Increment outerloop value in innerloop in each do Syntax](https://www.ruby-forum.com/t/increment-outerloop-value-in-innerloop-in-each-do-syntax/179752)

<div class="topic-metadata">

**Author:** [@nagaraju](https://www.ruby-forum.com/u/nagaraju)\
**Replies:** 6\
**Last updated:** [December 3, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/increment-outerloop-value-in-innerloop-in-each-do-syntax/179752 "2009-12-03T16:47:27Z")

</div>

Hi All, I am new to RUBY. Please help me in solving the below problem. I have a c code and I am trying to do the same in RUBY. for(int i = 0; i \< 10;i++) { for(int j = 0; j\< 5; j++) { if(i == j) { printf("%d - i…

---

## [Building a Ruby executable that take a command-line argument](https://www.ruby-forum.com/t/building-a-ruby-executable-that-take-a-command-line-argument/179774)

<div class="topic-metadata">

**Author:** [@paragadosm](https://www.ruby-forum.com/u/paragadosm)\
**Replies:** 2\
**Last updated:** [December 3, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/building-a-ruby-executable-that-take-a-command-line-argument/179774 "2009-12-03T16:13:24Z")

</div>

So I’ve been using Ocra for awhile now to build my Ruby executables and now I want to pass basically a flag to the executable and hopefully have that argument be recognized within the ruby script itself. First off, I…

---

## [Thread variables in a single runtime](https://www.ruby-forum.com/t/thread-variables-in-a-single-runtime/179775)

<div class="topic-metadata">

**Author:** [@chiefgeek](https://www.ruby-forum.com/u/chiefgeek)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/thread-variables-in-a-single-runtime/179775 "2009-12-03T15:55:21Z")

</div>

Were seeing a problem with thread variables, acts\_as\_audited uses a thread variable.On high load were seeing the variable be incorrect, were wondering if we shouldn’t be using thread variables when we only have one J…

---

## [How to use nifty\_authentication if package doesn't consist i](https://www.ruby-forum.com/t/how-to-use-nifty-authentication-if-package-doesnt-consist-i/179770)

<div class="topic-metadata">

**Author:** [@subodh](https://www.ruby-forum.com/u/subodh)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/how-to-use-nifty-authentication-if-package-doesnt-consist-i/179770 "2009-12-03T14:12:48Z")

</div>

Is it possible to create nifty authentication if nifty-generator package doesn’t consist nifty\_authentication generator.

---

## [Encoding/decoding a image as Base64 (fails under Ruby1.9 but works under Ruby1.8)](https://www.ruby-forum.com/t/encoding-decoding-a-image-as-base64-fails-under-ruby1-9-but-works-under-ruby1-8/179753)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 7\
**Last updated:** [December 3, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/encoding-decoding-a-image-as-base64-fails-under-ruby1-9-but-works-under-ruby1-8/179753 "2009-12-03T13:13:13Z")

</div>

Hi, the folowing code encodes and decodes a image file as Base64: Encode “icon.png” in Base64 as “base64.txt”: File.open(“base64.txt”,“w”) do |file| file.write \[open(“icon.png”).read\].pack(“m”) end Decode “base64.…

---

## [Thread.current not working as expected app within a native java thread](https://www.ruby-forum.com/t/thread-current-not-working-as-expected-app-within-a-native-java-thread/179763)

<div class="topic-metadata">

**Author:** [@jasonfs](https://www.ruby-forum.com/u/jasonfs)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/thread-current-not-working-as-expected-app-within-a-native-java-thread/179763 "2009-12-03T12:04:44Z")

</div>

Situation I have a jruby on rails app that has some long running processes that can be called via a web interface. The app is multthreading enabled so that several long running processes can work at the same time - ea…

---

## [\[Bug #2425\] Kernel#public\_method $B$NNc30%a%C%;!\<%8(B](https://www.ruby-forum.com/t/bug-2425-kernel-public-method-b-nnc30-a-c-8-b/179761)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [December 3, 2009, 11:30am UTC](https://www.ruby-forum.com/t/bug-2425-kernel-public-method-b-nnc30-a-c-8-b/179761 "2009-12-03T11:30:47Z")

</div>

Bug #2425: Kernel#public\_method e$B$NNc30%a%C%;!\<%8e(B http://redmine.ruby-lang.org/issues/show/2425 e$B5/I\<\<Te(B: \_ wanabe e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: core, Target version: 1.9.x ruby …

---

## [Help with complex array transformation](https://www.ruby-forum.com/t/help-with-complex-array-transformation/179744)

<div class="topic-metadata">

**Author:** [@m4lloc](https://www.ruby-forum.com/u/m4lloc)\
**Replies:** 5\
**Last updated:** [December 3, 2009, 11:27am UTC](https://www.ruby-forum.com/t/help-with-complex-array-transformation/179744 "2009-12-03T11:27:06Z")

</div>

Hi I have a following method view(all\_people, begin\_date, end\_date) That’s give me an array like this: for a first day (day 1) view("\*", ‘2009-12-01 00:00:00’, ‘2009-12-01 24:59:59’) \[\[name\_person1, room1\], \[name\_pe…

---

## [Resolving OpenSSL version mismatch in OS X 10.5.8](https://www.ruby-forum.com/t/resolving-openssl-version-mismatch-in-os-x-10-5-8/175913)

<div class="topic-metadata">

**Author:** [@johnnyrepp](https://www.ruby-forum.com/u/johnnyrepp)\
**Replies:** 3\
**Last updated:** [December 3, 2009, 1:27am UTC](https://www.ruby-forum.com/t/resolving-openssl-version-mismatch-in-os-x-10-5-8/175913 "2009-12-03T01:27:02Z")

</div>

In a Rails app I have built, the Amazon Web Services Product Advertising API is used to retrieve book information. Recently, AWS changed their API and now requires that requests be signed with a SHA256 key. I’m in t…

---

## [Simple http.get() script fails](https://www.ruby-forum.com/t/simple-http-get-script-fails/179696)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 2\
**Last updated:** [December 3, 2009, 12:55am UTC](https://www.ruby-forum.com/t/simple-http-get-script-fails/179696 "2009-12-03T00:55:48Z")

</div>

Hi, Using a simple test script to get Google’s start page HTML gives me the following error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in initialize': getaddrinfo: nodena…

---

## [Ruby -rubygems -rgem\_name fails--is this a bug?](https://www.ruby-forum.com/t/ruby-rubygems-rgem-name-fails-is-this-a-bug/179740)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [December 3, 2009, 12:30am UTC](https://www.ruby-forum.com/t/ruby-rubygems-rgem-name-fails-is-this-a-bug/179740 "2009-12-03T00:30:38Z")

</div>

See the title. With 1.8 ruby -rubygems -rgem\_name fails With 1.9 it doesn’t, but only because of gem prelude. Is this a bug? It smells like one. -r

---

## [How to use rb\_enc\_str\_new() to create a String with UTF-8 encoding?](https://www.ruby-forum.com/t/how-to-use-rb-enc-str-new-to-create-a-string-with-utf-8-encoding/179720)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 4\
**Last updated:** [December 2, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/how-to-use-rb-enc-str-new-to-create-a-string-with-utf-8-encoding/179720 "2009-12-02T23:03:25Z")

</div>

Hi, when I create a Ruby String from a C extension by using “rb\_str\_new(s, len)” I get a String with US-ASCII encoding. I don’t want to call later String#force\_encoding(:“UTF-8”) but instead use the rb\_enc\_str\_new()…

---

## [Need help with writefile line ranges within extensive file](https://www.ruby-forum.com/t/need-help-with-writefile-line-ranges-within-extensive-file/179733)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [December 2, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/need-help-with-writefile-line-ranges-within-extensive-file/179733 "2009-12-02T22:20:42Z")

</div>

Hi Everyone, I have the following file that I started to work on: class EuiiiReader def initialize(writefile,filename) @writefile = writefile @filename = filename @provnum = /^\\d{1,4}={/ end def readfile File.op…

---

## [Setup.rb 5 coming soon, could use some assistance](https://www.ruby-forum.com/t/setup-rb-5-coming-soon-could-use-some-assistance/179736)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/setup-rb-5-coming-soon-could-use-some-assistance/179736 "2009-12-02T21:18:39Z")

</div>

Over the last week I’ve been readying Setup.rb 5.0 for release. This is a rewrite of setup.rb that I have been planning for some time. Minero A.'s last version, 3.4.1, is a monolithic script. Over the course of the 4.…

---

## [Why\_sandbox 1.9 support](https://www.ruby-forum.com/t/why-sandbox-1-9-support/179734)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/why-sandbox-1-9-support/179734 "2009-12-02T20:39:31Z")

</div>

I tried sending this to the list before. It turned out that I wasn’t registered to ruby-forum so I am unsure as to if this made it to the mailing list. If this email already exists I apologize for the duplicate email …

---

## [Ruby-debug](https://www.ruby-forum.com/t/ruby-debug/179726)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 2\
**Last updated:** [December 2, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/ruby-debug/179726 "2009-12-02T20:11:35Z")

</div>

Question: I was wondering if there was a way to instruct the ruby debug framework to stop/break/freeze on any error so I can investigate the call stack to diagnose the problem? Background: I am using ‘ruby-debug’ an…

---

## [How Do I Change a .gsub](https://www.ruby-forum.com/t/how-do-i-change-a-gsub/179694)

<div class="topic-metadata">

**Author:** [@jovijunki](https://www.ruby-forum.com/u/jovijunki)\
**Replies:** 5\
**Last updated:** [December 2, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/how-do-i-change-a-gsub/179694 "2009-12-02T17:53:48Z")

</div>

I’m trying to make a Hangman game def guessed\_word() word\_letters = @word.split("") blank = @word.gsub(/\[a-z\]/, ‘\_’) return blank end the array for the correct guesses made by the user is @good\_guesses and inc…

---

## [Advice - Printing All Options](https://www.ruby-forum.com/t/advice-printing-all-options/179714)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 8\
**Last updated:** [December 2, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/advice-printing-all-options/179714 "2009-12-02T16:13:31Z")

</div>

Hi! I’ve set a project for myself but I don’t know where to begin (newbie). Here’s what I’m trying to do: I’m trying to come up with a drill for my martial arts class where I can flow from position to position, from t…

---

## [\#create in test unit returns object with nil id](https://www.ruby-forum.com/t/create-in-test-unit-returns-object-with-nil-id/179684)

<div class="topic-metadata">

**Author:** [@dordille](https://www.ruby-forum.com/u/dordille)\
**Replies:** 4\
**Last updated:** [December 2, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/create-in-test-unit-returns-object-with-nil-id/179684 "2009-12-02T15:47:21Z")

</div>

mac:Project $ jruby script/console test /Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/NetBeans/ruby2/jruby-1.2.0/bin/jruby: line 52: \[: too many arguments Loading test environment (Rails 2.3.4) p = Pe…

---

## [Cucumber, Flex and FunFX](https://www.ruby-forum.com/t/cucumber-flex-and-funfx/179707)

<div class="topic-metadata">

**Author:** [@gordonm](https://www.ruby-forum.com/u/gordonm)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/cucumber-flex-and-funfx/179707 "2009-12-02T12:17:51Z")

</div>

Hi, I am currently trying to do a “proof of concept” for our Flex software with Cucumber. I’ve pretty much got everything up and running now but had a couple of questions. Is the best option to use FunFX? Has anyon…

---

## [Searching Text for Multiple Matches](https://www.ruby-forum.com/t/searching-text-for-multiple-matches/179637)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 3\
**Last updated:** [December 2, 2009, 11:31am UTC](https://www.ruby-forum.com/t/searching-text-for-multiple-matches/179637 "2009-12-02T11:31:00Z")

</div>

I am using ruby to search and match text in a file that has several mathes. Here is the text: Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : corp.pc.com IP Address. . . . . . . . …

---

## [Glassfish.gem and Warble?](https://www.ruby-forum.com/t/glassfish-gem-and-warble/179474)

<div class="topic-metadata">

**Author:** [@Ken\_at\_Inbox256](https://www.ruby-forum.com/u/Ken_at_Inbox256)\
**Replies:** 6\
**Last updated:** [December 2, 2009, 10:24am UTC](https://www.ruby-forum.com/t/glassfish-gem-and-warble/179474 "2009-12-02T10:24:52Z")

</div>

I’m starting to consider my app deployment. Currently, I’m just running a sinatra app from my source tree, but I’d like to package things up so I can deploy to a production server easily. I see that warble packs up…

---

## [Rainbows! 0.8.0](https://www.ruby-forum.com/t/rainbows-0-8-0/179702)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [December 2, 2009, 10:13am UTC](https://www.ruby-forum.com/t/rainbows-0-8-0/179702 "2009-12-02T10:13:10Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily b…

---

## [Access Databases and ADODB](https://www.ruby-forum.com/t/access-databases-and-adodb/179679)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 2\
**Last updated:** [December 2, 2009, 9:04am UTC](https://www.ruby-forum.com/t/access-databases-and-adodb/179679 "2009-12-02T09:04:21Z")

</div>

For accessing Jet databases with ADODB, this is an interesting article: However I can’t find more complete information on the methods available. Can anyone suggest a good source?

---

## [How to](https://www.ruby-forum.com/t/how-to/179653)

<div class="topic-metadata">

**Author:** [@HackerGene](https://www.ruby-forum.com/u/HackerGene)\
**Replies:** 3\
**Last updated:** [December 2, 2009, 6:05am UTC](https://www.ruby-forum.com/t/how-to/179653 "2009-12-02T06:05:38Z")

</div>

Hi , I’m new to ruby programming language located in China. Seeing that there is a wrong typing mistake in the page Ruby 程序设计语言官方网站. The word “Gogole” should to be like “Google”. I would like to do the translation wi…

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

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