261788-262438 subjects 262184-291875

^ User Authentication and permissions
262035 [jmilunsky ho] This may be a bit too open ended but what is the best way to add user
+ 262059 [gregory.t.br] ...
+ 262358 [dangerwillro] There are a few ways, one is well covered in the AWDWR book.
  262385 [gregory.t.br] That is the mailing list you are responding to right now.  If you're
  262435 [dangerwillro] Oops, that was an early morning coffee moment, I meant Rails Talk at

^ [ANN] Proposals now being accepted for RubyConf 2007 presentations
262036 [dblack wobbl] Presentation proposals for RubyConf 2007 are now being accepted.  The
262725 [dblack rubyp] There have been some DNS problems with rubycentral.org, but it should

^ n00b if condition quest
262044 [brett.boge i] if (a = b or a = c or a = d or a = f)
+ 262045 [dblack rubyp] if [b,c,d,f].include?(a)
| + 262047 [brett.boge i] == indeed.
| | 262075 [botp delmont] # == indeed.
| + 262117 [robert.dober] You are right for sure that OP meant ==, but let us answer the
|   + 262228 [iw1junk comc] Not quite.
|   | 262232 [robert.dober] indeed well,spotted, same trap than in
|   + 262230 [phrogz mac.c] Your solution forces the evaluation of b/c/d/e/f, which the OP's does
+ 262048 [phrogz mac.c] case n
  262055 [dblack rubyp] That doesn't test for equality, though.
  262229 [phrogz mac.c] case 1..3

^ Usage patterns and trusted libraries
262046 [kumoyuki gma] This may end up being regarded as an incendiary posting, but it's not
+ 262051 [Rob AgileCon] Although it may be too late, might I suggest that
| 262099 [kumoyuki gma] On Jul 26, 11:57 pm, Rob Biedenharn <R...@AgileConsultingLLC.com>
+ 262053 [james.britt ] So, the question is, why did you pick ActiveRecrd in the first place,
+ 262086 [hal9000 hype] Facts shouldn't be considered incendiary. I thought your account
| 262098 [kumoyuki gma] Yes. The more I think about it, the more astonished I am. Especially
| 262100 [rimantas gma] Duh.
| 262102 [kumoyuki gma] Perhaps I should have also included the implicit sarcasm implied by
| 262104 [has.sox gmai] I don't know that I could put a figure on it like that, but in development
+ 262105 [shortcutter ] Makes me wonder: why did you choose a different language?  As you said
| 262271 [kumoyuki gma] On Jul 27, 8:13 am, "Robert Klemme" <shortcut...@googlemail.com>
+ 262108 [botp delmont] # The process takes over 12 hours to run using ActiveRecord to provide
  262273 [kumoyuki gma] Reducing the context to fit in a news article would be difficult. I

^ beginner Q.
262054 [schmode93 ya] So, when i first started to learn ruby *about a week or two ago*, my
262056 [jpywtora cal] I don't know about hh's implementation but how about
262057 [ccthiel gmai] irb(main):006:0> def ask(question)
262062 [gboyer gmail] I'd say that depends entirely on context. In a context like Hackety
262079 [schmode93 ya] humm ok so i tried out my *program* but at the very end i get an error..
+ 262082 [botp delmont] # humm ok so i tried out my *program* but at the very end i get
| 262085 [schmode93 ya] Oh, wow ok should have thought of that, now instead of doing the whole
| 262087 [botp delmont] # 1.5 and -1.0 thing. It would be neat if it could just print *buy from
| 262088 [schmode93 ya] you mean like the avarage of all the items together from each vendor, if
| + 262091 [caduceass gm] Also look at case-when and <=>
| + 262106 [botp delmont] # you mean like the avarage of all the items together from each
|   262130 [schmode93 ya] hummmmm, well it just kinda of needs to be clean like
|   262212 [schmode93 ya] Sorry, i was a bit short on my last quote, I had leave for work and
|   262250 [botp delmont] # Although, im not sure how databases work.. maybe its faster
+ 262084 [caduceass gm] Your elements are Strings!  That's what you get back from the gets

