408021-408989 subjects 408427-410359

Unexpected output piping to ruby -pe ''
408207 [lists@ru y- ] How come Ruby outputs the incoming piped text when there is no code to
408214 [echristopher] Not a return value.
408226 [shortcutter@] $ seq 1 5 | sed -e ''

Complete eLearning Course on Ruby using Screen-Casts
408227 [email@ge k0 ] I am an Information Architect and a UX Analyst.
+ 408310 [lists@ru y- ] Looking forward to go through the screen cast. Please update on the
| 408386 [email@ge k0 ] I have just put the wiki at http://wiki.geek007.com .
| 408399 [lists@ru y- ] Hey Naveen
+ 408311 [shortcutter@] Interesting how you managed to let almost every sentence start with "I".
  408312 [email@ge k0 ] Cheers

Set up local tcpserver that conencts to socket
408234 [lists@ru y- ] How can we do this?PLease we really need help.
+ 408235 [cliff.rosson] vizualize.me/cliffrosson
+ 408236 [lists@ru y- ] That does not help/
| 408237 [sto.mar@we .] As the question, so the answer.
+ 408238 [lists@ru y- ] require 'socket'
| 408240 [sto.mar@we .] That's an example from the `Socket` documentation. It should work.
| 408244 [djonavarro@g] And it does! Read about connecting to localhost ... Or ip from diff computer=
+ 408239 [lists@ru y- ] require 'socket'
+ 408241 [lists@ru y- ] Still doesnt work:(
  408242 [cliff.rosson] How can we help you? Think about things you can provide us that might help

Cannot Identify DTrace Probes
408245 [lists@ru y- ] I build Ruby using Ruby tarball source code on Ubuntu 11.10.

rails4 form field autocompletion
408252 [uzleepito@gm] I'm trying to be an early bird and upgrading a project to rails4.

Nokogiri::XML::Node methods examples.
408253 [lists@ru y- ] I faced too many obstructions to understand the
+ 408262 [lists@ru y- ] #===================================================================================
+ 408264 [lists@ru y- ] #===================================================================================

Rack Router in Sinatra (Padrino)
408255 [lists@ru y- ] I'm new in ruby and i've started learn sinatra framework. My question

extconf.rb (LoadError)
408258 [lists@ru y- ] [..... ruby-1.8.7-p352]# ruby extconf.rb
408260 [echristopher] This isn't enough information. To start with, what are you trying to

Issue in reading data from yaml file
408261 [lists@ru y- ] "logfile": C:\examples\code\launchy\devtrack\Dev_Weekly\log.txt
+ 408263 [hassan.schro] If you (ahem) read the docs, YAML.load works on strings, not files,
| + 408268 [lists@ru y- ] ... or use YAML.load_file
| + 408270 [shortcutter@] Does it?
|   408273 [hassan.schro] Via the http://ruby-doc.org/stdlib-1.9.3/libdoc/yaml/rdoc/YAML.html
|   408274 [shortcutter@] Well, it's just that: an example.  To be fair, the documentation is in dire
|   408288 [lists@ru y- ] Thanks for the help. YAML.load_file() worked.
+ 408272 [sto.mar@we .] 2.0.0-p195 :006 > data = YAML.load('config.yml')

Compare and sort one array according to another.
408275 [lists@ru y- ] arr1 = [
+ 408277 [lists@ru y- ] If the items within each array belong to each other, how about a
| 408287 [lists@ru y- ] I don't quite understand everything that's happening here. Can you
| 408291 [lists@ru y- ] If the objects are interlinked, rather than trying to keep two separate
| 408295 [lists@ru y- ] I just learned something new about ordering arrays! However this doesn't
| 408298 [jgabrielygal] arr2.sort_by {|o| arr1.find_index {|a| o[:term_id] == a[:id]}}
| 408296 [jgabrielygal] 1"},
| 408301 [doug@ds if r] You have said that the size of your two arrays is small, so the fact that
| 408305 [shortcutter@] Yes, that's what I was figuring.  Your analysis is spot on.
| 408319 [lists@ru y- ] This has been a great little learning exercise for me. I had never quite
| 408320 [matma.rex@gm] I think that's for 100 000 repetitions of the test.
| 408321 [lists@ru y- ] ...
+ 408289 [shortcutter@] Something like this?
+ 408297 [lists@ru y- ] Look at Robert's suggestion for how to sort arrays compared to each

Comparing objects
408276 [lists@ru y- ] How do I compare two objects in Ruby, considering only attributes
+ 408278 [lists@ru y- ] You can define the method <=> to allow comparison between objects.
| 408292 [sto.mar@we .] That's probably not what the OP wants. It would return true for
+ 408279 [lists@ru y- ] I see Joel Pearson.
+ 408280 [lists@ru y- ] <, <=, ==, >=, >, and between?
+ 408281 [lists@ru y- ] I should mention that you'd also have to include Comparable to inherit
+ 408282 [lists@ru y- ] Do you have any reference about these operators? I'd like to read about
| 408284 [jgabrielygal] Here's a great article about all these methods you can implement and
+ 408283 [lists@ru y- ] Here's the Ruby 2.0 documentation for it.
+ 408285 [josh.cheek@g] I'd do it like this
| + 408286 [lists@ru y- ] This is why specific examples are useful. Since numbers were shown as
| + 408299 [graham@me he] ...
|   408302 [josh.cheek@g] Perhaps, but I think this is not a good approach.
|   408306 [shortcutter@] That comparison is moot because it is not symmetric (see article linked
+ 408294 [lists@ru y- ] I assumed that the OP's use of "compare" meant Comparable, rather than

How do you get LiveReload to work with Octopress using Guard
408303 [lists@ru y- ] I am using this guide to add liveReload to Octopress.
408304 [justincollin] Use "bundle exec" to run the command in the context of the bundle

getting the most out of Ruby
408307 [lists@ru y- ] I write a lot of scripts in Ruby, most are small simple things but some
+ 408308 [lists@ru y- ] There are some great tips on here: http://blog.rubybestpractices.com/
+ 408313 [lists@ru y- ] It was watching a video on refactoring from a recent conference that
| 408322 [stu@ru yp og] Robin, If you look at ruby from a polyglot programmer view of the major
| 408327 [lists@ru y- ] I really like Ruby's OO model and it is something that frustrates me
+ 408323 [keystonelemu] The biggest jumping point for me is when I stopped trying to program Ruby
| + 408328 [lists@ru y- ] Got any resources you used to help get your head around all these?
| + 408337 [shortcutter@] I'd be careful labeling Ruby as "functional".  The only "functional" about
|   408338 [shortcutter@] Sorry, somehow I hit the wrong button and GMail just sent off the email.
|   408344 [stu@ru yp og] Got any resources you used to help get your head around all these?
|   408346 [eliezer@ng e] are you talking about this book??
|   408349 [stu@ru yp og] Yes that s the book I was recommending. Though not a panacea it's an
+ 408428 [lists@ru y- ] Thanks for all the advice, I've bought the book and started looking

Creating ruby script exe
408309 [lists@ru y- ] I have been using the gem 'ocra' to create .exe files for my ruby
+ 408326 [quixoten@gm ] You can detect whether OCRA is currently building your script by looking
| 408339 [lists@ru y- ] I will write the above at the beginning of my script? after the require
+ 408340 [lists@ru y- ] Ocra scans your script before it executes it anyway, but you might find
| 408385 [lists@ru y- ] This part is resolved.
+ 408392 [lists@ru y- ] That's probably because you're using an old version of Ruby: version
| 408401 [lists@ru y- ] Thanks for the info Joel.
+ 408402 [lists@ru y- ] You could install them from the old gems (I think they're in the cache
| 408410 [lists@ru y- ] Thanks for your help. Issue resolved.
| 408493 [lists@ru y- ] Its seems there is till some issue. I had created an exe using the
+ 408494 [lists@ru y- ] That's a side-effect of using the command --no-dep-run
  408511 [lists@ru y- ] Thanks. your suggestion worked. But when i run the exe i am getting
  + 408512 [sto.mar@we .] That would rather be
  + 408513 [lists@ru y- ] Please ignore my previous email. Issue is resolved :)
    408514 [sto.mar@we .] For future posts: good netiquette would be to also post
    408515 [lists@ru y- ] Agreed.. just being lazy @ midnight

Persistent value assign
408314 [lists@ru y- ] variable = "first value"
+ 408315 [lists@ru y- ] If you want persistent storage you'll need to output the data into a
+ 408316 [sto.mar@we .] There are many possibilities: e.g. write to a file (as string),
+ 408317 [lists@ru y- ] I had seen yaml when i search with google. But just i didn't want to use

Multimode error in 4.6.3
408329 [lists@ru y- ] I was not sure where to post this I have worked on this several days.

Multimode error in 4.6.3
408330 [lists@ru y- ] I was not sure where to post this I have worked on this several days.
408336 [lists@ru y- ] Ruby != Python

[ANN] Slide Show (S9) 2.0.0 Update - Command Suite Added - build,install,ls,new,etc.
408332 [gerald.bauer] I've updated the slideshow gem, that is, version 2.0.0. What's new?

Strange require behaviour
408334 [lists@ru y- ] Why does gem 'bson_ext' work, but require 'bson_ext' does not. Ruby
+ 408335 [lists@ru y- ] Kernel#gem
+ 408690 [lists@ru y- ] That certainly looks like my problem. Since I have tried reloading Ruby

YAML files with Chinese
408341 [lockwood.bry] From my point of view, one of the advantages of YAML files is that they're easy to read and edit using normal text editors,
408342 [sto.mar@we .] You posted the exact same question some time ago (May 27)!

Long conditionals/ multiple conditionals
408347 [lists@ru y- ] puts "Heeeyyyy! I see you baby, can a G get to know yah?"
+ 408350 [lists@ru y- ] if reply == "no".to_s or  "hell no".to_s or "nah".to_s
| + 408365 [sto.mar@we .] more relevant here: string literals like "no", "nah", ...
| + 408380 [lists@ru y- ] Thank you very much !!!
+ 408381 [lists@ru y- ] Thank you!

[Project] Mime
408348 [keystonelemu] Hey Ruby-Talk,
+ 408351 [justincollin] You might take a look at lbsh[1] which has a very similar (but not
+ 408352 [taca@ba k- t] just a comment.
  408354 [cebirim@gm i] Is there a website where we can see all the Ruby conferences happening all

Why the `#new_ostruct_member` not being able to add the `:email` ?
408353 [lists@ru y- ] require 'ostruct'
+ 408355 [mike@st k. a] How do you know that it isn't able to add :email?
| 408356 [lists@ru y- ] That's a great explanation,hope I would be able to go miles with this.
| 408360 [mike@st k. a] One good place to get an overview of pry is =
+ 408366 [sto.mar@we .] simply use
  408367 [lists@ru y- ] Actually I was trying to understand the intention of providing such
  408368 [sto.mar@we .] It's not really a "provided" feature, `new_ostruct_member' is meant
  408370 [lists@ru y- ] thanks for the advice,I will remember!!!

Beginners problem with database and datamapper
408357 [lists@ru y- ] I'm a complete beginner at this so please bear with me...I dont program
+ 408358 [ssmmcc1@gm i] Have you considered using active record?
+ 408361 [atma@co va e] Why do you create these two classes? It's not wrong, I just don't get what are you trying to do here?
+ 408363 [hassan.schro] I would suggest you read http://datamapper.org/getting-started.html
+ 408452 [lists@ru y- ] Thank you!
+ 408453 [lists@ru y- ] I think you're use "where" rather than "all" to return records matching
+ 408477 [lists@ru y- ] Ok,
| 408484 [hassan.schro] In general, posting the errors you don't understand (or can't figure
+ 408489 [lists@ru y- ] Hmm, ok Thank you. I actually made it work before I read your post. Any
| 408508 [hassan.schro] Yes.
+ 409299 [lists@ru y- ] When I try to do this with activerecord I get some kind of sqlite3
| 409300 [sto.mar@we .] Did you try that?
| 409302 [sto.mar@we .] Or try uncommenting the "require 'sqlite3'" line.
+ 409301 [lists@ru y- ] Yes I did. Didnt work...
+ 409303 [lists@ru y- ] `r
+ 409304 [lists@ru y- ] Ruby 2.0 on Windows and Sqlite3 don't get along well.
+ 409305 [lists@ru y- ] Thank you for the suggestion Joel. I followed Scotts instructions and
+ 409306 [lists@ru y- ] Try using the files and details I've provided near the end of this
+ 409307 [lists@ru y- ] I downloaded your zip-file and extracted in "c:\knapsack\sqlite" and did
+ 409308 [lists@ru y- ] You need the development kit installed.
+ 409309 [lists@ru y- ] Grrr...still I got a problem.... 'failed to build gem native
| 409313 [manuelramosc] As your error code said you need to install SQLite3 from
+ 409310 [lists@ru y- ] PS. I installed devkit and did a test installation...
+ 409311 [lists@ru y- ] Please try using the instructions and the zip file I posted in the
+ 409312 [lists@ru y- ] Thank you for your help and patience Joel. I have done all steps
+ 409314 [lists@ru y- ] Manuel, the instructions and files provided compile the exe as well as
+ 409315 [lists@ru y- ] Joel, I dont have rails thats why I didnt extract it in a rails-folder.
+ 409316 [lists@ru y- ] Ok, that makes sense.

Compiling Ruby on OpenIndiana
408359 [lists@ru y- ] I tried compiling Ruby tarball source on OpenIndiana, but got a error
408369 [stu@ru yp og] Maybe give rvm a shot. If that's not an option you'll need to give more

Re: Upcoming Ruby conferences (Was: [Project] Mime)
408362 [justincollin] Lanyard is pretty good: http://lanyrd.com/topics/ruby/in/usa/
408364 [cebirim@gm i] Thanks Justin!

require 'rspec' and Ruby 1.8.7
408371 [lists@ru y- ] I am new to Ruby but not to Software Engineering.
+ 408372 [echristopher] Does the file in question also require 'rubygems'? If not, you could either
+ 408373 [zettabyte@gm] Looking at what ubuntu actually packages in the ruby-rspec-core package (
  408463 [lists@ru y- ] Thank-you!  apt-get ruby-rspec solves the problem.

[ANN] image_science 1.2.5 Released
408374 [ryand-ruby@z] image_science version 1.2.5 has been released!

[ANN] hoe 3.6.3 Released
408375 [ryand-ruby@z] hoe version 3.6.3 has been released!

[ANN] vlad 2.5.1 Released
408376 [ryand-ruby@z] vlad version 2.5.1 has been released!

[ANN] ruby2ruby 2.0.6 Released
408377 [ryand-ruby@z] ruby2ruby version 2.0.6 has been released!
408379 [armeen22@ya ] Please stop sending me emails
408382 [ryand-ruby@z] haha! no.

[ANN] minitest 5.0.5 Released
408378 [ryand-ruby@z] minitest version 5.0.5 has been released!

[ANN] unicorn 4.6.3 - Rack HTTP server for fast clients and Unix
408383 [normalperson] unicorn 4.6.3 - fix --no-default-middleware option

Licensing terms for "linking" with Ruby
408384 [lists@ru y- ] I am interested in knowing what license terms are applicable for
+ 408394 [matz@ru y. r] You can treat it under the BSD license.
+ 408395 [lists@ru y- ] 1. How do we know that the response is from Yukihiro himself? :)
| + 408397 [matz@ru y. r] You can confirm when you meet me in person.
| + 408540 [atma@co va e] charset=utf-8
+ 408539 [lists@ru y- ] Thanks for your responses. I have spent reasonable time going through

[Offtopic] - My Podcasts
408387 [email@ge k0 ] This month I am working on making screen-casts on Ruby.

Cometd client for Ruby
408388 [peterhickman] I am going to have to connect to a comet server using Ruby. What I need is
+ 408389 [lists@ru y- ] I've not used a comet server before, but would a browser interface like
| 408390 [peterhickman] Thanks for the suggestion but nope. Thats an insane amount of baggage to be
| 408391 [saji@u- iz .] Wait! Don't give it up yet! Let the Faye be with you! :)
| 408393 [peterhickman] Ah so it is still alive. Thanks I will install and investigate this
+ 408423 [tamouse.list] Documentation never seems to be updated, I find severl gems listed in

A question about assignment of multidimensional array error message
408396 [ruby.student] Team,
+ 408398 [lists@ru y- ] msgCount[r][c] = mtc*
+ 408400 [shortcutter@] Yes, a lot.  First of all your Ruby is not very idiomatic.  The smallest

Gem dependency for Deb packages
408403 [lists@ru y- ] gem dependency to debian/control file. I look up from here.

DB transaction setup, and feeling stupid.
408404 [ken@jo s. rg] paramaterized MySQL queries.  And am getting completely stumped.  I do a
408405 [mike@st k. a] ...
408407 [shortcutter@] It's not hidden - it's not a placeholder any more. :-)  I agree: I am

[ANN] minitest 4.7.5 Released
408406 [ryand-ruby@z] minitest version 4.7.5 has been released!

Load error - Std lib class Dir
408408 [lists@ru y- ] I am required to use the class -
408412 [mike@st k. a] /home/kirti/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/co=
408418 [lists@ru y- ] Thank you very much as always!!
408420 [mike@st k. a] stuff
408422 [lists@ru y- ] Good explanation..
408425 [mike@st k. a] Now=20

Cloning rubygems.org
408416 [ruby.student] I work with a series of *NIX servers (way over 100) which are not allowed
408417 [sophrinix@gm] I think you are inventing more work for yourself then needed.
408424 [ruby.student] Thank you Andrew. I'll look into this.

Inline 3.12 switch g++/gcc
408421 [lists@ru y- ] Please help!