173741-175075

173533-370393 subjects 173909-178505

26th December 2005 - 1st January 2006
173741 [timsuth@ih g] Ruby Weekly News 26th December 2005 - 1st January 2006
173768 [james@gr yp ] Uh, Tim...  I said that in February of 2005 about last year's
173847 [tim.sutherla] Oh dear.
173858 [leavengood@g] No wonder I was so confused, because I read ruby-talk over the

Ruby Weekly News 26th December 2005 - 1st January 2006
173742 [timsuth@ih g] [Now with correct thread name. Was missing the "Ruby Weekly News " prefix.]

sort_by{rand} doesn't shuffle array
173745 [pergesu@gm i] I did some searching on how to shuffle an array, and found
173748 [ mfp@ac .o g] @my_array = @my_array.sort_by{rand}
173750 [twifkak@co c] or      @my_array.sort_by! { rand }
+ 173752 [sylvain.joye] Except that sort_by! does not exist ;-) (at least not in 1.8.4)
+ 173754 [ mfp@ac .o g] RUBY_RELEASE_DATE                                  # => "2005-12-24"
  173757 [twifkak@co c] 3.times { Hand.smack!(Head) }

How to learn 'the ruby way'
173753 [rubytalk@sp ] I follow this list for some time but due to the volume I might have
+ 173759 [twifkak@co c] I'm thinking the best way to do that is by posting examples (short,
| 174272 [rubytalk@sp ] The problem here is how to find the useful example. If I don't know that
+ 173773 [dblack@wo bl] For me, part of the Ruby way is to skip the second of those three
+ 173828 [RevMike@gm i] I'm also a java programmer who is learning Ruby.  So far I installed the
  173986 [twifkak@co c] +1
  174010 [stijndesaege] wow, "the ruby way" may just have gotten ruby's equivalent of
  174011 [bob.news@gm ] In the sense of the programming language or in the sense of the famous

Help on I/O pipe
173761 [sky.yin@gm i] ...
+ 173775 [ysantoso-rub] Unlikely. HD does not have a limitation on number of writes like CD-RW
+ 173779 [ara.t.howard] assuming that your analysis code can read it's input sequentially you might
  173907 [sky.yin@gm i] ...
  173910 [ara.t.howard] session is not going to work under win32.  you'll need to do something like
  173962 [sky.yin@gm i] ...

could someone explain this CGI problem ?
173765 [lars.gersman] the following code sequence
+ 173769 [dblack@wo bl] 1..3.times is being parsed as:  1..(3.times).  Since times returns its
| 173794 [lars.gersman] thanks - this was the hint i needed !
+ 173772 [clr9.randomu] This is, because the 1..3..... statement returns "1..3" and this is

Understanding the fundamentals, methods. (from Pickaxe book)
173774 [info@ja eo a] Hey chaps,
174019 [kero@ch ll .] try

[OT] Re: [ANN] Toronto Ruby User Group meeting Sun 8 Jan 2005
173776 [hutch@re ur ] Good call! Annex 'south'... Grace and Harbord. I've been going by
173778 [halostatue@g] I think they leave me alone because they know that the main laptop I
173959 [sy1234@gm il] Yeah, if you boot off a linux livecd you can't even turn the screen!  ;)

