119006-120161 subjects 119391-123448
value provided for argument with default value - how to check inside method?
119168 [itsme213@ho ] Is there an equivalent of block_given? to check if the caller provided a
+ 119183 [vjoel@PA H. ] AFAIK, you either have to use
+ 119209 [bob.news@gm ] "itsme213" <email@example.com> schrieb im Newsbeitrag
| 119228 [itsme213@ho ] In this case, I want to use foo() and foo(x) as getter and setter
| + 119233 [jgb3@em il b] You can always do something like the following. Create a constant and
| | 119245 [bob.news@gm ] "Jamis Buck" <firstname.lastname@example.org> schrieb im Newsbeitrag
| | 119255 [jgb3@em il b] class T
| | + 119259 [dblack@wo bl] Hmmmm.... I always thought that a slogan for Perl, and at most an
| | | 119479 [bob.news@gm ] "David A. Black" <email@example.com> schrieb im Newsbeitrag
| | + 119481 [bob.news@gm ] "Jamis Buck" <firstname.lastname@example.org> schrieb im Newsbeitrag
| + 119239 [Ara.T.Howard] how about something like this
| + 119246 [transami@ru ] def foo(*x)
+ 119266 [cmills@fr es] I remember Nobu had a solution for this... I can't seem to find it
+ 119271 [Ara.T.Howard] you may also use something like
+ 119272 [cmills@fr es] I meant "unless a value is passed in"
+ 120047 [nobu.nokada@] def foo(x=(a=true; nil))
RubyConf 2004 presentation site
119171 [dblack@wo bl] Ryan Davis has once again generously offered to host the slides from
119201 [Stephan.Kaem] Great! Thanks a lot.
119363 [ryand-ruby@z] For some reason it had weird perms. Fixed.
manipulating Digest state
119177 [bitserf@gm i] Perhaps this is not possible, but I was wondering if there was a way
119190 [eeklund@gm i] Unless the Digest class is "special", you should be able to just data
119179 [ehames@gm il] I finally managed to complete the implementation of the kdialog
+ 119180 [dross@co e- ] Hey, nice work. I was wondering when someone would start hitting the
+ 119198 [rff_rff@re o] just a thing. It would be nice it KDialog::NO and KDialog::CANCEL had
| 119204 [ehames@gm il] Actually, I did think of that, but I didn't know what to do in the
| 119213 [rff_rff@re o] I'm not suggestint to have the same values :)
| 119235 [ehames@gm il] OK.Now it makes sense to me ;)
+ 119242 [dross@co e- ] Do you plan on writing other wrappers for more KDE programs?
119256 [ehames@gm il] I found a kdialog wrapper useful for another project I'm working on.
FXRuby and the latest snapshot(s)
119186 [mkcon@gm .d ] i am not able to compile FXRuby since about 1 month with the latest
122572 [vjoel@PA H. ] Did anyone ever find a way to fix this? (I'm seeing it with FXRuby-1.2.2
122580 [langstefan@g] I had the same problem. FXRuby doesn't work with Ruby 1.8 preview 3.
122582 [langstefan@g] I meant "ruby 1.8.2 preview 3" and "ruby 1.8.2 preview 2" of course...
122606 [vjoel@PA H. ] Thanks! I'll wait until the dust settles.
Where can I find the reference documentation for libxml?
119189 [andrew.stuar] I'd like to be able to use libxml but its a little hard without a
119214 [jamesUNDERBA] doesn't do it?
needle looks good
119199 [haaktu@gm il] Jamis,
119234 [jgb3@em il b] Excellent! I'd love to hear about your experience with it, in particular
[ANN] xhtmldiff 1.2.0
119200 [aredridel@nb] I thought I'd announce xhtmldiff 1.2.0 before heading to bed.
Ruby Application Server?
119202 [stefan.arent] IoC containers seem to be the new hype in the ruby world. I count at
+ 119205 [rff_rff@re o] maybe take a look Cerise ?
+ 119216 [dross@co e- ] There is soap4r module. If you need help. Drop me a line if you shoose
+ 119231 [ gm@na el gr] have a look at Nitro (http://www.rubyforge.com/projects/nitro)
+ 119334 [mirceatoma@a] Webrick and the servlet run as services inside the Pith container.
[QUIZ] GEDCOM Parser (#6)
119223 [james@gr yp ] 1. Please do not post any solutions or spoiler discussion for this quiz until
+ 119224 [ jimm@io co ] What determines whether the value should be an attribute or a sub-element?
| + 119226 [james@gr yp ] That's how I took it, but maybe we can drag Jamis out to clarify this
| | 119236 [jgb3@em il b] Yup, that was the rule. If a node has children, it's value should be an
| | 119243 [jamesUNDERBA] Why?
| | + 119249 [jgb3@em il b] Yup, it can. The duplication is because that's the way that the GEDCOM
| | | 119261 [jamesUNDERBA] Ah. Still, it comes off as the sort of XML people invent when they want
| | | 119270 [jgb3@em il b] That's fine, too. But then you have to worry about which nodes you can
| | + 119251 [ jimm@io co ] 0 @F46@ F100 24709 100 24709 0 0 18316 0 0:00:01 0:00:01
| | 119260 [jgb3@em il b] I can only assume this got garbled in transmission, because I can't make
| | 119265 [ jimm@io co ] Around 16 lines from the bottom of the file, I see that line. There is one
| | + 119274 [james@gr yp ] 0 @F45@ FAM
| | + 119276 [jgb3@em il b] Hmmm. I see the "0 @F46@", but after that it is completely different.
| | 119279 [ jimm@io co ] I figured it out: it's from curl. To download the file, I did
| + 119254 [burtdav@ho m] It's a bit of a mess, somewhat contradictory...
| | 119258 [jgb3@em il b] Indeed. :) That's why I didn't point it out. If you're up to othe
| + 119315 [hans@fu al n] As one of the other GEDCOM experts in the house let me reinforce Jamis'
| 119316 [jgb3@em il b] Very true. As long as what your program emits is sensible and accurately
| 119319 [jamesUNDERBA] I was thinking that, were I to try this, I would likely first read the
| 119354 [fugalh@xm ss] Yes, and fun! http://www.fugal.net/fh/hans_pedigree.svg
| 119365 [burtdav@ho m] <pedigree:individual id="pedigree_AN1"
| 119369 [fugalh@xm ss] No, I'm afraid not. I don't even have the code that generates this
| 119401 [burtdav@ho m] Is this something you would find useful? Jamis? Others?
| 119466 [fugalh@xm ss] my prodding?), and he's talked about putting it on rubyforge. It's quite
| + 119469 [jgb3@em il b] Hans, have you seen http://www.onepagegenealogy.com? It's what
| + 119477 [burtdav@ho m] Sounds slightly interesting.
+ 119296 [flgr@cc n. e] Is it valid for CONT/CONC tags to use pointers like in this sample?
+ 119299 [jgb3@em il b] According to the spec, no. Anything in a CONC/CONT is taken literally,
+ 119355 [fugalh@xm ss] Like Jamis said, it wouldn't be a pointer. But more than that,
[self.]setter vs. local variable initialization
119225 [itsme213@ho ] Will Ruby 2.0 continue to interpret
119227 [matz@ru y- a] It will. x = 5 will be always interpreted as local variable
119304 [itsme213@ho ] Thanks Matz.
Introspection on method arguments
119238 [stefan.arent] Is it possible to get the actual method argument *names*
119244 [bob.news@gm ] "Stefan Arentz" <email@example.com> schrieb im Newsbeitrag
119291 [itsme213@ho ] I hope it will be possible with keyword arguments in 2.0. Otherwise
119247 [brian.yamabe] First, I'm not talking about Ruby on mobile devices. I'm talking
+ 119248 [rff_rff@re o] see ruby.ch, it hAS an online interpreter for ruby (1.6 iirc)
+ 119250 [dross@co e- ] hmmm. Does emacs/or vim over ssh not effective in what you want? Its how
| 119267 [ilveroluca@n] Alternatively, if you like GUI's and don't want to require an X installation
| 119269 [dross@co e- ] Every once and a while I try to use VNC for programming, it only works
| 119332 [brian.yamabe] These are interesting suggestions, but miss the point. VNC and SSH
| + 119350 [rubytalk@gm ] google rubyscript2exe i have been using it and its a wonderful little
| + 119353 [dross@co e- ] Does the box have java? If so, use a java based ssh client. Unsure, I've
| + 119362 [zdennis@mk e] Brian this sounds like a fun and useful project. I'm up to starting a
| 119510 [brian.yamabe] Zach,
+ 119252 [ jimm@io co ] How would this be different then opening a SSH/Telnet window to a remote
+ 119253 [zdennis@mk e] Perhaps the following is what you're looking for?
| 119263 [todd.bradley] When I started learning Ruby a few weeks ago, I decided I wanted to be
| 119268 [jamesUNDERBA] Can one run Ruby itself from a CD or a flash drive? Not via Knoppix,
| 119323 [batsman.geo@] The only issues should be
+ 119320 [flgr@cc n. e] IIRC some kind of Perl Wiki has been developed in that way. I think it
[ANN] Running a gem server as a Windows Service
119262 [djberg96@ho ] I've whipped up a tutorial on how to setup a gem server as a service
119278 [chadfowler@g] Very cool Dan! I'll have to go boot up my Windows box and give it a shot :)
Ruby language training in Denver
119264 [todd.bradley] Can anyone recommend a source for on-site Ruby training in the Denver
Re: Ruby/TK Question
119273 [Greg.Kujawa@] Thanks for the tips. I looked all around the Internet but couldn't find too
Building One-Click Installer with latest snapshot source
119277 [jd@no pa .c ] Has anyone tried building the Ruby One-Click Installer using a
119283 [curt@hi bs c] You can use vc++ 6.0 and the results appear to be good, but the FreeRIDE
+ 119294 [jd@no pa .c ] Curt,
| + 119297 [jd@no pa .c ] I changed another line and created the directory to fix the problem.
| + 119301 [curt@hi bs c] The problem is the preview release tarball unpacks into a directory named
| 119305 [jd@no pa .c ] I got past the FXRuby and Expat installation screens. The build
| 119308 [curt@hi bs c] How about updating the readme and sending it to me. I can then check that in
+ 119751 [djberg96@ho ] Actually, it was me. :) That information is almost entirely based on
119752 [curt@hi bs c] Oops... I just cut'n'pasted from an email I saved. I didn't mean to slight
deep_copy, deep_equality methods
119280 [sastph@sa .c] I'm adding "deep copy" methods to a set of classes. I'd like to be
119282 [ben@bg c. ym] We're having problems with the standard Socket module with Ruby. It has
+ 119290 [Ara.T.Howard] i'm guessing you are using 'print' in the perl version and, therefore, not
+ 119339 [decoux@mo lo] Try to use IO#sync=
| 119529 [ben@bg c. ym] That didn't help. Besides, sync is set to true by default.
| 119539 [ehames@gm il] removing the "\r\n" at the end of the messages? Doesn't #puts add the
| 119794 [ben@bg c. ym] I'm reporting what I'm seeing with the packet sniffer. If what you say is
+ 120066 [ben@bg c. ym] I guess the factor we probably didn't consider is that although these
[ANN] DBC for C - 1.2.1
119287 [cmills@fr es] As of 1.2.0 DBC for C is using the String Scanner library
Local Ruby Groups (was Re: Ruby and civil political discussion? (Re: [OT] US Presidential Election))
119288 [james@gr yp ] If you don't mind my asking, how did you locate members? I would love
+ 119293 [sera@fh an .] Me, I just set up a page at Yahoo Groups, then I announced it, to
+ 119335 [ptkwt@ar cn ] We've got a Ruby group going here in the Portland (OR) area as well. We
119292 [mutoh@hi hw ] Ruby-GetText-Package-0.8.0 is now available.
119309 [mneumann@nt ] URL was not found. Is this a temporary problem?
119321 [batsman.geo@] I found it under http://ponx.s5.xrea.com/hiki/ruby-gettext.html
119325 [mutoh@hi hw ] Oops, that's right.
119295 [graham@in a.] I'm a newbiew .. but your optimisation looks worthwhile in terms of
119310 [daf@mu e. 9i] Alexandria 0.4.0 has been released!
119312 [james@gr yp ] Help Thread gurus! :D
+ 119313 [james@gr yp ] Figures, I got it as soon as I pushed "Send". The correction is below,
+ 119324 [Ara.T.Howard] it does for me. on linux. are you on windows? if so the IO (puts) is
nuby sanity check--do I have a right to be confused by this error msg?
119314 [rpardee@co c] Hey All,
119318 [Ara.T.Howard] well - in a sense you ARE inside http.rb. see, the 'start' method takes a
119361 [rpardee@co c] Huge, huge help--thanks for taking the time!
argument parenths (was Re: [self.]setter vs. local variable initialization)
119322 [matz@ru y- a] Not sure. Only if I can make yacc rules smart enough to parse/detect
119342 [B.Candler@po] Are you talking about the warning you get if you do
119456 [matz@ru y- a] Yes.
119487 [ggg@se 1. et] charset="iso-8859-1"
119500 [matz@ru y- a] I'm glad to hear that is consistent. Any opinion would be welcome.
Parallel assignment with a range, is it possilbe?
119336 [ceedeeeee@ho] Is it possible to set a range of variables to a range of values using
119337 [burtdav@ho m] A Range is not a "range of variables", it's a range of values.
Succ distance between two strings
119341 [transami@ru ] Is there an efficient way to calculate the "succ distance" between two strings
+ 119347 [dblack@wo bl] 'a'...'aa'.to_a.size # would be one way
| + 119348 [curne@cu no ] That still iterates over all elements but it looks sweet :)
| + 119349 [chadfowler@g] ?a - ?a #=> 0
| + 119488 [ruby@br an s] That does not work, as the ... have a very low binding. It seems a common error I made often.
| 119492 [dblack@wo bl] Whoops -- I did actually do it correctly in irb, to make sure, and
+ 119351 [rff_rff@re o] my tentativ impl would be
119364 [transami@ru ] Thanks all for the responses. Looks like it _might_ be doable, but the
puts nil generates "nil\n"
119345 [B.Candler@po] $ ruby -v
119346 [decoux@mo lo] nil is a special case for #print, #puts
Local Ruby Groups (was: [OT])
119352 [nathaniel@ta] raleigh.rb already copied them - we have our mailing list at RubyForge,
[ANN] Catapult 0.1.0 Released
119356 [jamesUNDERBA] Catapult 0.1.0 has been released
119713 [khaines@en g] Catapult is pretty interesting to me because there is some definite overlap
ecommerce and ruby (tclink)
119359 [Ara.T.Howard] i have never developed any code that deals with ecommerce whatsoever. are
119524 [aredridel@gm] I've not used it, though I'm writing my own packages for doing
119530 [Ara.T.Howard] please keep me in the loop when you get there - the project i have in mind is
[RDOC] Documenting accessor methods as methods
119371 [jamesUNDERBA] I sometimes use the method definition shorthand 'attr_reader',
119373 [gavin@re in ] # The foo attribute
119386 [dave@pr gp o] try
+ 119393 [paul@lu n. e] is better?
| 119402 [dave@pr gp o] Not all xxx=() methods should be documented as attributes, though.
| 119410 [jamesUNDERBA] True. Rdoc should document methods as methods by default, however those
+ 119406 [jamesUNDERBA] However, if someone simply runs rdoc on the source, the results won't be
| 119417 [dave@pr gp o] Make it a method? :)
| + 119422 [sroberts@un ] I agree with this, but the opposite is useful, and not possible to get
| | 119431 [paul@lu n. e] Exactly, that was what I meant. But what is the best solution to this...
| | 119433 [sroberts@un ] I think it is to use the rdoc attributes, the # :..: thingies that can
| + 119428 [jamesUNDERBA] I guess I've been under the impression that the attr_* methods did
| + 119432 [sroberts@un ] By this definition, there is no such thing as an attribute, only
| | 119439 [jamesUNDERBA] That is my understanding of Ruby. I may be wrong.
| | + 119446 [dave@pr gp o] That's where we differ, and why RDoc distinguishes between attr and
| | | 119468 [gsinclair@so] I agree with this; I like (on balance) seeing attributes documented
| | | 119490 [dave@pr gp o] Do you mean the list at the top? That's a good point. I could probably
| | | 119493 [jim@we ri hh] Intermingled ... on the theory that if you are looking up a method in the
| | | + 119496 [mneumann@nt ] Hm, and how about methods inherited from a superclass? Shouldn't they be
| | | | + 119501 [dave@pr gp o] All the way up to Object?
| | | | | + 119504 [mneumann@nt ] No, you're right, that's a bad idea.
| | | | | + 119533 [jim@we ri hh] Eiffel documentation systems typically gave the users a choice: they could
| | | | + 119502 [gavin@re in ] I think so. This is my biggest complaint with almost all documentation
| | | + 119531 [gsinclair@so] Yes. Just to be precise, I was referring to the method _frame_ (I
| | + 119460 [sroberts@un ] Not sure. If it's your understanding that all attributes are methods,
| + 119445 [dave@pr gp o] don't need you telling me back :)
| 119467 [jamesUNDERBA] the book, and know what I think, so the round-about suggestion of
+ 119441 [gavin@re in ] Well, hell. RTFM, eh? That'll work for now. :)
119459 [sroberts@un ] The problem with things always getting better is you don't always
WEBrick listening on multiple ports?
119372 [ljz@as as .c] I'm writing an application that requires a specialized HTTP server.
+ 119374 [dga@lc .m t.] brick = HTTPServer.new(...)
| 119376 [ljz@as as .c] I had tried that, but I must have used an invalid 'address' or something
+ 119375 [ljz@as as .c] P.S. -- In my request below, I'm hoping to be able to do this without
119392 [stefan.arent] Depending on the operating system that you deploy on, you can also do this
Outsourcing to C? (Re: Ruby is a slow performer)
119377 [jamesUNDERBA] What's the criteria for having Ruby include something written in C?
+ 119381 [ptkwt@ar cn ] This is a good question.
| 119385 [vjoel@PA H. ] IIRC, YAML and Syck work that way.
+ 119384 [vjoel@PA H. ] * Application logic remains in ruby code.
+ 119388 [ggg@se 1. et] charset="iso-8859-1"
[ANN] Ruby DocBar 0.1.0 packaged release
119378 [jamesUNDERBA] First packaged release of the Ruby DocBar code. ruby-docbar 0.1.0 is a
119387 [vjoel@PA H. ] These are some extensions to Exception that I've found useful recently.
119398 [bob.news@gm ] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag
119404 [pit@ca it in] Kernel#raise can take a backtrace as the third parameter. So reraise_as could be
Ruby hashes (was: Ruby is a slow performer)
119390 [dga@lc .m t.] Actually, I was referring more to the performance of the
119400 [szegedy@t- n] chris@gentoo:~/work$ time perl h2.pl 200