# Ruby

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

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

---

## [Systemu-1.0.0](https://www.ruby-forum.com/t/systemu-1-0-0/74888)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/systemu-1-0-0/74888 "2006-11-07T11:03:18Z")

</div>

NAME systemu.rb SYNOPSIS univeral capture of stdout and stderr and handling of child process pid for windows, \*nix, etc. URIS http://rubyforge.org/projects/codeforpeople/ http://codeforpeople.com/lib/ruby/ INSTAL…

---

## [How could I do this search using .scan - I am a newbie](https://www.ruby-forum.com/t/how-could-i-do-this-search-using-scan-i-am-a-newbie/74328)

<div class="topic-metadata">

**Author:** [@kschell](https://www.ruby-forum.com/u/kschell)\
**Replies:** 10\
**Last updated:** [November 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/how-could-i-do-this-search-using-scan-i-am-a-newbie/74328 "2006-11-07T11:03:12Z")

</div>

Hi, I am new to ruby and I have been search and pulling my hair to do this using .scan? I have file which contains…(this is an example) bat rat cat mat pat mat sat put tomorrow today So how could I search so I coul…

---

## [Redefining a class](https://www.ruby-forum.com/t/redefining-a-class/74902)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 8\
**Last updated:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/redefining-a-class/74902 "2006-11-07T11:02:16Z")

</div>

