197094-376951

197049-253929 subjects 197404-216449

[ANN] Geocoding Goodness
197094 [drbrain@se m] I've implemented ruby bindings for the three major geocoding APIs as
+ 197097 [ara.t.howard] very cool eric.  we'll probably use these this summer so people can view their
+ 197101 [ezmobius@gm ] Very very cool Eric. I have uses for this that I have been putting
  197325 [leslieviljoe] THANK YOU!

Gemspec option to prevent auto-require?
197099 [gregory.t.br] I'm wondering if anyone knows an option I can put in my gemspec to
197104 [drbrain@se m] ruport will be loaded here regardless of rubygems.
197105 [gregory.t.br] That is not what I am referring to.  I don't want fastercsv to be
197109 [drbrain@se m] ruport loads fastercsv.
+ 197111 [gregory.t.br] Eric, I think you are missing something here.
| 197113 [drbrain@se m] $ cat x.rb
| 197114 [gregory.t.br] You are not working against trunk.
| 197118 [drbrain@se m] Then you'll need to provide code I can work with to discover your
| + 197119 [gregory.t.br] svn checkout svn://rubyforge.org//var/svn/ruport
| | 197122 [drbrain@se m] I don't see fastercsv being required when rubygems is involved.
| | + 197127 [gregory.t.br] Okay, maybe i'm not being super clear.  The problem is it's loading
| | | 197135 [drbrain@se m] Well, yes, I was saying I don't see that behavior.
| | + 197128 [gregory.t.br] I get this when I use either -Ilib or call from within lib, because
| |   197133 [jim@we ri hh] I think the difference here is that Eric is probably running with a very
| |   + 197137 [jim@we ri hh] A quick followup...
| |   | 197245 [james@gr yp ] Thank you for pointing this out.  I've released FasterCSV 0.2.1 which
| |   + 197138 [drbrain@se m] Dang, yes, this is correct.
| |   + 197139 [gregory.t.br] Thank you jim.
| |   | 197221 [jim@we ri hh] Oh, don't do this.  The autorequire field in the gem spec is not a
| |   | 197263 [gregory.t.br] Ah, I suspected I was breaking something ;)
| |   + 197141 [gregory.t.br] Yup, that did it! :)
| + 197131 [gregory.t.br] I decided to make a simple example gem to illustrate this.  Here is
|   197136 [drbrain@se m] What happens if you remove this line?
|   197142 [gregory.t.br] Already solved this, but for clarity, I'll answer these questions too.
|   197143 [gregory.t.br] whoops
+ 197218 [james@gr yp ] Ruport loaded.

A Module in a class??
197112 [Eric.Armstro] Ok. Got it. Many thanks. The use of "self" threw

Ruby + Postgresql
197117 [tallison@ta ] First, I installed DBD/DBI for my Debian box and I'm not finding
197216 [tony@tw nc d] It is a Debian annoyance, the output of 'aptitude show ruby1.8' states
197231 [tallison@ta ] Thank you very much.

[ANN] NokiaFS
197121 [wbohl@ra sa ] Just uploaded first alpha version of NokiaFS to Rubyforge.
197191 [benjohn@fy h] I may well take a look, thanks!

Re: Getting a list of Processes
197124 [botp@de mo t] # http://msdn.microsoft.com/library/default.asp?url=/library/en-

Processing mixed content with REXML
197132 [Eric.Armstro] Element.each_element gives the element children
+ 197194 [shortcutter@] If I'm not mistaken each_element works recursively - so you get all children.
+ 197198 [pedrocr@gm i] Element#to_a will give you an array with everything. Element#each will
  + 197321 [Eric.Armstro] Interesting. Your sure they operate on all nodes,
  + 197326 [Eric.Armstro] You did indeed speak truly. Thank you very much.
    197333 [shortcutter@] I don't think you will see them. CDATA is really just a way to encapsulate text.
    197348 [Eric.Armstro] Thanks for the comments, Robert. I don't mind that
    197427 [shortcutter@] I didn't even notice that your email address end in @sun.com when I
    + 197556 [Eric.Armstro] /Excellent/ tips. Thanks much. I'll digest and apply.
    + 197621 [pedrocr@gm i] rdoc should probably have some way to mark methods/modules that can't

NewB question on data structure ruby
197148 [psethi@gm il] I am trying to parse variables from a simple data structure/class.. I am

