375155-389694

374933-383498 subjects 375392-406622

Re: ruby.cmd.line mailing list for rubyist command line / console fanatics
375155 [kannan.deepa] some of the mail links at http://librelist.com/browser/ruby.cmd.line/
+ 375165 [sentinel1879] I am quoting from the home page.
+ 375201 [zhando@op ns] Yes, I'm sorry about that. It can't be helped unfortunately. If you want

yardoc - can't view code docs in browser
375169 [weloki@gm il] I'm using yardoc to document my ruby code. I do have all of my
+ 375179 [weloki@gm il] then fire up the server again. At that point yard has to parse the
+ 375183 [weloki@gm il] since YARD only shows documentation from the lib directory by default
  375208 [ryand-ruby@z] This looks like a bug to me. You'd be better off (and contribute more =

Consume Soap Service with Basic Authentication
375170 [rfsllc@gm il] I have been searching and trying different gems to get this to work, but
+ 375171 [tony.arcieri] You might try gem install savon --pre to get the latest version.
+ 375174 [rfsllc@gm il] the problem is that savon requires old dependencies. i have the latest
| 375178 [tony.arcieri] What dependencies are you talking about? Savon's only dependencies are
+ 375180 [wishdev@gm i] Good Morning,
+ 375182 [rfsllc@gm il] @tony all those dependencies you listed all have new versions.
| + 375184 [Rob@Ag le on] Because it's been around for a long time.  Look on RAA
| + 375186 [tony.arcieri] Are you using Builder 3.0 or something? Other than that what version
+ 375189 [rfsllc@gm il] I use bundler so when i install savon bundler removes these gem
+ 375190 [rfsllc@gm il] I decided to go with Savon. What I ended up doing was just setting the

Ruby Koans: about_hashes.rb
375172 [ilyabe@gm il] Question about this method in Ruby Koans -> about_hashes.rb
375191 [skim.la@gm i] That sounds about right.  Readability.
375459 [josh.cheek@g] assert_equal expected , hash
+ 389693 [codingtales@] Now, this makes sense. Thanks. Ruby Koans is great, but I think it
+ 389694 [codingtales@] Now, this makes sense. Thanks. Ruby Koans is great, but I think it

Checking for modified files.
375175 [flethuseo@gm] I need to implement a script that can check in a directory,
375177 [Reid.Thompso] file stat

lo-fi RDoc generator?
375185 [normalperson] well across browsers with JavaScript disabled.
375212 [transfire@gm] You might try rdazzle. It has a variety of templates and you're more
375267 [normalperson] Thanks for the pointer, but none of the existing rdazzle templates meet

wx on Ubuntu 10.10 doesn't work
375188 [ruedi@br hn ] I just installed wx with
375257 [sutniuq@gm .] But if you solved that, you'll run into a couple of other problems. At

Splitting on capital letters
375192 [ralphs@do 32] ...
+ 375193 [jeremy@bo p.] irb(main):001:0> "BenefitsAndFeatures".split(/([[:upper:]][[:lower:]]*)/).delete_if(&:empty?).join("-")
| 375194 [ralphs@do 32] ...
| + 375195 [tony.arcieri] => "Benefits-And-Features"
| | 375196 [sduncan@we a] This might be ridiculous, but ...
| | 375198 [s.korteling@] "BenefitsAndFeatures".gsub(/\w(?=[A-Z])/){|match| "#{match}-"}
| | 375200 [sduncan@we a] Very nice =]
| | 375221 [shortcutter@] irb(main):003:0> s='BenefitsAndFeatures'
| + 375197 [me@km hi e. ] "BenefitsAndFeatures".split(/([[:upper:]][[:lower:]]*)/) returns an
| + 375229 [botpena@gm i] maybe try simple first, ie, get lower and up chars and put a dash in bw.
|   375239 [shortcutter@] Much better!  Slap hand on face.
+ 375199 [s.korteling@] "BenefitsAndFeatures".split(/(?=[A-Z])/).join('-')
+ 375225 [w_a_x_man@ya] "BenefitsAndFeatures".gsub( /.(?=3D[[:upper:]])/, '\&-' )

