190874-192450

190687-193342 subjects 191028-191862

^ class methods and protected instance methods
190874 [ruby anthrop] I would have thought that a class method context would be able to call
191376 [phurley gmai] This is what is expected. Ruby is not C++/Java and its object model is

^ traversal of a tree + block code
190895 [gibson_andre] I want to be able to traverse a tree and for each node perform some
+ 190899 [vjoel path.b] Instead of...
+ 190901 [james graypr] depthFirstTraversal(child, &block)
+ 190911 [gibson_andre] def self.depthFirstTraversal(parent , &block)
  190930 [kiaroskuro g] that's block.call(child), no?

^ [ANN] Radius 0.0.1 -- Powerful Tag-Based Templates
190907 [ng johnwlong] I am pleased to announce the immediate release of Radius 0.5.0.
190947 [psyonic gmai] If this is release 0.5.0, then why does the subject line say 0.0.1? was thi=

^ ODBC Database Connectivity
190914 [nospam hotma] I am having such hard time to connect to a ODBC data source. (Windows
+ 190915 [mcl andsofor] Really? I've never had a problem, using MySQL, MS Access, MS SQLServer, Oracle, and others...
+ 190917 [leavengood g] That is quite laughable actually. I suppose you have not heard of Ruby
+ 190966 [stuart footw] What Database is giving you trouble?  (Currently I have a Ruby (non
+ 190990 [allen74br gm] I'm using Ruby DBI module with the ODBC package in windows. The best way

^ [ANN] Radiant CMS
190918 [ng johnwlong] I am pleased to announce that Radiant CMS is now publically available
+ 190938 [dave burt.id] I'm not sure this metaphor is all that friendly to the fledgling CMS!
| 190943 [ng johnwlong] Sigh.
+ 190942 [psyonic gmai] I'll give this a try on my homepage, but I wasn't able to find out if rails
  190944 [ng johnwlong] It ships with Rails 1.1.

^ [ANN] Net::LDAP 0.0.1
190921 [garbagecat10] We're pleased to announce the first release of Net::LDAP, the first
+ 190923 [wilsonb gmai] Thank you thank you thank you thank you.
| 190924 [garbagecat10] Started working on this about two weeks ago. Spent about a week working on
| 190925 [wilsonb gmai] You are the man.  This blows what Python and Perl have out of the
| 190928 [garbagecat10] Well, light it up, give it a try, and tell me what you think should be
| 190941 [runner berke] Greetings,
| + 190945 [garbagecat10] This package is a pure Ruby implementation, with no dependencies on native
| + 190946 [wilsonb gmai] The existing one is a C extension, and up until very recently did not
|   190970 [botp delmont] # I'm especially interested in any problems people may have with Active
|   190979 [garbagecat10] You should be able to use the code sample in the Net::LDAP Rdoc. See
+ 190977 [sroberts uni] I would use an ldap server if it was toolkit for dynamic resolution of
  190980 [garbagecat10] Yes, that's precisely the plan: the point of writing an LDAP server in Ruby

^ Restricting view to source code with RDOC?
190922 [ruby philip.] I'd like to generate some docuementation using RDOC, but don't want any of
+ 190965 [dave burt.id] Use the --inline-source switch, and use a stylesheet modified with
+ 191007 [ruby philip.] Turns out I was.  Naturally after asking I find it :)  Buried deep in
  191010 [dave burt.id] You're not going to add a --no-source switch to rdoc and share the patch?
  191025 [ruby philip.] Sorry, I wasn't clear.  html.rb is just a template (ie. --template) ... in
  191057 [leavengood g] I think Dave's point was that it is still ruby code which I imagine

^ Re: [ANN] Radius 0.5.0 -- Powerful Tag-Based Templates
190952 [ng johnwlong] Yah, sorry. Copy error. The correct version is 0.5.0.

^ "All-in-one" archives library?
190953 [vshepelev im] I'd like to see some library which handles most popular archive types (zip,
+ 190968 [halostatue g] Can you drop me an email with what you'd really like to see? TRUG isworking on libarchive this weekend at a hackathon.
+ 190982 [aglarond gma] At the moment, there's archive-tar-external, which basically wraps calls to

^ Syntax highlighting library
190964 [vshepelev im] Does some good subj exists?
190988 [aglarond gma] Try Syntax <http://rubyforge.org/projects/syntax> or
191016 [ara.t.howard] this simple script will convert any src file, including fortran, c++, java,
191096 [vshepelev im] Unfortunally, they noth have very poor base of ready language files and

^ Just need a clue
190967 [nospam hotma] I want to replace some DOS batch scripts with Ruby scripts.
+ 190969 [logancapaldo] system("some.exe")
+ 190975 [jesusrubsyou] "Executes cmd in a subshell, returning true if the command was found and

^ Find the 3 newest rows in the database
190972 [davidsmit gm] I have an Adverts table with a created_at column. I would like to get
+ 190973 [has.sox gmai] use SQL of
+ 190974 [pergesu gmai] Advert.find(:all, :order => "created_at DESC", :limit => 3)
+ 190976 [jesusrubsyou] This depends on what you're using, but it's a relatively simple SQL
  190978 [davidsmit gm] ActiveRecord
  190981 [cardologist ] find(:all, :limit => 3, :order => 'created_at DESC')

^ Calling a block with some context.
190985 [benjohn fysh] I would like to be able to call a block / proc / lambda with the current
190996 [rossrt rosco] This is something that's been discussed quite a bit I think, with the

^ Ruby fails to parse wsdl
190989 [simon widgit] I posted this to ruby-talk but I got no reply, so I'm posting here.
190991 [rmagick gmai] Posted via http://www.ruby-forum.com/.

^ New Ruby Mirror, Germany, Europe
190994 [ts ambiweb.d] Dear Ruby-Lang Team,

^ Unit test setup
190995 [eustaquioran] I noticed that when using unit testing the setup and destroy methods
+ 191027 [drbrain segm] There isn't.  You don't need it and you don't want it.
| + 191056 [johnwilger g] class TestTheTestsTest < Test::Unit::TestCase      def initialize( *args )        super        @foo = :bar      end
| | + 191067 [drbrain segm] Eww, yuck.
| | | 191086 [johnwilger g] I didn't say it was pretty, just that it was possible. "Can't" and"shouldn't" are two different things, after all. (Of course, Stefanopointed out that I'm wrong about it being possible, too -- so maybethe only thing I've proven is that I'm good at talking out of my ass!:-D)
| | + 191083 [taschini.mli] Actually, a test case object is created for each test_something method
| | | 191084 [johnwilger g] Interesting. I wasn't aware of that. I guess that should at least earnme some points with Eric, as it should now be apparent that I've never_actually_ relied on the method I described earlier. ;-)
| | + 191353 [taschini.mli] You are absolutely right. In fact, this is exactly how it is done in
| |   191400 [johnwilger g] Then again, Eric's point holds true here as well. My biggest complaintwith Rails is that you can't truly _unit_ test your model classes. Notonly is it necessary to have a database connection, but it's also verydifficult to inject mocks in place of the other model classes that theclass under test is interacting with. In a better design, you wouldn't_need_ transactional fixtures, because you wouldn't be talking to areal database connection at all. This is one reason why I wasdisappointed that Jamis Buck's ideas for using dependency injection inRails never made it into the framework. Ruby itself doesn't really_need_ dependency injection, but I think it would have improved thisaspect of the Rails framework.
| + 191200 [eustaquioran] You can't be so sure about that all over the time. ;-)
|   191212 [drbrain segm] You're mixing up responses among different people here, and that is
|   191221 [eustaquioran] Sorry if you didn't like that. I was just trying to be shorter on the
+ 191113 [taschini.mli] The easiest way to achieve a "global" test setup is by invoking

