143107-143947

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@pc ] I'm starting to use Net::Http.
143117 [assaph@gm il] File.open('file.jpg, 'wb') { |f| f.write response.body }
143183 [paniagua@pc ] Thank!  it was really helpful!  now it is running ok.

accessing each character of a string
143112 [boris@bo is ] my problem is obviously very basic, but how to I acces for example the third
+ 143116 [assaph@gm il] the third
| 143125 [botp@de mo t] #        a = "hello there"
| 143126 [assaph@gm il] I tend to agree, but I long since came to believe that Matz knows
| + 143130 [hal9000@hy e] Actually, I believe this is going to change in the
| | 143146 [raims@do .c ] Yeah I think it's the better workaround, using range to extract
| | 143189 [gwtmp01@ma .] I think the issue arises because, in Ruby, a String object is
| | 143191 [raims@do .c ] Thanks for the explanation :)
| + 143131 [xevious@he v] Because a[1] is a single char - not a "string" of chars.
+ 143128 [gavin@re in ] 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@ma i] Goose!

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

Ruby and Unix Domain Sockets
143137 [chris@se gu ] This question has been brought to light after using Instiki on a FreeBsd
143236 [sroberts@ce ] 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@gh st ] Now if only I wasn't on the wrong part of the planet.

Re: accessing each character of a string : THANKS
143156 [boris@bo is ] 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@th re l] That's quite the novel use of xmlrpc4r.  Any reason you're doing that

Idiomatic way for collecting elements using REXML?
143167 [drjflam@gm i] I'm writing some REST-ian code to talk to the Amazon Web Services
+ 143171 [james_b@ne r] require 'rexml/document'
| 143174 [drjflam@gm i] Thanks - that did the trick!
+ 143175 [gavin@re in ] ...
  143934 [ggg@se 1. et] Three things.  First, XPath is not part of the XML spec -- it is its

[SUMMARY] Cows and Bulls (#32)
143168 [james@gr yp ] This game isn't much of a challenge to implement, but it's plenty hard enough to
143170 [dblack@wo bl] I meant to say this earlier in the process, but anyway, if anyone's

[ANN] Fireruby 0.3.0
143176 [peter@nj ni ] == FireRuby Version 0.3.0
143190 [Ara.T.Howard] [ahoward@localhost fireruby-0.3.0-i586-linux]$ ruby -r examples/example01.rb
143415 [peter@nj ni ] 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@gm il] Darn! I would love to come, but I'm just get off the plane 15 mins

Gem: ignoring dependencies doesn't work
143187 [michael@sc u] 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@gm ] 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@fu zb] Sounds interesting.
143222 [eric_mahurin] I'm not sure what Hollowness is.
143278 [neoneye@gm i] 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@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 143209 [azrael@de on] Is there an assumption that this is a square or can it be a rectangle?
| + 143212 [ruby@cr zy e] "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@gr yp ] 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@de on] 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@ch ll .] Yeah. I knew the problem, I didn't need google.
+ 143570 [pedro.wotan@] Here's my solution, and without googling!.
| + 143582 [jim@fr ez .o] Yes. There are a couple of things you can do.
| + 143622 [james@gr yp ] 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@wo bl] a, = mymethod
+ 143218 [james@gr yp ] irb(main):001:0> def mymethod
| 143224 [james_b@ne r] 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@wo bl] *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@wo bl] I'm not sure how that's different from what I was saying above.  Or
| | | 143274 [ilveroluca@n] saying the same thing :-)
| | + 143298 [martindemell] And a simple rule of thumb to 'implement' it is: every time you remove a
| |   + 143299 [gwtmp01@ma .] *a = *[1,2] --> [a] = [*[1,2]] --> a = [1,2]
| |   | 143301 [dblack@wo bl] I think he meant to.  See above: remove a * and add a [].  It's
| |   | 143309 [gwtmp01@ma .] Yep, my bad.  Thanks for the correction to my non-correction.
| |   + 143300 [dblack@wo bl] Yes, though the illegality of [a] = x  is what led me to phrase it in
| + 143227 [james_b@ne r] Conceptual elegance?
|   + 143232 [pjpizza@rs e] 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@gm ] Mathematical functions are in no way limited to yielding a single output
|   | 143394 [michael.ulm@] <pedant_mode>
|   | 143425 [bob.news@gm ] 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@gm il] 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@gm ] Then you would prefer that a function/method only takes one object as
|     143412 [james_b@ne r] Maybe. A vector.
|     143427 [bob.news@gm ] Vector implements List...
|     143439 [james_b@ne r] Oh, I know.
+ 143219 [ruby.brian@g] You can have both. (Note the "," in line 003)

