177307-179621 subjects 177639-181017

webservi ce consumption over SSL
177426 [GiedriusBana] write in another way.
177699 [phurley@gm i] Well unless you want to wait a long time you will probably want to

177432 [wn9r-amn@as ] I am using ruby-1.8.4 on Mac 10.4.4 with XCode-2.2
177436 [mark@sc tt s] There is a bug in version 1.0.10 when using Ruby 1.8.4 - it is some sort of
177438 [wn9r-amn@as ] Thanks Mark
177440 [mark@sc tt s] Ryutaro,
177442 [wn9r-amn@as ] I tried. Thank you useful help.
+ 177465 [mark@sc tt s] Cool.
| 177528 [wn9r-amn@as ] I have installed qt-mac-free-3.3.5 instead of qt-mac-free-3.3.6-
+ 177742 [fugalh@gm il] ...

wsdl2ruby NoMethodError
177441 [GiedriusBana] exception. Stopping ... undefined method `namespace' for nil:NilClass
+ 177449 [GiedriusBana] I've got it working by my self by removing --force option,
+ 182626 [nakahiro@sa ] Sorry for late reply.

directory structure
177457 [GiedriusBana] 1) how to set working directory for irb?
+ 177541 [adam.shelly@] irb(main):018:0> Dir::pwd
+ 177745 [bob.news@gm ] These I put into ~/lib/ruby and set env var RUBYLIB accordingly.

check for and if not there, create direcory and file
177469 [cbowmanschoo] I'm making a little app that requires this folder .timeclock/filename
177472 [M.B.Smillie@] irb(main):001:0> File.exist?(".timeclock")
177475 [cbowmanschoo] irb(main):002:0> Dir.mkdir(".timeclock")
+ 177476 [logancapaldo] Yes, that's why you wrap it in an if (or unless) statement.
| + 177477 [cbowmanschoo] Thank you, that worked perfect.
| + 177485 [ara.t.howard] one cannot both check and/or create a dir in an atomic fashion.  in fact, one
| | 177490 [leavengood@g] While this is true, I think it only matters when one is dealing with
| | + 177495 [ara.t.howard] heh - i probably do get a little pedantic with that stuff - but it's so hard
| | | + 177501 [cbowmanschoo] Thanks for the tip! This is just a personal timekeeper for me.  But I
| | | + 177761 [konsu@ho ma ] i think it is not possuble to avoid this problem in a web application which
| | |   177901 [M.B.Smillie@] If it has to be a file, I would use unique names keyed to the session
| | + 177646 [collinsj@se ] Not necessarily - the program could check for the existence of the
| |   177674 [mental@ry ia] It's probably worth working out what a sane way to fail in that case
| + 177754 [konsu@ho ma ] Dir.mkdir(".timeclock") unless File.exist?(".timeclock")
|   + 177884 [vjoel@pa h. ] require 'fileutils'
|   + 178343 [langstefan@g] ####################################################################
+ 177752 [konsu@ho ma ] may be it would fail. but you have the other method(s) that you can use to
+ 177753 [emschwar@lo ] That is why you use the File.exist?(".timeclock") method first, and

ruby-based ODT to XHTML mentioned in ooo-announce
177479 [vjoel@pa h. ] Haven't seen this announced on the list yet, so...

different results between wsdl2ruby and wsdlDriver
177481 [mattrose@fo ] Sorry for barging in like this, but I've spent a few days looking for this
182627 [nakahiro@sa ] Sorry for late reply.

IO.popen hangs reading an empty pipe?
177484 [payton@fo lo] How does one check a pipe (created using IO.popen) to see if there is
177487 [ara.t.howard] IO.popen("cat", "r+") do |pipe|
177488 [payton@fo lo] Ah. You're right, of course.  I could have sworn that I tried using
177494 [ara.t.howard] you can do anything with session that bash can do - not sure if it'll work for
177496 [vjoel@pa h. ] I've mixed threads, timeout, and sockets on windows with no problems.

Is this a floating point precision problem?
177491 [tgate@my ub ] I'm using the Matrix module (matrix.rb)  to help place a vertex into
+ 177504 [ruby-ml@ma i] Without pretending to have any idea about mathematical operations,
| 177507 [logancapaldo] Alternatively, if you know how precise you need it to be, and its not
| 177510 [Nuralanur@ao] ...
+ 177513 [caleb@ae -t ] I don't get the same inverse; maybe that's a good place to look?
| 177523 [tgate@my ub ] That's strange.  I ran it again and this time came up with a different
| + 177593 [tgate@my ub ] Could this be architecture related?  I've tried this both on a pc and a
| | 177823 [zinsser@in o] I looked into matrix.rb and found the reason for your problem.
| | 178152 [znmeb@ce ma ] Yeah ... I think if you use Mathn you'll have better results ...
| + 177780 [zinsser@in o] I tried it in C++
+ 177662 [znmeb@ce ma ] I don't know what Ruby is doing here, but the R language gives a much
  177667 [lukfugl@gm i] Comparing your inverse and Caleb's, they look pretty close. In only

Re: Premature end of regular expression with non-ascii chara
177493 [nick.snels@g] Thank you both very much for the suggestions. First off I have
+ 177516 [Nuralanur@ao] ...
| 177549 [nick.snels@g] thanks for the reply. If I try your code, my characters with accents
| 177552 [meadow.nnick] The odds are your text is in non-UTF8 encoding, but in CP1252 or similar.
| 177556 [nick.snels@g] Indeed, it isn't in UTF-8. It's in ISO-8859-1 (Latin1). The problem here
| + 177559 [meadow.nnick] use Iconv library
| | 177564 [nick.snels@g] thanks for the suggestion I will definitely give Iconv a try. Hope it
| | 177597 [Nuralanur@ao] ...
| | 177608 [logancapaldo] Zero width positive lookahead is a little overkill, split(//) works
| + 177782 [lars.broecke] I have to deal with similar problems when processing the infamous german
+ 177763 [dave@bu t. d] I haven't had the issues you're talking about, because I'm only doing apps

Ruby not seeing readline on sparc64-sun-solaris2.8
177500 [jim@fr ez .o] I can't seem to get ruby 1.8.4 to see lib readline. I have compiled readline in

extconf.rb not seeing readline.h
177506 [jim@fr ez .o] What does it take for extconf.rb to recognize readline.h?
177525 [drbrain@se m] Could you attach your mkmf.log?

[OT] Requesting feedback on Typo blog hosting at Planet Argon
177514 [lyle.johnson] If you have any experience (good or bad) with Planet Argon's Typo blog

One-Click Ruby Installer 184-16 preview2 is available!
177517 [curt.hibbs@g] === One-Click Ruby Installer 184-16 preview2 is available! ===
+ 177532 [tom@in oe he] Just wanted to inject a quick thanks to the folks who are providing
| 177567 [ml.chibbs@gm] Yes, definitely feel free to send a note of appreciation to those who
| + 177584 [tom@in oe he] It's no problem!  The One-Click Installer is the most popular download
| | 177588 [Daniel.Berge] Are the mirrors sync'd yet?  It keeps stalling at 14% download for me.
| | 177590 [tom@in oe he] Hm, works for me (tm).  Anyone else having problems downloading it?
| + 177596 [vjoel@pa h. ] This is a question more about gems, I think. I noticed that, after
|   + 177612 [ml.chibbs@gm] Yes, this would break both FreeRIDE and fxri.
|   | + 177616 [Daniel.Berge] Seems to be working now.  Probably a network issue on my end since no
|   | + 177642 [guslist@fr e] This version of ruby doesn't seem to work on Linux+Wine. The installer
|   |   177643 [ml.chibbs@gm] Maybe the RUBYOPT environent variable isn't getting set. Try manually
|   |   + 177644 [ara.t.howard] i used it a while back to decode some xls files this way - actually worked.  i
|   |   | 177647 [james_b@ne r] Weirdo.
|   |   + 177645 [guslist@fr e] It is set. Apparently, any require fails.
|   |     + 177659 [ml.chibbs@gm] I'm afraid I haven't a clue.
|   |     | + 177660 [ml.chibbs@gm] That was supposed to say "or in something I added on" not "and in
|   |     | + 177933 [guslist@fr e] puts(1.to_yaml)
|   |     |   177937 [ml.chibbs@gm] I see you already did what was going to suggest, but I was also going
|   |     + 177709 [aledonne.lis] It looks like it's trying to write files in retrieving a gem, but
|   |       177934 [guslist@fr e] % wine wcmd
|   + 177668 [jim@we ri hh] I assume you mean lock down so that the gem cleanup command won't remove
|     177852 [surrender_it] would it be reasonable to add a switch (I'm thinking of "gem lock
+ 177669 [jlsysinc@al ] FXRI doesn't appear to work correctly.
+ 177685 [ml.chibbs@gm] It was just reported and verified that "fxri" is not working properly.
| 177889 [pfharlock@ya] I'm not an expert, so this might be a moot point, but having tk included
+ 177777 [newshoundat@] === One-Click Ruby Installer 184-16 preview2 is available! ===
  177898 [ml.chibbs@gm] Thanks... this is a big help!  I'll take a closer look ASAP.

Announcing libruby-ntlm
177520 [ joe@x2 .o g] This Saturday, I spent some time coding an NTLM authentication module. It
+ 177529 [tsumeruby@ts] Intresting, I'll test out this library on the win2k3 servers. Intresting this
+ 177530 [jason.sweat@] Could this be used with WEBrick to provide a server using NTML
  177533 [ joe@x2 .o g] It only acts as an authentication client for now, I do not plan on making

Rake changes (was Rake 0.7.0 breaks "rake engine_migrate"?)
177522 [damphyr@fr e] Well I stumbled on a different change: Task.lookup is no longer there.

Array prepending nil object
177534 [skilic@gm il] I'm going through Brian Schr?der's tutorial and hit a small snag. The
+ 177535 [vjoel@pa h. ] The nil is just the return value of the last expression, not part of the
| 177537 [skilic@gm il] Thanks Joel. I did actually use irb but only through MINGW on WindowsXP, where unfortunately you don't get the descriptive "code/linemarker" thingys.
+ 177536 [bmc@sh oo co] You are running this inside irb.  print returns nil, which you are
  177538 [skilic@gm il] Thank you too Brian, that makes it quite clear.

[ANN] Mongrel HTTP Library 0.2.0 (Fast And RubyForgified)
177539 [zedshaw@ze s] I'm happy to announce the 0.2.0 release of Mongrel -- the fastest
+ 177555 [george.mosch] thanks for  your great work. Just wanted to let you know that there is
| 177563 [zedshaw@ze s] Oh, so very cool.  I'll hit you guys up on #nitro to get the details
+ 177874 [brianm@ap ch] Hmm, nice feature would be able to stop a running server...
| 177914 [zedshaw@ze s] Until I get a real server architecture up you'll have to rely on the
+ 177915 [steven@lu os] Any immediate idea about the following?
  177929 [zedshaw@ze s] You probably have an older version lying around somewhere.  That
  + 177931 [daniels@pr n] Seem to have a slight problem with the mongrel gem, unless I'm using the
  | 177953 [zedshaw@ze s] Odd, not quite sure what would cause that.  Can you try the soon to
  | 178070 [wilsonb@gm i] I know Windows is evil, but I thought I'd paste in my log again, just
  | 178077 [zedshaw@ze s] You're missing the fix posted just today.  I'll have a 0.2.2 out that
  | 178098 [wilsonb@gm i] Awesome. Fixed.  The changes I made to extconf.rb were unnecessary as well.
  + 178055 [steven@lu os] Of course that was it.  Thanks.

ri bug?
177542 [vjoel@pa h. ] $ ruby -v
177605 [drbrain@se m] $ ruby -v
177609 [vjoel@pa h. ] Thanks! That seems to have been the problem. I deleted

Looking for web crawler written in Ruby
177543 [tuweiwen@gm ] ...
+ 177603 [collinsj@se ] But it's really terrible. It isn't hard to write your own, if you need
+ 177617 [james@gr yp ] The code I translated from Higher-Order Perl at the tail end of the
| 177654 [tuweiwen@gm ] ...
+ 177787 [gene.tani@gm] (look at cached page)
| 177908 [james_b@ne r] There's not much spidering going on there, just some page scraping
+ 177896 [agorilla@gm ] now you're practically crawling with spiders :)

177544 [vjoel@pa h. ] Can anybody explain why Set#merge is destructive, but Hash#merge is not?
177547 [stefan.walk@] Probably the same reason that Array#delete is destructive, but

Re: Premature end of regular expression with non-ascii character
177557 [sndgk393@yb ] This problem is quite unrelated to Oniguruma.

way to rexpect on windows
177560 [manishs@re o] I am using ruby mostly for running my watir (Web automation
177658 [znmeb@ce ma ] I'm pretty sure there's a "native" port of "expect" to Windows, if that

[QUIZ] Missing Solutions (#64)
177565 [james@gr yp ] Ross Bamford was kind enough to bring these to my attention and I
177580 [leavengood@g] The second one is a port of ACME::Bleach which was also done in Ruby
+ 177582 [Daniel.Berge] Please God, no, not a port of the ACME modules.
+ 177586 [james@gr yp ] James Edward Gray II

Strange print
177569 [rootkvi@ya d] I have some text in russian. Then I've print it with puts I saw beatiful
+ 177575 [Gennady.Byst] I am not completely sure, but you can try to play with $KCODE variable
+ 177595 [ruby-forum-r] The difference between puts obj and p obj is that the
+ 177790 [bob.news@gm ] p uses String#inspect which I believe will always print something that can

getting hostname from ruby
177570 [phil.swenson] Is there a cleaner way to get the host name from ruby other than
+ 177571 [Daniel.Berge] require "socket"
+ 177572 [rforum@gm il] require 'socket'
+ 177791 [bob.news@gm ] Kind regards

Extend an object with module stored
177577 [andrea.regin] I would like extend dynamically an object with one or more Module that I
+ 177598 [vjoel@pa h. ] I had some code to serialize module and class identities (without any of
+ 177600 [ruby-forum-r] I assume that the module used may vary from object to

Beginner question on classes on different files
177578 [elriba@ri it] I'm beginning to work with ruby and I have a conceptual problem.   Let's
+ 177579 [tanner.burso] ...
+ 177583 [stefan@ma li] Works for me under linux and windows.
  177592 [elriba@ri it] I'm using FreeRuby, and I'm getting intermitent errors.
  177606 [ruby-forum-r] This looks like UNIX-style linebreaks (\n)
  177611 [elriba@ri it] This is what it was...   I don't know why they were in there instead of

FXRuby problems with FXImage.setData
177581 [dave.baldwin] I am trying to insert my own data into an FXImage and the setData

XML, WebService and Character Encoding issue
177599 [gonchuki@gm ] I created a Ruby proxy for a FoxPro app that needs to fetch data from a
181510 [rrutledge@hm] Hey Gonzalo.  I was having the same problem.  I'm not at a final

question about class variables and instance variables
177602 [p57mafuvev6o] I've some difficolties with instance variables and classe variables
+ 177607 [drbrain@se m] instance variables are always stored in the instance self.
| 177859 [jeremy@ch os] Is this really the whole story?  Because until now I always thought I
+ 177610 [logancapaldo] Classes are objects too. @strange is an instance variable of the

YAML-ing classes and modules in 1.8.4 -- Was: Re: Extend an object with module stored
177604 [vjoel@pa h. ] Here's a version for 1.8.4. Are you listening, _why, and is there a

[RCR] Numeric#of
177619 [ara.t.howard] irb(main):001:0> class Numeric; def of(&b) Array::new(self).map(&b) end; end
177621 [matz@ru y- a] Using my not-yet-committed 1.9, you can type
+ 177622 [lukfugl@gm i] Cool!
| + 177623 [matthew.moss] All I did was
| | 177624 [lukfugl@gm i] Yeah, that's pretty much the same thing as my pseudo-code if you let
| + 177648 [matz@ru y- a] Yes.
|   + 177649 [logancapaldo] ...
|   | 177650 [matz@ru y- a] As deep as you want, and the machine allows
|   + 177672 [lukfugl@gm i] Sweet! I've wanted this sort of enumerator generation for a while. Is
|     177900 [ mfp@ac .o g] * enum.c (enumeratorize): create new enumerator for current method if
+ 177627 [ara.t.howard] great!  i'm still partial to the shorter version since
  177630 [james@gr yp ] => ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
  + 177635 [ara.t.howard] indeed.  my bad.
  + 177806 [newshoundat@] Thank for these!!
  | + 177832 [martindemell] (1..4).to_a.push(0)
  | | 177835 [bob.news@gm ] Here are some more alternatives including a solution with the famous
  | | 177836 [bob.news@gm ] => [1, 2, 3, 4, 0]
  | + 177897 [levin@gr nd ] a = (1..4).to_a << 0
  + 177807 [newshoundat@] Thank for these!!
    177903 [florgro@gm i] Array.new(4) { |i| i + 1 } + [0]
    + 177925 [rossrt@ro co] [*1..4] << 0
    + 178088 [jeremy@ch os] [[*1..4], 0].flatten does.
    + 178110 [gwtmp01@ma .] Is this another YACC parsing problem or is there

foo.h -> foo.rb
177620 [ara.t.howard] anyone out there written a parser that makes ruby dl bindings for *.h files?
177631 [mental@ry ia] Well, you'd need more than just a parser, since you'd often have to pick
177634 [ara.t.howard] that's about what i was thinking too.  the cool thing about it would be that
177697 [drbrain@se m] I tried to use DL to wrap libc for MetaRuby but found that it is

[ANN] langhelp-0.9.5
177625 [rubikitch@ru] == Abstract

memoize (reposting via ML)
177629 [hal9000@hy e] (Reposting via ML as gateway apparently didn't send this through.)
+ 177632 [mental@ry ia] It may be that (relative to the overhead of method calls, etc), the
| 177637 [hal9000@hy e] C'est possible... but with the silly hash-based implementation in
| 177640 [james@gr yp ] ...
+ 177638 [briankbuckle] ...

IO and non-strings
177633 [r.mark.volkm] How can I write non-string data using the IO class?
177636 [ara.t.howard] see String#unpack and Array#pack.
177657 [r.mark.volkm] Thanks!  I wasn't aware of pack/unpack. I still can't get this simple
177671 [vjoel@pa h. ] You want to avoid using gets/puts with binary strings. Those functions
177675 [r.mark.volkm] What do you recommend I use instead of gets and puts?
+ 177679 [vjoel@pa h. ] I am in the habit of using send/recv, which are unbuffered, and also
| 177683 [ara.t.howard] -a
| 177704 [vjoel@pa h. ] ...
| 177706 [ara.t.howard] ...
+ 177682 [ara.t.howard] yes. yes.
| 177689 [cremes.devli] If you want a general mechanism for doing this type of work between
| 177691 [ara.t.howard] thanks.  i actually read that and used something very close to netstrings for
+ 177690 [gwtmp01@ma .] I'd like to put a plug in for the book: Advanced Programming in the Unix