119168-122606

119006-120161 subjects 119391-123448

^ value provided for argument with default value - how to check inside method?
119168 [itsme213 hot] Is there an equivalent of block_given? to check if the caller provided a
+ 119183 [vjoel PATH.B] AFAIK, you either have to use
+ 119209 [bob.news gmx] "itsme213" <itsme213@hotmail.com> schrieb im Newsbeitrag
| 119228 [itsme213 hot] In this case, I want to use foo() and foo(x) as getter and setter
| + 119233 [jgb3 email.b] You can always do something like the following. Create a constant and
| | 119245 [bob.news gmx] "Jamis Buck" <jgb3@email.byu.edu> schrieb im Newsbeitrag
| | 119255 [jgb3 email.b] class T
| | + 119259 [dblack wobbl] Hmmmm....  I always thought that a slogan for Perl, and at most an
| | | 119479 [bob.news gmx] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
| | + 119481 [bob.news gmx] "Jamis Buck" <jgb3@email.byu.edu> schrieb im Newsbeitrag
| + 119239 [Ara.T.Howard] how about something like this
| + 119246 [transami run] def foo(*x)
+ 119266 [cmills frees] 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 frees] I meant "unless a value is passed in"
  + 120047 [nobu.nokada ] def foo(x=(a=true; nil))

^ RubyConf 2004 presentation site
119171 [dblack wobbl] 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 gmai] Perhaps this is not possible, but I was wondering if there was a way
119190 [eeklund gmai] Unless the Digest class is "special", you should be able to just data

^ [KDIALOG] kdialog-0.2
119179 [ehames gmail] I finally managed to complete the implementation of the kdialog
+ 119180 [dross code-e] Hey, nice work. I was wondering when someone would start hitting the
+ 119198 [rff_rff remo] just a thing. It would be nice it KDialog::NO and KDialog::CANCEL had
| 119204 [ehames gmail] Actually, I did think of that, but I didn't know what to do in the
| 119213 [rff_rff remo] I'm not suggestint to have the same values :)
| 119235 [ehames gmail] OK.Now it makes sense to me ;)
+ 119242 [dross code-e] Do you plan on writing other wrappers for more KDE programs?
  119256 [ehames gmail] I found a kdialog wrapper useful for another project I'm working on.

^ FXRuby and the latest snapshot(s)
119186 [mkcon gmx.de] i am not able to compile FXRuby since about 1 month with the latest
122572 [vjoel PATH.B] 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 PATH.B] 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 gmail] Jamis,
119234 [jgb3 email.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 remo] maybe take a look Cerise ?
+ 119216 [dross code-e] There is soap4r module. If you need help. Drop me a line if you shoose
+ 119231 [ gm navel.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 graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 119224 [ jimm io.com] What determines whether the value should be an attribute or a sub-element?
| + 119226 [james graypr] That's how I took it, but maybe we can drag Jamis out to clarify this
| | 119236 [jgb3 email.b] Yup, that was the rule. If a node has children, it's value should be an
| | 119243 [jamesUNDERBA] Why?
| | + 119249 [jgb3 email.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 email.b] That's fine, too. But then you have to worry about which nodes you can
| | + 119251 [ jimm io.com] 0 @F46@ F100 24709  100 24709    0     0  18316      0  0:00:01  0:00:01
| |   119260 [jgb3 email.b] I can only assume this got garbled in transmission, because I can't make
| |   119265 [ jimm io.com] Around 16 lines from the bottom of the file, I see that line. There is one
| |   + 119274 [james graypr] 0 @F45@ FAM
| |   + 119276 [jgb3 email.b] Hmmm. I see the "0 @F46@", but after that it is completely different.
| |     119279 [ jimm io.com] I figured it out: it's from curl. To download the file, I did
| + 119254 [burtdav hotm] It's a bit of a mess, somewhat contradictory...
| | 119258 [jgb3 email.b] Indeed. :) That's why I didn't point it out. If you're up to othe
| + 119315 [hans fugal.n] As one of the other GEDCOM experts in the house let me reinforce Jamis'
|   119316 [jgb3 email.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 xmiss] Yes, and fun! http://www.fugal.net/fh/hans_pedigree.svg
|   119365 [burtdav hotm] <pedigree:individual id="pedigree_AN1"
|   119369 [fugalh xmiss] No, I'm afraid not. I don't even have the code that generates this
|   119401 [burtdav hotm] Is this something you would find useful? Jamis? Others?
|   119466 [fugalh xmiss] my prodding?), and he's talked about putting it on rubyforge. It's quite
|   + 119469 [jgb3 email.b] Hans, have you seen http://www.onepagegenealogy.com? It's what
|   + 119477 [burtdav hotm] Sounds slightly interesting.
+ 119296 [flgr ccan.de] Is it valid for CONT/CONC tags to use pointers like in this sample?
  + 119299 [jgb3 email.b] According to the spec, no. Anything in a CONC/CONT is taken literally,
  + 119355 [fugalh xmiss] Like Jamis said, it wouldn't be a pointer. But more than that,

