414159-414414

413933-414407 subjects 414363-414697

How to use daemons?
414159 [lists@ru y- ] I'm having a problem using daemons (it's a gem used for running ruby
+ 414164 [sto.mar@we .] We really cannot rewrite the complete documentation just for you...
| 414167 [lists@ru y- ] I use random codes just to give an example of what I'm talking about.
| + 414169 [dbahar@gw ai] "fork is a POSIX/Unix system call. It is therefore only available on
| + 414172 [sto.mar@we .] But your example had nothing to do with daemons at all.
| + 414173 [lists@ru y- ] on windows ...?
+ 414168 [dbahar@gw ai] I'm in the same boat you are at the moment, learning the various ways of

Jim Weirich Passed Away
414170 [stu@ru yp og] Was just watching his talk from Ruby Conf last year "Y Not Adventures in
414171 [rubyhacker@g] This is very sad. It's a genuine loss to everyone who ever knew him.
+ 414174 [shortcutter@] It really is.
| 414191 [s.d@co ca t.] A fitting epitaph, and one that would bring a smile to Jim's face.
+ 414176 [joelvanderwe] Sad, indeed.
  414177 [groups@in ox] I don't really know what to say yet. I looked up to him in so many ways. I

Ruby, Apache, FastCGI / how to debug?
414178 [lists@ru y- ] Could anyone kindly help me with the following issue?

Warbler generated war for Sinatra App Sub-URI (URL-Routing) issues
414179 [lists@ru y- ] I implemented a small jruby sinatra app and if i run it directly on

help with minitest - module testing
414180 [lists@ru y- ] I need advice and help regarding the testing with minitest(/spec). More
414198 [ryand-ruby@z] Rule #1: fail FIRST. If you don't fail, how do you ever know your test =
414230 [lists@ru y- ] thank you for the detailed feedback.

question from WATIR
414181 [lists@ru y- ] please look at the code below
+ 414182 [HANSEM1@na i] This is a multipart message in MIME format.
+ 414183 [lists@ru y- ] but can you please tell me when we are inside the b.table.rows.each
  414187 [HANSEM1@na i] This is a multipart message in MIME format.
  414188 [lists@ru y- ] yes yes, It's working.  Even I was also expecting the same error like

