379116-380187 subjects 379525-395906

^ [ANN] rubygems-update 1.6.1 Released
379334 [drbrain segm] rubygems-update version 1.6.1 has been released!
379375 [julian coret] Doesn't an announcement usually add the diff in terms of feature set for upg=
379376 [ben bleythin] upgrades? Ie what's new?
379377 [julian coret] Shouldn't people actually READ emails?

^ Same file in different apps
379336 [hemant.bharg] Well say if i need app/models/abc.rb of an existing application ABC into
379342 [samykaruppa ] I think following suggestions is help to solve your problem.

^ OS X 10.6 + 64bit Ruby + 32bit database?
379337 [charles tour] Is this combination a no-no? What issues do I expect to come across?
379338 [cmdjackryan ] If the DB adapter is pure Ruby, you shouldn't have any issues. If the

^ parsing json document
379339 [vahagvardany] am just begening programming with ruby))
+ 379340 [samykaruppa ] It's a common problem for beginners. :) You just include the 'rubygems' at
+ 379341 [vahagvardany] Thanks!)) it's works on my computer))
  379351 [anurag08priy] Maybe you don't have json gem installed there. Use the gem command to find.

^ Splat operator gives an SystemStackError
379348 [g.diemant gm] when I'm running this programm
379349 [justincollin] You are trying to pass in 150,000 arguments to a method. Surprisingly,
379350 [g.diemant gm] So, you think there is a limit to the number of method arguments (at

^ Removing methods from an inherited class
379356 [ibc aliax.ne] it possible to remove method "hello" in the definition of class B?
379359 [mentionuse g] Are you looking to do this to make it use A#hello instead of B#hello ? If
379361 [ibc aliax.ne] Kernel#undef_method is exactly what I was looking for :)

^ printing regex results
379362 [coding25 yah] How do you get Ruby to print the string that matches a certain regex
+ 379363 [ibc aliax.ne] str = "aaaDDDbDDDcDDDgHHyHjHJkkjUUh"
| + 379364 [ibc aliax.ne] str = "aaaDDDbDDDcDDDgHHyHjHJkkjUUh"
| + 379372 [bbxx789_05ss] puts arr.class
|   379374 [samykaruppa ] try this,
|   379379 [bbxx789_05ss] Your regex drastically changes the meaning of the original regex.  Your
+ 379367 [bbxx789_05ss] scan() returns an array of full matches--unless you have groups in your
+ 379368 [bbxx789_05ss] scan() returns an array of full matches--unless you have groups in your
+ 379369 [bbxx789_05ss] Because you are interested in getting the whole match, create a group
+ 379370 [coding25 yah] Thanks, I got it working now.

^ `dir_config': undefined method `split'
379365 [bellcolt hot] Having difficulty installing 'gem install mysql2'.  Getting these
379366 [djberg96 gma] e'

^ [ANN] posix-spawn 0.3.0 -- first public release (codename, "tigers blood")
379378 [rtomayko gma] <https://github.com/rtomayko/posix-spawn>
379380 [headius head] Did you know about the "spoon" gem? It's a very simple binding of
+ 379381 [headius head] FWIW, https://github.com/headius/spoon
+ 379385 [rtomayko gma] Yes. I experimented with using spoon for JRuby support in Grit some
  379387 [rtomayko gma] I was able to make posix_spawn_file_actions_adddup2() and
  379397 [headius head] As you discovered, in JRuby IO.fileno is simulated. This is mostly

^ Is there a correct ruby1.9 document ?
379384 [raincolee gm] I saw http://www.ruby-doc.org/core/ but there are some mistakes and missing

^ uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
379386 [rajesh.13kit] i have installed rails 2.3.8 in my machine. after the installation when
379389 [b.candler po] "* RubyGems no longer requires 'thread'.  Rails < 3 will need to add

^ %s[ I think %s[] should build an array of symbols instead of a single symbol ]
379388 [yimutang gma] I find %s[] builds a single symbol.
+ 379403 [botpena gmai] and so everyone elses programs :)
+ 379518 [shortcutter ] Or even