^ [self.]setter vs. local variable initialization
119225 [itsme213 hot] Will Ruby 2.0 continue to interpret
119227 [matz ruby-la] It will.  x = 5 will be always interpreted as local variable
119304 [itsme213 hot] Thanks Matz.

^ Introspection on method arguments
119238 [stefan.arent] Is it possible to get the actual method argument *names*
119244 [bob.news gmx] "Stefan Arentz" <stefan.arentz@gmail.com> schrieb im Newsbeitrag
119291 [itsme213 hot] I hope it will be possible with keyword arguments in 2.0. Otherwise

^ Mobile Ruby
119247 [brian.yamabe] First, I'm not talking about Ruby on mobile devices.  I'm talking
+ 119248 [rff_rff remo] see ruby.ch, it hAS an online interpreter for ruby (1.6 iirc)
+ 119250 [dross code-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 code-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 gma] google rubyscript2exe i have been using it and its a wonderful little
| + 119353 [dross code-e] Does the box have java? If so, use a java based ssh client. Unsure, I've
| + 119362 [zdennis mkte] Brian this sounds like a fun and useful project. I'm up to starting a
|   119510 [brian.yamabe] Zach,
+ 119252 [ jimm io.com] How would this be different then opening a SSH/Telnet window to a remote
+ 119253 [zdennis mkte] 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 ccan.de] 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 hot] 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 nospam.co] Has anyone tried building the Ruby One-Click Installer using a
119283 [curt hibbs.c] You can use vc++ 6.0 and the results appear to be good, but the FreeRIDE
+ 119294 [jd nospam.co] Curt,
| + 119297 [jd nospam.co] I changed another line and created the directory to fix the problem.
| + 119301 [curt hibbs.c] The problem is the preview release tarball unpacks into a directory named
|   119305 [jd nospam.co] I got past the FXRuby and Expat installation screens.  The build
|   119308 [curt hibbs.c] How about updating the readme and sending it to me. I can then check that in
+ 119751 [djberg96 hot] Actually, it was me. :)  That information is almost entirely based on
  119752 [curt hibbs.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 sas.c] I'm adding "deep copy" methods to a set of classes. I'd like to be

^ Socket problem
119282 [ben bgpc.dym] 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 moulo] Try to use IO#sync=
| 119529 [ben bgpc.dym] That didn't help.  Besides, sync is set to true by default.
| 119539 [ehames gmail] removing the "\r\n" at the end of the messages? Doesn't #puts add the
| 119794 [ben bgpc.dym] I'm reporting what I'm seeing with the packet sniffer.  If what you say is
+ 120066 [ben bgpc.dym] I guess the factor we probably didn't consider is that although these

^ [ANN] DBC for C - 1.2.1
119287 [cmills frees] 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 graypr] If you don't mind my asking, how did you locate members?  I would love
+ 119293 [sera fhwang.] Me, I just set up a page at Yahoo Groups, then I announced it, to
+ 119335 [ptkwt aracne] We've got a Ruby group going here in the Portland (OR) area as well.  We