^ How to delete array element and add to previous element
262060 [desertfox ho] I have an array that has elements that are arrays.
+ 262063 [dblack rubyp] I'm afraid I don't know what you mean.  What exactly are you trying to
| 262066 [desertfox ho] Dont worry about the commas.  they could just as well be spaces.  Its
+ 262069 [m_goldberg a] If you are showing here is intended to be Ruby code, it is simply bad
  + 262071 [desertfox ho] Sorry about the syntax.  I was just trying to show the array, it was not
  | 262072 [desertfox ho] I reposting my last response since there is no edit on this forum.
  | + 262073 [Rob AgileCon] I'm guessing that "51\t31\tR1,R2,..." means that this is the 51st
  | + 262078 [m_goldberg a] Now I understand. That's a rather nasty data file. How I would go
  |   262095 [desertfox ho] Only the third column with the R37,R39,R41,R42,R43,R49 can spill over to
  |   262177 [m_goldberg a] The following code isn't a full solution to your problem, but I think
  |   262231 [m_goldberg a] <code>
  |   + 262234 [desertfox ho] Thank you very much for putting effort into this.  I was able to get it
  |   | 262241 [m_goldberg a] row = line.chomp.split("\t")
  |   | 262245 [desertfox ho] if row[0].empty?
  |   | + 262258 [m_goldberg a] Programming is more of an experimental science than a deductive one.
  |   | | 262292 [desertfox ho] Thank you Morton.  You've been a big help.  I got the books now.
  |   | + 262260 [m_goldberg a] Oh, yes, there's always ri. I tend to forget about it because I rely
  |   + 262276 [iw1junk comc] Great lesson for a Ruby Newbie!  I had to
  + 262103 [shortcutter ] RKlemme@padrklemme1 ~

^ [Very OT] Australia or Canada, which one is the best country for a geek?!?
262061 [h.dunnil gma] Sorry for this *too off topic* email, but I think you can help me as I
+ 262067 [dangerwillro] Depends on the city.
+ 262074 [james.britt ] Which ever one has Silicon Valley.
| 262216 [jlin_DELETE_] Aha!  Canada.  Ottawa (including the part called Kanata) is
| 262237 [znmeb cesmai] That's where they wanted me to move -- Ottawa. The other thing Ottawa
| 262277 [robert.dober] its a freeture
| 262281 [perrin apoth] . . . or a bugger.
| + 262283 [robert.dober] you win, but I am not playing in your league ;)
| + 262288 [znmeb cesmai] Actually, I was willing to transfer to Canada at the time, even given
+ 262081 [znmeb cesmai] Well ...
+ 262092 [john.carter ] New Zealand.
| 262246 [efriedNoSpam] How would someone be authorized to work in NZ if not a citizen?
| + 262249 [paradisaeida] You would need a Virtual Working Visa.
| | 262339 [efriedNoSpam] Mark,
| + 262351 [roy.britten ] A work permit is easily obtained if you work in IT and have a job
|   + 262353 [phlip2005 gm] May I ask why my former colleague who moved to Australia blew me off when I
|   | 262355 [roy.britten ] You'd have to ask your friend.
|   | 262360 [phlip2005 gm] No need; that's what we meant!
|   + 262362 [efriedNoSpam] Thanks!
|     262363 [phlip2005 gm] IIRC that's what my former colleague and mentor/protoge was doing in Oz...
+ 262093 [jesper exilr] I don't know about Canada, but Australia is the best place in the world,
| + 262094 [has.sox gmai] Here Here
| + 262238 [phillipsds y] I am though, and from Perth too but working in the capital for a few
|   262239 [paradisaeida] Wow.
|   262337 [gmenhennitt ] This is wrong!
+ 262242 [kenneth.m.mc] It'll depend completely on the city and surrounding area. Canada is much
+ 262244 [pete notahat] Not sure of the answer, but I live in Melbourne and can give you a data
+ 262364 [Tim.Bray Sun] I'm Canadian, lived in several places there, have friends & relatives
| + 262374 [ruby muerman] Australia has a great community. True, things tend to be mostly driven
| + 262376 [phillipsds y] Awful horrible bugs?
|   262389 [znmeb cesmai] Is there a link to the fridge magnets somewhere? :)
|   262395 [znmeb cesmai] Hmmm ... how about a small group of RoR hackers that just works out of a
|   262434 [matt technor] And I'm not joking.
|   262436 [paradisaeida] Good thought-direction!
+ 262430 [nshb inimit.] Speaking from Canada, I would recommend Vancouver or Toronto. Each has
  262433 [james.britt ] There's something to be said for hanging out in coffee shop with a group

