205465-208101

205260-209656 subjects 205742-208204

^ wsdl2ruby and SOAP problems
205465 [emcconne gma] I am new to Ruby and am evaluating it for a project that would replace
206749 [nakahiro sar] Unfortunately, Driver#generate_explicit_type = true does not work for

^ [OT] Re: I thought this was the one that worked?
205494 [ara.t.howard] -a
205565 [Eric.Armstro] Thanks much for that!

^ [ANN] Replicant 0.2 (Ruby -> Javascript)
205501 [rubytalk bri] What it is: Replicant is a Ruby library for automatically converting
205715 [pbattley gma] I've been doing a bit of work on the something similar. Did you see this?
205781 [rubytalk bri] Hey Paul,

^ 'system' and windows and an external program
205510 [Nuralanur ao] Dear all,
205516 [ara.t.howard] rindex
205529 [Nuralanur ao] Dear Ara,
205535 [ara.t.howard] just to eliminate scite as the cause of the problem cd into the directory
205555 [Nuralanur ao] Dear Ara,
205579 [ara.t.howard] sure.  you owe me a coffee!  ;-)

^ I can't read correct filesize of an 12 GByte file.
205522 [ake1 akehemm] I am trying this program but I get the wrong file size?
205546 [djberg96 gma] require 'win32/file'

^ Binary numbers
205545 [kimersen onl] I have some data with binary numbers.
205573 [devlists-rub] def binum(bs)
+ 205575 [james graypr] bs.unpack("cCC").inject(0) { |res, b| (res << 8) | b }
| 205591 [kimersen onl] Thanks,
+ 205581 [kimersen onl] Great!
  205653 [dbalmain.ml ] For variable length;

^ super-newbee Ruby regex help?
205556 [aaron.reiman] This is pretty complex considering that I am just now reading "Learn to
+ 205571 [vincent.four] OK, what you need is to extract the part  3proxy.com from the String
| 205772 [aaron.reiman] Thank you guys.  I have not tried all that has been suggested, but I
| + 205778 [cdc cyphers.] Update filename and you are set.
| + 205783 [dharple gene] require "rubygems"
+ 205694 [w_a_x_man ya] If the file already exists, you'll destroy it by using the "w" option.

^ Help with complicated problems
205578 [luke madstop] I've been working about entirely in Ruby for the last 18 months on my
+ 205590 [james.britt ] Welcome to the club.  I think that half the battle is getting a problem
| 205603 [luke madstop] Yep.  I've been struggling with some low-level modeling problems in
| 205674 [schapht gmai] I'm no expert, but from this web site you seem to really have your
| 205684 [luke madstop] I didn't expect that questions would be refused, just that there would
| 205867 [phurley gmai] Another thought on this thread would be to seek out or create a local
| 205874 [chiology gma] I must say that these kids of problems really are some of the best to
+ 205601 [james graypr] Welcome to Ruby.  The project sounds wicked interesting.  I'll be

^ Strategies for autoloading ruby files
205583 [luke madstop] Following up on my post about complicated problems, here's a much
+ 205589 [ara.t.howard] this may be helpful (or not!  ;-))
| 205614 [luke madstop] Clearly, I should always check your codebase before asking any questions. :)
| 205619 [ara.t.howard] indeed.  that one's pretty project specific.  in my case i have a well known
| 205625 [luke madstop] At this point, I'm looking at creating an Autoload class, and classes
+ 205593 [rubytalk bri] You can use `Module.const_missing` to autoload a file the first time
| + 205595 [james graypr] $ ri -T Kernel#autoload
| | 205611 [rubytalk bri] Cool, I didn't realize that was already baked in to Kernel.
| + 205600 [luke madstop] Ironically, I use almost no constants in my code.  Parent classes get
+ 205723 [fred lacave.] I don't know about recommended, but I've made two or three programs

^ Building the finite state machine of a Ruby regexp
205587 [lacroix7 fre] Does anyone know if there is a nice way to build the Finite State Machine
205873 [vikkous gmai] I don't know of anything specifically oriented to Ruby Regexps that
205890 [M.B.Smillie ] Strictly speaking, there isn't anything that does this, since modern
206119 [lacroix7 fre] 1. To test *quickly* if a particular string matches this regexp : that's

^ Fwd: Please Forward: Ruby Quiz Submission (88)
205592 [james graypr] charset=US-ASCII;

^ Rails view template for a gallery
205596 [stephen.odon] I am totally new to rails, so sorry for the trivial question!
205621 [collinsj sea] Generally, you'll want to ask Rails-specific questions on the Rails
205680 [chiology gma] I'll be honest, I think this is Ruby-centric enough because it really
205681 [rubytalk bri] <html>
205682 [chiology gma] I was writing to my local Ruby user group mailing list about it and it
205743 [stephen.odon] Guys thats great - I new there had to be a tidier way!