Web services and Ruby
143229 [luke@ma st p] I'm in the process of writing a kind of distributed application, where one or
+ 143238 [sroberts@ce ] Whats wrong with threads? Its a good answer.
| 143243 [luke@ma st p] Well, there are at least two problems with threads:  I've never done them
| + 143245 [bob.news@gm ] "Luke Kanies" <luke@madstop.com> schrieb im Newsbeitrag
| | 143249 [luke@ma st p] Yeah, after sending the previous email, I kind of resigned myself to
| + 143255 [sroberts@un ] 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@ma st p] 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@in a.] This is very interesting... The code is pure Ruby - would this work
  | 143353 [Ara.T.Howard] i think it could made too quite easily since i avoid fork (using IO::popen
  | + 143363 [agorilla@gm ] You can add me to the list of windows beta testers.  I had just run
  | + 143426 [graham@in a.] 'window ify' it.
  + 143280 [bob.news@gm ] "Luke Kanies" <luke@madstop.com> schrieb im Newsbeitrag
    143708 [comp.lang.ru] _ Yikes, only someone that hasn't looked at it would suggest
    + 143768 [psm041@ig co] I really agree!
    + 143788 [bob.news@gm ] 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@se m] 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@do .c ] From http://www.oluyede.org/blog/2005/05/20/rebbin-07/

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

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

Win32API question - PathAppend (in/out variable issue)
143246 [djberg96@ho ] 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@lr .] Thank you very very much!
143296 [bsd.SANSPAM@] You're welcome!

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

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

Anonymous module undefined method error
143251 [jgoalby@gm i] I am new to Ruby so please excuse my question.  I did search
143269 [matz@ru y- a] A public *instance* method means methods are available for their
143272 [jgoalby@gm i] 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@gm i] Thankyou Shad!
| + 143593 [jgoalby@gm i] I was able to get this to work great.  I would like to have testdata
+ 143294 [vjoel@pa h. ] It's a very simple but useful way to load a ruby script and access the
  143357 [jgoalby@gm i] the

[ANN] HighLine 0.6.0 -- Now with menus!
143252 [james@gr yp ] =======================
143290 [itsme213@ho ] I get an install error on termios. Highline does not install (regardless of
143344 [james@gr yp ] Sorry for the delay, I was out of town yesterday.

reformating/pretty printing ruby
143257 [graham@in a.] I'd like to be able to reformat a block of Ruby within my editor. One
143262 [thomas@ed li] ggVG=
143276 [graham@in a.] <20050520235926.GC1727@edulinux.homeunix.org>
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@gm il] Wow, I go away for about a week and BAM, all the work's done!  I guess
143260 [greg7224@gm ] Can't stop this train from rollin' :)
+ 143265 [itsme213@ho ] TAB-completion a'la the Cmd gem. Or is it in there already?
| + 143266 [greg7224@gm ] Tab completion is not supported yet, but autocomplete is.
| + 143340 [james@gr yp ] 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@gm ] I'll be honest, if James has he hasn't mentioned it to me, so I'll look
  | 143293 [greg7224@gm ] Hmm... James does all the packaging, so I'm not so sure about this one.
  + 143341 [james@gr yp ] 1.  HighLine's data set is Ruby Strings (input and output).
    143376 [greg7224@gm ] gem install highline --ignore-dependencies
    143378 [agorilla@gm ] tried that, got this...
    143380 [jim@we ri hh] $ sudo gem install highline --ignore-dependencies
    143381 [agorilla@gm ] Should clarify a bit...
    143384 [greg7224@gm ] James is working on the problem.  It appears that our gem is insisting
    143405 [agorilla@gm ] Worked fine via setup.rb

Ruby smile
143263 [rcs@bg ar .n] Mostly for the newbies who stumbles into this NG, wondering what Ruby is
+ 143264 [james_b@ne r] 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@gm ] 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@wa l. o] For me WYPR - windows, yaws, postgre, ruby.

One-Click Ruby Installer hits 90k (plus OSX news)
143277 [curt@hi bs 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@th ] Great. Maybe already discussed: are you thinking about a interface to the
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@er kv en] 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@hy e] I've tried a couple of times to run the Oracle interface
143306 [djberg96@ho ] Er, what?  More coffee Hal.
143315 [hal9000@hy e] 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@gm ] this is a problem that's been driving me nuts ever since i first tried
+ 143307 [james_b@ne r] What user is executing the script, and is ruby in that user's env?
| 143389 [greyfade@gm ] the user(s) i control, in both cases, and yes, it is in the env.  the
+ 143313 [ruby-ml@ma i] #!/bin/env/ ruby
| + 143386 [greyfade@gm ] (apologies to ES:  i hit "reply to author" entirely by accident.)
| + 143392 [greyfade@gm ] (apologies to ES for email.)
+ 143352 [Ara.T.Howard] [ahoward@localhost ~]$ cat a.rb
  + 143390 [greyfade@gm ] tried it.
  + 143393 [greyfade@gm ] <snip a bunch of pointless drivel>
    + 143432 [ruby-ml@ma i] Yours is quite a poor attitude to take toward people who
    + 143481 [hal9000@hy e] I think that's dependent on the web server, or is it the browser?
threads.html
top