236542-239799 subjects 237018-373450

[ANN] Gotham Ruby Conference, April 21st, New York City
236774 [sera@fh an .] I'm proud to announce the first ever Gotham Ruby Conference will be

what exactly is a controller?
236779 [mcyi2mr3@go ] having difficulty understanding what exactly they are and why they are
236780 [dchelimsky@g] Googling "model view controller" will provide myriad answers.
236837 [amrutkar.man] Controllers receive events from the outside world (i/p) , interact

Extended deadline: CfP IEEE Software Special Issue on Rapid Application Development with Dynamically Typed Languages
236784 [laurie@tr tt] ============================================================================

Re: FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info
236787 [djberg96@gm ] That would be my guess.  Does this code snippet work or raise an
+ 236792 [renard@nc rr] I currently have fastri 0.2.1 installed via the tarball.
| 236859 [ mfp@ac .o g] There should be no need to; if you install with setup.rb it will just
+ 236820 [botp@de mo t] # > Does the C:\Documents and Settings\pe?aijm directory exist?
  236825 [twifkak@co c] Random guess: Is it a fresh install? I've had problems resulting from
  236829 [botp@de mo t] # c:/ruby/lib/ruby/gems/1.8/gems/fastri-

Re: [QUIZ] Counting Toothpicks (#111)
236796 [donald.ball@] ...
+ 236803 [ shot@ho .p ] Let a newbie answer. :) For a similar question, see my =E2=80=98Sane
+ 236805 [james@gr yp ] I personally think inline code is the best for the purposes of the
  236913 [donald.ball@] I cleaned up my solution somewhat, substituting some verbose java-style

Sane #hash implementation?
236800 [ shot@ho .p ] I have a Set subclass, Block. I need two blocks to be considered the
+ 236822 [kbloom@gm il] There's nothing about hash codes that requires that
| 236848 [ shot@ho .p ] True, but I do want to be able to key Hashes with my Blocks, so I do
+ 236833 [drbrain@se m] class Block
  236849 [ shot@ho .p ] Thanks a lot, Eric! This is the =E2=80=98d=E2=80=99oh!=E2=80=99 solution I =
  + 236854 [drbrain@se m] You may want to define #eql? in terms of #to_a as well...
  | + 236855 [ mfp@ac .o g] That would fail for the same reason as your Block#hash.
  | + 236991 [ shot@ho .p ] Thanks, but (considering Mauricio Fernandez=E2=80=99s fix) what would be the
  |   236999 [ mfp@ac .o g] "None". You cannot just
  |   237026 [ shot@ho .p ] But I can
  + 236856 [pit@ca it in] Shot, you should be aware that this works for your example given above,
  + 236876 [ mfp@ac .o g] [I'm resending this since the ML server is dropping some of my messages to

Is my code using the Ruby way?
236801 [cmdjackryan@] As I'm a beginner in Ruby, and just (re)started working on real code,
+ 236815 [helder@gm il] I'm a ruby-nuby as well, but for one thing I think you don't need that
| 236817 [tamreenkhan@] ...
| 236818 [cmdjackryan@] Yeah, I did the former already (I like it better that way). And omitting
| 236851 [shortcutter@] It actually also makes to code more correct.  In Ruby only nil and false
+ 236819 [m.fellinger@] class Database
  236823 [cmdjackryan@] Ah, yes, that makes sense. I had to adapt your example to my needs, but
  236827 [ara.t.howard] hopefully you realize this code contains a race condition.  if you use a two
  236831 [slamboy@gm i] ...

[ANN] Gotham Ruby Conference : Call For Proposals
236810 [gregory.t.br] Gotham Ruby Conference, a one-day, single-track event in New York City

Troubleshooting frozen object in tzinfo_timezone
236816 [useless@us l] the tzinfo_timezone plugin. I've added some debugging in the code to try

Compiling so
236824 [wbsmith83@gm] ...

[ANN] Trollop 1.0 released
236828 [wmorgan-ruby] Trollop version 1.0 has been released!
+ 236937 [frdrch@gm il] Nice work! Thank you!
+ 236939 [jgbailey@gm ] How would I access the "filenames" arguments with Trollop?
  + 236942 [frdrch@gm il] Look into ARGV. :)
  + 236946 [frdrch@gm il] ARGV :)

236834 [marble.zhong] ...

[ANN] rc-rest 2.2.0 Released
236835 [drbrain@se m] rc-rest version 2.2.0 has been released!
236887 [mark@oc we .] Does this currently only send get and post requests? What about put
236927 [drbrain@se m] Adding PUT and DELETE would be super-simple.  I've never needed it,

