177426-182627

177311-179621 subjects 177639-181017

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

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

^ 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 sar] 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 gmx] 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 hotmai] 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 sea] Not necessarily - the program could check for the existence of the
| |   177674 [mental rydia] It's probably worth working out what a sane way to fail in that case
| + 177754 [konsu hotmai] Dir.mkdir(".timeclock") unless File.exist?(".timeclock")
|   + 177884 [vjoel path.b] require 'fileutils'
|   + 178343 [langstefan g] ####################################################################
+ 177752 [konsu hotmai] may be it would fail. but you have the other method(s) that you can use to
+ 177753 [emschwar loc] That is why you use the File.exist?(".timeclock") method first, and

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

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

^ IO.popen hangs reading an empty pipe?
177484 [payton foolo] 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 foolo] 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 path.b] I've mixed threads, timeout, and sockets on windows with no problems.

^ Is this a floating point precision problem?
177491 [tgate mypubl] I'm using the Matrix module (matrix.rb)  to help place a vertex into
+ 177504 [ruby-ml magi] 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] Again, if speed is not a paramount concern, you could use fractions
+ 177513 [caleb aei-te] I don't get the same inverse; maybe that's a good place to look?
| 177523 [tgate mypubl] That's strange.  I ran it again and this time came up with a different
| + 177593 [tgate mypubl] Could this be architecture related?  I've tried this both on a pc and a
| | 177823 [zinsser info] I looked into matrix.rb and found the reason for your problem.
| | 178152 [znmeb cesmai] Yeah ... I think if you use Mathn you'll have better results ...
| + 177780 [zinsser info] I tried it in C++
+ 177662 [znmeb cesmai] I don't know what Ruby is doing here, but the R language gives a much
  177667 [lukfugl gmai] 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] When I read in a text with accents from a file under cygwin, these  get
| 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] Dear Nick,
| | 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 burt.id] 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 freeze.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 freeze.o] What does it take for extconf.rb to recognize readline.h?
177525 [drbrain segm] 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 infoethe] 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 infoethe] 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 infoethe] Hm, works for me (tm).  Anyone else having problems downloading it?
| + 177596 [vjoel path.b] 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 free] 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 neur] Weirdo.
|   |   + 177645 [guslist free] 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 free] 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 free] % wine wcmd
|   + 177668 [jim weirichh] 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 all] 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 x2a.org] 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 x2a.org] 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 free] Well I stumbled on a different change: Task.lookup is no longer there.

^ Array prepending nil object
177534 [skilic gmail] I'm going through Brian Schröäer's tutorial and hit a small snag. The
+ 177535 [vjoel path.b] The nil is just the return value of the last expression, not part of the
| 177537 [skilic gmail] 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 shmoo.co] You are running this inside irb.  print returns nil, which you are
  177538 [skilic gmail] Thank you too Brian, that makes it quite clear.

^ [ANN] Mongrel HTTP Library 0.2.0 (Fast And RubyForgified)
177539 [zedshaw zeds] 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 zeds] Oh, so very cool.  I'll hit you guys up on #nitro to get the details
+ 177874 [brianm apach] Hmm, nice feature would be able to stop a running server...
| 177914 [zedshaw zeds] Until I get a real server architecture up you'll have to rely on the
+ 177915 [steven lumos] Any immediate idea about the following?
  177929 [zedshaw zeds] You probably have an older version lying around somewhere.  That
  + 177931 [daniels pron] Seem to have a slight problem with the mongrel gem, unless I'm using the
  | 177953 [zedshaw zeds] Odd, not quite sure what would cause that.  Can you try the soon to
  | 178070 [wilsonb gmai] I know Windows is evil, but I thought I'd paste in my log again, just
  | 178077 [zedshaw zeds] You're missing the fix posted just today.  I'll have a 0.2.2 out that
  | 178098 [wilsonb gmai] Awesome. Fixed.  The changes I made to extconf.rb were unnecessary as well.
  + 178055 [steven lumos] Of course that was it.  Thanks.