How to do table of multiplication of number program in Ruby?
414184 [lists@ru y- ] x = 1
+ 414185 [lists@ru y- ] Add some commas.
| 414367 [lists@ru y- ] Thank you.
+ 414186 [lists@ru y- ] x = 1
| 414365 [lists@ru y- ] Thank you for your reply.
+ 414189 [lists@ru y- ] 2  4  6  8 10 12 14 16 18
| + 414190 [HANSEM1@na i] This is a multipart message in MIME format.
| + 414366 [lists@ru y- ] Yes, It is proper.
+ 414364 [lists@ru y- ] 1 * 1 = 1    2 * 1 = 2     3 * 1 = 3  -----------  10 * 1 = 10
| + 414376 [lists@ru y- ] x = 1
| | 414398 [lists@ru y- ] I got desire output from your answer.
| + 414377 [lists@ru y- ] Run also this code to get the thing which is same to your's thing.
|   414399 [lists@ru y- ] In above program, one code "puts "\n" if b == 1" is missing above this
|   414403 [lists@ru y- ] ("01".."99").each { |s| a,b=s.chars
+ 414375 [lists@ru y- ] 1 * 1 = 1    2 * 1 = 2     3 * 1 = 3  -----------  10 * 1 = 10

Class variables and deleting objects
414192 [lists@ru y- ] Being only a few hours into learning Ruby I've read very little about
+ 414195 [ruby-talk.li] Most people coming from other languages with class-vars are caught
+ 414196 [lists@ru y- ] Thanks Dave, that's very helpful.
  414197 [ruby-talk.li] No?  That's exactly what it's for.
  + 414200 [echristopher] I read Paul's question as asking how it would know *in his program in
  + 414207 [lists@ru y- ] Once again, I failed to make the question clear enough - sorry about
  | 414224 [alex@st nk .] No, the GC runs on its own schedule. If you want it to run immediately
  | 414227 [ruby-talk.li] AMEN!
  + 414225 [lists@ru y- ] OK I'll press on and ignore the memory issues unless they come back to

Using #respond_to? to avoid "no method error" is bad/good practice ?
414193 [lists@ru y- ] Sometimes, there is a need, that before calling a method on an object,
414194 [ruby-talk.li] It depends on the situation, and there are several other ways.  You

passing binary data from c extension back to ruby
414199 [lists@ru y- ] I'm writing an extension in c that will take a string of space delimited
+ 414201 [normalperson] rb_str_new(const char *ptr, long len);
+ 414205 [fluido@fl id] As you already could read, you can use rb_str_new, and pass to it the

Nokogiri::XML::NodeSet#to_html is not doing pretty printing
414206 [lists@ru y- ] Can the below output be pretty-print ?
414221 [shortcutter@] First hit.
414223 [lists@ru y- ] Thanks - for the reply.

mruby vs. lua
414208 [lists@ru y- ] How will mruby compare to lua?
414219 [matz@ru y. r] * some prefer Ruby to Lua

all_symbols array in irb
414211 [gvimrc@gm il] According to "The Well Grounded Rubyist" 2nd edition the following
+ 414212 [ryand-ruby@z] should increment the size of the all_symbols array by 2 for variables a =
| 414213 [gvimrc@gm il] => false
| 414214 [ryand-ruby@z] I wouldn't call it different... but IRB loads code. A lot of it.
+ 414215 [mike@st k. a] Did you check to see if :a and :b already existed?

How to do pattern program in Ruby?
414216 [lists@ru y- ] 2 1
+ 414217 [atma@co va e] Hell,
| + 414222 [lists@ru y- ] Thank you for your reply. It's helpful for me and i get more knowledge
| | 414228 [tamouse.list] another alternative: https://gist.github.com/tamouse/9174122
| + 414253 [lists@ru y- ] If I want to do this program without array, How can I do this?
|   414255 [lists@ru y- ] 1.upto(6) { |i| puts "6 5 4 3 2 1"[2*(6-i)..12] }
|   414257 [lists@ru y- ] Thank you , It's help me a lot.
|   414258 [lists@ru y- ] Yes you (should) can...
|   414260 [HANSEM1@na i] This is a multipart message in MIME format.
|   414261 [lists@ru y- ] No list, no string slicing, ... , why use ruby ?
+ 414301 [lists@ru y- ] n = 1
| + 414303 [atma@co va e] Yes that's a nice start.
| | 414316 [lists@ru y- ] I am trying to read code and understand how it is work. I will not give
| + 414304 [atma@co va e] Hey again,
|   414315 [lists@ru y- ] By adding "\n" , i am not able to get desire output.
|   + 414317 [HANSEM1@na i] This is a multipart message in MIME format.
|   + 414320 [lists@ru y- ] Sorry for reply to early and I said by adding "\n" , I am not getting
+ 414323 [lists@ru y- ] n = 1
| 414324 [HANSEM1@na i] This is a multipart message in MIME format.
| 414326 [lists@ru y- ] Your answer helpful for me.
+ 414331 [lists@ru y- ] In above, I am getting correct output.
  414337 [HANSEM1@na i] This is a multipart message in MIME format.
  414339 [lists@ru y- ] As you said, I use for loop in place of "1.upto(n)" then Is it possible
  414340 [HANSEM1@na i] This is a multipart message in MIME format.
  414341 [lists@ru y- ] Yes, I just not think in that way. At this my stage and my point of view

How do I change change string to integer?
414218 [lists@ru y- ] Currently doing exercise 35 on Learn Ruby the hard way.
414220 [shortcutter@] if /^(\d+)\s+(\S.*)$/ =~ next_move

Couldn't understand how to use the option :skip_lines
414226 [lists@ru y- ] "EN","Class","Carpenter",
414234 [jgabrielygal] The :skip_lines option receives an object that responds to match (for
414409 [abinoam@gm i] Jes=FAs has guided you to the right way! ;-)
+ 414410 [lists@ru y- ] Thanks,, I got your point. One doubt, Are you suggesting me to use
| 414412 [abinoam@gm i] Although there's some stylistic common pratice, you can use what you prefer.
| 414413 [abinoam@gm i] ... another thing...
| 414414 [abinoam@gm i] Dear Arup,
+ 414411 [abinoam@gm i] ... more

undefined method `header_row?' for ["A", nil]:Array (NoMethodError)
414229 [lists@ru y- ] Can anyone tell me why I am getting the error ?
414231 [lists@ru y- ] I have fixed the error. But csv_table not showing any data .
414268 [abinoam@gm i] Dear Arup,

csv
414232 [lizunicon@gm] use csv

[ANN] Ruby 1.9.3-p545 is released
414233 [usa@ga ba ec] Happy birthday, Ruby!

Why port a daemon from ruby to C++
414235 [atma@co va e] I'm was reading about 'Clearskies[1]', an interesting project, when I =
+ 414236 [normalperson] Ease-of-installation.  It's likely more systems have a C++ toolchain
| 414238 [fluido@fl id] My two eurocents: Ruby is much better in implementing the OO paradigm
| 414239 [shortcutter@] Not sure what you are getting at: this is about Ruby vs. C++ - not
| 414240 [fluido@fl id] Instead of thinking about porting from Ruby to C++, you can think of
| 414241 [shortcutter@] So basically you were slightly changing the question to "Are there any
+ 414237 [lists@ru y- ] No other reason makes sense.
+ 414242 [abinoam@gm i] Smaller memory footprint?
  414259 [lists@ru y- ] code obfuscation
  414262 [abinoam@gm i] +1 for masochism !
  414275 [shortcutter@] Whether it's that or sadism probably depends on who has to maintain the code...
  414283 [tamouse.list] +1 for diversity!

Must read books for programmers?
414243 [lists@ru y- ] What's your must read books for learning Ruby? I come from a Java
+ 414244 [greggahorton] I really like the well mannered rubyist
+ 414245 [lists@ru y- ] Is that another way to say The Well-Grounded Rubyist or is it another
| + 414246 [fxn@ha hr f.] Given that background I recommend "The Ruby Programming Language". Detailed
| + 414247 [greggahorton] Nope its that one, it's too early for email...
+ 414248 [lists@ru y- ] Xavier, it's great Matz is a co-author to that book and I have looked at
| + 414249 [phildobbin@g] <http://www.amazon.co.uk/Programming-Ruby-1-9-2-0-Programmers/dp/1937785491/ref=sr_1_1?ie=UTF8&qid=1393260284&sr=8-1&keywords=ruby+programming>
| + 414251 [fxn@ha hr f.] Xavier, it's great Matz is a co-author to that book and I have looked at
+ 414250 [lists@ru y- ] Phil, I am already reading through that book, currently on page 145.
| 414252 [phildobbin@g] Fair comment. I guess its authors were trying to cover all the bases but
+ 414254 [subscription] and
| 414256 [bascule@gm i] +1 on Sandi Metz's book
+ 414263 [lists@ru y- ] Would a book such as Metz' POODR translate as well to other languages,
| 414264 [jgabrielygal] I cannot comment on the book specifically, but I've watched videos by
+ 414370 [lists@ru y- ] One book which helped me understand how and when to use Ruby's classes

Mechanize - Use with bad coded HTML
414265 [lists@ru y- ] database based on the data scraped out of a website. This website is
414266 [lists@ru y- ] Never mind, it seems I'm not scraping correct page and I'm clicking the

Beginner question
414269 [lists@ru y- ] I'm taking programming lessons on Code academy, and I am stuck on the
414270 [sduncan@we a] strings = ["HTML", "CSS", "JavaScript", "Python", "Ruby"]
414271 [ak@ca lr d. ] Just wanted to thank everyone who replies to these emails. I learned

[ANN] RubyInstaller 1.9.3-p545 released
414272 [luislavena@g] I'm very pleased to announce the release of RubyInstaller packages for Ruby

[ANN] RubyInstaller 2.0.0-p451 released
414273 [luislavena@g] I'm very pleased to announce the release of RubyInstaller packages for Ruby

Re: undefined method `header_row?' for :Array (NoMethodError)
414276 [lists@ru y- ] But I am using the method `#[]=`
414277 [lists@ru y- ] But I am using the method `#[]=`

Ruby button action
414278 [lists@ru y- ] have a method in a controller file that I want activated only when a
414280 [bradleydsmit] Hamza,

[ANN] JRuby 1.7.11 released
414279 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.7.11

[ANN] minitest 5.3.0 Released
414281 [ryand-ruby@z] minitest version 5.3.0 has been released!

Ruby gsub for Wild Card Search
414282 [lists@ru y- ] I am very new to Ruby.
414285 [jgabrielygal] ng@01CF32E4.E5D83D80]<https://twitter.com/Music>[cid:image005.png@01CF32E4.=