identifying and removing comments in a seprate ruby file
375202 [robhy05@ho m] I'm working on a ruby program that's supposed to find and remove single
+ 375207 [jeremy@bo p.] If you're asking for help with homework, you'll probably get some help
+ 375209 [astahl@hi .c] ...
+ 375210 [zuerrong@gm ] $ cat 1.rb

[ANN] hoe 2.8.0 Released
375204 [ryand-ruby@z] hoe version 2.8.0 has been released!

[ANN] hoe-seattlerb 1.2.3 Released
375205 [ryand-ruby@z] hoe-seattlerb version 1.2.3 has been released!

Making a Website with Ruby (not rails?)
375213 [e.j.jurman@g] I have been programming in Ruby for a while and have made several
+ 375214 [steve@st ve ] Check out Sinatra and/or Camping.
| 375215 [dhruva.sagar] +1 for Sinatra, it is damn easy to use and get started with, the source of
+ 375219 [stu@ru yp og] ...
+ 375232 [rainerfrey@w] What part or aspect of the web site do you want to do in ruby then?
+ 375240 [josh.cheek@g] It sounds like you just want a static site (content doesn't change), with
| 375242 [steve@st ve ] Have you tried hosting Sinatra on Heroku? This simply isn't true.
| 375243 [josh.cheek@g] Yes, I have. I did have to go looking through the Heroku gem maybe 2 or 3
| 375253 [steve@st ve ] Interesting. I have half a dozen Sinatra projects on Heroku, and I never had
| 375259 [josh.cheek@g] You probably were smarter about it than I was. I followed some Rails
+ 375241 [rubfor@re it] Horse for courses. Pick something like Joomla, or if the content doesn't
+ 375281 [e.j.jurman@g] Thanks for the responses, I really just want to avoid using HTML, as I

Hash? But variables?
375228 [rubyforum@gm] hash = { :water => 'wet', :fire => 'hot' }
+ 375230 [botpena@gm i] try,
+ 375231 [stu@ru yp og] It's actually a very good question. hashes are like arrays with non
| 375235 [stu@ru yp og] I wanted to add that you should think of a hash as an accocated array.
+ 375233 [shortcutter@] irb(main):001:0> :water.class
+ 375234 [rubyforum@gm] Thanks for all of you.
+ 375236 [rubyforum@gm] symbol and string...
+ 375269 [zhangsu@li e] Symbols are Ruby's implementation of string interning or pooling, where
+ 375286 [rubfor@re it] One way of describing symbols is they are constants whose value is their

Sinatra for Interactive Forms?   HTML5/JQuery
375237 [gmkoller@gm ] Good Evening,
+ 375251 [hassan.schro] Probably not true, but...
| 375252 [rubfor@re it] Aren't Ruby programmers supposed to use Prototype or CoffeeScript?
| 375258 [hassan.schro] I think you're "supposed" to use whatever works for your app and
+ 375260 [me@wa to ho ] Point of interest, the page you linked is using XHTML (strict) and AJAX
  375287 [gmkoller@gm ] Thank you all very much for all the thoughtful input and links!

Where is my file?
375244 [ralphs@do 32] ...
375247 [sathish.sale] try this in your application_controller

RVM with a custom interpreter
375245 [alex@bl ck e] What's the best way to use a custom ruby build with rvm?  I'd like both

Where is my file?
375246 [ralphs@do 32] ...

Convetion regarding accessing attributes (from within instance methods).
375248 [kedar.mhaswa] I observed that once I have defined attr_accessor for an attribute of a
+ 375249 [alex@bl ck e] class A
+ 375250 [josh.cheek@g] I prefer the latter (2). Also, in the latter "@color = color" can be

Difference between ruby 1.8.x and ruby 1.9.2
375261 [payalpatel11] I am working on ruby project that needs to be upgraded from ruby 1.8.6
375262 [stu@ru yp og] ...

Is Ruby Quiz site actually dangerous?
375264 [jim@ka af t.] I'm interested in checking out the ruby quiz site (rubyquiz.com) but Googlehas a few levels of warnings that "Visiting this web site may harm your computer!" along with some explanations of why has been blacklisted.
+ 375265 [james@gr ys ] Google has a few levels of warnings that "Visiting this web site may =
| 375268 [jim@ka af t.] No worries... I'm just getting back into Ruby and a search of whether it was a problem site didn't turn anything up, but I figured there was probably a good explanation.
| 375271 [james@gr ys ] it was a problem site didn't turn anything up, but I figured there was =
+ 375266 [james@gr ys ] Google has a few levels of warnings that "Visiting this web site may =

Help with net/http
375270 [atomicmcbomb] I am trying to screen scrape a webpage and pull out the name, address,
375273 [astahl@hi .c] ...
375285 [atomicmcbomb] Thanks Alex.
375289 [jgabrielygal] You have to require 'nokogiri'
375291 [atomicmcbomb] I didn't realized that, Jesus but it didn't help in my installation.
375292 [jgabrielygal] export RUBYOPT=3Drubygems
375293 [atomicmcbomb] That definately helped, Jesus....thanks.
375295 [jgabrielygal] What OS (and version are you on?). I have a pretty old version of
375298 [atomicmcbomb] Linux version 2.6.9-42.0.3.EL.wh1smp (root@wdl70144) (gcc version 3.4.6
375311 [stmpjmpr@gm ] Installing gems local to your user account might help get around some
375313 [jgabrielygal] The problem is not the gem, is the libxml2 dependency. I don't know
375316 [atomicmcbomb] I got one of my servers updated and I'm now running Nokogiri without
+ 375317 [atomicmcbomb] page.xpath("//tr//td/a") and changed it to page.xpath("//tr/td")
+ 375319 [brabuhr@gm i] e.g.
| 375321 [atomicmcbomb] I never heard of mechanize but I see from the doco that it requires
| 375322 [brabuhr@gm i] Hmm... I'm not sure there... oh wait... Could it be confused since
| 375331 [atomicmcbomb] I renamed the script and it worked!
| 375336 [brabuhr@gm i] Try to narrow down the xpath used to pull stuff out.  E.g.
+ 375320 [hassan.schro] That's not what you're using.

Symetric method calls
375272 [rich@ga da f] I would like to define two methods in a class
+ 375274 [ryand-ruby@z] It is not possible in ruby to assign to a local variable to the right of =
+ 375275 [tokenshift@g] I'm not sure if such a method can be created, but you wouldn't be able
+ 375278 [rich@ga da f] Thanks overloading the

is my instance variable being masked?
375277 [sylvestertca] This is probably trivial for the pros here, but
375280 [jeremy@bo p.] Your code listing above has the @raw_vehicle_data reference, but I think

[ANN] unicorn 3.1.0 - client_buffer_body_size tuning
375279 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve
375282 [zuerrong@gm ] Just be curious about the product name.
+ 375283 [tony.arcieri] And Unicorns are fantastical mythical creatures!
| 375288 [zuerrong@gm ] yep that indicates it's not prepare for the actual use.
| + 375296 [spoon@ki le ] Is that so?  You'd better write to the OGRE developers too.
| + 375310 [normalperson] There's no shiny website, commercial support, or even a web-based
|   375464 [tony.arcieri] Tony Arcieri
+ 375284 [stu@ru yp og] I like Unicorn because it's UNIX

[ANN] RDBI 0.9.1 AKA RC2
375290 [erik@ho le s] RDBI is yet-another database access library, currently in release

Ruby bug in singularizing "leaves"
375294 [porsamini@gm] Has anyone noticed this bug in ruby? in script/console, try
375297 [rick.denatal] First,  String#singularize and String#pluralize aren't part of the

The Ruby Lockdown
375299 [transfire@gm] Is Ruby is getting further and further locked in to a specific set of
+ 375300 [shortcutter@] I have no idea whether what you describe is a trend.  My usage of Ruby
| 375352 [transfire@gm] Perhaps characterizing it as a trend is a bit much. But it's certainly
+ 375339 [drbrain@se m] I have an archive of every latest gem install that is a few months old, =
| 375351 [transfire@gm] , which ships with Ruby, as second-class and unsupported at this time.
+ 375371 [erik@ho le s] And to think, I made such a large effort to stave off this crap at the
+ 375380 [shadowfirebi] ...
  375384 [ryand-ruby@z] you're doing it again. :P

request information from torrent tracker
375301 [l17339@gm il] I'm struggling with something here, and maybe any of you can help me.
375421 [l17339@gm il] I solved the problem.

Ruby-openGL almost working?
375302 [jacek.chabor] Ruby-opengl problem is very old, I don't know about any good solution
375312 [markus@fi ch] The library path changed, namely the "current directory" -> '.' is *not*

[ANN] hoe-seattlerb 1.2.4 Released
375314 [ryand-ruby@z] hoe-seattlerb version 1.2.4 has been released!

[ANN] ZenTest 4.4.2 Released
375315 [ryand-ruby@z] ZenTest version 4.4.2 has been released!

Using OpenSSL in Ruby
375318 [astounding@g] Anyone have any pointers to documentation, notes, info, or if none of
+ 375334 [huard.elise@] you might want to take a look at
+ 375340 [drbrain@se m] I have written introductory documentation for OpenSSL, but it is only in =
+ 375341 [ged@Fa ri MU] There's nothing specifically about using memory IO, but the
+ 375345 [drbrain@se m] Do you mean a wrapper for http://www.openssl.org/docs/crypto/bio.html# ?
  375466 [astounding@g] Thank you for the pointers everyone.
  375506 [b.candler@po] You could create a SocketPair, and demux the TLS stuff into that. You
  375516 [astounding@g] Thanks, Brian.  Sadly, I require non-blocking I/O and a
  375568 [drbrain@se m] 410b8b/fdc3c5c6686ceb49?lnk=3Dgst&q=3DSocket.pair&rnum=3D2&hl=3Den#fdc3c5c=

Regular expression help
375324 [munikur@gm i] I need help in putting a regular expression, regular expression should
+ 375326 [monty@vm ar ] Try crontab -l |egrep -i "(shut|init|sync|reb)"
+ 375327 [josh.cheek@g] How about
  + 375328 [monty@vm ar ] -e isn't a grep option on Solaris. [-bhinsvwx]
  + 375330 [shortcutter@] What do you need -P for?  There is no specific perlism in the regexp.

ruby unicode/string explosion (0xFF in utf-8)
375325 [sylvestertca] I'm reading a CSV file that has some non US-ASCII characters.  I want
+ 375329 [botpena@gm i] see http://blog.grayproductions.net/articles/encoding_conversion_with_iconv
+ 375361 [b.candler@po] I guess it's not genuinely UTF-8.

different between the "::" and "."
375332 [zuerrong@gm ] class Myclass
+ 375333 [sutniuq@gm .] - --------------------------------------
+ 375342 [kbloom@gm il] The only difference between :: and . occurs with uppercase identifiers.

[ANN] MountainWest RubyConf 2011 CFP
375335 [blowmage@gm ] We are happy to announce the 5th MountainWest RubyConf 2011 will be held on
376518 [blowmage@gm ] Just a reminder that the MWRC CFP closes tomorrow. Be sure to submit before

Could someone please update crc32-0.1.0 to the new API?
375337 [ruby-forum@s] I am entirely too new to ruby to take on something like this

Re: gem install fxri works for me.
375338 [tad@bo ha .c] I had the same problem on Ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32], and then noticed that the RUBYLIB environment variable was pointing to some dumbass location. I unset RUBYLIB and fxri loaded ok.

Problem reading PDF
375343 [RichardDummy] I downloaded/installed the pdf-reader-0.9.0  using gem install.
375353 [stefano.miol] Maybe you should try posting on pdf-reader's own mailing list at
375390 [RichardDummy] Thanks, Stephano.

generate digital audio: tones, etc.
375346 [cmhoward@fr ] I want to play around with writing Ruby scripts that generate electronic
+ 375360 [justincollin] You could try bloopsaphone: https://github.com/mental/bloopsaphone
+ 375648 [cmhoward@fr ] Bloopsaphone looks great. Only thing I haven't figured out yet: Is it

Problem with ruby code.
375347 [zorfie123@gm] A simple code that is self explanaetary. However when I run it, it spits
+ 375348 [zorfie123@gm] Its self explanatory, but when I run it, it spits out errors. What can I
+ 375349 [stefano.croc] You  need a + before V2 in the body of questioN
+ 375350 [zorfie123@gm] thank you :)

