294156-308553

293963-357610 subjects 294367-315916

About updating gems
294156 [el.padawer@g] I'm novice in linux, ruby and rails. I've reinstalled my ubuntu
+ 294158 [mark@bu hn t] This normally suggests the update didn't update your "gem" command, or
+ 294165 [kbloom@gm il] You should ideally be unable to run gem update --system on Debian and
  294178 [tomcloyd@co ] Ken, thanks. I've posted this problem twice to this list and gotten
  294186 [kbloom@gm il] That order's fine too. I figure it could be done in either order.

Cruisecontrol and Rspec.
294159 [beholdthepan] ...

ruby on windows
294174 [darrin_allen] right now I am running ruby on red hat 8.  Is there a compiler for
+ 294176 [wieczo.yo@go] There are interpreters for all Windows plattform, yes. Some WinAPI
+ 294221 [TimHunter@nc] If by "compiler" you mean "interpreter," then yes. Google
| 294423 [jftucker@gm ] Except the one in jruby. oh and rubinius (is that working yet?). Oh
| 294436 [rmagick@gm i] I knew somebody would quibble. That's why I specified "a thing that
| 294447 [jftucker@gm ] I don't really want to argue, but I do feel it's important to point
| 294468 [fredistic@gm] C and assembler run directly on the hardware.  Sometimes in user mode,
+ 294426 [fredistic@gm] I have several ruby-on-rails projects that run on Windows XP 32-bit and

http://www.ruby-lang.org/ down?
294181 [tomcloyd@co ] It appears to be dead. Has this happened before? Is it a radiant problem?

[MacOS X ?]rubygems search path ???
294183 [unbewusst.se] i had installed "by hand" xml/smart when using ruby 1.8.6

Hartford Ruby Brigade's first meeting: a Tour of Facets
294185 [danbernier@g] The Hartford Ruby Brigade is having its first meeting, and we would

Hartford Ruby Brigade's first meeting: a Tour of Facets
294187 [danbernier@g] The Hartford Ruby Brigade is having its first meeting, and we would

The Best way to make my game multiplayer
294189 [di3go.bernar] game, i want to make it multiplayer, well, i hope make it a mmorpg some
294247 [eleanor@ga e] You have two sets of considerations: gameplay and network utilisation.
294250 [celtic@sa ry] ...
+ 294309 [di3go.bernar] yea, its to prevent hacking.
| 294435 [eleanor@ga e] There isn't an RUDP library as such, but if you look at the bit-struct
+ 294431 [eleanor@ga e] By itself no, and arguably with programs in Ruby where the source code

whats the error here?
294192 [adamtemporar] My IDE (aptana rails) seems to complain about syntax with this code
+ 294195 [shortcutter@] This bit of code has the alignment wrong and an "end" too much.
+ 294196 [stefano.croc] Your code contains a syntax error, in particular it has one 'end' too much. Yo
+ 294197 [sepp2k@go gl] There's certainly nothing wrong with the syntax (i.e. it's perfectly valid
| 294199 [adamtemporar] Sorry for the sloppy quoting of my code. Here it is in full. I made a
| 294200 [adamtemporar] Just gone back to my ide and it aint underlining that line anymore
| 294201 [adamtemporar] err on a similiar note if i have a hash like the one above and i do this
| + 294243 [sepp2k@go gl] temp = template.dup
| + 294244 [jgabrielygal] irb(main):001:0> a = {:a => 1, :b => 2}
|   294255 [adamtemporar] Thank you both of you for you help. I was wondering how to create a
|   294260 [shortcutter@] But keep in mind aliasing effects when using #dup.   The default
|   294345 [adamtemporar] So is there a way to create a copy of one of the elements in a hash
|   294394 [shortcutter@] copy = Marshal.load(Marshal.dump(x))
|   294480 [adamtemporar] thank you robert
+ 294198 [pmckibbin@gm] @template is a hash, and you are attempting to retrieve the size of a 0

