234174-246860 subjects 234645-238016
what is dup?
234369 [moose56@gm i] I am playing with an example in the ruby cookbook where a shuffle
234372 [wilsonb@gm i] dup returns a copy (duplicate) of the object. In the above code, it is
+ 234398 [tamreenkhan@] ...
+ 234404 [moose56@gm i] Thanks,
ODBC Oracle error for indexes() call "Invalid string or buffer length"
234376 [christopher.] I have a Ruby program talking to MS ODBC Driver for Oracle on WinXP.
Array Default Values
234381 [olsonas@gm i] I'd like to have my array behave like this: If I add an item to a,
+ 234387 [dgoodlad@gm ] a = Array.new(5, " ") # => [" ", " ", " ", " ", " "]
| 234389 [tamreenkhan@] ...
| 234396 [olsonas@gm i] 1. I'm golfing, so short length would be preferred.
+ 234388 [chunyun.zhao] ...
234392 [chunyun.zhao] ...
Problem with login example in Agile Web Development with Ruby 2nd Edition
234391 [chhenning@gm] Rails lists, at all. If I'm wrong here please let me know where the
+ 234406 [jan.svitok@g] There is a google group specifically for Rails, so you might get
+ 234433 [dave@pr gp o] Did you install the version of Rails cited inside the book's front
+ 234525 [gmarik@gm il] Didn't you forget = in the construction above? So it should look
+ 234527 [jan.svitok@g] No. See DHH's blog. You either use = or do...end (if you have 1.2) and
+ 234568 [dave@pr gp o] No, that form is what should be used in 1.2. It works as long as
inspect...and modify a proc object?
234402 [railsinator@] I'm trying to understand proc objects.
Calculate number of non-weekend days between two dates?
234405 [the.chrismo@] Any date/time libraries out there (I can't seem to find anything in the
234421 [dale.martens] require 'date'
234425 [gavin@re in ] require 'date'
234430 [the.chrismo@] ...
rubygems soap/wsdlDriver issue
234407 [alinutzzu@ya] Recently I discover one problem into one of my Ruby scripts.
234411 [jan.svitok@g] You are mixing two versions of soap4r: one bundled with ruby, the
234412 [alinutzzu@ya] Thank you,
Fwd: Please Forward: Ruby Quiz Submission
234414 [james@gr yp ] ...
Ruby .NET, RubyCLR, and Assemblies
234419 [gavin.kistne] ...
234436 [jgbailey@gm ] This is not a behavior defined by RubyCLR (the only of the three I'm
Ruby .NET, RubyCLR, and Assemblies
234426 [gavin.kistne] (Resending again as plain-text (hopefully) to ensure it makes it through
234439 [ssmoot@gm il] The short answer is no. RubyClr uses .NET's DynamicMethod.
236788 [adeveloper.g] Can you provide some examples of object-identity issues? Or perhaps
236806 [brabuhr@gm i] ...
RubyCLR - passing in a parameter of UInt16
234429 [bvanderw@gm ] I am trying to use RubyCLR to access an existing .NET assembly. When I
234438 [jgbailey@gm ] It's a bit of a hack, but I'd just use the System.Convert method that
234479 [bvanderw@gm ] Justin - that's one of the things I tried, and it doesn't appear to
[ANN] RubyGems 0.9.1
234434 [drbrain@se m] = Announce: RubyGems Release 0.9.1
+ 234445 [parragh@da k] Where do I go wrong?
| + 234447 [lyle.johnson] I'm seeing almost the same thing here (running Mac OS X if it
| | 234450 [james.britt@] As of RubyGems 0.8.0, library stubs are no longer needed.
| + 234456 [drbrain@se m] The gem indexer isn't running. Please wait while Tom fixes. All
| + 234503 [ryand-ruby@z] To be clear, because of rubygems poisoning indexing has been turned
+ 234500 [unbewusst.se] $ sudo gem pristine --all
RedCloth and Rails
234437 [psychotron@e] With my hoster i don't have the RedCloth gem.
Publishing a gem
234458 [rubyonrails@] I have a gem, all packaged and ready for installation, on rubyforge.
+ 234461 [msoulier@di ] It's supposed to be automatic. It was for mine.
+ 234463 [tom@in oe he] This process has been temporarily suspended, more details are on this
Alternate URI escaping mechanisms?
234459 [dwfrank@gm i] URI#escape escapes to UTF-8. I need to escape to Latin-1 for Amazon's
+ 234462 [alex@bl ck e] Iconv may be what you're after...
+ 234464 [angus@qu va ] URI#escape escapes to UTF-8 because your string is UTF-8-encoded. Use
234466 [angus@qu va ] ...
234472 [dwfrank@gm i] I found Iconv, but my head was bent the wrong way. I was escaping, then
Solutions for deep class paths
234460 [luke@ma st p] I've currently got a very flat code structure in a large code base
+ 234474 [gsinclair@gm] module Puppet; module OSAL; class Type
| 234489 [luke@ma st p] module Puppet; module OSAL; class Type
+ 234486 [gwtmp01@ma .] module Puppet
234490 [luke@ma st p] Well, the constants in this case are all of the class constants, not
234491 [gwtmp01@ma .] If each class has its own collection of constants, why aren't you
234496 [luke@ma st p] Well, that's kind of what I want, except that in this case the
234521 [gareth.adams] Personally, I don't see this as a bad thing. I would say it's a good idea to use
[ANN] RubyGems 0.9.0 and earlier installation exploit
234465 [drbrain@se m] ...
images in FXRuby
234467 [rajsahae@gm ] I'm new to FXRuby, and I'm having a problem with displaying images. I'm
+ 234469 [rajsahae@gm ] That's a typo. Should say FXJPGImage.new. But that's not the problem,
+ 234482 [lyle.johnson] Right offhand, I'm not sure, but the problem may be that you're
234587 [rajsahae@gm ] Thanks for your help. Just in case anyone searches this in the future,
images in FXRuby
234468 [rajsahae@gm ] I'm new to FXRuby, and I'm having a problem with displaying images. I'm
ruby-DBI and SQLite3?
234477 [jos@ca no k.] Is anybody interested in working with me on updating ruby-DBI to support
234485 [mkasick-rt@c] There already exists two implementations of a SQLite3 dbd that I'm aware
+ 234493 [jos@ca no k.] Hey Mike,
+ 246694 [jos@ca no k.] I have been using sqlite3-ruby for a while now and it seems to work fine.
234498 [anjum.pathan] ...
+ 234501 [gregory.t.br] A lot of times all you need to do is try again. There is some work
| 234512 [phillipsds@y] ...
| 234516 [jean.helou@g] export http_proxy="http://<proxy_address>:<proxy_port>/"
+ 234526 [jan.svitok@g] it's either that (1) you have a network problem, or that (2) rubyforge
234534 [tom@in oe he] Gems are still working, it's just that since Sunday new gems are not
RubyConf 2006 Presenter? Send me your materials!!!
234505 [ryand-ruby@z] I've been hosting the rubyconf presentation materials for the past 5
+ 234550 [Bil.Kleb@NA ] Please? Pretty please?
+ 234555 [ntalbott@gm ] Linking would be preferred.
+ 234631 [gregory.t.br] ...
234506 [bruce.woodwa] Howdy,
234532 [anjum.pathan] ...
mysql error handle
234513 [bebitzaa@ya ] I am making an connection with mysql
+ 234517 [alex@bl ck e] conn = nil
| 234519 [bebitzaa@ya ] unexpected kRESCUE, expecting kEND
+ 234520 [_mwryder@wo ] Couldn't you create a separate account with a single table with only the
234523 [bebitzaa@ya ] No i create users on mysql with rights on tables, this is why i chose
Re: RubyGems 0.9.1
234518 [am@ar bo .d ] Successfully installed rubygems-update, version 0.9.1
+ 234531 [ryand-ruby@z] I don't use your OS, so I can't help.
+ 234566 [GENIE@pr di ] Get gem from http://rubyforge.org/frs/download.php/16451/rubygems-update-0.9.1.gem
+ 234599 [kevwil@gm il] You probably have rubygems-update-0.9.0 installed as well.
234856 [andrewskegg@] I seem to be having some trouble with thre "-p" or "--http-proxy" option
234862 [andrewskegg@] export HTTP_PROXY = "http://proxy:3128"
+ 234939 [f@an re s- .] How about checksums to verify that the gem you get from a mirror is the
+ 236089 [jbirdjavi@gm] I'm having this issue too (running on Windows, though). Shouldn't this
236132 [drbrain@se m] You added it where? Please submit a patch. (If you just respond to
236162 [andrewskegg@] I can verify this fix works - at least for me :)
236165 [jbirdjavi@gm] I added this as a bug actually (#8152). This fix (to quote the
236192 [drbrain@se m] Thanks, that'll help me track this down for real.
[ANN] Getopt/Declare v1.20
234522 [GGarramuno@a] Regular Expressions
String pleasure (was: [ANN] Getopt/Declare v1.20)
234524 [benjohn@fy h] The library looks groovy.
+ 234548 [GGarramuno@a] You don't, really, but it is better to use '', to have other
+ 234556 [twifkak@co c] '' tells Ruby not to interpolate, while the default (without quotes) is
234589 [gavin@re in ] The above is correct, unlike (I think) some other answers in this
234591 [gavin@re in ] #=> a2
234598 [benjohn@fy h] That's a nasty bug in ruby you've found there ;-)
Intensive computing: Ruby? Ruby/C? Pure C++?
234529 [ shot@ho .p ] with C extensions (InlineRuby, ruby2c, etc.) and pure C++. I'll try to
+ 234535 [benjohn@fy h] I'd go with prototype in Ruby, probably.
| + 234536 [benjohn@fy h] P.S. You may also find that there are languages or tools out there that
| + 234605 [ shot@ho .p ] Thanks a lot for taking the time to reply, Benjohn!
| + 234620 [w_a_x_man@ya] LuaJIT probably won't be as fast as OCaml, but I think Lua
| | 234693 [w_a_x_man@ya] Ruby 245.763 seconds
| | + 234776 [w_a_x_man@ya] function report_primality( tbl )
| | + 234782 [ryand-ruby@z] def prime(n)
| | + 234790 [w_a_x_man@ya] You're saying that pure Ruby took less than 2 seconds?
| | | 234827 [ryand-ruby@z] Yes, on my computer it ran in 2 seconds, but I didn't have the same
| | | 234861 [w_a_x_man@ya] Your mentioning bignums made me wonder whether my previous
| | + 234846 [mguterl@gm i] ...
| | 239626 [ryand-ruby@z] From my fingers? I think what you mean to ask is where is optimize.
| + 234716 [umptious@gm ] It sounds like you need to know C++, if only for political reasons.
+ 234601 [ryand-ruby@z] Some work has been done in this area to some extent. Check out RHDL
| 234969 [ shot@ho .p ] Thanks a lot for your reply, Ryan!
| + 234973 [ara.t.howard] if you can make it parrallel you may also want to check out ruby queue
| + 248843 [pbooth@no oi] Shot,
+ 234610 [ shot@ho .p ] Thanks a lot for your reply, Ed!
234617 [ara.t.howard] don't forget about ruby/dl. you can simply call c functions directory with
234530 [Peter.Meier9] I'd like to use the package Ruby/Password.
Ruby on Linux with date extension
234533 [smitsr@gm il] I want to compile ruby on Redhat Enterprise 3 with the "date" and
234537 [josselin@wa ] I am checking email addresses using RFC2822::EmailAddress
234549 [ruby@ml ic m] it could still be 'me@somehost' - and as long as your mail service can
234554 [josselin@wa ] thanks a lot
234558 [bitdoger2@ya] ...excuse me....but..how do i load this module or is it a constant???
234583 [dom@he en ar] module RFC822
234538 [anjum.pathan] ...
Accessing CVS from within a ruby application
234539 [Rob.Garwood@] I need to access a CVS repository (read only) from within a ruby
+ 234540 [farrel.lifso] ...
| + 234542 [Rob.Garwood@] CVS not CSV lol :-)
| | 234544 [farrel.lifso] Oops! My bad!
| + 234543 [vorn@ni ht t] Er... not quite. CVS is Concurrent Versioning System, an open source
| 234545 [Rob.Garwood@] When I said CVS not CSV, it was in regards to my original question.
| 234576 [Rob.Garwood@] ok, don't worry about this now. It was quicker to write my own.
+ 234608 [GENIE@pr di ] I've had generally good luck with RSCM
235852 [Rob.Garwood@] I used a system call to interact with CVS from a command prompt, as it
Aborting a rake task which uses a subprocess
234546 [alex@bl ck e] I've got a rake file which I use to deploy a website. This rakefile
determine arguments passed to a method at runtime
234551 [rubyeu@ya oo] Is that possible?
Reading from $stdin
234557 [adrian@ha g1] I need to read from a usb connected barcode reader and I thought ruby
+ 234565 [shortcutter@] Do you actually redirect stdin to read from that device?
| 234633 [adrian@ha g1] In answer to your question, no I don't redirct stdin, should I?
| 234653 [shortcutter@] Well, if you don't the script will sit there and wait for you to enter
| 234712 [adrian@ha g1] Well I have written a small script to read from stdin and guess what, it
| 234717 [martin.portm] each_with index reads one line at a time. A line needs to be
| 234797 [adrian@ha g1] I must be really stupid but I don't understand this at all, How does the
| 234831 [wardies@gm i] [what follows has nothing to do with Ruby; it concerns device setup]
+ 234579 [ara.t.howard] but this is __exactly__ what you told it to do?
234634 [adrian@ha g1] Hmmm I need to read and digest this. Thankyou
Passing math method to another method?
234560 [caldridge@gm] +, -, **, ^
+ 234562 [james@gr yp ] => nil
+ 234563 [fxn@ha hr f.] a.send(to_do, b)
+ 234564 [Rob@Ag le on] => nil
+ 234567 [shortcutter@] Several ways to do it
+ 234588 [caldridge@gm] Wow. Thanks for the input guys.
| 234592 [shortcutter@] ** SPOILER **
| 234594 [caldridge@gm] What's top post? (sorry, I'm new to google groups --I put my reply at
| 234596 [caldridge@gm] Cool... I think this works :-)
| 234699 [shortcutter@] Basically if you think this further through, what you are trying to do
+ 234590 [invalid@gm .] Any specific reason for to_sym's appearing there?
234593 [shortcutter@] Yes, my ignorance. :-)
Japanese mailing list
234571 [ruby.hardwar] I have posted a few (23 so far) English translations of some subject
Ruby on Rails Software Engineer Opportunity-Baltimore, MD
234573 [blkeihm@be l] I am in the process of recruiting for a firm located in the Baltimore,
Net::SFTP transferring 200mb+ file problems
234575 [manjiro@gm i] I'm using the Net::SSH and Net::SFTP gems.
234654 [pgquiles@el ] A fix is needed but the author says he has no time.
234581 [TODO01@gm il] the page display this message..:Change this error message for
Ruby && PDF generation
234595 [Reid.Thompso] I cannot recall if I've posted this link before; regardless, anyone who
234650 [renard@nc rr] great examples -- thanks
234674 [reid.thompso] yeah, perhaps we should mention to the maintainer that the list might be
234680 [nephish@gm i] ...
Eventmachine - pure Ruby port
234597 [markhaliday@] There was talk this past fall of a pure Ruby port of Eventmachine that
234624 [jameskilton@] ...
+ 234635 [markhaliday@] This is something I'm wondering about. I've seen and used Twisted for
| 234685 [garbagecat10] ...
| 234687 [cremes.devli] I'm looking at adding netstrings support to EM so it's easier to add
| 234739 [garbagecat10] ...
+ 234683 [garbagecat10] ...
output to mysql db
234606 [furfey@gm il] Very new to Ruby and I'm curious if this is possible....
234609 [chris.lowis@] Chris
ActiveRecord find_by_*() - how does it work?
234611 [escoz@ms .c ] I've been trying to understand how the find_by_*() method on
+ 234612 [dblack@wo bl] method_missing
| 234615 [escoz@ms .c ] PERFECT!
| 234616 [escoz@ms .c ] Thanks, Ilan
| 234619 [coder68@ya o] Argghh.. .I am always plugging Dave Thomas's "Agile Web Development with
+ 234614 [coder68@ya o] Your question makes perfect sense and you already figured it out..
+ 234618 [sam@po er ou] Yes, you can write method_missing method that can handle that... though
| 234621 [escoz@ms .c ] Thanks again Ilan!
+ 234629 [rsanheim@gm ] and of course, _Ruby for Rails_.
234632 [escoz@ms .c ] Thanks a lot, Rob!
Minor RAA tweak - longer project names
234613 [djberg96@gm ] Any chance we could get the project name limit increased from 15 to 32
where is $: defined?
234630 [andreas_s@ho] I'm installing my own ruby but need to use the other gnu tools from my
234638 [jan.svitok@g] I suppose the default is compiled-in (the configure --something should
234663 [andreas_s@ho] I don't see that incorrect path for $: defined any where in config* file or
ObjectSpace.define_finalizer does not run some procedure structures
234642 [paul.denize@] I have Ruby 182-15 on WinXP
+ 234652 [shortcutter@] There's a subtle difference between the first and the other two: the
+ 234660 [ara.t.howard] finalizers cannot refer the to object being finalized. in the second and
234701 [shortcutter@] Still the fact remains interesting that at least one of the other