^ newbie qustion
205604 [ricardo.oroz] text....
205641 [has.sox gmai] My Regex's aren't that good.   To me it looks like your trying to find

^ newbie qustion
205605 [ricardo.oroz] text....
+ 205608 [drbrain segm] table = {}
| 205634 [ricardo.oroz] Thanks for your help eric,
| 206331 [ryand-ruby z] change the space to \s+
+ 205693 [w_a_x_man ya] table = {}

^ Sending Multiple Args to a Method Object
205615 [hreynolds2 y] ArgumentError (wrong number of arguments (1 for 4))
+ 205617 [jcribbs netp] method_object.call(*args)
+ 205627 [sitharus sit] Put a * before the array argument, it'll make Ruby expand it to fit
| 205628 [collinsj sea] Note that you do not need to use Method#call to do this, it works for
| 205633 [collinsj sea] Or maybe he wasn't. Either way.
+ 205630 [drbrain segm] method.call(*[arg1, arg2, arg3, arg4])

^ Re: [SPAM]  Re: I thought this was the one that worked?
205623 [collinsj sea] Does that mean this enormous thread is drawing to a close (pun possibly
205624 [perrin apoth] I hope so.  Every relationship needs closure.  Ahem.

^ Embedded Ruby Question
205635 [becampbel ho] I want to embed Ruby in my C++ application.  I'd like to read one or more
+ 205648 [interfecus g] There's a good section on embedding Ruby in the Pickaxe 2. You have to
| 205660 [becampbel ho] Thanks for the reply!
| + 205671 [myjpa1 gmail] As a matter of fact, ruby's interpreter accepts the switch '-e' to
| + 205672 [myjpa1 gmail] As a matter of fact, ruby's interpreter accepts the switch '-e' to
| + 205673 [logancapaldo] One of the best sources of documentation for C extensions is
|   + 205675 [becampbel ho] Logan,
|   + 205695 [nobu ruby-la] It's not exception safe.  Use rb_eval_string_protect() for
+ 205891 [byrd.timothy] Here is some sample code I'd come up with (for 1.8.2, I think).  You

^ Ruby on Rails newbie question
205637 [ajay.kalyan ] I just inherited a project.  I had to make a small change to a helper
+ 205638 [collinsj sea] You probably need to restart your webserver or similar in order to
+ 205640 [toalett gmai] You don't need to compile Ruby files, but if you replace a file in a

^ Static functions, extensions, linkage
205643 [djberg96 gma] How do you get at a static function from within a C extension?  I tried
+ 205646 [TimHunter nc] Where is 'flo_plus' defined?
| 205649 [djberg96 gma] In numeric.c.  Note that it *builds* fine, it just doesn't *run*.
| 205656 [TimHunter nc] I see. Since flo_plus has static linkage in numeric.c you can't call it
+ 205676 [logancapaldo] I could be wrong, but I believe the entire purpose of a static
+ 205679 [vincent.four] By the way, if you're interested to know which symbols are exported
  205755 [sastph sas.c] In Ruby, the functions that are intended for use by extensions start

^ RoR free hosting
205644 [John ruby-la] Does anyone know of a good hosting company that is offering free ruby
+ 205645 [toalett gmai] A quick Google sent me to http://www.freeonrails.com. Anyway, try
+ 205769 [aaron.reiman] a2hosting.com

^ REXML XPath: bug or misunderstanding?
205652 [Eric.Armstro] This code looks for a table that matches
+ 205705 [shortcutter ] That sounds like a bug.
| 205713 [pbattley gma] That's what I thought when I first encountered it, but after lookinginto it in more detail I concluded that it follows the specification.The receiving element does indeed provide context, but using //overrides it: // means the root node or any of its descendants.
| + 205714 [leslieviljoe] I have a collection of XPath examples on my Wiki, stolen from an old
| | 206132 [Eric.Armstro] Good collection of examples. Just what the doctor
| + 206129 [Eric.Armstro] Matches my experience.
+ 205814 [m-lists bris] // always uses the document root as the context regardless of the
  + 205821 [Thomas.Mark ] Are you doing anything with tbl other than making it a stopping point
  | 206136 [Eric.Armstro] Most excellent. Some damn good Xpath expertise
  | 206207 [shortcutter ] Same here: I rarely use XPath and I always have to look up the details
  | 206209 [shortcutter ] Can anyone recommend http://www.oreilly.com/catalog/xpathpointer ?
  | 206237 [keith oreill] No, not really. I think it's much easier to learn XPath (an incredibly
  | 206238 [shortcutter ] So you're basically saying that the book is more similar to the standard
  + 206133 [Eric.Armstro] Very useful syntax. Thanks.
    206143 [marcus.brist] I suppose this is because XPath originated from XSLT.  When using XPath in
    208101 [Eric.Armstro] That XSLT perspective may explain it, somewhat.

^ load commands during irb startup
205655 [junkone roge] There are the few commands that i always run from irb.
205658 [TimHunter nc] Put it in your .irbrc
205661 [junkone roge] I read that file. I am not sure how to configure it. can u provide an
205708 [shortcutter ] You can simply put any ruby code in there including "require" statements.
+ 205710 [one.three gm] On windows you must have HOME environment variable defined. Irb startup file
+ 205728 [junkone roge] ruby 1.8.4 (2006-04-14) [i386-mswin32]

^ Can you explain what this repo (yaml/Marshal) code do?
205659 [anne wjh.har] repositiory is a hash keyed on some kind of check sum derived from the
205662 [gregory.t.br] Marshal is a way to save the state of your Ruby objects to a file.
205726 [anne wjh.har] but why do you need to save and load the objects,
+ 205747 [interfecus g] It can be used to store objects on disk for future use (e.g. web
+ 205764 [james graypr] # a mock wiki object...

^ debugging bad gems?
205663 [john.fink gm] Hey folks,
205737 [jim weirichh] The fact that there is no reference to RubyGem's custom_require in your
205768 [john.fink gm] Did require 'rubygems' in irb -- now require 'sru' returns false instead of

^ How to auto-locate interpreter image
205670 [ired timecub] #!/usr/bin/env perl
+ 205677 [rubytalk bri] When you use a line like #!/usr/bin/env ruby, env searches each
+ 205846 [drbrain segm] cron does not set PATH, so scripts with this #! won't work.
+ 207186 [hramrach cen] however, on some platforms /usr/bin/env is broken. Not to mention the

^ newbie:: issue while downloading binary from HTTP
205686 [mataal gmail] I was writing a small script to download a binary file from a http
205687 [dharple gene] File.open(..., 'wb') do |f|
205689 [mataal gmail] thanks :-)

^ Speaking of T-shirts...
205692 [hal9000 hype] The other day in a fit of insomnia I designed
+ 205699 [perrin apoth] Excellent!
+ 205918 [schapht gmai] I really like that mousepad.  Does the money here go to help out any
| 206902 [hal9000 hype] I was out a few days and just got this.
+ 206137 [Eric.Armstro] I love the Ruby for Super Programmers logo!

^ golfing Eratosthenes
205696 [danielbaird ] I've been golfing around with the sieve of Eratosthenes.  Here's what
+ 205702 [danielbaird ] a=(2..100).to_a;p a.each{|c|a.reject!{|d|c<d&&d%c==0}}
| + 205717 [w_a_x_man ya] p (2..100).inject([]){|a,n|a.any?{|i|n%i==0}?a:a<<n}
| | + 205719 [w_a_x_man ya] p (2..100).inject([]){|a,n|a.any?{|i|n%i<1}?a:a<<n}
| | | 205735 [farrel.lifso] While that's an elegant looking solution it is not a 'true' sieve. It
| | | 205740 [robert.dober] Well thank you, I forgot about the sieve, so there is no credit to be taken
| | | 205741 [robert.dober] Did I get confused with replies here? If so all my appologizes,
| | + 205806 [perrin apoth] Of course, one might make a case for making that (2..99), shaving off a
| + 205725 [robert.dober] ompact
|   + 205729 [pbattley gma] That's lovely. Why haven't I seen it before?!
|   + 205733 [robert.dober] Enumerations, all the way ;)
|     205736 [pbattley gma] p (2..100).reject{|d|(2..d-1).find{|c|d%c==0}}
|     205739 [robert.dober] Bummer I thaught it was the top ,-)
|     205745 [simon.kroege] p (2..100).select{|d|(2...d).all?{|c|d%c>0}}
|     205748 [robert.dober] But OP's solution does not either, does it?
+ 205703 [farrel.lifso] Here's my attempt. Note that I have made it a bit more general by
  205704 [farrel.lifso] Gah! Excuse my atrocious spelling and grammar. "...although it has

