78045-82317

77820-82320 subjects 78174-82478

^ bug in shell.rb
78045 [ian caliban.] The Shell.rmdir method in shell.rb doesn't work, because it passes the

^ how to contribute to a core module?
78048 [fxn hashref.] I've ported CGI.pm's self_url() to easily get URLs that point to the

^ Log4r and Ruby 1.8.0 in Singleton problems
78054 [david loudth] Somethings rotten...
+ 78055 [decoux moulo] What is this module ?
| 78057 [david loudth] I'm sorry. I recreated the test case too quickly (and wrong). Here's a
| 78058 [decoux moulo] ruby is trying to load *twice* the same module 'singleton.rb' : it do this
| + 78060 [david loudth] Right. But the log4r.rbx doesn't contain any requirements to include
| | + 78062 [B.Candler po] ruby 1.8.0 installs its libraries in a different place... so just to be
| | | 78064 [david loudth] require "singleton"
| | + 78063 [decoux moulo] What is your complete configuration. I can reproduce it with auto-load
| |   78066 [david loudth] OS X 10.2.6, mod_ruby 1.1.1, Apache 1.3.27, ruby 1.8.0
| + 78080 [dave pragpro] I have never understood this: why doesn't Ruby store the cannonical
|   78082 [in6x059 publ] I always thought this isn't done, so the programmer isn't deluded a
|   + 78086 [dave pragpro] 1. Would it be worse than it is now?
|   | + 78094 [markjreed ma] Depends on whether you think false security is better than no
|   | + 78102 [in6x059 publ] If there is a solution: Great!
|   | | 78104 [B.Candler po] #ifndef _myheader_h
|   | + 82303 [markjreed ma] Depends on whether you think false security is better than no
|   + 78088 [ben thingmag] I see the argument, but I don't really like it.  One thing I like about
|     78091 [batsman.geo ] Only because Java enforces a given directory structure. If you had the
|     78117 [gsinclair so] You would also need the constraint that files and classes be named
+ 78084 [chr_news gmx] On windows you will get the same error message. However, if you
+ 82301 [chr_news gmx] On windows you will get the same error message. However, if you

^ ruby 1.8.0 with VC++
78056 [stefan.staud] if have problems to build ruby 1.8.0 on Win32 with VC++ 6.0. Can anyone
78061 [chadfowler c] (unpack ruby)
78068 [joey joeygib] I built it the day it came out, with the only difference being that I ran

^ HELP,GET BACK ASAP PLEASE
78065 [princedidon1] This is a multi-part message in MIME format

^ I know why my son stays out late on weekend qvstzte g yy
78067 [bou3lvyfo ce] <html>

^ BUG: Incorrect error numbers being reported with TCPSocket
78071 [NOSPAMcs96an] I'm using ruby 1.8.0 on windows 2000.  I've discovered that when

^ Problem with ruby-dbi-all-0.0.20 and/or ruby-1.8.0
78074 [B.Candler po] The following test program works correctly with ruby-dbi-all-0.0.18 under
78081 [B.Candler po] OK, rolling back to dbi-0.0.18 didn't fix this, so I've dug around some more.
78083 [decoux moulo] alias dup clone
78085 [B.Candler po] alias :dup :clone
78087 [decoux moulo] Why ? alias is a keyword
78092 [B.Candler po] OK, that's new to me. I got most of my syntax from the Pickaxe book, and

^ format number with comma separators?
78089 [chrismo clab] I'm brain dead and just trying to get formatted numbers in a task that's
+ 78093 [chrismo clab] Found this: http://www.rubygarden.org/ruby?FixNumFormat
| 78101 [bob.news gmx] "Chris Morris" <chrismo@clabs.org> schrieb im Newsbeitrag
| 78107 [austin halos] I've created a "very" robust version that can handle differing separators,
+ 78095 [markjreed ma] Unless there's something I don't know about - a distinct possibility
+ 78097 [fxn hashref.] % ruby -e 'puts "456778904".gsub(/(.)(?=.{3}+$)/, %q(\1,))'
| 78099 [fxn hashref.] That spurious line at the end uses a regex that works for negative
| 78103 [wkb airmail.] irb(main):001:0> puts "-123456789.01".gsub(/(\d)(?=\d{3}+(\.\d*)?$)/, '\1,')
| + 78105 [tom infoethe] Yours,
| + 78108 [fxn hashref.] irb(main):003:0> puts "-123456789.0123".gsub(/(\d)(?=\d{3}+(\.\d*)?$)/, '\1,')
| + 78109 [wkb airmail.] Whoops,
+ 82304 [markjreed ma] Unless there's something I don't know about - a distinct possibility
  78098 [bob.news gmx] "Mark J. Reed" <markjreed@mail.com> schrieb im Newsbeitrag

