401995-409361 subjects 402378-411517

Wondering About Flatiron School
402205 [lists@ru y- ] Do any of you have some information on FlatironSchool?
+ 402206 [huangsheng2@] ...
+ 402207 [code@ap th o] It all comes down to how best you learn, your priorities, and your
| + 402212 [peterhickman] Just to put in a spanner in the works here. I'm the guy who decides who
| | 402227 [lists@ru y- ] Just wondering, at the risk of looking naive (and I am at this point),
| | 402247 [peterhickman] Well we are a RoR shop and so an ideal candidate would be someone with a
| | 402250 [fluido@fl id] I wonder how you deal with people who offer lots of experience (say,
| | 402253 [peterhickman] We have come to the conclusion that experience is experience regardless of
| | 402272 [fluido@fl id] You are very right. Nevertheless, you seldom find those slowly
| + 402229 [lists@ru y- ] The case study you provide is something that has been replaying over my
|   + 402259 [code@ap th o] For purposes of pure learning . . . yes, they are.  Keep in mind, though,
|   | 402265 [lists@ru y- ] Is that really true that employers will not hire a candidate without
|   | 402287 [code@ap th o] 1. I did not say a "programming related" degree.  I just said a "college"
|   | 402499 [code@ap th o] s/ kills/ skills/
|   | 402704 [stu@ru yp og] There's this one as well: https://www.hackerschool.com/
|   + 408251 [lists@ru y- ] created the program and taught all the classes left and took the program
+ 402232 [lists@ru y- ] promising to "turn you into a web developer" in 12 weeks (even if
| 402248 [flo@an er gr] That might be a bit of an upsell, but 12 weeks of intensive training can
+ 402252 [lists@ru y- ] It seems we have a very different understanding of being a programmer.
| + 402273 [flo@an er gr] projects
| | 402282 [caduceass@gm] I'm going to agree with Jan on this, and it doesn't have to do with just
| + 402288 [code@ap th o] What should an applicant for an "entry level" Ruby job have on his or her
+ 402281 [lists@ru y- ] So I'm Avi, the founder and main instructor at the Flatiron School. I
| 402283 [shortcutter@] "Wonder of code" - that's too much for me.  Maybe it's necessary
| 402284 [lists@ru y- ] It isn't marketing lingo. Don't you feel pleasure and wonder coding?
| + 402285 [peterhickman] Avi, its not that we are saying that you are not sincere in what you say
| + 402290 [shortcutter@] Pleasure yes, wonder no.  That was when I was 14 maybe, but most of
+ 402286 [lists@ru y- ] Sorry to make your skin crawl.
+ 402292 [lists@ru y- ] I think the reason why some of us are so sceptical about this "euphoric
| 402294 [peterhickman] But $10k would buy you a killer computer, plenty of books and pay for a
| 402296 [me@da id wd ] ...
+ 402751 [lists@ru y- ] This really all comes down to whether the connections made at the school

Hash of Mail headers
402213 [hawat.thufir] require 'yaml'
402222 [hassan.schro] Have you looked at the doc? There's an object called Mail::Header :-)

Ruby quick reference arranged in ASCII sequence?
402214 [lists@ru y- ] As a ruby beginner, I would be grateful for any links to a ruby
+ 402215 [lists@ru y- ] I have no idea what you mean by "ASCII sequence" in this context.
| + 402216 [matma.rex@gm] What Jan said.
| + 402219 [lists@ru y- ] Thanks for your kind response.
|   402220 [fluido@fl id] If you limit yourself to that, you will never learn to code.
+ 402217 [lists@ru y- ] Oh, you mean a reference that lists Ruby tokens in "alphabetical" order?
+ 402221 [echristopher] You might try http://symbolhound.com to search for non-alphanumeric
| 402230 [tamouse.list] I don't know where you'd find such a reference, but you could build
| + 402231 [tamouse.list] the #{expr} notation inside a double quoted string means to substitute
| + 402233 [lists@ru y- ] Personally, I would never write a ternary operator that was so
|   + 402234 [ymendel@po o] I cannot fathom why this line would ever appear in any program.
|   | + 402237 [tamouse.list] And this is the beauty of the language. It's expressiveness is wonderful.
|   | + 402243 [matthew@ke w] For when the grammar changes, of course.  One day, not too far away, we'll
|   + 402238 [tamouse.list] Yup. This is one of the things a second pair of eyes is great for as
+ 402321 [lists@ru y- ] Thanks for all the comments. The generosity of the folks on this forum
  402409 [sto.mar@we .] Pretty often they do tend to being used again...
  402417 [tamouse.list] Meh, It's their time to waste, use how they see fit, do what they want.

by value - by reference, circular reference
402223 [lists@ru y- ] i have a circular reference between two classes. Initialize of one needs
+ 402224 [shortcutter@] No.  It's: if the object changes the change is visible in all
+ 402225 [lists@ru y- ] Allright, thanks robert. Its clear now how this attempt failed.
  + 402235 [tamouse.list] if you object to long parameter lists, consider passing a hash.
  | 402255 [shortcutter@] a = A.new(
  + 402256 [shortcutter@] Good!

print - and strip text between tags using Nokogiri
402226 [lists@ru y- ] I'm a Ruby Newbie trying to write a program to process thousands of HTML
+ 402228 [shortcutter@] If you need to do more HTML and XML manipulation, learning XPath is a
| 402244 [lists@ru y- ] Calling map() is redundant because puts calls to_s on its arguments.
| 402271 [shortcutter@] Right, thanks for the reminder!  That was an artifact of IRB testing. :-)
+ 402236 [lists@ru y- ] Thank you for the swift reply!  I tried running the above against my
| 402239 [tamouse.list] You passed in the file name string to nokugiri, not the contents.
+ 402245 [lists@ru y- ] There should be a way to match the text of the first comment, but I
+ 402246 [lists@ru y- ] my_xpath = %Q{/html/body/comment()[. =' body="start"
+ 402257 [lists@ru y- ] I want the thank everyone for their quick replies and helpful
| 402269 [lists@ru y- ] I forgot to mention.  There are several ways to read line by line from a
| 402270 [lists@ru y- ] f = File.new(fname)
+ 402263 [lists@ru y- ] require "nokogiri"
+ 402266 [lists@ru y- ] 7stud - that's perfect.  Thank you so much!

Help me with Method Entry of Gtk
402240 [lists@ru y- ] I'm a Ruby Newbie trying to do a App, where user log on, when the users
+ 402241 [gennady-ruby] On Dec 15, 2012, at 9:54 PM, Alejandro Hernandez <lists@ruby-forum.com> =
+ 402242 [lists@ru y- ] Thank you, Gennady Bystritsky

net/http post request with nested hash data ?
402254 [aleiphoenix@] I'm currently working on a script doing login function with a website.
402264 [drbrain@se m] On Dec 16, 2012, at 6:53 AM, "AleiPhoenix (A.K.A Areverie)" =
402289 [aleiphoenix@] Got it, thanks.

splitting PATH-values fails on Windows
402260 [lists@ru y- ] Good evening.
+ 402261 [matma.rex@gm] You script seems to works for me on Windows XP (apart from the fact that nil is returned for invalid pathdirs, of which there were apparently two in my PATH).
+ 402262 [lists@ru y- ] Thank you Bartosz.

Uncaught exception: cannot load such file --
402274 [lists@ru y- ] There is an empty file called include_test.rb and a file test.rb which
402275 [fluido@fl id] Try
402276 [lists@ru y- ] is working.
+ 402277 [lists@ru y- ] I dont think that is the case as it is working fine on ubuntu, but not
+ 402279 [fluido@fl id] Ruby looks for include files that do not explicitly specify a path in

gem install error
402278 [lists@ru y- ] $ gem install ruby-debug-base19x
402967 [rogerdpack2@] see http://stackoverflow.com/questions/8835522/unable-to-install-gem-ruby-debug19-on-win7-with-installd-ruby-1-9-2-and-1-9-3

Generate unique texts on given constraints
402280 [lists@ru y- ] a) valid synonyms for words in the text (each word separately)
402291 [atma@co va e] ...

[ruby-talk] Stemmer gem
402295 [sampson.john] I am a newbie to Ruby so this may be elementary, but I have installed
402298 [hassan.schro] 1.9.3 (main):0 > require 'stemmer'

Scruffy Graphing
402297 [lists@ru y- ] I have a CSV file

[ruby-talk] stemmer.gem
402299 [sampson.john] Hah! I had both commands right, but not in the same session. Many thanks.

Convert unix time to 2012-12-18 18:59:22 (sample)
402300 [lists@ru y- ] i am trying to find out how to convert
402301 [lists@ru y- ] Ok i found one way
+ 402302 [fluido@fl id] Look at
+ 402306 [hmaddocks@me] ri strftime

Need helping parsing XML data retrieved from rest call
402304 [lists@ru y- ] performs a function for Windows servers during the build process.  I
+ 402305 [wbrisett@at ] Look at nokogiri. http://nokogiri.org
| 402312 [dummey@gm il] Other option is REXML.
+ 402307 [lists@ru y- ] Actually I was looking past the real issue, which was a problem with the
+ 402308 [lists@ru y- ] require 'nokogiri'

[ANN] hoe 3.4.0 Released
402309 [ryand-ruby@z] hoe version 3.4.0 has been released!

[ANN] RubyInline 3.12.0 Released
402310 [ryand-ruby@z] RubyInline version 3.12.0 has been released!

[ANN] flog 3.2.0 Released
402311 [ryand-ruby@z] flog version 3.2.0 has been released!

[ANN] flay 2.0.1 Released
402313 [ryand-ruby@z] flay version 2.0.1 has been released!

NoMethodError raised for using 'raise' in code.
402314 [lists@ru y- ] I have a superclass called EntryForm. All sub-classes of this class need
402315 [   ar@le .m ] I definitely can't reproduce this.  Is there any more relevant code you can
+ 402325 [lists@ru y- ] I've attached the code I'm using. The error doesn't come up when I use
+ 402326 [lists@ru y- ] I've attached the code I'm using. The error doesn't come up when I use
  402327 [sduncan@we a] Is Qt::Widget perhaps implementing raise?
  402328 [lists@ru y- ] That just seems to be the case. Thanks a bunch!!

Writing data into yml file in a particular format
402316 [lists@ru y- ] I have a hash in a controller file which I have to write into a YAML.yml

Thank you everyone
402317 [lists@ru y- ] I just wanted to thank everyone for the input.
402500 [code@ap th o] You're welcome to as much help as I was able to provide.  I'm glad you
402703 [stu@ru yp og] There's this one as well: https://www.hackerschool.com/

Comunication via rs485
402318 [lists@ru y- ] Is there any way to comunicate via rs485 with ruby? Any gem or project
+ 402320 [fluido@fl id] Back in 2009 I needed to talk to a device via rs485. Eventually, due
+ 402386 [lists@ru y- ] Google "ruby serial port"
  402490 [lists@ru y- ] Im already using serialport gem in my project, but as they say in their
  402509 [lists@ru y- ] Have you googled for the difference between RS232 and RS485? Also, you
  402526 [lists@ru y- ] Thanks for your answers. I dont understan the difference 100%, not my

[ANN] nokogiri 1.5.6 Released
402324 [mike.dalessi] nokogiri version 1.5.6 has been released!

Problems with SelectList popups
402329 [lists@ru y- ] I am having some issues trying to test my application, there is a select
+ 402330 [sto.mar@we .] You have to be much more specific.
+ 402331 [lists@ru y- ] application that runs in IE7, I am using Ruby with Watir to test the

Perl to Ruby: regex captures to assignment.
402332 [lists@ru y- ] I am converting a Perl program to Ruby in order to learn Ruby.  There is
+ 402335 [matthew@ke w] As it is, the parser is interpreting the ternary operation as the first
| 402333 [matthew@ke w] Sorry for replying to myself.  I just noticed that the Perl code also had
| 402339 [lists@ru y- ] That isn't an array in perl.
| 402341 [lists@ru y- ] Semantically, and in the context, a Perl list is analogous with a ruby
+ 402336 [windix@gm il] w, n, d = frac_str =~ %r{/} \
+ 402337 [lists@ru y- ] frac_str =  "1 3/4"
+ 402342 [lists@ru y- ] First of all, thanks for the fast responses!
| 402352 [shortcutter@] I would choose a completely different approach: I would have a single
| 402357 [lists@ru y- ] I am prompting for input, so I would be parsing individual strings and
| + 402358 [lists@ru y- ] test_data = [
| | 402370 [lists@ru y- ] That works, but it needs another "[-]?" in the second group to handle
| | + 402371 [botpena@gm i] fractions,...
| | | 402372 [lists@ru y- ] Interesting!  Coming from Perl, I figured there would be a gem to handle
| | + 402373 [lists@ru y- ] result = true ?  \ n  #your comment "true value" : "false value"
| |   402388 [lists@ru y- ] I can see that, but it is still odd.
| |   402391 [lists@ru y- ] It is not odd.  You just don't understand what escaping a newline does.
| + 402376 [shortcutter@] That was just for demonstration purposes.
|   402390 [lists@ru y- ] Understood.
|   + 402406 [shortcutter@] always store the integer number, the second the numerator and the
|   | 402408 [lists@ru y- ] Yes, Data Structure out of the way (B+), and Algorithms next quarter,
|   + 402478 [lists@ru y- ] Just to clear things up, since Ruby 1.9 Rational is not a gem nor in
+ 402343 [lists@ru y- ] how about this? use the magic of =~ to assign the local variables
+ 402374 [lists@ru y- ] Right.  I would try to capture it out front so that I wouldn't have to
| 402393 [lists@ru y- ] I have found that.  Good tool to use.
+ 402375 [lists@ru y- ] I don't see how it is pertinent to your regex.
+ 402396 [lists@ru y- ] dbuckhal what about this?
+ 402397 [lists@ru y- ] Explain in detail what do you think a \ at the end of the line does?
| + 402402 [matma.rex@gm] a = 5
| + 402407 [lists@ru y- ] My understanding, from a C/C++ background, is that the '\' allows for
|   402410 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 402411 [lists@ru y- ] Inside a ruby program, a newline is defined to be the string: "\n".
  + 402414 [echristopher] I just wanted to point out that all of 7stud's messages (as far as I
  | 402415 [echristopher] Maybe I was exaggerating about it being "all of" them. Now that I've
  + 402424 [lists@ru y- ] Thanks, but I am no longer trying to wrap my head around it.  I tested
    402435 [lists@ru y- ] And you have no idea why that is?  The perl parser knows that a
    402438 [lists@ru y- ] Ruby is similar to Python in that it uses line termination, unless you

Canvas-like GUI in Rhodes?
402334 [lists@ru y- ] I am a complete newbie to Ruby and Rhodes.  It seemed like Rhodes was

[ANN] ruby_parser 3.1.1 Released
402338 [ryand-ruby@z] ruby_parser version 3.1.1 has been released!

[ANN] flog 3.2.1 Released
402340 [ryand-ruby@z] flog version 3.2.1 has been released!

Prepared Statements with ruby pg gem
402344 [lists@ru y- ] I am trying to use the prepared statements in ruby with pg gem. This is

Efficient way to encode a string with a secret string and recover it
402345 [ibc@al ax ne] using some secret string I own and pass the result to other user, and
+ 402346 [peterhickman] The nature of a hash function is that there is no unhash function. It would
| 402348 [ibc@al ax ne] Yes, sorry, bad word. I just meant "encode/decode" rather than "hash".
+ 402347 [ibc@al ax ne] I've found the Crypt [*] library but it seems not adapted for Ruby
+ 402349 [phasis@gm il] def encrypt(input,key)
| 402351 [ibc@al ax ne] Thanks, I'm trying it and will compare with crypt19 as suggested by Joel.
+ 402350 [lists@ru y- ] Crypt19 works fine with Ruby 1.9.3

Rdoc inside method or function definition
402353 [lists@ru y- ] Could it be possible to have documentation comments for the rdoc inside
402363 [lists@ru y- ] You can't. But when the method is documented you can show the source

Subtracting strings
402354 [jrs.idx@nt w] Is there a method for deleting a string identified in a variable from
+ 402355 [dummey@gm il] a = "hello world"
+ 402356 [calvin.bornh] yes, there is (two, actually). They are called String#gsub and
| 402360 [jrs.idx@nt w] Subtracting strings
| 402369 [lists@ru y- ] Any place a literal, e.g. 10, 'hello', [1, 2, 3], is used, a variable
+ 402384 [lists@ru y- ] => "Hello"

trying to strip characters from a line
402359 [lists@ru y- ] I'm reading a table from a MySQL database and then processing it row by
+ 402361 [hmaddocks@me] There are two forms of gsub=85
+ 402362 [lists@ru y- ] simply use String#delete or String#delete!
+ 402364 [lists@ru y- ] Thanks for the responses.  Unfortunately neither is having the desired
| + 402367 [lists@ru y- ] Here is how computer programming forums work.
| + 402377 [lists@ru y- ] The "tail" doesn't tell us anything, we need your *code*.
+ 402379 [lists@ru y- ] The code is the very first post in this thread, but I'll repeat some of
+ 402380 [lists@ru y- ] I'm talking about your *new* code where you used the above suggestions.
+ 402381 [lists@ru y- ] n_rows.times do
| + 402382 [lists@ru y- ] It would be even better if you'd actually read them. :-/
| + 402425 [alexandermcm] ...
+ 402383 [lists@ru y- ] I did read and attempt to implement every suggestion made, but
+ 402426 [lists@ru y- ] Alex,
+ 402427 [lists@ru y- ] irb(main):001:0> 'A["],a'.gsub(/\["\],/,'')
+ 402431 [lists@ru y- ] irb(main):001:0> '["the frustrated musician&#8217;s<br>mountain<br>of
| 402439 [calvin.bornh] it did not work, because his regular expression is describing a
+ 402443 [lists@ru y- ] Yes, my mistake, i was looking for that exact string instead of the
+ 402449 [lists@ru y- ] Joel / Calvin,

A stupid question?
402365 [lists@ru y- ] I'm trying to find a way to count the consonants in a sentence. how
+ 402366 [lists@ru y- ] str = 'hello world'
| 402368 [lists@ru y- ] Whoops.  That should be ... count("a-zA-Z", "^aeiou"). You can read that
+ 402385 [lists@ru y- ] => 7
  402403 [tamouse.list] (a is a vowel...)
  402404 [tamouse.list] ... and that counts non-alphas.