406565-407762 subjects 406968-407440

Wondering why no "increment" or "decrement" operator in ruby
406784 [tamouse.list] Seems like every other language I've encountered since learning C way
406785 [lists@ru y- ] In a word: yes.
406786 [tamouse.list] I guess I don't understand this last part; I can still call an
+ 406787 [lists@ru y- ] In the C code underlying MRI, ruby objects are referred to by integers
+ 406796 [shortcutter@] I prefer to look at this on the language level and not the MRI
  406803 [rob@ag le on] ...
  406804 [shortcutter@] Yes, that's even better.  But, as you discovered

How to get the cookie from a website?
406797 [lists@ru y- ] Recently,I am confused that how to get cookie from a website.I installed
+ 406798 [robert.w.jac] Mechanize does keep track of the cookies that are set during various =
+ 406799 [jgabrielygal] agent = Mechanize.new

handle http request timed out
406805 [lists@ru y- ] i have written a script which connects to a website and read from their
406806 [tamouse.list] With this loop, you are making a new request each time, which starts

Merge Sony W730 AVCHD Videos for Uploading in Avid, Premiere, Pinnacle, Sony Vegas
406809 [lists@ru y- ] Merge Sony W730 AVCHD Videos for Uploading in Avid, Premiere, Pinnacle,

EuRuKo 2013 targets 2nd ticket batch at US West Coast and East Asia
406812 [vvatikiotis@] the EuRuKo 2013 1st ticket batch went out in under 2 min last Friday and while it was thrilling to watch it, we realised that not everyone can be on his/her toes to get a ticket, especially since they went on sale at 14:00 UTC. US West Coast and East Asia devs were (probably) asleep after a long day of building beautiful Ruby code.

simple tool for position checking in google
406813 [lists@ru y- ] in google, link below is for you.

Facebook Community for Ruby Programming Language
406814 [lists@ru y- ] Why isn't this Ruby Community on Facebook, not famous???
+ 406816 [ryand-ruby@z] You've already done this. We're now aware. You can stop now.
+ 406834 [rubytalk2dav] Maybe because there was already

How to get the only the partial of text
406815 [lists@ru y- ] bellow is a text . but i just need the 2nd half of the ip till :110
+ 406817 [lists@ru y- ] How about this?
+ 406818 [lists@ru y- ] my_string.scan /-([^ ]+)/
  406822 [tamouse.list] Looking at OP's sample output, they want it without the trailing :ddd

Getting infinite loop from specific array
406819 [lists@ru y- ] I am trying to make a Greed game.  See attached for my code.
+ 406821 [tamouse.list] I suggest writing some unit tests for your methods, and stepping
+ 406869 [lists@ru y- ] nonscoring_dices returns -1 and you don't have condition for this value

[ANN] makerakeworkwell 1.0.3 Released
406820 [ryand-ruby@z] makerakeworkwell version 1.0.3 has been released!

Delete method also deletes the original variable
406823 [lists@ru y- ] array1 = [1,2,3,4,5]
+ 406824 [garthy_lmklt] array2 = array1.dup
+ 406833 [shortcutter@] Adding to what Garthy said: you need to be aware that there is only one

Re: Delete method also modifies the original variable
406825 [lists@ru y- ] Variables in ruby hold references to objects.  This can be evidenced by
+ 406826 [lists@ru y- ] Thanks much for help! :)
+ 406827 [tony.arcieri] A (suboptimal) solution for deep copies in Ruby is to use Marshal.
  406830 [shortcutter@] What exactly do you mean by "structured cloning"?  Do you have ideas how
  406835 [tony.arcieri] You can think of it as being somewhat akin to the marshal/unmarshal

[ANN] rack-robustness 1.1.0
406828 [blambeau@gm ] rack-robustness 1.1.0 is out, it provides the rescue/ensure clause of your