subconcious ruby poetry
236841 [ snk@gn .o g] And here I was,
247449 [aleks0@gm il] 1.6 Truly programming languid

generating negative random numbers
236842 [josselin@wa ] I know how to generate positive random numbers, but is it possible to
+ 236844 [g.h.p.ebberi] Rand(18)-9
| 236845 [josselin@wa ] thanks ... I'd never think about it !
+ 236846 [Tim.Bray@Su ] irb(main):001:0> def rrand(x)
+ 236847 [farrel.lifso] rand(19) - 9
+ 236852 [martindemell] class Range
| 240972 [lerno@dr go ] (-9...10).rand won't give the expected answer. I think the below
+ 237123 [josselin@wa ] thanks to all of u, got it, but why there is no 'standard' function in

implementing XSLT in rss feed
236850 [mundrakrishn] Can anyone help me in implementing rss feed with stylesheet of user's
246915 [zhelee.neu@g] xml.instruct! 'xml-stylesheet', :type => "text/xsl", :href =>

Re: RMagick 1.15.0
236857 [chitam@gm il] complains about my RMagick 1.13.0 gem.  I'd like to upgrade my RMagick
236882 [TimHunter@nc] RMagick 1.15.0 officially works with ImageMagick 6.0.0 or later,

How to get the unix login name of the calling user?
236860 [mo@ag av or ] I am writing a script which uses a configuration file. I already managed
+ 236862 [george.ogata] * If you just need the user's home directory, use
| + 236865 [mo@ag av or ] Great! I think this first suggestion will do it in this case, but the
| + 236880 [stephane.wir] Why not ENV['HOME'] ?
|   236886 [mo@ag av or ] Yes, I think in my case both solutions are equivalent.
|   236890 [johan.veenst] ...
+ 236867 [thomas@ha ne] File.expand_path("~/.my_config_file")
| 236868 [mo@ag av or ] Yo, that works perfectly, thanks!
+ 236897 [kbloom@gm il] Just to add to what everyone else has said so far about using
  236903 [gwtmp01@ma .] These methods all depend on environment variables.  If you need/want to

Ruby on PSP (Sony Portable Playstation)
236861 [vladare@ya o] There is a patch for Ruby from Vincent Xu which will allow you to run

236866 [sonoflilit@g] ...
+ 236871 [sonoflilit@g] ...
+ 236872 [sander.land@] The number 0xff0000000 in your code has seven zeroes instead of six,

exists and enable method for frame
236870 [er_manishg@y] ...

Decending Range
236873 [dom@he en ar] irb(main):008:0> a, b = 1, 100
+ 236884 [slamboy@gm i] ...
| 236888 [dblack@wo bl] That's actually not a necessary condition -- you can have a range of
| 236892 [slamboy@gm i] ...
+ 236885 [come.news@fr] That's normal since backward ranges cannot be iterated. They have no

How to check whether file is browser before submitting the f
236877 [santosh@an i] I am new to this ruby on rails, Help me
236881 [dom@he en ar] Better to try the Rails mailing list rather than the Ruby one.

alias callback
236883 [transfire@gm] How does one reflect on alias definitions. Using #method_added only
+ 236894 [micathom@gm ] Module has a method alias_method, which could be overridden. Probably
+ 237006 [george.ogata] class Module
  237067 [transfire@gm] Good thinking!

html parameters in ruby
236891 [jplantz@gm i] I want to allow the user to 'filter' his query on a DB.

Any word yet?
236900 [jplantz@gm i] Can anybody show me how to grab a parameter in ruby?
236906 [jan.svitok@g] 1. server-side ruby (i.e. it runs on server)
236911 [jplantz@gm i] I gotcha.

