# Ruby

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

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

---

## [Hexdump (#171)](https://www.ruby-forum.com/t/hexdump-171/144138)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 12\
**Last updated:** [July 31, 2008, 1:54am UTC](https://www.ruby-forum.com/t/hexdump-171/144138 "2008-07-31T01:54:06Z")

</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…

---

## [Suggestions for improving a trivial tag parser](https://www.ruby-forum.com/t/suggestions-for-improving-a-trivial-tag-parser/144537)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 10\
**Last updated:** [July 31, 2008, 1:08am UTC](https://www.ruby-forum.com/t/suggestions-for-improving-a-trivial-tag-parser/144537 "2008-07-31T01:08:30Z")

</div>

Hi folks, I need to take strings that have embedded and tags and split them out into an array. Here are some examples: No need to ensure valid pairs, just need to break out tags from the text #--------------------…

---

## [Checking to see if a file is open (newbie)?](https://www.ruby-forum.com/t/checking-to-see-if-a-file-is-open-newbie/144566)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 12:26am UTC](https://www.ruby-forum.com/t/checking-to-see-if-a-file-is-open-newbie/144566 "2008-07-31T00:26:25Z")

</div>

I’m almost embarassed to ask this, but does Ruby have any method (e.g. File.open?) to check to see if a file is open? I see many methods in File class, but nothing that addresses this directly. I googled it a number…

---

## [Still stuck with rubygems-update](https://www.ruby-forum.com/t/still-stuck-with-rubygems-update/144246)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 2\
**Last updated:** [July 30, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/still-stuck-with-rubygems-update/144246 "2008-07-30T23:26:10Z")

</div>

$ sudo gem install -r rubygems-update Successfully installed rubygems-update-1.2.0 1 gem installed $ sudo update\_rubygems Installing RubyGems 1.2.0 setup.rb:108: undefined method \`ruby\_version’ for Gem:Module (NoMe…

---

## [Net/ssh unsupported algorithm: DSS1withDSA (OpenSSL::PKey::PKeyError)](https://www.ruby-forum.com/t/net-ssh-unsupported-algorithm-dss1withdsa-openssl-pkeyerror/144418)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 4\
**Last updated:** [July 30, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/net-ssh-unsupported-algorithm-dss1withdsa-openssl-pkeyerror/144418 "2008-07-30T23:25:35Z")

</div>

I’ve migrated from CRuby to jRuby with the same code for ssh connection. However, within jRuby i get this error message : Exception in thread “AWT-EventQueue-0” /opt/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.3/lib/net/…

---

## [How regenerate ri data?](https://www.ruby-forum.com/t/how-regenerate-ri-data/144476)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 7\
**Last updated:** [July 30, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/how-regenerate-ri-data/144476 "2008-07-30T23:01:01Z")

</div>

http://rubyforge.org/forum/forum.php?forum\_id=25981: ri now walks the ancestors of a class looking for a method e.g. ri File#read displays documentation for IO#read (may require regeneration of ri data) Sounds coo…

---

## [Loop behavior not understood (newbie)](https://www.ruby-forum.com/t/loop-behavior-not-understood-newbie/144545)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 9\
**Last updated:** [July 30, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/loop-behavior-not-understood-newbie/144545 "2008-07-30T22:30:17Z")

</div>

My coding looks like this: =================================================================== detailedModel = File.open( “detailed\_model”, “r” ) detailedModelModified = File.open( “detailed\_model\_mod”, “w” ) string …

---

## [Issue with Java constructor having variable-length arguments](https://www.ruby-forum.com/t/issue-with-java-constructor-having-variable-length-arguments/144536)

<div class="topic-metadata">

**Author:** [@Sensual](https://www.ruby-forum.com/u/Sensual)\
**Replies:** 3\
**Last updated:** [July 30, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/issue-with-java-constructor-having-variable-length-arguments/144536 "2008-07-30T21:30:14Z")

</div>

I’m not sure if this issue is definitely related to what I stated in the subject line. My specific problem is the following line of code doesn’t work: filter = javax.swing.filechooser.FileNameExtensionFilter.new(“Imag…

---

## [Concurrent Ruby?](https://www.ruby-forum.com/t/concurrent-ruby/144376)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 13\
**Last updated:** [July 30, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/concurrent-ruby/144376 "2008-07-30T21:23:48Z")

</div>

Apologies if this is a really stupid question, I am new to programming, but after reading about Erlang and it’s speed increase on multi-core devices I had to ask. With Matz supposedly making Ruby 2.0 right now, is it …

---

## [OT: comp.lang.ruby spam](https://www.ruby-forum.com/t/ot-comp-lang-ruby-spam/144463)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 4\
**Last updated:** [July 30, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/ot-comp-lang-ruby-spam/144463 "2008-07-30T19:10:50Z")

</div>

Hi, It seems a lot of google groups are receiving spam posts. In the Ruby Watir google group we have pended all first time posts (they only normally spam once off one name) and it seems to be working quite well. May…

---

## [Issue with the gems using jruby-complete](https://www.ruby-forum.com/t/issue-with-the-gems-using-jruby-complete/144528)

<div class="topic-metadata">

**Author:** [@alisajjad\_mushtaq](https://www.ruby-forum.com/u/alisajjad_mushtaq)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/issue-with-the-gems-using-jruby-complete/144528 "2008-07-30T18:39:14Z")

</div>

Hi all, I’ve got another problem with the rubygems which I want to use jruby-complete.jar I have the jruby-complete.jar file which has rails, active record jdbc adapter with h2 adapter inside the jar. I have this si…

---

## [Packaging JRuby Swing app using Profligacy into a .jar](https://www.ruby-forum.com/t/packaging-jruby-swing-app-using-profligacy-into-a-jar/144366)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 2\
**Last updated:** [July 30, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/packaging-jruby-swing-app-using-profligacy-into-a-jar/144366 "2008-07-30T18:35:43Z")

</div>

On Jul 28, 7:01 pm, “Vladimir S.” removed\_email\_address@domain.invalid wrote: Hi Chris, Maybe this article by Matt Fletcher would be of help:http:// spin.atomicobject.com/2008/07/02/rolling-a-jruby-desktop-appli… Th…

---

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

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-recognize-object/144512 "2008-07-30T15:10:49Z")

</div>

Hello, I want to automate my flex application, and i found that Funfx and Ruby is the best one to automate a flex application. I was able to recognize text and button as well combobox but i am not able to recognize th…

---

## [Insert 10 line of code in .doc file](https://www.ruby-forum.com/t/insert-10-line-of-code-in-doc-file/144289)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/insert-10-line-of-code-in-doc-file/144289 "2008-07-30T13:00:30Z")

</div>

Hi when i click one link its opening one document but i need to insert 10 lines of code in that document at the time of loading… is any one knows the solution please help…

---

## [Interesting Array Initialization Typo](https://www.ruby-forum.com/t/interesting-array-initialization-typo/144125)

<div class="topic-metadata">

**Author:** [@lunatyq](https://www.ruby-forum.com/u/lunatyq)\
**Replies:** 11\
**Last updated:** [July 30, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/interesting-array-initialization-typo/144125 "2008-07-30T12:29:21Z")

</div>

When initializing for example : \[ \[1, 2\], \[2, 3\], \[3, 2\] \] You may forget about one colon, you will get: \[ \[1, 2\] \[2, 3\], \[3, 2\] \] =\> \[\[\], \[3, 2\]\] No syntax error:) No warnings here, beware! :slight\_smile:

---

## [Openssl -\> jruby-complete.jar](https://www.ruby-forum.com/t/openssl-jruby-complete-jar/144180)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 2\
**Last updated:** [July 30, 2008, 11:30am UTC](https://www.ruby-forum.com/t/openssl-jruby-complete-jar/144180 "2008-07-30T11:30:16Z")

</div>

Hi, is there a way to include complete openssl support into the jruby jar file? Build output states, that I should install openssl using gem, if I need it. However, I want to use jruby+openssl from within a java app.…

---

## [\- error message from script](https://www.ruby-forum.com/t/error-message-from-script/144432)

<div class="topic-metadata">

**Author:** [@ruud\_grosmann](https://www.ruby-forum.com/u/ruud_grosmann)\
**Replies:** 2\
**Last updated:** [July 30, 2008, 11:07am UTC](https://www.ruby-forum.com/t/error-message-from-script/144432 "2008-07-30T11:07:55Z")

</div>

hello, I’ve got this error message from my script: /usr/lib/ruby/1.8/pp.rb:490: \[BUG\] object allocation during garbage collection phase ruby 1.8.7 (2008-06-20 patchlevel 22) \[i486-linux\] Can anybody tell me what I s…

---

## [Impostor 0.1.0 Released](https://www.ruby-forum.com/t/impostor-0-1-0-released/144498)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 10:32am UTC](https://www.ruby-forum.com/t/impostor-0-1-0-released/144498 "2008-07-30T10:32:12Z")

</div>

impostor version 0.1.0 has been released! http://impostor.rubyforge.org/ FEATURES/PROBLEMS: Makes automated posts to the following forum applications: Web Wiz Forums (WWF) 7.9 Web Wiz Forums (WWF) 8.0 PHP Bullit…

---

## [Mms2r 2.1.0 Released](https://www.ruby-forum.com/t/mms2r-2-1-0-released/144495)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 9:59am UTC](https://www.ruby-forum.com/t/mms2r-2-1-0-released/144495 "2008-07-30T09:59:22Z")

</div>

mms2r version 2.1.0 has been released! http://mms2r.rubyforge.org/ http://rubyforge.org/tracker/?group\_id=3065 DESCRIPTION MMS2R is a library that decodes the parts of an MMS message to disk while stripping out …

---

## [Antwrap problems](https://www.ruby-forum.com/t/antwrap-problems/144491)

<div class="topic-metadata">

**Author:** [@srinu](https://www.ruby-forum.com/u/srinu)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 7:11am UTC](https://www.ruby-forum.com/t/antwrap-problems/144491 "2008-07-30T07:11:58Z")

</div>

Hi All, My Requirement: I need to execute ant tasks,then get the status whether task is executed success or failure. Exactly requirement get status of executed tasks send status in to the database. For that installe…

---

## [And and or in case](https://www.ruby-forum.com/t/and-and-or-in-case/144379)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 11\
**Last updated:** [July 30, 2008, 5:48am UTC](https://www.ruby-forum.com/t/and-and-or-in-case/144379 "2008-07-30T05:48:56Z")

</div>

Hi All, apologies in advanced if this has been discussed already why does ruby not compile the following case-when clause if using “and” or “or” ? It works if i replace it with “&&” or “||”, but i’m not asking nor usi…

---

## [Time.rb path](https://www.ruby-forum.com/t/time-rb-path/144483)

<div class="topic-metadata">

**Author:** [@Matias\_Pablo\_B](https://www.ruby-forum.com/u/Matias_Pablo_B)\
**Replies:** 4\
**Last updated:** [July 30, 2008, 4:14am UTC](https://www.ruby-forum.com/t/time-rb-path/144483 "2008-07-30T04:14:13Z")

</div>

While working on a project I came across with a problem that I traced to Time.rb. Some rss feeds return time in the following format “Mon, 28 Jul 2008 5:56 pm PDT”. Searching inside time.rb code I was not able to find …

---

## [Char\_casecmp in dir.c](https://www.ruby-forum.com/t/char-casecmp-in-dir-c/144372)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 3:50am UTC](https://www.ruby-forum.com/t/char-casecmp-in-dir-c/144372 "2008-07-30T03:50:15Z")

</div>

dir.c e$B$Ne(B char\_casecmp e$B$G!"e(B static int char\_casecmp(const char \*p1, const char \*p2, rb\_encoding \*enc, const int nocase) { const char \*p1end, \*p2end; int c1, c2; if (!\*p1) return \*p1; if (!\*p2) return -\*…

---

## [What is the correct database.yml setup for JRuby 1.1.3, AR-JDBC adapter 0.7.2, Rails 1.2.3](https://www.ruby-forum.com/t/what-is-the-correct-database-yml-setup-for-jruby-1-1-3-ar-jdbc-adapter-0-7-2-rails-1-2-3/144482)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 3:33am UTC](https://www.ruby-forum.com/t/what-is-the-correct-database-yml-setup-for-jruby-1-1-3-ar-jdbc-adapter-0-7-2-rails-1-2-3/144482 "2008-07-30T03:33:51Z")

</div>

All, JRuby 1.1.3 AR-JDBC adapter 0.7.2 Rails 1.2.3 I am using Goldspike to generate a WAR file that I then deploy into Websphere. I can’t seem to get the DB access to work in my application even though “jruby scri…

---

## [Ncurses-ruby installation in cygwin](https://www.ruby-forum.com/t/ncurses-ruby-installation-in-cygwin/144380)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 1:50am UTC](https://www.ruby-forum.com/t/ncurses-ruby-installation-in-cygwin/144380 "2008-07-30T01:50:09Z")

</div>

hi- i’m trying to install ncurses-ruby on cygwin on windows. if i open up a cygwin terminal and go to the decompressed ncurses-ruby directory and type in “ruby extconf.rb” i get this error: checking for unistd.h… no …

---

## [Non-locale filename encoding](https://www.ruby-forum.com/t/non-locale-filename-encoding/143628)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 17\
**Last updated:** [July 30, 2008, 12:31am UTC](https://www.ruby-forum.com/t/non-locale-filename-encoding/143628 "2008-07-30T00:31:23Z")

</div>

Dir e$B$N;H$$$+$?$H$7$F!"%U%!%$%kL\>$N%(%s%3!\<%G%#%s%0$,e(B locale encoding e$B$K=\>$C$F$$$k$H$O2\>Dj$;$:$K!"%W%m%0%i%\`$,$,$s$P$k$He(B e$B$-$NOC$G$9$,!"8=\>u$Ne(B Dir e$B$Ne(B internal\_encoding, external\_encoding e$B$H$$$&…

---

## [JVM not shutting down when referring to AWT type](https://www.ruby-forum.com/t/jvm-not-shutting-down-when-referring-to-awt-type/144428)

<div class="topic-metadata">

**Author:** [@mandrade](https://www.ruby-forum.com/u/mandrade)\
**Replies:** 5\
**Last updated:** [July 29, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/jvm-not-shutting-down-when-referring-to-awt-type/144428 "2008-07-29T23:16:29Z")

</div>

I have noticed that when I refer to AWT/Swing types from JRuby, the JVM doesn’t seem to shut down after code execution completes. Here is a very simple code sample that demonstrates the problem: require ‘java’ Compo…

---

## [Can't connect to MySQL server](https://www.ruby-forum.com/t/cant-connect-to-mysql-server/144385)

<div class="topic-metadata">

**Author:** [@darshana](https://www.ruby-forum.com/u/darshana)\
**Replies:** 2\
**Last updated:** [July 29, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/cant-connect-to-mysql-server/144385 "2008-07-29T22:41:20Z")

</div>

Hi I am trying to get connect to mysql database . Facing Error: Can’t connect to MySQL server on ‘64.95.73.14’ (110) (Mysql::Error) Using Ruby: 1.8.6 mysql: 2.7 database machine ip: 64.95.73.14 Could someone provi…

---

## [Extracting from jruby complete fails for 1.1.3?](https://www.ruby-forum.com/t/extracting-from-jruby-complete-fails-for-1-1-3/144426)

<div class="topic-metadata">

**Author:** [@CallowayS\_Thomas](https://www.ruby-forum.com/u/CallowayS_Thomas)\
**Replies:** 3\
**Last updated:** [July 29, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/extracting-from-jruby-complete-fails-for-1-1-3/144426 "2008-07-29T22:29:03Z")

</div>

I use Capistrano to install Jruby to a remote server from the jruby-complete jar stored in my Warbler /lib directory. The script, including the following command, works fine with jruby-complete-1.1.2.jar but not with …

---

## [Hampton's Ruby Survey 2008](https://www.ruby-forum.com/t/hamptons-ruby-survey-2008/144471)

<div class="topic-metadata">

**Author:** [@hampton\_c](https://www.ruby-forum.com/u/hampton_c)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/hamptons-ruby-survey-2008/144471 "2008-07-29T21:50:24Z")

</div>

If you guys have a minute, I’d love for you to take my 2008 Ruby Survey. Yes, its a little Web centric… but whatever! http://survey.hamptoncatlin.com -hampton.

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

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