^ ri bug?
177542 [vjoel path.b] $ ruby -v
177605 [drbrain segm] $ ruby -v
177609 [vjoel path.b] Thanks! That seems to have been the problem. I deleted

^ Looking for web crawler written in Ruby
177543 [tuweiwen gma] couldn't find much information. Can anyone give me some links?
+ 177603 [collinsj sea] But it's really terrible. It isn't hard to write your own, if you need
+ 177617 [james graypr] The code I translated from Higher-Order Perl at the tail end of the
| 177654 [tuweiwen gma] Many thanks, I appreciate it very much.
+ 177787 [gene.tani gm] (look at cached page)
| 177908 [james_b neur] There's not much spidering going on there, just some page scraping
+ 177896 [agorilla gma] now you're practically crawling with spiders :)

^ Set#merge
177544 [vjoel path.b] 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 ybb] This problem is quite unrelated to Oniguruma.

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

^ [QUIZ] Missing Solutions (#64)
177565 [james graypr] 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 graypr] James Edward Gray II

^ Strange print
177569 [rootkvi yand] 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 gmx] 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 gmail] require 'socket'
+ 177791 [bob.news gmx] 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 path.b] 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 rimit] I'm beginning to work with ruby and I have a conceptual problem.   Let's
+ 177579 [tanner.burso] Drop the .rb from you're require line.  So it should be
+ 177583 [stefan mahli] Works for me under linux and windows.
  177592 [elriba rimit] I'm using FreeRuby, and I'm getting intermitent errors.
  177606 [ruby-forum-r] This looks like UNIX-style linebreaks (\n)
  177611 [elriba rimit] 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 gma] 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 segm] instance variables are always stored in the instance self.
| 177859 [jeremy chaos] 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 path.b] 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 ruby-la] Using my not-yet-committed 1.9, you can type
+ 177622 [lukfugl gmai] Cool!
| + 177623 [matthew.moss] All I did was
| | 177624 [lukfugl gmai] Yeah, that's pretty much the same thing as my pseudo-code if you let
| + 177648 [matz ruby-la] Yes.
|   + 177649 [logancapaldo] charset=US-ASCII;
|   | 177650 [matz ruby-la] As deep as you want, and the machine allows
|   + 177672 [lukfugl gmai] Sweet! I've wanted this sort of enumerator generation for a while. Is
|     177900 [ mfp acm.org] * 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 graypr] => ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
  + 177635 [ara.t.howard] indeed.  my bad.
  + 177806 [newshoundat ] Thank for these!!
  | + 177832 [martindemell] (1..4).to_a.push(0)
  | | 177835 [bob.news gmx] Here are some more alternatives including a solution with the famous
  | | 177836 [bob.news gmx] => [1, 2, 3, 4, 0]
  | + 177897 [levin grunde] a = (1..4).to_a << 0
  + 177807 [newshoundat ] Thank for these!!
    177903 [florgro gmai] Array.new(4) { |i| i + 1 } + [0]
    + 177925 [rossrt rosco] [*1..4] << 0
    + 178088 [jeremy chaos] [[*1..4], 0].flatten does.
    + 178110 [gwtmp01 mac.] 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 rydia] 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 segm] 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 hype] (Reposting via ML as gateway apparently didn't send this through.)
+ 177632 [mental rydia] It may be that (relative to the overhead of method calls, etc), the
| 177637 [hal9000 hype] C'est possible... but with the silly hash-based implementation in
| 177640 [james graypr] charset=US-ASCII;
+ 177638 [briankbuckle] I added a "sleep 1" line to zeta to exaggerate the time of an uncached

^ 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 path.b] 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 path.b] I am in the habit of using send/recv, which are unbuffered, and also
| 177683 [ara.t.howard] -a
| 177704 [vjoel path.b] MTCP -- Message TCP --  Wrapper around TCPSocket and TCPServer that
| 177706 [ara.t.howard] This message is in MIME format.  The first part should be readable text,
+ 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 mac.] I'd like to put a plug in for the book: Advanced Programming in the Unix
threads.html
top