Ruby projects and interfaces to revision control systems (Darcs vs. Cogito)
173777 [alang@cr no ] Our company, which is beginning to use Ruby in production systems, has
+ 173783 [znmeb@ce ma ] I just took a brief look at the Darcs web site and the Cogito web site.
| + 173787 [james@gr yp ] RubyForge now offers Subversion as well, so another excuse not to
| + 173789 [alang@cr no ] * "Plain" CVS lacks more advanced functionality and doesn't appear to
| | + 173792 [alang@cr no ] Err, make that 'SVN'.
| | + 173793 [perrin@ap th] My understanding is that git is an implementation of a very thin slice
| | + 173807 [mental@ry ia] It's lunch time, so here are my own (very opinionated) thoughts on
| | | + 173852 [meta@po ox c] connectivity to your CVS server. Not a good idea for large teams,
| | | | 174304 [jeffrey.dik@] 2005 seems to have been a really good year for open-source SCMs.  Many
| | | | + 174455 [eeklund@gm i] Note that for really large projects, Subversion (AFAIK) lack
| | | | | 174456 [perrin@ap th] That's why we have svk -- svn for large distributed projects.
| | | | + 174550 [fugalh@gm il] Let me join the chorus of darcs evangelists. About a year ago, I think,
| | | |   174563 [jimfreeze@gm] Can an svn expert comment here? I thought the same was doable in svn.
| | | |   + 174566 [ryansobol@gm] ~ ryan ~
| | | |   + 174589 [neoneye@gm i] One unfortunatly not do offline commits with svn..  darcs allows this (afaik).
| | | |     + 174594 [anatol.pomoz] ...
| | | |     + 174599 [demmer12@fa ] I'm no svn expert, but I know a little about this topic. While svn
| | | + 174168 [ruby-ml@ma i] You missed Mercurial (hg), actually a fairly good one.
| | |   174223 [perrin@ap th] On the other hand, I know people who treat XML as a binary format
| | + 173836 [hynek@us ne ] Here's missing one important point: While SVN ist generally much
| |   173838 [tom@in oe he] Yup, I've heard that too.  All RubyForge svn backends are using fsfs; I
| |   174038 [chneukirchen] Bah, you can just admit you wanted to avoid all that library trouble! *g*
| |   174057 [tom@in oe he] So true!  I did have a bit of a struggle with getting SWIG to the right
| + 173790 [tom@in oe he] Yup, we support both Subversion and CVS now, and folks seem to be
| + 173813 [rosco@ro co ] Git looks actually pretty cool, though it's not really a full SCM, but
+ 173802 [hutch@re ur ] This is tough (I'm going through this process myself right now).
  173810 [alang@cr no ] There's a shall-not-be-named open source PHP-based project that we're

More on the fundamentals...
173781 [info@ja eo a] Please have a look at the comments below to see that I'm understanding things correctly;
+ 173785 [dblack@wo bl] There's no method called name.
+ 173786 [M.B.Smillie@] You've made a couple of fundamental mistakes regarding how methods
+ 173940 [info@ja eo a] In this line of code can anyone tell me why "food" is a method? I thought that they are preceded by a dot.
  + 173963 [ysantoso-rub] It is not a method, it's a variable, very possibly a block-local one.
  + 174087 [mental@ry ia] Within the context of the block, "food" is a variable.  "eat",

mouse coordinates in a gnome2 canvas
173784 [kibleur.chri] I want to show the mouse coordinates inside a label in a gnome2
173825 [joevandyk@gm] require 'gnomecanvas2'
173839 [kibleur.chri] Thanks Joe,

[OT] - Requesting Comments for Process Definition and Presentation
173791 [ilias@la ar ] comp.lang.python / comp.lang.ruby
+ 173798 [claudio.gron] What is the goal of your posting and the intended purpose of
| 173823 [ilias@la ar ] a) to retrieve feedback subjecting the website in general
| 174489 [xavier.morel] This is a lie, and you know it.
| + 174497 [slitt@ea th ] Take it easy. The man asked for feedback on his website, not a critique of his
| | + 174512 [rosco@ro co ] I wasn't going to from say anything, but I have to admit that the site in
| | + 174527 [chneukirchen] [ ]  You know I***s.
| | + 174529 [perrin@ap th] The first thing I thought when I read a couple of his emails was "Is
| |   174538 [alang@cr no ] Whether it's "spam" or not may be up to the individual.  Browse the
| |   175069 [ilias@la ar ] [note to readers]
| + 174500 [james@gr yp ] James Edward Gray II
| | 174503 [james_b@ne r] My spam/bozo filters have apparently been exposed to Kryptonite; I had
| | 175073 [ilias@la ar ] "We love clients that take their website or application as serious as we
| + 174511 [lukfugl@gm i] <Harsh critique snipped>
| | 175075 [ilias@la ar ] thank you for your message.
| + 174684 [ilias@la ar ] [...] - (off topic comments)
+ 174996 [ilias@la ar ] Based on the summary of the feedback so far, I've focused on one page -

Re: Ruby projects and interfaces to revision control systems
173797 [keltia@gm il] Please don't limit yourself to just Darcs and SVN/CVS.  Consider your
+ 173799 [khaines@en g] I'm just a fledgling user, slowly converting my projects to use Mercurial, but
| 173891 [zoso@fo on e] , but=20
| 173995 [keltia@gm il] It has not been tested as much as Mercurial, still lacks some important
+ 173800 [alang@cr no ] Ah, yet another option to explore :)
+ 173966 [znmeb@ce ma ] IIRC the Xen project (virtualizer) uses Mercurial, so they would be a
  + 173974 [james@gr yp ] Can't speak for "everyone", but I use SVN daily straight from the
  | + 173975 [perrin@ap th] Ditto that.  The day-to-day uses of svn are quite simple enough to use
  | + 173982 [gregory.t.br] Same here.  Then again, I also use elinks to view the web a lot of the time. ;)
  + 173996 [keltia@gm il] Trac has now an unofficial Mercurial plug-in so... :-)