^ urug/utahvalley.rb hacking night tonight
190997 [pat.eyler gm] the utahvalley.rb will be hackig tonight starting at 7PM in the
191021 [devlin.daley] That's in 2204 of the Talmage Math and Computer Science Building.
191024 [pat.eyler gm] *sigh*, well, yeah, but think of the fun we'll have descending on the

^ How to get a new instance of a class given a String
190998 [digidigo gma] Hey,
+ 190999 [dharple gene] up = Object.const_get(class_name).new
| 191003 [gm.vlkv gmai] 543> cat tClassByName.rb
| 191005 [digidigo gma] Thanks so much that has me going again.
+ 191002 [gene.tani gm] yah, itps powerpoint, but worth it to go find a win32 machine

^ Sharp knives and glue
191000 [leslieviljoe] I have a friend that works in PHP all day and enjoys the language quite a
+ 191001 [kiaroskuro g] uhm.. I have never used it in teams, but unit tests would be paramount.
| 191035 [leslieviljoe] Truly you are correct, unit tests would be great for a team. Although they
| 191047 [leslieviljoe] Hmmm, I see also from other posts that $VERBOSE=3Dtrue will report when
| 191066 [masukomi gma] having worked in perl and php and Java i have to say that when you're
| 191078 [pollak gmail] Yep... unit tests help, but don't cure everything.  Design by Contract puts
| + 191110 [znmeb cesmai] Yeah, but ...
| | 191140 [pollak gmail] Ed,
| + 191111 [garbagecat10] I broadly agree with most of this, inlcuding your rants on stability. But
|   + 191121 [leslieviljoe] Thanks for the reply!
|   | + 191136 [garbagecat10] I like pair programming a lot. But for every time I've seen it work, I've
|   | + 191154 [pollak gmail] I am a fan of agile programming, but it has its places.
|   |   191171 [masukomi gma] Just want to point out that a secondary issue has been introduced to this
|   |   + 191175 [garbagecat10] In all candor, I wouldn't want to hand an undisciplined or poor-quality
|   |   + 191176 [pollak gmail] I am a very, very good programmer.  I've written more than a dozen
|   |   | + 191180 [james graypr] Do you use unit tests?
|   |   | | 191188 [pollak gmail] Yes.  And they work just fine for small project, but the cross-product of
|   |   | | + 191193 [leavengood g] But of course in the Java world there are never any incompatibilities
|   |   | | | 191203 [pollak gmail] Ryan,
|   |   | | | 191204 [r.mark.volkm] What support for namespaces would you like to see beyond the current
|   |   | | | 191205 [gregory.t.br] selector namespace will help in the future...
|   |   | | + 191202 [james graypr] On the flip side, the version of Instiki I have has trouble with the
|   |   | | + 191241 [jmg3000 gmai] I'm fairly new to Ruby. Do you think a ruby option, maybe something like
|   |   | | + 191256 [masukomi gma] All the things you mention unit tests not handling James? That's where
|   |   | | | 191257 [pollak gmail] Kate,
|   |   | | | + 191270 [khaines enig] You keep using this an an example of a Ruby problem.  It's not a Ruby problem.
|   |   | | | + 191271 [masukomi gma] I have to disagree David. In my opinion this is just a case where a
|   |   | | |   + 191278 [pollak gmail] Kate,
|   |   | | |   | + 191284 [james graypr] David, aren't you a bit new here to be making friends this badly
|   |   | | |   | | + 191290 [lukfugl gmai] $ cat foo.rb
|   |   | | |   | | | 191301 [james graypr] Luckily, Ruby does warn me there is a problem, as long as I use
|   |   | | |   | | + 191295 [ilmari.heikk] class B;  def b    A.new.a + 25  endend
|   |   | | |   | + 191345 [rossrt rosco] (I was keeping out of this thread, but...)
|   |   | | |   |   + 191354 [flori nixe.p] www.apa.org/journals/features/psp7761121.pdf
|   |   | | |   |   + 191360 [pollak gmail] Ruby is fine for the existing Rubyists who are willing to live with the
|   |   | | |   |     + 191365 [james graypr] I'm pretty sure DHH has claimed publicly that he didn't think we was
|   |   | | |   |     | 191389 [leslieviljoe] But whether he claimed it or not I think we can all agree he's pretty good!
|   |   | | |   |     + 191386 [tanner.burso] The majority of your argument seems to center around the fact that poorly
|   |   | | |   |     | 191392 [jake.mcarthu] I was doing a good job staying out of this thread, but no more. I
|   |   | | |   |     + 191393 [masukomi gma] Perl doesn't seem to have catered particularly much to enterprise users ...
|   |   | | |   |     + 191395 [bmoelk brain] the
|   |   | | |   |     | 191628 [znmeb cesmai] "Testing can only show the *presence* of bugs, not their absence." E.W.
|   |   | | |   |     + 191402 [agorilla gma] Emphasis added.
|   |   | | |   |       191431 [louis.j.scor] I think the problem is in the expectations.  Why would you expect that
|   |   | | |   |       191447 [pergesu gmai] I'm pretty sure the problem is that you *don't* get rapped for
|   |   | | |   |       191453 [billk cts.co] Should we start by closing the String class, then?  :)
|   |   | | |   |       + 191454 [pergesu gmai] Personally, I have no use for closing a class.  If I were to write an
|   |   | | |   |       | 191459 [james_b neur] Right.  And in those cases it may make sense to use a different
|   |   | | |   |       | 191461 [khaines enig] Just as a data point, while what I produce are not large team, high dollar,
|   |   | | |   |       | 191485 [leslieviljoe] How big is your team? Do you use any XP methodologies, or would you give
|   |   | | |   |       | + 191496 [has.sox gmai] I don't really want to get into this discussion too much.  I'm too new to
|   |   | | |   |       | | 191510 [pollak gmail] Dan,
|   |   | | |   |       | | + 191514 [znmeb cesmai] I think this is exactly the *right* place to discuss this issue!!
|   |   | | |   |       | | | 191521 [rasputnik gm] Having skimmed over the thread, I get a taste of
|   |   | | |   |       | | | 191525 [rasputnik gm] - especially the phrase
|   |   | | |   |       | | | 191538 [leavengood g] As I have matured, I've become more and more convinced how much louder
|   |   | | |   |       | | | 191621 [pollak gmail] Ryan,
|   |   | | |   |       | | | 191645 [leavengood g] Cool, this sounds like a plan David. This was exactly what I wanted my
|   |   | | |   |       | | | + 191660 [alex blackke] $ cat freeze-core.rb
|   |   | | |   |       | | | | + 191669 [has.sox gmai] Would this still allow extensions to an instance?  This should still be
|   |   | | |   |       | | | | + 191670 [ mfp acm.org] =======================
|   |   | | |   |       | | | | + 191673 [leslieviljoe] I don't want any of my classes frozen. Say I want all string objects
|   |   | | |   |       | | | |   + 191674 [rasputnik gm] But then you've tampered with the very fabric of reality (HPL would be
|   |   | | |   |       | | | |   | 191693 [leslieviljoe] Yes... and if I have 50 functions that need curlify? How would I add
|   |   | | |   |       | | | |   | 191712 [logancapaldo] I've been thinking about this recently.
|   |   | | |   |       | | | |   | 191719 [leslieviljoe] Awesome! Problem easily solved, as usual.
|   |   | | |   |       | | | |   + 191682 [lukfugl gmai] This is already the way it is done. No libraries are loaded until
|   |   | | |   |       | | | |     191697 [leslieviljoe] which may give a clue to the problem, but I don't understand it.
|   |   | | |   |       | | | |     191698 [leslieviljoe] hmm, I remember asking for ruby gems to be enabled when I installed. I
|   |   | | |   |       | | | |     191713 [lukfugl gmai] It's very possible. I know from experience with other questions on
|   |   | | |   |       | | | + 192400 [rob motionpa] Re-opening classes is one of the things that makes ruby great. We
|   |   | | |   |       | | |   192401 [jmg3000 gmai] Not to take any sides, but I think I've heard the argument go: if
|   |   | | |   |       | | |   + 192403 [steve.debaun] Having not experienced large-scale development farms firsthand, wouldn't
|   |   | | |   |       | | |   + 192406 [rob motionpa] Then they just need run 'svn ann' or equivalent for whatever RCS they
|   |   | | |   |       | | |   + 192409 [leavengood g] Oh come on now, if that company is using Ruby they will be using unit
|   |   | | |   |       | | |     + 192438 [jmg3000 gmai] Point well taken.
|   |   | | |   |       | | |     + 192450 [gregory.t.br] +1 for the most part.
|   |   | | |   |       | | + 191515 [james graypr] I apologize if you feel I was "trolling" you.  I didn't mean to come
|   |   | | |   |       | | + 191569 [jake.mcarthu] No no no. Don't do that. I don't think anybody accused you of
|   |   | | |   |       | + 191535 [khaines enig] Two people, currently, who are geographically separated.
|   |   | | |   |       + 191455 [wilsonb gmai] irb(main):001:0> class String
|   |   | | |   + 191282 [leslieviljoe] Hopefully without interrupting quite an interesting discussion -
|   |   | | |     191476 [znmeb cesmai] Well ... I had a hard time accepting that I couldn't choose the language
|   |   | | + 191396 [miken700 yah] Isn't this the case with any language? As I see it this is not a
|   |   | + 191186 [gregory.t.br] Commercial software is not necessarily the benchmark of *good*.  This
|   |   | + 191254 [masukomi gma] I don't see your post as going off on me at all. I think you're making
|   |   |   191261 [pollak gmail] Kate,
|   |   + 191189 [ruby anthrop] } Just want to point out that a secondary issue has been introduced to this
|   + 191152 [pollak gmail] Francis,
+ 191004 [dharple gene] I wonder why Rails doesn't put your app in it's own top-level module
| 191045 [leslieviljoe] I still don't understand how it happened. AFAIR it was my model object,
+ 191040 [florgro gmai] In Java even good programmers have hard time writing concise, readable
+ 191346 [joost zeekat] I must say that this worries me too, sometimes, since I have been bitten by