Re: Accesing the name of an instance from within an method
236901 [tim.pease@gm] My gut reaction is to say "no, you can't do that."  The say_hi method
+ 236908 [gwtmp01@ma .] I'm going to invoke the "What are you trying to do?" rule.
| 236997 [g.h.p.ebberi] Well here comes the big picture. I have a class contains some data and
| + 237007 [burn.redmond] You can't overload the assignment operator. It's not a method. See
| | 237009 [g.h.p.ebberi] Sorry I'm getting my langanges mixed up.
| + 237082 [tim.pease@gm] When you create an instance of this class that contains all the data,
+ 236910 [gavin@re in ] Instances do not have names; what you have above is a variable (named
  236912 [tim.pease@gm] This is an utter kludge and I would not recommend using it in any
  236915 [gavin@re in ] Very tricky!
  236917 [gavin@re in ] d[ :foo ].say_hi

require library path
236902 [krekna@gm il] ./mk.rb:4:in `require': no such file to load -- date (LoadError)
236905 [thomas@ha ne] ruby -e 'puts $:'
236981 [krekna@gm il] $:.push("~/ruby/rubyinstall/lib... etc")

Correct way to process a file in Ruby?
236914 [rubylist@da ] What is the correct way to code the following in Ruby?
+ 236916 [chris.hulan@] Recently coded something similar.
| 236918 [rubylist@da ] I guess I should have mentioned that these files are binary format and
| 236919 [tim.pease@gm] If you are on a Unix system, look into the Ruby mmap library.
+ 236920 [kabigon@gm i] You shouldn't need to open/close the file more than once. Unless I'm

Re: [ANN]XRuby compiler 0.1.0 released
236923 [lyle.johnson] I am impressed that you have the compiler working, but I guess the big
236925 [avdi@av i. r] Diversity is good?
236998 [robert.feldt] ...
237010 [dreamhead.cn] XRuby is written in Java.

Howto parse or eval a config-file?
236929 [ck1@st ne ra] I'm currently looking for a simple way to parse a configuration file
+ 236930 [james@gr yp ] YAML is pretty darn simple.  You be the judge...
| 236934 [tim.pease@gm] conf = YAML.load_file("path/to/conf.yaml")
+ 236932 [tim.pease@gm] Try using load instead ...
+ 236933 [technodolt@g] Can you change the structure of your config file?
  236935 [tim.pease@gm] Upon some thinking, YAML would be a safer option.  Imagine the
  237127 [ck1@st ne ra] Thanks a lot for all your suggestions, what a nice community! I

Re: XRuby compiler 0.1.0 released
236931 [zhixueyong@h] When I started the project at that time, there is no ruby compiler

Regexp captures
236938 [wmwilson01@g] # where result is most often the textual output of a %x{command}
+ 236960 [botp@de mo t] # result.scan(/error: (.*)/).to_s
+ 236986 [shortcutter@] your_match = result[/id: (\d+)/, 1] || result[/error: (.*)/, 1]
  237064 [wmwilson01@g] Wow!  Thanks a bunch Robert.  I had never seen String#[] before.  That's

Is the Ruby "ruby logo" licenced under creative commons?
236941 [rr@gm il co ] Is the Ruby "ruby logo" licenced under creative commons? (The ruby logo
236943 [james.britt@] <quote>

I love net/ssh library
236944 [hugows@gm il] I just wish i had discovered this earlier - i can automate so much
237146 [gethemant@gm] Read Capistrano code for hackery on this.

Help!  w/ these simple tests!
236945 [clemrock@gm ] Ok - yes - I'm a desperate newbie and I am not sure why these test don't
236955 [drbrain@se m] These all look like Rails functional tests, so I think you want the
236957 [gavin@re in ] ...which can be found at: http://groups.google.com/group/rubyonrails-

process-per-connection with drb
236948 [pbrannan@at ] Reading through drb.rb, I see that drb uses a thread-per-connection
236969 [brabuhr@gm i] Well, I will make no comment about how you "should" go about this, but I
237108 [twifkak@co c] There's also ara's ruby queues thing.

[ANN] South East Michigan Ruby Brigade Meeting
236949 [phurley@gm i] [ANN] South East Michigan Ruby Brigade Meeting

[ANN] Trollop 1.1 released
236966 [wmorgan-ruby] Trollop version 1.1 has been released!
236974 [francois.bea] 2007/1/30, William Morgan <wmorgan-ruby-talk@masanjin.net>:> == REQUIREMENTS:>> * none
236979 [ryand-ruby@z] Can we NOT start with this again??
+ 236980 [hhausman@gm ] For the benefit of the OP, here is the (somewhat long) discussion that
| 237016 [twifkak@co c] gem install trollop --ignore-dependencies
+ 237032 [francois.bea] 2007/1/31, Ryan Davis <ryand-ruby@zenspider.com>:> Can we NOT start with this again??
  237045 [wmorgan-ruby] Thanks for bringing this up. I was unaware of the issue.
  237050 [ryand-ruby@z] WIMP! Don't give in to them!
  237065 [wmorgan-ruby] William <wmorgan-ruby-talk@masanjin.net>

testing local vars and exceptions
236968 [nappin713@ya] I'm new to testing, so my apologies if this is really basic, but is
237004 [pit@ca it in] I have never needed to test local variables. Can you give an example why

Tricks with method as superclass
236972 [no.spam@pl a] I'm intrigued by the way Camping uses a method invocation to
+ 236973 [ara.t.howard] class Foo
| 236976 [no.spam@pl a] ...
+ 236975 [ruby@mu rm n] This is really cool. Regarding the double surprise problem, class_eval
  236978 [no.spam@pl a] Thanks, I agree. Ara beat you to it, but I thought I'd

Rake GemPackageTask Suggestion
236982 [transfire@gm] When using the GemPackageTask, one has to build the GemSpec in order
236989 [drbrain@se m] How many files do you have?
236996 [transfire@gm] 1,530
+ 237052 [ryand-ruby@z] The check_manifest task diffs what is on disk against the manifest
+ 237053 [drbrain@se m] Scanning 1500 files is your time sink.
| 237062 [transfire@gm] That is obvious. But not the point. Rake doesn't need to scan these
+ 308861 [roy@wr gh .o] The real problem is that GemPackageTask uses the FileList to create a

[ANN] rc-rest 2.2.1 Released
236985 [drbrain@se m] rc-rest version 2.2.1 has been released!

[ANN] firebrigade_api 1.0.0 Released
236987 [drbrain@se m] firebrigade_api version 1.0.0 has been released!
236993 [drbrain@se m] Oops! I forgot to bump the rc-rest version up to 2.2.1.  If you're
237049 [schapht@gm i] This is really awesome stuff.  But sadly, I can't seem to get rc-rest
237059 [drbrain@se m] It was a problem with the gem indexer, and moving rc-rest over to
237109 [twifkak@co c] You know, I'd be interested to see the rcov stats...
237111 [drbrain@se m] There's no reason the Firebrigade stack couldn't support additional

[ANN] tinderbox 1.0.0 Released
236988 [drbrain@se m] tinderbox version 1.0.0 has been released!
+ 237001 [Bil.Kleb@NA ] 1) Thank you; A most excellent contribution!
| + 237051 [ryand-ruby@z] HEY! I had to relearn trig to get that stupid thing made! It even has
| + 237054 [drbrain@se m] Its the most depressing Ruby project I've ever written.
|   + 237084 [tim.pease@gm] OK, I'm curious about why this was so depressing.  Care to explain?
|   | 237101 [drbrain@se m] Exactly this, too little green.
|   + 237093 [Bil.Kleb@NA ] I can imagine, but the big visible chart (aka information
|     237102 [drbrain@se m] Hopefully.
+ 237076 [dchelimsky@g] Sweeeeeeet! Thanks.
| 237086 [drbrain@se m] Tinderbox tries the latest RSpec.  If your package require a
| 237099 [dchelimsky@g] Cool. Thanks again.
+ 237156 [tim.pease@gm] Does tinderbox have a set of self tests to ensure that the sandbox
| 237176 [drbrain@se m] Links?
| 237183 [tim.pease@gm] Well, I'll have to link to the space between my ears :/
+ 237170 [jeremy@hi eg] Not sure if this is a bug or not.  I was setting up my OpenBSD box as a
  + 237177 [drbrain@se m] Ok, I'll add that to the Tinderbox sanity check.  I think blowing
  + 237180 [jeremy@hi eg] Well, turns out running older hardware can be an issue, I've had to
    237222 [drbrain@se m] The feature doesn't exist on purpose, I considered it, but didn't

Thanks a lot
236990 [ck1@st ne ra] Thanks a lot for all your suggestions, what a nice community! I

Conversion of .aspx  into .rhtml
236992 [amrutkar.man] I am working on a project which is implemented in .net

Benchmark results (was: Sane #hash implementation?)
236994 [ shot@ho .p ] Thanks for pointing this out, I fixed my specs and my code.
237000 [pit@ca it in] This is what I would expect. The advantage of Mauricio's solution is
237028 [ shot@ho .p ] Ah, right. Still, blocks will contain integers only, so

Mechanize: find form with 'id' rather than 'name'?
237002 [peter@ru yr ] my_form = doc.forms.with.name(formname).first
+ 237013 [andy@pe da c] I haven't dug into the Ruby Mech yet, but the Perl version lets you
| 237015 [schapht@gm i] Ruby's should have a Page#forms that works like an array.
| 237017 [peter@ru yr ] Yeah, you can do
+ 237029 [logancapaldo] my_form = (doc.page/:form).find { |elem| elem['id'] == id_string }

[ANN] London Ruby User Group - Monday, February 12th
237005 [murray.steel] Details for the London Ruby User Group February meeting are now up,

237011 [miroslaw.maz] ...

Ruby and an efficiency
237012 [miroslaw.maz] ...
+ 237107 [twifkak@co c] Hrm. I was going to add these links to
+ 237110 [john.carter@] Almost, but not quite, is...