385214-385773

384999-385647 subjects 385415-385935

Re: Unexpected results from private_methods
385214 [b.candler@po] They are methods in the Kernel module. Method names with a capital
385223 [j.d.maher@co] Aha!  And those Kernel methods are the default conversions.
385226 [bbxx789_05ss] BasicOjbect is a Class, and a Class is an Object.

Re: array overwrite question
385216 [b.candler@po] But of course, the subarrays in cc and the subarrays in bb are the same
385290 [dickyhide@gm] aa2 = [[2,3],[4,5],[6,7]]
385296 [hanmac@gm .d] cc2 = Marshal.load(Marshal.dump(aa2))
385299 [shortcutter@] In this particular case #map also works because we know the depth to be

unsubscribe
385218 [dstone@co ce] unsubscribe
385253 [mcpierce@gm ] Somebody doesn't like Ruby/Javascript interactions... :D
385269 [florian.assm] Maybe because he saw [this](https://github.com/jessesielaff/red). :)

Uploading an ActionDispatch::Http::UploadedFile to Google Storage
385221 [tyrelrichey@] site. I am at the final stage of the most painful programming experience
385270 [tyrelrichey@] So der der der browsers create a tmp file on the server automatically

Re: ruby -v does not detect ruby
385222 [tyrelrichey@] Also you might consider using RVM its very useful you can install

can't find bson_ext-1.3.1 **beginner**
385225 [bawgeous32@y] I am a web designer, and am trying to be able to edit a group project
+ 385228 [cmdjackryan@] Did you run "bundle install" to get the gems installed?
+ 385229 [luislavena@g] 1) Download RubyInstaller

Issue with: instance_variable_defined?
385230 [rubyhacker@g] I expect the third line to be true rather than false.
+ 385231 [justincollin] I was going to say that the attr_* methods don't create instance
+ 385236 [tim.pease@gm] The behavior seems correct. The "rb_attr" method in eval.c only creates =

Re: Reading data from file and passing to javascript
385232 [bbxx789_05ss] ruby executes on the server side, which is the place on the internet
385240 [rubfor@re it] Matthew
385258 [matthew.baum] Thanks for your consideration, but I have solved this issue myself.

Rolling Schedules
385233 [wow.mikes@gm] I need to create schedules that roll when there is an exception. For

ruby 1.9 mac install problems
385234 [info@ma sh l] Following Dave Thomas' instructions in Programming Ruby 1.9, p. 7, I got
385237 [ryand-ruby@z] got
385239 [info@ma sh l] path is set correctly. I checked ~/.profile, and the macports setup put
385241 [pxthanh299@g] If you install ruby 1.9 via Macports using the command "port install
385244 [bbxx789_05ss] In other words, your system's ruby software is called 'ruby', and the
385260 [info@ma sh l] Thanks for the great tips! ruby1.9 does show 1.9.2 as version.
385322 [Carey.Nation] Well, it may not have been "right," but this seems to have worked for me.  I built from source.  When I did the ./configure I used -prefix=/usr/bin.  When I did the sudo make install, it didn't put the binaries in the right place (never actually found them), but everything else seemed right.  I did a sudo cp to get the binaries from the build directory into /usr/bin.  So far, no problems that I've seen.  YMMV.  For that matter, mine may, too if I do find a problem later.

trying to send a string to google storage
385235 [tyrelrichey@] So I have used this function from gstore gem
+ 385238 [code@ap th o] This is very un-idiomatic Ruby, and you might want to consider at least
+ 385245 [tyrelrichey@] Thank you for your response I do write like that already but I should be
+ 385250 [tyrelrichey@] Never mind my last post I think it was that the name I chose for the