^ UTF-8 support - still stuck
379391 [tluedeke exc] OK, I appreciate the feedback on my last post regarding pattern matching
+ 379392 [sutniuq gmx.] Encode your string as UTF-8 and match it against an UTF-8 regexp.
| 379393 [sutniuq gmx.] What I forgot to mention: Some editors put an invisible BOM (Byte Order
+ 379396 [bbxx789_05ss] You can try and troubleshoot the problems you are having by determining
+ 379398 [bbxx789_05ss] By the way, if you read the strings from a file, it might be easier to
+ 379408 [tluedeke exc] ========================================
| + 379409 [sutniuq gmx.] Don't leave a blank line between the shebang line and the magic comment.
| + 379564 [bbxx789_05ss] In ruby, there is a variable called $KCODE.  If you set it to "UTF-8" (or just "U"), then it makes regular expressions match characters rather than single bytes.   If you set $KCODE to "N" (the default), then regular expressions will match single bytes (unless you use the /u flag on your regular expression).
| + 379565 [brabuhr gmai] Are you absolutely certain that your file is UTF-8 encoded?
+ 379457 [axyd80 gmail] Add this line to your ~/.profile.

^ Multi-dimensional arrays not working
379399 [e.j.jurman g] I am trying to make a 3D grid using an Array of Arrays of Arrays but am
379401 [hyagni gmail] Array's initial value is not copied to each block, but every field
379404 [e.j.jurman g] Thanks! Worked perfectly... I was trying to figure out why it wasn't

^ Blank lines generated by ERB - Can we prevent them?
379402 [RichardDummy] Ruby 1.8.6
+ 379437 [b.candler po] It looks like erb comments don't support the -%> way of preventing the
| 379448 [RichardDummy] I didn't know there was an erb command-line executable.  Thanks for
+ 379472 [shortcutter ] al/Ruby_and_the_Web_Using_eruby.html

^ What does "ARGF.class" mean?
379406 [yimutang gma] ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
+ 379407 [developer al] #define argf_of(obj) (*(struct argf *)DATA_PTR(obj))
| 379411 [yimutang gma] I was confused with its class name "ARGF.class". If ARGF is an instance
| 379425 [developer al] Right, I understand. I'm just pointing out that ARGF is, in fact, not a real class, and that Ruby treats ARGF differently from real classes.
+ 379442 [bbxx789_05ss] First note that your output is not ARGFCLASS.  You really are getting no
  379453 [gwtmp01 mac.] class
  379567 [bbxx789_05ss] Having a class actually named "ARGF.class" makes me think that ruby is

^ Ruby - Missed some core computer science world ?
379410 [lucky.develo] I am doing ruby programming and been developing rails3 apps for some
+ 379415 [rubfor recit] Modern computers can have 100 cores and a zillion bytes of memory. There
| 379417 [gerard.cahil] I agree, in the Rails/Ruby community there is much more emphasis on beautiful code, testing, and maintainability.
+ 379416 [sandor.szuec] have
+ 379418 [lucky.develo] We can always say maintenance is more good than any other attribute. But
+ 379419 [cmdjackryan ] Algorithms are algorithms, datastructures are datastructures. They
+ 379421 [vderyagin gm] ...
| 379422 [lethaljellyb] Wow, that is really awesome. Thanks for sharing!
| 379426 [developer al] ...
+ 379473 [shortcutter ] Certainly not for me but it may be the case for the community on average.
+ 379476 [rubfor recit] Robert
| + 379480 [shortcutter ] No, I don't think so.  I worry about DS&A all the time.  When I have a
| | 379482 [mentionuse g] I could be wrong, and I hope this makes sense, because it's not entirely
| | 379486 [shortcutter ] Well, that could be.  Then "worrying about data structures and
| + 379484 [cmdjackryan ] How so?
+ 379489 [tony.arcieri] Not at all. I think Rubyists are some of the foremost users of Redis, a "DSL

^ Re: %sshould build an array of symbols instead of a single symbol ]
379412 [yimutang gma] If %s[] builds array of symbols, it will save numerous