^ RockiT
78096 [BCoish Dymax] Are there any resources available online that describe RockiT's

^ FXIconList Questions
78100 [kelkoura sof] I have a class that extends FXIconList; I'm having some trouble with a
+ 78106 [lyle users.s] I will send a modified version of the 'iconlist' example program to Karl
+ 82306 [lyle users.s] I will send a modified version of the 'iconlist' example program to Karl

^ ThreadGroup#enclose
78110 [dave pragpro] I'm probably being very dense, but could someone explain a practical use
78112 [nobu.nokada ] It was introduced for the sake of multiple Tk interpreter.  See
78113 [matz ruby-la] Yep, typically SafeTk wants threads created by unsafe interpreter
78114 [dave pragpro] In what way is it different to ThreadGroup#freeze?
78124 [matz ruby-la] You can't start new thread in the frozen ThreadGroup.

^ No trailing spaces after closing here doc tag?
78115 [chrismo clab] var = <<-DOC
78128 [dooby d10.ka] Ruby insists on a newline following the here-doc closer.
78168 [chrismo clab] heh ... yes.

^ Anything like Mason in Ruby?
78116 [app1tam ups.] I'm interested in server-side dynamic web content.  I've had some experience
+ 78121 [aredridel nb] Drew, you may seriously want to look at Amrita.  It's got a nice feature
+ 78134 [matt technor] Mason is huge, complex and far more than you need for what it sounds like

^ ASSISTANCE
78126 [safomyla fsm] I am Ms. Safonova Lyudmyla, a person from South Africa undergoing medical treatment. I am married to Dr. Alan Safonova Chris who worked with Malaysia embassy in South Africa for nine years before he died in the year 2000.

^ User-defined class coercion?
78129 [markjreed ma] I would like to define my own class that works as a number when
+ 78130 [matz ruby-la] class Foo
| + 78131 [markjreed ma] MR = me
| + 82307 [markjreed ma] MR = me
+ 78135 [dave pragpro] Coerce is both an instance method of Numeric and part of a
  78157 [jbshaldane h] But...
  78167 [dave pragpro] Oops - and I even documented that...  sigh

^ Ruby is Great: [Was -- Re: User-defined class coercion?]
78133 [mwilson13 co] And that's only one of the many charms of Ruby. :-)

^ [OT] Re: What's New and Shiny in Ruby 1.8.0?
78136 [dooby d10.ka] It doesn't roll off the tongue like the original IMHO :)
+ 78138 [dooby d10.ka] Arghh, there's a redundant variable in that sig.
| 78149 [in6x059 publ] I would've left it in. (For me) it makes a nice snippet more
+ 78155 [hgs dmu.ac.u] Hugh

^ Class variables, module inclusion and instance_eval
78140 [tim bates.id] I've been writing a library that one uses by including it in one's own
+ 78144 [B.Candler po] I can't answer your clearly-phrased questions on class variables, but there
+ 78152 [chr_news gmx] This has to do with Ruby's scoping rules - here is an example I changed
+ 82310 [chr_news gmx] This has to do with Ruby's scoping rules - here is an example I changed
  + 78153 [chr_news gmx] I maybe the following example is instructive too
  + 78172 [tim bates.id] Hmm, I can't find references to "included" anywhere, although I admit I
  | 78181 [kirindave le] Unless I'm mistaken, it's because, when you use the string form, you're
  + 82311 [chr_news gmx] I maybe the following example is instructive too

