# Ruby

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

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

---

## [ANN: Madeleine 0.7.2](https://www.ruby-forum.com/t/ann-madeleine-0-7-2/61933)

<div class="topic-metadata">

**Author:** [@Anders\_Bengtsson](https://www.ruby-forum.com/u/Anders_Bengtsson)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/ann-madeleine-0-7-2/61933 "2006-05-29T23:27:26Z")

</div>

What is Madeleine? “Are you still using a database?” Madeleine is a Ruby implementation of Object Prevalence: Transparent persistence of business objects using command logging and snapshots. http://madeleine.sourc…

---

## [Weird extension behavior](https://www.ruby-forum.com/t/weird-extension-behavior/61452)

<div class="topic-metadata">

**Author:** [@Brian\_Krahmer](https://www.ruby-forum.com/u/Brian_Krahmer)\
**Replies:** 1\
**Last updated:** [May 29, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/weird-extension-behavior/61452 "2006-05-29T17:21:25Z")

</div>

I’m writing my first extension, which has some low-level networking functions to interface with some legacy code. I have two functions in the extension, send, and recv\_line, which work with a socket. I’m testing wit…

---

## [Ruby 1.8.4 compilation failed on cygwin](https://www.ruby-forum.com/t/ruby-1-8-4-compilation-failed-on-cygwin/61343)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 6\
**Last updated:** [May 29, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-compilation-failed-on-cygwin/61343 "2006-05-29T16:50:19Z")

</div>

My current ruby version is 1.8.1 under cygwin , I want to upgrade it to 1.8.4. Here is the info about the enviroment: cygwin version 2.427 window 98 ruby - 1.8.4 source code After run ./configure and make, I got th…

---

## [Re: PNG to OpenGL Texture (libpng)](https://www.ruby-forum.com/t/re-png-to-opengl-texture-libpng/95343)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/re-png-to-opengl-texture-libpng/95343 "2006-05-29T16:31:15Z")

</div>

There’s a Linux library glpng that claims it can do this. Otherwise, Imagemagick and its Ruby bindings RMagick could help with format conversions. Best regards, Axel

---

## [Directory Diff Script](https://www.ruby-forum.com/t/directory-diff-script/61891)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 3\
**Last updated:** [May 29, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/directory-diff-script/61891 "2006-05-29T14:14:49Z")

</div>

Hi, I am after a directory diff script in Ruby, so I can compare all the files in multiple directories. Does anybody know of such a script? Thanks. Nick.

---

## [Equivalent of Python zfill?](https://www.ruby-forum.com/t/equivalent-of-python-zfill/61886)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 5\
**Last updated:** [May 29, 2006, 1:29pm UTC](https://www.ruby-forum.com/t/equivalent-of-python-zfill/61886 "2006-05-29T13:29:22Z")

</div>

Hello all, I need a function which takes a number (x) and outputs a string which contains x zeroes. e.g. foo(3) = “000” foo(5) = “00000” etc. in Python this function is ‘’.zfill(5) another possibility would be 5\*‘…

---

## [Re: Equivalent of Python zfill?](https://www.ruby-forum.com/t/re-equivalent-of-python-zfill/95338)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [May 29, 2006, 12:34pm UTC](https://www.ruby-forum.com/t/re-equivalent-of-python-zfill/95338 "2006-05-29T12:34:31Z")

</div>

fr Peter: But if “0”\*7 is the ‘normal’ way of doing this, it’s OK with me. in ruby in general, the shorter and simpler, the faster. kind regards -botp

---

## [Re: Equivalent of Python zfill?](https://www.ruby-forum.com/t/re-equivalent-of-python-zfill/95341)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 12:16pm UTC](https://www.ruby-forum.com/t/re-equivalent-of-python-zfill/95341 "2006-05-29T12:16:11Z")

</div>

fr Peter: in Python this function is ‘’.zfill(5) another possibility would be 5\*‘0’ Equivalents in Ruby? I would be mainly interested in a zfill equivalent since that is faster that join or 5\* imho. same here. irb(mai…

---

## [Re: Advanced ping](https://www.ruby-forum.com/t/re-advanced-ping/95339)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 1\
**Last updated:** [May 29, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/re-advanced-ping/95339 "2006-05-29T12:06:55Z")

</div>

fr Peter: I remember i did this long time ago in Python by calling the command line ping and screen-scraping the result. Ugly solution, but worked. same here, but i’ve always trusted the os-level ping, so something lik…

---

## [Re: Fast Fibonacci method](https://www.ruby-forum.com/t/re-fast-fibonacci-method/95328)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [May 29, 2006, 11:21am UTC](https://www.ruby-forum.com/t/re-fast-fibonacci-method/95328 "2006-05-29T11:21:25Z")

</div>

Why are you interested in the millionth Fibonacci number, actually ?

---

## [Load\_to(file, mod)](https://www.ruby-forum.com/t/load-to-file-mod/60262)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 7\
**Last updated:** [May 29, 2006, 11:21am UTC](https://www.ruby-forum.com/t/load-to-file-mod/60262 "2006-05-29T11:21:24Z")

</div>

e$B1J0fe(B@e$BCNG=!%6e9)Bg$G$9!%e(B e$B;XDj$7$?%b%8%e!\<%k2\<$Ke(B load e$B$9$k$?$a$Ke(B subject e$B$K\<($7$?$h$&$Je(B e$B4X?t7?$N%a%=%C%I$,e(B (e$BL\>A0$NNI$70-$7$OJ\]N1$H$7$Fe(B) e$BM\_$7$$$J$H;W$C$F$$$^$9!%e(B load(fil…

---

## [Advanced ping](https://www.ruby-forum.com/t/advanced-ping/95337)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 10:29am UTC](https://www.ruby-forum.com/t/advanced-ping/95337 "2006-05-29T10:29:51Z")

</div>

Hello all, I would like to ping a server, but additionally to a yes/no answer i need packet loss, min/max/avg time. I have been browsing the different ping libraries available in Ruby (well, i have found 2) but neithe…

---

## [Crazy thought -- Rubyish type conversion?](https://www.ruby-forum.com/t/crazy-thought-rubyish-type-conversion/61827)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 30\
**Last updated:** [May 29, 2006, 10:26am UTC](https://www.ruby-forum.com/t/crazy-thought-rubyish-type-conversion/61827 "2006-05-29T10:26:43Z")

</div>

Now, I’m sure you’ll all hate this, but I just had to post it. What if optional “type hinting”, or, more accurately, “type conversion”, was added to the method definition syntax? def foo(str bar, i baz, sym bur) # so…

---

## [Ruby Threads](https://www.ruby-forum.com/t/ruby-threads/95303)

<div class="topic-metadata">

**Author:** [@ReggW](https://www.ruby-forum.com/u/ReggW)\
**Replies:** 39\
**Last updated:** [May 29, 2006, 10:14am UTC](https://www.ruby-forum.com/t/ruby-threads/95303 "2006-05-29T10:14:28Z")

</div>

What is the reason why Ruby doesn’t use native threads…at least on Windows? Thanks

---

## [LWP like library for Ruby?](https://www.ruby-forum.com/t/lwp-like-library-for-ruby/61843)

<div class="topic-metadata">

**Author:** [@gman327](https://www.ruby-forum.com/u/gman327)\
**Replies:** 5\
**Last updated:** [May 29, 2006, 9:10am UTC](https://www.ruby-forum.com/t/lwp-like-library-for-ruby/61843 "2006-05-29T09:10:32Z")

</div>

Can anybody tell me does Ruby support perl like LWP programming? ie. scraping content of websites with support for Cookies

---

## [Re: new.ruby-lang.org (was: Re: Proposing: A new Ruby Window](https://www.ruby-forum.com/t/re-new-ruby-lang-org-was-re-proposing-a-new-ruby-window/61873)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 6:56am UTC](https://www.ruby-forum.com/t/re-new-ruby-lang-org-was-re-proposing-a-new-ruby-window/61873 "2006-05-29T06:56:15Z")

</div>

fr C: built-in tutorial) or this can be added as "Web-based irb for when the a web-based irb (webrick or mongrel driven) would be a good project. fire up irb --web and not only you can use irb, but your friends as wel…

---

## [Re: Fast Fibonacci method](https://www.ruby-forum.com/t/re-fast-fibonacci-method/95329)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 29, 2006, 5:29am UTC](https://www.ruby-forum.com/t/re-fast-fibonacci-method/95329 "2006-05-29T05:29:43Z")

</div>

Dear Erlercw, just speculating … I think one method that might seem a little far-fetched, but maybe worthwhile, if you want to calculate big Fibonacci numbers via the formula of Wilf’s book, could use continued frac…

---

## [String segfault with wide character function, Windows](https://www.ruby-forum.com/t/string-segfault-with-wide-character-function-windows/61822)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [May 29, 2006, 5:14am UTC](https://www.ruby-forum.com/t/string-segfault-with-wide-character-function-windows/61822 "2006-05-29T05:14:22Z")

</div>

Ruby 1.8.4 (one click) Windows XP Check this out segfault: strtest.rb require ‘Win32API’ GetFullPathNameW = Win32API.new(‘kernel32’,‘GetFullPathNameW’,‘PLPP’, ‘L’) path = “C:\\test” buf = 0.chr \* 260 if GetFullPa…

---

## [A bug in ranges?](https://www.ruby-forum.com/t/a-bug-in-ranges/95321)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 6\
**Last updated:** [May 29, 2006, 4:04am UTC](https://www.ruby-forum.com/t/a-bug-in-ranges/95321 "2006-05-29T04:04:43Z")

</div>

I think I may have stumbled upon a minor bug in ranges. on my system, (“Z”…“AA”).map returns \[\] while “Z”.succ returns “AA” “Z”.upto(“AA”) also returns \[\] ruby 1.8.4 (2005-12-24) \[i686-darwin8.6.1\] Is this a real …

---

## [Automatic code generation in vim](https://www.ruby-forum.com/t/automatic-code-generation-in-vim/61746)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 12\
**Last updated:** [May 29, 2006, 2:32am UTC](https://www.ruby-forum.com/t/automatic-code-generation-in-vim/61746 "2006-05-29T02:32:45Z")

</div>

Hi list. This is an editor question for Ruby. I’ve seen the demo of RoR where textmate is widely used. Among the others, the most interesting feature was automatic code generation like forin =\> for in end I’ve …

---

## [Id3lib-ruby 0.3.0 (Windows binary gem)](https://www.ruby-forum.com/t/id3lib-ruby-0-3-0-windows-binary-gem/61857)

<div class="topic-metadata">

**Author:** [@rschuil](https://www.ruby-forum.com/u/rschuil)\
**Replies:** 0\
**Last updated:** [May 28, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/id3lib-ruby-0-3-0-windows-binary-gem/61857 "2006-05-28T23:31:54Z")

</div>

Hi everyone, The fourth release of id3lib-ruby features a Windows binary gem, which means that installing on Windows now is a piece of cake! Get it through RubyGems or from: http://id3lib-ruby.rubyforge.org/ Thanks …

---

## [foxGUIb GUI and code separation question](https://www.ruby-forum.com/t/foxguib-gui-and-code-separation-question/95320)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 28, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/foxguib-gui-and-code-separation-question/95320 "2006-05-28T22:27:57Z")

</div>

While working through example 1 in the user’s guide to foxGUIb, I am running into problems when I try to separate GUI design and code. Inches.rb is ok, but ExtendInches.rb doesn’t work (see the errors file). I’ve a…

---

## [Re: What's wrong with Windows? (Was: Re: String segfault wit](https://www.ruby-forum.com/t/re-whats-wrong-with-windows-was-re-string-segfault-wit/95326)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 28, 2006, 9:02pm UTC](https://www.ruby-forum.com/t/re-whats-wrong-with-windows-was-re-string-segfault-wit/95326 "2006-05-28T21:02:43Z")

</div>

I don’t think the bug I posted (which now appears to be sporadic, btw) is necessarily related to the bugs reported in ruby-gsl or fxruby. It could be a bug in string.c. Or, it could be a compiler bug. Or, it co…

---

## [Ri broken](https://www.ruby-forum.com/t/ri-broken/95315)

<div class="topic-metadata">

**Author:** [@wksmall](https://www.ruby-forum.com/u/wksmall)\
**Replies:** 1\
**Last updated:** [May 28, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/ri-broken/95315 "2006-05-28T20:47:15Z")

</div>

RI does not produce useful output. ri Kernel.format More than one method matched your request. You can refine your search by asking for information on one of: Kernel#format, Kernel#format ri --version ri v1.0.1…

---

## [SkÃ¥ne/SjÃ¦lland Ruby User Group](https://www.ruby-forum.com/t/ska-ne-sja-lland-ruby-user-group/61847)

<div class="topic-metadata">

**Author:** [@Christoffer\_S](https://www.ruby-forum.com/u/Christoffer_S)\
**Replies:** 0\
**Last updated:** [May 28, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/ska-ne-sja-lland-ruby-user-group/61847 "2006-05-28T20:28:31Z")

</div>

Hello! I’d just like to announce that Skåne/Sjælland Ruby U. Group (SSRUG) has gained some momentum and is looking for more members. You can find our website/wiki over at http://www.ssrug.net/.

---

## [Ruby under XXAMP on WinXP machine](https://www.ruby-forum.com/t/ruby-under-xxamp-on-winxp-machine/61795)

<div class="topic-metadata">

**Author:** [@val](https://www.ruby-forum.com/u/val)\
**Replies:** 3\
**Last updated:** [May 28, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/ruby-under-xxamp-on-winxp-machine/61795 "2006-05-28T19:47:42Z")

</div>

This may be really dumb (my armor is on)… but, Can I run Ruby /Ruby on Rails under XXAMP on my Windows XP machine?

---

## [Win32-dir 0.3.0](https://www.ruby-forum.com/t/win32-dir-0-3-0/95323)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [May 28, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/win32-dir-0-3-0/95323 "2006-05-28T18:15:20Z")

</div>

Hi all, In the ongoing effort to Rubyify as much of the Win32 Utils project as we can, I’m pleased to announce the release of win32-dir 0.3.0. What’s new? It’s now pure Ruby! It now has a gem! Otherwise, everything …

---

## [Fast Fibonacci method](https://www.ruby-forum.com/t/fast-fibonacci-method/61772)

<div class="topic-metadata">

**Author:** [@C\_Erler](https://www.ruby-forum.com/u/C_Erler)\
**Replies:** 3\
**Last updated:** [May 28, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/fast-fibonacci-method/61772 "2006-05-28T17:53:21Z")

</div>

The fastest pure-Ruby Fibonacci method I have been able to come up with is a copy of the GMP algorithm described at http://www.swox.com/gmp/manual/Fibonacci-Numbers-Algorithm.html Is there a Ruby implementation that …

---

## [Re: Fast Fibonacci method](https://www.ruby-forum.com/t/re-fast-fibonacci-method/61799)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 28, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/re-fast-fibonacci-method/61799 "2006-05-28T17:53:13Z")

</div>

Dear Erlercw, if you want to implement the Fibonacci calculation to show some benchmark using the recurrence formula F\_{n+2}=F\_{n+1}+F\_{n}, this isn’t for you. But I’d bet that the formula 1.3.3 in \_http://www.math…

---

## [Fwd: Quiz submission](https://www.ruby-forum.com/t/fwd-quiz-submission/229072)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 28, 2006, 5:25pm UTC](https://www.ruby-forum.com/t/fwd-quiz-submission/229072 "2006-05-28T17:25:26Z")

</div>

Begin forwarded message:

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

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