# Ruby

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

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

---

## [String Indexing](https://www.ruby-forum.com/t/string-indexing/168071)

<div class="topic-metadata">

**Author:** [@rubist](https://www.ruby-forum.com/u/rubist)\
**Replies:** 4\
**Last updated:** [May 15, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/string-indexing/168071 "2009-05-15T15:40:50Z")

</div>

Hi all, I have a piece of data like so: aaaaaaa bbbbbbb ccccccc 123 ddddddd yes eeeeeee I need to find the string yes and the string 123, however I first have to find the string yes. I have this code to do this…

---

## [ActiveRecordError in 'columns' when working with Oracle](https://www.ruby-forum.com/t/activerecorderror-in-columns-when-working-with-oracle/165612)

<div class="topic-metadata">

**Author:** [@kaey-7](https://www.ruby-forum.com/u/kaey-7)\
**Replies:** 8\
**Last updated:** [May 15, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/activerecorderror-in-columns-when-working-with-oracle/165612 "2009-05-15T14:11:13Z")

</div>

I have deployed a jruby app in tomcat (5.5, JVM 1.5). The app runs fine when using a mysql db but with Oracle (10g) it apparently is not able to read the columns. My database connection settings: adapter: jdbc dr…

---

## [Soap4r and WSDL](https://www.ruby-forum.com/t/soap4r-and-wsdl/167998)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/soap4r-and-wsdl/167998 "2009-05-15T13:12:52Z")

</div>

Hi all! I’m trying to use a web service of my payment provider by making SOAP calls to their server. I’m using the WSDL that is attached to this post (couldn’t add urls though ruby-forum.com) For some reason I can’t …

---

## [Convert progressive jpg to non-progressive jpg](https://www.ruby-forum.com/t/convert-progressive-jpg-to-non-progressive-jpg/168067)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/convert-progressive-jpg-to-non-progressive-jpg/168067 "2009-05-15T12:42:40Z")

</div>

how to convert progressive jpg images to non-progressive jpg by use of Rmagick or anyother rubylib ?

---

## [Ruby loops and definitions help?](https://www.ruby-forum.com/t/ruby-loops-and-definitions-help/168055)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 11:51am UTC](https://www.ruby-forum.com/t/ruby-loops-and-definitions-help/168055 "2009-05-15T11:51:36Z")

</div>

Hello. I’m looking to construct a loop that defines an array of \[apple, banana, cherry\] like this: @apple = apple @banana = banana @cherry = cherry I’m thinking it’s something in this form: \[apple, banana, cherry\].…

---

## [\[Bug #1470\] class definition under the anonymouse module dumps core](https://www.ruby-forum.com/t/bug-1470-class-definition-under-the-anonymouse-module-dumps-core/168032)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 8:18am UTC](https://www.ruby-forum.com/t/bug-1470-class-definition-under-the-anonymouse-module-dumps-core/168032 "2009-05-15T08:18:00Z")

</div>

Bug #1470: class definition under the anonymouse module dumps core http://redmine.ruby-lang.org/issues/show/1470 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-0…

---

## [BUG: "Mutual join" deadlock detection faulty in 1.8.6 and 1.8.7](https://www.ruby-forum.com/t/bug-mutual-join-deadlock-detection-faulty-in-1-8-6-and-1-8-7/168029)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 7:46am UTC](https://www.ruby-forum.com/t/bug-mutual-join-deadlock-detection-faulty-in-1-8-6-and-1-8-7/168029 "2009-05-15T07:46:59Z")

</div>

I tried submitting this at Ruby Issue Tracking System but it said “Â« Mailing list Â» can’t be blank” but wouldn’t let me fill in anything in that field. If a third thread is involved, the code in eval.c in function …

---

## [Maven\_gem 0.0.2 Released](https://www.ruby-forum.com/t/maven-gem-0-0-2-released/168036)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:31am UTC](https://www.ruby-forum.com/t/maven-gem-0-0-2-released/168036 "2009-05-15T06:31:24Z")

</div>

maven\_gem version 0.0.2 has been released! http://github.com/jruby/maven\_gem MavenGem is a tool, library, and gem plugin to install any Maven-published Java library as though it were a gem. Changes: 0.0.2 / 2009-0…

---

## [\[ANN\] maven\_gem 0.0.2 Released](https://www.ruby-forum.com/t/ann-maven-gem-0-0-2-released/168037)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:31am UTC](https://www.ruby-forum.com/t/ann-maven-gem-0-0-2-released/168037 "2009-05-15T06:31:24Z")

</div>

maven\_gem version 0.0.2 has been released! http://github.com/jruby/maven\_gem MavenGem is a tool, library, and gem plugin to install any Maven-published Java library as though it were a gem. Changes: 0.0.2 / 2009-0…

---

## [Bitescript 0.0.2 Released](https://www.ruby-forum.com/t/bitescript-0-0-2-released/168035)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:17am UTC](https://www.ruby-forum.com/t/bitescript-0-0-2-released/168035 "2009-05-15T06:17:21Z")

</div>

bitescript version 0.0.2 has been released! http://kenai.com/projects/jvmscript BiteScript is a Ruby DSL for generating Java bytecode and classes. Changes: 0.0.2 / 2009-05-14 Improve use support for packages, mak…

---

## [\[ANN\] bitescript 0.0.2 Released](https://www.ruby-forum.com/t/ann-bitescript-0-0-2-released/168033)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:15am UTC](https://www.ruby-forum.com/t/ann-bitescript-0-0-2-released/168033 "2009-05-15T06:15:36Z")

</div>

bitescript version 0.0.2 has been released! http://kenai.com/projects/jvmscript BiteScript is a Ruby DSL for generating Java bytecode and classes. Changes: 0.0.2 / 2009-05-14 Improve use support for packages, mak…

---

## [IronRuby at RailsConf 2009](https://www.ruby-forum.com/t/ironruby-at-railsconf-2009/168031)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 5:53am UTC](https://www.ruby-forum.com/t/ironruby-at-railsconf-2009/168031 "2009-05-15T05:53:58Z")

</div>

Write-up of the IronRuby R.Conf 2009 talk: http://blog.jimmy.schementi.com/2009/05/ironruby-at-railsconf-2009.html Hightlights: IronRuby runs real Rails applications: o …

---

## [Bluecloth 2.0.2](https://www.ruby-forum.com/t/bluecloth-2-0-2/168030)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 5:48am UTC](https://www.ruby-forum.com/t/bluecloth-2-0-2/168030 "2009-05-15T05:48:06Z")

</div>

Version 2.0.2 of bluecloth has been released. BlueCloth is a Ruby implementation of \[Markdown\]\[1\], a text-to-HTML conversion tool for web writers. To quote from the project page: Markdown allows you to write using an …

---

## [Code Review: ironruby-rack](https://www.ruby-forum.com/t/code-review-ironruby-rack/168027)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 4:54am UTC](https://www.ruby-forum.com/t/code-review-ironruby-rack/168027 "2009-05-15T04:54:19Z")

</div>

http://github.com/jschementi/ironruby/tree/f57b6adec5fcb2896ed850683c0b1fd39ded23f0/Merlin/Main/Hosts/IronRuby.Rack ironruby-rack: Run Rack-based web applications on IIS with IronRuby What it is: http://blog.jimmy.sch…

---

## [Code Review: Little updates from RailsConf](https://www.ruby-forum.com/t/code-review-little-updates-from-railsconf/168025)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:42am UTC](https://www.ruby-forum.com/t/code-review-little-updates-from-railsconf/168025 "2009-05-15T03:42:48Z")

</div>

Code Review: e562d8http://github.com/jschementi/ironruby/commit/e562d8bbd338e06b89f6e067542d40bd11b21921 Adds irackup and fixes irake (Method#to\_proc hack)http://github.com/jschementi/ironruby/commit/e562d8bbd338e06b8…

---

## [JRuby, fork, exec and daemons (oh my)](https://www.ruby-forum.com/t/jruby-fork-exec-and-daemons-oh-my/168022)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 4\
**Last updated:** [May 15, 2009, 3:17am UTC](https://www.ruby-forum.com/t/jruby-fork-exec-and-daemons-oh-my/168022 "2009-05-15T03:17:34Z")

</div>

The default setting under JRuby gives a very nice warning when fork is used. It says that this is “dangerous” and is therefore turned off by default. However, Headius just put up a blog post about using FFI in JRuby t…

---

## [Syntactic sugar idea](https://www.ruby-forum.com/t/syntactic-sugar-idea/167931)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 25\
**Last updated:** [May 15, 2009, 2:45am UTC](https://www.ruby-forum.com/t/syntactic-sugar-idea/167931 "2009-05-15T02:45:53Z")

</div>

It seems that often an object will be passed into a block only to invoke a method of that object: arr.map{ |obj| obj.some\_method } So I had the (weird? stupid?) thought that it would be nice to have some syntactic su…

---

## [1k+ concurrent connections](https://www.ruby-forum.com/t/1k-concurrent-connections/168009)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 1:30am UTC](https://www.ruby-forum.com/t/1k-concurrent-connections/168009 "2009-05-15T01:30:59Z")

</div>

I have tons of gprs modems that connect at the same port(ex 9000), but inside our network, every modem should have a unique port so the applications can talk with they. The application its simple, i get a connection r…

---

## [Find previous & next in array](https://www.ruby-forum.com/t/find-previous-next-in-array/168017)

<div class="topic-metadata">

**Author:** [@Boby\_Selamet\_Harton](https://www.ruby-forum.com/u/Boby_Selamet_Harton)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:21am UTC](https://www.ruby-forum.com/t/find-previous-next-in-array/168017 "2009-05-15T00:21:57Z")

</div>

My array is \[:a,:b,:c,:d,:e,:f\].

---

## [RMagick 2.9.2](https://www.ruby-forum.com/t/rmagick-2-9-2/168014)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:11am UTC](https://www.ruby-forum.com/t/rmagick-2-9-2/168014 "2009-05-15T00:11:59Z")

</div>

I’ve just uploaded RMagick 2.9.2 to RubyForge. This release fixes a stack buffer overflow in the Magick::TypeMetric#to\_s method reported by Roman Simecek. The detailed change log is here: http://rubyforge.org/frs/show…

---

## [How do you create a large number of irb commands?](https://www.ruby-forum.com/t/how-do-you-create-a-large-number-of-irb-commands/167888)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 12:05am UTC](https://www.ruby-forum.com/t/how-do-you-create-a-large-number-of-irb-commands/167888 "2009-05-15T00:05:30Z")

</div>

I’m wondering what you all consider the best way for creating a large number of irb commands. By commands I’m referring to methods for the default irb object like irb,fg and jobs. Here are some of the different ways t…

---

## [Can you get the 1st occurrence of a value using grep?](https://www.ruby-forum.com/t/can-you-get-the-1st-occurrence-of-a-value-using-grep/168008)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/can-you-get-the-1st-occurrence-of-a-value-using-grep/168008 "2009-05-14T23:30:56Z")

</div>

Can you get a 1st occurence of a sting inside a huge text file? For instance, I know that there will be 1 or more occurrences of a the string ‘fail’ in a text file and I only want to get the first line containing the…

---

## [Base32hex (rfc 4648)](https://www.ruby-forum.com/t/base32hex-rfc-4648/167406)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/base32hex-rfc-4648/167406 "2009-05-14T23:06:17Z")

</div>

Hi - Does anyone know if there is existing Ruby code which implements base32hex encoding (defined in RFC 4648)? I couldn’t find one with google… Thanks very much for your help! Alex.

---

## [Aaah yes ... clr interop](https://www.ruby-forum.com/t/aaah-yes-clr-interop/168003)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 10:36pm UTC](https://www.ruby-forum.com/t/aaah-yes-clr-interop/168003 "2009-05-14T22:36:57Z")

</div>

I’m sorry I’ll probably keep hitting all those points while I’m writing integration specs. Ok so would it be possible to have a way to configure the underlying type which methods it needs to redefine with a new opera…

---

## [How can I use the "test/unit" right](https://www.ruby-forum.com/t/how-can-i-use-the-test-unit-right/167969)

<div class="topic-metadata">

**Author:** [@artoxvw](https://www.ruby-forum.com/u/artoxvw)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/how-can-i-use-the-test-unit-right/167969 "2009-05-14T22:18:05Z")

</div>

when I run the following code require ‘test/unit’ class TC\_Pram \< Test::Unit::TestCase def initialize(name) @name=name end def test\_array puts assert\_equal(2,@name\[2\]) end end tc=TC\_Pram.new(“wang”) tc.test\_ar…

---

## [JRuby bug?](https://www.ruby-forum.com/t/jruby-bug/168001)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/jruby-bug/168001 "2009-05-14T22:09:16Z")

</div>

\-\> jruby --version jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) \[i386-java\] -\> java -version java version “1.6.0\_0” IcedTea6 1.4 (fedora-15.b14.fc10-i386) Runtime Environment (build 1.6.0\_0-b14) O…

---

## [IronRuby and Cucumber - undefined method \`bin\_path' for Gem:Module (NoMethodError)](https://www.ruby-forum.com/t/ironruby-and-cucumber-undefined-method-bin-path-for-gem-module-nomethoderror/167453)

<div class="topic-metadata">

**Author:** [@Matt\_Otto](https://www.ruby-forum.com/u/Matt_Otto)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/ironruby-and-cucumber-undefined-method-bin-path-for-gem-module-nomethoderror/167453 "2009-05-14T19:25:49Z")

</div>

Hello, I’m running into the following issue trying to run cucumber with the latest iron ruby source from git: c:/ruby/bin/cucumber:19: undefined method \`bin\_path’ for Gem:Module (NoMethodError) This occurs when runn…

---

## [Upload an image on server](https://www.ruby-forum.com/t/upload-an-image-on-server/167990)

<div class="topic-metadata">

**Author:** [@gracei](https://www.ruby-forum.com/u/gracei)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/upload-an-image-on-server/167990 "2009-05-14T18:53:20Z")

</div>

Hello, I am new to ruby and ruby on rails and I am looking for a way to upload an image on a server. I tried with the ruby http.post method : http.post(‘serveraddress’, image) but it does no seem to work. Also is th…

---

## [Nokogiri on Mediatemple gs](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988)

<div class="topic-metadata">

**Author:** [@enzor](https://www.ruby-forum.com/u/enzor)\
**Replies:** 4\
**Last updated:** [May 14, 2009, 6:47pm UTC](https://www.ruby-forum.com/t/nokogiri-on-mediatemple-gs/167988 "2009-05-14T18:47:20Z")

</div>

Hi there! Has anyone tried to install the Nokogiri gem on a Mediatemple Grid-Service? I got a function in my rails app that needs this library, and when i try to install it i got the problem: libxml2 is missing. tr…

---

## [Re: \[ANN\] Ruby 1.9.1-p129$B%j%j!\<%9(B](https://www.ruby-forum.com/t/re-ann-ruby-1-9-1-p129-b-j-j-9-b/167928)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/re-ann-ruby-1-9-1-p129-b-j-j-9-b/167928 "2009-05-14T18:30:31Z")

</div>

e$B$3$s$K$A$O!#e(B Ruby 1.9.1-p129e$B$N%j%j!\<%9!"$\*$a$G$H$&$4$6$$$^$9!#e(B e$B$$$/$D$+\<j85$G%3%s%Q%$%k;~$N%&%)!\<%K%s%0$G5$$,$D$$$?$3$H$rJs9p$7$^$9!#e(B ext/etc/etc.c uid\_te$B$,:FDj5A$5$l$?$H=P$^$9!#e(B #ifndef HAVE…

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

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