155365-157410

155181-156005 subjects 155543-157530

^ File.mtime <=> DateTime.strptime()
155365 [hgs dmu.ac.u] I'm trying to compare how new a file is with the header obtained
+ 155366 [Ara.T.Howard] this might help...
| 155377 [hgs dmu.ac.u] What is alib?
| 155382 [Ara.T.Howard] ara's lib ;-)  it's a holding place for all the utility methods i don't end up
| 155384 [hgs dmu.ac.u] These sound useful, thank you.
+ 155388 [drbrain segm] require 'time'
  155434 [hgs dmu.ac.u] Hugh

^ compiling ruby on red hat linux
155369 [philip_mikal] I'm having no luck compiling Ruby - getting the
+ 155370 [joevandyk gm] Did you run the configure script?
| 155371 [philip_mikal] Yes!
+ 155373 [Ara.T.Howard] ~ > tar xvfz ruby.tgz
| 155376 [philip_mikal] compiling iconv
+ 155396 [nobu.nokada ] It works for me, with gcc 3.4.2 on Redhat.
  155397 [philip_mikal] -DICONV_INPTR_CAST="(char **)"
  155398 [nobu.nokada ] What is `your gcc'?  Maybe a wrapper script?
  155413 [philip_mikal] Yes, it looks like a wrapper script.
  155425 [nobu.nokada ] They must be "$@" instead of mere $@.
  155466 [philip_mikal] Name        : gcc

^ RGSS
155372 [hawkman.gelo] i would like to use the RGSS (Ruby Game Scripting System) to create games=
+ 155375 [surrender_it] I think you may have misunderstand what RGSS does: it builds on top of
| 155379 [hawkman.gelo] i know it does that, but i also know it is possible to script in RGSS=20
+ 155389 [florgro gmai] If this doesn't work out there is also the game development library
  155416 [hawkman.gelo] that looks really nice, and it doesn't look all too hard, i'll check it out=

^ Windows GUI Suggestions
155378 [speechexpert] I am interested in writing a debugger that single-steps, highlights lines,
155385 [curt.hibbs g] s=20
155449 [speechexpert] Thanks Curt - My mission is a bit more complicated han a Ruby debugger
155461 [curt.hibbs g] I'm one of the original authors of FreeRIDE. If you want to explore the=20

^ Rails and Code Tables
155386 [richard.mcgr] I am new to Ruby and the Ruby on Rails framework, and I am in the
155447 [daryl brandy] This sounds to me like an unwise db schema design, but it's hard to tell
155500 [tomwilcoxen ] create table code(
155505 [Paul.McArdle] Has to be something like this
155717 [richard.mcgr] Thanks for the ideas.  That gives me some great pointers to figure

^ [ANN] RMagick 1.9.1
155387 [cyclists nc.] RMagick 1.9.1 is now available on RubyForge. This is primarily a bug-fix

^ Ruby on Rails Question
155393 [kenfettig bt] How do you add business logic errors to the ApplicationController instead of
+ 155394 [jqshenker gm] This is the Ruby language mailing list. You'd get better answers byasking on the Rails ml.
+ 155417 [rubyrails gm] If you have access to the model object, then you can use the attribute
  155721 [kenfettig bt] Thanks much!!!!! That worked!!!

^ Why? Blocks
155400 [julian coret] c = [1,2,3,4,5,6,6,7,8,10]
155402 [jamis 37sign] b = Proc.new {|aVal| aVal / 5 == 0}
+ 155403 [joevandyk gm] What's the significance of '&b' vs 'b'?
| + 155404 [dblack wobbl] &b means that it's serving as the code block for this method call.  b
| + 155406 [billk cts.co] It tells ruby that parameter is to take the place
| + 155520 [ruby.brian g] There is a similiarity between the star and the ampersand operator. A
+ 155629 [julian coret] You ROCK :-)

^ implode function?
155408 [julian coret] Is there are similar thing to the PHP version of implode in ruby?
+ 155409 [ulmo valaraa] z = %w[yeah cool mad awesome funky]
+ 155412 [gfb tonesoft] x = z.join
+ 155414 [lyndon.samso] Allways assume ruby has nicer method/function names than PHP :-)
+ 155790 [flori nixe.p] z = %w[yeah cool mad awesome funky]
| 155803 [martindemell] Shame there's no corresponding String#/
| + 155806 [flori nixe.p] class String; alias / split; end
| + 155808 [halostatue g] class String
+ 155821 [dblack wobbl] See the other answers for the answer(s), but also, note that the

^ Optimizing a single slow method
155411 [noSpam noSpa] I have a Ruby script (a small part of it is included below)
+ 155420 [bob.news gmx] First of all I'd try to exactly determine *why* it is slow and where it's
+ 155474 [drbrain segm] Since Dates are created using Rational, so they can use up a
| 155478 [hgs dmu.ac.u] I'd swap those two: test of a hash will be faster than test of a
| 155498 [noSpam noSpa] Thanks a bunch, Hugh and Eric!  The combination of your
| + 155506 [nugend gmail] How many files are you doing?
| + 155509 [Ara.T.Howard] can you send a sample data set (contact me offline if you wish) and expected
|   155510 [noSpam noSpa] Great news!
|   + 155526 [bob.news gmx] So you changed Contract.open()?
|   | 155580 [noSpam noSpa] Yes... I found out that if I create a hash of contract names
|   | 155609 [bob.news gmx] I was probably not clear enough: I intended to convey that the pure IO part
|   + 155761 [hgs dmu.ac.u] Good.
|     155944 [wilsonb gmai] I used this form frequently in the past, but then someone explained to
|     155947 [hgs dmu.ac.u] Good point.
|     + 155963 [noSpam noSpa] Yes indeed!  Thank you very much, Hugh, and all
|     | + 155966 [hgs dmu.ac.u] I was hoping that pre-defining the vars outside the block knock
|     | + 156522 [noSpam noSpa] Just FYI for anyone following this thread...
|     |   156528 [bob.news gmx] this sounds like a challenge!  I'd love to get my hands on the input and the
|     |   + 156529 [SimonKroeger] second that!
|     |   | 156532 [w_a_x_man ya] I'd like to give it a shot.
|     |   | 156544 [SimonKroeger] First i create a testfile (100000 rows, 9 values each rows. 5 ints, 4
|     |   | 156580 [w_a_x_man ya] On my computer, it's a tiny bit faster without the .map!.
|     |   + 156633 [noSpam noSpa] I wish I could point to it or upload it, but it is historical
|     |     156656 [bob.news gmx] Ok, at least we can generate a large data set with this kind of
|     |     156710 [noSpam noSpa] Yes, there are three types of files: daily, monthly, and
|     |     157255 [bob.news gmx] format=flowed;
|     |     157301 [noSpam noSpa] VERY IMPRESSIVE!!!  After tweaking your two regexp's from
|     |     157304 [bob.news gmx] Guess so.  I thought it was cleaner to do this separately but if you
|     |     + 157308 [bob.news gmx] format=flowed;
|     |     + 157410 [bob.news gmx] format=flowed;
|     + 156063 [bob.news gmx] The closing isn't that costly.  And if you later change the script you
|       156067 [hgs dmu.ac.u] The closing would allow you to avoid that block with the |io| in it.
|       156074 [bob.news gmx] charset="iso-8859-1"
+ 155604 [meta pobox.c] I predict that's your problem right there.  The parsing and

^ 'which' command for Ruby (like csh which?)
155418 [dan.bikle gm] suppose I have,
+ 155431 [dave burt.id] def which(lib)
| 155457 [Daniel.Berge] Check your $LOAD_PATH.  Wherever redgreenblue.rb shows up first is the
+ 155462 [Ara.T.Howard] require 'rbconfig'
  155521 [gsinclair gm] Distributing an 'rwhich' command with Ruby would be quite handy,

^ IE6 no display jpeg images from mysql database
155424 [robert rob.c] I searching in other groups replay but .... :-(
155463 [lukfugl gmai] The problem is that IE is not HTML 4.01 compliant (and the data: uri
155465 [florgro gmai] IIRC javascript:'data' URLs work, but they have no implicit Content-Type.

^ Python supported for client side scripting in Mozilla.
155430 [erik terpnet] Would love to be able to do that with Ruby one day.
155442 [mike.nichola] Yes, I have been thinking about how nice it would be to be able to use

^ request for README's
155435 [phlipcpp yah] In my folder /ruby/samples/Ruby-1.8.2/sample/webrick I find demo-servlet.rb.
+ 155444 [lyndon.samso] Just a wild guess but how about
+ 155455 [dooby d10.ka] cd /ruby/samples/Ruby-1.8.2/sample/webrick
  155468 [phlipcpp yah] Yay! Now Google will return a good answer the _next_ time someone discovers

^ win32ole confusion
155440 [damphyr free] OK, I'm trying to wade my way through Rationals Rose RealTime using
+ 155446 [damphyr free] Well, I managed to confuse myself even more. I moved the code outside
+ 155566 [bret pettich] Probably. OLE is an asynchronous protocol. So WIN32OLE.new() can return an

^ [QUIZ] NDiff (#46)
155441 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 155445 [hgs dmu.ac.u] It would seem useful to be produce a file of numerical differences
| + 155450 [james graypr] That's an interesting point.  Maybe we can attract Bill's attention
| | 155539 [Bil.Kleb NAS] Sorry, one of my "ignore thread" filters apparently
| + 155559 [Bil.Kleb NAS] Yes, but not to us at this point.
+ 155452 [hgs dmu.ac.u] Named fields are an interesting case: what should happen for
| 155538 [Bil.Kleb NAS] Non-zero exit code due to the different number of "numeric fields".
+ 155481 [jim freeze.o] To help the quiz writers focus on the 'the quiz' and not the administrative
  + 155484 [lukfugl gmai] Thanks, Jim! I'd actually been trying to use CommandLine::Application,
  | + 155486 [jim freeze.o] Great. Glad to have helped. Any feedback to improve CommandLine is
  | + 155542 [Bil.Kleb NAS] An exit code is much desired for our application.
  + 155540 [Bil.Kleb NAS] Awesome.

^ [RubyConf] Registration cap looming -- please register now!
155454 [dblack wobbl] Due to logistics involving the conference facilities -- basically, the

^ quick print type debugging
155464 [eric_mahurin] Anybody think something like this would be useful?
+ 155467 [halostatue g] Yes. I'd even support an RCR for this. This would also sort of mandate
+ 155469 [florgro gmai] See attachment. It's not very general, though.
| 155471 [eric_mahurin] Perfect.  This was from a ruby quiz, right?  Now here is the
| + 155476 [Ara.T.Howard] This message is in MIME format.  The first part should be readable text,
| | 155479 [eric_mahurin] irb(main):052:0> lambda { 1+2 }.source
| + 155502 [florgro gmai] I also submitted it to a Ruby Quiz, but it is older than that.
+ 155470 [Ara.T.Howard] yeah - but maybe ENV['DEBUG'] vs $DEBUG so one could just
+ 155519 [gsinclair gm] require 'dev-utils/debug'   # http://dev-utils.rubyforge.org
  155547 [eric_mahurin] I just took a peek at your code.  This could be quite slow
  155556 [florgro gmai] Why do you think that this is too slow? It's something that only happens
  155563 [eric_mahurin] My proposal was that this expression passed to this trace/debug

^ Unit tests used to generate documentation
155477 [Bil.Kleb NAS] I recall a thread here a year or so ago

^ method_added for class methods
155480 [k v2studio.c] Is there any way to get method_added to work with class methods? (or to
155488 [transfire gm] class X
+ 155489 [transfire gm] s/singletin/singleton/
+ 155490 [dblack wobbl] s/tin/ton/ :-)
  + 155499 [k v2studio.c] Thanks. That did the trick. I didn't know about singleton_method_added.
  | 155501 [k v2studio.c] So I just bought the pickaxe 2 and it's there. Gotta love this book.
  + 155529 [bob.news gmx] => nil
    + 155532 [dblack wobbl] Right -- actually the one that I expected would work, but didn't,
    | 155577 [k v2studio.c] That's what I'd been trying before I posted.
    + 155578 [k v2studio.c] Well, but the question was about class methods, and you're defining an

^ katrina images generated with ruby
155483 [Ara.T.Howard] thought some of you out there might be interested in generating imagery with

^ Dynamic method execution problem
155487 [joe.yakich g] All,
155491 [lukfugl gmai] <snip definition of methods array>
+ 155503 [joe.yakich g] Jacob,
+ 155524 [ruby.brian g] You don't need to convert my_method to a symbol explicitly. Just pass

^ YAML bug with binary data
155492 [mike lepton.] $ ruby -v -ryaml -e 'YAML.load ["\0\n_",nil].to_yaml'

^ Ruby 1.6.8 win32ole.so File?
155496 [greg.kujawa ] I have an old binary Ruby 1.6.8 running on my Windows 2000 development
155518 [dooby d10.ka] daz
155525 [greg.kujawa ] Thanks so much for pointing this out to me. Now my code should be a lot

^ [ANN] PDF::Writer 1.1.3
155504 [halostatue g] * Matthew Thill found a bug with #margins_cm, #margins_mm, and    #margins_in. It was reported as #2356 and has been fixed.

^ Using Ruby as a preprocessor for another language
155507 [debbie thean] I have the misfortune of being stuck programming in a very bad
+ 155508 [james graypr] Are you aware that you can set ERuby (and ERb, the little brother
| + 155513 [gavin refine] % nps.each do |thug|
| | 155523 [malte.milatz] [erb]
| | + 155536 [gavin refine] There is if you have any literal text in your ERB file. (And if you
| | + 155550 [james graypr] Yes there is.  A call to puts() would be resolved when it is
| + 155516 [debbie thean] It looks like the % only works if it's at the beginning of the line. It
|   + 155528 [bob.news gmx] Preprocess the file.  SCNR :-)
|   + 155549 [james graypr] I don't believe so, no.
+ 155517 [w_a_x_man ya] /^\s*\@(.*)$/
+ 155548 [gene.tani gm] Looks like your template's distilled your business logic pretty well,

^ Kudos!
155512 [halostatue g] I want to offer my heartfelt thanks and kudos to the developers of two
+ 155514 [florgro gmai] Care to share the Rakefile? I've automated uploads to Rubyforge and lots
| 155527 [halostatue g] I'm not *quite* done automating; I want to bring in Net::SSH
| 155535 [florgro gmai] Heh, I use the scp tool for that.
+ 155885 [aslak.helles] thanks austin! :-)

^ Re: gmailer 0.0.9
155522 [gsinclair gm] Looks excellent, and Austin's kudos for it gave me an idea of what to

^ [ANN] Win32 gem for RMagick 1.9.1
155530 [cyclists nc.] Hot on the heels of the latest RMagick update, Kaspar Schiess has
155533 [cyclists nc.] Oop, forgot.
155689 [vanweerd gma] Attempting local installation of 'RMagick-win32-1.9.1-mswin32.gem'
155901 [eule space.c] I can reproduce that on some machines, although not on my testing machines.
+ 155957 [vanweerd gma] Thanks for the response.
+ 155959 [vanweerd gma] Thanks to your tip,
  155960 [vanweerd gma] ruby.exe- Unable to Locate Component

^ ANN: RMagick 1.9.1 win32 binary
155531 [eule space.c] The RMagick rubyforge site at http://rmagick.rubyforge.org has been updated

^ Problem fixed, but why? (was: Rio 0.3.4)
155534 [ljz asfast.c] I found a work-around for this problem, but I don't understand why it
155597 [rio4ruby rub] I still can't reproduce this. The Rio software is broken up over many
155599 [ljz asfast.c] I'm glad to help :)

^ RCR to modify #puts and #print inside ERB
155537 [gavin refine] Modify ERB so that calls to #puts, #print, and #p inside the template
+ 155541 [dblack wobbl] I can't think of any reason to do this other than the fact that people
| + 155551 [james graypr] I have to agree.  There's no advantage to having puts() work, since
| | + 155554 [chneukirchen] +1
| | + 155562 [gavin refine] IMHO, they way it behaves currently is what is broken.
| |   155581 [ news jay.fm] gavin@refinery.com says...
| |   + 155582 [james graypr] Have you considered using Rails's programatic Builder views?
| |   + 155588 [dblack wobbl] I love Rails and I use it quite a lot.  But I like ERB to behave
| |     + 155592 [ news jay.fm] dblack@wobblini.net says...
| |     | 155595 [dblack wobbl] I think you're making too much of this perceived separation between
| |     + 155610 [discordantus] I'm getting the idea that the people on each side of this discussion
| |       + 155617 [dblack wobbl] Yes, that captures the problem exactly.  #{} executes what's in side
| |       | 155642 [discordantus] That's the thing; to those of us who don't see it as just "fancy
| |       | + 155702 [lyndon.samso] Indeed, their are certain efficiencies not having to pre-generate all outpu=
| |       | + 155704 [dblack wobbl] When a method is called in a <%= %> block, that part of the template
| |       + 155639 [twifkak comc] Observant. The JSP way (which is also the Rails way) embraces MVC, and
| |       + 155652 [ news jay.fm] discordantus@gmail.com says...
| + 155561 [gavin refine] At work, our bug filing system has you rate each bug on several
|   + 155570 [twifkak comc] Can you give me an example of when appending to _erbout is necessary or
|   | 155574 [gavin refine] It's never necessary, as %><%=foo%><% is equivalent to _erbout <<
|   | 155579 [twifkak comc] Thanks. #1 seems like a good example. #2 seems a little too contrived -
|   + 155571 [blaumag gmai] I would favor your RCR. I think no code will be broken because of the
|   + 155576 [dblack wobbl] But code isn't normally inserted into a text template.  It's a
+ 155546 [mailinglists] I will vote against this RCR.
+ 156803 [pbrannan atd] <%
  156804 [gavin refine] charset=US-ASCII;
threads.html
top