402820-405470

402586-403068 subjects 403027-404377

[SEC][ANN] Rack 1.1.4, a modular Ruby webserver interface
402820 [jftucker@gm ] Today we are proud to announce the release of Rack 1.1.4.

[SEC][ANN] Rack 1.2.6, a modular Ruby webserver interface
402821 [jftucker@gm ] Today we are proud to announce the release of Rack 1.2.6.

[SEC][ANN] Rack 1.3.7, a modular Ruby webserver interface
402822 [jftucker@gm ] Today we are proud to announce the release of Rack 1.3.7.

[SEC][ANN] Rack 1.4.2, a modular Ruby webserver interface
402824 [jftucker@gm ] Today we are proud to announce the release of Rack 1.4.2.
402828 [tamouse.list] Rack is really zooming through versions...
+ 402845 [dl-williams@] On Jan 6, 2013, at 10:27 PM, tamouse mailing lists <tamouse.lists@gmail.com>=
+ 402850 [sophrinix@gm] They have to keep up with firefox ;-)

ruby 1.9.3p362 ranges as conditions bug?
402825 [windwiny.ubt] I am test this has a problem,
+ 402827 [tamouse.list] What do you expect n==3..n==6 to do? That evaluates to a range of
| 402829 [matma.rex@gm] irb(main):001:0> (1..100).each do |i|
| + 402833 [windwiny.ubt] Run code on irb, pry has different result, write code to file, run from
| + 402874 [tamouse.list] I really do not understand how this works. I can see what it produces, but why?
|   402876 [phasis@gm il] You can see a detailed explanation at
+ 402834 [phasis@gm il] I confirmed this bug also occurred on ruby trunk.

error running onStopped callback
402840 [lists@ru y- ] Do anybody know why below error message spits out in my cmd window?

ETIMEDOUT - why?
402841 [lists@ru y- ] Why do I get this error?
+ 402842 [shortcutter@] It's almost impossible to answer your questions with as little context
+ 402843 [lists@ru y- ] Any possibilities are fine. In fact, a decent book concerning RST, Error
| 402847 [shortcutter@] I don't understand this: first you say you know too much and now you
+ 402844 [lists@ru y- ] I'm working on debugging it, but *shrugs* sometimes 'block in connect',
  402846 [shortcutter@] Wireshark is your friend - if you can / are allowed to use it.

[ANN] ruby 2.0.0-rc1 released
402852 [mame@ts .n .] Japanese follows; 日本語はあとで
402851 [mame@ts .n .] Very sorry, I forgot one of the most important section!

[SEC][ANN] Rack 1.4.3, a modular Ruby webserver interface
402853 [jftucker@gm ] Today we are proud to announce the release of Rack 1.4.3.

[SEC][ANN] Rack 1.3.8, a modular Ruby webserver interface
402854 [jftucker@gm ] Today we are proud to announce the release of Rack 1.3.8.

Newbie question: Referencing a class inside another class
402855 [lists@ru y- ] I have an Error class defined inside another class in the lib directory
402857 [hmaddocks@me] ...
402858 [lists@ru y- ] Thanks for the reply.
402859 [calvin.bornh] if you have required the content of lib/pkg/sample.rb into