Why return(XXX) is valid within a "value = case N ..." ?
385247 [ibc@al ax ne] def test1
385248 [shortcutter@] Probably because case has branches which actually return a value (even
385249 [ibc@al ax ne] XD
385251 [fighter.lyt@] Remember all the block in ruby is actually a snippet ,so return from the

[Ruby/C] Very little piece of code driving me crazy
385252 [sexymimi64@g] I have a very very little piece of code in C using the libruby, and it
+ 385254 [ibc@al ax ne] Where does it crash? could you paste the output of the binary execution?
+ 385255 [hanmac@gm .d] RSTRING(b)->as.heap.ptr
+ 385256 [sexymimi64@g] It crashes when trying to access RSTRING(VALUE)->as.heap.ptr.
+ 385257 [hanmac@gm .d] little point, you can use NIL_P(v) to check if its nil, its an macro

Re: RubyInstaller Extras
385259 [jon.forums@g] This got more replies than I expected and it's good to see discussion on
385261 [josh.cheek@g] FWIW, I my experience buying Land of Lisp ebook directly from No Starch was
+ 385262 [steve@st ve ] In general, No Starch is an awesome publisher, and I've really liked
| 385263 [jon.forums@g] importance of being able to quickly read code for understanding while
+ 385264 [code@ap th o] as

Re: RubyGems Rational Versioning policy
385265 [sunaku@gm il] Why?  What's the stigma against increasing major version numbers?
385268 [cmdjackryan@] Feature-completeness. Whatever I say is finished.

[ANN] LSRC V: 28 Days To World Class Ruby & Rails Training
385267 [jimfreeze@gm] [Lone Star Ruby Conference V; August 11-13 in Austin, TX.]

does OrderedHash exist?
385271 [muranov@ma h] i know that in Ruby 1.9 Hash is ordered, but it seems to be a
+ 385272 [bbxx789_05ss] After a long court battle, the ruby standard library has recently been
| 385273 [muranov@ma h] Thanks, but this is for a Rails application, and i wonder if i can rely
+ 385274 [zettabyte@gm] Yes, it has been marked with the #:nodoc: rdoc tag(?) so it is now omitted
| 385275 [muranov@ma h] Thanks Gifford, i didn't know about this mailing list.
| 385291 [transfire@gm] On Jul 14, 6:36=A0pm, Alexey Muranov <mura...@math.univ-toulouse.fr>
+ 385369 [orenshani7@g] Thomas,
  385373 [shortcutter@] I'm curious how you manage to keep the data structure ordered and keep
  + 385374 [flo@an er gr] Not speaking for the OP, but the naive solution by keeping book of key
  + 385381 [josh.cheek@g] You don't necessarily have to keep it ordered the whole time. Order only
    385424 [shortcutter@] ng

Is there a more efficient way to remove data from a string?
385276 [catflaporama] I have a regex as follows
+ 385277 [ian.asaff@gm] ruby-1.9.2-p180 :004 > line =3D "abcXXdef"
+ 385278 [johnf@bi sb ] # this won't remove trailing newlines
+ 385279 [code@ap th o] ARGF.each_line do |line|
| 385280 [code@ap th o] Actually, I did too literal a translation of your code.  If I was writing
| + 385282 [catflaporama] Awesome stuff. Thanks to all that replied. It really is appreciated.
| + 385286 [josh.cheek@g] Depending on how the string is to be interpreted, you may need to escape it
|   385295 [code@ap th o] it
+ 385300 [shortcutter@] Another possible option is to use String#[]=

Problem with Ruby on OS X
385281 [rony358@gm i] I am trying to use Ruby on OS X. I installed libnet4r using gem and then
+ 385283 [astahl@hi .c] I used to hit that all the time cuz I'd forget one minor detail... try addi=
| 385285 [rony358@gm i] Thanks for the replies.
| 385289 [rony358@gm i] I figured it out. Gem was using a different ruby. Once I removed the old
+ 385284 [nospam7272@m] require 'rubygems' first?

[ANN] kgio 2.6.0 - kinder, gentler I/O for Ruby!
385287 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

Look
385292 [transfire@gm] I have tried for over a year to contact Michel Martens concerning the
+ 385294 [sophrinix@gm] start a new gem call look-yall? (be sure to release it during ruby hoedown
| + 385586 [drbrain@se m] hoedown
| | 385592 [mikbe.tk@gm ] Actually we way "Look ya'll!" all the time to draw attention to something
| | + 385604 [code@ap th o] The boat, or the pig?
| | + 385605 [Reid.Thompso] ...
| + 385607 [transfire@gm] btw, gave me a dang good laugh when I first read
+ 385673 [luislavena@g] Can I ask how are you reaching him? over email? to which account? tried
  385678 [transfire@gm] Yea, direct message github was my main route.

Help needed for a new release of text-hyphen
385297 [halostatue@g] I've had folks asking me for a release of text-hyphen that works with
+ 385298 [adgar@ca bo ] ...
| + 385315 [eule@sp ce c] I second that analysis. It seems to use text-hyphen in Ruby 1.8 with
| | 385318 [halostatue@g] , "h",
| | 385320 [halostatue@g] Thanks everyone for the comments received. I've taken the approach
| | 385358 [headius@he d] Ok, I see your bugs. We'll have a look into it.
| | 385376 [halostatue@g] ENV["JRUBY_OPTS"]="--1.9"
| + 385317 [halostatue@g] ", "t", "s", "k", "a", "p", "i", "t", "\303", "\244", "n", "s", "m", "\303"=
+ 385301 [headius@he d] Is this the error I should see for JRuby?
| + 385305 [adgar@ca bo ] That's the same error I saw, and fixed by using a latin1 input case
| + 385316 [halostatue@g] Yes. But does jruby fake out mvm in this case? Because while Rake is
+ 385349 [shevegen@li ] Man ... Ruby 1.9.x hates umlauts.

Re: regex to match a , and seperate.
385303 [shortcutter@] irb(main):007:0> str =

[ANN] Rabbit 1.0.1
385304 [kou@co mi ng] Rabbit 1.0.1 has been released!!!

Not receiving some mail from ruby-talk
385306 [josh.cheek@g] "regex to match a , and seperate."  I only see the most recent post,
+ 385308 [flo@an er gr] Thanks for noticing this, I have the same problem. Even the description =
+ 385309 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
| 385310 [josh.cheek@g] Sorry, it's not clear to me. Are you saying that some people are posting
| 385312 [shortcutter@] It's also not clear to me what's going on here.  Normally I would have
+ 385364 [shevegen@li ] Could it have something to do with editing what you write in this
+ 385370 [josh.cheek@g] I've also had 2 or 3 posts caught recently from spam assassin. Perhaps this

Elegant selection of closest number?
385307 [phil@pr co .] People,
385313 [bbxx789_05ss] buckets = [
385314 [shortcutter@] buckets and data as above

replace string between xml tags that contains special characters
385311 [rousanmalik@] I am trying to get rid of the string in a xml file which contains some
+ 385323 [shortcutter@] Can you show what you tried, i.e. the code?
+ 385324 [code@ap th o] It seems to me you should make use of the non-greedy modifier, which is
+ 385361 [jakekaiden@y] an example of what you've tried would make things much better and
+ 385403 [rousanmalik@] Thank you all for the response.
  385404 [hassan.schro] This sample is not like your original example, which wasn't even

[ANN] Ruby 1.9.2-p290 is released
385319 [yugui@yu ui ] Ruby 1.9.2-p290 has been released. This is a patch level release of Ruby
385321 [markus@fi ch] Here's the ChangeLog only with the changes between 1.9.2p180 and the

Comparing hashes based on their keys
385326 [stefano.miol] let's say we want to write a method that compares two hashes for
+ 385328 [shortcutter@] quality
| + 385329 [Rob@Ag le on] I don't see why you couldn't just add your own method to Hash. (Tested
| | + 385337 [stefano.miol] I posted in the same gist a revised version of your method (see comment
| | + 385340 [stefano.miol] class Hash
| |   385345 [Rob@Ag le on] return false unless self.keys.sort == other.keys.sort
| |   385352 [stefano.miol] Hah! True.
| + 385335 [stefano.miol] Exactly.
+ 385330 [josh.cheek@g] What would be especially cool is if you could post your specs, then it would
| 385333 [stefano.miol] And here is a slightly modified version of the code that adds the method
+ 385331 [josh.cheek@g] Looks like you've probably got a bug. You explicitly return in your code,
  385338 [stefano.miol] Very true.

Jack into $LOADED_FEATURES update?
385334 [transfire@gm] I would seem there is no way to jack into the update of
385582 [drbrain@se m] $LOADED_FEATURES?
385609 [transfire@gm] S?

[ANN] Cascadia Ruby Conf schedule; giveaway; registration deadline
385341 [ben@bl yt in] a little regional conf we're doing in Seattle in a couple of weeks.

moving a 1.8.6 install?
385342 [rogboone@ya ] Is it possible to move the gems from a Ruby 1.8.6 install on an (old)
+ 385343 [hanmac@gm .d] could you give me a reason why you use 1.8.6? you should update to 1.8.7
| 385344 [code@ap th o] =20
+ 385347 [hassan.schro] 1) What makes you think it didn't work?
| 385351 [josh.cheek@g] This is probably the best solution.
| 385354 [hassan.schro] Yeah, I was imagining a slightly more Byzantine barn dance of using
| 385368 [paradisaeida] I've not tested this with your versions of Ruby + gems, so +luck!
| 385431 [rogboone@ya ] Thanks for the replies.  I've been out sick and haven't been able to
| 385531 [eric@le ur e] If you're using a version of Rails that supports Bundler (Rails >= 2.3, may
+ 385348 [shevegen@li ] But gems are just ruby files too. setup.rb can also install them...

Request for unit tests for learning purposes.
385346 [simon@si on ] Needless to say, I've cloned his repository rather than starting from
+ 385350 [josh.cheek@g] I've got 50 or 60 in Ruby Kickstart
+ 385356 [alexch@gm il] Please check out http://testfirst.org and the ruby suite at
+ 385386 [simon@si on ] Thanks both for the suggestions, but I prefer unit tests because they

Re: Anyone interested in a Package Manager in Ruby?
385353 [shevegen@li ] Hmm.
+ 385359 [marco-oweber] nixpkgs (www.nixos.org) should also be known by you.
| 385363 [shevegen@li ] Yup, nixos is a GREAT idea. Always was much more sophisticated than
| 385365 [marco-oweber] It depends on what you want. nixpkgs was designed to generate results
| 385367 [transfire@gm] or Other?
| 385371 [marco-oweber] If you use mutt, sup or the like you can edit all header messages.
| 385383 [shevegen@li ] It was made via http://www.ruby-forum.com/ and the login there.
| 385384 [shevegen@li ] I agree with you. :)
| + 385385 [shevegen@li ] To Brian,
| + 385388 [marco-oweber] Don't know what to say. Usually you don't work with those paths. So
+ 385407 [b.candler@po] My understanding (not having tried it myself) is that Homebrew scripts
| 385408 [stu@ru yp og] I use gentoo prefix
+ 385421 [spiralofhope] Heretix was a linux distribution which aimed at using Ruby instead of

JRubyConf 2011, August 3-5, Washington D.C.
385355 [headius@he d] Hey all! I wasn't sure if we'd ever announced JRubyConf in ruby-talk,

[ANN] RubyInstaller 1.9.2-p290 released
385362 [luislavena@g] In combination with the rest of the RubyInstaller team, I'm very

[ANN] AutoReload v1.0.0 released
385366 [transfire@gm] AutoReload 1.0.0 has been released.

Fwd: Comparing hashes based on their keys
385372 [shortcutter@] 1st send attempt died in spamassassin...

How to test block parameters which is sending to method with arguments??
385375 [sateesh.mca0] Hai
385377 [mikbe.tk@gm ] What if you test the result of your code working then test what it does when

Re: [RubyInstaller] [ANN] RubyInstaller 1.9.2-p290 released
385378 [luislavena@g] Well, dunno why you have that when everything here compiled successfully?
385379 [luislavena@g] No, even with RDoc 3.x installed ruby19:docs should be using 2.5.11
385380 [luislavena@g] Well, it is breaking in some files that had documentation changes.

Ignore Segmentation fault?
385382 [pal@pa be gs] When I run a cron, using whenever gem, the script is executed but I get
+ 385392 [hanmac@gm .d] hm not realy, a "Segmentation fault" is a break, mostly an dereference
+ 385399 [hassan.schro] Can you? Yes. Should you? Probably not.
+ 385401 [stu@ru yp og] If your on BSD you can set kern.sugid_coredump  to turn off core dumps.
  385426 [shortcutter@] On other platforms it might be

Missing messages (was: Re: Anyone interested in a Package Manager in Ruby?)
385387 [markus@fi ch] The problem of missing messages currently has it heights for me again

duplicated when clause is ignored
385389 [shevegen@li ] I recieve quite some errors like this.
385391 [stefano.miol] Not that I know of, rb_compile_warning() is invoked from compile.c with
385402 [b.candler@po] It isn't necessarily duplicated. You might have redefined Numeric#+ to
385405 [stefano.miol] True, but there are still two identical "when 1".
+ 385406 [b.candler@po] Numeric#+ might have redefined Numeric#=== (which is the comparison
+ 385413 [ryand-ruby@z] warnings
  385532 [stefano.miol] Sure thing, Ryan.

getting error while requiring win32/sound
385390 [hi.tech1a@gm] I keep getting this error

setInterval for an action
385393 [hi.tech1a@gm] I went to http://snippets.dzone.com/posts/show/3807 and wanted to set an
385409 [abinoam@gm i] I didn't understand it. Could you explain it better.
385423 [hi.tech1a@gm] yes

[ANN] Cri 2.0, a tool for building CLI apps
385394 [denis.defrey] A while ago I released Cri 2.0, a tool for building commandline

Array#each vs. Array#each_index iteration
385395 [jakekaiden@y] hey folks,
+ 385396 [stefano.croc] Because Array#index returns the index of the first occurrence of the argument,
+ 385397 [mayank.kohal] The documentation clearly says that index method will return the index of
+ 385398 [jakekaiden@y] i was indeed missing something obvious - thanks for pointing it out!
  + 385400 [stefano.miol] Be careful not to think that a method *knows* that it's being used in
  + 385427 [shortcutter@] Have you been referred to #each_with_index already?
    385428 [markus@fi ch] Do you mean Array#each_index ?
    + 385429 [shortcutter@] My bad.  No, I meant #each_with_index.
    + 385446 [sutniuq@gm .] For the other #each methods you may have to look at the Enumerable

Better name for #zip_with
385410 [transfire@gm] [1,2,3].zip_with([6,5,4]) { |a, b| 3 * a + b } #=> [9, 11, 13]
+ 385411 [johnf@bi sb ] Doesn't zip basically do that already?
| 385416 [transfire@gm] Actually, I didn't know zip took a block. Good to know. So yea, that
+ 385412 [chris.hulan@] IT seems closer to map than zip (IMHO) so maybe map_with ?
| 385418 [transfire@gm] #map_with does read right, doesn't it. hmm...
+ 385414 [johnf@bi sb ] is the same as the result of
  385417 [transfire@gm] Ah, right. `#zip_map` would makes sense then. But per your last post,
  385455 [shortcutter@] Not sure whether I find this a good idea.  Reason: #map has overhead of
  + 385733 [cmdicely@gm ] So, don't do that; just return an Enumerator that returns the
  | 385760 [shortcutter@] ot
  + 385763 [transfire@gm] Thanks. If I add to Facets I'll utilize this.
    385770 [shortcutter@] Wouldn't that be
    385773 [adam@ap es o] What about cutting to the point of the method and calling it #zip_map (first
threads.html
top