Having trouble with randomisation
375354 [zorfie123@gm] I want my program to say a diffrent maths question everytime the user
375355 [jeremy@bo p.] V1 and V2 are constants calculated one time at the beginning of your

Chdir on Windows - beginner doubt
375357 [marcelo@in e] Folks,
+ 375358 [luislavena@g] Download 0 files is part of the script, correct?
| + 375368 [timr@pr bo c] I'm a relative newcomer here, and that surprises me greatly.  The Windows
| | 375369 [luislavena@g] ws
| + 375372 [marcelo@in e] Hey, Luis. Thanks for the welcome!
|   375375 [botpena@gm i] hmm you have, JPG.jpg in there
|   375379 [marcelo@in e] Yep, found that out after I copied the program here.
+ 375359 [gthiesfeld@g] Luis beat me to it. ;-)
  375373 [marcelo@in e] Did work well indeed with the newest version. The book is a few years

[ANN] highlander 0.1.0
375362 [djberg96@gm ] There can be only one! Process, I mean.
375364 [has.sox@gm i] hey,
375366 [damian.janow] ...
375367 [has.sox@gm i] FYI, I did a github search for highlander and it came back with too many

rspec-2.3.0 is released
375365 [dchelimsky@g] rspec-2.3.0 is released (including rspec, rspec-core, rspec-mocks, =

ruby1.9.2 looking for Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/csv.rb:312
375370 [guru.inamdar] I have just started learning ruby and Im using ruby 1.9.2p0 (2010-08-18
+ 375374 [guru.inamdar] i came across this forum http://www.ruby-forum.com/topic/206773 but i
+ 375376 [james@gr ys ] (2010-08-18
+ 375377 [guru.inamdar] Sorry I just cant find the solution and when i checked my ruby
+ 375378 [guru.inamdar] please ignore my last post as i did not realize it found a reply. I will

scraping but failed due to the uniqueness of the site
375382 [rubyforum@gm] As you can see, this site is very unique that a news video runs
+ 375383 [peterhickman] On 13 December 2010 10:08, Soichi Ishida
+ 375385 [rubyforum@gm] Thanks Peter!

access shadowbox with watir
375386 [tcblues@gm i] Anybody knows how can we access to a shadowbox window with watir?
375422 [jarmo.p@gm i] If it's html then i don't see any reasons why you shouldn't be able to

require - not loading gem
375387 [paul@ho ly r] I have installed the spreadsheet gem to read and write MS Excel files.
375396 [me@wa to ho ] You must manually require rubygems in 1.8.x.  In 1.9.x this is no longer
375420 [paul@ho ly r] Thanks, makes sense.
threads.html
top