Accessing instance variables in different classes
414288 [lists@ru y- ] I have a program like the following, where I the instances are declared
+ 414289 [craig@ma ac ] Is there a particular reason why you are approaching it like this?  I do
+ 414290 [chris.hulan@] you do need an instance of One to access an instance variable
+ 414295 [lists@ru y- ] Thanks Craig, I'm trying to write a very simple game; I realise that
| + 414296 [dummey@gm il] Ruby actually isn't that bad for games. Native ruby can use
| + 414297 [craig@ma ac ] Take a look at Design Patterns: http://en.wikipedia.org/wiki/Design_Patterns
| | 414298 [plugatariov@] Let me put my 5 cents about game development in ruby. Someone says that ruby isn”Ēt suitable for gamedev, but it depends on your purposes. If want to implement AAA crisis-like FPS, ruby is not your tool of choice. But if you want to take a part in some game jams like Ludum Dare, ruby is awesome tool. I hardly recommend you blog of this guyhttp://spooner.github.io/to make sure that ruby gamedev isn”Ēt a myth. My advice to use: gosu(graphics rendering, game loop, sound, etc), chipmunk(game physics), ashton(shaders), releasy(packager).
| + 414299 [lists@ru y- ] the issue with game & ruby is performence,
+ 414300 [lists@ru y- ] Thanks all, that's all useful info and most welcome (I never expected
| 414311 [shortcutter@] This slightly confuses me: you state that you have experience doing
+ 414319 [lists@ru y- ] Thanks Robert, I've never had cause to try creating one object inside
  414321 [shortcutter@] Oh, I thought so from "have a fair bit of experience with Java/Processing".

