373222-390044

373043-412723 subjects 373433-375162

car truck parts
373222 [autopartsfai] Auto Parts Fair is a major online catalog of 600,000+ auto parts

Rubyists and RPG Fans: Take a look at CARPS
373224 [spoon@ki le ] I have some new Ruby software for you!

random bug in the & (set intersection) operator in Arrays
373227 [jean-christo] I think I have discovered a random bug in the & (set intersection)
+ 373229 [ryand-ruby@z] On Nov 6, 2010, at 9:08 AM, Jean-Christophe Le Lann =
+ 373261 [shortcutter@] Well, Set's implementation and Array's are different.  I believe Array
  373263 [jean-christo] I have no such methods. I simply though that the object IDs would be
  373268 [shortcutter@] As long as you define equivalence solely based on object identity you do =

RubyConf ticket available
373228 [jen@je li dn] Email me if you want it. Price quite negotiable.
373285 [drhenner@gm ] Let me go check plane tickets.  Dave

Gem::Package::FormatError when installing appengine-tools gem
373230 [apraditya@gm] I'm trying to install appengine-tools gem. Either doing it normally or

ANN: Ruby Underscore 0.1.0 Released
373231 [danrbr@gm il] = RubyUnderscore
373256 [jrmair@gm il] Why not just use Symbol#to_proc ?
373282 [danrbr@gm il] Doesn't work when you need to chain more than one method or even pass
373308 [jrmair@gm il] ah, youre right :) nice program btw, very cool!
373312 [danrbr@gm il] Thanks. Btw, I forgot to mention: doesn't work on 1.9, as parse tree is

send free sms to mobile
373232 [mohamed18185] send free sms to mobile

Easy asynchronous programming
373233 [ravwar@ya de] Microsoft recently announced a new feature of 5th version of C# -
+ 373245 [tony.arcieri] Tony Arcieri
+ 374424 [user@co pg o] I propose not to hold off until you get big sum of cash to buy goods! You should just take the <a href="http://bestfinance-blog.com">loans</a> or credit loan and feel yourself comfortable

documentation for index() and find_index()
373239 [amberarrow@y] I was looking for documentation for the block variants of Array#index
+ 373255 [justincollin] It is documented in the source. ruby-doc.org is just out of date.
+ 373314 [phrogz@ma .c] ray.html

IAPOSMDBDMINS (RuntimeError)
373241 [transfire@gm] Check out this 1.9.2 error. When it's this long you know something is

ruby archive network
373242 [eva54321@si ] ...
373244 [cmdjackryan@] GemCutter and Rubyforge are good places (install RubyGems, unless you
373269 [shortcutter@] And then of course there is
373273 [cmdjackryan@] Also known as the Ruby Application Archive. ;)
373279 [shortcutter@] Absolutely.  Sorry, I did not want to post redundant stuff.  My Parser

Meaning of ::
373246 [guido-granob] [code]
373254 [scott@ai ru ] Class and Module names must be in their "proper case" form.  So, =
373258 [zhiqiang.lei] Why is the :: before Digest module nothing?
373259 [jgabrielygal] That means to refer to the top most Digest constant, to avoid

Code in a class but not in a method -- please explain!
373248 [brucedfeist@] I'm a newcomer to Ruby, and I'm confused about what executable
+ 373249 [djonavarro@g] puts "Hello"
+ 373250 [brucedfeist@] Thanks, Dan.  I appreciate the reference you gave me, but I'm still
+ 373251 [sophrinix@gm] cit
| 373276 [brucedfeist@] This looks like a very interesting and useful tool.  I got an answer
| 373292 [josh.cheek@g] There should be a devkit for Rubyists on Windows who need to build gems.
| 373296 [wagner.andre] There still seem to be problems even once you get past that. I installed tcl
| 373297 [wagner.andre] Actually, I swapped out tk_as_gem, swapped in tk-win, and it seems to work
+ 373257 [b.candler@po] No.
+ 373275 [brucedfeist@] Brian -- Thanks!

