# Ruby

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

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

---

## [Personalized content filtering & collaborative moderation](https://www.ruby-forum.com/t/personalized-content-filtering-collaborative-moderation/53441)

<div class="topic-metadata">

**Author:** [@dstocks](https://www.ruby-forum.com/u/dstocks)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 6:51pm UTC](https://www.ruby-forum.com/t/personalized-content-filtering-collaborative-moderation/53441 "2006-02-05T18:51:27Z")

</div>

Peerworks.org has interesting work for an experienced independent contractor with serious Ruby + Rails work to show. Check out http://www.peerworks.org/rubywork and email rubywork \[at\] peerworks \[dot\] org. (It’s OK t…

---

## [Encoding problem?](https://www.ruby-forum.com/t/encoding-problem/53440)

<div class="topic-metadata">

**Author:** [@Jesus\_Roncero](https://www.ruby-forum.com/u/Jesus_Roncero)\
**Replies:** 2\
**Last updated:** [February 5, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/encoding-problem/53440 "2006-02-05T17:57:03Z")

</div>

Hi, Trying to learn ruby, I am writing a script to migrate from a pybloxsom to wordpress. As you may know, pybloxsom stores all entries and comments in text files under a directory hierachy. Mi idea is to read all tho…

---

## [Ruby feature request - enum.detect\_index](https://www.ruby-forum.com/t/ruby-feature-request-enum-detect-index/101266)

<div class="topic-metadata">

**Author:** [@jonT](https://www.ruby-forum.com/u/jonT)\
**Replies:** 9\
**Last updated:** [February 5, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/ruby-feature-request-enum-detect-index/101266 "2006-02-05T17:38:50Z")

</div>

Hi, I’d like to propose a new addition to the enum module. detect works great but doesn’t supply the index of the match. It would be nice to have a method detect\_index that returned the index rather than the object. …

---

## [Define\_method with a &block?](https://www.ruby-forum.com/t/define-method-with-a-block/101190)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 6\
**Last updated:** [February 5, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/define-method-with-a-block/101190 "2006-02-05T17:32:49Z")

</div>

In the code below, I want test2 to receive a block, like test1, so they do the same. Is that possible? (I use this “define\_method” in meta-programming code. Using “def” is not an option.) Thanks. gegroet, Erik V. -…

---

## [File.new error](https://www.ruby-forum.com/t/file-new-error/89378)

<div class="topic-metadata">

**Author:** [@cow6oy](https://www.ruby-forum.com/u/cow6oy)\
**Replies:** 4\
**Last updated:** [February 5, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/file-new-error/89378 "2006-02-05T16:47:25Z")

</div>

Hi Forum, I’m trying to create a file but I’m getting an error and can’t find the problem: aFile = File.new(“rubytestfile”) puts "hello" aFile.close I get this error. I’m working on Mac OS X: Errno::ENOENT: No suc…

---

## [How to use WSDLDriverFactory with basic authentication?](https://www.ruby-forum.com/t/how-to-use-wsdldriverfactory-with-basic-authentication/52044)

<div class="topic-metadata">

**Author:** [@ddavidson](https://www.ruby-forum.com/u/ddavidson)\
**Replies:** 1\
**Last updated:** [February 5, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-use-wsdldriverfactory-with-basic-authentication/52044 "2006-02-05T15:40:54Z")

</div>

I am trying to use SOAP::WSDLDriverFactory but the server requires basic authentication. I’ve tried using something like: WSDL\_URI = ‘http://user:password@server:80/TestService?wsdl’; factory = SOAP::WSDLDriverFactor…

---

## [Ipsocket ttl](https://www.ruby-forum.com/t/ipsocket-ttl/100549)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 1\
**Last updated:** [February 5, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/ipsocket-ttl/100549 "2006-02-05T15:07:45Z")

</div>

I was wondering if there is any way to specify the time-to-live value of an IP socket in ruby?

---

## [Empty string in response with method defined by means of add](https://www.ruby-forum.com/t/empty-string-in-response-with-method-defined-by-means-of-add/51941)

<div class="topic-metadata">

**Author:** [@aaaaaa](https://www.ruby-forum.com/u/aaaaaa)\
**Replies:** 1\
**Last updated:** [February 5, 2006, 2:07pm UTC](https://www.ruby-forum.com/t/empty-string-in-response-with-method-defined-by-means-of-add/51941 "2006-02-05T14:07:22Z")

</div>

Hi, I’m using a java web service with a ruby client. The easiest thing to get me up & running quickly was to define the method by means of add\_method. Hence, I’m not using WSDL. Sometimes I get a response where a par…

---

## [REXML::Parent#index does not return nil](https://www.ruby-forum.com/t/rexml-parent-index-does-not-return-nil/101263)

<div class="topic-metadata">

**Author:** [@TAKANO\_Noriyuki](https://www.ruby-forum.com/u/TAKANO_Noriyuki)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 1:40pm UTC](https://www.ruby-forum.com/t/rexml-parent-index-does-not-return-nil/101263 "2006-02-05T13:40:14Z")

</div>

Hi all, This is my first posting to ruby-talk. I regularly use REXML, appreciating those who are making and supporting it. But wishing it (or bug?) would be fixed, I wonder if this mailing list is an appropriate pla…

---

## [Getting wsdl method param types?](https://www.ruby-forum.com/t/getting-wsdl-method-param-types/55917)

<div class="topic-metadata">

**Author:** [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Replies:** 2\
**Last updated:** [February 5, 2006, 1:34pm UTC](https://www.ruby-forum.com/t/getting-wsdl-method-param-types/55917 "2006-02-05T13:34:11Z")

</div>

hello all I’m using the following to get a driver to call to some functions. require ‘soap/wsdlDriver’ wsdl = “http://localhost:8100/user/wsdl” @drv = SOAP::WSDLDriverFactory.new(wsdl).create\_rpc\_driver works great,…

---

## [Trouble with WSDL](https://www.ruby-forum.com/t/trouble-with-wsdl/87407)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 5, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/trouble-with-wsdl/87407 "2006-02-05T13:19:07Z")

</div>

I’m having some trouble getting the WSDLDriverFactory to create a driver for an Apache Axis generated wsdl. Whenever I attempt to connect this is the error I get: /usr/lib/ruby/1.8/wsdl/xmlSchema/sequence.rb:33:in e…

---

## [Extract hash into local variables?](https://www.ruby-forum.com/t/extract-hash-into-local-variables/101012)

<div class="topic-metadata">

**Author:** [@csn](https://www.ruby-forum.com/u/csn)\
**Replies:** 16\
**Last updated:** [February 5, 2006, 12:45pm UTC](https://www.ruby-forum.com/t/extract-hash-into-local-variables/101012 "2006-02-05T12:45:58Z")

</div>

Is there a Ruby function similar to PHP’s extract/list? What I’d like to do is: def foo(args={a=\>1, b=\>2, c=\>3}) args.extract puts a puts b puts c end Thanks csn

---

## [Ruby Syntax: 'initialize' versus 'init'](https://www.ruby-forum.com/t/ruby-syntax-initialize-versus-init/53405)

<div class="topic-metadata">

**Author:** [@Clint\_Checketts](https://www.ruby-forum.com/u/Clint_Checketts)\
**Replies:** 6\
**Last updated:** [February 5, 2006, 12:39pm UTC](https://www.ruby-forum.com/t/ruby-syntax-initialize-versus-init/53405 "2006-02-05T12:39:57Z")

</div>

While programming with Ruby, I’ve grown to love just how clear and concise the language is. (You all already know this of course). So, why is the object constructor so long? I mean ‘initialize’ could easily be repla…

---

## [Continuations and GC](https://www.ruby-forum.com/t/continuations-and-gc/101244)

<div class="topic-metadata">

**Author:** [@Christoffer\_LernSSS](https://www.ruby-forum.com/u/Christoffer_LernSSS)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 12:15pm UTC](https://www.ruby-forum.com/t/continuations-and-gc/101244 "2006-02-05T12:15:49Z")

</div>

I have problems getting things GC:ed properly when using continuations, which is a bit disturbing. I was looking at a few implementations of coroutines and they seem to prevent their continuations from being gc:ed. F…

---

## [DBI::ADO and image (binary) types](https://www.ruby-forum.com/t/dbi-ado-and-image-binary-types/101223)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 6:01am UTC](https://www.ruby-forum.com/t/dbi-ado-and-image-binary-types/101223 "2006-02-05T06:01:10Z")

</div>

Anyone know how I can insert a binary file into an image field in SQL server (either using a stored proc or SQL statement) using DBI::ADO interface? Thanks! Greg Brondo

---

## [Gonzui-emacs-0.3](https://www.ruby-forum.com/t/gonzui-emacs-0-3/101193)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 4:39am UTC](https://www.ruby-forum.com/t/gonzui-emacs-0-3/101193 "2006-02-05T04:39:52Z")

</div>

Hi, == Abstract gonzui-emacs is an Emacs interface of ((\<gonzui|URL:http://gonzui.sourceforge.net/\>)), a source code search engine. It is written in EmacsRuby. It uses ((\<langhelp|URL:http://www.rubyist.net/~rubik…

---

## [Built-in vs. standard library](https://www.ruby-forum.com/t/built-in-vs-standard-library/101118)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 10\
**Last updated:** [February 5, 2006, 4:03am UTC](https://www.ruby-forum.com/t/built-in-vs-standard-library/101118 "2006-02-05T04:03:44Z")

</div>

I’m confused about whether the Date class is built-in or in the standard library. I can use it without requiring it in irb, so that tells me it’s built-in. Pickaxe doesn’t document it in the “Built-in Classes and Mod…

---

## [Continuation](https://www.ruby-forum.com/t/continuation/101179)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 2\
**Last updated:** [February 5, 2006, 2:36am UTC](https://www.ruby-forum.com/t/continuation/101179 "2006-02-05T02:36:29Z")

</div>

Hello, irb(main):005:0\* cnt=0 =\> 0 irb(main):006:0\> cc=nil =\> nil irb(main):007:0\> callcc {|cc|} =\> nil irb(main):008:0\> cnt+=1 =\> 1 irb(main):009:0\> cc.call if cnt \< 10 =\> nil irb(main):010:0\> cnt =\> 1 irb(…

---

## [Rubyforge down?](https://www.ruby-forum.com/t/rubyforge-down/53426)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 3\
**Last updated:** [February 5, 2006, 2:30am UTC](https://www.ruby-forum.com/t/rubyforge-down/53426 "2006-02-05T02:30:26Z")

</div>

I can’t get to rubyforge at all today. Is it down for a reason or is it just down? -Ezra Z. WebMaster Yakima Herald-Republic Newspaper removed\_email\_address@domain.invalid blog: http://brainspl.at

---

## [RubyForge network problems](https://www.ruby-forum.com/t/rubyforge-network-problems/101178)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 0\
**Last updated:** [February 5, 2006, 12:56am UTC](https://www.ruby-forum.com/t/rubyforge-network-problems/101178 "2006-02-05T00:56:24Z")

</div>

Hi all - We’re experiencing some network problems upstream from RubyForge. Hopefully they’ll clear up shortly, although our ISP doesn’t have an ETA on that yet. Until it’s sorted out, there may be occasional periods …

---

## [Re: libnet binding for ruby](https://www.ruby-forum.com/t/re-libnet-binding-for-ruby/101152)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 0\
**Last updated:** [February 4, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/re-libnet-binding-for-ruby/101152 "2006-02-04T23:35:58Z")

</div>

Dave K. wrote: I was hoping to be able to build raw packets in ruby. I’ve found and have a working pcap binding. Is there a working libnet binding out there? I don’t know libnet (except what I just read on the web…

---

## [Help with print cgi.header(](https://www.ruby-forum.com/t/help-with-print-cgi-header/53428)

<div class="topic-metadata">

**Author:** [@Ernest\_Ellingson](https://www.ruby-forum.com/u/Ernest_Ellingson)\
**Replies:** 0\
**Last updated:** [February 4, 2006, 11:29pm UTC](https://www.ruby-forum.com/t/help-with-print-cgi-header/53428 "2006-02-04T23:29:55Z")

</div>

I’m trying to set a cookie using Apache on RHFedora core3 and Ruby CGI I’m sending a pdf file. The mail format looks as if there are two lines for the cookie header, but in reality there is only one. Here are the hea…

---

## [Help installing ruby-odbc on XP](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 3\
**Last updated:** [February 4, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/help-installing-ruby-odbc-on-xp/100737 "2006-02-04T21:21:04Z")

</div>

I am trying to install ruby-odbc on Windows XP and am stuck at the first command. When I run ruby extconf.rb, I get the following: C:\\lib\\ruby-odbc-0.996\>ruby extconf.rb checking for sql.h… yes checking for sqlext.h…

---

## [How to use Ruby interpreter as Windows DLL library?](https://www.ruby-forum.com/t/how-to-use-ruby-interpreter-as-windows-dll-library/101015)

<div class="topic-metadata">

**Author:** [@ssa](https://www.ruby-forum.com/u/ssa)\
**Replies:** 4\
**Last updated:** [February 4, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/how-to-use-ruby-interpreter-as-windows-dll-library/101015 "2006-02-04T21:14:45Z")

</div>

I have an idea (program, that uses Ruby interpreter). And I dont know how to use Ruby interpreter in my program. I looking for manuals (but I dont know English very well and I cannot find information about this) or id…

---

## [Fixnum#to\_a](https://www.ruby-forum.com/t/fixnum-to-a/100986)

<div class="topic-metadata">

**Author:** [@Levin\_A](https://www.ruby-forum.com/u/Levin_A)\
**Replies:** 5\
**Last updated:** [February 4, 2006, 7:37pm UTC](https://www.ruby-forum.com/t/fixnum-to-a/100986 "2006-02-04T19:37:47Z")

</div>

Hi, I’d like to propose Fixnum#to\_a: class Fixnum def to\_a(base=10,min\_length=0) self.to\_s(base).rjust(min\_length).split(//).map { |c| c.to\_i(base) } end end 12345.to\_a #=\> \[1,2,3,4,5\] 42.to\_a(2) #=\> \[1,0,1,0,1,…

---

## [Rcrarchive broken?](https://www.ruby-forum.com/t/rcrarchive-broken/53416)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 2\
**Last updated:** [February 4, 2006, 4:00pm UTC](https://www.ruby-forum.com/t/rcrarchive-broken/53416 "2006-02-04T16:00:30Z")

</div>

http://www.rcrchive.net/ I get: Application error (Rails) Kind regards robert

---

## [Check for and if not there, create direcory and file](https://www.ruby-forum.com/t/check-for-and-if-not-there-create-direcory-and-file/98886)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 17\
**Last updated:** [February 4, 2006, 1:00pm UTC](https://www.ruby-forum.com/t/check-for-and-if-not-there-create-direcory-and-file/98886 "2006-02-04T13:00:00Z")

</div>

I’m making a little app that requires this folder .timeclock/filename The first time the app runs I would like it to check to see if the folder and file are there and if not, create them. Everything I’ve tried crashes…

---

## [Ruby-dev summary 28206-28273](https://www.ruby-forum.com/t/ruby-dev-summary-28206-28273/100263)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 10\
**Last updated:** [February 4, 2006, 12:50pm UTC](https://www.ruby-forum.com/t/ruby-dev-summary-28206-28273/100263 "2006-02-04T12:50:46Z")

</div>

Hi all, This is a summary of ruby-dev ML in these days. \[ruby-dev:28211\] GC.stress TANAKA Akira proposed a new method GC.stress, which dispatches garbage collection more eagerly. This method is useful to debug GC re…

---

## [Ruby xmlrpc/server incompatible?](https://www.ruby-forum.com/t/ruby-xmlrpc-server-incompatible/100129)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 3\
**Last updated:** [February 4, 2006, 12:26pm UTC](https://www.ruby-forum.com/t/ruby-xmlrpc-server-incompatible/100129 "2006-02-04T12:26:27Z")

</div>

I have had a Ruby xmlrpc/server instance running for awhile now. Using both Ruby and Python xmlrpc client apps I have been able to successfully pass information back and forth. Trying a Dolphin Smalltalk xmlrpc client…

---

## [Re: Strange posting about ebooks](https://www.ruby-forum.com/t/re-strange-posting-about-ebooks/100513)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 7\
**Last updated:** [February 4, 2006, 12:11pm UTC](https://www.ruby-forum.com/t/re-strange-posting-about-ebooks/100513 "2006-02-04T12:11:13Z")

</div>

From: anne001 \[mailto:removed\_email\_address@domain.invalid\] #established earning good salaries who have therefore gotten religion. #Or the others did not say anything. me think that you are honest. that is only what m…

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

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