^ Calling Shell Scripts from Ruby ?
191006 [u_dinesh yah] I have two questions
+ 191008 [collinsj sea] 1 & 2) Use `test.sh` (or system("test.sh") if you do NOT want the output)
| 191009 [Gennady.Byst] Shell scripts fall into "any Unix command" category, so keep on reading.
+ 191012 [jmg3000 gmai] system( "/path/to/test.sh" )
+ 191013 [edder tkwspi] 1 and 2. I always use
| 191105 [u_dinesh yah] Thanks for your reply.  When you say output = `Unix command`, i did not
| + 191106 [curi curi.us] type this in irb: x = `ls`
| + 191112 [foobar hotma] 2) cmd_result = `ls`
|   191117 [u_dinesh yah] Thank for the reply. But my requirement is that i have to call the shell
|   + 191120 [ljz asfast.c] I'm sure that Shev assumed that you would test using the irb commands,
|   | 191123 [kevin.jackso] This is an example of a post to a mailing list that I wish I could 'mod
|   + 191132 [edder tkwspi] Thx shev for being more verbose, that was what I was hinting at. At
+ 191137 [edder tkwspi] Just a heads up that if you only follow the ruby-forum you have missed
  191148 [u.dinesh.u g] Thank you for all your replies. I will try it out today using the `` in
  191168 [collinsj sea] and