kill process using WIN32_PROCESS
294202 [junkone1@gm ] I was reviewing the docs for Module Process  in WIN32_PROCESS and
294217 [djberg96@gm ] Actually, it's 1 and 4-8. Signals 2 and 3 were chosen for SIGINT and
294430 [junkone1@gm ] is signal 4, 5, 6, 7,8 provide same effect or is 8 better than 7 in
294445 [djberg96@gm ] 1 and 4-8 are all the same.

[ANN] Yet another Windows installer
294210 [cmdjackryan@] I've taken the liberty to submit a new RubyForge project: The Ruby
294421 [jftucker@gm ] So presumably that includes zlib in order for rubygems to work, but
+ 294464 [cmdjackryan@] Only Rubygems at its current release version.
| 294770 [jftucker@gm ] So no openssl :-(
| 294777 [cmdjackryan@] Oh, it'll include that, too (in fact, all dependencies. I'll just have
| 294817 [jan.svitok@g] There were many discussions whether One click should use VC6/VC8/mingw
+ 294535 [cmdjackryan@] Only Rubygems at its current release version.

[ANN] orichalcum 0.5.0 Released
294215 [nyarly@gm il] orichalcum version 0.5.0 has been released!

[ANN] command-set 0.10.4 Released
294216 [nyarly@gm il] command-set version 0.10.4 has been released!

[ANN] Ruby Central matching Greg Brown donations, up to $5000!
294220 [dblack@ru yp] I'm pleased to announce that Ruby Central, Inc. is going to provide

"".to_a isn't consistent with "string".to_a
294224 [no@sp m. le ] I've just been tripped up by this behaviour, which I haven't
294228 [christopher.] I disagree. #to_a doesn't just encase the string object in an
294229 [vjoel@pa h. ] To add to that: the way I've understood it is that, in the context of a
294230 [no@sp m. le ] Right, that does make sense now, thanks folk.

sort array by some text
294231 [frytaz@gm il] a = ['one.jpg', 'two.txt', 'three.pdf']
294233 [caduceass@gm] a = ['one.jpg', 'two.txt', 'three.pdf']
294234 [frytaz@gm il] well I dont know where in array i have .txt files but its sure that
+ 294235 [caduceass@gm] Try using the #partition method (my last example) then.  It gives you
| 294252 [shortcutter@] irb(main):009:0> a = ['one.jpg', 'two.txt', 'three.pdf']
| 294287 [rodrigo.berm] a = ['one.jpg', 'two.txt', 'three.pdf','a.txt', 'a.az' , 'a.z']
| 294292 [shortcutter@] irb(main):006:0> a = ['one.jpg', 'two.txt', 'three.pdf','a.txt', 'a.az' , 'a.z']
+ 294320 [bbxx789_05ss] That doesn't work.
| + 294326 [w_a_x_man@ya] Iters = 99_000
| + 294344 [caduceass@gm] Yes, I said all this in the next post.
| | 294348 [rodrigo.berm] I've seen many post lately, where seems the best solution is the faster
| + 294352 [caduceass@gm] Fast and somewhat of an eyesore.  Doesn't work if there's more than
|   + 294353 [caduceass@gm] I reply to myself too often on this board.  That won't work either,
|   + 294354 [caduceass@gm] change this ^^^^^^ line to "a.unshift a.delete(elem) if elmt[-3] == ?t"
|   + 294355 [bbxx789_05ss] And since there isn't...
|     294356 [caduceass@gm] Okay ... works to spec.
|     294359 [caduceass@gm] No it doesn't, what if you tap on a "something.tgz" file on the end of
+ 294336 [pmckibbin@gm] Do you want to sort the array, or just make sure that element is the

Input using stdin
294236 [newarade47@g] How can I give input to a program using STDIN
294238 [just-for-new] print("Give me a string ");
294239 [newarade47@g] Please check http://codegolf.com/reverse where we need to input using
+ 294241 [just-for-new] gets works on the standard input if you insist you can write
+ 294242 [cmdjackryan@] ...

[ANN] rubyforge 0.4.5 Released
294237 [ryand-ruby@z] rubyforge version 0.4.5 has been released!
294311 [ara.t.howard] rockin man.  thanks!

Re: Ruby Central matching Greg Brown donations, up to $5000!
294246 [gregory.t.br] With Ruby Central's matching, I'm pleased to say that almost 6 weeks
294251 [celtic@sa ry] ...

problem instralling gems
294248 [bagam_venkat] I have problems installing gems on my ubuntu 7.04 machine. i haver

undefine instance var & [] (three questions)
294249 [frantisek.ps] 1) is the attr (method) slower than instance_variable_get/set ?
294257 [perfectly.no] They serve different purposes. attr defines accessor methods
294258 [wieczo.yo@go] class Foo