[ANN] Family Connection 0.9
173832 [duane.johnso] ...
+ 173849 [steve@wa ts ] Very cool Duane!
| + 173859 [jubishop@gm ] ...
| | 173873 [ezmobius@gm ] Duane-
| | 173878 [duane.johnso] Awesome!  Glad you're enjoying it, Ezra.  As some have requested,
| + 173860 [belorion@gm ] ...
+ 173973 [ara.t.howard] what's the best way to bootstrap the db?  i've got the db configured alright
| 173978 [steve@wa ts ] I did `rake db_schema_import` (or whatever that poorly named task is
| 173980 [ara.t.howard] rake db_schema_import did it.  thanks.
+ 173981 [benhiller@gm] I took a screenshot. I was gonna blur out my last name, and then I

Re: - Requesting Comments for Process Definition and Presentation
173833 [simonharriso] "Status
173851 [ilias@la ar ] I've documented everything very clear...
173886 [grflanagan@y] I like the overall style of your site - clean layout, good colour
174040 [ilias@la ar ] thanks.

DSL help?
173837 [ezmobius@gm ] Hey rubyists-
+ 173845 [surrender_it] look on RAA for the "Criteria" package, you may find it interesting and
| + 173872 [ezmobius@gm ] Gabriele-
| + 173890 [sera@fh an .] Or Lafcadio ( http://rubyforge.org/projects/lafcadio/ ) which
+ 173865 [rcoder@gm il] Below is just my 20-minute version -- consider it a source of ideas for
  173871 [ezmobius@gm ] Thanks rcoder-

XML pretty printing?
173841 [christopher.] Is there something in Ruby that will make XML look nice on STDOUT?
+ 173854 [ara.t.howard] puts doc.pretty
| 173869 [christopher.] the "pretty" method comes from where?
+ 173855 [james_b@ne r] REXML has a options for printing with nice indentation.

mod_ruby
173848 [fakeeemail10] I am running FreeBSD on my server, I have Apache 1.3.33 running. I have
+ 173883 [collinsj@se ] You probably need to set httpd.conf to associate the execution of .rbx
| 173893 [ruby-talk@wh] chmod 755 test.rbx
+ 173896 [kashia.buch@] You might want to check in your filesystem, if that file is readable and

Event framework?
173850 [mrt@th ma zo] I dabble in home automation and am looking for a framework that would
+ 173861 [bob.news@gm ] IIRC there was a discussion about this recently.  You might find it by
| 173877 [mrt@th ma zo] - Ruby/Event is now dead.
+ 174012 [raims@do .c ] If you don't complain about the language Python community has Twisted Matrix
  174080 [mrt@th ma zo] Yes, I considered Twisted. But it evidently has a VERY steep learning
  174093 [gene.tani@gm] There's another wa;y to register callbacks etc which i haven't tried

Adding an Observer to Test::Unit::TestResult
173863 [gary.mccants] Can anyone share with me on how you would subscribe

Using Tk or Fox with a ruby interpreter embedded in a C application
173868 [ivan.muzzoli] in C. I compile the C code with the freely downloadable version of the
173971 [gmurray@cl u] The load path variable is empty when running embedded.

[ANN] KirbyBase 2.5.2
173870 [cribbsj@oa w] I would like to announce the release of version 2.5.2 of KirbyBase, a

Mailing list question
173880 [joevandyk@gm] I'd like to not receive the email that I send to the list (gmail
+ 173884 [lyle.johnson] Can you not just set up a Gmail filter on e-mails from
| + 173887 [joevandyk@gm] Oh, yeah, probably.  *blinks dumbly*
| + 173900 [gregory.t.br] This works but keep in mind it'll trash your message as soon as you send it.
+ 173889 [james_b@ne r] Tell GMail not to show you the copy?
| 173899 [joevandyk@gm] I was hoping there was some option (like on the Rails mailing list)
+ 173903 [rosco@ro co ] Oops, disregard my silly suggestion. *sorry*
+ 173904 [rosco@ro co ] skip

New to Ruby needs help
173888 [smankan@ue d] Dear Gurus,

[ANN] Instant Rails 1.0 Release Candidate 1
173892 [curt.hibbs@g] ...
174043 [chneukirchen] I just noticed this, very cool. :-)

silly regex question
173897 [joevandyk@gm] Can someone help me make this code not suck?
+ 173901 [james@gr yp ] I guess it depends on what you mean by that...
| 173902 [joevandyk@gm] IMO, my version's more readable.  I'm going for readability here.
| 173905 [james@gr yp ] def process_string str
| + 173914 [joevandyk@gm] Another silly regex question.
| | + 173918 [wilsonb@gm i] You can put the 'x' option on the end of the regular expression.
| | | 173922 [joevandyk@gm] ah, nice.  Too bad vim doesn't highlight the comments.  :(
| | | 173939 [perrin@ap th] Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ]
| | + 173919 [dan@da ko n.] Here's a rails example for validating email addresses.
| + 173938 [perrin@ap th] Not that I'm the one that has to read it, but . . .
+ 173983 [twifkak@co c] def process_string str

