194208-196017

193863-196012 subjects 194368-196129

Closing the Scary Door -- Differentiating Modules from Classes
194208 [transfire@gm] so I just want to put this "on the record". This is purely a

Fun with Time#to_s and locale
194211 [Daniel.Berge] I was futzing around with Time objects and locale.  Searching the

Regexp help:  Matching HTML having trouble w/greediness
194214 [weyus@at .n ] All,
+ 194237 [weyus@at .n ] /(<area [^>]*?)(href=['|"])(?!mailto:)(.*?)(['|"].*?>)/mi
| 194240 [robert.dober] ...
| 194242 [weyus@at .n ] Robert,
| 194245 [robert.dober] ...
+ 194239 [robert.dober] ...

Re: [Rails] [ANN] Mongrel 0.3.13 Pre-Release Update -- Yep, Again
194217 [schoenm@ea t] YOU. JUST. ROCK.

URUG/UtahValley.rb meeting tonight (last call)
194218 [pat.eyler@gm] Tonight (May 23rd), the utahvalley.rb is getting together at 7PM

Proposing: A new Ruby Windows installer
194219 [enterpriseas] I understand projects like the Ruby Installer for Windows exists, but
+ 194220 [halostatue@g] Because it'd be a waste. Better would be to have people actually
| + 194222 [Daniel.Berge] The "Python guys" you refer to in this case are actually a commercial
| | 194293 [tquessaNOSPA] Really?  Since when did: http://www.python.org/download/ get taken over
| + 194230 [james_b@ne r] Or maybe not, but in any event such a proposal needs to be matched with
| + 194232 [enterpriseas] Why would it be a waste?  A lot of time seems to be spent getting
|   + 194234 [leavengood@g] I'm telling you from personal experience that it isn't all that hard
|   + 196017 [strobel@se u] Real men %x{aptitude install ruby} and
+ 194224 [leavengood@g] The latest installer will probably be the last time there will be this
+ 194251 [ml.chibbs@gm] ...
  + 194259 [enterpriseas] Well, maybe this is the real problem with the Ruby community then?
  | + 194262 [tanner.burso] ...
  | + 194264 [rampant@gm i] There was a nice redesign with some momenutum about it a while back,
  | | + 194266 [enterpriseas] Those looks really good.  Professional.
  | | + 194279 [james@gr yp ] That's the custom-built CMS running on the ruby-lang.org server and
  | |   194296 [ezmobius@gm ] Awesome! I'm so glad to see that coming together.
  | + 194267 [james_b@ne r] You are the community.
  | + 194269 [halostatue@g] What, that we're overworked and haven't yet gotten someone to bankroll
  | + 194270 [leslieviljoe] I didn't know help was needed here, if there's something I can do, I
  | + 194273 [agorilla@gm ] I think the problem is far more one of the 'Windows users community'.
  + 194334 [peter@no no ] I read your message on the ruby-talk mailinglist. What kind of help do
    194338 [ml.chibbs@gm] ...
    + 194340 [rmagick@gm i] What compiler do you need to build binary extensions that are compatible
    | 194342 [ mfp@ac .o g] IIRC MSVC 6 or MinGW.
    | 194343 [rmagick@gm i] Thanks, Mauricio.
    | + 194347 [jes@lu et nk] Not really relevant to the one-click-installer, but precompiled windows
    | + 194366 [ mfp@ac .o g] If you're right that's pretty bad news :-| I thought MinGW was compatible with
    | | 194398 [ml.chibbs@gm] ...
    | | + 194403 [ara.t.howard] i can't really comment on this - but my baby steps have shown it to be ok.
    | | + 194468 [TimHunter@nc] Rats. Kaspar Scheiss actually does the RMagick Win32 work, and he's on
    | |   194476 [drjflam@gm i] ...
    | |   194500 [halostatue@g] Get them in touch with me if you don't mind; I've got a lot of work
    | + 194374 [halostatue@g] That's odd, because MinGW is supposed to be compatible with VC++6. It
    + 194345 [ara.t.howard] i've never understood why one would use the mingw?  my biggest issue with
    | + 194351 [leavengood@g] It seems they use VC6 to compile this, so we must use it as well for extensions.
    | | + 194357 [ mfp@ac .o g] But would it be more difficult to use
    | | + 194369 [ara.t.howard] fwiw i downloaded msys and compiled ruby-1.8.4 on an xp in about 10 minutes -
    | |   194538 [rtilley@vt e] I've got mingw and msys installed on a windows 2003 box... I've got the
    | |   + 194542 [rtilley@vt e] I figured it out... I have to use the msys shell... works great.
    | |   | + 194546 [rtilley@vt e] So, now that I have a working ruby.exe, irb, ri, etc. built with mingw
    | |   | | 194568 [ara.t.howard] i am under the impression that dan is re-working all that code to use ruby/dl
    | |   | + 194550 [ara.t.howard] yup.  and know you can do things like
    | |   + 194549 [ara.t.howard] start msys # gives you a shell
    | |     194590 [billk@ct .c ] Nice. . . . But what does /usr/local mean on windows?  Did it
    | |     194603 [ara.t.howard] to msys /usr/local means /c/usr/local whic means c:\usr\local.  however, if
    | + 194375 [halostatue@g] MinGW uses MSYS. You're using MinGW when you use MSYS, Ara.
    | | 194378 [ara.t.howard] ooops.  typo.  what i meant to say was
    | + 194397 [vjoel@pa h. ] What goes wrong with gsl when you use ruby-mswin32 and nmake/vc6?
    |   194400 [ara.t.howard] yup, you never would even make it this far.  you need to do this first
    + 194372 [halostatue@g] *and* has significant problems of its own.

[ANN] New article at RC&S: If It's Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and Domain Specific Languages in Ruby.
194231 [james_b@ne r] Topher Cyll has written an outstanding article for Ruby Code & Style[0].
+ 194233 [lukfugl@gm i] Not a comment on the article yet, as I haven't got that far in (what
| 194235 [james_b@ne r] Thanks!   I'll go get that sorted out.
+ 194236 [jgbailey@gm ] ...
+ 194302 [james@gr yp ] This is a terrific article.  Thanks for sharing.

Anobject question
194243 [narizona@ch ] In prag ruby the purchased copy, the following code fragment is shown.
+ 194247 [jim@we ri hh] Try running the code like this ...
+ 194249 [a2800276@gm ] Typically, methods like `succ` don't change the state of an object,
  194250 [narizona@ch ] Very nice! Thank you very much.  That helps.

do i need a regex?
194244 [     a@a. rg] i am trying to match the string "--(null)--" in ruby
194246 [marcel@ve ni] You *could* use a regex but you don't *need* to if all you care about is
194254 [     a@a. rg] marcel that worked perfectly
194329 [shortcutter@] I'm surprised: in your original posting you mentioned the string
194354 [     a@a. rg] i typed mine in with the parentheses

Atomic File.copy from Linux to Windows shared drive
194252 [Daniel.Berge] We've got a Linux box that runs some reports.  When the reports are
194257 [brabuhr@gm i] File.copy('temp.txt', '/X/temp.bak')
194258 [Daniel.Berge] Whoops! Yeah, that worked.  I still don't know what will happen if the
194268 [ara.t.howard] this __should__ depend on how the drive is mounted.  for instance, with an
+ 194277 [leslieviljoe] You may need some way of checking the files on the other side to see
+ 194287 [djberg96@gm ] Unfortunately I know very little about the setup, so I'm not sure what

Get and Post Combined ?
194253 [doug.bromley] ...
194274 [a2800276@gm ] Called `path` here...
194276 [doug.bromley] ...
194280 [a2800276@gm ] Is the server under your control? Can you be certain that the server
+ 194330 [timuckun@gm ] use sockspy. It's invaluable for stuff like this.
+ 194335 [doug.bromley] ...
  194336 [doug.bromley] ...

Newbie question: flickr gem installation
194255 [ingoweiss@gm] I installed the 'flickr' gem using 'gem install flickr'. Everything
+ 194263 [TimHunter@nc] You probably need to add the line
| 194310 [ingoweiss@gm] Thanks!
+ 194313 [benjohn@fy h] ...
| 194315 [benjohn@fy h] Which is wrong, because the error line number just seems weird.
+ 194316 [uncutstone@s] names.
  194337 [ingoweiss@gm] Amazing. Changing the script's name indeed did the trick. Now playing

[ANN] foxGUIb 0.6 released
194256 [meinrad.rech] dear (FX)Ruby hackers,

How use Profiling, a Quick Guide.
194271 [john.carter@] I don't know of any Good one but here are some things I do...
+ 194282 [pat.eyler@gm] (free subscription required)
| 194291 [john.carter@] Sigh! Buggy Registration required.
| 194309 [danielbaird@] ...
+ 194318 [vshepelev@im] 1. Unfortuantely, Windows users have lack of Unix power tools, which are
| + 194465 [john.carter@] Coool!! I _like_ it! Let that be a lesson to those who say Ruby can't do
| + 194526 [pedrocr@gm i] That's a nice idea. I made a small modification to count the totals of
|   + 194532 [vshepelev@im] Yep, it's a very good point!
|   | + 194535 [pedrocr@gm i] Yes, sure, it would be great to have some simple tracing tools that
|   | + 194539 [d454d@we .d ] code should go to rubyforge but the description of how to profile
|   |   194541 [vshepelev@im] Good point. Real problem is my very poor English. I'm afraid I can easily
|   + 194536 [Ola.Bini@ki ] well, but DON'T try to trace :+ with this, for obvious reasons... =)
|   + 194560 [shortcutter@] Note that a similar thing can be achieved with set_trace_func
|     194562 [vshepelev@im] Victor.
|     + 194611 [drbrain@se m] Use event_hook instead.  Its faster than both.
|     + 194689 [shortcutter@] Yes, but the other solution is more intrusive and will break if the
+ 195489 [groups@gr nd] The aforementioned "I" in this case being a hobbyist programmer
  + 195495 [sroberts@un ] 'profile', in the std lib
  | 195500 [groups@gr nd] Alas, you have still underestimated how clueless I am. 'the std lib'?
  | + 195503 [vshepelev@im] The point was: if you use some value repeatedly, it is generally smarter to
  | | 195506 [groups@gr nd] {brief scratching of head}
  | | + 195509 [logancapaldo] Ruby does not have an increment operator (++). It does have #succ but
  | | | 195513 [groups@gr nd] Aha. So it *wasn't* Ruby code, and my initial confusion was justified.
  | | + 195518 [vshepelev@im] No, it was something C-like.
  | + 195537 [groups@gr nd] In case anybody else was wondering the same thing, the answer can be
  + 195496 [vshepelev@im] V.
    195538 [groups@gr nd] Hmm. OK, that explains how to benchmark, and I think explains what the

Using rb_str_insert from c
194275 [phil@sh ll r] static VALUE rb_str_insert(VALUE, VALUE, VALUE)
+ 194278 [vjoel@pa h. ] id_insert = rb_intern("insert"); // you can do this once
| 194281 [phil@sh ll r] ID id = rb_intern("insert");
+ 194283 [nobu@ru y- a] If you are responsible to the arguments, rb_str_update() might

String.scan hangs in some cases?
194286 [weyus@at .n ] Has anyone ever see a call to String.scan (the "regular" form, not the
194288 [djberg96@gm ] Got an example you can share that demonstrates the problem?
194292 [billk@ct .c ] I'm guessing exponential backtracking when the expression doesn't match.
194319 [shortcutter@] Yes, that's a property of NFA based regular expression engines.  Some
194323 [billk@ct .c ] Thanks :)  We haven't seen the OP's regexp yet; I was just
194355 [weyus@at .n ] All,
194358 [weyus@at .n ] Just for kicks, here was the original regex - attempting to match
194360 [Daniel.Berge] Parsing HTML with regular expressions is the work of the Devil.

Re: win32 eventlog change_notify and tail's not tailing in order
194289 [botp@de mo t] # Refer to http://rubyforge.org/pipermail/win32utils-devel/2006-May/000571.html

Weird extension behavior
194295 [brian@kr hm ] I'm writing my first extension, which has some low-level networking
195097 [nobu@ru y- a] Some possibilities around puts.

A bug? FXRuby 1.4.6 segment fault when FXFileDialog.new
194304 [uncutstone@s] FXRuby 1.4.6 works fine except I call FXFileDialog.new.
194306 [vjoel@pa h. ] Can't reproduce it with fxruby-1.4.6 on ruby-1.8.4, linux.
+ 194359 [Nuralanur@ao] ...
| 194373 [uncutstone@s] Very thanks for your advice.
+ 194428 [uncutstone@s] After upgraded cygwin to 1.5.19-4, ruby to 1.8.4 (2005-12-24)

Re: foxGUIb 0.6 released
194305 [uncutstone@s] It seems there is a bug.
194312 [meinrad.rech] oh, this is really embaressing ;).

[ANN] foxGUIb 0.6  has a user guide
194322 [M.Parr@sh .a] A few hours ago, Henon announced the new version of foxGUIb, for creating user-interfaces.

Does it do clientside?
194324 [me@yo rh me ] When it comes to the Web, is Ruby a Serverside or Clientside language?
+ 194325 [rubytalk@ea ] ...
+ 194327 [a2800276@gm ] It doesn't matter, Ruby is a general purpose language. You can
| 194339 [sonoflilit@g] ...
| 194399 [me@yo rh me ] Thank you, do you know how reliable RJS is and do you have a link to it?
| 194440 [masukomi@gm ] ...
+ 194341 [masukomi@gm ] ...

find some error with exception
194326 [searchsa@12 ] run following script
194328 [a2800276@gm ] What are you trying to accomplish? Infinite recursion is generally not
194331 [decoux@mo lo] Read *carefully* his message.

generator m.file and m.template
194332 [klaas_debeuf] i'm working on a generator , i don't find very much information about
194416 [logancapaldo] Huh? A generator for what? Well after googling I discovered it's

Overriding Time.now
194346 [robmnl@gm il] ...
194348 [robert.dober] ...
194352 [robmnl@gm il] ...
194356 [Stephen.L.Mo] class CurrentTime
194364 [robert.dober] ...
194382 [Stephen.L.Mo] There's only one instance of the Time class object, and any changes you make to it are in effect 'global'.  At least in Ruby 1.8.  I understand there's some talk of adding namespaces or something to be able to make modifications and extensions to classes only apply in a certain scope in Ruby 2.0.
194394 [jim@we ri hh] You can use a technique called "Constant Injection" where you
+ 194437 [robert.dober] ...
| 194443 [logancapaldo] You are declaring a new class named Time in your module. This may or
| 194446 [robert.dober] ...
+ 194455 [Stephen.L.Mo] class Module
  194459 [Stephen.L.Mo] Correction, I should probably wrap the user code in an ensure block to
  195144 [pete@no ah t] Following up a slightly old thread here, but I've taken a hybrid

Re: Fun with Time#to_s and locale
194349 [Daniel.Berge] Anyone? Anyone? Buehler? Buehler?

Cgi output problem.
194350 [jvalencia@lo] I've been using mod_ruby for months and now i have to write a script
194395 [jim@we ri hh] You need to inform your web-server (apache I assume, since you are

RegExp Problem
194362 [ng@jo nw on ] I'm having a little trouble getting Ruby to match quotes correctly.
+ 194371 [aledonne.lis] John-
| 194379 [ng@jo nw on ] That makes perfect sense. So how do I get it to do what I want?
| + 194387 [aledonne.lis] Umm.... backwards?
| | 194435 [robert.dober] ...
| | 194454 [aledonne.lis] Thank you... I'm flattered!
| + 194388 [james@gr yp ] => "\"fun\"!"
| + 194393 [ng@jo nw on ] re = /(?:"[^"]*?"|'[^']*?')!/
|   + 194402 [shortcutter@] I don't think you can have backreference in character class.  In this
|   + 194412 [aledonne.lis] I haven't played with Oniguruma yet, but it has named groups - maybe a
|   + 194426 [aledonne.lis] OK, one more thought. Do you necessarily need it in md[0]? If not...
|   | 194427 [aledonne.lis] -A
|   | 194430 [ng@jo nw on ] But the point is to match any quoted expression followed by an
|   | + 194453 [aledonne.lis] Ignore my "better". what I had the first time,
|   | + 194461 [mail_bigfoot] John,
|   + 194434 [pit@ca it in] John, you can use negative lookahead: /(['"])((?!\1).)*\1!/
+ 194471 [danielbaird@] ...
  194478 [ng@jo nw on ] LOL :-)

Re: Welcome to our (ruby-talk ML) You are added automatically
194365 [mark.norgren] ...

[ANN] Recipients of Google Summer of Code awards
194367 [dblack@wo bl] On behalf of Ruby Central, the mentoring organization, I am very
+ 194370 [vshepelev@im] dblack@wobblini.net
| + 194380 [gregory.t.br] anyone with further questions is invited to carry discussions over to
| | + 194383 [vshepelev@im] [skip]
| | + 194425 [florgro@gm i] ...
| + 194445 [asbradbury@t] My snappily titled proposal "Automated Wrapper Generation for Information
| | + 194448 [jgbailey@gm ] ...
| | + 194469 [leavengood@g] I consider myself good at naming, so I'll bite. How about MineR?
| + 194559 [ilmari.heikk] What am I proposing?
| + 194949 [surrender_it] for what is worth, I started a blog to keep track of my work, which at
|   194981 [ilmari.heikk] On the same note, here's my dev blog:http://glimr.blogspot.com
+ 194879 [ml.chibbs@gm] ...
  + 194881 [prakash.diby] ...
  | 194901 [kevin.clark@] OSI says MIT is fine. I prefer MIT myself. Is there a problem with me
  | 194909 [halostatue@g] I have discussed this with my student and we are either going to
  + 194932 [dblack@wo bl] The reason was that it was the closest thing I could find to the Ruby
threads.html
top