Creating a file with $SIZE
294253 [nkanthikiran] I would like create files of different size, taking size as user
294270 [shortcutter@] Kind regards

Passing only a hash key, with no value, as an option
294261 [toastkid.wil] I'm using the method of parameter passing where i have one 'regular'
+ 294263 [shortcutter@] Nope.  You will have to use chunkify(something, *options) and do the
+ 294265 [dblack@ru yp] You're over-thinking this a bit. :extra_fine isn't any more a hash key
| 294269 [toastkid.wil] I know what you're saying, it is a bit clumsy.
| 294271 [shortcutter@] Pardon me, but it seems David's words did not sink in since you are
+ 294275 [pmckibbin@gm] extra_fine is a symbol, as other people pointed out.
  294276 [toastkid.wil] OK, point taken :)

Active-Record Sql: selecting only few columns
294267 [rajat79@gm i] ...
+ 294272 [dvdplm@gm il] ...
+ 294273 [Rob@Ag le on] Add a :select => 'name, photo_url, id' to your User.find, but be aware

computer trade shows?
294274 [darrin_allen] are there any computer trade shows in your area?
294282 [znmeb@ce ma ] Yes.

SOAP::RPC::StandaloneServer and WSDLs
294279 [arg9000@ho m] I have seen this posted several times on this forum without a definitive
294305 [raffaele_tes] you get a
294325 [arg9000@ho m] Kind of.
294399 [raffaele_tes] take a look at action web service
294403 [raffaele_tes] verrry useful post about your question (i hope)
294556 [arg9000@ho m] Thank you for taking the time to respond to this post.  I really
308553 [vipin@is et ] how u able to create WSDLs automatically without AWS? can u pls help me

elsunless: Compiles but does not run. Standard?
294281 [fredistic@gm] 1) 'if' can be followed by 'elsif'.
+ 294283 [peter@se an ] fred.rb:4:in `x': undefined method `elsunless' for main:Object
+ 294284 [nobu@ru y- a] No such keyword.
+ 294286 [perfectly.no] elsunless is not a keyword in Ruby. Let's reformat your
| 294291 [perfectly.no] Damn, the "else" should not be indented.
| 294302 [fredistic@gm] Yup, you guys were right about ONE thing, the 'elsunless' was
| + 294306 [perfectly.no] The wiki first describes the plain if expression - without
| + 294307 [lionel-subsc] Why should we care about this wiki? There are thousands of ressources on
|   294410 [fredistic@gm] standard.
+ 294288 [wieczo.yo@go] Ruby is an interpreted language, so it ignores your "unless true" part