^ instance_eval and Class Variables
78141 [tim bates.id] The previous email had "instance_eval" in the title, because I meant to
78231 [matz ruby-la] This is normal.  Class variables are resolved using static scope.

^ Marshal format "safe"?
78142 [rpav users.s] I experienced an error today on what appeared to be bad data fed to
+ 78146 [bob.news gmx] "Ryan Pavlik" <rpav@users.sourceforge.net> schrieb im Newsbeitrag
+ 78189 [matz ruby-la] Define "safe" first.
  78215 [rpav users.s] I would say that "safe" in this case would be 1) not executing anything
  78220 [matz ruby-la] If you find a flaw, tell me privately ;-)

^ cygwin-provided ruby 1.6.8's map/chomp can't remove dos newlines?!
78145 [jhonold bigf] user@HOST ~/julia/proj
+ 78147 [bob.news gmx] "Justin Honold" <jhonold@bigfoot.com> schrieb im Newsbeitrag
| + 78197 [jhonold bigf] 1.6.8/win32 works fine too, as does 1.6.8/netbsd.  this seems to be a
| + 82316 [jhonold bigf] 1.6.8/win32 works fine too, as does 1.6.8/netbsd.  this seems to be a
+ 78246 [truls thirud] Just mount the directory (or a suitable parent directory) as a text

^ Can't marshal MatchData?
78148 [gsinclair so] Folks,
+ 78150 [B.Candler po] procs ?
+ 78154 [bob.news gmx] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
  78162 [gsinclair so] I didn't really want to store them, I was just mucking around, so I'm