Mechanize problem "..absolute URL needed (not "").."
414291 [lists@ru y- ] This little (crappy :) ) code worked fine for a while and stopped
+ 414292 [jgabrielygal] This line means that the uri you have passed to "get" is the empty string.
+ 414308 [lists@ru y- ] Thank you Jesus, but thats strange because I use the same value from the
  414310 [jgabrielygal] Yes, but int is not the URL, and also you are not reaching that line,

Source code protection
414293 [lists@ru y- ] can protect my ruby source code that is deployed on machine connected to
+ 414294 [echristopher] Translating from source to bytecode is a one-way process -- you can't get
+ 414305 [stu@ru yp og] Yes bytecode can be disassembled and it's simpler than you think. If
+ 414328 [lists@ru y- ] I may be dumb as a Java-programmer, but would really like to know, what

RubyPython and dict to hash
414302 [lists@ru y- ] So I played around with RubyPython, because Python has a great library

RestClient Error
414306 [lists@ru y- ] I'm using rest-client gem to send POST request but getting error that
+ 414307 [atma@co va e] curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"one":"value_here", "two":"value_here"}' http://URL/accounts
+ 414309 [lists@ru y- ] Yes, I'm able to connect to the server using curl from windows XP

Ending Programs by pressing Enter key
414312 [lists@ru y- ] I am new to Ruby and reading 'Learn to Program: The pragmatic
+ 414314 [lists@ru y- ] #encoding: UTF-8
+ 414318 [lists@ru y- ] Ok, this is what I am trying to achieve
  + 414322 [abinoam@gm i] Dear Dipo,
  + 414327 [mike@st k. a] word'

