373220-375363

373022-374503 subjects 373409-375162

^ Create a class - ideas
373220 [flebber.crue] Evening
373225 [shortcutter ] First of all you should get your variables right.  Variable "Per" does
373235 [flebber.crue] ow...
373237 [flebber.crue] ave
+ 373238 [mike cargal.] flow
+ 373240 [mike cargal.] flow
  373243 [flebber.crue] ow
  + 373252 [flebber.crue] flow
  | 373281 [mike cargal.] best flow
  | 373326 [flebber.crue] flow
  | 373429 [flebber.crue] st flow
  | 373431 [flebber.crue] best flow
  + 373253 [jrmair gmail] This WHILE loop will not work because the condition is only evaluated
    373267 [shortcutter ] Where's the point in doing this when there are "while" loops already
    373271 [jrmair gmail] fun

^ 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 killer] I have some new Ruby software for you!

^ Re: regular expression
373226 [b.candler po] Is this a homework question?

^ 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 jenlindn] Email me if you want it. Price quite negotiable.
373285 [drhenner gma] 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 gmail] = RubyUnderscore
373256 [jrmair gmail] Why not just use Symbol#to_proc ?
373282 [danrbr gmail] Doesn't work when you need to chain more than one method or even pass
373308 [jrmair gmail] ah, youre right :) nice program btw, very cool!
373312 [danrbr gmail] Thanks. Btw, I forgot to mention: doesn't work on 1.9, as parse tree is

^ send free sms to mobile
373232 [mohamed18185] c2VuZCBmcmVlIHNtcyB0byBtb2JpbGUKCmh0dHA6Ly9waHBmb3J3ZWIuY29tL2Fza2FueS9zbXMu

^ Easy asynchronous programming
373233 [ravwar yande] Microsoft recently announced a new feature of 5th version of C# -
+ 373245 [tony.arcieri] Tony Arcieri
+ 374424 [user compgro] 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 mac.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 sin] charset=GBK
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 aitrus] 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 demaz] 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 demaz] 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 demaz] @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 demaz] Coming back to the beginning, quicksort correctly coded is stable (cut
| | 373289 [wishdev gmai] Good Morning,
| | + 373293 [michel demaz] Message received.
| | + 373294 [raincolee gm] In fact, python uses Timsort. Java SE and  Android too.
| | + 373298 [w_a_x_man ya] ble
| |   373302 [wishdev gmai] Good Afternoon
| |   374014 [headius head] I can clarify.
| |   374027 [michel demaz] Just to come back to my initial post : it was not about sort, but about
| |   374935 [headius head] We don't distinguish between the two in JRuby, but it might be a good
| |   374946 [michel demaz] Yes indeed.
| + 373286 [raincolee gm] From a practical viewpoint, stable sort should be implemented as stable
| + 373325 [chastell cha] 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 gmx.] 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 gmx.] 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 gmail] This is a bug of rbreadline.
| 373334 [luislavena g] ng
+ 373398 [sutniuq gmx.] I'm sorry, but as I stated previously, I don't have access to a Windows
+ 373642 [cbciv yahoo.] ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] (installed using
  373686 [cbciv yahoo.] 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 gmai] 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 gma] Only the poster himself will see the duplicated message.
+ 373313 [t.yao426 gma] I met the same problem when I was sending a post or thread to this mailing =
  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 lhs] $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 gmai] 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 lhs] 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 hotm] 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 hotm] i need code by ruby regular expression and i am new to this language so
  373649 [cbciv yahoo.] You still haven't asked a question, you just told us that you need to

^ 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 gma] maybe a regex is useful, though that's not rigorous enough.

^ Comparing/search struct array
373333 [tsz purzelba] 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 purzelba] Thanks for the comments. I am working on your suggestions.

^ Using Ruby's C API safely and sanely
373342 [eveith wwweb] I'm trying to integrate Ruby (both for bindings and embedded interpreter)
+ 373347 [luislavena g] gs.
| 373390 [eveith wwweb] Luis,
| 373426 [luislavena g] 1.9.3
| 373447 [eveith wwweb] Luis,
| 373476 [luislavena g] to
| 373537 [eveith wwweb] Thanks for the hints. And I'll take the topic to Ruby-Core then. :-)
+ 373354 [scott aitrus] 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 bleythin] ruby-pg is ancient. you want the pg gem.
| 373356 [devguy.ca gm] i tried the following
| + 373357 [ben bleythin] 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 hi5.c] Just ran into the same thing myself... installing 'libpq-dev' seemed to
|   + 373362 [ben bleythin] 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 gmai] Try this

^ binding of a Method object?
373365 [jrmair gmail] class Test
373366 [joelvanderwe] Can't think of an easy way to do that, but does this help?
373386 [jrmair gmail] 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 gma] 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 yah] 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,

^ shadow copy and deep copy
373377 [eva54321 sin] charset=GBK
+ 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

^ Re: Finding the last Sunday of a month
373378 [rrparida yah] Your code piece is not working for me. I have installed chronic

^ 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 ske] Shaderlight for SketchUp is released
373384 [debarati ske] 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 bopp.] 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 bopp.] 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 gma] 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 gmail] Why does the following only replace the first instance of the pattern?
+ 373401 [jeremy bopp.] The pattern is matching pairs of | characters with content in between.
+ 373402 [gditrick fus] Because "\ |" will not match "|\ |".
+ 373403 [sdhays gmail] 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 recit] You missed the banner saying this is the Ruby Forum. Go back to Forum
threads.html
top