154284-158635

153969-156744 subjects 154543-155784

Watir, Selenium and other testing tools
154284 [pedroarnal@g] I'm currently searching a web test tool for a project. My main

custom exceptions
154316 [joevandyk@gm] When should you define your own exceptions?  Any rules of thumb?
+ 154318 [joevandyk@gm] class Application
| 154322 [joevandyk@gm] def test_start_bad_application
| 154424 [bob.news@gm ] I'd go with Eric's rule of thumb.  It's not an exact science but you there
+ 154321 [drbrain@se m] I define custom exceptions when I need to differentiate them from the
  154690 [joevandyk@gm] Should the custom exception be in its own class?  Or in a module?
  154691 [joevandyk@gm] raise JoesApplication::BadArgumentsForApplication

Tk Label and instance variables
154325 [bart.massche] Below is a small piece of test code for a label using Tk. I try to set a
154327 [bart.massche] Oh, and of course I could get around with the following, but I would
154398 [nagai@ai ky ] Maybe, that is a FAQ. :-)

SAX-based XPath
154329 [shea@gt de i] I'm posting this in hope of getting some API suggestions.
154427 [bob.news@gm ] It seems you could simplify the interface a bit (or add a method) along

Attributation works in literal class but not in anonymous class?
154331 [transfire@gm] # Creates a method that necessitates overridding.
154333 [dblack@wo bl] ac = Class.new { abstract :q } .new
154335 [transfire@gm] Doh! Thanks.

Please register *soon* -- time is short!
2005 [dblack@wo bl] Thanks for helping us get to 100 people registered.  In fact we're
154338 [josh.charles] I really really want to go, but I got a new job, and don't have any

Fwd: FCKEditor and Rails Walk-through
154339 [josh.charles] I've put together a document explaining how to integrate the open

(none)
154341 [theresa.shen] ...