^ crontab.rb:117: warning: tried to create Proc object without a block
205697 [pere.noel la] i get a warning: tried to create Proc object without a block
+ 205750 [pbattley gma] Don't use proc as a variable name.
| 205752 [yvonthoraval] charset=ISO-8859-1;
| 205754 [decoux moulo] yes,
| 205757 [pere.noel la] fine, thanks !
+ 205751 [robert.dober] Do you want the proc object of the given block?

^ Can't set up rails: dispatch.cgi failed
205709 [jlkung msn.c] I'm trying to setup RoR on OpenBSD 3.9 with Ruby 1.8.4 and Apache 1.3.
205756 [jan.svitok g] these lines relate to the welcome aboard page.

^ EventMachine - Anything Similar
205711 [doug.bromley] I've tried using EventMachine but with no luck because it seems to
205720 [garbagecat10] Doug, I'm aware of quite a few people who are running EM on Windows. I

^ [ANN] Composite Primary Keys support for Associations
205718 [drnicwilliam] [Cross-post from Ruby on Rails list]
205759 [chiology gma] with this interesting tool.

^ Scientific calculation: get Std.Dev for a integer array
205721 [xuwang motor] 1) How to calculate std.dev for an integer array?
+ 205727 [sander.land ] 1) I don't think there's a builtin function for that, so you'll have
| 205730 [jogloran gma] class Array
+ 205731 [jan.svitok g] try GSL: http://rb-gsl.rubyforge.org/stats.html