Ruby on Android - usb/serialport
402856 [lists@ru y- ] I'm new to ruby and android.  I come from a Java background.  I'm going
+ 402922 [echristopher] You might want to ask on the JRuby list or a Ruboto list (if there is
| 402924 [lists@ru y- ] Thanks.
+ 402925 [uwe@ku os h.] Ruboto gives you access to the complete Android API, so if a Java Android app can access the serial port, so can a Ruboto Android app.
  402937 [lists@ru y- ] That could possibly be exactly what I was looking for.  Thanks.

Call Windows .exe with arguments
402860 [lists@ru y- ] Trying to call a windows .EXE with additional arguments.  I found some
+ 402862 [lists@ru y- ] Command Line Arguments
+ 402868 [lists@ru y- ] The exe is not something I created.  In this case it is a windows native
+ 402871 [lists@ru y- ] Yes, are you sure that the .exe accept arguments?
| 402879 [matma.rex@gm] Of course they do.
+ 402875 [lists@ru y- ] Yes.  I provided the arguments I need to pass above.  I can run that exe
+ 402877 [lists@ru y- ] Maybe arguments isn't the best word.  Switches for the exe is maybe more

gsub with multibyte characters
402861 [wbrisett@at ] I'm running into a problem trying to read a line of text that has some mult=
+ 402869 [list.push@gm] Do you have something like this as the first line of your code?
| + 402872 [wbrisett@at ] some multibyte
| + 402873 [wbrisett@at ] I fixed it!=20
+ 402923 [lists@ru y- ] How is this relevant to my post?
  402941 [list.push@gm] It isn't. But in the mailing list, these were 2 separate threads.
  402960 [lists@ru y- ] LOL

[ANN] minitest 4.4.0 Released
402863 [ryand-ruby@z] minitest version 4.4.0 has been released!

[ANN] minitest-focus 1.0.0 Released
402864 [ryand-ruby@z] minitest-focus version 1.0.0 has been released!

How to identify whether a line of code will return?
402865 [josh.cheek@g] because I want to modify it to capture it's return value. If it returns,
+ 402866 [josh.cheek@g] Thought maybe I could solve it with regexes, but I've come to the
| 402867 [matthew@ke w] I agree, it's pretty weird.  I would guess the "void value expression"
+ 402870 [shortcutter@] Why do you need to modify the line?  Can't you catch it at the calling
  402878 [josh.cheek@g] Because the library I'm writing (

One liner for filenames
402880 [lists@ru y- ] Can someone help me to write a Ruby one-liner to remove all the files
+ 402882 [lists@ru y- ] ruby -e "Dir.foreach('C:/Directory_with_png/') {|file| File.delete(file)
| 402953 [burns@io ct ] There's certainly many ways to do this, but globing will ignore the dot
| 402957 [lists@ru y- ] Thanks, Brian. But, even preceding this with "ruby -e" gives me nothing. Should I make this part of a script instead of it being a one-liner?
| 403000 [burns@io ct ] That's odd... Works for me under 1.8.7, 1.9.2 and 1.9.3.
+ 402887 [kimersen@on ] This should work=85
| + 402909 [lists@ru y- ] Thank you very much, Kim. It's a big help.
| + 402912 [lists@ru y- ] Kim,
+ 402910 [shortcutter@] ruby -r pathname -e 'Pathname.glob("*[^1].png").each(&:delete)'
| + 402911 [lists@ru y- ] Thanks, Robert.
| + 402916 [jgabrielygal] Careful, as this skips also filename_11.png, filename_21.png, etc.
|   + 402917 [shortcutter@] +1  I wasn't aware that there could be larger numbers. Thank you for
|   + 402918 [lists@ru y- ] Excellent. Thanks. Hans is right, though. Dir.glob is unsorted. Is that a problem here?
|     402919 [jgabrielygal] No, because here we are using the glob facility to do all the
|     402920 [lists@ru y- ] Beautiful. Thanks a lot.
|     402938 [lists@ru y- ] This is what I'm getting. I'm sure i'm missing something simple.
|     402940 [shortcutter@] Any chance you are using Ruby 1.8*?  If so I suggest to upgrade to 1.9*.
+ 402913 [lists@ru y- ] [1,2,3,4,5][1..-1] #=> [2,3,4,5]

[SEC][ANN] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!
402881 [tenderlove@r] I'd like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been rele=

Can I require an external .js file in Ruby
402883 [lists@ru y- ] Is there a way to include .js functions within my ruby script?
+ 402885 [carlos.agari] Nicole,
+ 402886 [jeremy@bo p.] The Ruby interpreter can only directly run Ruby code.  Javascript is not
| 402889 [hassan.schro] e.g. `gem install johnson`  -- https://github.com/jbarnette/johnson
| 402907 [flo@an er gr] On Jan 9, 2013, at 12:54 AM, Hassan Schroeder =
+ 402914 [lists@ru y- ] Thanks for all of your responses. I guess I would need to access the DOM
  402962 [flo@an er gr] That is something completely different. What you'd like to do is =

Re-implementing Autoload
402884 [transfire@gm] ...
402896 [transfire@gm] ...
402906 [fxn@ha hr f.] You surely know that, but let me comment that this autoload behaves in
402959 [transfire@gm] ...
402961 [fxn@ha hr f.] Exactly, dependencies.rb does the same as a know trade-off.
402975 [transfire@gm] ...

ANN: Sequel 3.43.0 Released
402888 [lists@ru y- ] Sequel is a lightweight database access toolkit for Ruby.

Pure Ruby Jobs
402890 [keystonelemu] One thing has been bugging me lately. I've been looking around for jobs in
+ 402891 [carlos.agari] I feel the same when reading through LinkedIn's "Jobs you might be
+ 402892 [dummey@gm il] I work on a validation tools team that uses ruby for our tool, so there are
+ 402893 [hmaddocks@me] There are jobs, probably comparable to the number of perl or python jobs, it's just a small number compared to Rails so they get lost in the noise.
+ 402895 [fenghe@ns et] Somebody use Ruby for system admin, somebody use it for statistics and
| 402897 [keystonelemu] I use Ruby to build custom automation, monitoring, and statistical software
+ 402898 [tamouse.list] I think it's basically that Rails is the 800-pound gorilla in the Ruby
  402899 [tamouse.list] Crikey. I need someone to proof-read my email responses....
  402900 [hmaddocks@me] I agree. I've been mostly a Ruby developer since 2005 with 50/50 split rails and 'other stuff'. Very few of the jobs I've had have specified or even cared what language I used.
  402904 [davidgamba@g] Another field you might be interested in is QA automation. Specifically
  + 402902 [davidgamba@g] And just now I saw the new release of cobra, haven't used it, to do window
  | 402903 [keystonelemu] I have no qualms with Rails, it's just that Ruby is so much more powerful
  + 402905 [fenghe@ns et] Since you discuss the ruby job here, I follow this thread to say that if
    404618 [drosihn@gm i] One thing for "pure ruby" jobs is that few places are going to say "We need
    404622 [jonanscheffl] I'm on the ruby agent team at NewRelic and we need people to write pure

[Ann] Cobra 3.0 - Windows GUI test automation tool
402894 [nagappan@gm ] - Added getcellsize / getcellvalue, returns table cell size and value
402901 [nagappan@gm ] Apologize for the inconvenience.

ffi: Can't get dll to work
402908 [lists@ru y- ] I want to use PICkit's dll (PICkitS.dll) from Ruby on Windows XP, but I

Illegal seek (Errno::ESPIPE) when reading from named pipe
402915 [lists@ru y- ] What is the correct procedure to read one line from a named pipe?
402933 [whitequark@w] Try IO#sysread.

ERB trim mode
402921 [rcvalle@re h] This is a cryptographically signed message in MIME format.

Sending HTML form information to a text file or visitor_log
402926 [lists@ru y- ] The Subject says it all really. I am trying to have the information send
+ 402927 [ryan@ra to m] I think you're missing a '/' at the beginning of the path, it should be
| 402928 [lists@ru y- ] Thanks Ryan,
+ 402929 [matma.rex@gm] Well, this errors is pretty clear, isn't it? "No such file or directory - media/Apache/apache2/logs/visitor_log (Errno::ENOENT)".
| 402931 [lists@ru y- ] Yeah sorry, pretty new to all of this. Ryan cleared things up thanks.
+ 402930 [lists@ru y- ] Just an update managed to fix the problem.

Extending class
402932 [lists@ru y- ] In Ruby it is possible to extend module, but not class. I am working on
+ 402934 [matma.rex@gm] `extend Something` is mostly the same as `class << self; include Something; end`.
+ 402935 [calvin.bornh] I don't know if my tip applies for you (haven't worked with neither
| 402942 [shortcutter@] I also believe that is what is called for here.
| 402985 [hmaddocks@me] Pretty sure the OP wants to do this
| 402987 [shortcutter@] I'm pretty sure that he does not want that.
+ 403032 [sean.ohalpin] Inheritance?

Cucumber tests on static app
402936 [umrzykus@ga ] I'm going to write acceptance tests using cucumber. the problem is, my

adding variable values to output (to file)
402939 [lists@ru y- ] I have a ruby script the reads a delimited text input file, does some
402983 [lists@ru y- ] I also forgot to mention that I am wondering if it would be easier to

Can I create directories with dynamic names on run time using Ruby1.9?
402943 [lists@ru y- ] I have to download files from the web over several requests. The
402944 [fluido@fl id] Function FileUtils#mkdir_p makes sure that all intermediate
402945 [lists@ru y- ] Can I have a simple `snippet` for that, I am totally new to Ruby. I have
+ 402946 [carlos.agari] require 'fileutils'
| 402948 [lists@ru y- ] have you watched my `Python` snippet? Look at that how it is
+ 402947 [fluido@fl id] You may be new to ruby, but in order to write code you should know how

How to delete the folder contents using Ruby?
402949 [lists@ru y- ] 77787
+ 402950 [lists@ru y- ] this deletes a file
+ 402951 [shortcutter@] Probably.  I can't help you with reading the numbers from the Excel
| + 402952 [shortcutter@] Pathname.glob(base + "Document*").each do |dir|
| + 402954 [lists@ru y- ] Thanks Robert for your help! Now what such "#" operator is doing? Could
+ 402955 [lists@ru y- ] #{} inside "" is for automatic interpolaration ...
  402956 [lists@ru y- ] Thanks Hans for your clarifications!

how to open pop up window table?
402958 [lists@ru y- ] There is `text label` on a webpage, and I am trying to click on that to
+ 402963 [lists@ru y- ] What tool are you using to do the clicking?
| 402964 [lists@ru y- ] I am using Selenium with Ruby 1.9.3. But for that Popup window to open,I
+ 402971 [lists@ru y- ] I just uploaded one screenshot. Please look into that,which might help
+ 402976 [lists@ru y- ] I'm not particularly experienced with Selenium without Watir, but I
| 402980 [lists@ru y- ] Does "Watir" support Firefox 17.0.1. I was using selenium-webdriver to
+ 402981 [lists@ru y- ] Watir-webdriver is Selenium with Watir's API, I consider it the best of
| 402982 [lists@ru y- ] Can you suggest me what gem I need to install to work with lates version
+ 402986 [lists@ru y- ] This should help you understand a bit more and give you something to get
+ 403006 [lists@ru y- ] Also, if you don't have Firebug, get it ASAP. It will make your life
| 403008 [lists@ru y- ] Thanks for your continuous help! Do you suggest me any good gem for File
+ 403010 [lists@ru y- ] Ruby can handle .txt files fine just using "File". I found a few simple
  403031 [sto.mar@we .] Use the built-in CSV class.

[ANN] google_hash gem 0.8.0 released
402966 [rogerdpack2@] just pushed the latest google_hash gem, 0.8.0

Newbie: Web app development
402972 [lists@ru y- ] I am completely new to this whole affair (programming in general) and
+ 402973 [jgabrielygal] Ruby is a programming language: you can program anything with it.
| 402974 [ryan@ra to m] I definitely second Sinatra, it'll get you started without doing "too
+ 402977 [fluido@fl id] Abut this latest part (about the APIs), it really depends on the

What DB to use for lots of categorized urls and domains? noSQL? SQL?
402984 [eliezer@ng e] I am wondering about what DB to choose for this goal.
403018 [shortcutter@] Scale in what direction?  Database size, requests per second, multiple
403126 [eliezer@ng e] Thanks Robert,
+ 403149 [shortcutter@] Well, less dimensions would be too easy, wouldn't it? :-)
+ 403168 [hutch-lists@] On 2013-01-14, at 6:33 AM, Eliezer Croitoru <eliezer@ngtech.co.il> =
  403169 [eliezer@ng e] Thanks Bob,

Refinements. Am I doing Something wrong?
402988 [lists@ru y- ] I am currently playing around with Ruby 2.0. I wanted to look into
402989 [transfire@gm] ...
405435 [cwdinfo@gm i] This is kind of a bummer. I have a gem that I'd like not to make =
405470 [matt@ti bi s] module CoreExtensions

Coding Ruby on iPad
402990 [lists@ru y- ] Does anybody know any free application to code and run Ruby on an iPad?
+ 402991 [jw1496@at .c] I was just looking at the Shoes website (http://shoesrb.com/) and I wondered the same thing!  In fact, I just read "The Little Coder's Predicament as well (http://viewsourcecode.org/why/hacking/theLittleCodersPredicament.html).  A Shoes implementation for iOS/Android would be cool.  I'm planning to download Shoes and Hackety Hack for the kids.
+ 403002 [dave.baldwin] Rubymotion allows you to run Ruby programs on an iPad but you need a mac
+ 403003 [t.yao426@gm ] If you really want to code on a tablet device, I strongly recommend
+ 403040 [lists@ru y- ] For Android devices, there's Ruboto (= JRuby)

Code coverage tools
402992 [lists@ru y- ] We are looking for a Ruby code coverage tool that provides class

getting an unwanted exception from selenium-webdriver
402993 [lists@ru y- ] I am using `selenium-webdriver` to automate web browser related
+ 402994 [lists@ru y- ] That isn't an exception, it's selenium's startup log. You'll get that
| 402998 [lists@ru y- ] Joel, thanks for your help! Any idea how can I hide/suppress it?
+ 402999 [lists@ru y- ] I've never been able to suppress it, although I'm sure one of the
| 403001 [lists@ru y- ] "Nice thought" I am a newbie in this platform. So not much know about
| 403086 [lists@ru y- ] If you're using the Windows installer for Ruby, it generally comes with
+ 403005 [lists@ru y- ] I'd suggest ignoring the LOG messages until you've had more time to play
+ 403069 [tamouse.list] One of the many reasons I prefer using capybara, watir, and others

Rulog - Prolog in Ruby?
402995 [jrs.idx@nt w] What happened to the gem Rulog?
403108 [transfire@gm] ...

Installing and using ruby gems without root privileges
402996 [aruseni@gm i] I've encountered an error which I cannon solve by myself.
+ 402997 [fluido@fl id] When you require something, you do not require a gem. You require
+ 403004 [matma.rex@gm] While it may not be exactly what you need, I really suggest looking into RVM. It allows you to easily install any version of Ruby and any gems straight in your home directory, entirely painlessly. even if you have no privileges on the system.
| + 403007 [aruseni@gm i] Well, managed to run the required gems by adding folders *
| + 403065 [tamouse.list] +1 for rvm in this context. It is *necessary* to keep you from tearing
+ 403033 [jeremy@bo p.] Because you're using Ruby 1.8.7, you need to explicitly require the

Ruby command Line options
403009 [lists@ru y- ] Can you bit help me to understand how the below options work in real
+ 403011 [lists@ru y- ] To the best of my knowledge (someone please correct me if I'm wrong)
| 403013 [lists@ru y- ] Any small code snippet if you have, could you please share?
+ 403012 [matma.rex@gm] This one controls tainting, which is a bolted-on feature that no one ever uses as far as I know. It is supposed to help prevent security holes, but like PHP's magic_quotes isn't a real solution.
| + 403035 [lists@ru y- ] Can any one help me to understand how the above two options work in Ruby?
| | 403036 [echristopher] They are all used primarily for one-liners (i.e. invocations where a
| | 403037 [lists@ru y- ] Excellent logic you just have provided to me!Exactly what or more than
| + 403063 [tamouse.list] My one-liners are my life :)
+ 403014 [lists@ru y- ] Try this: http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html
  403016 [lists@ru y- ] Joel, you are Awesome! Nice material you have posted. :)

How Ruby environment varibles work in realtime program?
403015 [lists@ru y- ] DLN_LIBRARY_PATH,HOME,LOGDIR,RUBYOPT,RUBYSHELL
+ 403017 [shortcutter@] I am not sure I understand what you are asking. The Ruby interpreter,
| 403019 [lists@ru y- ] `static` value means i tried to say if those variables having values at
+ 403020 [lists@ru y- ] I should think
| 403021 [lists@ru y- ] Microsoft Windows XP [Version 5.1.2600]
| 403023 [jeremy@bo p.] As you can see, Ruby thinks those names you specified are constants, but
+ 403022 [lists@ru y- ] Oops, forgot the dollar signs. FYI that's a single line of code, it gets
| + 403024 [jeremy@bo p.] You're in Ruby here, not bash, so those names are global variable
| + 403025 [shortcutter@] These are global variables and not environment variables!  Please see
| + 403026 [lists@ru y- ] What the reason could be of not set the variables? and how should I need
+ 403028 [lists@ru y- ] Jeremy's answer is right, I got confused about what variables you were
threads.html
top