# Ruby

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

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

---

## [Jruby-complete.jar compiled with Java 5?](https://www.ruby-forum.com/t/jruby-complete-jar-compiled-with-java-5/157548)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 1:15am UTC](https://www.ruby-forum.com/t/jruby-complete-jar-compiled-with-java-5/157548 "2009-01-13T01:15:03Z")

</div>

I get the feeling that jruby-complete.jar is compiled with Java 6, because I get this error: Error: Some library (perhaps JRuby) was built with a later JVM version. Please use libraries built with the version you int…

---

## [New Revisions](https://www.ruby-forum.com/t/new-revisions/157547)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 13, 2009, 12:32am UTC](https://www.ruby-forum.com/t/new-revisions/157547 "2009-01-13T00:32:56Z")

</div>

First, new revisions of Git and SVN have been pushed. Second, I haven’t seen much activity on the list that involves SVN, so I think it is time to stop updating it, and time to stop allowing commits to it. This Friday…

---

## [How to disable the default selection of a radio button?](https://www.ruby-forum.com/t/how-to-disable-the-default-selection-of-a-radio-button/157412)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [January 13, 2009, 12:10am UTC](https://www.ruby-forum.com/t/how-to-disable-the-default-selection-of-a-radio-button/157412 "2009-01-13T00:10:43Z")

</div>

Hi all, I use FXRuby to create 5 radio buttons and tie them to FXDataTarget. When I run the codes a defautl button is always selected. Is it possible to disable this feature so that no button is chosen at the first …

---

