# Ruby

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

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

---

## [Mechanize 0.9.2 Released](https://www.ruby-forum.com/t/mechanize-0-9-2-released/162104)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/mechanize-0-9-2-released/162104 "2009-03-05T18:55:35Z")

</div>

mechanize version 0.9.2 has been released! http://mechanize.rubyforge.org/ http://github.com/tenderlove/mechanize/tree/master The Mechanize library is used for automating interaction with websites. Mechanize automati…

---

## [Newbie question \> Hash workings](https://www.ruby-forum.com/t/newbie-question-hash-workings/161681)

<div class="topic-metadata">

**Author:** [@AD60](https://www.ruby-forum.com/u/AD60)\
**Replies:** 10\
**Last updated:** [March 5, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/newbie-question-hash-workings/161681 "2009-03-05T18:01:30Z")

</div>

Hi, I am puzzled by the workings a the following program. I placed the output after the corresponding lines. To me it lookes like a sort of bug in the workings of de p method. Can anybody set me straight? h = Hash.ne…

---

## [JRuby 1.2.0RC1 on windows. Problem with spaces in path anme](https://www.ruby-forum.com/t/jruby-1-2-0rc1-on-windows-problem-with-spaces-in-path-anme/162094)

<div class="topic-metadata">

**Author:** [@asherwood](https://www.ruby-forum.com/u/asherwood)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/jruby-1-2-0rc1-on-windows-problem-with-spaces-in-path-anme/162094 "2009-03-05T17:48:38Z")

</div>

I was developing using NetBeans 6.5 in a Windows environment uisng JRuby 1.1.6. My JRuby is installed in the standard NetBeans location: C:\\Program Files\\NetBeans 6.5\\ruby2\\jruby-1.1.6 From the command prompt: H:\>jr…

---

## [Cut a string each 80 character](https://www.ruby-forum.com/t/cut-a-string-each-80-character/162034)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 9\
**Last updated:** [March 5, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/cut-a-string-each-80-character/162034 "2009-03-05T17:05:02Z")

</div>

Hello everyone! I want to do cut a string each 80 character. Do you know how to do? For instance : string = “jdskj fjkjjkl djskfljksldjfkjdkljksljkdjfkdlsjfklsjdkfldsjdkfljkldjksjfkljkdlfjkdsljkljfdklskjkdfldfldfjkdf…

---

## [Getting the original file path on argument](https://www.ruby-forum.com/t/getting-the-original-file-path-on-argument/162019)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 5\
**Last updated:** [March 5, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/getting-the-original-file-path-on-argument/162019 "2009-03-05T16:30:44Z")

</div>

Hi all, I have a little ruby script that accepts a file name as a parameter. Given the company standards, the script has to be deployed on a specific “bin” folder. It has a cryptic name so a more “human” symlink was c…

---

## [Users, Groups, Pages and Permissions](https://www.ruby-forum.com/t/users-groups-pages-and-permissions/162074)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/users-groups-pages-and-permissions/162074 "2009-03-05T15:02:48Z")

</div>

Hi - what I’m trying to accomplish is to enable different levels of access to users in my application. The models are here: http://pastie.org/408263 Basically, the permission model holds the group\_id, page\_id and rea…

---

## [Is GServer the best to use?](https://www.ruby-forum.com/t/is-gserver-the-best-to-use/162025)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 5\
**Last updated:** [March 5, 2009, 1:54pm UTC](https://www.ruby-forum.com/t/is-gserver-the-best-to-use/162025 "2009-03-05T13:54:33Z")

</div>

I am in need of a TCP Server, basically something multithreaded that I can use to pass through data to a database from clients that will connect to the Server. I started playing with an example from the O’Reilly Lear…

---

## [Openssl and SHA\*](https://www.ruby-forum.com/t/openssl-and-sha/162008)

<div class="topic-metadata">

**Author:** [@chobolt](https://www.ruby-forum.com/u/chobolt)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/openssl-and-sha/162008 "2009-03-05T13:23:57Z")

</div>

Hi, I’m quite new to ruby, and I’m facing a problem I can’t seem to be able to solve by myself… I’m comparing openssl sha1 hash results from a linux command line, to ruby ones : cmd line : openssl dgst -sha1 my\_fil…

---

## [What are your favorite Ruby features?](https://www.ruby-forum.com/t/what-are-your-favorite-ruby-features/160413)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 70\
**Last updated:** [March 5, 2009, 11:36am UTC](https://www.ruby-forum.com/t/what-are-your-favorite-ruby-features/160413 "2009-03-05T11:36:10Z")

</div>

I’m creating a new language which borrows heavily from Ruby, and I’m curious what features of Ruby its users enjoy the most. I’ve put up a poll here: http://www.twiigs.com/poll/Technology/Computers/25588 It’s multip…

---

## [Noob question on writing a script in ruby](https://www.ruby-forum.com/t/noob-question-on-writing-a-script-in-ruby/162059)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 1\
**Last updated:** [March 5, 2009, 11:12am UTC](https://www.ruby-forum.com/t/noob-question-on-writing-a-script-in-ruby/162059 "2009-03-05T11:12:09Z")

</div>

hello to everyone, i am new to ruby and programming. At the moment i am a bit confused on how to make a program do what i will explain in the following lines so please any help will be appreciated! In a few words, wha…

---

## [Regression bug with jruby-1.2rc1](https://www.ruby-forum.com/t/regression-bug-with-jruby-1-2rc1/161999)

<div class="topic-metadata">

**Author:** [@Diamantini\_Maurice](https://www.ruby-forum.com/u/Diamantini_Maurice)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 10:31am UTC](https://www.ruby-forum.com/t/regression-bug-with-jruby-1-2rc1/161999 "2009-03-05T10:31:30Z")

</div>

Bonjour à tous, An amazing bug occurs with jruby-1.2rc1 (and not with jruby-1.1.6). Let the first line of a script be the standard shebang; #!/bin/env jruby If this first line contains one and only one white space a…

---

## [With YAML can I retrieve the class type back?](https://www.ruby-forum.com/t/with-yaml-can-i-retrieve-the-class-type-back/162047)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [March 5, 2009, 10:29am UTC](https://www.ruby-forum.com/t/with-yaml-can-i-retrieve-the-class-type-back/162047 "2009-03-05T10:29:09Z")

</div>

Hi, If I wanted to persist different Ruby types (e.g. float, BigDecimal, integer, string) to a database based table (e.g. column names KEY and VALUE), if I use the “to\_yaml” method to serialize their values and store …

---

## [Vlad 1.3.0 Released](https://www.ruby-forum.com/t/vlad-1-3-0-released/162032)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 2:29am UTC](https://www.ruby-forum.com/t/vlad-1-3-0-released/162032 "2009-03-05T02:29:48Z")

</div>

vlad version 1.3.0 has been released! http://rubyhitsquad.com/ http://rubyforge.org/projects/hitsquad/ Vlad the Deployer is pragmatic application deployment automation, without mercy. Much like Capistrano, but with 1…

---

## [Visibility of methods changed?](https://www.ruby-forum.com/t/visibility-of-methods-changed/162028)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [March 5, 2009, 12:56am UTC](https://www.ruby-forum.com/t/visibility-of-methods-changed/162028 "2009-03-05T00:56:14Z")

</div>

Hi I just upgraded the binaries of IronRuby for IronRuby MVC and suddenly IronRuby doesn’t know how to handle protected methods in an inherited class. when i changed visibility it worked again. The error message was …

---

## [Help with Multi Dimensional Array](https://www.ruby-forum.com/t/help-with-multi-dimensional-array/161286)

<div class="topic-metadata">

**Author:** [@lionbarrage](https://www.ruby-forum.com/u/lionbarrage)\
**Replies:** 8\
**Last updated:** [March 5, 2009, 12:50am UTC](https://www.ruby-forum.com/t/help-with-multi-dimensional-array/161286 "2009-03-05T00:50:58Z")

</div>

I’m new to ruby and have been trying to figure out what I’m doing wrong. I’m completely stumped about how to merge two files together based on whether they share the same key or not. Example: File 1 ALPHA|OMEGA|GAM…

---

## [Gems and .gemrc](https://www.ruby-forum.com/t/gems-and-gemrc/162027)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [March 5, 2009, 12:32am UTC](https://www.ruby-forum.com/t/gems-and-gemrc/162027 "2009-03-05T00:32:13Z")

</div>

It looks like ironruby isn’t happy with a .gemrc file this happens both on windows and mono. +ivan@ivan-mbp:~/src/ironruby (linux)Â» igem list \*\*\* LOCAL GEMS \*\*\* +ivan@ivan-mbp:~/src/ironruby (linux)Â» igem instal…

---

## [Processing the errorArray-subset returned by IO.select()](https://www.ruby-forum.com/t/processing-the-errorarray-subset-returned-by-io-select/162014)

<div class="topic-metadata">

**Author:** [@Sebastien\_Raveau](https://www.ruby-forum.com/u/Sebastien_Raveau)\
**Replies:** 0\
**Last updated:** [March 4, 2009, 10:41pm UTC](https://www.ruby-forum.com/t/processing-the-errorarray-subset-returned-by-io-select/162014 "2009-03-04T22:41:51Z")

</div>

Hi everybody! I am posting my question to this list really as a last recourse after having duly searched Ruby’s doc, Google, Ruby’s source, IRC, etc… Can somebody please end my torment? What I’m trying to achieve is …

---

## [How to run script/runner (Rails) without jruby installation](https://www.ruby-forum.com/t/how-to-run-script-runner-rails-without-jruby-installation/161956)

<div class="topic-metadata">

**Author:** [@Harri\_Kauhanen](https://www.ruby-forum.com/u/Harri_Kauhanen)\
**Replies:** 7\
**Last updated:** [March 4, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/how-to-run-script-runner-rails-without-jruby-installation/161956 "2009-03-04T22:35:22Z")

</div>

Hi, I deliver a Rails project to my client as a single WAR-package. It works great, the client does not need to install anything but the JEE servers they already have. Now, I need to set up a cron task that can be ru…

---

## [A few things about system and IO.popen - what's the current status?](https://www.ruby-forum.com/t/a-few-things-about-system-and-io-popen-whats-the-current-status/161977)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 3\
**Last updated:** [March 4, 2009, 10:17pm UTC](https://www.ruby-forum.com/t/a-few-things-about-system-and-io-popen-whats-the-current-status/161977 "2009-03-04T22:17:10Z")

</div>

Hi, sorry if it’s a know fact - I could not find the info easily. I hope this will be useful. On Windows, system() seems to work partially, is it normal ? The following works: system(“echo hello”) hello =\> tr…

---

## [Array to string](https://www.ruby-forum.com/t/array-to-string/162010)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/array-to-string/162010 "2009-03-04T21:05:38Z")

</div>

If I have a array: a = \[ “a”, “a”, “b”, “b”, “c” \] How can I get a string: “a, a, b, b, c”

---

## [Double quote problem in CSV](https://www.ruby-forum.com/t/double-quote-problem-in-csv/161894)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 7\
**Last updated:** [March 4, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/double-quote-problem-in-csv/161894 "2009-03-04T20:34:10Z")

</div>

Hi all i am using following method to read the csv file and i want to save it into the database. @parsed\_file=CSV.open(“filename.csv”,‘r’,"#{col\_sep}") @parsed\_file.each\_with\_index do |row, index| // more code …

---

## [SOAP simple and complex types](https://www.ruby-forum.com/t/soap-simple-and-complex-types/162005)

<div class="topic-metadata">

**Author:** [@andrewneal](https://www.ruby-forum.com/u/andrewneal)\
**Replies:** 0\
**Last updated:** [March 4, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/soap-simple-and-complex-types/162005 "2009-03-04T18:35:56Z")

</div>

I am hoping someone can point me in the right direction here. I am trying to put together a soap client that has some pretty complex messaging structures, and I have run into a problem with how to pass data that isn’t…

---

## [Implement "paste" using ruby](https://www.ruby-forum.com/t/implement-paste-using-ruby/161947)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 5\
**Last updated:** [March 4, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/implement-paste-using-ruby/161947 "2009-03-04T17:24:03Z")

</div>

hi, all I have a programming question: in the \*NIX world, there is a small utility named “paste”, that can combine several files together by columns. For example: file “x.dat”'s content is: 1 2 3 … file “y.dat”'…

---

## [Ruby 1.9.1 on Windows - missing DLLs in gem installer](https://www.ruby-forum.com/t/ruby-1-9-1-on-windows-missing-dlls-in-gem-installer/161871)

<div class="topic-metadata">

**Author:** [@ogeidix](https://www.ruby-forum.com/u/ogeidix)\
**Replies:** 1\
**Last updated:** [March 4, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-on-windows-missing-dlls-in-gem-installer/161871 "2009-03-04T14:45:45Z")

</div>

Hi friends, I downloaded the Ruby-1.9.1-p0 Binary for Windows. After unpacking the zipped file, it runs fine, BUT when I try to issue the following gem install command: gem install sqlite3-ruby --include-dependencie…

---

## [Creating a automated script](https://www.ruby-forum.com/t/creating-a-automated-script/161954)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/creating-a-automated-script/161954 "2009-03-04T14:01:06Z")

</div>

I wanted to create a small automated script using Ruby. I just need to know what classes do I use to create this script. When running my script I would like for itto do the following Automatically Log user onto anot…

---

## [\[Bug:trunk\] SizedQueue can be pushed over its limit](https://www.ruby-forum.com/t/bug-trunk-sizedqueue-can-be-pushed-over-its-limit/161981)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [March 4, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/bug-trunk-sizedqueue-can-be-pushed-over-its-limit/161981 "2009-03-04T13:27:29Z")

</div>

e$B1sF#$G$9!#e(B SizedQueue e$B$N%j%\_%C%H$NH=Dj$,4V0c$C$F$$$^$9!#e(B $ ./miniruby -rlib/thread -e ‘q = SizedQueue.new(2); q \<\< 1; q \<\< 1; q \<\< 1; p q’ #\<SizedQueue:0x81f595c @max=2, @queue\_wait=\[\], @que=\[1, 1, 1\], @…

---

## [Parse a tree](https://www.ruby-forum.com/t/parse-a-tree/161943)

<div class="topic-metadata">

**Author:** [@Haris\_BogdanoviS\_S](https://www.ruby-forum.com/u/Haris_BogdanoviS_S)\
**Replies:** 4\
**Last updated:** [March 4, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/parse-a-tree/161943 "2009-03-04T12:20:45Z")

</div>

Hi. How can I parse a tree (arrays within arrays), for example a tree of strings, to print all strings ? Thanks.

---

## [Using YAML for inter-process communication - anything built-in?](https://www.ruby-forum.com/t/using-yaml-for-inter-process-communication-anything-built-in/161783)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 8\
**Last updated:** [March 4, 2009, 10:30am UTC](https://www.ruby-forum.com/t/using-yaml-for-inter-process-communication-anything-built-in/161783 "2009-03-04T10:30:38Z")

</div>

Hi, I’m just wondering - I implemented something (thbar (Thibaut Barrère) · GitHub petite-lettre/tree/master) I believe probably already exists, can anyone tell me if it does ? I’m using YAML to communicate using std…

---

## [Mr Bones 2.4.1 (Lacrimal)](https://www.ruby-forum.com/t/mr-bones-2-4-1-lacrimal/161824)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 5\
**Last updated:** [March 4, 2009, 10:02am UTC](https://www.ruby-forum.com/t/mr-bones-2-4-1-lacrimal/161824 "2009-03-04T10:02:23Z")

</div>

Mr Bones version 2.4.1 by Tim P. http://codeforpeople.rubyforge.org/bones (the “Lacrimal” release) == DESCRIPTION Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton contains s…

---

## [A tiny DSL to build Windows::Forms menus from IronRuby - review wanted](https://www.ruby-forum.com/t/a-tiny-dsl-to-build-windows-forms-menus-from-ironruby-review-wanted/161502)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 6\
**Last updated:** [March 4, 2009, 10:01am UTC](https://www.ruby-forum.com/t/a-tiny-dsl-to-build-windows-forms-menus-from-ironruby-review-wanted/161502 "2009-03-04T10:01:17Z")

</div>

Hi, I started working on UI bits, both for Ivan book and because my customers are interested (and well - because it’s fun, too!). First topic is how to build menus more easily (next one will be long running operatio…

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

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