Distributed scripting.
197150 [tanushree.bh] ...
197154 [rubyfan@gm i] Not entirely sure what you're getting at: Do you want to run the same
197159 [tanushree.bh] ...
197161 [rubyfan@gm i] There used to be something called TaskMaster which I created for doing

Re: Wiki recommendations? (Reviving the old Instiki?)
197151 [rubyfan@gm i] It's unfortunate.  Instiki used to be a 'no-brainer' to setup.  It may
+ 197157 [dave@bu t. d] gem install instiki --version "< 0.10"
| 197223 [leslieviljoe] That's odd, I don't remember any problems and I am running 0.10.2. I
| 197237 [assaph@gm il] 0.10.x has upgraded to rails for the view/controller part - it still
| 197367 [rubyfan@gm i] What were the issues with Madeleine which caused it to be replaced with AR?
| 197369 [assaph@gm il] Speaking from personal perspective, it's was a general instability
+ 197242 [reid.thompso] for personal use see http://www.tiddlywiki.com/  and it's derivatives/

Re: NewB question on ruby data structure
197160 [psethi@gm il] To Clarify more, How would I get the data "Hello World" out from the
197165 [logancapaldo] Try using p @result.methods to figure out what the method is called.
197174 [psethi@gm il] Here is the code. I want to get the value returned by the web service,
197187 [logancapaldo] After reading the source for SOAP::Mapping::Object my guess is

impossible to sort a hash by key?
197168 [   ok@yu .d ] is it impossible to sort a hash by key?
+ 197170 [dave@bu t. d] Yes, because hashes are un-ordered containers.
+ 197172 [farrel.lifso] Hashes are by definition nonsortable. There is no guarantee that the
+ 197173 [logancapaldo] A hash's order is not guaranteed. If you want to display the hash in
| 197183 [   ok@yu .d ] Dave, Farrel, Logan - Thanks for your quick replys!
+ 197184 [shugotenshi@] Hashes are unordered, an "ordered hash" is an oxymoron.
| 197210 [pbattley@gm ] a = [[:a, 1], [:b, 2], [:c, 3], [:d, 4]]
| + 197211 [pertl@gm .o ] => [[:a, 3], [:b, 2], [:c, 1]]
| + 197213 [pertl@gm .o ] ...
|   197371 [daniels@pr n] h.to_a.sort_by {|k,v| k.to_s }
|   197373 [vjoel@pa h. ] h.sort_by {|k,v| k.to_s }
+ 376951 [sony.fermino] h = ENV.to_hash

Does Ruby expect module support multiple selections?
197182 [jenixg@gm il] I want to use PTY.spawn(some shell program) and then use expect method
197186 [logancapaldo] Well I just looked at the source, and you can do exactly this. In
197202 [jenixg@gm il] Many thanks.

Article on screen scraping w HTree+REXML, RubyfulSoup, WWW::Mechanize
197214 [peter@ru yr ] I am investigating the possibilities of screen scraping/web extraction/
197222 [james@gr yp ] This was a very good article.  Thank you for sharing it with us.
197243 [peter@ru yr ] Thx!

Ruby Weekly News 5th - 11th June 2006
197215 [timsuth@ih g] Use the link above for a nicer version of this newsletter that's formatted for
197247 [florgro@gm i] I'd really like to do this with ruby-breakpoint. Having it automatically

ruby-dev summary 28637 - 28714
197229 [ksaito@ur nu] This is a summary of ruby-dev mailing list.

Sending mail in RUBY
197241 [pbailey@bn .] Can someone please point me to a simple mail utility for RUBY? I see
+ 197283 [collinsj@se ] Documentation for RubyMail: http://www.lickey.com/rubymail/rubymail/doc/
| 197292 [pbailey@bn .] Thanks, Justin. Yes, that helps. I'd seen those web sites before, but,
| 197293 [dshackel@ar ] Just be aware that those will only format/parse messages and mailboxes.
| + 197468 [pbailey@bn .] Yes, thanks. I???ve seen that. But, I???ve tried tmail and when I run the
| | 197751 [drosihn@gm i] What is the exact line that you're trying to use?
| + 197767 [drbrain@se m] You can't send mail with IMAP, only SMTP.
+ 197799 [rob@ox i. o.] I found the gem 'mailfactory' to be a simple and terse message