including general variables in modules
294297 [mario@be wa ] I'm trying to create different scenarios so I thought to do something
294299 [Rob@Ag le on] Uh, stop using global variables?
294300 [mario@be wa ] But I need it. :(
294304 [Rob@Ag le on] Do you really?
294308 [mario@be wa ] so it's impossible to do it whithout declaring a method...
+ 294316 [Rob@Ag le on] You still haven't defined what "it" really is.  Perhaps with a better
+ 294370 [cmdicely@gm ] That depends what you want, which isn't clear. If you don't need to change the
  294398 [mario@be wa ] Actually what I want is to include an scenario with all my global
  + 294408 [dblack@ru yp] See Chris's answer: use constants, and include the module you want.
  + 294415 [no_private_r] I think this code will do what you require
    294417 [mario@be wa ] Thanks Morel I think this one could be the solution.
    294420 [splenetico@s] Because we are replacing (overriding) a previous version of
    294419 [no_private_r] OOps, wrong nick :)
    294424 [mario@be wa ] Thanks everybody for your time and suggestions.

yarv tutorial
294298 [forgetta@gm ] ...
294303 [lyle@ly ej h] YARV is built-in to Ruby 1.9.0 as the standard virtual machine. If

My project Rgettext
294310 [wujciol@gm i] ...
+ 294315 [transfire@gm] Provide links.
| 294439 [wujciol@gm i] ...
+ 294318 [devi.webmast] I believe you are referring to

a method that checks if an object is in a range
294312 [wojtek@m4 hu] range.include?(obj)
+ 294319 [flo@an er gr] First, to answer your question: no, there is no such method in Ruby.
+ 294321 [devi.webmast] I personally am not a fan of such methods, but perhaps
+ 294335 [wojtek@m4 hu] Florian,
  294337 [flo@an er gr] I don't consider this monkey patching. You are extending - there is

Recursive method definition -- A Metaprogramming problem??
294313 [DAMisener@gm] Any hints on how to imbed *redefine_method*'s *payload* as a block

[ANN] rutema 0.6.2 Released
294314 [damphyr@fr e] rutema version 0.6.2 has been released!

How do I stop these emails?
294317 [mike.rood@co] ...
294324 [slarbi@gm il] ...
294330 [mike.rood@co] Thanks, Sam.  I don't think I signed up through more than one source, but I've done many things much dumber than that in the past, so it's a distinct possibility.  Daniel Keeney had some good suggestions along the same lines, so I'm trying to follow up on them now.
294363 [piyush.pr@gm] ...

Get OpenStruct attributes
294322 [ehames@gm il] Dear rubyists,
+ 294327 [aaron@te de ] => true
+ 294328 [jameskilton@] => false
| 294331 [martindemell] That's actually the cleanest way - it's proof against singleton
+ 294329 [martindemell] A bit hackish, but
+ 294332 [transfire@gm] o = OpenStruct.new(:a=>1,:b=>2)
  294405 [celtic@sa ry] ...
  294443 [transfire@gm] It may be the only reliable way. Try #dup on an OpenStruct and see
  294492 [celtic@sa ry] ...
  294575 [transfire@gm] I agree, which is why I created OpenObject (in Facets). OpenObject

How do you deploy RubyCocoa application to another Mac?
294323 [praful007@gm] I have written an application using RubyCocoa and would like it to be

[ANN] rfcgi-spawner 0.0.1 released
294333 [funkaster@gm] ...

[ANN] mechanize 0.7.3 Released
294334 [aaron@te de ] mechanize version 0.7.3 has been released!

bug in Test Unit?
294338 [rubylearner@] ...
294365 [ryand-ruby@z] not a bug... just bad English. It should be #ran?, not #run?.
294384 [rubylearner@] ...
294391 [jan.svitok@g] This was reported by Slavomir Hudak as rubyforge bug #18041 -- Unit
294460 [rubylearner@] ...

LISP, and Contigeous Memory in Ruby
294339 [bbr53221@ya ] Is ther a LISP language code in Open Software that I can download for
294342 [shortcutter@] What exactly do you mean by this?  Are you looking for a LISP
294350 [wieczo.yo@go] There's BusScheme[1] and Lisp in Ruby[2]

