# Ruby

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

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

---

## [Compiled Ruby/LDAP for Windows 2000/XP?](https://www.ruby-forum.com/t/compiled-ruby-ldap-for-windows-2000-xp/65933)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 4\
**Last updated:** [August 22, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/compiled-ruby-ldap-for-windows-2000-xp/65933 "2006-08-22T17:42:41Z")

</div>

Hi ! Where can I find a precompiled version of Ruby/LDAP for Windows 2000/XP ?? I would like to connect to an AD with Ruby at work but I can’t… Thank you very much… Nicolas.

---

## [Strategy pattern / interface design arrangement](https://www.ruby-forum.com/t/strategy-pattern-interface-design-arrangement/65762)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 18\
**Last updated:** [August 22, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/strategy-pattern-interface-design-arrangement/65762 "2006-08-22T17:28:38Z")

</div>

Hi all. I’ve got a design question. Imagine you have a module, CreditCardProcessor. Inside CreditCardProcessor is another module called AuthorizeNet. CreditCardProcessor acts as an interface that AuthorizeNet must im…

---

## [Re: tempfile should be binary by default, or at least a flag](https://www.ruby-forum.com/t/re-tempfile-should-be-binary-by-default-or-at-least-a-flag/65950)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/re-tempfile-should-be-binary-by-default-or-at-least-a-flag/65950 "2006-08-22T16:44:33Z")

</div>

One can of course call .binmode immediately after creating the tempfile, but doesn’t binary by default make more sense in the case of a temporary file? If it’s too late to change the default behaviour, then perhaps …

---

