# Ruby

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

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

---

## [Some General Questions about Ruby](https://www.ruby-forum.com/t/some-general-questions-about-ruby/91121)

<div class="topic-metadata">

**Author:** [@chuckychuck](https://www.ruby-forum.com/u/chuckychuck)\
**Replies:** 8\
**Last updated:** [April 5, 2007, 12:23am UTC](https://www.ruby-forum.com/t/some-general-questions-about-ruby/91121 "2007-04-05T00:23:20Z")

</div>

Hi ! I think i’ll soon begin to learn programming in ruby, as so many people find it ( and its buddy RoR ) awesome. I’m a beginner programmer ( Basic, PHP, Caml, and i’m currently reading some C/C++ tutorials ) Ruby…

---

## [Ruport-util 0.1.0](https://www.ruby-forum.com/t/ruport-util-0-1-0/91134)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 12:18am UTC](https://www.ruby-forum.com/t/ruport-util-0-1-0/91134 "2007-04-05T00:18:20Z")

</div>

Hi all, This is the first release of ruport-util, which will eventually include a whole bunch of cool little tools to use with Ruport, but for now repackages, updates, and improves a few tools we kicked out of the de…

---

## [Plugging my blog (I don't know if I can do this)](https://www.ruby-forum.com/t/plugging-my-blog-i-dont-know-if-i-can-do-this/91133)

<div class="topic-metadata">

**Author:** [@deneb](https://www.ruby-forum.com/u/deneb)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 12:04am UTC](https://www.ruby-forum.com/t/plugging-my-blog-i-dont-know-if-i-can-do-this/91133 "2007-04-05T00:04:48Z")

</div>

I checked to see if there existed some rule prohibiting members to advertize their blog… and couldn’t find one. So, I supposed it was allowed. I recently started a blog about ruby. If you want to check it out, it wou…

---

## [Why does File.join use "/" on Windows?](https://www.ruby-forum.com/t/why-does-file-join-use-on-windows/90587)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 7\
**Last updated:** [April 4, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/why-does-file-join-use-on-windows/90587 "2007-04-04T23:51:18Z")

</div>

I just had to work on some code that ran into trouble, because Ruby uses “/” to separate folders, but the path was being passed to a separate command (using system) that expected Window’s paths to use “”. C:\\Users\\br…

---

## [Object/Relational Mapping is the Vietnam of Computer Science](https://www.ruby-forum.com/t/object-relational-mapping-is-the-vietnam-of-computer-science/89455)

<div class="topic-metadata">

**Author:** [@Demetrius\_G](https://www.ruby-forum.com/u/Demetrius_G)\
**Replies:** 154\
**Last updated:** [April 4, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/object-relational-mapping-is-the-vietnam-of-computer-science/89455 "2007-04-04T23:39:17Z")

</div>

I have searched around, but I very rarely find any mention of Ruby with OO databases. YAML might work as a database, but I am hoping for something more like db4o.com’s GPL database engine. Does anyone attempt Ruby wi…

---

## [Embedding Ruby in c#](https://www.ruby-forum.com/t/embedding-ruby-in-c/91130)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/embedding-ruby-in-c/91130 "2007-04-04T23:35:16Z")

</div>

Hi All I have installed RubyDotNet from here: http://rubydotnet.sourceforge.net/ because I want to embed a Ruby interpreter in C#. In my C# project I added a reference to RubyInterpreter.dll and then tried: RubyDotN…

---

## [Problem Extracting Array Values](https://www.ruby-forum.com/t/problem-extracting-array-values/91085)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 15\
**Last updated:** [April 4, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/problem-extracting-array-values/91085 "2007-04-04T23:28:15Z")

</div>

Hi All, I’m trying to iterate through an array and pull each value into a view on my Rails app. The array is stored in a MySQL database. The array is in a varchar (string) column named “blocks” with the value: \[“jou…

---

## [A Syntax question](https://www.ruby-forum.com/t/a-syntax-question/91110)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 4\
**Last updated:** [April 4, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/a-syntax-question/91110 "2007-04-04T23:19:12Z")

</div>

Hey Guys, I would have thought the following two code snippets were equivalent. However, only the first one will raise err. Can someone explain to me how I should be ‘reading’ the 2nd snippet? rescue Exception =\> …

---

## [Ruby + sql server](https://www.ruby-forum.com/t/ruby-sql-server/90626)

<div class="topic-metadata">

**Author:** [@Faby](https://www.ruby-forum.com/u/Faby)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/ruby-sql-server/90626 "2007-04-04T23:01:11Z")

</div>

Hi, I would like to execute a stored procedure using ruby and sql server 2000 with DBI and ODBC. Can anyone give me an example on how to do it? Thanks

---

## [Get the last message](https://www.ruby-forum.com/t/get-the-last-message/91122)

<div class="topic-metadata">

**Author:** [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/get-the-last-message/91122 "2007-04-04T22:22:49Z")

</div>

I am making a script to compile a code for me. But if compile isn’t sucessfull, I want to put the message erro in a variable and send it to me. How can I get the message erro? Thanks

---

## [Looking for "tar" file reader library](https://www.ruby-forum.com/t/looking-for-tar-file-reader-library/91117)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/looking-for-tar-file-reader-library/91117 "2007-04-04T22:05:06Z")

</div>

I’m looking for a Ruby “tar” format file reader. I have not found much out there. So far, just ruby-tar-0.1.0 at http://www.aagh.net/files/ruby-tar/ – which is a program, though I could library-ize it without much ef…

---

## [Search a file and replace text](https://www.ruby-forum.com/t/search-a-file-and-replace-text/90994)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 7\
**Last updated:** [April 4, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/search-a-file-and-replace-text/90994 "2007-04-04T21:53:31Z")

</div>

I need to search a specific xml file in a directory, look for: 30890 and if the port 30890 is still there replace it with a different integer. I know of several ways to do this (like open the file, iterate the lines…

---

## [Installing gem - C compiler issues (Win32)](https://www.ruby-forum.com/t/installing-gem-c-compiler-issues-win32/91031)

<div class="topic-metadata">

**Author:** [@evilbee](https://www.ruby-forum.com/u/evilbee)\
**Replies:** 9\
**Last updated:** [April 4, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/installing-gem-c-compiler-issues-win32/91031 "2007-04-04T21:01:56Z")

</div>

Hello, I’ve wasted quite some time on it and ran out of ideas, so I’m going to ask here. I have Ruby installed by the One-Click Installer. That works great. Now, I need to install ferret. So I go to the command line …

---

## [ruby-DBI and SQLite3?](https://www.ruby-forum.com/t/ruby-dbi-and-sqlite3/82057)

<div class="topic-metadata">

**Author:** [@Jos\_B](https://www.ruby-forum.com/u/Jos_B)\
**Replies:** 3\
**Last updated:** [April 4, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/ruby-dbi-and-sqlite3/82057 "2007-04-04T20:14:51Z")

</div>

Is anybody interested in working with me on updating ruby-DBI to support SQLite3? I need it in order to ward off the evil P-monster (both!) at work.

---

## [Rubygems: Install if not already installed](https://www.ruby-forum.com/t/rubygems-install-if-not-already-installed/91098)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/rubygems-install-if-not-already-installed/91098 "2007-04-04T18:20:31Z")

</div>

One of the things that I’ve needed to do on several occasions is create scripts that will update an Ruby installation to include all the gems that a project requires. I first wrote a batch file with several calls to “…

---

## [Extended deadline for RailsConf Europe proposals!](https://www.ruby-forum.com/t/extended-deadline-for-railsconf-europe-proposals/90787)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/extended-deadline-for-railsconf-europe-proposals/90787 "2007-04-04T17:46:27Z")

</div>

Hello all – The deadline for proposing talks for RailsConf Europe has been extended to APRIL 19. There was some confusion about what the deadline was originally… but this is an extension of at least a week, whatever…

---

## [Re: in\_place\_editor on Rails 1.2.1 seems to be broken](https://www.ruby-forum.com/t/re-in-place-editor-on-rails-1-2-1-seems-to-be-broken/91091)

<div class="topic-metadata">

**Author:** [@tvon](https://www.ruby-forum.com/u/tvon)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/re-in-place-editor-on-rails-1-2-1-seems-to-be-broken/91091 "2007-04-04T16:58:22Z")

</div>

I have a similar problem. I am using in\_place\_editor with the :load\_text\_url option: \<%= h file\_contents %\> \<%= in\_place\_editor 'editme', :url =\> url\_for({ :action =\> 'save\_file', :path =\> file\_path }), :…

---

## [Question - Numbers & Variables](https://www.ruby-forum.com/t/question-numbers-variables/91024)

<div class="topic-metadata">

**Author:** [@Merrie](https://www.ruby-forum.com/u/Merrie)\
**Replies:** 5\
**Last updated:** [April 4, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/question-numbers-variables/91024 "2007-04-04T16:06:14Z")

</div>

Im currently working through the book ‘Learn to Program’ by Chris P. and I am stuck on one of the exercises. I feel like Im close to the answer but just cannot quite get it. I appreciate the help. Below is the program…

---

## [XSD parser error](https://www.ruby-forum.com/t/xsd-parser-error/91080)

<div class="topic-metadata">

**Author:** [@Mehdi\_AICHOUCH](https://www.ruby-forum.com/u/Mehdi_AICHOUCH)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 2:53pm UTC](https://www.ruby-forum.com/t/xsd-parser-error/91080 "2007-04-04T14:53:04Z")

</div>

I can not use the XSD::TestXMLSchemaParser \>ruby xmlschemaparser.rbLoaded suite xmlschemaparserStartedEFinished in 0.015 seconds. 1) Error:test\_wsdl(XSD::TestXMLSchemaParser):NameError: uninitialized constant WSDL::X…

---

## [Introduction](https://www.ruby-forum.com/t/introduction/91020)

<div class="topic-metadata">

**Author:** [@Merrie](https://www.ruby-forum.com/u/Merrie)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/introduction/91020 "2007-04-04T14:49:39Z")

</div>

Greetings everyone, just a quick note of introduction. My name is Merrie and I live in lovely Pennslyvania. I am brand new to Ruby and having a good time learning it. Look forward to reading the list.

---

## [Problem with routes.rb](https://www.ruby-forum.com/t/problem-with-routes-rb/91077)

<div class="topic-metadata">

**Author:** [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/problem-with-routes-rb/91077 "2007-04-04T12:42:17Z")

</div>

I had developed an ROR application with the ruby 1.8.2 version. In that, I had used the map.connect as the routing way(without parameters). Ex: â€ map.connect â€™/loginâ€™, :controller =\> â€˜loginâ€™, :action =\> â€˜u…

---

## [Does exist a bridge for saxon8.jar?](https://www.ruby-forum.com/t/does-exist-a-bridge-for-saxon8-jar/91074)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 11:36am UTC](https://www.ruby-forum.com/t/does-exist-a-bridge-for-saxon8-jar/91074 "2007-04-04T11:36:09Z")

</div>

i’d like to use saxonb8-9j mostly saxon8.jar from Ruby (not from jRuby) for XSLT 2 and XPATH 2 and i wonder if someone wrote a bridge for that jar ? otherwise would it be difficult to build a gem for that purpose ? o…

---

## [IO.popen("-") with no fork](https://www.ruby-forum.com/t/io-popen-with-no-fork/90995)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 12\
**Last updated:** [April 4, 2007, 11:25am UTC](https://www.ruby-forum.com/t/io-popen-with-no-fork/90995 "2007-04-04T11:25:06Z")

</div>

e$B$J$+$@$G$9!#e(B \[ruby-dev:30679\]e$B$K4XO"$7$F!“e(Bwin32e$B$J$I$Ne(Bforke$B$N$J$$4D6-$G$Oe(B IO.popen(”-")e$B$Oe(Bforke$BF1MMe(BNotImplementedErrore$B$K$J$k$Y$-$8$c$J$$$Ge(B e$B$7$g$&$+!#e(B Index: io.c — io.c (re…

---

## [Dyla 2007: 3rd Workshop on Dynamic Languages and Application](https://www.ruby-forum.com/t/dyla-2007-3rd-workshop-on-dynamic-languages-and-application/91071)

<div class="topic-metadata">

**Author:** [@hoksitan](https://www.ruby-forum.com/u/hoksitan)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 10:59am UTC](https://www.ruby-forum.com/t/dyla-2007-3rd-workshop-on-dynamic-languages-and-application/91071 "2007-04-04T10:59:09Z")

</div>

Dear colleges, You might want to consider Dyla’07 as a good venue to present your work using your favourite programming language Regards, Alexandre Call for Papers Dyla 2007: 3rd Workshop on Dynamic Languages and …

---

## [Memory leak in ruby code](https://www.ruby-forum.com/t/memory-leak-in-ruby-code/90324)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 14\
**Last updated:** [April 4, 2007, 10:45am UTC](https://www.ruby-forum.com/t/memory-leak-in-ruby-code/90324 "2007-04-04T10:45:52Z")

</div>

Hi, I’m trying to write a code that’d inspect my method calls for any memory leaks. You can find my code at Parked at Loopia In my method, I have def leaker “hello” end Here, as per my code, the string “hello” is …

---

## [Modify RDoc to pick up my attribute metaprogramming methods?](https://www.ruby-forum.com/t/modify-rdoc-to-pick-up-my-attribute-metaprogramming-methods/90975)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 10:05am UTC](https://www.ruby-forum.com/t/modify-rdoc-to-pick-up-my-attribute-metaprogramming-methods/90975 "2007-04-04T10:05:46Z")

</div>

Those of you who might have used my Chattr gem will have found that RDoc doesn’t find the attributes it defines. This is because hidden inside RDoc’s Ruby parser (parsers/parse\_rb.rb), in parse\_statements, is a case …

---

## [Net::HTTP.get\_response hangs with particular url](https://www.ruby-forum.com/t/net-http-get-response-hangs-with-particular-url/91025)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 8:34am UTC](https://www.ruby-forum.com/t/net-http-get-response-hangs-with-particular-url/91025 "2007-04-04T08:34:10Z")

</div>

This seems bizar, the first get\_response() to apple.com goes fine, the 2nd hangs indefinitely. It hangs on two different machines in different network segments. require ‘net/http’ require ‘uri’ response = Net::HTTP.…

---

## [Calling script with parameter](https://www.ruby-forum.com/t/calling-script-with-parameter/91043)

<div class="topic-metadata">

**Author:** [@0x001a4](https://www.ruby-forum.com/u/0x001a4)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 4:12am UTC](https://www.ruby-forum.com/t/calling-script-with-parameter/91043 "2007-04-04T04:12:16Z")

</div>

Does anyone know how to call a script with a parameter? Essentially I have a bunch of commands to run, but I only want to run one at a time. I’m running this script from a config file. Something like $ ruby my-script…

---

## [TCPServer locking when calling accept](https://www.ruby-forum.com/t/tcpserver-locking-when-calling-accept/91029)

<div class="topic-metadata">

**Author:** [@Alex\_MacCaw](https://www.ruby-forum.com/u/Alex_MacCaw)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 3:58am UTC](https://www.ruby-forum.com/t/tcpserver-locking-when-calling-accept/91029 "2007-04-04T03:58:33Z")

</div>

How do I stop the TCPServer ‘locking up’ when I call accept? I’m trying to build a passive ftp server.

---

## [Status: 500 Internal Server Error - A session\_key is require](https://www.ruby-forum.com/t/status-500-internal-server-error-a-session-key-is-require/91026)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 2:56am UTC](https://www.ruby-forum.com/t/status-500-internal-server-error-a-session-key-is-require/91026 "2007-04-04T02:56:31Z")

</div>

Hi, Anyone seen this error / have any suggestions here? I basically did a “cap deploy” to dreamhost but I’m now getting this in the “production.log” when trying to run up the application. The key things I changed …

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

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