[QUIZ] Proposed new rule
173898 [warrenbrown@] Please flag all submissions and discussions of quizzes by starting the
173912 [james@gr yp ] I'm fine with "recommending" this as long as everyone realizes that's
+ 173928 [demmer12@fa ] I like this proposal, and I like implementing it as a "recommendation."
| 173930 [jubishop@gm ] I agree. using [SOLUTION] by itself makes sense.
| 174179 [ljz@as as .c] ... and then we can have [ANSWER] for the responses, not to mention
| + 174183 [jubishop@gm ] We already have a few established tags which people DO use and nobody
| | 174204 [james_b@ne r] I expect that a general community consensus will determine what get
| | 174232 [perrin@ap th] True, that . . . it's sort of a "critical mass consensus" thing that
| + 174231 [perrin@ap th] . . . or we could use [OT] for that, too, but it's a *different* [OT]
|   174264 [rosco@ro co ] [^OT] ?
|   + 174267 [perrin@ap th] . . . or [!OT].
|   + 174271 [billk@ct .c ] Excellent!  What a savings!  =D
+ 173932 [steve@wa ts ] It's already threaded quite nicely.  I can recall one instance, in Quiz
| + 174023 [kero@ch ll .] Full ack to all points, Stephen.
| + 174140 [james@gr yp ] I just finished a hunt back through the last several quizzes and they
+ 173936 [rosco@ro co ] I still read via the newsgroup, and I'd be sad to see the Quiz go
| 173941 [ezmobius@gm ] +1
+ 173942 [perrin@ap th] I think prefacing subject lines with [QUIZ] makes good sense, and it can
+ 173956 [ryansobol@gm] Why does it have to be a rule at all?  Seems like the only one who
| 173976 [james@gr yp ] This is how I've been operating, not wanting to get too heavy handed
| 173979 [steve@wa ts ] Personally don't care.  More importantly is that people reply to the
| 174005 [rretzbach@go] Don't make a new rule for that.
| 174077 [chneukirchen] [ALIOTH-SHOOTOUT], [I-REALLY-WANT-TO-THE-RAILS-LIST], [SOAP],
| + 174088 [vjoel@pa h. ] How about [META] for discussions about the list itself?  ;)
| | 174102 [billk@ct .c ] Would discussions about the [META] tag itself qualify as
| | + 174151 [perrin@ap th] Uh-oh.  What do we do if we're talking about metaprogramming?
| | | + 174178 [warrenbrown@] James,
| | | | 174198 [james@gr yp ] Just making sure we're all aware of that resource.
| | | + 174193 [martindemell] Use an eigentag, of course.
| | |   174233 [perrin@ap th] Of course.  Silly me.
| | + 174205 [james_b@ne r] I'm looking for the list that that discusses lists that don't discuss
| |   174236 [hal9000@hy e] alt.spanish.barber
| + 174116 [hal9000@hy e] There are many others, such as [PYTHON], [I-AM-CLUELESS],
|   174136 [leavengood@g] [AFTER-TWO-DAYS-OF-USING-RUBY-HERE-IS-HOW-I-WOULD-CHANGE-IT]
+ 174620 [james_b@ne r] Well, no.
  174645 [james@gr yp ] I'm not clear on what you are asking me for here.  You want the
  174647 [james_b@ne r] I'm saying that [SOLUTION] by itself does not imply [QUIZ]; all
  + 174698 [james@gr yp ] That's a good point.  You're right.
  + 174738 [perrin@ap th] Holy cow, we're talking about namespaces.
    174740 [james_b@ne r] Yeah, well, I didn't want to bring that up, but that's in a nutshell.

building parse.o
173906 [mental@ry ia] Hey, I've got this HP-UX 11i box which I'm trying to build Ruby
173948 [vanek@ac .n ] this line should read,
174091 [mental@ry ia] Blame HP-UX's make.
threads.html
top