## [Yet another caching mechanism. The one without the cache](https://www.ruby-forum.com/t/yet-another-caching-mechanism-the-one-without-the-cache/65926)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 5\
**Last updated:** [August 22, 2006, 4:00pm UTC](https://www.ruby-forum.com/t/yet-another-caching-mechanism-the-one-without-the-cache/65926 "2006-08-22T16:00:25Z")

</div>

I had a list of points. Many points. Too many points. It had to be reduced, in order for my GPS to be able to store it. 250 points, max. One of the algorithms I came up with, looked for “the worst point”, removed it …

---

## [\[QUIZ\] QA Prototype (#91)](https://www.ruby-forum.com/t/quiz-qa-prototype-91/65910)

<div class="topic-metadata">

**Author:** [@Lock\_Stephen](https://www.ruby-forum.com/u/Lock_Stephen)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/quiz-qa-prototype-91/65910 "2006-08-22T15:04:15Z")

</div>

My attempt - surprisingly short. Really annoying to test because every time you have a typo on a method name it offers to dynamically create the method for you! I imagine it’s nothing too far removed from how everybod…

---

## [How to create local users and groups on Windows using Ruby?](https://www.ruby-forum.com/t/how-to-create-local-users-and-groups-on-windows-using-ruby/65934)

<div class="topic-metadata">

**Author:** [@Jatinder\_S](https://www.ruby-forum.com/u/Jatinder_S)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-create-local-users-and-groups-on-windows-using-ruby/65934 "2006-08-22T15:04:15Z")

</div>

How do we create local system users and groups on Windows using Ruby? code should be portable across different versions of Windows. Regards, Jatinder

---

## [Parse.y (was Ripper and 1.8)](https://www.ruby-forum.com/t/parse-y-was-ripper-and-1-8/65930)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 2\
**Last updated:** [August 22, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/parse-y-was-ripper-and-1-8/65930 "2006-08-22T14:21:55Z")

</div>

Hi all, I’ve been poking around Ripper for the last couple a days and during that process I started to look at parse.y as it’s currently in CVS (Ruby 1.9 that is). I’m not very knowledgeable about yacc and parsers in…

---

## [Time default format: How to override](https://www.ruby-forum.com/t/time-default-format-how-to-override/65906)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 3\
**Last updated:** [August 22, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/time-default-format-how-to-override/65906 "2006-08-22T13:53:53Z")

</div>

I’m working on a Rails plugin that localizes default Time/Date formats. I want to override the standard month and daynames with local variants, but for some reason I can’t override the default Time month and daynames. …

---

## [1.9 net/smtp.rb](https://www.ruby-forum.com/t/1-9-net-smtp-rb/65549)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 4\
**Last updated:** [August 22, 2006, 12:21pm UTC](https://www.ruby-forum.com/t/1-9-net-smtp-rb/65549 "2006-08-22T12:21:42Z")

</div>

e$BEOJUE/Li$G$9!#e(B 8/15 e$B$K=$@5$5$l$?e(B net/smtp.rb e$B$G$9$,!"J#?t$N08@h$Ke(B e$BBP1~$G$-$F$$$J$$$h$&$G$9!#e(B ruby 1.9.0 (2006-08-16) \[i686-linux\] e$B;H$$J}$NNc\<($G$O!“J#?t%”%I%l%9$N$H$-$N$?$a$Ke(B Array e$B%/…

---

## [Very Silly One Liner](https://www.ruby-forum.com/t/very-silly-one-liner/65899)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 11:35am UTC](https://www.ruby-forum.com/t/very-silly-one-liner/65899 "2006-08-22T11:35:34Z")

</div>

Here is my very very silly one liner for the day… ruby -e ‘100.times{|n| a,b=n.divmod 10;10.times{|c|;d=c10+a;next unless d!=0&&n%d==0&&b==cn/d;printf “%02d/%02d=%d\\n”,n,d,n/d}}’ 00/10=0 00/20=0 00/30=0 00/40=0 00…

---

## [You can write Fortran in any language](https://www.ruby-forum.com/t/you-can-write-fortran-in-any-language/65781)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 15\
**Last updated:** [August 22, 2006, 11:21am UTC](https://www.ruby-forum.com/t/you-can-write-fortran-in-any-language/65781 "2006-08-22T11:21:32Z")

</div>

Here is an example used for computing correlations. It’s almost a direct translation of several hundred lines of Fortran 77. If you can bare to look, please help, even it is simply to say “yo bonehead, why didn’t you…

---

## [Ruby and ClearCase](https://www.ruby-forum.com/t/ruby-and-clearcase/65913)

<div class="topic-metadata">

**Author:** [@CameronS\_Gemma\_SUK](https://www.ruby-forum.com/u/CameronS_Gemma_SUK)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 11:09am UTC](https://www.ruby-forum.com/t/ruby-and-clearcase/65913 "2006-08-22T11:09:31Z")

</div>

Hi Guys, Has anyone used Ruby (or Rake) to interface with cleartool or Rational ClearCase? I googled the problem and found the following project at rubyforge which looks promising… or at least would be if there were …

---

## [Tempfile should be binary by default, or at least a flag](https://www.ruby-forum.com/t/tempfile-should-be-binary-by-default-or-at-least-a-flag/65911)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 11:05am UTC](https://www.ruby-forum.com/t/tempfile-should-be-binary-by-default-or-at-least-a-flag/65911 "2006-08-22T11:05:22Z")

</div>

Shouldn’t tempfile open it’s file in binary mode by default? One can of course call .binmode immediately after creating the tempfile, but doesn’t binary by default make more sense in the case of a temporary file? If …

---

## [Open4-0.5.1](https://www.ruby-forum.com/t/open4-0-5-1/65900)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 22, 2006, 8:37am UTC](https://www.ruby-forum.com/t/open4-0-5-1/65900 "2006-08-22T08:37:20Z")

</div>

URIS http://rubyforge.org/frs/?group\_id=1024 http://www.codeforpeople.com/lib/ruby/ SYNOPSIS open child process with handles on pid, stdin, stdout, and stderr: manage child processes and their io handles easily. H…

---

## [Advice for Net::HTTP class](https://www.ruby-forum.com/t/advice-for-net-http-class/65821)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 8:25am UTC](https://www.ruby-forum.com/t/advice-for-net-http-class/65821 "2006-08-22T08:25:19Z")

</div>

Hello, I am loosing myself with Net:HTTP class, following HowToRenderProxiedPages article I cannot make post method to proxy parameters to web page. require ‘net/http’ p.php \<?php print\_r($\_POST)?\> 1. does not wor…

---

## [For performance, write it in C - Part 3, Source code now ava](https://www.ruby-forum.com/t/for-performance-write-it-in-c-part-3-source-code-now-ava/100819)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 138\
**Last updated:** [August 22, 2006, 7:03am UTC](https://www.ruby-forum.com/t/for-performance-write-it-in-c-part-3-source-code-now-ava/100819 "2006-08-22T07:03:12Z")

</div>

The source code is available from http://peterhi.dyndns.org/write\_it\_in\_c/index.html

---

## [Generating wsdl in ruby](https://www.ruby-forum.com/t/generating-wsdl-in-ruby/65834)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 6:49am UTC](https://www.ruby-forum.com/t/generating-wsdl-in-ruby/65834 "2006-08-22T06:49:11Z")

</div>

does anybody know how to generate wsdl file when you create a soap server/client in ruby? is there a funcion?

---

## [Installing gems with rake](https://www.ruby-forum.com/t/installing-gems-with-rake/65818)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 6:09am UTC](https://www.ruby-forum.com/t/installing-gems-with-rake/65818 "2006-08-22T06:09:03Z")

</div>

is that possible. google says nothing about it. ciao robertj

---

## [Kconv::RegexpEucjp$B$N4V0c$$(B](https://www.ruby-forum.com/t/kconv-regexpeucjp-b-n4v0c-b/65866)

<div class="topic-metadata">

**Author:** [@Masahiro\_S](https://www.ruby-forum.com/u/Masahiro_S)\
**Replies:** 1\
**Last updated:** [August 22, 2006, 5:47am UTC](https://www.ruby-forum.com/t/kconv-regexpeucjp-b-n4v0c-b/65866 "2006-08-22T05:47:06Z")

</div>

e$B$3$s$K$A$O!"\<r0f$G$9!#e(B e$B8=:\_$Ne(BKconv::RegexpEucjpe$B$N@55,I=8=$K$O4V0c$$$,$"$k$?$a!“e(B Kconv.iseuce$B$Ge(BEUC-JPe$B$NJ8;zNs$rG’\<1$G$-$J$$$3$H$,$”$j$^$9!#e(B e$BNc$($P!“e(B”\\xf4\\xa6" (JIS X 0208 e$B$Ne(B 84-…

---

## [Working around "single-pass" constraint](https://www.ruby-forum.com/t/working-around-single-pass-constraint/65809)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 4\
**Last updated:** [August 22, 2006, 4:20am UTC](https://www.ruby-forum.com/t/working-around-single-pass-constraint/65809 "2006-08-22T04:20:56Z")

</div>

I like to order my program code files as follows: Initial comment header require statements, etc. “main” code method definitions Unfortunately, Ruby has a “single pass” execution flow (a bit reminiscent of Pascal’s…

---

## [Thwait](https://www.ruby-forum.com/t/thwait/65879)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 22, 2006, 2:54am UTC](https://www.ruby-forum.com/t/thwait/65879 "2006-08-22T02:54:52Z")

</div>

i’m unsure if this should be expected to cause deadlock or not? ruby -r thwait -e’ ThWait.all\_waits(\*Array.new(42){ Thread.new{Thread.stop} }) ’ for 1.8.1 - 1.8.4 it does. thoughts? -a

---

## [Http.post 1.8.4 bug?](https://www.ruby-forum.com/t/http-post-1-8-4-bug/65852)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 8\
**Last updated:** [August 22, 2006, 2:23am UTC](https://www.ruby-forum.com/t/http-post-1-8-4-bug/65852 "2006-08-22T02:23:18Z")

</div>

I’m having a problem with http.post for ruby 1.8.4. Specifically, the server I’m posting to is complaining that it is not getting all the parameter I’m sending. This code snippet works in version 1.8.2 but fails in 1…

---

## [Initialize and superclass](https://www.ruby-forum.com/t/initialize-and-superclass/65708)

<div class="topic-metadata">

**Author:** [@jvivenot](https://www.ruby-forum.com/u/jvivenot)\
**Replies:** 6\
**Last updated:** [August 22, 2006, 12:06am UTC](https://www.ruby-forum.com/t/initialize-and-superclass/65708 "2006-08-22T00:06:39Z")

</div>

Hi I’d like to know something : Lets say I have two classes A and B, where A is B’s superclass. B’s initialize method initialize her own variables, but how could I do in order to run A.initialize before B.initialize …

---

## [Zerenity 1.1](https://www.ruby-forum.com/t/zerenity-1-1/65858)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/zerenity-1-1/65858 "2006-08-21T23:48:38Z")

</div>

Zerenity is an almost clone of Zenity(Best Open Source Mac Software Development Software 2023) for Ruby. It allows for the easy creation of simple graphical dialogs from a Ruby script. = Zerenity Changelog == 1.1 F…

---

## [Noob question: How to do number formatting?](https://www.ruby-forum.com/t/noob-question-how-to-do-number-formatting/65861)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [August 21, 2006, 11:42pm UTC](https://www.ruby-forum.com/t/noob-question-how-to-do-number-formatting/65861 "2006-08-21T23:42:37Z")

</div>

I searched the documentation and everything and can’t find a simple method for number formatting. Any links? thanks for your help.

---

## [Re: Welcome to our (ruby-talk ML) You are added auto](https://www.ruby-forum.com/t/re-welcome-to-our-ruby-talk-ml-you-are-added-auto/65862)

<div class="topic-metadata">

**Author:** [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/re-welcome-to-our-ruby-talk-ml-you-are-added-auto/65862 "2006-08-21T23:34:36Z")

</div>

\#help

---

## [A question about rio and frames](https://www.ruby-forum.com/t/a-question-about-rio-and-frames/65851)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 21, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/a-question-about-rio-and-frames/65851 "2006-08-21T22:43:08Z")

</div>

Dear all, while trying to download some website with open-uri, I am only getting a message that my browser doesn’t support frames, and that I should download some other website without frames, but if I download that…

---

## [Been there, done that - language shootout](https://www.ruby-forum.com/t/been-there-done-that-language-shootout/101921)

<div class="topic-metadata">

**Author:** [@igouy](https://www.ruby-forum.com/u/igouy)\
**Replies:** 30\
**Last updated:** [August 21, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/been-there-done-that-language-shootout/101921 "2006-08-21T22:26:25Z")

</div>

Peter H. wrote: -snip- However Ocaml is an eye opener. Browse the Language Shootout http://shootout.alioth.debian.org/gp4/index.php Here’s something that generates permutations of a small integer array http://sho…

---

## [Fwd: Reap's rubytest script](https://www.ruby-forum.com/t/fwd-reaps-rubytest-script/65728)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 21, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/fwd-reaps-rubytest-script/65728 "2006-08-21T22:12:25Z")

</div>

My ‘rubytest’ program which allows one to directly run tests that are commented in =begin test … =end blocks in source. I’ve thought for a while now that maybe that’s not a good name. But I could never think of a bett…

---

## [Zurich, Switzerland Ruby/Rails User Group forming](https://www.ruby-forum.com/t/zurich-switzerland-ruby-rails-user-group-forming/65848)

<div class="topic-metadata">

**Author:** [@Jens-Christian\_F](https://www.ruby-forum.com/u/Jens-Christian_F)\
**Replies:** 0\
**Last updated:** [August 21, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/zurich-switzerland-ruby-rails-user-group-forming/65848 "2006-08-21T21:32:21Z")

</div>

Seeing that there is no Zurich (or Swiss for that matter) Ruby or Rails group, I’d like to start one. I’d like to propose Thursday evening on the 28.9.2006 as the forming date (a date that coincidentally falls on the …

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

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