^ [ANN] Rubypub.com - A Ruby Documentation Wiki
262070 [wiremine gma] [ANN] Rubypub.com - A Ruby Documentation Wiki
+ 262149 [kbloom gmail] This should be very helpful. Thank you for the site.
| 262164 [gregory.t.br] +1 this looks beautiful
| 262167 [wiremine gma] That sounds great to me. Any other thoughts/suggestions?
+ 262163 [robert.dober] Should it not be the other way around? It surprises me that you
| + 262166 [wiremine gma] To be honest, that was my biggest hesitation in developing the site.
| | 262169 [gregory.t.br] (b) isn't true.  What makes you assume that?
| | + 262172 [wiremine gma] Good to know. I looked through a couple hundred gems looking at
| | | + 262187 [gregory.t.br] There are OSI approved licenses which would not be compatible with CC
| | | + 262205 [kbloom gmail] Just do an automatic check against the gem's listing on Rubyforge, and
| | |   262220 [gregory.t.br] Open source does not (necessarily) mean freely modifiable.  Please be
| | + 262174 [wiremine gma] If nothing else, I hope rubypub can be a discussion starter within the
| + 262178 [james.britt ] Has GemJack gotten flack?
+ 262180 [james.britt ] What's it written in? Ruby?
| 262183 [wiremine gma] Yes! It's basically a rails app with some odds and ends added to
+ 262197 [phlip2005 gm] Props!!
  262198 [phlip2005 gm] pages out to two co-workers, regarding our projects.

^ [ANN] mechanize 0.6.10 Released
262083 [aaron tender] mechanize version 0.6.10 has been released!

