142879-143941 subjects 143303-145150

^ Building Ruby in IRIX64
143107 [joevandyk gm] configure.in in Ruby 1.8.2 specifies that you need autoconf 2.5 to
143111 [nobu.nokada ] Yes.
143113 [joevandyk gm] Thanks.  I got an updated version of m4 and autoconf, so seeing how it does.
143115 [joevandyk gm] It seems adding -n32 to CFLAGS works.  But I shouldn't have to do that, right?
143178 [nobu.nokada ] Is -n32 necessary for ld -shaerd?

^ Newbie problems with Net::Http
143109 [paniagua pcm] I'm starting to use Net::Http.
143117 [assaph gmail] File.open('file.jpg, 'wb') { |f| f.write response.body }
143183 [paniagua pcm] Thank!  it was really helpful!  now it is running ok.

^ accessing each character of a string
143112 [boris boris-] my problem is obviously very basic, but how to I acces for example the third
+ 143116 [assaph gmail] the third
| 143125 [botp delmont] #        a = "hello there"
| 143126 [assaph gmail] I tend to agree, but I long since came to believe that Matz knows
| + 143130 [hal9000 hype] Actually, I believe this is going to change in the
| | 143146 [raims dot.co] Yeah I think it's the better workaround, using range to extract
| | 143189 [gwtmp01 mac.] I think the issue arises because, in Ruby, a String object is
| | 143191 [raims dot.co] ...
| + 143131 [xevious heav] Because a[1] is a single char - not a "string" of chars.
+ 143128 [gavin refine] puts "hello"[2] #=> 108
+ 143144 [ruby.brian g] regards,

^ The many sounds of the unduck.
143122 [john.carter ] Having asked the question, and heard many replies let me summarise...
143123 [ruby-ml magi] Goose!

^ SYN scan
143136 [nicholas_wie] I'm trying to SYN scan a pair of machines on my network - actually
143192 [guslist free] It is an implementation of icmp in pure Ruby using raw sockets. It works

^ Ruby and Unix Domain Sockets
143137 [chris seagul] This question has been brought to light after using Instiki on a FreeBsd
143236 [sroberts cer] I have no idea what --binding does in Instiki, however, you can use

^ [ANN] Syck 0.55 -- Object loading, memory leaks
143138 [ruby-talk wh] Syck is, at present, the de facto YAML library for Ruby.

^ City Trading Desk opportunity
143147 [jdrysdale as] This is a permanent or contract opportunity for someone of side of
+ 143151 [sjc2000_uk y] hehe everything fine apart from the emacs caveat; and
| 143152 [ruby.brian g] Though it seems your editor has neither spell-checking (teh) nor
+ 143201 [jeffm ghostg] Now if only I wasn't on the wrong part of the planet.

^ Re: accessing each character of a string : THANKS
143156 [boris boris-] thanks that's as smooth as I expected it from ruby :-)

^ xml-rpc 302 error handling?
143165 [cooper.bethe] I've been playing with 37signals' new Backpack XML-RPC API -
143480 [adam thereal] That's quite the novel use of xmlrpc4r.  Any reason you're doing that

^ Idiomatic way for collecting elements using REXML?
143167 [drjflam gmai] I'm writing some REST-ian code to talk to the Amazon Web Services
+ 143171 [james_b neur] require 'rexml/document'
| 143174 [drjflam gmai] Thanks - that did the trick!
+ 143175 [gavin refine] ...
  143934 [ggg ser1.net] Three things.  First, XPath is not part of the XML spec -- it is its

^ [SUMMARY] Cows and Bulls (#32)
143168 [james graypr] ...
143170 [dblack wobbl] I meant to say this earlier in the process, but anyway, if anyone's

^ [ANN] Fireruby 0.3.0
143176 [peter njini.] == FireRuby Version 0.3.0
143190 [Ara.T.Howard] [ahoward@localhost fireruby-0.3.0-i586-linux]$ ruby -r examples/example01.rb
143415 [peter njini.] Ara,

^ Readline extension - access to linebuffer?
143181 [dave.baldwin] readline gurus,

^ Hamburg.rb
143186 [Stephan.Kaem] Hamburg.rb will meet again
143197 [pat.eyler gm] *i* *am* **so** *jealous*.  Have a great meeting!
143773 [csshsh gmail] Darn! I would love to come, but I'm just get off the plane 15 mins

^ Gem: ignoring dependencies doesn't work
143187 [michael schu] I'm trying to install a gem ignoring its dependencies. login_generator

^ Win32API question - pathstriptoroot
143193 [Daniel.Berge] Windows XP Pro
143195 [halostatue g] All PathStripToRoot is doing is putting \000 after C:\. Do an #inspect.
143196 [ruby.brian g] I can't test it because I'm on linux, but wouldn't
143202 [pleonard23 b] The api call is just taking the char buffer you're sending it, dropping a null after the path to terminate it just like a normal Windows application would expect. I would have thought that the Win32API module would take care of this sort of thing for you, but that doesn't seem to be the case.
143203 [djberg96 gma] dropping a null after the path to terminate it just like a normal
143207 [pleonard23 b] I think that it could be that the Win32API package is handline lzstptr parameters as Ruby strings as opposed to null terminated byte arrays. The behavior that is being displayed is much more like the BSTR, which (while still being null terminated) also carries a length value, so it can include /000 in the data.

^ [ANN] cursor-0.5
143199 [eric_mahurin] If you've used the iterator (external iterator API) package, I
143206 [foobar fuzzb] Sounds interesting.
143222 [eric_mahurin] I'm not sure what Hollowness is.
143278 [neoneye gmai] Please add a few example files to your package on how to
143284 [eric_mahurin] Sorry, I'll get to that later.  More importantly, I need

^ [ANN] RubyInline 3.3.2 Released
143204 [ryand-ruby z] RubyInline version 3.3.2 has been released!

^ [ANN] ParseTree 1.3.6 Released
143205 [ryand-ruby z] ParseTree version 1.3.6 has been released!

^ [QUIZ] Tiling Turmoil (#33)
143208 [james graypr] ...
+ 143209 [azrael demon] Is there an assumption that this is a square or can it be a rectangle?
| + 143212 [ruby crazyte] "You're going to tile L-trominos on a 2**n by 2**n board that is missing a
| + 143214 [ruby.brian g] The definition states 2^n x 2^n, that would seem like a square to me.
| + 143215 [james graypr] Or in other words, it's always square.  :)
| + 143216 [a.r.ferreira] The man said "on a 2**n by 2**n board". This assumption guarantees the
|   + 143220 [azrael demon] I knew I should have taken some math classes when I became an engineer
|   + 143223 [michael.ulm ] OTOH, the "canonical" solution of this problem should (with minor
+ 143327 [kero chello.] ...
+ 143570 [pedro.wotan ] Here's my solution, and without googling!.
| + 143582 [jim freeze.o] Yes. There are a couple of things you can do.
| + 143622 [james graypr] Nice job.
+ 143626 [batkins57 gm] Here's my solution.  It defines a class called Square to represent the

^ Multiple return and parallel assignement
143211 [g.castaldi g] I'm studying Ruby and I'm glad to find similar behaviours of two common
+ 143217 [dblack wobbl] a, = mymethod
+ 143218 [james graypr] irb(main):001:0> def mymethod
| 143224 [james_b neur] I think this helps point out that mymethod is not returning multiple
| 143225 [eric_mahurin] yep.  return 1,2 and return [1,2] work the same.  Also when the
| + 143226 [dblack wobbl] *a = *[1,2]   # a == [1,2]
| | + 143234 [ilveroluca n] Maybe a simpler way to look at it is *a = x means a = [x], or simply enclose
| | | 143239 [dblack wobbl] I'm not sure how that's different from what I was saying above.  Or
| | | 143274 [ilveroluca n] saying the same thing :-)
| | + 143298 [martindemell] ...
| |   + 143299 [gwtmp01 mac.] *a = *[1,2] --> [a] = [*[1,2]] --> a = [1,2]
| |   | 143301 [dblack wobbl] I think he meant to.  See above: remove a * and add a [].  It's
| |   | 143309 [gwtmp01 mac.] Yep, my bad.  Thanks for the correction to my non-correction.
| |   + 143300 [dblack wobbl] Yes, though the illegality of [a] = x  is what led me to phrase it in
| + 143227 [james_b neur] Conceptual elegance?
|   + 143232 [pjpizza rsie] I also think it may be from the original mathematical idea of a "function', which only has 1 output value for a given set of inputs, which 3rd generation programming languages adopted as paradigm.  With multiple return values, more in the mindset of a "relation", an n to m mapping
|   | 143235 [bob.news gmx] Mathematical functions are in no way limited to yielding a single output
|   | 143394 [michael.ulm ] <pedant_mode>
|   | 143425 [bob.news gmx] So what?  M can be A x B x C and N can be D x E - or whatever.
|   | 143492 [michael.ulm ] Indeed, strictly speaking, a mathematical function can only have one
|   | + 143493 [spoooq gmail] Am I the only one who feels like a curry now?
|   | + 143498 [steven.jenki] Thank you. It's a relief to have that cleared up.
|   |   143927 [chneukirchen] Actually, that is not true.  See 6.2 of "The C Programming Language"
|   |   143947 [steven.jenki] Thanks for the clarification. Note that I did say "maybe since the
|   + 143406 [gcottenc gma] Then you would prefer that a function/method only takes one object as
|     143412 [james_b neur] Maybe. A vector.
|     143427 [bob.news gmx] Vector implements List...
|     143439 [james_b neur] Oh, I know.
+ 143219 [ruby.brian g] You can have both. (Note the "," in line 003)

^ Web services and Ruby
143229 [luke madstop] I'm in the process of writing a kind of distributed application, where one or
+ 143238 [sroberts cer] Whats wrong with threads? Its a good answer.
| 143243 [luke madstop] Well, there are at least two problems with threads:  I've never done them
| + 143245 [bob.news gmx] "Luke Kanies" <luke@madstop.com> schrieb im Newsbeitrag
| | 143249 [luke madstop] Yeah, after sending the previous email, I kind of resigned myself to
| + 143255 [sroberts uni] I was worried about threads, too, then I found they are trivial. You'll
+ 143253 [Ara.T.Howard] if you are in *nix and have a central nfs filesystem all nodes can see check
  143254 [luke madstop] I'm planning on having this system be cross-platform, and it'll be used to
  + 143256 [Ara.T.Howard] ah.  oh well.
  | 143259 [graham inca.] ...
  | 143353 [Ara.T.Howard] i think it could made too quite easily since i avoid fork (using IO::popen
  | + 143363 [agorilla gma] You can add me to the list of windows beta testers.  I had just run
  | + 143426 [graham inca.] ...
  + 143280 [bob.news gmx] "Luke Kanies" <luke@madstop.com> schrieb im Newsbeitrag
    143708 [comp.lang.ru] ...
    + 143768 [psm041 ig.co] I really agree!
    + 143788 [bob.news gmx] Thanks for that update!  In fact it's quite some time since I took a look

^ Re: ParseTree 1.3.6 Released
143230 [graham.r.jen] For the record, here are the changes I made to get inline.rb to run on
143241 [drbrain segm] Could you submit your patch to the project page?

^ [ANN] icalc 0.0.4 is released
143231 [bsd.SANSPAM ] URLS

^ [ANN] Rebbin 0.7
143237 [raims dot.co] ...

^ how calculate md4 hash?
143240 [dave.m email] i would calculate an md4 hash in ruby.
143416 [eban os.rim.] % ruby -ropenssl -e 'puts OpenSSL::Digest::MD4.hexdigest("foo")'
143419 [dave.m email] tnx.

^ Re: Rebbin 0.7
143244 [vikkous gmai] Some of those criteria are contradictory. But if you want a

^ Win32API question - PathAppend (in/out variable issue)
143246 [djberg96 hot] Ruby 1.8.2.
143261 [pleonard23 b] Daniel -
143287 [Daniel.Berge] That works great, thanks.

^ [ANN] Scripts to view Asterisk's CDR's via web
143247 [bsd.SANSPAM ] I have written two tiny CGI scripts in Ruby, to view Asterisk's call
143267 [sdmitry lrn.] Thank you very very much!
143296 [bsd.SANSPAM ] You're welcome!

^ [ANN] rb_cdio: bindings for libcdio
143248 [clbustos sur] This is my first post. Good ML. :)

^ Doing fixups after deserializing YAML
143250 [gasman raww.] require 'yaml'
143310 [logancapaldo] Well this solution doesn't involve yaml but...
143579 [gasman raww.] [serialising / deserialising a Squarer object to YAML without writing

^ Anonymous module undefined method error
143251 [jgoalby gmai] I am new to Ruby so please excuse my question.  I did search
143269 [matz ruby-la] A public *instance* method means methods are available for their
143272 [jgoalby gmai] I am new to Ruby so please excuse my question.  I did search
+ 143273 [polyergic gm] more requirements on the file?  you can do the same thing, you just
| + 143292 [jgoalby gmai] Thankyou Shad!
| + 143593 [jgoalby gmai] I was able to get this to work great.  I would like to have testdata
+ 143294 [vjoel path.b] It's a very simple but useful way to load a ruby script and access the
  143357 [jgoalby gmai] the

^ [ANN] HighLine 0.6.0 -- Now with menus!
143252 [james graypr] =======================
143290 [itsme213 hot] ...
143344 [james graypr] Sorry for the delay, I was out of town yesterday.

^ reformating/pretty printing ruby
143257 [graham inca.] ...
143262 [thomas eduli] ggVG=
143276 [graham inca.] ...
143281 [halostatue g] \> I'm a Windows man.. and I don't use VIM. Its PSPAD (http://www.pspad.

^ Re: HighLine 0.6.0 -- Now with menus!
143258 [vfoley gmail] Wow, I go away for about a week and BAM, all the work's done!  I guess
143260 [greg7224 gma] Can't stop this train from rollin' :)
+ 143265 [itsme213 hot] ...
| + 143266 [greg7224 gma] Tab completion is not supported yet, but autocomplete is.
| + 143340 [james graypr] Good idea.  I've added it to the TODO and will look into it.
+ 143282 [ruby.brian g] Thanks, it really sounds great. If you want something more on the
  + 143283 [greg7224 gma] I'll be honest, if James has he hasn't mentioned it to me, so I'll look
  | 143293 [greg7224 gma] Hmm... James does all the packaging, so I'm not so sure about this one.
  + 143341 [james graypr] 1.  HighLine's data set is Ruby Strings (input and output).
    143376 [greg7224 gma] gem install highline --ignore-dependencies
    143378 [agorilla gma] tried that, got this...
    143380 [jim weirichh] $ sudo gem install highline --ignore-dependencies
    143381 [agorilla gma] Should clarify a bit...
    143384 [greg7224 gma] James is working on the problem.  It appears that our gem is insisting
    143405 [agorilla gma] Worked fine via setup.rb

^ Ruby smile
143263 [rcs bgoark.n] Mostly for the newbies who stumbles into this NG, wondering what Ruby is
+ 143264 [james_b neur] As have many here, many times before.
+ 143268 [jtregunna bl] Yeah but for those of us who don't use Linux, but rather any one of the
| + 143271 [agorilla gma] Sounds like it blows chunks of data at you.  Could be a good thing,
| | 143304 [logancapaldo] Somebody on slashdot translated it to Linux Apache Middleware Postgres once.
| + 143308 [lthiryidontw] And on Darwin, it would be DWARF! :]
+ 143335 [wall wall.co] ...

^ One-Click Ruby Installer hits 90k (plus OSX news)
143277 [curt hibbs.c] I just posted this to my blog (http://blog.curthibbs.us/), but I know

^ [ANN] Ruby Editor Plugin for jEdit 0.6.7
143279 [rob.02004 gm] Version 0.6.7 of jEdit's Ruby Editor Plugin has been released and is
143289 [eiablage tho] ...
143400 [rob.02004 gm] Adding debugger support is not at the top of my list of new features

^ [ANN] RubyScript2Exe 0.3.4
143286 [pan erikveen] RubyScript2Exe 0.3.4 is released!

^ http://www.tbn.org/films/videos/To_Hell_And_Back.ram << GREAT VIDEO! Just click on link to view.
143288 [AOLfan250106] Just click on link to view.

^ ruby9i on the Sun?
143295 [hal9000 hype] I've tried a couple of times to run the Oracle interface
143306 [djberg96 hot] Er, what?  More coffee Hal.
143315 [hal9000 hype] Umm, die, not dir.

^ Determining what file contains a module/class
143297 [nicholas_wie] I need to find the file that contains a known module or class, to
143414 [halostatue g] The problem in this case is that digest is specifically in digest.so,
+ 143456 [gene.tani gm] For ruby-coded classes/modules only, Hugh Sasse's comprehensive RDOC of
+ 143499 [nicholas_wie] Well, I've used digest just to make an example, my question was more
  143530 [eric_mahurin] If you wanted to do it like you initially wanted, you could

^ Ruby and CGI error 500
143302 [greyfade gma] this is a problem that's been driving me nuts ever since i first tried
+ 143307 [james_b neur] What user is executing the script, and is ruby in that user's env?
| 143389 [greyfade gma] the user(s) i control, in both cases, and yes, it is in the env.  the
+ 143313 [ruby-ml magi] #!/bin/env/ ruby
| + 143386 [greyfade gma] (apologies to ES:  i hit "reply to author" entirely by accident.)
| + 143392 [greyfade gma] (apologies to ES for email.)
+ 143352 [Ara.T.Howard] [ahoward@localhost ~]$ cat a.rb
  + 143390 [greyfade gma] tried it.
  + 143393 [greyfade gma] <snip a bunch of pointless drivel>
    + 143432 [ruby-ml magi] Yours is quite a poor attitude to take toward people who
    + 143481 [hal9000 hype] I think that's dependent on the web server, or is it the browser?