String index produces unanticipated result
406836 [lists@ru y- ] I have the following string I am pulling from a file (asterisks used to
+ 406837 [rob@ag le on] to
+ 406838 [sduncan@we a] The 57 you are getting is the ordinal of the string "9";
+ 406839 [lists@ru y- ] Thanks. I am running Ruby 1.8.7.  That would explain why online irb gave
  406844 [shortcutter@] irb(main):005:0> s="    9    3    3    0    0"
  406889 [gennady-ruby] ...

Running file from command line issue
406840 [lists@ru y- ] trying to learn the basics right now from Lynda.com. I'm trying to run
+ 406841 [echristopher] I think that's it. Ruby from 1.9.2 on does not allow you to `require` files
+ 406910 [josh.cheek@g] When you require a file, it looks through an array of directories (called

Deploying Rack apps to Thin behind Nginx
406843 [lists@ru y- ] I released a simple Capistrano recipe on Github, it allows/documents

Match against multiple patterns problem
406845 [charleshixsn] if    not s.is_a?(String)    or    len(s) < 1    then
+ 406846 [jgabrielygal] Actually you can do assignments inside logical expressions. The
| 406848 [wbrisett@at ] ...
| 406860 [charleshixsn] ...
+ 406847 [calvin.bornh] - Using the global $~, the last matched expression (equivalent to the
+ 406849 [lists@ru y- ] How about this?
  + 406861 [charleshixsn] Given that $1 means what I think it means from context, that would work,
  | 406863 [lists@ru y- ] $~ is the same object as your 'm', so you can do your `m[0]' thing with
  + 406873 [shortcutter@] Tests = [

SQLite3 Ruby 2.0 on Windows
406851 [lists@ru y- ] After having quite a time working out what needed to be done, I thought
+ 406942 [lists@ru y- ] Thanks for sharing.
+ 407322 [mo_mail@on h] Awesome, thanks!
+ 407327 [lists@ru y- ] If you installed Rail in Windows ever,then such step by step
+ 408267 [lists@ru y- ] I followed these steps using Ruby 2.0.0p195 [i386-mingw32] on Windows 7.
+ 408269 [lists@ru y- ] I appear to have fixed this by accident.
+ 409021 [lists@ru y- ] Temporarily enhancing PATH to include DevKit...
+ 409022 [lists@ru y- ] You're using 32-bit Ruby 2.0 and 64 bit Dev Kit?
+ 409023 [lists@ru y- ] I'm using the version rubyinstaller.org recommends, I'm not using the 64
+ 409062 [lists@ru y- ] Maybe that one will work for you.
+ 409071 [lists@ru y- ] I needed to read the fine print ;)
+ 410978 [lists@ru y- ] Followed the instructions but it says sqlite3.h is missing ?
+ 411133 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 414371 [lists@ru y- ] Is it just me or does this have nothing whatsoever to do with Ruby 2.x?
  414379 [michel.reves] I didn't have any problem with the sqlite3 gem and Ruby 2.1.1 running on

Tickets for EuRuKo 2013: Calling All Ruby Brigades!
406853 [apantsiop@gm] The clock is ticking and everyday brings us closer to EuRuKo 2013! EuRuKo

[ANN] hoe 3.6.0 Released
406854 [ryand-ruby@z] hoe version 3.6.0 has been released!

[ANN] flog 4.0.0 Released
406855 [ryand-ruby@z] flog version 4.0.0 has been released!

[ANN] minitest 4.7.2 Released
406856 [ryand-ruby@z] minitest version 4.7.2 has been released!

[ANN] RubyInline 3.12.2 Released
406857 [ryand-ruby@z] RubyInline version 3.12.2 has been released!

[ANN] ZenTest 4.9.1 Released
406858 [ryand-ruby@z] ZenTest version 4.9.1 has been released!

[ANN] zenweb 3.1.1 Released
406859 [ryand-ruby@z] zenweb version 3.1.1 has been released!

Welcome screen on my application startup
406862 [lists@ru y- ] am developing a desktop application using visualruby and ocra. I want to

"gets" overwrites string - why does this happen?
406864 [phil@pr co .] People,
+ 406866 [lists@ru y- ] I think gets isn't compatible with ARGV / ARGF
+ 406868 [windwiny.ubt] using
  + 406870 [lists@ru y- ] Ah yes, in this case gets is modifying $* and therefore filename as
  + 406871 [phil@pr co .] windwiny,

Chromedriver + windows = arguments are ignored
406865 [lists@ru y- ] I am not sure if this is BUG or I am doing something wrong, but I can't
406867 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

Input: sentence Modify: words Output: modified sentence
406874 [lists@ru y- ] I am new to Ruby. This is a programming interview question to use any
+ 406882 [lists@ru y- ] I generally don't approve of doing people's homework for them, but this
| + 406884 [tamouse.list] Curious how you'd handle contractions :)
| | 406898 [lists@ru y- ] "don't" should be d2t according to my logic, as I'm only counting
| + 406887 [lists@ru y- ] puts gets.chomp.gsub(/\b([a-z])([a-z]+)([a-z])\b/i){
|   406888 [lists@ru y- ] Thank you all! You are helping me to understand more complicated
|   406894 [sto.mar@we .] The below code doesn't look "rubyish" at all.
|   406896 [tamouse.list] array
+ 406899 [list.push@gm] What would be the output for this?
+ 406900 [lists@ru y- ] Building on what Matthew and tamouse demonstrated (I didn't know about
  406914 [tamouse.list] These little exercises are great for playing around with things.

where do i put scripts to run them from the command line
406875 [lists@ru y- ] directory/file do i save them to run from the command line. It just
+ 406877 [lists@ru y- ] What platform are you on?
+ 406878 [calvin.bornh] What is the exact error message? Can you start irb?
+ 406880 [lists@ru y- ] Dir.pwd
+ 406890 [alexandermcm] ...

How to make YARD show full class names in the docs?
406876 [gennady-ruby] I use YARD to generate all my API docs, works great. The only problem is =

Need help with Tmail parser
406879 [lists@ru y- ] Hey,
+ 406885 [tamouse.list] The last character looks more like an m-dash rather than a pair of minuses.
+ 406886 [lists@ru y- ] Looks like I figured out the problem. The parser is breaking only when

How Dtrace Support Work
406881 [lists@ru y- ] I'm a new developer at JRuby. I'm working on implementing Dtrace Support

Problem installing shoes using the installer shoes-3.1.0.run
406883 [ruby.student] shoes-3.1.0.run, but after few seconds the installer terminates with the
+ 406895 [lists@ru y- ] hey there -
| 406901 [ruby.student] Thank you Jake for the links. I will also try the mailing list for shoes.
+ 406902 [lists@ru y- ] no problem,
  406903 [ruby.student] Hey thank you for your help. Please rest assured that I don't intend to
  406904 [lists@ru y- ] just write to shoes@librelist.com

dtrace failing to match probes of provider Ruby
406905 [lists@ru y- ] I am using Ruby 2.0 in Ubuntu 11.04.

[ANN] raindrops 0.11.0 - real-time stats for preforking Rack servers
406906 [normalperson] Raindrops is a real-time stats toolkit to show statistics for Rack HTTP

[ANN] diff-lcs 1.2.4 Released
406907 [austin@ru yf] diff-lcs version 1.2.4 has been released!
406911 [viabsb@gm il] remove

[ANN] minitest 4.7.3 Released
406908 [ryand-ruby@z] minitest version 4.7.3 has been released!

[ANN] mime-types 1.23 Released
406909 [austin@ru yf] mime-types version 1.23 has been released!

Tap method : good or bad practice ?
406912 [lists@ru y- ] I try to code a function that generates and returns options. Is it
+ 406913 [tamouse.list] There is more than one way to do things.
| 406915 [shortcutter@] That's true for sure.  Why write all the values into the Hash?  Here's my
| 406916 [lists@ru y- ] Robert the Problem is the default proc, it is maybe not what he wants
| 406923 [shortcutter@] Why is that a problem?  Do you have knowledge about the situation of
+ 406917 [matma.rex@gm] Uhh, and please don't do this, either. If you need multiple expressions inside reduce's block, you're doing it wrong.
| 406920 [tamouse.list] This is completely useless advice.
+ 406918 [hmaddocks@me] tap is an example of a K combinator. It might not be common practice, though=
+ 406921 [lists@ru y- ] 1.upto(n).each_with_object({}) { |i,mem| mem[i]=i }
+ 406922 [lists@ru y- ] Can on the same context anyone explain the difference between `tap` and
+ 406924 [fxn@ha hr f.] Regardless of the refactors people are suggesting, going to the original
+ 406925 [josh.cheek@g] I wouldn't do that, unless I had a need to inline it (e.g. writing a
| 406935 [tamouse.list] one-liner on the the command line), but I also wouldn't care enough to
| 406955 [lists@ru y- ] I often find myself using idioms like
| 406957 [shortcutter@] That doesn't make any sense at all: there is no point in using #tap if you
| 407029 [lists@ru y- ] def foo(args)
| 407033 [fxn@ha hr f.] I think Rails has a 'returning' method doing just
+ 407032 [lists@ru y- ] Thank you very much for your various answers !

ruby 2.0 with tk 8.5 on Raspberry Pi
406919 [lists@ru y- ] I'm building ruby-2.0.0-p0 on a Raspberry Pi running Raspbian wheezy,
407148 [lists@ru y- ] I finally managed to find a way to work around this problem. I hesitate

Progressbar while file/folder copy in progress.
406926 [lists@ru y- ] I would like to have a progress bar for my application while file/folder
406927 [fluido@fl id] There are several ways to obtain the result that you are trying to

POODR advice
406928 [jgabrielygal] I was thinking about buying Practical Object Oriented Design in Ruby
+ 406939 [jonanscheffl] I think your team would get a lot out of POODR even without ruby
| 406940 [jgabrielygal] Thanks. I'm trying to push Ruby at every opportunity I have, but it's
+ 406947 [hmaddocks@me] On 22/04/2013, at 8:12 PM, Jes=FAs Gabriel y Gal=E1n =
+ 406963 [lists@ru y- ] I'm currently working my way through that book.
  406964 [jgabrielygal] Thanks all for your comments. I think I'll buy it if I get some budget :-)
  407052 [shortcutter@] I know I'm late to the party...  I took away a lot from OOSC.  It is
  407054 [jgabrielygal] -)

help with installing thrift with ruby 1.9.3
406929 [lists@ru y- ] # ruby -v
406931 [josh.cheek@g] IIRC, Debian has different packaging philosophies, and disables Rubygems so

406930 [zakaria0x1@g] At first , i like to thank the community of ruby, and the Creator for the
+ 406932 [shortcutter@] I am not sure I understand: what you are asking.  Are you talking about
+ 406933 [tamouse.list] best language ,
  406996 [julian@co et] ...
  406999 [shortcutter@] +1

How to invoke an .exe with command line arguments
406934 [lists@ru y- ] I have to invoke an .exe with command line arguments, for example
406938 [sto.mar@we .] Generally, command line arguments can be accessed via ARGV.

406936 [lists@ru y- ] HEY as we know that the object conatins the instance variables that are
+ 406937 [jgabrielygal] In statically typed languages, you have to declare the types of
| 406965 [ryand-ruby@z] On Apr 22, 2013, at 06:52 , Jes=FAs Gabriel y Gal=E1n =
| 406981 [jgabrielygal] typing issue. Smalltalk is dynamically typed and you have to declare the i=
| 406992 [me@da id wd ] Change that to you don't *have to* declare variables. "You don't declare" would be misleading.
| 407014 [sto.mar@we .] How would you declare a variable in Ruby? Do you mean the first
| + 407018 [me@da id wd ] Yes, the first assignment to it. Since Ruby does not define variables by type (such as 'String my_var') but determines the type from whats assigned to it (eg, if you assign:  my_var = "This block of text"   it knows it”Ēs a string), there is no declaration like what you're used to.
| | 407040 [sto.mar@we .] So "you don't declare variables" is correct,
| | 407041 [me@da id wd ] Stu, thanks. I didn't catch that. Nice one!
| + 407042 [ryand-ruby@z] languages I
|   407043 [tamouse.list] quack quack
+ 407020 [stu@ru yp og] It's a data type based on syntax sugar.
+ 407068 [lists@ru y- ] Guyz u people have confused me i request u all to please come up with
| + 407069 [me@da id wd ] Umm read what was said and it will be clear. Are you sure this isn't Love U Ruby under a different nick??
| | 407077 [lists@ru y- ] Sorry i ruby we dont declare the instance variable in class.
| + 407096 [shortcutter@] You can't "request" anything here.  You can kindly ask people for support
|   407105 [lists@ru y- ] I imagine "servering" means hitting someone with a server. Sounds fun!
|   407110 [tamouse.list] It's like a Law of the Internet or such, innit?
+ 407078 [lists@ru y- ] So in ruby we dont declare the instance variables in class for instances
  407085 [tamouse.list] When you say "declare", what is it you actually mean? "Declare" to me means
  407104 [lists@ru y- ] Here u go "GEEK"
  407113 [tamouse.list] What does this mean?

JRuby Summer of Code Student Proposals Open!
406943 [headius@he d] It's now time for students to start entering proposals! We would like

SciRuby Summer of Code
406944 [carlos.agari] SciRuby is a project that aims to bring scientific computation to Ruby.
406946 [sophrinix@gm] very nice.  would it be possible to get a high performant database backed
406948 [carlos.agari] At the moment we're concentrating on numerical linear algebra (including

[ANN] minitest-debugger 1.0.1 Released
406949 [ryand-ruby@z] minitest-debugger version 1.0.1 has been released!

[ANN] minitest-excludes 1.0.2 Released
406950 [ryand-ruby@z] minitest-excludes version 1.0.2 has been released!

[ANN] minitest-macruby 1.0.1 Released
406951 [ryand-ruby@z] minitest-macruby version 1.0.1 has been released!

Problem with array variable
406952 [lists@ru y- ] I use putty tools to do the ssh stuff (net-ssh/scp) doesn't work because
+ 406953 [shortcutter@] I do not have a solution handy but the first thing I'd do is replace %x[]
+ 406954 [lists@ru y- ] That was a sweet bit of code, I have scripted some in bash and thats
  406956 [shortcutter@] Well, you can use

ruby - speed
406958 [satoshinakam] ...
+ 406960 [matt@te hn r] You probably want to take a look at the ruby-core list.  Most folks here
+ 406961 [lists@ru y- ] snsn what ruby did you test? recent one is more faster than 1.8 version

How MRI's symbol implemented?
406959 [kiswono@gm i] and those list of symbols was not garbage collected right?
406978 [lists@ru y- ] Thank you for the pointer.

[ANN] Nokogiri 1.6.0.rc1 Released - "Fat Source"
406962 [mike.dalessi] Experimental Nokogiri version 1.6.0.rc1 (codename "Piano Key Necktie") has

copying files syntax with FileUtils.rb (grr.)
406966 [lists@ru y- ] In my Ruby scripting, there is probably no greater and chronic source of
+ 406967 [hassan.schro] You need to learn the effect of single and double quotes on string
+ 407016 [sto.mar@we .] That has really *nothing* to do with FileUtils.
+ 407017 [lists@ru y- ] OK, I just spent about an hour fooling around and looking up string
| + 407019 [hmaddocks@me] You create a directory called "move_dir".=20
| + 407034 [doug@ds if r] Besides what Henry said, it seems like you go through some extreme
+ 407412 [lists@ru y- ] (1) I still have trouble with this.  I'm following Doug's example, and
| 407414 [echristopher] My guess is that the directory .../hp/file_diff/source_diff/ doesn't exist.
+ 407413 [lists@ru y- ] I love Ruby, but loathe FileUtils.
  407417 [sto.mar@we .] Your problems had *nothing* to do with FileUtils, but with