Hi all Recently we had a thread where we talked about redefining a class. The usefuleness of that did not come into my mind before. Does somebody know a way to redefine a class (without the "already initialized const…

---

## [GEM Problem](https://www.ruby-forum.com/t/gem-problem/74588)

<div class="topic-metadata">

**Author:** [@rafa](https://www.ruby-forum.com/u/rafa)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/gem-problem/74588 "2006-11-07T11:02:11Z")

</div>

Hi guys im getting this error using gems on windows im behind a proxy but i set it to work from the command line. So i really don’t know what the problem is. Thanks in advance Error message ERROR: While executing ge…

---

## [RingyDingy 1.2.0 Released](https://www.ruby-forum.com/t/ringydingy-1-2-0-released/74924)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/ringydingy-1-2-0-released/74924 "2006-11-07T11:02:09Z")

</div>

RingyDingy version 1.2.0 has been released! http://seattlerb.rubyforge.org/RingyDingy RingyDingy automatically re-registers your DRb service with a RingServer should communication with the RingServer stop. Changes: =…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/74921)

<div class="topic-metadata">

**Author:** [@skim](https://www.ruby-forum.com/u/skim)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/no-subject/74921 "2006-11-07T11:02:02Z")

</div>

unsubscribe

---

## [DRb: nested remote objects?](https://www.ruby-forum.com/t/drb-nested-remote-objects/74920)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/drb-nested-remote-objects/74920 "2006-11-07T11:01:55Z")

</div>

I have followed a couple of intros and played around without luck. Given account = DRbObject.new(nil, ‘druby://localhost:9000’) can I get into nested attributes and have them as remote objects? puts account.company.ad…

---

## [VERBOSE and "warning: Insecure world writable dir..."](https://www.ruby-forum.com/t/verbose-and-warning-insecure-world-writable-dir/74900)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 6\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/verbose-and-warning-insecure-world-writable-dir/74900 "2006-11-07T11:01:30Z")

</div>

Hello, I’ve just got very popular – as I guess from google hits – warning about insecure dir when I run something like this puts %x{bzip2 -9 #{s}} where s is file to compress. I found many ‘solutions’ by changing th…

---

## [Uninitialized constant HTMLTree (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-htmltree-nameerror/74308)

<div class="topic-metadata">

**Author:** [@vikashkumar051](https://www.ruby-forum.com/u/vikashkumar051)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/uninitialized-constant-htmltree-nameerror/74308 "2006-11-07T11:01:27Z")

</div>

I am working on windows environment, in my code I am using, require ‘http-access2’ client = HTTPAccess2::Client.new url=“http://www.elliottbaybook.com/…” parser = HTMLTree::XMLParser.new(false,false) parser.feed(cli…

---

## [How to simplify "a.instance\_of? classX or a.instance\_of? cla](https://www.ruby-forum.com/t/how-to-simplify-a-instance-of-classx-or-a-instance-of-cla/74893)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/how-to-simplify-a-instance-of-classx-or-a-instance-of-cla/74893 "2006-11-07T11:01:27Z")

</div>

Hi all, I would like to know if there is a way to simplify this code object.instance\_of? WSDL::XMLSchema::ComplexContent or object.instance\_of? WSDL::XMLSchema::ComplexType or object.instance\_of? WSDL::XMLSchem…

---

## [Openssl for general purpose data encryption in Ruby](https://www.ruby-forum.com/t/openssl-for-general-purpose-data-encryption-in-ruby/74887)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/openssl-for-general-purpose-data-encryption-in-ruby/74887 "2006-11-07T11:01:18Z")

</div>

Does anyone use openssl within Ruby to encrypt data? I want to use a hosted MySQL database, but most of the hosting companies do not support MySQL with the aes\_encrypt() or aes\_decrypt() functions. Most have Ruby bi…

---

## [Webrick upload file issue](https://www.ruby-forum.com/t/webrick-upload-file-issue/74817)

<div class="topic-metadata">

**Author:** [@name\_pipe](https://www.ruby-forum.com/u/name_pipe)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/webrick-upload-file-issue/74817 "2006-11-07T11:01:17Z")

</div>

Hello, Is there any feature in webrick using which we can upload our files directly. I am talking about the files which are submitted using tag. Thanks

---

## [Mod\_ruby postgres](https://www.ruby-forum.com/t/mod-ruby-postgres/74909)

<div class="topic-metadata">

**Author:** [@Parragh\_S](https://www.ruby-forum.com/u/Parragh_S)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/mod-ruby-postgres/74909 "2006-11-07T11:01:12Z")

</div>

Hello, I’m trying some code with mod\_ruby where I make a postgresql connection. The following works fine: require ‘postgres’ def with\_db db = PGconn.connect(‘localhost’, 5432, ‘’, ‘’, ‘template1’, ‘postgres’, ‘’) …

---

## [Command line parameters testing](https://www.ruby-forum.com/t/command-line-parameters-testing/74298)

<div class="topic-metadata">

**Author:** [@apparna](https://www.ruby-forum.com/u/apparna)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/command-line-parameters-testing/74298 "2006-11-07T11:01:03Z")

</div>

Hello, I’m using Runit to write unit test for a class that takes command line parameters. How do I pass commandline parameters from Runit class to my actual class that it’s testing? I’m a new bee to ruby and any hel…

---

## [Mongrel 0.3.13.4 Pre-Release -- Ruby's LEAK Fixed (Death To](https://www.ruby-forum.com/t/mongrel-0-3-13-4-pre-release-rubys-leak-fixed-death-to/66474)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 24\
**Last updated:** [November 7, 2006, 11:00am UTC](https://www.ruby-forum.com/t/mongrel-0-3-13-4-pre-release-rubys-leak-fixed-death-to/66474 "2006-11-07T11:00:39Z")

</div>

Howdy Folks, This release is after painstaking analysis of a memory leak that was reported by Bradley Taylor, reduced by myself, and then fixed after much work. You should all thank Bradley for finding the bizarre fi…

---

## [Accessing a hash -- Beginner](https://www.ruby-forum.com/t/accessing-a-hash-beginner/74881)

<div class="topic-metadata">

**Author:** [@don](https://www.ruby-forum.com/u/don)\
**Replies:** 10\
**Last updated:** [November 7, 2006, 11:00am UTC](https://www.ruby-forum.com/t/accessing-a-hash-beginner/74881 "2006-11-07T11:00:34Z")

</div>

I want to access a hash via a gets command. A simplified example, for a hash named, “test”: print 'hash name: ’ hash\_var = gets.chomp # enter ‘test’ here puts hash\_var # \<-- nil puts test …

---

## [Using another program (Lynx) from within Ruby](https://www.ruby-forum.com/t/using-another-program-lynx-from-within-ruby/74828)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 11:00am UTC](https://www.ruby-forum.com/t/using-another-program-lynx-from-within-ruby/74828 "2006-11-07T11:00:18Z")

</div>

I’m trying to write a script to read a list of URLS, get the HTTP response headers and (if there is a page there) from each URL, and output to a CSV file in this format: URL, header, I’ve started with something l…

---

## [How to parse an WSDL file?](https://www.ruby-forum.com/t/how-to-parse-an-wsdl-file/74807)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 11:00am UTC](https://www.ruby-forum.com/t/how-to-parse-an-wsdl-file/74807 "2006-11-07T11:00:15Z")

</div>

Hi all, I would like to use the wsdl api from stdlib, but I didn’t understand. So, I will try to parse my wsdl file with REXML. Is there a small example of the use of this API ? Thanks Stephane

---

## [Adding soap element attributes](https://www.ruby-forum.com/t/adding-soap-element-attributes/73875)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 11:00am UTC](https://www.ruby-forum.com/t/adding-soap-element-attributes/73875 "2006-11-07T11:00:03Z")

</div>

Hi, I have a question that I hope will be simple for someone to answer. I am using soap4r to write a simple library to consume web services from an application. The application does not include a WSDL document, so I …

---

## [Re: str1 = str2 is not a copy?!?](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74885)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/re-str1-str2-is-not-a-copy/74885 "2006-11-07T10:59:52Z")

</div>

From: Gregory B. \[mailto:removed\_email\_address@domain.invalid\] p array # array has been changed I get the point of this example, but it’s worth noting that you can change the array via b if you just use String#repl…

---

## [Str1 = str2 is not a copy?!?](https://www.ruby-forum.com/t/str1-str2-is-not-a-copy/74254)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 10\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/str1-str2-is-not-a-copy/74254 "2006-11-07T10:59:50Z")

</div>

I have: File.foreach(data\_file) do |line| line.strip! puts line base\_name = line puts line base\_name.sub!(‘www.’, ‘’) base\_name.sub!(/.\\w+$/, ‘’) puts line end Which outputs: domain WHY is var line getting…

---

## [Ruby for Symbian](https://www.ruby-forum.com/t/ruby-for-symbian/74727)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/ruby-for-symbian/74727 "2006-11-07T10:59:49Z")

</div>

http://developer.symbian.com/main/tools/opensrc/ruby/index.jsp

---

## [File size revisit](https://www.ruby-forum.com/t/file-size-revisit/74715)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/file-size-revisit/74715 "2006-11-07T10:59:44Z")

</div>

Hi, folks the subject has been reported before, basically, ruby File.size() won’t work properly on windows when file size exceed certain limit (2GB maybe). One workaround is to require win32/file. Yes, this will get y…

---

## [Http.get call works, but then fails when using debugger](https://www.ruby-forum.com/t/http-get-call-works-but-then-fails-when-using-debugger/74294)

<div class="topic-metadata">

**Author:** [@jjantz](https://www.ruby-forum.com/u/jjantz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/http-get-call-works-but-then-fails-when-using-debugger/74294 "2006-11-07T10:59:32Z")

</div>

Hi, Can someone tell me if I have found a bug or am doing something wrong using Net::HTTP.get ? If I run the code without the -rdebug flag, then it works perfectly. If I use the flag and then simply do a continue, th…

---

## [Ruby NKF $B%b%8%e!\<%k$N(B CP932 $B7O%(%s%3!\<%G%#%s%0%Q%C%](https://www.ruby-forum.com/t/ruby-nkf-b-b-8-e-k-n-b-cp932-b7o-s-3-g-s-0-q-c/73828)

<div class="topic-metadata">

**Author:** [@MORIYAMA\_Masayuki](https://www.ruby-forum.com/u/MORIYAMA_Masayuki)\
**Replies:** 11\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/ruby-nkf-b-b-8-e-k-n-b-cp932-b7o-s-3-g-s-0-q-c/73828 "2006-11-07T10:59:31Z")

</div>

e$B%\_%i%/%k%j%J%C%/%9$N?9;3$G$9!#e(B IPA 2005e$BG/EY2\<4|%!\<%W%s%=!\<%9%=%U%H%&%‘%"3hMQ4pHW@0Hw;v6H$N%W%m%8%’%/e(B e$B%H$H$7$F:NBr$5$l$?!"!V%!\<%W%s%=!\<%9%=%U%H%&%'%“$K$\*$1$kE}0l$7$?%l%,e(B e$B%7!\<%(%s%3!\<%G%#%s%0$NJQ49…

---

## [Execute a file on read?](https://www.ruby-forum.com/t/execute-a-file-on-read/74858)

<div class="topic-metadata">

**Author:** [@eddieroger](https://www.ruby-forum.com/u/eddieroger)\
**Replies:** 2\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/execute-a-file-on-read/74858 "2006-11-07T10:59:29Z")

</div>

I am toying around with the concept of dynamic configuration files for Asterisk (http://www.asterisk.org), and I was wondering if its possible to have a dynamic file that’s executed on read. Basicly, when executed, th…

---

## [Civ4/integration question and practice for the golfers](https://www.ruby-forum.com/t/civ4-integration-question-and-practice-for-the-golfers/74742)

<div class="topic-metadata">

**Author:** [@spooq](https://www.ruby-forum.com/u/spooq)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/civ4-integration-question-and-practice-for-the-golfers/74742 "2006-11-07T10:59:24Z")

</div>

For reasons not clear even to myself, I’m trying to predict the growth and production of a city in CivIV (c.f. CivFanatics http://www.civfanatics.com ). Each city has an integer population and a number of tiles (act…

---

## [Re: Just a question to throw out there](https://www.ruby-forum.com/t/re-just-a-question-to-throw-out-there/74856)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/re-just-a-question-to-throw-out-there/74856 "2006-11-07T10:59:24Z")

</div>

I’m not sure, but I suspect that closures would be hard to understand unless one had a good understanding of variable binding, scope, etc.

---

## [ActiveRDF 1.0](https://www.ruby-forum.com/t/activerdf-1-0/74854)

<div class="topic-metadata">

**Author:** [@Benjamin\_Heitmann](https://www.ruby-forum.com/u/Benjamin_Heitmann)\
**Replies:** 0\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/activerdf-1-0/74854 "2006-11-07T10:59:17Z")

</div>

Hi! It is our pleasure to announce the 1.0 release of ActiveRDF, available from http://www.activerdf.org/ or the RubyGems repository. ActiveRDF is a library for accessing RDF data from Ruby programs. ActiveRDF gives …

---

## [Unable to write to file... (example from "pickaxe book", sec](https://www.ruby-forum.com/t/unable-to-write-to-file-example-from-pickaxe-book-sec/52814)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/unable-to-write-to-file-example-from-pickaxe-book-sec/52814 "2006-11-07T10:59:16Z")

</div>

Following the example from “pickaxe book”, second edition, p128 #!/usr/bin/ruby File.open(“testfile”, “r”) do |file| while line = file.gets puts line end end produces copy.rb:2:in \`initialize’: No such file or di…

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

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