[ANN] RIMS (Ruby IMap Server) 0.0.1 released
414313 [toki@fr ed m] RIMS version 0.0.1 has been released.

Extend vs Refinements ?
414329 [lists@ru y- ] protocol over a TCP socket. Is it ugly to do something like that ?
+ 414330 [lists@ru y- ] Bonjour,
+ 414335 [shortcutter@] I'd do neither. Both suggested approaches retain the API of class
| 414342 [lists@ru y- ] I have overlooked the other part of the question in my above post, but agree with Robert.
+ 414349 [lists@ru y- ] Very instructive for me to read your comments ! Thank you very much ! I

Need some help understanding
414332 [lists@ru y- ] and i've started working on Test-First Teaching exercise to test what i
+ 414334 [abinoam@gm i] Dear Tony Lee,
| 414336 [alex@st nk .] He's talking about
+ 414348 [lists@ru y- ] when you use a block, now i'm starting to get results.
| + 414350 [fluido@fl id] I cannot understand what you write about your error. But what I am
| + 414351 [jgabrielygal] What this tells you is that the test was expecting the result to be
+ 414362 [lists@ru y- ] end_time - start_time

missing psych (for YAML output) eventhough it is available
414333 [lists@ru y- ] I am completely new to this

[CFP] Dyla'14, Workshop on Dynamic Languages and Applications, at PLDI, Edinburgh
414338 [timfelgentre] - What: 8th Workshop on Dynamic Languages and Applications.

Handling exceptions
414343 [lists@ru y- ] I'm using a web service in Ruby script and occasionally I get errors. I
+ 414346 [lists@ru y- ] If it's the same error class you'd have to use the same rescue and then
+ 414347 [lists@ru y- ] Thank you. I didn't understand the syntax.

Automatic login and Screen scraping gem needed
414344 [ruby.student] We have this application (IBM *Cognos*) which runs on a browser. Once the
414345 [lists@ru y- ] There are plenty of previous questions on this subject, you could have
414352 [ruby.student] Joel, you are correct. I precipitated my self posting the question before
414354 [jgabrielygal] If the site doesn't use javascript you can use Mechanize.
414360 [ruby.student] WOW! Big difference than my interpretation!

Kitchen Sales Northampton
414353 [lists@ru y- ] Kitchen Sales Northampton www.exdisplaykitchens1.co.uk.  Cheap kitchen

Problem with using Ocra.
414355 [lists@ru y- ] Something what I expected and didn't wanted to happen; HAPPENED!
+ 414356 [tamouse.list] You might be having a conflict with Kernel#loop method...
| 414357 [lists@ru y- ] Please try to explain it as simply with possible.
| 414358 [tamouse.list] Short answer: change your variable named "loop" to something else,
| 414359 [lists@ru y- ] Logically speaking, whenever you ocra your script it runs the script
+ 414361 [lists@ru y- ] exit if defined?(Ocra)
| 414368 [lists@ru y- ] for is are there any precautions to take by using the code above?
+ 414369 [lists@ru y- ] If there are any gems or non-standard libraries which need to be
| 414373 [lists@ru y- ] I'm not sure if I totally understood what you meant by that.
| 414374 [lists@ru y- ] I'm not sure if I totally understood what you meant by that.
+ 414392 [lists@ru y- ] Ocra picks up most of the gems and source files anyway, but sometimes
threads.html
top