^ Why does Ruby have callcc?
78151 [invalid inva] I understand, in a woozy sort of way, what callcc does. What I
+ 78158 [harryo qiqso] I'd be interested to read about some real-world examples where people have used callcc, not just to try it out, but because it was the "right" way to do something (for efficiency, or code brevity or whatever reason).
| + 78159 [B.Candler po] I think Seaside/Borges falls into this category.
| | + 78161 [harryo qiqso] Do you have any URLs for this?  I did a quick Google, but found a Smalltalk site.  As far as I can tell, Seaside was some Ruby code that ended up in Smalltalk as Borges?
| | | 78169 [B.Candler po] No, it was the other way round :-) Anyway,
| | | + 78171 [B.Candler po] Just installed, it was a doddle: you need 'installpkg-0.0.1' and
| | | + 78196 [julian beta4] Yeah, that's the main site for Seaside, probably: http://beta4.com/seaside2
| | + 78170 [james_b neur] As I recall from RubyConf 2002, the use of continuations in Borges was
| | | 78192 [julian beta4] Well now, it's not that it doesn't scale - you just have to be careful
| | | 78208 [drbrain segm] =20
| | + 78200 [julian beta4] Yup, absolutely.
| | + 78411 [avi beta4.co] It is.
| + 78182 [bob.news gmx] "Harry Ohlsen" <harryo@qiqsolutions.com> schrieb im Newsbeitrag
| | 78275 [jweirich one] You are probably refering to the "Same Fringe" problem ... you'll find
| + 78247 [ben thingmag] I have been interested in these continuation-thingys for a while now, so now
|   + 78252 [dan sidhe.or] They don't--there's no inherent strange syntax to them. The syntax
|   | + 78254 [hal9000 hype] now
|   | + 78263 [ben thingmag] Like Hal said, I meant why do they have the strange syntax they do "in Ruby".
|   |   + 78271 [drbrain segm] by". =20
|   |   | + 78272 [drbrain segm] irb(main):007:0> c =3D Continuation.new; puts 'hi'
|   |   | + 78290 [ben thingmag] Interesting... now I'm trying to understand what happens here when you
|   |   + 78273 [dan sidhe.or] Ah, OK. With the reference to the ll1 stuff, I was assuming you were
|   |   | + 78274 [djd15 po.cwr] As for why callcc takes a block (I didn't see this in any of the replies
|   |   | | 78291 [ben thingmag] Ok, and the reason you need to have this lambda is that callcc is a
|   |   | | 78299 [jweirich one] Actually, no.  One of the useful things to do with continuations is to
|   |   | | + 78322 [djd15 cwru.e] Correct. You need to wrap it in an anonymous function to pass along the arguments.
|   |   | | | 78323 [djd15 cwru.e] Bah, sorry about the formatting. My last mail is
|   |   | | + 78427 [ben thingmag] Continuation.new was meant as a replacement of callcc.  The continuation would
|   |   | |   + 78428 [djd15 po.cwr] This works, but only because you're implementing both with callcc.  If
|   |   | |   | 78430 [ben thingmag] Well... considering that at the moment there isn't any other way to create a
|   |   | |   | 78437 [djd15 po.cwr] Well, Continuation.run seems to me to be trivially the same as callcc,
|   |   | |   | + 78448 [ben thingmag] Wouldn't it print 1 and return 2?
|   |   | |   | | 78452 [djd15 po.cwr] Well, I did "puts Continuation.run(method(:foo), 1, 2)", which prints
|   |   | |   | | 78469 [jweirich one] The problem with this that I see is that Continuation.current implies
|   |   | |   | + 78463 [martindemell] Continuation.resume?
|   |   | |   + 78440 [jweirich one] Ahh, that's where the confusion is!  Callcc doesn't stand for "call
|   |   | |     78444 [ben thingmag] I actually understood that -- I just found it confusing.  Offhand, I
|   |   | |     + 78449 [mwilson13 co] If they're created, they have a constructor. The constructor is not
|   |   | |     + 78450 [djd15 po.cwr] Perhaps Continuation.new isn't the right method name.
|   |   | |     | 78455 [B.Candler po] Actually, I think Proc.new {..} and proc {..} are no longer identical in
|   |   | |     | 78458 [B.Candler po] $lines = {}
|   |   | |     + 78471 [gsinclair so] MatchData.
|   |   | |     | 78472 [djd15 cwru.e] That might be a good renaming of the existing instance method call. But with Continuation.call, we were
|   |   | |     | 78473 [djd15 cwru.e] Well, I guess the idea would be that Continuation.current would be the continuation of
|   |   | |     + 78524 [flgr ccan.de] Moin!
|   |   | + 78285 [ben thingmag] No worries.  :)
|   |   + 78288 [jweirich one] Continuations come out of a style of programming called Continuation
|   |     78294 [ben thingmag] "Well, if you remember with CPS, when you call a function you pass in a
|   |     78340 [dan sidhe.or] It's important to note that the stuff referenced in the above link,
|   + 78266 [mwilson13 co] First, I'm sure you know more about continuations than I do, because I
|   + 78269 [mwilson13 co] you'll get a long list of academic research papers relating to
+ 78177 [airboss node] I can't explain the "how'd it get there" part; I'll leave that to Matz
  78190 [matz ruby-la] The official answer is "why not".  I provide the features, you use
  + 78191 [ben thingmag] Heh, best quite ever.
  + 78336 [batsman.geo ] How consistent is this w/ your "no featuritis" policy?  In LL2 you had
    78362 [matz ruby-la] There's strong reason not to have macros in Ruby, as I believe.
    + 78375 [denshimeiru-] Naq gurl'er gur bayl jnl gb trg bhg bs fbzr rivy pbafgehpgf...
    | + 78399 [martindemell] Best piece of fallthrough abuse since Duff :)
    | | 78409 [drbrain segm] Look more closely, it doesn't use fallthrough.  Ruby's case is not the
    | | 78412 [martindemell] Oops - yes, you're right.
    | + 78413 [dooby d10.ka] puts "Hello World"
    |   + 78421 [gsinclair so] Did you test this?  I didn't, but it appears to me that it will loop
    |   | + 78424 [dooby d10.ka] I did.  It's a 'copy' of Rudolf's program.
    |   | + 78451 [dooby d10.ka] I think variables follow the scoping rules you are used to.
    |   + 78425 [nathaniel NO] I guess the contest this week is to see who can implement Basic the best
    |   + 78456 [denshimeiru-] Well, that was not my point.
    + 78461 [ gm navel.gr] is the rationale behind not using macros in Ruby documented somewhere?
      78474 [batsman.geo ] _           _
      + 78475 [djd15 cwru.e] As I understand it, continuations are, in a way, a
      | 78478 [B.Candler po] OK. So if you had object or variable x in scope at that time, you still have
      | 78482 [dan sidhe.or] More exactly, after a longjmp the stack *pointer* is put back to
      + 78476 [decoux moulo] [ruby-talk:69304]