## [MRI 1.8.6 bug - exit is ignored if ensure clause throws exception which is caught by outer rescue](https://www.ruby-forum.com/t/mri-1-8-6-bug-exit-is-ignored-if-ensure-clause-throws-exception-which-is-caught-by-outer-rescue/157535)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 4\
**Last updated:** [January 13, 2009, 12:03am UTC](https://www.ruby-forum.com/t/mri-1-8-6-bug-exit-is-ignored-if-ensure-clause-throws-exception-which-is-caught-by-outer-rescue/157535 "2009-01-13T00:03:01Z")

</div>

The following code snippet does print “after foo” when using MRI 1.8.6 on Windows Vista, showing that exit is ignored. Any thoughts on whether this is by design, a known bug, or a new issue? If it’s the latter, should…

---

## [Segmentation fault trying to query MySQL](https://www.ruby-forum.com/t/segmentation-fault-trying-to-query-mysql/157529)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 1\
**Last updated:** [January 12, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/segmentation-fault-trying-to-query-mysql/157529 "2009-01-12T23:20:46Z")

</div>

Hi all, I’m trying to use DBI to connect to MySQL from ruby. Unfortunately, as soon as I use execute to try to send a query, it seg-faults. Here’s a sample of code which does this: require ‘rubygems’ gem ‘mysql’ ge…

---

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

<div class="topic-metadata">

**Author:** [@dash](https://www.ruby-forum.com/u/dash)\
**Replies:** 21\
**Last updated:** [January 12, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/how-ruby/157290 "2009-01-12T23:11:15Z")

</div>

Well i read the posts on “Why ruby” now I wanted to know “How Ruby”: I recently chanced upon this forum while on internet. I too have recently taken an interest in learning Ruby. The thing is I get sort of overwhelmed…

---

## [Please help a newbie:](https://www.ruby-forum.com/t/please-help-a-newbie/157369)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 1\
**Last updated:** [January 12, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/please-help-a-newbie/157369 "2009-01-12T22:46:25Z")

</div>

Whenever I run any script on my web app (rake commands, script/server), I get the following error, and I have no idea what to do about it: /opt/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.7/lib/libxml\_ruby.bundle: \[B…

---

## [ETA for Visual Studio Support](https://www.ruby-forum.com/t/eta-for-visual-studio-support/157502)

<div class="topic-metadata">

**Author:** [@trptcolin](https://www.ruby-forum.com/u/trptcolin)\
**Replies:** 1\
**Last updated:** [January 12, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/eta-for-visual-studio-support/157502 "2009-01-12T22:29:54Z")

</div>

Hi, I was wondering whether there is an ETA for IronRuby being inside Visual Studio (with, for example, code highlighting and/or intellisense)? Thanks, Colin J.

---

## [Code Review: CompositeConversions3](https://www.ruby-forum.com/t/code-review-compositeconversions3/157366)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [January 12, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/code-review-compositeconversions3/157366 "2009-01-12T22:29:15Z")

</div>

tfpt review “/shelveset:CompositeConversions3;REDMOND\\tomat” DLR change (interpreter) Fixes interpretation of UnaryExpresion cast with a custom method. Ruby changes Implements composite conversions and defines de…

---

## [Array problem with sorting - maybe easy but not for me](https://www.ruby-forum.com/t/array-problem-with-sorting-maybe-easy-but-not-for-me/157478)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 2\
**Last updated:** [January 12, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/array-problem-with-sorting-maybe-easy-but-not-for-me/157478 "2009-01-12T22:21:27Z")

</div>

This code reads in a text file with comma separated values. Problem is, some values are missing and it causing other values to ride up the list. I want to replace those values with string ‘no value’ then adjust there …

---

## [General setup questions](https://www.ruby-forum.com/t/general-setup-questions/157479)

<div class="topic-metadata">

**Author:** [@tmatheson](https://www.ruby-forum.com/u/tmatheson)\
**Replies:** 3\
**Last updated:** [January 12, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/general-setup-questions/157479 "2009-01-12T22:01:32Z")

</div>

Hello all, I am venturing into the wide world of Ruby and IronRuby. I have the IronRuby source code setup and building thanks to Ben H. and some clarifications from this forum. I am building via Visual Studio. Curr…

---

## [Does ruby support global expression?](https://www.ruby-forum.com/t/does-ruby-support-global-expression/157515)

<div class="topic-metadata">

**Author:** [@Jarod\_Z](https://www.ruby-forum.com/u/Jarod_Z)\
**Replies:** 3\
**Last updated:** [January 12, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/does-ruby-support-global-expression/157515 "2009-01-12T21:01:12Z")

</div>

Hi, all In my project, there are some rules using global expression( '\*' as one or more characters ) to match some functions’ output. Such as: rule1e$B!'e(B the \* apple (will match the output “the red apple”) r…

---

## [Data stream variables](https://www.ruby-forum.com/t/data-stream-variables/157510)

<div class="topic-metadata">

**Author:** [@helpy](https://www.ruby-forum.com/u/helpy)\
**Replies:** 6\
**Last updated:** [January 12, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/data-stream-variables/157510 "2009-01-12T20:45:54Z")

</div>

Hi I want to print all lines wihtch contains the string “Open” from a bunch of ‘xml’ files. Additionally I want to print the filename and the line number of the match. The problem with the following snippet is, that …

---

## [How can I access after an exception (in the rescue area) the file, class, method, line number for wh](https://www.ruby-forum.com/t/how-can-i-access-after-an-exception-in-the-rescue-area-the-file-class-method-line-number-for-wh/157435)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [January 12, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/how-can-i-access-after-an-exception-in-the-rescue-area-the-file-class-method-line-number-for-wh/157435 "2009-01-12T19:29:18Z")

</div>

Hi, How can I access after an exception (in the rescue area) the following information do you know (i.e. associated with where the error occured)? file, line number class method thanks

---

## [ANN: Sequel 2.9.0 Released](https://www.ruby-forum.com/t/ann-sequel-2-9-0-released/157530)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [January 12, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/ann-sequel-2-9-0-released/157530 "2009-01-12T18:53:01Z")

</div>

Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but comprehensive ORM layer for mapping records to Ruby objec…

---

## [Bug with Ruby/Tk encoding (ruby-1.9.1-rc1)](https://www.ruby-forum.com/t/bug-with-ruby-tk-encoding-ruby-1-9-1-rc1/156997)

<div class="topic-metadata">

**Author:** [@mdiam](https://www.ruby-forum.com/u/mdiam)\
**Replies:** 6\
**Last updated:** [January 12, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/bug-with-ruby-tk-encoding-ruby-1-9-1-rc1/156997 "2009-01-12T18:31:08Z")

</div>

Bonjour à tous, I have a script starting like this : #!/usr/bin/env ruby encoding: iso8859-1 When I lauch it, the following error occurs: …/ruby-1.9.1-rc1/lib/ruby/1.9.1/tk.rb:3028:in find': unknown encoding name - (…

---

## [Jruby -S rake gems:unpack:dependencies doesn't work](https://www.ruby-forum.com/t/jruby-s-rake-gemsdependencies-doesnt-work/157528)

<div class="topic-metadata">

**Author:** [@SchultzS\_Darcy\_L](https://www.ruby-forum.com/u/SchultzS_Darcy_L)\
**Replies:** 0\
**Last updated:** [January 12, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/jruby-s-rake-gemsdependencies-doesnt-work/157528 "2009-01-12T18:18:12Z")

</div>

I thought I’d try to “vendor everything” rather than letting warbler unpack the gems at build time, but if I place these lines in my environment.rb file: config.gem ‘activerecord-jdbc-adapter’, :version =\> ‘0.9’ conf…

---

## [Code Review: Thread#raise](https://www.ruby-forum.com/t/code-review-thread-raise/156554)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 20\
**Last updated:** [January 12, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/code-review-thread-raise/156554 "2009-01-12T17:25:19Z")

</div>

tfpt review “/shelveset:raise;REDMOND\\sborde” Comment : Implements Thread#raise using Thread.Abort, and added tests for it Implemented stress mode (RubyOptions.UseThreadAbortForSyncRaise) which found more issues. Fi…

---

## [WANTED: need a real web API for rubyforge.org](https://www.ruby-forum.com/t/wanted-need-a-real-web-api-for-rubyforge-org/156976)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 37\
**Last updated:** [January 12, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/wanted-need-a-real-web-api-for-rubyforge-org/156976 "2009-01-12T16:35:07Z")

</div>

I just released version 1.0.2 of the rubyforge command line client. It sucks. We could do a lot better. In particular, we really need a real API for rubyforge, not a web scraper. It is too error prone. It would need t…

---

## [Sort hash, hash key and val off by one, see attached](https://www.ruby-forum.com/t/sort-hash-hash-key-and-val-off-by-one-see-attached/157432)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 5\
**Last updated:** [January 12, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/sort-hash-hash-key-and-val-off-by-one-see-attached/157432 "2009-01-12T15:06:42Z")

</div>

Please help me with this. I have been trying for days to get this right. I don’t see a next method for a hash. Just don’t know what to do. Thanks MC Temp1.txt PersonID,PersonID ID,ID LastName,Social Security \<need t…

---

## [Reccommended work flow for unit tests and databases in ruby](https://www.ruby-forum.com/t/reccommended-work-flow-for-unit-tests-and-databases-in-ruby/157452)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 14\
**Last updated:** [January 12, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/reccommended-work-flow-for-unit-tests-and-databases-in-ruby/157452 "2009-01-12T14:21:20Z")

</div>

How does one go around creating unit tests for database tables during developement. Is there a rock solid work flow plan that everyone uses. Im new to dbs and relatively so with unit tests. I have my project and it us…

---

## [Need potential reciprocal link partners](https://www.ruby-forum.com/t/need-potential-reciprocal-link-partners/157509)

<div class="topic-metadata">

**Author:** [@perceptwilli](https://www.ruby-forum.com/u/perceptwilli)\
**Replies:** 0\
**Last updated:** [January 12, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/need-potential-reciprocal-link-partners/157509 "2009-01-12T13:39:27Z")

</div>

Hello Everyone, My website’s backlinks are very less, less backlinks causes low pagerank. However i want to increase my website’s backlinks so please tell me what to do. Its 54 before a month and now drop down at 19…

---

## [Adding new Method in Controller](https://www.ruby-forum.com/t/adding-new-method-in-controller/157507)

<div class="topic-metadata">

**Author:** [@subha](https://www.ruby-forum.com/u/subha)\
**Replies:** 1\
**Last updated:** [January 12, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/adding-new-method-in-controller/157507 "2009-01-12T13:35:53Z")

</div>

While adding a new functionality in controller it gives me “Unknown action” error. Can anyone help me

---

## [Unable to Upload/Download file](https://www.ruby-forum.com/t/unable-to-upload-download-file/157508)

<div class="topic-metadata">

**Author:** [@rajshekar\_ruby](https://www.ruby-forum.com/u/rajshekar_ruby)\
**Replies:** 0\
**Last updated:** [January 12, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/unable-to-upload-download-file/157508 "2009-01-12T13:06:45Z")

</div>

Hi, I am facing some problem while Uploading/Downloading file can anyone help me in this. ie.file\_field(:id,“download”).click ie.file\_field(:name,“uploadfile”).set(‘C:/a.txt’)

---

## [Authiorization plugin problem](https://www.ruby-forum.com/t/authiorization-plugin-problem/157501)

<div class="topic-metadata">

**Author:** [@pshah](https://www.ruby-forum.com/u/pshah)\
**Replies:** 0\
**Last updated:** [January 12, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/authiorization-plugin-problem/157501 "2009-01-12T12:06:07Z")

</div>

hi, i try to use authorization plugin but i got errors “undefined method \`has\_role’” can any one explain aout how i have to write in model and controller? i have read its rdoc but don’t get all things exactly. And i…

---

## [Dynamically created attributes](https://www.ruby-forum.com/t/dynamically-created-attributes/157490)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 4\
**Last updated:** [January 12, 2009, 11:03am UTC](https://www.ruby-forum.com/t/dynamically-created-attributes/157490 "2009-01-12T11:03:34Z")

</div>

I’d like to specify a quantity of object attributes when creating an instance of an object. For example, I would like to create a Grid object with 4 different ‘row’ attributes like this: Grid.new(4). Here’s some dirty…

---

## [Mswin32 $B$N(B trunk $B$G$N(B test-all $B$N7k2L(B](https://www.ruby-forum.com/t/mswin32-b-n-b-trunk-b-g-n-b-test-all-b-n7k2l-b/157440)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 2\
**Last updated:** [January 12, 2009, 3:26am UTC](https://www.ruby-forum.com/t/mswin32-b-n-b-trunk-b-g-n-b-test-all-b-n7k2l-b/157440 "2009-01-12T03:26:38Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(Bmswin32 e$B$Ne(B trunk e$B$G$Ne(B test-all e$B$N7k2L$G$9!%e(B OS: Vista 32bit cl: Microsoft(R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86 nmake test-all TESTS=‘-x …

---

## [Redmine startup fails](https://www.ruby-forum.com/t/redmine-startup-fails/157261)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 8\
**Last updated:** [January 12, 2009, 2:59am UTC](https://www.ruby-forum.com/t/redmine-startup-fails/157261 "2009-01-12T02:59:43Z")

</div>

No problems starting redmine on MRI, but I get the following on JRuby head: \\redmine\>jruby script/server -e production =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails 2.1.2 application star…

---

## [Git changes](https://www.ruby-forum.com/t/git-changes/157383)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 6\
**Last updated:** [January 12, 2009, 1:55am UTC](https://www.ruby-forum.com/t/git-changes/157383 "2009-01-12T01:55:22Z")

</div>

I’ve gone through and renamed files in Git. I’ve also rm’d the extra files. The renames will probably break builds on Mono, but I don’t have the head of Mono built. I’ll push today’s changes tomorrow. JD

---

## [Amalgalite 0.6.0 Released](https://www.ruby-forum.com/t/amalgalite-0-6-0-released/157473)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 2\
**Last updated:** [January 12, 2009, 1:54am UTC](https://www.ruby-forum.com/t/amalgalite-0-6-0-released/157473 "2009-01-12T01:54:12Z")

</div>

amalgalite version 0.6.0 has been released. gem install amalgalite http://copiousfreetime.rubyforge.org/amalgalite/ Amalgalite embeds the SQLite database engine in a ruby extension. There is no need to install SQLi…

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

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