A plan for another unicode string hack
197254 [daesan@gm il] I'm implementing yet another unicode string hacks. I'm trying to
+ 197256 [halostatue@g] This is a bad change.
| 197259 [decoux@mo lo] Say this to matz :-)
| 197264 [halostatue@g] I will. Matz, please see above. ;)
| 197267 [r.mark.volkm] I've never been a fan of the Ruby practice of having many names for
| 197271 [halostatue@g] It's all code context. "name.length" reads better than "name.size" and
| 197279 [daesan@gm il] Are you sure that "box" happened to be a variable for a string
| + 197281 [halostatue@g] Um. PDF::Writer is a library, and I think that I use both depending on
| | + 197282 [gwtmp01@ma .] +1
| | + 197440 [hramrach@ce ] Well, to me it is quite intuitive that length gives the number of
| | + 197465 [daesan@gm il] ...
| + 197401 [anselm@ne ux] If that is the case, is there a reason why we should continue using String for
|   + 197406 [thibaut.barr] ...
|   + 197407 [dmitry.sever] ...
|     197429 [listbox@ju i] I know it might sound terrible, but If Ruby as the language will
+ 197258 [logancapaldo] I like these very much. Although the choice between [] and slice seem
| 197274 [daesan@gm il] Thanks for the kind words.
| 197301 [leslieviljoe] This behaviour - of [] returning different values depending on the
| 197302 [leslieviljoe] ..returning different *type* values I mean..
| + 197327 [groups@gr nd] Yes, I undertstand. Making #size and #length return different values
| | + 197329 [halostatue@g] As much as I like to say that I'm "from Ruby" these days, not everyone
| | + 197372 [vjoel@pa h. ] That's not a bad argument, but Hash#size and Array#size don't behave
| |   197386 [leslieviljoe] I agree with Austin on this - the distinction is too vague. I'd leave
| |   197392 [matz@ru y- a] On my latest prototype (not checked in anywhere), String#length and
| |   197399 [pbattley@gm ] Actually, this makes a lot of sense. Why would you ever want to know
| |   + 197400 [leslieviljoe] Of course the confusion here is caused by measurement units. Size in
| |   + 197443 [halostatue@g] I agree. #buffer_size or #byte_size is probably sufficient. #size and
| |     197455 [phurley@gm i] byte_size, byte_length -- and these will remain important even within
| |     + 197461 [james@gr yp ] I agree.
| |     | 197469 [pbattley@gm ] I don't agree. If you are doing block-based IO with a string, wouldn't
| |     | 197472 [listbox@ju i] You do need them because otherwise you have to switch contexts just
| |     + 197485 [matz@ru y- a] It raises an exception when you touch the broken character.  In other
| + 197380 [dave@bu t. d] I've heard it's due to be fixed by end of next year.
|   197385 [leslieviljoe] Yahoo!
+ 197286 [pbattley@gm ] Regexp also supports EUC (which seems to work for EUC-KR as well as
+ 197295 [daniel.schie] I'd like to have a different interface, using named parameters.
+ 197368 [skurapat@uc ] Good idea. This separation of 'length' and 'size' methods is quite
  197435 [listbox@ju i] To the original poster - frankly I don't see the point of doing this
  + 197458 [hramrach@ce ] It needs to be fixed for ruby 2.0 anyway. IO and some networking stuff
  + 197473 [daesan@gm il] ...
    197573 [listbox@ju i] Interesting what you are going to come up with. Especially when you

run all tests
197275 [briankbuckle] ...
197276 [r.mark.volkm] I recommend changing all your test code to use Test::Unit.

Using YAML as a data DSL
197290 [jatinder.sau] ...
197308 [khaines@en g] I have an application for a customer that provides them with a system to store
+ 197313 [leslieviljoe] I have found that when not using a database with ROR you lose a lot of
+ 197314 [GENIE@pr di ] Misspelling is intentional, to provide a thin layer of safety in case

running a system command
197305 [verynewbie@q] how do i run a system command in ruby
+ 197307 [rmagick@gm i] system("commandhere")
| + 197309 [verynewbie@q] thanks that was it
| + 197317 [collinsj@se ] ...
+ 197312 [halostatue@g] Please remember to look in the various information sources that exist

Re: Processing mixed content with REXML ??
197319 [Eric.Armstro] You're thinking of each_recursive, which does

Setting directory ruby is compiled to (BCC32 & Ruby 1.8.4)
197320 [krisleech@in] I have Ruby compiling fine using Borlands (free) C compiler for Windows.
197659 [nobu@ru y- a] prefix has no effects on Windows at all.

Ruby/OpenSSL samples at RubyKaigi2006
197339 [nakahiro@sa ] I made a talk on secure application programming at RubyKaigi 2006

Beta RubyGems 0.9.0 questions
197340 [TimHunter@nc] _why announced the availability of beta RubyGems 0.9.0
197341 [drbrain@se m] If it isn't working, file a bug.

Re: Welcome to our (ruby-talk ML) You are added automatically
197342 [listbox@ju i] է

running applications installed from gems
197344 [r.mark.volkm] I suppose rubygems is most often used for packaging libraries, but it
+ 197349 [drbrain@se m] minesweeper
| 197474 [r.mark.volkm] Would minesweeper be a script in the bin directory of the gem?
| 197483 [halostatue@g] It's already done.
| 197489 [r.mark.volkm] Sorry to be dense about this, but *how* does the user run the application?
| + 197491 [halostatue@g] No.
| | + 197515 [jmg3000@gm i] What Austin is implying is that after you run the gem command (usually
| | | 197520 [halostatue@g] The one in /opt/ruby-1.8.4/bin is the RubyGems stub. That's in your
| | | 197534 [jmg3000@gm i] Ah... I see. Thanks Austin. I'd forgotten that RubyGems allows
| | | + 197536 [halostatue@g] techbook _1.1.3_
| | | | + 197540 [jmg3000@gm i] Right. Sorry -- I was thinking out loud, describing how the system
| | | | + 197550 [jim@we ri hh] $ gem list -l rake
| | | + 197541 [jmg3000@gm i] Whoops. Found the DeveloperGuide page on the RubyGems wiki.
| | + 197516 [r.mark.volkm] Cool!  So I think the last think I need to know is what causes the
| |   197521 [halostatue@g] Sy my first reply about "a stub for ..." being created. I elaborate in
| + 197524 [transfire@gm] When you install a gem, Gems will place executables to the appropriate
+ 197364 [halostatue@g] Ruwiki is packaged as a gem. It includes *multiple* "binary" programs.
  197377 [ mfp@ac .o g] It's not #autorun but #default_executable, and it is already in RubyGems.

Re: What can a class/object do?
197350 [Eric.Armstro] Found it!

Re: Is API documentation useless for learning?
197352 [Eric.Armstro] Arggh. It turns out that a list of behaviors
197355 [M.B.Smillie@] Which isn't actually the case.  If you look at the blue title bar,
+ 197358 [ezmobius@gm ] In irb you can also narrow down the list of methods on an object.
+ 197554 [Eric.Armstro] I wish what you were saying were true!
| 197561 [M.B.Smillie@] We're looking at the documentation for the REXML::Element class
+ 197562 [Eric.Armstro] Kindly ignore previous. The problem with frames.
  + 197569 [james.britt@] has links to inline source.
  + 197571 [lukfugl@gm i] True, this is something that might be made more obvious with a
    197730 [Eric.Armstro] Thanks for bearing with me!
    197746 [lukfugl@gm i] Thanks for contributing to the wiki. There's actually a work in

How to use unpacked GEMS
197353 [has.sox@gm i] ...
197357 [jim@we ri hh] Well, if you want to install them, don't unpack them.  If you don't have
197366 [has.sox@gm i] ...
197433 [jim@we ri hh] Interesting idea, but no, gems doesn't do that today.
197437 [has.sox@gm i] ...

Table with pdfwriter
197378 [tele@pl xi .] is there a way to do rowspan using table of pdfwriter?
197441 [halostatue@g] Not with SimpleTable. There's a reason it's "Simple". ;)

Search for library files and include files for Ruby extension
197384 [huiliang.wu@] ...
197388 [eban@os ri .] See README.EXT.

Ruby and Cobol
197389 [ppalmer@na i] The company I'm working for at present has everything written in
+ 197394 [transfire@gm] Maybe use something like this?
| 197402 [ppalmer@na i] Unfortunately that won't work :(
| 197415 [dave@bu t. d] Do you have a data format specification? In my limited experience, COBOL
+ 197738 [pjpizza@rs e] I've written similar things for Microfocus COBOL, using calls to  C API

A very basic question.
197397 [tanushree.bh] ...
197403 [rasputnik@gm] gets() returns Strings because that's how console i/o works,
197405 [tanushree.bh] ...
197422 [rubytalk@ea ] ...
197452 [tanushree.bh] ...
197454 [M.B.Smillie@] It's an input method - are you entering anything?
197457 [tanushree.bh] ...
197481 [ben@ia u. et] OK, now try hitting 'enter'.
threads.html
top