409061-411292

408815-410122 subjects 409266-410455

[ANN] pg 0.16.0 Released
409061 [ged@Fa ri MU] pg version 0.16.0 has been released!

how to create structure like bellow
409064 [lists@ru y- ] I need a structure like bellow , i know its not correct syntax, but just
+ 409066 [tamouse.list] "Bellow" is to shout like an elephant.
+ 409070 [lists@ru y- ] thanks you are right, i might be thinking too hard .. may be it can be
| 409079 [jgabrielygal] So, the "identifier" of the row, are those three characters that come
+ 409125 [lists@ru y- ] Thanks its works perfect..
| 409126 [jgabrielygal] totals[id] = totals[id] + power
+ 409127 [lists@ru y- ] I think i know why ....
+ 409128 [lists@ru y- ] i got this now

[ANN] Rails 3.2.14 has been released!
409068 [rafaelmfranc] I am happy to announce that Rails 3.2.14 has been released. This is a bug

[ANN] vlad 2.6.1 Released
409069 [ryand-ruby@z] vlad version 2.6.1 has been released!

Link To Masses Of External Data In Openoffice?
409072 [lists@ru y- ] This is what I want to do.
+ 409102 [tamouse.list] Your problem isn't with the ruby code, it's with the difference between =
| 409103 [lists@ru y- ] Like put it in a notepad and name it that?
| 409122 [tamouse.list] Just like that. :)
| 409142 [lists@ru y- ] I tried and it still didn't work. :(
| 409146 [tamouse.list] and what happened?
| 409149 [lists@ru y- ] C is not recongnized as an internal or external command
| 409155 [jgabrielygal] You don't have to type C:\>,  that is meant to represent your prompt.
| 409158 [lists@ru y- ] Sorry, I don't really know anything about this, it's the only way to do what I want to do though.
| 409159 [sto.mar@we .] The file must located in the same directory/folder where you start your
| 409160 [lists@ru y- ] Yeah it's not in there, I have the scrape.rb in the Ruby folder so
| 409162 [sto.mar@we .] So... change to the correct directory... (using `cd').
| 409167 [lists@ru y- ] Yeah, I am just trying to do this one thing though :(
| 409210 [echristopher] Put double quotes around the name in the Save As dialog.
| 409377 [lists@ru y- ] Thanks, now I just need that other part answered :P
+ 409168 [lists@ru y- ] I'm getting somewhere. It's creating the data file but there's nothing
| 409173 [sto.mar@we .] `mechanize' is a so-called gem, which you need to install first.
| 409174 [lists@ru y- ] Got this error now.
+ 409175 [lists@ru y- ] Installed DevKit because it told me to. And now when I try to install

class <=> module
409073 [lists@ru y- ] Recently I got the error described at
+ 409074 [ryand-ruby@z] On Jul 23, 2013, at 16:04 , Br=E1ulio Bhavamitra <lists@ruby-forum.com> =
| + 409086 [brauliobo@gm] "Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua
| + 409088 [lists@ru y- ] So why in rails activerecord is defined as ActiveRecord::Base instead of
+ 409078 [sto.mar@we .] That sounds like: We have two different things that behave differently
| + 409082 [josh.cheek@g] C1 = Class.new Object
| | 409084 [sto.mar@we .] I was alluding to multiple inheritance, meaning a class
| | + 409087 [brauliobo@gm] "Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua
| | + 409089 [lists@ru y- ] The point is that inheritance may be done with include + extend from a
| | | 409092 [sto.mar@we .] But that is not the same as subclassing.
| | + 409093 [josh.cheek@g] I still don't understand. I showed that you can inherit from multiple
| |   + 409094 [jgabrielygal] You cannot extend from arbitrary classes. If I want to create a class
| |   | 409095 [josh.cheek@g] I'm not sure that's what he was trying to say.
| |   + 409096 [sto.mar@we .] No, they behave differently!
| |     409097 [josh.cheek@g] They are, the code examples just say otherwise because Ruby lies to you.
| + 409090 [lists@ru y- ] The thing is that sometimes both features, from classes and modules, are
+ 409091 [lists@ru y- ] I'll give some extra explanation with an example.

Re: vlad 2.6.1 Released
409075 [lists@ru y- ] Thanks Ryan
409076 [lists@ru y- ] Not true: there's a defacto standard on the internet to delimit

Rubydoctest problem
409077 [cliff.rosson] Wondering if you good folk here would know any tips for getting around some

Combo box or list box?
409080 [lists@ru y- ] When I did a search on "Combo box" it came back with more than 200
+ 409081 [lists@ru y- ] Some context would help, which GUI are you using?
+ 409083 [lists@ru y- ] This was just a comment on what I found when I did a search where it
+ 409085 [lists@ru y- ] The "Visual" in VB is about GUI programming. I'm not surprised that you

[ANN] hoe 3.7.0 Released
409098 [ryand-ruby@z] hoe version 3.7.0 has been released!

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

[ANN] flay 2.4.0 Released
409100 [ryand-ruby@z] flay version 2.4.0 has been released!

[ANN] omnifocus-github 1.6.0 Released
409101 [ryand-ruby@z] omnifocus-github version 1.6.0 has been released!

Ruby newbie question on Methods (NoMethoderror)
409104 [lists@ru y- ] I have recently started learning ruby and so I am writing a small little
+ 409105 [jgabrielygal] You are using brackets, and that is a method call. You need square brackets
| 409110 [lists@ru y- ] Thanks for the help it worked straight away. Didn't see where I went
+ 409106 [posobin@gm i] Accessing array element is done with square brackets (selectGame =
+ 409107 [sto.mar@we .] this should be a rather good hint...
| + 409108 [shortcutter@] Since we're dealing with user input here method Integer is safer for int
| + 409111 [lists@ru y- ] Thanks for the tip on snake_casing. Reason for my variable naming is I
|   409112 [shortcutter@] Please watch out whom you are quoting.  Not that I would not have given
|   409113 [lists@ru y- ] Oops. I just saw what I did!
+ 409109 [lists@ru y- ] Thanks for the help it worked straight away. Didn't see where I went

waiting for a file to appear
409114 [lists@ru y- ] Having trouble finding a sound method that doesn't break when waiting
+ 409115 [echristopher] Each OS family has its own system-level way of notifying programs when
+ 409118 [sto.mar@we .] What do you mean by not robust?
+ 409124 [lists@ru y- ] The only time I used something like this, it was waiting for a download,

[ANN] wordexp 1.0.0 - perform word expansion like a POSIX shell
409116 [normalperson] From http://bogomips.org/ruby-wordexp/README

lexeme 0.0.4 | Simple lexical analyzer
409117 [lists@ru y- ] As I'm working on a bigger project of mine and at one point I needed a

replace words using gsub
409119 [lists@ru y- ] New to ruby! Body is a string, i am using the code directly below. I am
409121 [keystonelemu] array = [1,2,3]
409123 [shortcutter@] k is not an iterator but takes on every iterated value. The iterator is the
409129 [botpena@gm i] forgot the original : )
409130 [shortcutter@] What are you trying to say?
409131 [botpena@gm i] yes. i thought you just forgot to post it.  but never mind, your code

OK, what am I doing wrong, here?
409120 [dblistmail@g] I set up a Rails project, "belldev", and
+ 409132 [hassan.schro] the web/app server configuration(s), Ruby/Rails versions, ....
+ 409133 [lists@ru y- ] At the very least you're missing a closing quote on "pages#index",

Learning how to create and save .rbs
409134 [lists@ru y- ] So I am trying to create and run an .rb, a basic stepping stone.
+ 409135 [max@zo m. om] Could you post the source of 01hello.rb
| 409140 [lists@ru y- ] puts "Hello and welcome to Ruby Programming."
+ 409136 [lists@ru y- ] It seems you are trying to run ruby being already in irb. You should run
+ 409137 [calvin.bornh] the problem is that you try to run your ruby script files from irb. If

Problems with Ruby on Windows + devkit + bundler + multiple drives
409138 [lists@ru y- ] I'm having a strange issue with this combination of ruby on Windows,
409232 [Carey.Nation] I don't remember the details, but iirc, there are some limitations with the devkit install and drives.  I don't think that it has to be on c: particularly, but it may be something like it wants to be on the same drive as "everything else."  Maybe.  YMMV.

How to install Ruby 2.0.0 locally - stuck
409139 [lists@ru y- ] I previously installed Ruby 1.8.7 locally on my HP-UX Unix system,
409148 [wonderflow.s] RVM is really a usual way to install ruby.curl is a tool to get web page in
409150 [sto.mar@we .] Probably security?
409151 [lists@ru y- ] Yup, the same thing.  The company that I worked for does not allow any

Mechanize with customer REQUEST to POST
409141 [lists@ru y- ] Is there a way in Mechanize to add a few custom fields to the REQUEST
409144 [tamouse.list] [snipsnip]

ruby & windows - fastest way to get going?, what about devkit as gem?
409143 [marco-oweber] Simple example: ruby on Windows and sqlite. How to install? After some
409147 [tamouse.list] can

What's the version of Qt for the qtbindings-4.8.3.0-x86-mingw32.gem
409145 [lists@ru y- ] What's the version of Qt for the qtbindings-4.8.3.0-x86-mingw32.gem?

Calculate input - numbers
409152 [lists@ru y- ] user_input = $stdin.gets.chomp
+ 409153 [jgabrielygal] Jesus.
+ 409154 [shortcutter@] It probably also uses eval. In your case it's a security risk because
| 409156 [sto.mar@we .] Don't try that at home, kids!  :)
| 409166 [tamouse.list] We're all professionals here. :)
+ 409157 [rubytalk2dav] Depends what you mean by "better".  As others have shown, there are

Difference between Kernel#caller and Kernel#caller_locations
409161 [lists@ru y- ] I am bit confused with the methods
+ 409163 [ryand-ruby@z] `Kernel#caller`(http://www.ruby-doc.org/core-2.0/Kernel.html#method-i-call=
| 409165 [sto.mar@we .] To be fair: I don't think this aspect has been answered in that thread,
+ 409164 [sto.mar@we .] Yes. Read the first sentences in the docs again!
  411281 [lists@ru y- ] ===============================================================
  411291 [sto.mar@we .] I already gave you an example (which you snipped...) that demonstrates
  411292 [lists@ru y- ] Thanks for your time. Ok.. so I can then use any of them when I need

Love U Ruby
409169 [rubytalk2dav] Any thread Love U Ruby starts, I mute as soon as I notice it.  It gets
409179 [shortcutter@] Just out of curiosity: how do you "mute" a thread in GMail?
409180 [rubytalk2dav] Given the discussion, I would be tempted to tell you to Google it.  ;-)
409182 [shortcutter@] That doesn't work for me as I archive emails from the list anyway.  I
409184 [lists@ru y- ] Just filter the Gmails and put those messages directly to "Delete it"?
409185 [shortcutter@] really funny

Working through Ch.10 for learning to program 2.0 (Chris Pine)
409170 [lists@ru y- ] So, I have been working through this book, and have been doing ok up
+ 409171 [r.crawfordwi] Just curious, does that book go into algorithms? I can't help you (I'm new
+ 409172 [tamouse.list] This
+ 409176 [lists@ru y- ] Yes, I would like something to basically get me over the hump.  The idea
| 409178 [sto.mar@we .] That's not true. He essentially describes "selection sort"
+ 409177 [fluido@fl id] ? Because in this page, the words 'sorting' and 'sorted' can't be
| 409181 [tamouse.list] Could be different in the new version=85 the online one is v1.
| 409183 [sto.mar@we .] Indeed, chapter 10 in the printed book is different.
+ 409186 [lists@ru y- ] The version I'm reading is 2.0, the online version appears to be a
| 409187 [sto.mar@we .] But that's the whole point of programming, isn't it?
+ 409188 [lists@ru y- ] So, here is how to do it with cards.  Basically, you look at the first
+ 409195 [list.push@gm] I tried this and came up with a one-liner that seems to do it. It sorts the
| + 409204 [tamouse.list] sorts the array and prints the result.
| + 409205 [sto.mar@we .] Just to make sure: you do not use Array#sort?
| | + 409206 [r.crawfordwi] I'd like to see it too. Also RE: Sto.Mar's post
| | + 409214 [list.push@gm] Nooooooo :)    That would be cheating. Also, no semicolons :)
| |   409215 [lists@ru y- ] Yeah, semicolons are for noobs.  These are single-SLOC snippets.
| |   409219 [jgabrielygal] Ohhhh, a quiz, a quiz !!! I want in... When can we post our solutions?
| + 409231 [list.push@gm] I have not heard from the OP for almost 24 hours, so I will post an idea.
|   409235 [jgabrielygal] p a.each_with_index {|e,i| (x = a[i..-1].find_index(a[i..-1].min)) &&
+ 409211 [lists@ru y- ] This sounds like fun.  I've written a one-line iterative insertion sort,
+ 409247 [lists@ru y- ] Awesome, three completely different implementations.
+ 409248 [lists@ru y- ] So, I am just taking a detour away from the book for a bit and trying
| 409254 [jgabrielygal] Let me explain a little bit what I did, expanding the one liner. I
+ 409249 [lists@ru y- ] So, I am just taking a detour away from the book for a bit and trying
| + 409251 [lists@ru y- ] Here's a bit of advice, with which I think everyone will agree: this is
| + 409255 [sto.mar@we .] Please do not take these one-liners as examples on how you should
+ 409275 [lists@ru y- ] Thanks for the input everyone.  Matthew, thanks for taking the time to
| 409277 [sto.mar@we .] That shouldn't be too difficult to figure out, also I already told you
+ 409294 [lists@ru y- ] Sorry, I didn't realize that. I read that, but didn't know if that was
  + 409296 [chris.hulan@] its not Ruby specific (i believe it uses python) but
  + 409320 [tamouse.list] I want to pass along this offer from O'Reilly which offers a couple of =
  + 409323 [sto.mar@we .] Not sure... there might be a gap where it's difficult to find *the*

Can't install calabash with gem
409193 [lists@ru y- ] When I check the version of gem, I get

Re: Morse Code (#121)
409201 [lists@ru y- ] @@alpha = {

"WARN: Unresolved specs during Gem::Specification.reset"
409202 [tamouse.list] minitest (~> 4.2)

Losing values upon converting object to Array
409207 [lists@ru y- ] Not sure if i am doing this correctly. I am reading a xlsx file and then
409208 [chris.hulan@] The loop goes through all the rows, and then you write to the CSV so you
409220 [lists@ru y- ] Thanks for the help. Yes, it was the incorrect csv loop. Issue resolved.

How to check an input IS an integer ?
409221 [ishido7@ya o] I have a little problem since a few days. I would like to check that my
+ 409222 [hmaddocks@me] Sent from my iPad
| 409224 [ishido7@ya o] Huuuuuuuuuum, I see. /readline/ says it's a string, whatever I'm typing.
| 409229 [blambeau@gm ] Right! Regular expressions may help you here. Also/alternatively have a
+ 409223 [sto.mar@we .] There are several possibilities, the one I like best in this case
  + 409242 [ishido7@ya o] I've found a 'solution'. I don't like it but *cough* it works.
  | 409244 [sto.mar@we .] Depending on the use case, `0' might be a valid answer...
  | 409256 [ishido7@ya o] Well, I wasn't sure for your '/\A[0-9]+\z/' expression, so I checked it
  + 409245 [lists@ru y- ] Isn't that the whole point of Integer() ?
    409246 [sto.mar@we .] I think opinions diverge on this. Some people would argue that you

Question about arrays/hash
409225 [lists@ru y- ] I am new to ruby so I am stuck on a piece of code.  I am trying to
409226 [sto.mar@we .] The problem is that you reset `drive' to an empty array in
409228 [lists@ru y- ] Ah! How should I do it correctly?
409230 [jgabrielygal] Initialize drive to an empty array before the loop.

Parsing Data from Row using Regexp
409234 [lists@ru y- ] 137Tulsa138Bowling Green State-110-110
+ 409236 [lists@ru y- ] /^(\d{3})([a-z\s]+)(\-?\d{3})([a-z\s]+)(\-?\d{3})(\-?\d{3})$/i
| 409237 [lists@ru y- ] I was very close but your regexp is accurate.  Thank you so much.
+ 409238 [lists@ru y- ] @rotation_line = /^(\d{3})([a-z\s]+)(\-?\d{3})([a-z\s]+)
+ 409239 [lists@ru y- ] That's why I used "^" and "$", so the pattern will repeat for as many
+ 409240 [lists@ru y- ] I added some optional entries and so far it's testing out fine.  If I

cannot install gems
409250 [tomcloydmsma] ...
409257 [sto.mar@we .] If you absolutely must... but 1.8.7 is <del>dead</del> retired.
409260 [tomcloydmsma] Marcus - thanks for your help...
409274 [tamouse.list] trying
+ 410055 [tomcloydmsma] Tamara,
+ 410056 [tomcloydmsma] Tamara,
  410061 [tamouse.list] trying
  410091 [tomcloydmsma] You nailed it. That sense of good design - craftsmanship, in short - it

Problem with Net::SFTP
409252 [lists@ru y- ] I am trying to use Net::SFTP#download!
409253 [lists@ru y- ] Never mind. I didn't chomp it. [Insert blushing emoticon]

WATIR - ScriptError popup on IE - Unable to get rid of!
409258 [lists@ru y- ] I am new to Ruby & Watir, and I am having a nightmare with IE and Script
+ 409259 [lists@ru y- ] It looks like there's an Adobe Flash element on the page which is
+ 409263 [lists@ru y- ] If you are using watir-webdriver with Firefox or Chrome you can disable
+ 409264 [lists@ru y- ] Hey Graeme,
+ 409276 [lists@ru y- ] Thanks all, I wasn't anticipating a response that quickly!
+ 409278 [lists@ru y- ] When you say you can't run the tests without JavaScript / Flash... I can
+ 409279 [lists@ru y- ] The same script will be used in IE/FireFox & Chrome, not simultaneously,
+ 409280 [lists@ru y- ] And click on one of the links on the page when the page has loaded to
+ 409281 [lists@ru y- ] I've used Watir with IE to navigate around the links on that site
+ 409282 [lists@ru y- ] Im using IE9 with add-ons enabled, and flash 11.7.
+ 409298 [lists@ru y- ] I now have IE10 installed, and it works fine for me also.

RubyConf Brasil 2013 coming soon!
409261 [rubyhacker@g] Who's going to this?   :)  It should be a great time...
409262 [carlos.agari] I'll be there. It'll be my first RubyConf. :)
409265 [rubyhacker@g] <joke>
threads.html
top