^ How to get class of BasicObject ancestor (Ruby 1.9.2)?
379423 [axyd80 gmail] There's no :class method on BasicObject, is there any way to get class
+ 379427 [sean.ohalpin] module DefineClass
+ 379433 [bbxx789_05ss] You can inherit from BlankSlate instead of BasicObject, which was
| 379436 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
+ 379435 [bbxx789_05ss] ...or even simpler: just open up BasicObject and monkeypatch a class
| + 379443 [adgar carbon] BasicObject as a singleton already has the class method (and it returns =
| | 379446 [sean.ohalpin] module DefineClass
| + 379447 [sean.ohalpin] You've changed the #class method of the BasicObject /class/, not the /insta=
+ 379456 [axyd80 gmail] Thanks for advices, good news for me is that I have small amount of

^ RCAP 0.4 Released
379429 [farrel.lifso] The Common Alerting Protocol is a lightweight standard to facilitate
379431 [sophrinix gm] This is rather fascinating. How exactly does the JSON generation and parsing
379432 [farrel.lifso] The JSON addition is purely for my own usage. I read and parse the CAP

^ (ArgumentError) - in `initialize': wrong number of arguments (4 for 0)
379430 [52w7te9ara s] Greetings all,

^ ruby script
379434 [emstolfo gma] call the method from the main method.  How do I do that?  Do I have to
+ 379438 [b.candler po] Nope (although using modules can make your code easier to reuse and/or
| 379440 [emstolfo gma] to
+ 379439 [sutniuq gmx.] Ruby doesn't have a main method. Your script starts being executed at

^ class cannot find module
379441 [catsquotl gm] I have a class and a module I want to mix in..
379444 [josh.cheek g] Include doesn't work with files. Where is your file that you have defined
379466 [catsquotl gm] Thank you, I must have missed the require 'file' part in the text book.

^ Module Mixin & Class Variables
379445 [jp.billaud g] Hey,

^ Class Variables in EigenClass
379449 [jp.billaud g] I am using Ruby 1.8.7 and I bumped into a weird behavior regarding
+ 379450 [jp.billaud g] Actually it seems that for some reasons the @@test class variables ended
| 379454 [gwtmp01 mac.] ended=20
| 379637 [jrmair gmail] Hey,
| 379642 [gwtmp01 mac.] which=20
| 380188 [jrmair gmail] No, it *does* create a new lexical scope -- did you test it ? :)
| 380210 [gwtmp01 mac.] I think it was my sloppy terminology that was confusing.  My intent was that the phrase 'lexical scope' would refer to the scope that was relevant to constant and class variable resolution.  As you've pointed out, that phrase just is not specific enough as there is a lexical scope created for local variables by the singleton class notation (and blocks).  So there are at least two different types of lexical scopes that affect name resolution of variables and constants.  I'm not sure if there is any standard terminology used to differentiate them.  Perhaps that is part of the confusion.
+ 379459 [jp.billaud g] Thanks Gary for the explanation. I was hoping the self logic would have
| 379494 [gwtmp01 mac.] They are not the same and are closer to the way constants are looked up =
+ 379619 [jp.billaud g] Alright that explains the situation even though I feel that the dynamic
+ 380249 [sony.fermino] def eigen

^ paypal payment cheap wholesale soccer jersey baseball jerseys basketball jerseys NFL NBA MLB NHL jersey
379451 [zhang.wenqi ] paypal payment cheap wholesale soccer jersey baseball jerseys

^ Re: [Swig-user] Ruby director question
379452 [tdihp hotmai] ...

^ mysql -- cannot connect (can in Perl)
379455 [jlpoole56 gm] My goal: to allow database connections to a remote database from Google
+ 379458 [sophrinix gm] I don't know about dbi, but mysql2 gem is what I use for working with mysql.
+ 379460 [jlpoole56 gm] I believe that mysql2 requires that you have installed a full instance
| 379461 [sophrinix gm] it does require libmysql, but other than that, I am not aware of it
| 379462 [jlpoole56 gm] If libmysql is required, should the instructions and/or the gem
| 379464 [sophrinix gm] I am rather shocked that you have having such difficulties.
+ 379477 [jlpoole56 gm] I think the Perl script that is run on the same Windows machine as the

379463 [jialiuonline] PAYPAL payment wholesale SHOES(UGG BOOTS, Timberland boots ,Munich

^ Checking if two files are the same
379467 [coding25 yah] I have a got a few folders which may have same files under different
+ 379468 [fxn hashref.] There's File.compare.
| + 379474 [Reid.Thompso] +1
| + 379483 [colinb2r goo] I'm interested in any (Ruby) solutions (actual or ideas) for this, as
|   379485 [fxn hashref.] I have played with this as an exercise. The idea is to filter
+ 379514 [b.candler po] Here is a little ruby script I use for finding and/or deleting duplicate
| 379517 [shortcutter ] irb(main):008:0> h=3D{};
+ 379521 [b.candler po] It looks pretty obfuscated to my eyes, but each to his own.

^ basic programming question, help please
379469 [sbstn26 yaho] class Square
+ 379470 [g.diemant gm] You want a class method, not an instance method.
+ 379471 [mayank.kohal] The class method in Ruby is represented using self.<method name> or <class
| 379495 [gwtmp01 mac.] <class
| 379501 [echristopher] ss
| + 379502 [mayank.kohal] After putting @@x = "defined in B" in class B it shows "defined in B" and
| | + 379505 [gwtmp01 mac.] See my reply to Eric Christopherson's post for an explanation.
| | + 379645 [echristopher] fy
| |   379650 [ap1900 gmail] Those version are known to have some quarks like that.  However, one guy did
| + 379504 [gwtmp01 mac.] You have to be very careful here if you are experimenting in irb, for example.
|   379506 [mayank.kohal] I am very new to Ruby and coming from C++ background, the class variables
|   + 379508 [gwtmp01 mac.] right. Most
|   + 379542 [bbxx789_05ss] Then here's a tip: some experts think class variables should be
+ 379490 [shadowfirebi] If you want to say "Square.count" then you need a class method and that's how you define one.
+ 379492 [bbxx789_05ss] class Square
| 379499 [bbxx789_05ss] Square.class_meth1
+ 379509 [smartandy007] Class methods are methods that are called on a class and instance

^ unsubscribe
379475 [felix deasil] unsubscribe

^ Hamming Distance
379478 [mail maasha.] What is the fastest way to calculate the Hamming Distance between two
379481 [wyhaines gma] There are a bunch of ways. There isn't a built in xor of strings in
+ 379488 [shortcutter ] I'll throw in two other solutions for whoever wants to do a benchmark.
+ 379491 [wyhaines gma] Actually, I should revise that statement.  To get it really fast with
  379503 [botpena gmai] am staying w your modest narray implem ;-)

^ http post and authorization header for twitter
379487 [s.w.timko gm] I am trying to send an authorization header to the twitter api
+ 379500 [bbxx789_05ss] require 'net/http'
| 379537 [s.w.timko gm] Thanks for the reply! So i tried that code and got this error: "Failed
+ 379538 [s.w.timko gm] Thanks for the reply! So i tried that code and got this error: "Failed
| 379543 [bbxx789_05ss] No requires?
| 379544 [s.w.timko gm] require "oauth"
| 379545 [bbxx789_05ss] ...and what requires did the code I posted use?
| 379547 [s.w.timko gm] I had required net/http but just added net/https as well and I still get
+ 379540 [s.w.timko gm] here are my headers. am i doing this correctly?
| 379546 [bbxx789_05ss] Those don't look like http headers.  Http headers look like
| 379548 [s.w.timko gm] Now that we have our signature, we have everything we need to make the
+ 379549 [bbxx789_05ss] The http header name is "Authorization", so you have to write something
| + 379551 [s.w.timko gm] Should it be like this (I made the value one giant string)?
| + 379552 [blowmage gma] FWIW, the headers are the third parameter to Net::HTTP#post and should
|   379553 [s.w.timko gm] Thanks Mike,
+ 379562 [bbxx789_05ss] Thanks for the save Mike.

^ gem to deal with config file / program options
379493 [shadowfirebi] Short version:  What gems do people use to deal with program options in a YAML file and taken from the command line?  I seem to have too much choice to make a sensible decision as to which to use.
379507 [chris chrisk] For command line arguments, Ruby's OptionParser is a part of the standard
379516 [shadowfirebi] A little more, yes.

^ Forms not seen by Mechanize (US Bank login)
379496 [dantes990 ya] I'm writing a script to login to my bank.  Here's how the login
379498 [brabuhr gmai] * Perhaps there is a way to manipulate the DOM to add the missing form
379566 [dantes990 ya] I tried the mechanize add_field! method and it appears to properly add

^ MacRuby framework in Mac OS X 10.7
379497 [echristopher] I don't know how many people on this list use MacRuby but aren't on


^ cant find header file ruby.h
379511 [bulls66 gmai] error.the error is attached in screen shot.
379519 [shortcutter ] What does "ls -ld /usr/lib64/ruby" tell you?  Does the user have
379522 [bulls66 gmai] deamax@usqlh05d3:~> ls -ld /usr/lib64/ruby
379531 [shortcutter ] Looks OK.
379622 [bulls66 gmai] 1)

^ one9 - a commandline tool to convert 1.8 code to ruby 1.9.2
379512 [gabriel.horn] Introducing one9, a commandline tool to make the upgrade to 1.9.2
379520 [ryand-ruby z] That looks pretty sweet! I'll have to play with that!
379578 [gabriel.horn] now.html

^ Cross-compiling Ruby 1.9.2
379513 [max sparkyma] I am attempting to cross-compile Ruby 1.9.2 for ARM using Scratchbox (am
379515 [b.candler po] This might not help you directly, but you could have a look at how
379640 [max sparkyma] I would probably try building it by hand only as a last resort. I have

^ rb-appscript installation on MAC OS 10.6.3 (Snow Leopard)
379523 [saurabhgupta] I am new user working on MAC OS and try to install rb-appscrip-0.6.0. I
+ 379556 [ryand-ruby z] is
| 379585 [saurabhgupta] Thanks for the reply....
+ 379593 [saurabhgupta] When i Tried again i didnot find any rb-appscript gem under that. The
+ 379783 [matt tidbits] ...

^ Duplicate methods removal in Ruby's TODO ?
379524 [dunric29a gm] as you know for sure, Ruby defines several method aliases of base
+ 379527 [yimutang gma] I just think some methods should add a trailing exclamation mark, which
| + 379530 [shadowfirebi] This bugs me, too.
| + 379535 [mentionuse g] Using bang names to denote receiver-modifying methods is not the convention,
|   + 379539 [josh.cheek g] I think it should become the convention. I consider the bang to be nearly
|   | 380014 [usenet istik] ...
|   | 380018 [josh.cheek g] My point is not that OO languages are immutable, it is that bang methods are
|   | 380039 [shortcutter ] Hmm, I don't find it hard to be remembered that x.gsub! actually
|   + 379559 [shadowfirebi] As the article you link to says: the convention is neither intuitive nor easy to understand.
+ 379528 [shadowfirebi] Good gods, I hope not.  Where would the advantage be, if these methods are just aliases for each other?  And think of the number of programmers you would alienate!
+ 379532 [shortcutter ] These are not exchangeable.
  379533 [dunric29a gm] I'd guess reasons are obvious. You have to remember not only method
  + 379558 [shortcutter ] If your memory gets low you can always swap that page out and reload it
  + 379561 [shadowfirebi] Which would, I admit, be a fine argument.  If it were not for the fact that ruby method names are all so damn intuitive.  I for one don't have to remember anything; the names tell me roughly what the method does.  And there is always ri to remind me of any details.
    379615 [Rob AgileCon] This is why I personally do not use Hash#merge! and prefer Hash#update