^ How to pass arguments by reference in a function
262096 [ashishwave g] if i pass arguments in a function then they get passed by value. how
+ 262101 [shortcutter ] 1. inplace modification of arguments (Strings, Arrays, Hashes - all
| 262152 [florgro gmai] On Jul 27, 8:32 am, "Robert Klemme" <shortcut...@googlemail.com>
+ 262121 [phlip2005 gm] Ruby supports two kinds of variables; IIRC numbers, characters, booleans,
| 262143 [shortcutter ] Personally I find it easier to grasp (especially when starting out
| 262148 [phlip2005 gm] Working backwards from your example, that is the definition of an "immediate
| 262218 [shortcutter ] I'm not sure where you see the agreement and also I don't see how the
+ 262186 [lloyd 2live4] That reminds me, in the old days you could do a swap without a third
  + 262194 [seebs seebs.] The xor swap is virtually never more efficient on reasonable hardware.
  | 262210 [lionel-subsc] A program in assembler for a microcontroller with so few memory that
  + 262196 [iw1junk comc] It may depends on the definition of efficient.
    262206 [seebs seebs.] Interesting.  There were a few different ways; you could request

^ How to write a ruby compiler using Java???
262107 [shiwei.zhang] I am using Java to write a Ruby compiler. I build up the editor by
+ 262109 [shortcutter ] Why not join http://jruby.codehaus.org/? There you might also find
+ 262111 [charles.nutt] There are basically two known good grammars for Ruby. One is the
  262150 [znmeb cesmai] Just out of curiosity, where do the "Zen" tools (ParseTree, Ruby2Ruby,
  262192 [charles.nutt] Most of the tools you're thinking of depend on C code that can access or

^ Getting Ruby Path at runtime?
262113 [ronald.fisch] Is it possible to find out under Windows, which Ruby has been used to
+ 262114 [fred lacave.] => "1.8.6"
+ 262132 [james graypr] /usr/local/bin/ruby
| 262444 [ronald.fisch] Great!!!
+ 262139 [sam sammorri] You can do a check for the JRUBY_VERSION constant. If it exists then you are
  262445 [ronald.fisch] Thanks a lot.

^ [ANN] Reminder: Ruby East 2007 Proposals Are Due Monday
262118 [aok chariots] The call for papers is now open for Ruby East 2007, to be held

^ ParseTree and the Standard Library
262119 [transfire gm] There some discussion going on the ruby-core mailing list about which

^ eval versus load and plugins
262120 [rover.rhubar] I'm writing a program with a sort of plugin mechanism. Plugins are
+ 262124 [alex blackke] Not sure off the top of my head.  Someone else can probably weigh in here.
+ 262179 [vjoel path.b] You can module_eval the file in the context of a new (anonymous, if you

^ WIN32OLERuntimeError      -- Using ruby for Solidworks
262122 [Aaron2Ti gma] I want to use Ruby to manipulate the famous 3D software Solidworks
262125 [Aaron2Ti gma] first I started the SolidWorks ,seeing the Solidworks' process running
262126 [jan.svitok g] Have a look at http://blogs.msdn.com/adioltean/archive/2005/06/24/432519.aspx

^ Regexp's comparison
262127 [m.tyman inte] For example I would like to match all c lines with regexp. How can I
+ 262128 [alex blackke] Not entirely sure I understand the question.  What are you expecting the
+ 262129 [robert.dober] Marcin I have no idea what you want achieve? Do you have lines of
+ 262131 [sam sammorri] Do you want to find out how many lines have c? Or find out witch line
  262136 [m.tyman inte] Guys,
  + 262140 [sam sammorri] text = "adcdcbcdc"
  | 262141 [m.tyman inte] Yeah,
  + 262146 [shortcutter ] I would not do any sorting here.  Rather I'd fill a Hash with IPs as

^ for matz to do
262133 [bitdoger2 ya] i'd like to see two new ruby language additions....
+ 262138 [jan.svitok g] Look at BigDecimal
+ 262142 [florgro gmai] # prelude
| 262145 [phlip2005 gm] Next, on the "for matz to do" angle, we might need a little lecture here on
+ 262147 [peter semant] Being realistic here, in all likely hood you are the expert on this and
  262173 [bitdoger2 ya] ..all good points..to all above ...can one also modify struct class to

^ [QUIZ] Crossword Solver (#132)
262134 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 262387 [rrafje gmail] Here's my solution: http://pastie.caboo.se/83230
+ 262393 [ruby-talk lo] This solution requires Gecode/R ( http://gecoder.rubyforge.org/ ).
| 299388 [ruby-talk lo] I thought I would update this solution to use the recently introduced
+ 262568 [ribify softo] My solution, slightly optimized for performance version of the code that was
+ 262650 [chneukirchen] # A simple, stupid and not very efficient recursive depth-first
+ 262741 [justin.ethie] Here is my solution: http://pastie.caboo.se/83905

^ Help with updating to 1.8.6
262137 [pbailey bna.] I need help. I've updated to 1.8.6, but, I've lost some stuff I had. I
262155 [gthiesfeld g] This has happened to me before with an upgrade, I'm not sure why.  It
262158 [pbailey bna.] Thanks a lot, Gordon. Yes, it works now, by me putting 'require

^ OpenGL Wrapper Bindings
262144 [peterlaurens] I've been getting some visualisation working using the ruby-opengl
262151 [ruby anthrop] You must be using an old version. The current version provides
262154 [peterlaurens] Thanks for your help, I'll try installing again as my version doesn't

^ Triming characters from the front of a String...
262156 [sketchitup g] For the life of me I can't figure out an easy way to remove the first
+ 262160 [florgro gmai] str = "hello world"
+ 262162 [sepp2k googl] str[x..-1] gives you str without the first x characters.
  + 262170 [sketchitup g] On Jul 27, 8:13 am, Sebastian Hungerecker <sep...@googlemail.com>
  + 262171 [phrogz mac.c] On Jul 27, 9:13 am, Sebastian Hungerecker <sep...@googlemail.com>

^ unsubscribe
262157 [raffaele.bel] unsubscribe

^ Re: Rubypub.com - A Ruby Documentation Wiki
262159 [florgro gmai] Patches sound most useful to me.
262161 [transfire gm] Er.. there are all sorts of problems with that.
262165 [rsanheim gma] Rdoc and the core doc pages have languished for so long, so its
262168 [wiremine gma] Man, I couldn't agree more. BTW, I don't really see rubypub as a

^ Bug [was: Re: [ANN] Rubypub.com - A Ruby Documentation Wiki]
262175 [tpo2 sourcep] 1. The top of the page contains the title and search bar. OK, good. Then

^ Organizing My Ruby Code - Do I use modules...
262176 [sketchitup g] I need a little help determining the best way to organize my Ruby
262181 [transfire gm] Read pickaxe about require/load.
+ 262284 [vasudevram g] ruby -e "puts $:"
+ 262285 [vasudevram g] ruby -e "puts $:"
+ 262470 [shortcutter ] The current directory works as well.

^ Facets error while using Time.parse
262182 [meruby gmail] I have install latest facets using gem. I am having this issue with
+ 262200 [transfire gm] class Symbol
| + 262221 [ezmobius gma] Trans-
| | 262226 [transfire gm] Thanks Ezra. It's gone now. I always felt a little off about that
| + 262261 [dan-ml dan42] I can't reproduce it on my system but for this kind of stuff you should
|   262268 [transfire gm] Indeed. I use to have #freeze in there, but apparently that caused
+ 262201 [meruby gmail] When I commented following line from /usr/lib/ruby/gems/1.8/gems/