^ Ruby 1.8.0 embedded
78156 [stefan.staud] I use ruby 1.8.0 embedded in a C++ application under Win2000. I use the
78164 [decoux moulo] You are lucky

^ RockiT Install problems
78160 [BCoish Dymax] Has anyone else run into Rockit installation problems using Ruby 1.8.0?
78163 [chadfowler c] I didn't have any issues with seg faults.  I'm running on Windows XP and

^ newbie question from a smalltalker
78165 [adriano.volp] Dear all,
+ 78166 [lyle users.s] I will be interested to see some of the other replies to your questions,
+ 78179 [mwilson13 co] I hope that you can put together a list of the tools you would like to
| + 78186 [bob.news gmx] "Mark Wilson" <mwilson13@cox.net> schrieb im Newsbeitrag
| | + 78187 [dblack super] sym = sym.to_sym
| | + 78194 [ben thingmag] For what it's worth, I think a tool that could do what Adriano's asking for
| |   78371 [wsdng online] If you do so, have a look at the RefactoringBrowser, Smalllint and the
| + 78306 [wsdng online] The main strenght of Smalltalk IDEs are the debugging features.
+ 82312 [lyle users.s] I will be interested to see some of the other replies to your questions,
  78173 [gsinclair so] I'd like to read about how the Smalltalk environment fits together
  + 78176 [lyle users.s] I've only played around with Squeak Smalltalk, but I assume that all of
  + 82313 [lyle users.s] I've only played around with Squeak Smalltalk, but I assume that all of
    78183 [dave pragpro] I agree that IDEs are a great environment for some folks. But just for
    + 78188 [adriano.volp] You are right! You can always emulate every tool and bell and whistle with
    | + 78193 [dave pragpro] Design? Where's the productivity is design? You're only working when
    | | + 78198 [brett_willia] Yikes!  Maybe you can define working harder as more typing, but I don't see
    | | | 78206 [dave pragpro] Why do you have to retype things you didn't design properly? It sounds
    | | | 78207 [brett_willia] Yes, yes, you can all stop making fun of me now.  I accept the label of
    | | | + 78209 [mgarriss ear] <bite>  I have found that of all the languages I have used, Ruby seems
    | | | + 78228 [dave pragpro] No, in all seriousness I spent about 2-4 hours up front thinking about
    | | + 78199 [hal9000 hype] obtain
    | | + 78201 [wjl icecaver] Wow, this is a good idea! I can just see it: you hook up a little device
    | | + 78276 [jweirich one] Dang!  I'm in trouble.  I caught my left index finger in the car door
    | |   78277 [dblack super] Sounds like your code is weakly typed....
    | |   78278 [harryo qiqso] Dear oh dear oh dear :-) !!
    | + 78211 [mwilson13 co] One thing Ruby offers here is an excellent unit testing framework.
    + 78202 [mgarriss ear] Although I can't test it in my current enviroment, I believe that ctags
      + 78203 [Mark.Volkman] This message is in MIME format. Since your mail reader does not understand
      + 78210 [lyle knology] Actually, I can confirm it ;) I use the CodeBrowser (I think that's its
      + 82317 [lyle knology] Actually, I can confirm it ;) I use the CodeBrowser (I think that's its
        + 78212 [mgarriss ear] Yea...If I remember right, ctags was much better at some languages then
        | 78223 [brett_willia] The ctags version that is Open Source is Exuberant ctags, which supports
        | 78227 [mgarriss ear] One might be able to call ctags from a ruby script, take the output, and
        + 78261 [gsinclair so] It's a limitation of ctags, and not one that's likely to be overcome
        + 78303 [wsdng online] ECB is a very powerful emacs tool. I use it for about a year now and
threads.html
top