Question about Inheritance
154343 [candiazoo@ma] I have two simple classes.  One inherits from the other and calls
154345 [cribbsj@oa w] The initialize method in class DBBase is spelled incorrectly.
154347 [candiazoo@ma] Oh for the love of friggin' PETE!  I spent an hour on this!!!!!!!!!!
154354 [vjoel@pa h. ] Just for fun...
154433 [martindemell] You missed 'initialise'! (I remember various ruby-lint projects being
154491 [vjoel@pa h. ] the programmer of being a Queen's English speaker (maybe that's humorous
154494 [vjoel@pa h. ] If any one really wants to use this, then to make sure there are no

MInimal Ruby Distribution with app
154344 [bww00amdahl@] I'm looking for a minimal distribution of Ruby to distribute my app
+ 154350 [alex@de et m] not quite a separate minimal ruby source distribution, but you might
| + 154358 [james_b@ne r] Rubyscript2exe is quite nice.  As an example, a bundled Nitro
| + 154464 [rmt512@gm il] ...
| + 154468 [rampant@gm i] Is there something similar for Mac OS X?
|   + 154472 [james_b@ne r] James
|   + 154538 [nospam@ch vi] Doesn't MacOS X have ruby already bundled in ?
|     154540 [guslist@fr e] Yes it does. But it is broken in Tiger and basically needs to be
|     154549 [rcoder@gm il] This isn't really true -- there are minor configuration problems with
|     154563 [halostatue@g] It will also affect you if you're using PDF::Writer because of
+ 154425 [konstantin.l] for windows, http://exerb.sourceforge.jp/index.en.html worked nicely
  154429 [bouncer@no h] also, the exerb produced executable can be compressed by upx...

mod_ruby -- Problem with Changing from $defout > $stdout
154352 [rubytalk@be ] I'm working on upgrading some Ruby 1.6.x to prepare for a web-server
154454 [rubytalk@be ] I moved this message over to the mod_ruby list. -bdg

[ANN] ruby-co.de: now with more flexible redirection
154359 [usenet@zo db] maybe two or three of you remember [1]ruby-co.de (RC), the free HTTP

Rails Newbie - very simple question
154360 [jzambella@gm] I have two model classes: Book and Author. The books table in my
+ 154412 [dooby@d1 .k ] Joe,
+ 154415 [dave.burt@gm] Author.find(@book.author_id)

[ANN] Nano Methods & Mega Modules
154363 [transfire@gm] A N N O U N C I N G
+ 154366 [ljz@as as .c] This looks great! ... and I'm eager to start using it.  Therefore, I
| 154379 [pascal.guich] ...
+ 154377 [james_b@ne r] Neat.
  154489 [wmorgan-ruby] William Morgan <wmorgan-ruby-talk@masanjin.net>
  154496 [chneukirchen] Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org

win32ole, adsi and computer info
154365 [Daniel.Berge] Ruby 1.8.2
154389 [dave.burt@gm] Your variable, schema, is an IADsClass representing the class of adsi
154403 [caldridge@gm] ...

A (newbie-ish) question about project organization
154368 [Tim.Ferrell@] I am just getting comfortable with ruby, having come over from the Java / .NET
154376 [transfire@gm] If I am not mistaken, setup.rb essentially defines the common sructure
154434 [Tim.Ferrell@] Thanks ... I had not seen that.
154465 [transfire@gm] Not necessarily, but you would have to add the local directory onto the
154469 [Tim.Ferrell@] Aah ... so the local directory is not automatically included? That

Zen Linux
154373 [zenlinux@gm ] ...
+ 154408 [transfire@gm] This is a very interesting project. I see that you currently use Perl.
| 154411 [binary42@gm ] For those unaware, the Heretix home page is at www.h-e-r-e-t-i-x.org
+ 154473 [transfire@gm] BTW are you aware of dpkg-ruby ?
  154480 [zenlinux@gm ] ...

Rogue threads found! The plot thickens.... (was: Re: ThreadPool(was: Re: Thread.list confusion))
154378 [andrew.townl] [lots of really useful feedback deleted]
+ 154544 [drbrain@se m] Yes.  A ThreadGroup doesn't have the GC problem, but would not be
+ 154548 [lyndon.samso] ...
  154578 [vikkous@gm i] I'm with you, brother! What say we write one; we can use dwemthy as a core... ;)

Ruby on Linux & Windows
154380 [Tim.Ferrell@] I'm not trying to start anything here but I'd like some feedback from those of
+ 154385 [rwoliver2@gm] ...
| 154386 [Tim.Ferrell@] Well, I can tell you I miss a real shell on Windows ... cygwin doesn't really do
| + 154387 [rwoliver2@gm] ...
| | + 154402 [Tim.Ferrell@] Well, the main reason for the switch was because the project I had handed to me
| | | 154404 [sy1234@gm il] You could also consider VMware so you can do it all from one chair.
| | | 154417 [rwoliver2@gm] ...
| | | + 154421 [dooby@d1 .k ] Sounds like a problem Hal had.  I may be way off base, though.
| | | + 154422 [ksruby@gm il] I prefer Linux any time of the day (I like MacOSX too), but when I'm
| | + 154456 [falmkcesxal@] "Robert Oliver" <rwoliver2@gmail.com> escreveu na mensagem
| + 154390 [railsinator@] ...
|   154394 [caldridge@gm] ...
|   154520 [greg.kujawa@] There are some minor configuration changes and existing enviormental
|   154523 [Patrick.Benn] The MySQL install was 100% Windows.  There was nothing UNIX-y about it,
|   154537 [wilsonb@gm i] ...
+ 154406 [dave.burt@gm] * No fork(), popen() is dodgy
+ 154453 [halostatue@g] In general, no. I do all of my Ruby development work on Windows and
| 154512 [agemoagemo@y] Can you explain this further? I'm running ZoneAlarm,
| 154516 [halostatue@g] It's easier if you search, because I've never experienced it and I
+ 154557 [karlin.fox@g] (http://gecko.gc.maricopa.edu/~medgar/puttycyg/)

Re: Nano Methods & Mega Modules
154382 [transfire@gm] I'm running 1.8.2 [i386-linux], and it installs fine. So I'm not sure.
154391 [gavin@re in ] Attempting local installation of 'nano'
+ 154393 [dave.burt@gm] "?" isn't allowed in NTFS filenames - you can't have "approx?.rb" on
| 154397 [transfire@gm] That's correct. And in fact esacaping all the file/method names with
+ 154395 [transfire@gm] Ah, both the same problem. A file (approx?) is in the package with a
  154399 [gavin@re in ] Invalid argument - pub/www/doc/files/lib/nano/float/approx?_rb.html
  154401 [transfire@gm] Strange. I wonder where that underscore is coming from? Well, I did an
  + 154405 [gavin@re in ] That got it installing correctly for Windows :)
  | 154410 [transfire@gm] Great! Thanks for letting me know.
  | 154423 [george.mosch] At least this is released :)
  + 154451 [rhkramer@gm ] I should have asked this question on the earlier post where an entity (?
    154474 [transfire@gm] URI codes, so ? -> %3F. % is acceptable, so it should work okay.
    154488 [rhkramer@gm ] Thanks!

RMagick question
154383 [ptkwt@ar cn ] I'm trying to convert several (300) .tif files to .gif files using

Latest info on embedding Ruby in a C++ app
154384 [byrd.timothy] I'm looking for info on calling multiple Ruby scripts from inside a C++
154409 [dooby@d1 .k ] Hope that'll help.
154673 [byrd.timothy] Thanks.  I did look at that, and it gives some answers and raises some

beginners YAML question
154392 [adam.shelly@] ...
154407 [dooby@d1 .k ] Thanks - makes it much easier :-)
154551 [adam.shelly@] ...
154816 [dooby@d1 .k ] In short, @size is an attribute of Box ... but you're
155088 [adam.shelly@] Right.
158635 [dooby@d1 .k ] Hey, Adam!