^ [ADV] Second Edition of Agile Web Development with Rails
191011 [dave pragpro] ANNOUNCING AGILE WEB DEVELOPMENT WITH RAILS, SECOND EDITION
+ 191020 [gdonald gmai] No love for us first edition buyers, pre- April 1st ?
| + 191022 [phil hagelb.] The last page of the 1st edition paper book says that you can purchase
| + 191026 [peter no-non] Yeah that would be nice. Never bought a book that was outdated within a
|   + 191029 [phurley gmai] I understand that there is no reasonable expectation for a discount
|   | 191032 [pergesu gmai] I own The Pragmatic Programmer, Programming Ruby, AWDWR #1, Rails
|   + 191038 [dave pragpro] Well, to be fair, it wasn't us that outdated it, but the changes to
|     191042 [charlie cast] I will definitely buy the new edition.  It would be nice to offer a
+ 191031 [james_b neur] What's the latest PDF version available for people who bought the first
+ 191480 [znmeb cesmai] I just purchased it ... PDF only ... and I'm impressed. I have a
  191622 [dave pragpro] ...

^ Mixin Syntax for Newbies
191014 [nathan.olber] I'm trying to start using mixins and I'm having a little syntactual
+ 191015 [logancapaldo] First of all when you say
+ 191017 [toalett gmai] One.instance_variable_get "@one"
| 191023 [nathan.olber] Okay, that makes sense. In that case, is it possible to have instance
| 191033 [toalett gmai] module One
| 191034 [toalett gmai] class Two
| 191060 [nathan.olber] Is there a way to do this without having to re-initialize variables in
| 191069 [logancapaldo] This question is confusing me. Are you looking for class variables or
+ 191018 [james graypr] => nil
+ 191019 [dave burt.id] module One
| 191197 [nathan.olber] That might work... I theoretically have to define each variable as a
| 191198 [nathan.olber] Better yet, should I be trying to use superclasses for this?
| 191225 [polypus yaho] maybe, i don't think there are any hard and fast rules for deciding when
| 191233 [nathan.olber] I'm not confused. Confusion would suggest I have some flawed knowledge,
| 191258 [polypus yaho] something like?
| 191259 [nathan.olber] Exactly like that :-) I got way too sidetracked by the idea of modules.
+ 191302 [pergesu gmai] Hey Nathan,
threads.html
top