# Ruby

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

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

---

## [Piping two shell commands together](https://www.ruby-forum.com/t/piping-two-shell-commands-together/111106)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 8\
**Last updated:** [August 3, 2007, 4:29am UTC](https://www.ruby-forum.com/t/piping-two-shell-commands-together/111106 "2007-08-03T04:29:51Z")

</div>

I want to pipe two system commands together from within ruby. cmd1 and cmd2 are arrays, e.g. cmd1 = \[‘oggdec’,’-o’,’-’,oldpath\] cmd2 = \[‘lame’,’-’,newpath\] I think I can do the following, IO.popen(’-’,‘r’) do |p1| …

---

## [Mod\_ruby + mod\_deflate](https://www.ruby-forum.com/t/mod-ruby-mod-deflate/110967)

<div class="topic-metadata">

**Author:** [@Salvatore\_S](https://www.ruby-forum.com/u/Salvatore_S)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 3:45am UTC](https://www.ruby-forum.com/t/mod-ruby-mod-deflate/110967 "2007-08-03T03:45:45Z")

</div>

Hello! I’m running an application written in Ruby using mod\_ruby wtih Apache, the application is pretty fast and responsive but output compression via mod\_deflate may help to bring even more speed and save bandwidth. …

---

## [Test-all test suite fails upon Ruby 1.8.5 compilation](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 5\
**Last updated:** [August 3, 2007, 3:21am UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964 "2007-08-03T03:21:41Z")

</div>

Hi! I’m using this: http://www.rubywizards.com/viewtopic.php?pid=19 To compile Ruby 1.8.5 for Ubuntu 6.06 (since apt-get installs 1.8.4 and 1.8.6 has some threading problems). I follow the steps in tutorial exactly …

---

## [HttpClient messages](https://www.ruby-forum.com/t/httpclient-messages/111120)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 3:16am UTC](https://www.ruby-forum.com/t/httpclient-messages/111120 "2007-08-03T03:16:41Z")

</div>

Any idea why I might be getting these messages when using HttpClient? at depth 0 - 18: self signed certificate could be a relative URI in location header which is not recommended ‘The field value consists of a single …

---

## [ParseTree 2.0.0 Released](https://www.ruby-forum.com/t/parsetree-2-0-0-released/110993)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 7\
**Last updated:** [August 3, 2007, 2:50am UTC](https://www.ruby-forum.com/t/parsetree-2-0-0-released/110993 "2007-08-03T02:50:39Z")

</div>

ParseTree version 2.0.0 has been released! http://www.zenspider.com/ZSS/Products/ParseTree/ ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and retu…

---

## [Finalizer not getting called](https://www.ruby-forum.com/t/finalizer-not-getting-called/111050)

<div class="topic-metadata">

**Author:** [@syncopated](https://www.ruby-forum.com/u/syncopated)\
**Replies:** 8\
**Last updated:** [August 3, 2007, 2:28am UTC](https://www.ruby-forum.com/t/finalizer-not-getting-called/111050 "2007-08-03T02:28:38Z")

</div>

The finalizer is not getting called in this code – it just prints ‘exiting’. What’s wrong? I’m running it on v1.8.6 on Windows Vista. class A def initialize ObjectSpace.define\_finalizer(self, proc{|id| puts “finali…

---

## [Is there a standard "assert" idiom in Ruby?](https://www.ruby-forum.com/t/is-there-a-standard-assert-idiom-in-ruby/111043)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 8\
**Last updated:** [August 3, 2007, 2:19am UTC](https://www.ruby-forum.com/t/is-there-a-standard-assert-idiom-in-ruby/111043 "2007-08-03T02:19:37Z")

</div>

If you saw an earlier version of this question, apologies…I haven’t seen it, so assume I accidentally deleted it or it got lost or some such. In other languages, I’m accustomed to using “assert” as a sort of enforcea…

---

## [Making a XML::Parser App Multithreaded](https://www.ruby-forum.com/t/making-a-xml-parser-app-multithreaded/110883)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 1:37am UTC](https://www.ruby-forum.com/t/making-a-xml-parser-app-multithreaded/110883 "2007-08-03T01:37:26Z")

</div>

I wrote an application to parse a large xml file (over 20GB) using XML::Parser. It runs on a multicore system, however, and takes forever since it uses only one core. Maybe this is more of a SAX question, but is the…

---

## [Updating header in file](https://www.ruby-forum.com/t/updating-header-in-file/111136)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/updating-header-in-file/111136 "2007-08-02T23:56:29Z")

</div>

I have a text file where the first line is the header being used by CSV. The second line to the end is data for each header. How can I append the header? The program I’m writing looks new entries in a data file an…

---

## [Directory lstat mass listing](https://www.ruby-forum.com/t/directory-lstat-mass-listing/111135)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 2\
**Last updated:** [August 2, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/directory-lstat-mass-listing/111135 "2007-08-02T23:42:28Z")

</div>

Been trying to get a full list of file sizes out of a directory structure, starting from ‘/’ … The code below wont work because the method doesnt accept wildcards, and instead gives the size of the directory block rat…

---

## [RegEx for punctuation?](https://www.ruby-forum.com/t/regex-for-punctuation/111123)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/regex-for-punctuation/111123 "2007-08-02T22:26:17Z")

</div>

Hey all, I have a quick question about RegEx, which I don’t use often and I don’t have my reference book handy. How do I gsub all non alpha-numeric characters to nothing, I know it’s something like this: some\_string…

---

## [Private methods not so private?](https://www.ruby-forum.com/t/private-methods-not-so-private/111018)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 14\
**Last updated:** [August 2, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/private-methods-not-so-private/111018 "2007-08-02T21:31:13Z")

</div>

Hello, I’m using Ruby 1.8.2 and I’m reading the book “Programming Ruby 2nd edition”. In this book they say, that Ruby implements private methods by not allowing another receiver than “self”. After reading this, I trie…

---

## [Which is the preferred way?](https://www.ruby-forum.com/t/which-is-the-preferred-way/111122)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/which-is-the-preferred-way/111122 "2007-08-02T21:15:12Z")

</div>

I see that “p” is the same as “puts”. Which would most programs use in a program? Jeff

---

## [Problems w/ dRb on Windows](https://www.ruby-forum.com/t/problems-w-drb-on-windows/110812)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 7\
**Last updated:** [August 2, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/problems-w-drb-on-windows/110812 "2007-08-02T20:56:09Z")

</div>

Hey Guys, I just downloaded the full dRb package (from Masatoshi SEKI’s site) and installed it on my windows box. I’ve tried running two of the samples but in both cases, the console just hangs. I’ve tried the darra…

---

## [Re: Re: How to call WebService writed by java?](https://www.ruby-forum.com/t/re-re-how-to-call-webservice-writed-by-java/111110)

<div class="topic-metadata">

**Author:** [@allen\_r](https://www.ruby-forum.com/u/allen_r)\
**Replies:** 0\
**Last updated:** [August 2, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/re-re-how-to-call-webservice-writed-by-java/111110 "2007-08-02T19:19:51Z")

</div>

You can use the Ruby standard SOAP library. To send up the user, you may be able to get away with sending using hash notation. Hope this helps/works! require ‘soap/wsdlDriver’ factory = SOAP::WSDLDriverFactory.new(“h…

---

## [Sytnax](https://www.ruby-forum.com/t/sytnax/111075)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 10\
**Last updated:** [August 2, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/sytnax/111075 "2007-08-02T19:17:50Z")

</div>

syntax question: i have a ‘case’ expression: case number when 1: var = ‘one’ when 2: var = ‘two’ when 3: var = ‘three’ else var = ‘else’ end but instead of assigning the ‘var’ variable for each ‘when’, what is t…

---

## [Net::http and caching files](https://www.ruby-forum.com/t/net-http-and-caching-files/111101)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 6\
**Last updated:** [August 2, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/net-http-and-caching-files/111101 "2007-08-02T19:06:48Z")

</div>

I would like to open a webpage, only if the page is newer than what I already have. It looks like I have to get the whole page to get the last\_modified value. I can’t see anyway else to get the value, say off of the …

---

## [How to call WebService writed by java?](https://www.ruby-forum.com/t/how-to-call-webservice-writed-by-java/111064)

<div class="topic-metadata">

**Author:** [@venture\_Lee](https://www.ruby-forum.com/u/venture_Lee)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/how-to-call-webservice-writed-by-java/111064 "2007-08-02T19:01:45Z")

</div>

i public a webservice, it implement by java and xfire, method parameter is a complex type, example: public class User() { private String username; private String password; //…geter and seter } webservice method d…

---

## [Deep YAML](https://www.ruby-forum.com/t/deep-yaml/111049)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 5\
**Last updated:** [August 2, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/deep-yaml/111049 "2007-08-02T17:16:27Z")

</div>

I’m toying with GEDCOM again, and trying to write out the YAML equivalent of a GEDCOM file (just for kicks, mainly). It might look like this (edited for brevity): 0 @I1@ INDI 1 NAME Victoria /Hanover/ 1 TITL Queen o…

---

## [Crossword Solver (#132)](https://www.ruby-forum.com/t/crossword-solver-132/111099)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [August 2, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/crossword-solver-132/111099 "2007-08-02T17:08:24Z")

</div>

Many of these solutions got pretty sluggish when run on large crosswords. The reason is simple: the search space for this problem is quite large. You have to try a significant number of words in each position befor…

---

## [Rake aborted?](https://www.ruby-forum.com/t/rake-aborted/111063)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/rake-aborted/111063 "2007-08-02T16:37:17Z")

</div>

Hi, I am using Instant Rails 1.6 Rails 1.2.1 Rake 0.7.3 Ruby 1.8.5 But when i try to use rake command as rake db:migrate, i am getting the following error. rake aborted! No Rakefile found (looking for: rakefile, …

---

## [Binary editor](https://www.ruby-forum.com/t/binary-editor/111010)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/binary-editor/111010 "2007-08-02T15:29:08Z")

</div>

Hi all, Just wonder which binary editor is most used by the Rubists. Thanks, Li

---

## [Defining methods dynamically?](https://www.ruby-forum.com/t/defining-methods-dynamically/111040)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 7\
**Last updated:** [August 2, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/defining-methods-dynamically/111040 "2007-08-02T14:35:59Z")

</div>

Having looked through the Class and Method rdoc, and the Reflection section of Pickaxe, and still not seeing anything (even though it was probably right in front of my nose), I’m forced to fall on the mercy of strange…

---

## [Ruby Basics](https://www.ruby-forum.com/t/ruby-basics/110227)

<div class="topic-metadata">

**Author:** [@deadwood](https://www.ruby-forum.com/u/deadwood)\
**Replies:** 10\
**Last updated:** [August 2, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/ruby-basics/110227 "2007-08-02T13:50:50Z")

</div>

Hello, I successfully compiled and installed Ruby and Gems on this HP-UX box (see my other thread). Yesterday, I bought a copy of the Ruby equivalent to the Perl Camel Book (n.b. I am coming from Perl), viz. the Pick…

---

## [From ncurse to Ruby](https://www.ruby-forum.com/t/from-ncurse-to-ruby/110946)

<div class="topic-metadata">

**Author:** [@seshu](https://www.ruby-forum.com/u/seshu)\
**Replies:** 2\
**Last updated:** [August 2, 2007, 9:36am UTC](https://www.ruby-forum.com/t/from-ncurse-to-ruby/110946 "2007-08-02T09:36:08Z")

</div>

Hi, Currently I have a console based application on Linux. I want to move to a Text based Menu UI using ncurses. But I came to know that Ruby would be more easy to develop and flexible and powerful. Can any one commen…

---

## [Unexpected behavior with multidimensional arrays](https://www.ruby-forum.com/t/unexpected-behavior-with-multidimensional-arrays/110866)

<div class="topic-metadata">

**Author:** [@swabianeagle](https://www.ruby-forum.com/u/swabianeagle)\
**Replies:** 14\
**Last updated:** [August 2, 2007, 8:13am UTC](https://www.ruby-forum.com/t/unexpected-behavior-with-multidimensional-arrays/110866 "2007-08-02T08:13:06Z")

</div>

Hi, I need a 3-dim array. The following attempt shows some unexpected results: irb(main):001:0\> a = Array.new(3) =\> \[nil, nil, nil\] irb(main):002:0\> a.map!{Array.new(3,\[\])} =\> \[\[\[\], \[\], \[\]\], \[\[\], \[\], \[\]\], \[\[\], \[\], …

---

## [Ruby Association launched](https://www.ruby-forum.com/t/ruby-association-launched/111037)

<div class="topic-metadata">

**Author:** [@Leonard\_C](https://www.ruby-forum.com/u/Leonard_C)\
**Replies:** 2\
**Last updated:** [August 2, 2007, 6:38am UTC](https://www.ruby-forum.com/t/ruby-association-launched/111037 "2007-08-02T06:38:01Z")

</div>

Last friday, matz and NaCl launched the Ruby Association, “an organization to help development of the programming language Ruby.” There was an announcement posted by Shugo M. on the Japanese lists yesterday (see \[ru…

---

## [Soap4r attributes vs elements](https://www.ruby-forum.com/t/soap4r-attributes-vs-elements/86913)

<div class="topic-metadata">

**Author:** [@Roy\_Britten](https://www.ruby-forum.com/u/Roy_Britten)\
**Replies:** 2\
**Last updated:** [August 2, 2007, 4:34am UTC](https://www.ruby-forum.com/t/soap4r-attributes-vs-elements/86913 "2007-08-02T04:34:54Z")

</div>

Hi list, soap4r is great when it comes to creating requests consisting of elements require ‘soap/wsdlDriver’ driver = SOAP::WSDLDriverFactory.new(wsdlURL).create\_rpc\_driver driver.getSomething(:foo=\>“bar”) I have a…

---

## [Invoking a web service](https://www.ruby-forum.com/t/invoking-a-web-service/111024)

<div class="topic-metadata">

**Author:** [@capi](https://www.ruby-forum.com/u/capi)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 3:53am UTC](https://www.ruby-forum.com/t/invoking-a-web-service/111024 "2007-08-02T03:53:51Z")

</div>

Im trying to connect to a webservice developed in java, but im getting this error: warning: peer certificate won’t be verified in this SSL session ignored element: {http://schemas.microsoft.com/soap-toolkit/wsdl-exte…

---

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

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [August 2, 2007, 3:46am UTC](https://www.ruby-forum.com/t/no-subject/111042 "2007-08-02T03:46:50Z")

</div>

on exit

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

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