REXML formatting help due to changes from 1.8.4 to 1.8.6
294340 [weyus@at .n ] Apparently there was an overhaul of REXML formatting between Ruby 1.8.4
294341 [weyus@at .n ] (I see now there's been a lot of discussion about this ;])

Re: mechanize 0.7.3 Released
294349 [rogerpack200] Thanks for mechanize--we use mechanize at work and it works well.
+ 294357 [aaron@te de ] Thank you!
| 294378 [dblack@ru yp] pack, Pack!
| 294456 [aaron@te de ] I've submitted my patch to add the "patterson" method to Array, but I
+ 294358 [bbxx789_05ss] ascii_codes = [100, 101, 110, 116, 226, 60, 56, 48, 62, 60, 57, 57, 62,
+ 294374 [w_a_x_man@ya] bytes = [100, 101, 110, 116, 226, 60, 56, 48, 62, 60, 57, 57,
  294381 [rogerpack200] The following ways all recreate my original string, however I am having
  294390 [w_a_x_man@ya] 5,

Need help protecting data
294351 [di3go.bernar] I need protect some data like photos and musics from a game, i really
294444 [rodrigo.berm] ( Not sure if I understood )
294459 [di3go.bernar] Hehe, i made a test with openssl and storing in mongoose, i think ppl
294463 [eleanor@ga e] OpenSSL performance is very dependent on the strength of key you use,
294472 [di3go.bernar] Elllie, you helping me alot :) i love ruby community
294514 [di3go.bernar] Hrr im a noob XD Now i know why the encrypt and decrypt was so slow >.<

String method to take subsections
294360 [glenn_ritz@y] ...
+ 294362 [dblack@ru yp] Have a look at String#scan.
+ 294364 [wieczo.yo@go] # So, 'xxxxxa1byyyyya2bzzzzzzz'.method_x('a', 'b') would return ["1", "2"].
+ 294369 [pmckibbin@gm] class String
  294429 [glenn_ritz@y] ...
  294477 [pmckibbin@gm] I'd be inclined to agree, although some might argue that a test for nil

Parametric module or injecting code via class method?
294366 [transfire@gm] Which approach is better: parametric module or an injecting class
+ 294395 [shortcutter@] Are you writing a book on best practices?  There seem to be quite a
| + 294454 [transfire@gm] On Mar 13, 4:42 am, "Robert Klemme" <shortcut...@googlemail.com>
| | 294457 [shortcutter@] LOL
| | 294461 [transfire@gm] On Mar 13, 1:23 pm, "Robert Klemme" <shortcut...@googlemail.com>
| + 296062 [hawat.thufir] I'd like to see a book devoted to inject.
+ 294474 [ara.t.howard] i would say neither and both.  it's saner to decouple them and then
  294486 [shortcutter@] Using a Struct generated class as base class is a bad example IMHO
  294499 [ara.t.howard] heh - yeah bad example.  i just used struct to avoid defining atts 'a'
  294799 [shortcutter@] The alternative - at least as far as I see it - is
  294808 [sean.ohalpin] I suspect that Trans is looking for a general principle to follow and
  294841 [shortcutter@] Maybe.  IIRC he did not state this.
  + 294845 [james.adam@g] Tuppence = "two pence" (GBP) - see the song in "Mary Poppins" about
  | 294847 [shortcutter@] Yes, that's what I gathered.
  + 294961 [sean.ohalpin] Indeed. Perhaps Trans can enlighten us as to the real application?
    + 294987 [transfire@gm] There is the specific application which applies to equate_on,
    | 295048 [transfire@gm] Okay, that's overly harsh. (Can you tell I had a bad day yesterday?)
    | 295070 [robert.dober] Not really ;)
    + 294990 [transfire@gm] I'd like to present another example --a simpler one in a sense, of
      295099 [shortcutter@] <snip>100+ lines</snip>
threads.html
top