sort_by is not stable ?
373260 [michel@de az] sort_by  is not a stable sorting method (ruby 1.9.2 p0)
+ 373262 [ammarabuali@] Without code, I have to guess. If I understood your issue correctly,
| 373264 [michel@de az] a = [["g", 3], ["c", 3], ["a", 3], ["f", 3], ["e", 2], ["d", 3], ["b",
| 373265 [ammarabuali@] Thanks for the clarification, now I understand what you mean. Based on
| 373270 [shortcutter@] IIRC quicksort is instable by definition.  There may be stable variants
| + 373272 [cmdjackryan@] Please, people, trim your quotes.
| | 373277 [michel@de az] @Phillip : I am not sure I agree. When sorting on the second half, the
| | 373278 [cmdjackryan@] "a" != "b" results in true, thus the couplet is *not* equal.
| | 373280 [shortcutter@] No, Michael is right.  Every sorting algorithm only ever looks at *sort
| | 373283 [michel@de az] Coming back to the beginning, quicksort correctly coded is stable (cut
| | 373289 [wishdev@gm i] Good Morning,
| | + 373293 [michel@de az] Message received.
| | + 373294 [raincolee@gm] In fact, python uses Timsort. Java SE and  Android too.
| | + 373298 [w_a_x_man@ya] ble
| |   373302 [wishdev@gm i] Good Afternoon
| |   374014 [headius@he d] I can clarify.
| |   374027 [michel@de az] Just to come back to my initial post : it was not about sort, but about
| |   374935 [headius@he d] We don't distinguish between the two in JRuby, but it might be a good
| |   374946 [michel@de az] Yes indeed.
| + 373286 [raincolee@gm] From a practical viewpoint, stable sort should be implemented as stable
| + 373325 [chastell@ch ] x.sort { |(la, da), (lb, db)| (da <=3D> db).nonzero? or la <=3D> lb }
+ 373287 [w_a_x_man@ya] %w(foo bar car war raw rat cat or bat is).sort.

irb misbehaviour with arrow keys on Windows
373266 [sutniuq@gm .] It seems that irb has problems with the arrow keys on Windows. Steps to
+ 373274 [cmdjackryan@] This also happens in PowerShell / Windows 7 Professional.
| 373300 [sutniuq@gm .] You're right, I didn't even notice that. What is even worse, is trying
| 373303 [luislavena@g] Unable to reproduce, Ruby 1.9.2-p0, 1.8.7-p302
+ 373304 [luislavena@g] What codepage (chcp) are you using?
+ 373310 [phasis@gm il] This is a bug of rbreadline.
| 373334 [luislavena@g] ng
+ 373398 [sutniuq@gm .] I'm sorry, but as I stated previously, I don't have access to a Windows
+ 373642 [cbciv@ya oo ] ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] (installed using
  373686 [cbciv@ya oo ] Charles Calvert             |  Software Design/Development

rspec-2.1 is released!
373284 [dchelimsky@g] ### rspec-core-2.1.0 / 2010-11-07

why was my mail sent twice?(no ruby-related)
373288 [raincolee@gm] During using the mailing list I always send my mail twice.(see in "sort_by
+ 373290 [wishdev@gm i] Good Morning,
| 373291 [raincolee@gm] So everyone else wouldn't see it twice?
| + 373295 [josh.cheek@g] No, you're fine, we only see the one post.
| + 373316 [zhiqiang.lei] No, I didn't see your duplicated mail.
|   373317 [zuerrong@gm ] Only the poster himself will see the duplicated message.
+ 373313 [t.yao426@gm ] I met the same problem when I was sending a post or thread to this mailing list
  373315 [lw299792458@] only once for me

Why you should change your vehicle to flex fuel
373299 [sustainable.] Dear Everyone,

Don't work an array
373305 [b1368810@lh ] $a = Array.new
+ 373306 [wagner.andre] If you look at Array.new, you have to give it a size or something similar.
+ 373307 [w_a_x_man@ya] a =3D Array.new(6){ [] }
+ 373322 [botpena@gm i] Arrays in ruby are dynamic in so far as to its size.
+ 373323 [josh.cheek@g] The problem is that you haven't initialized the indexes you are accessing.
+ 373358 [b1368810@lh ] Thanks to all.

running script remotely on a sepparate terminal
373309 [flethuseo@gm] I am building a script that runs something on a server.
373359 [zettabyte@gm] To keep things simple, I'd just use the GNU "screen" program and run

important qution on ruby
373318 [s.mjm22@ho m] Q.
+ 373319 [shortcutter@] And what is your "problem with Ruby"?  You sure do not expect us to do
+ 373328 [cmdjackryan@] We certainly can help you with debugging your code, but writing a
+ 373331 [s.mjm22@ho m] i need code by ruby regular expression and i am new to this language so
| 373649 [cbciv@ya oo ] You still haven't asked a question, you just told us that you need to
+ 390042 [s.mjm22@ho m] ok
+ 390044 [transfire@gm] ...

Selenium RC-windowMaximize
373321 [deka.niranja] I am using selenium Rc with Ruby, i need to maximize the browser window.
373324 [anton.shchan] 1.2.18 gem (+ cucumber :)).
373440 [deka.niranja] Thanks a lot Anton....

win32ole enum
373329 [James.French] If someone could help me with this I'd be very grateful...
373332 [James.French] If someone could help me with this I'd be very grateful...
373449 [James.French] If someone could help me with this I'd be very grateful...

Identify IP address from a text file and replace it with new address.
373330 [chandu.sheno] I want to write a script by which I can open up a text file,scan
+ 373335 [a.bovanenko@] text=IO.read(filename_of_file_with_ip)
| 373373 [chandu.sheno] Thanks for the response.It did work.However isn't there a provision to
| 373374 [shortcutter@] ruby -p -i.bak -e 'gsub /\d{1,3}(?:\.\d{1,3}){3}/, "XX.XX.XX.XX"' a_file
+ 373336 [zuerrong@gm ] maybe a regex is useful, though that's not rigorous enough.

Comparing/search struct array
373333 [tsz@pu ze ba] I have drafted this tiny script, which works almost(!!) fine except that
+ 373343 [josh.cheek@g] 2010/11/8 Szabolcs T=C3=B3th <tsz@purzelbaum.hu>
| 373344 [jgabrielygal] le
| 373345 [josh.cheek@g] 2010/11/8 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>
+ 373372 [tsz@pu ze ba] Thanks for the comments. I am working on your suggestions.

Using Ruby's C API safely and sanely
373342 [eveith@ww eb] I'm trying to integrate Ruby (both for bindings and embedded interpreter)
+ 373347 [luislavena@g] gs.
| 373390 [eveith@ww eb] Luis,
| 373426 [luislavena@g] 1.9.3
| 373447 [eveith@ww eb] Luis,
| 373476 [luislavena@g] to
| 373537 [eveith@ww eb] Thanks for the hints. And I'll take the topic to Ruby-Core then. :-)
+ 373354 [scott@ai ru ] You should give some thought to using FFI. It'll work in ruby, rubinius, and=

ruby-pg gem fails to install
373352 [devguy.ca@gm] i built postgres 9.0 from source and i am trying to install ruby-pg
+ 373353 [ben@bl yt in] ruby-pg is ancient. you want the pg gem.
| 373356 [devguy.ca@gm] i tried the following
| + 373357 [ben@bl yt in] Did you try just "sudo gem install pg"? I suspect you did and it
| | 373361 [devguy.ca@gm] i have tried the following not sure if my syntax is correct? i get the
| + 373360 [astahl@hi .c] ...
|   + 373362 [ben@bl yt in] That won't matter on an install from source, like the OP is doing.
|   | 373364 [devguy.ca@gm] Ben thanks for your clue, I got the gem to build and install. I just
|   + 373363 [devguy.ca@gm] that won't work for me, i built postgresql 9.0 from source, libpq-dev
+ 375363 [blackip@gm i] Try this
  375948 [ufbobbo@gm i] That one did the trick.  Thank you!

binding of a Method object?
373365 [jrmair@gm il] class Test
373366 [joelvanderwe] Can't think of an easy way to do that, but does this help?
373386 [jrmair@gm il] Hehe, thanks. Not quite what i had in mind, but interesting nonetheless

no such file to load -- mysql (LoadError)
373367 [ani.tekawade] install mysql and specifiled the path as
+ 373368 [ryand-ruby@z] You're running 1.8 so you need to add "require 'rubygems'" before your =
+ 373369 [ani.tekawade] 126: The specified module could not be found.   -
  373370 [michael.broo] This might not make a difference but is the location of the "libmySQL.dll"

Got "undefined method `split'" when installing gem dm-mysql-adapter
373371 [csharper@gm ] I'm trying to install the gem dm-mysql-adapter with the following
+ 373375 [devguy.ca@gm] just a thought, should you not be using --with-opt in place of
+ 373389 [luislavena@g] not mysql binary.

Finding the third(any) Monday(any day) of a month
373376 [rrparida@ya ] Can any of you pls tell me, how to find the third(any) Monday(any
+ 373379 [ammarabuali@] Check out the chronic gem. http://chronic.rubyforge.org/
+ 373380 [ammarabuali@] Please don't change the title of your post to ask a new, or the same,
+ 381043 [thopre@gm il] myDate = Weekday.third_monday(2010,1)
  381045 [code@ap th o] Is there somewhere to get the source, read stats about it, et cetera,

shadow copy and deep copy
373377 [eva54321@si ] ...
+ 373381 [adrain.f.tep] I don't think it's deep copy.
+ 373391 [shortcutter@] Actually it's called "shallow copy".  And what #dup really does

Regexp ambiguity/error
373382 [ammarabuali@] This is definitely an edge case, but an interesting one. Suppose we
373385 [ammarabuali@] My bad, again. I missed the ':' in all of those attempts.

Shaderlight for Sketchup
373383 [debarati@sk ] Shaderlight for SketchUp is released
373384 [debarati@sk ] Shaderlight for SketchUp is released

YAML dependency
373393 [javaplayer@g] CONFIG = YAML.load_file("config/file.yml")["development"]
373405 [cmdjackryan@] Don't hard code the pathname, instead provide a default filename if
373418 [rick.denatal] Well from the OP I take it he is running in Rails due to the reference

Tracking code & scripts
373394 [stuart.clark] Hey all,
+ 373395 [dave.baldwin] Dave.
+ 373396 [jeremy@bo p.] It sounds like you want a version control solution.  A spreadsheet is
+ 373406 [cmdjackryan@] Use decent version control. Like Mercurial: mercurial.selenic.com
  373408 [jeremy@bo p.] Not to be too picky here, but point 3 is exactly equivalent to what you

Analyzer for errors in code ?
373397 [dunric29a@gm] I would like to check a source code for common errors like use of unused
+ 373399 [shortcutter@] Unused local variables would be doable, but detection of typos of
| 373411 [dunric29a@gm] I understand it is difficult because the dynamic nature of Ruby, but
| + 373414 [shortcutter@] Well, actually you would catch the bug during testing which you have to
| | 373415 [dunric29a@gm] I see but such lint tool would parse whole source and included modules
| + 373416 [wyhaines@gm ] I understand it is difficult because the dynamic nature of Ruby, but
|   373419 [ryand-ruby@z] errors
|   373420 [ryand-ruby@z] (damnit, sorry... I'm post workout and fairly braindead... here is the =
+ 373412 [tony.arcieri] There are many, many tools of this nature. A great place to start might be
+ 373417 [david_v_wrig] It sounds like you are asking if Ruby has any static analysis tools.
+ 373422 [dunric29a@gm] Ryan Davis> Yep, I really understand it's impossible to do static
  + 373427 [ryand-ruby@z] In python, 'mymsg' _has_ to be a variable. This isn't true in ruby. It =
  | 373430 [dunric29a@gm] Great info Ryan, thank you.
  | + 373432 [ryand-ruby@z] I don't entirely understand your question, as "x" in my example is the =
  | | 373437 [dunric29a@gm] First sorry for the confusion, I had 'mymsg'in your x method example  in
  | | 373439 [shortcutter@] As we tried to explain, you cannot do any static lookups - not even
  | | 373446 [dunric29a@gm] I'm saying it from the start I don't expect the static checker would
  | + 373525 [b.candler@po] On the contrary: ruby *does* always decide (statically, at parse time,
  + 373428 [ryand-ruby@z] I also suggest that you deal with the problem instead of the symptom. I =

bug in ruby 1.9.2-p0 gsub?
373400 [sdhays@gm il] Why does the following only replace the first instance of the pattern?
+ 373401 [jeremy@bo p.] The pattern is matching pairs of | characters with content in between.
| 373402 [gditrick@fu ] Because "\ |" will not match "|\ |".
+ 373403 [sdhays@gm il] I see.  Thanks a lot, especially for the lightning response!

Undefined method
373407 [dekthai99@gm] I am very new to ROR.  (Ruby 1.8.7, rails 2.1.1, rack
373438 [rubfor@re it] You missed the banner saying this is the Ruby Forum. Go back to Forum

String#split regex \W on non-ASCII text
373409 [fritza@uc ic] Ruby 1.9.2-p0, built from the tarball on Mac OS X 10.6.4 with the Xcode
+ 373410 [ammarabuali@] Use the unicode property for separators.
| 374965 [hermannul@ve] Xcode
+ 373413 [fritza@uc ic] Character properties are what I needed, thanks. I really did want non-word separators, but you led me to \P{L}.

help with code, new to programming
373421 [stevoreesimo] I am new to programming and have been learning Ruby using online
+ 373423 [vbosch@gm il] print 'I am going to test if you are psychic, press enter to
| + 373424 [scott@ai ru ] print 'I am going to test if you are psychic, press enter to =
| + 373425 [scott@ai ru ] Correction.  When I Apple-R'd textmate went into a loop, so I did the =
| | 373435 [vbosch@gm il] Much better with a begin .. end while!! I always forget about those as I =
| + 373471 [stevoreesimo] This makes sense! By setting the first reply as 'yes' you begin the
+ 373445 [shortcutter@] To put it abstractly: you need to change the looping condition.
| 373451 [rubfor@re it] Ahh - that's why Ruby is so good - not a single instance of the word
| 373457 [shortcutter@] Did you mean Ruby - the language or Ruby - the community?
| + 373468 [stevoreesimo] Thank you for the help!
| + 373518 [rubfor@re it] The community is very classy, of course!
+ 373478 [john.loves.s] i don't think you need a loop.
  373506 [shortcutter@] Why do you say that?  Steve explicitly asked about modifying his
threads.html
top