More elegant replacement for global variables
154416 [invalid@de .] I'm playing around with a ruby app using XML-RPC. Currently I'm using
+ 154419 [dave.burt@gm] Constants are a kind of global variable. Classes get free constants.
+ 154420 [transfire@gm] Avoid globals by using container classes/modules. In your cace you
+ 154428 [bob.news@gm ] Although your scenario is not fully clear to me, I'd have a session

Ruby Weekly News 22nd - 28th August 2005
154430 [timsuth@ih g] Ruby Weekly News 22nd - 28th August 2005

Ruby documentation typo
154435 [behrangsa@gm] I just stumbled upon a typo in the Ruby documentation and thought it
+ 154437 [dblack@wo bl] %w-a b c-
| 154439 [behrangsa@gm] ...
| + 154441 [mailing-list] You can try the examples in the book in the interactive ruby shell, irb.
| + 154455 [james_b@ne r] Welcome to Rubyland!
| + 154487 [gfb@to es ft] It may serve as a guideline for new people -- try finish the book before
+ 154440 [sastph@sa .c] The character following %w can be any "non-alphabetic or non-multibyte

Compiling a Ruby extension
154436 [anieden@gm .] I am trying to manually compile a tiny Ruby extension, but finally run
154438 [steve@bo us ] You can't use mingw to compile your extensions. You need to use the MS
154605 [anieden@gm .] Thanks for answering so quickly!

Intercepting, Resuming Overridden Methods
154442 [gavin@re in ] class Human; end
+ 154443 [bob.news@gm ] I once hacked something together which might help you.  It's here
+ 154818 [dooby@d1 .k ] Shorter (as long as __send__ handles private method calls) ...

Spread binaries for Ruby Windows
154448 [bww00amdahl@] I am looking for Spread binaries for RUBY.
154463 [Ara.T.Howard] what do you mean?  spread for ruby is a shared library extension - is that
154681 [bww00amdahl@] I have installed spread.

Semantics of << and <<-
154457 [chucky@dt k.] I recently joined this list, so please forgive me if this question has
+ 154459 [shortcutter@] My guess would be that it's an omission in the documentation. I don't
| 154460 [shortcutter@] ...
+ 154553 [w_a_x_man@ya] The purpose of quoting the here-document label is to make the

Error with a not useful message.
154462 [pirata@gm il] ...
+ 154466 [bob.news@gm ] Without further looking at this I guess you forgot a closing "end",
+ 154485 [SmartGPX@gm ] Might it be that your Ruby installation does not have the
+ 154503 [joevandyk@gm] Your last 'begin' statement has no 'end' statement.  That's the start

Good code examples
154475 [pierre.barbi] I'm very new to ruby, and I would like to know if there is some
+ 154545 [Ara.T.Howard] i'm doing alot of stuff - mostly little image processing tasks.  can you
| 154550 [barbier@ba b] Dans l'article <Pine.LNX.4.62.0508311529190.29620@harp.ngdc.noaa.gov>,
| 154554 [Ara.T.Howard] great - you'll find ruby a treat then.
| 154596 [barbier@ba b] Dans l'article <Pine.LNX.4.62.0508311740230.29620@harp.ngdc.noaa.gov>,
| 154619 [Ara.T.Howard] these may be helpful, if the sovlers can be used.  there are some good graph
+ 154546 [joevandyk@gm] There should be a lot of code out there on Ruby extensions written in C.
  154568 [dave@bu t. d] Pierre, check out the standard library, which comes with Ruby.
  154595 [barbier@ba b] Dans l'article <RMsRe.18439$FA3.3660@news-server.bigpond.net.au>, Dave

[ANN] Nitro + Og 0.23.0 Scaffolding reloaded, Taggable, Nano/Mega integration...
154478 [george.mosch] New versions of Nitro (Web Application Framework) and Og (Object

[ANN] Nitro Spark 0.5.0 Tagging support
154479 [george.mosch] I am proud to announce a new version of Spark.

building a gallery layout
154498 [codeslave@gm] ...
154499 [gavin@re in ] Are you talking about an HTML table, or some other output/layout
+ 154504 [codeslave@gm] ...
+ 154506 [josh.charles] psuedo code from the top of my head
  154508 [josh.charles] an array-less way to do it
  154521 [codeslave@gm] ...

breakpoint and scite
154500 [bret@pe ti h] I often teach ruby to people and usually use scite to do this. It's quick
+ 154518 [dooby@d1 .k ] Doesn't look good, Bret :(
+ 154558 [florgro@gm i] This is no fix, but could solve your trouble anyway: I'm working a GUI
  + 154569 [dave@bu t. d] Looks great!
  + 154606 [surrender_it] you may become my personal hero with that :)
  + 154617 [martindemell] Looking good!!