^ [ANN] Ruby-GetText-Package-0.8.0
119292 [mutoh highwa] Ruby-GetText-Package-0.8.0 is now available.
119309 [mneumann nte] 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 highwa] Oops, that's right.

^ Re: SyncEnumerator
119295 [graham inca.] I'm a newbiew .. but your optimisation looks worthwhile in terms of

^ Alexandria 0.4.0
119310 [daf muse.19i] Alexandria 0.4.0 has been released!

^ Threaded Observer
119312 [james graypr] Help Thread gurus!  :D
+ 119313 [james graypr] 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 comc] Hey All,
119318 [Ara.T.Howard] well - in a sense you ARE inside http.rb.  see, the 'start' method takes a
119361 [rpardee comc] Huge, huge help--thanks for taking the time!

^ argument parenths (was Re: [self.]setter vs. local variable initialization)
119322 [matz ruby-la] 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 ruby-la] Yes.
119487 [ggg ser1.net] charset="iso-8859-1"
119500 [matz ruby-la] 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 hotm] A Range is not a "range of variables", it's a range of values.

^ Succ distance between two strings
119341 [transami run] Is there an efficient way to calculate the "succ distance" between two strings
+ 119347 [dblack wobbl] 'a'...'aa'.to_a.size   # would be one way
| + 119348 [curne curnom] That still iterates over all elements but it looks sweet :)
| + 119349 [chadfowler g] ?a - ?a  #=> 0
| + 119488 [ruby brian-s] That does not work, as the ... have a very low binding. It seems a common error I made often.
|   119492 [dblack wobbl] Whoops -- I did actually do it correctly in irb, to make sure, and
+ 119351 [rff_rff remo] my tentativ impl would be
  119364 [transami run] 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 moulo] 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 enig] 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 refine] # The foo attribute
119386 [dave pragpro] try
+ 119393 [paul luon.ne] is better?
| 119402 [dave pragpro] 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 pragpro] Make it a method?   :)
| + 119422 [sroberts uni] I agree with this, but the opposite is useful, and not possible to get
| | 119431 [paul luon.ne] Exactly, that was what I meant. But what is the best solution to this...
| | 119433 [sroberts uni] 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 uni] 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 pragpro] 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 pragpro] Do you mean the list at the top? That's a good point. I could probably
|   | | 119493 [jim weirichh] Intermingled ... on the theory that if you are looking up a method in the
|   | | + 119496 [mneumann nte] Hm, and how about methods inherited from a superclass? Shouldn't they be
|   | | | + 119501 [dave pragpro] All the way up to Object?
|   | | | | + 119504 [mneumann nte] No, you're right, that's a bad idea.
|   | | | | + 119533 [jim weirichh] Eiffel documentation systems typically gave the users a choice: they could
|   | | | + 119502 [gavin refine] 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 uni] Not sure. If it's your understanding that all attributes are methods,
|   + 119445 [dave pragpro] don't need you telling me back :)
|     119467 [jamesUNDERBA] the book, and know what I think, so the round-about suggestion of
+ 119441 [gavin refine] Well, hell. RTFM, eh? That'll work for now. :)
  119459 [sroberts uni] The problem with things always getting better is you don't always

^ WEBrick listening on multiple ports?
119372 [ljz asfast.c] I'm writing an application that requires a specialized HTTP server.
+ 119374 [dga lcs.mit.] brick = HTTPServer.new(...)
| 119376 [ljz asfast.c] I had tried that, but I must have used an invalid 'address' or something
+ 119375 [ljz asfast.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 aracne] This is a good question.
| 119385 [vjoel PATH.B] IIRC, YAML and Syck work that way.
+ 119384 [vjoel PATH.B] * Application logic remains in ruby code.
+ 119388 [ggg ser1.net] 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

^ exception extensions
119387 [vjoel PATH.B] These are some extensions to Exception that I've found useful recently.
119398 [bob.news gmx] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag
119404 [pit capitain] 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 lcs.mit.] Actually, I was referring more to the performance of the
119400 [szegedy t-on] chris@gentoo:~/work$ time perl h2.pl 200
threads.html
top