^ Upgrade Problems on 1.8.4
205722 [navinsamuel ] I just upgraded my ruby installation from 1.8.2-15 to 1.8.4-20. Now
205734 [jan.svitok g] I don't see anything wrong with it. Try looking before that if there
205835 [navinsamuel ] Could not find any Jan. I uninstalled 1.8.4.20 and went back to

^ Cannot install ruby-fcgi on windows 2000
205724 [tesla.nicoli] As said in the title I am using windows 2000 and cannot get ruby-fcgi 0.8.7or
205746 [tesla.nicoli] Here's the latest try with the same result. The path to a needed file is not

^ Ruby Cookbook
205732 [m_goldberg a] Anyone care to post their first impressions on Ruby Cookbook? I
+ 205760 [james graypr] Keep in mind it did *just* come out (I got mine in the mail
| 205762 [sambient gma] I think it would be a nice option if they offered this book as a PDF.
| 205917 [mike.douglas] Those who bought the book through Safari's Rough Cuts program get a
| 206205 [ml e4net.com] No its not available anymore as a rough cut, and I agree this book would be much more useful as a
| + 206219 [jamesmead44 ] I just had a bad experience with "buying" this book through the Safari
| + 206328 [jmg3000 gmai] I just ordered my copy of the dead-tree version.
| | + 206360 [rsanheim gma] I also prefer the "look and feel" of a real book over a pdf.  However,
| | | 206371 [jmg3000 gmai] I think they already know that many readers want pdf's. But they have
| | | 206463 [leslieviljoe] But do you know how many PAPER-ONLY books are already shared online?
| | | 206527 [rsanheim gma] [snip all of Les's great comments]
| | + 206394 [pbattley gma] I, too, am someone who far prefers a nicely typeset[1], printed book
| | | 206399 [jmg3000 gmai] No, it's not just you. The font is too wide. Your eyes have to zoom
| | | 206482 [dave pragpro] Actually, we'd love the books to be fewer pages. However, we did a
| | | + 206498 [m_goldberg a] I'm glad to learn the book was set in Bookman. I like that font. I
| | | + 206534 [jmg3000 gmai] As an aside (regarding layouts), one amazing thing about the PickAxe
| | |   + 206557 [dave pragpro] Thanks. That was another consideration when it came to using Bookman
| | |   | 206559 [dave pragpro] Or even Avant Garde... :(
| | |   + 206574 [martin snowp] One thing I don't like is that the colorizer they use seems to screw
| | |     206697 [dave pragpro] Strange--it should do: I remember fixing that.
| | |     206797 [Jamal.Mazrui] As someone with a visual disability who uses a talking computer system,
| | |     206872 [leslieviljoe] Yes, I also appreciate the Pragmatic books' lack of restrictions, and
| | + 206525 [BreadWithSpa] For me, it's how I'd be able to actually have the cookbook with
| + 206975 [kilivor hotm] A little OT, but just to mention that my PDF experience improved quite a
+ 205761 [pollak gmail] I love it.  It's very useful, helpful, accessible, and well organized.
+ 205901 [znmeb cesmai] I found the recipe for roast duck quite good. :)
+ 206298 [mberrow1 pac] I've just received my paper copy. It looks very good.
| 206362 [leonard.rich] This is my fault; I've been busy with other projects and never got
| 206405 [ml e4net.com] Ok that goes partway to solving my preference for PDF, (ie copy and paste code fragments to what I'm
| 206547 [anne wjh.har] Perfect timing! I bought the cookbook, and I wanted to play with one of
+ 206653 [robert.evans] I just picked it up at the local bookstore yesterday afternoon, and
+ 207958 [mberrow1 pac] The "Ruby Cookbook" by Lucas Carlson and Leonard Richardson has just
threads.html
top