how to convert binary array into integer
154507 [sunh11373@ho] for example: 00 00 00 0A => 10
+ 154510 [joevandyk@gm] Have you looked at String#unpack?
| 154513 [zdennis@mk e] "\000\000 A".unpack( "f" ) => 10.0
| 154524 [SimonKroeger] This was a joke, right?
+ 154511 [Ara.T.Howard] p( [0x0, 0x0, 0x0, 0xA].pack('c*').unpack('N').first )

Time (leap year??)
154522 [csjasnoch@wi] Is there a simple way to see if a year is a leap year (rather than
+ 154526 [csjasnoch@wi] I know I could do somethine like this (and it works for future years)
| 154564 [gavin@re in ] "Every year divisible by 4 is a leap year.
+ 154527 [dblack@wo bl] irb(main):023:0> Date.today.leap?
| 154528 [mkelly@el ve] now = DateTime.now
| + 154529 [csjasnoch@wi] Wow that was fast:)
| + 154531 [csjasnoch@wi] Where could I find descriptions of the DateTime class?
|   + 154532 [mkelly@el ve] I usually go here: http://www.ruby-doc.org/stdlib/.
|   + 154534 [levin.alexan] <http://www.ruby-doc.org/core/classes/Date.html>
+ 154530 [khaines@en g] irb(main):001:0> require 'date'
  154533 [csjasnoch@wi] Thanks Kirk. That should get me to where I need.
  154536 [khaines@en g] As you saw, there are more concise ways to do a check for today, but that

[suggestion+code] timed deq for the Queue class?
154525 [andrew.townl] ...

nano & mega
154542 [jeff.darklig] ...
+ 154566 [transfire@gm] The nice thing about Nano is that you can require just the extension
+ 154567 [gavin@re in ] require 'nano' #Same as require 'nano/base', a common set of
+ 154571 [dave@bu t. d] In the API docs at nano.rubyforge.org and mega.rubyforge.org, check out the
| 154590 [jeff.darklig] ...
+ 154572 [transfire@gm] Since Ruby methods can have/be punctuation marks, it is necessary to
  154591 [jeff.darklig] ...
  154592 [dave@bu t. d] You'd have to have a better alternative, and I can't think of one.
  + 154624 [florgro@gm i] Why not? I think I would prefer this over uri escaping. It's also the
  | 154626 [james@gr yp ] Yeah, I have to agree here.  I can translate ! to _bang a lot easier
  | + 154629 [ruby.brian@g] It thought nano tweaks include to do the conversion behind the scenes.
  | + 154631 [gavin@re in ] ...
  |   + 154633 [jeff.darklig] ...
  |   + 154635 [james@gr yp ] You're probably right.
  |   | 154638 [ mfp@ac .o g] $ grep "rb_define_.*\[\]" ~/src/ruby/ruby.head/array.c
  |   + 154658 [dblack@wo bl] Maybe set_at and foo_set or something like that...?
  |     154709 [transfire@gm] While _bang and _equals might be easy to remember, how easy will it be
  |     154755 [florgro@gm i] But I'd rather see this based on meaningful, easy to understand naming
  |     + 154817 [dave@bu t. d] Yes, nice. I was disagreeing until I saw this list, now I figure the task of
  |     | 154821 [gsinclair@gm] P is for "predicate".  It's a Lisp or Scheme thing; can't remember
  |     | 154823 [mailing-list] Common Lisp.  Scheme uses '?'.  Common Lisp isn't 100% consistent,
  |     | 154827 [chneukirchen] <<quote
  |     + 154819 [transfire@gm] While I agree that this is a well thought out transform, I wonder, what
  |     + 154860 [transfire@gm] I've given this some more thought. If I do this, I could enforce a rule
  |       + 154973 [transfire@gm] The change is afoot.
  |       + 155407 [florgro@gm i] Let me give a late okay to this. My mapping was initially for going from
  |         155415 [transfire@gm] Thank you, Florian! And yet your luck perhaps is even better. I decided
  |         156800 [jeff.darklig] ...
  |         156885 [transfire@gm] Except for some additional tests I need to write, the next version of
  + 154625 [jeff.darklig] ...
threads.html
top