401581-402293 subjects 401995-409361

compressing files
401784 [lists@ru y- ] i want to show the jpeg-compression data loss on different images...

Looking for someone who have worked with SOAP and WSDL.
401785 [eliezer@ng e] I was trying to work with siri interface for transportation services.

Sorting. First lowest m, then highest n & last lowest s value
401787 [lists@ru y- ] dansefil = File.open("dans.txt")
401788 [lists@ru y- ] 34,1,2,2,2,6,6,6

Ocra build error
401791 [lists@ru y- ] I'm confused by this, I can't see any reason for Ocra to fail in
+ 401812 [lists@ru y- ] I've just completely rebuilt the laptop (fresh install of windows) and
+ 401813 [lists@ru y- ] system("\"#{Ocra.lzmapath}\" e tmpin tmpout 2>NUL") or fail
| 401817 [quintus@qu n] This looks as if it invokes the external compression program for LZMA,
+ 401819 [lists@ru y- ] me a direction to start looking in. Thank you so much!
+ 401820 [lists@ru y- ] Aha, I've cracked it. I previously redirected the command prompt to my

Novice: Understanding Constants - Definition and Redefinition
401796 [lists@ru y- ] Looking at the code from
401803 [lists@ru y- ] Because ruby allows you to change things at will.  There are still other

[ANN] kramdown 0.14.0 released
401800 [t_leitner@gm] ## About kramdown

[ANN] kramdown 0.14.1 released
401801 [t_leitner@gm] [Now with the correct subject ;-)]

Gem install error?
401807 [lists@ru y- ] 'string_extensions'
+ 401809 [justincollin] You mean a gem you built on your local machine? Then you need to provide
| 401814 [matma.rex@gm] Or just `gem install string_extensions --local`.
| 401815 [lists@ru y- ] tried that and got the same error. and YES i did do that,Guest!
| 401816 [hassan.schro] Dunno if this will help, since you're on Windows and I'm on Mac OS,
+ 401810 [lists@ru y- ] string_extensions-0.0.1
  401811 [sto.mar@we .] You made of course sure that the file exists in the directory you

ruby 1.8 under windows 64 bits
401808 [lists@ru y- ] We have ruby scripts  for our build infrastructure.

[ANN] rdoc 4.0.0.preview2
401818 [drbrain@se m] rdoc version 4.0.0.preview2 has been released!
401821 [transfire@gm] ...
401828 [drbrain@se m] ...
401871 [transfire@gm] ...

Can't get method to accept username/password
401825 [lists@ru y- ] I'm new to Ruby...
+ 401826 [chris.hulan@] string interpolation (the #{...} syntax) only works inside double quotes
+ 401827 [lists@ru y- ] Thank you!!

Trouble with date
401829 [lists@ru y- ] Im trying to incorporate the date into a directory path
+ 401832 [tamouse.list] Seems to be going a long way 'round something pretty simple.
| + 401835 [sto.mar@we .] require 'fileutils'
| + 401836 [lists@ru y- ] FileUtils.mkdir_p(save_path)
|   401890 [tamouse.list] \o/
+ 401834 [lists@ru y- ] Thank you! That worked great

URI regex help
401839 [lists@ru y- ] I am trying to extract the fields of a URL path.
+ 401840 [hassan.schro] 1.9.3 (main):0 >
+ 401841 [lists@ru y- ] 1.9.3-p194 :016 >
| 401842 [shortcutter@] Yes, of course.  That's not even valid Ruby code.
+ 401843 [lists@ru y- ] url = 'https://api.github.com/repos/orgName/final'
  401844 [stu@ru yp og] 2.0.0dev :001 > require 'uri' ;

changing superclass
401845 [uzleepito@gm] Does someone know if it's possible to dynamically switch superclass, or
+ 401847 [matma.rex@gm] Use modules.
| 401850 [uzleepito@gm] I really appreciate that you want to save me from myself... :)
+ 401848 [fxn@ha hr f.] I understand the first and second paragraphs separately, but not together :).
+ 401856 [lists@ru y- ] Sure.
  401861 [uzleepito@gm] What you do here is inserting a new Module into the ancestors chain.
  401880 [lists@ru y- ] If Animal is the superclass of Dog, then why doesn't Animal's greet()
  + 401881 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
  + 401883 [uzleepito@gm] Because imported modules go right above the current class in the ancestors
    401885 [fxn@ha hr f.] ...

If statement
401849 [lists@ru y- ] Will anyone be able to point out what I am doing wrong.
+ 401851 [matma.rex@gm] The value returned by `gets` includes a trailing newline. Use
+ 401852 [veannaa@gm i] Masoud, I don't believe you need to interpolate the op, you can just use
+ 401854 [lists@ru y- ] You are also using backticks in the last line above, and backticks are
+ 401860 [lists@ru y- ] Are you sure this would work?
+ 401863 [lists@ru y- ] This row solved my problem,
| + 401864 [i_cenov@bo e] if ["Q\n", "q\n"].include?(op)
| + 401866 [shortcutter@] Just a note on that one: I think this solution is inferior to doing
+ 401865 [lists@ru y- ] If you do trust your user enough to let them execute system commands (I
| 401867 [shortcutter@] system op
+ 401887 [tamouse.list] While others have addressed some of the syntax problems, I'd like to
| + 401888 [tamouse.list] if op == "Q"
| + 401889 [matthew@ke w] sentence with a preposition, but that is something with which one
|   401891 [tamouse.list] that's not it.."
+ 401894 [lists@ru y- ] Thank you guys

couchdb wrapper
401855 [lists@ru y- ] Is there a preferred gem/wrapper for couchdb?
401893 [daixque@gm i] This link may help.

mysql gem - connect with certificate
401857 [sagy.drucker] I am trying to use the ruby gem =93mysql=94 in order to connect to an SQL

Attribute ordering in REXML
401858 [uwe@ku os h.] We are using REXML to modify XML files in our project, and we experience that the attributes of all tags are always reordered.  For XML files that are checked into source control, this generates unnecessary noise.
401859 [shortcutter@] ->
401873 [uwe@ku os h.] Thanks!  That did the trick.

`require': cannot load such file when attempting to run a unit test
401868 [lists@ru y- ] Ruby beginner here.

system is silently coming out in error with thread.join
401869 [lists@ru y- ] run_work.rb
+ 401870 [shortcutter@] $ ruby -e Thread.new
| 401892 [lists@ru y- ] I dont get a fix yet.. :(
+ 401877 [lists@ru y- ] Once you get your syntax problems corrected, try giving every variable a

401872 [stephenp@ag ] REMOVE stephenp@agrussell.com

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

Files to include .gem package?
401875 [transfire@gm] ...

Cross compiling
401878 [alberich2k5@] I'm cross compiling some ruby gems and projects for the Raspberry PI.
401896 [alberich2k5@] And sorry to insist, maybe it is a newbie-stupid question, but I couldn't
401897 [fluido@fl id] I have no ready-made recipes. But I am certainl you will find tons of
401943 [alberich2k5@] I'm using gem and bundle to install software. And is at this point where
+ 401948 [fluido@fl id] where you find a rakefile (provided you downloaded the gem and
+ 401957 [ryand-ruby@z] On Dec 5, 2012, at 03:03 , Alberich de megres <alberich2k5@gmail.com> =
  401993 [alberich2k5@] $ gem install ...
  401997 [ryand-ruby@z] On Dec 6, 2012, at 13:52 , Alberich de megres <alberich2k5@gmail.com> =
  402013 [alberich2k5@] I think I understand now.
  402100 [alberich2k5@] Sorry to insist,

[ANN] JRuby 1.7.1 Released!
401879 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.7.1
401882 [tom.enebo@gm] Whooooops...Jira lied to me and by extension to you all.  We only

http request
401884 [lists@ru y- ] I was trying to do an http request using gem httpclient.
402010 [lists@ru y- ] Your code works fine for me.  You should consider setting up a server on

My code was not working on rubymines but working fine on cmd?
401895 [lists@ru y- ] Possibly I find there is issue with ide(rubymines) or the debugger.
401904 [lists@ru y- ] Unless you show us your code and the point where the error happens,

[ANN] Ruby mogilefs-client 3.5.0 released
401898 [normalperson] A MogileFS client library for Ruby.  MogileFS is an open source

What is wrong in this
401899 [lists@ru y- ] $rr_msg = "hello"
401901 [jgabrielygal] You can't construct a variable like that. In order to do this you need
402007 [code@ap th o] That's not just "another way" -- it's a much better way, for most

Invalid Soap request gets created
401902 [lists@ru y- ] I am using savon to create SOAP request's, below is the code

selenium-webdriver + puts page title
401907 [lists@ru y- ] Can anyone help me with why this fails? Thanks in advance.
+ 401911 [sto.mar@we .] First, you have a misplaced `end' (the last one).
| 401913 [lists@ru y- ] Thanks for your reply, so it should be as below?
| 401914 [sto.mar@we .] I do not think it does. Try including statements like
| 401922 [lists@ru y- ] When I removed the space in def by_id it passed, it dident run the code
| 401925 [lists@ru y- ] the element are available or not? Or how should you solve it?
+ 401926 [lists@ru y- ] Noticed that it dident worked so well when I entered an element that

Weird rescue
401908 [kai@ka ri ha] Can somebody tell why this happens ?
+ 401915 [botpena@gm i] ...
+ 401916 [botpena@gm i] x and y are different objects.  try compare with #equal?
+ 401918 [sto.mar@we .] class MyStandardError < StandardError; end
+ 401923 [echristopher] That is strange. According to the Pickaxe[1] (the online one at least;
  401924 [echristopher] ...

Extract number (float) from string
401909 [lists@ru y- ] $5.99 /LB
+ 401910 [sduncan@we a] How about;
| 401912 [lists@ru y- ] Sorry didn't work for me.
+ 401917 [lists@ru y- ] prices = [
| 401959 [tamouse.list] ".......".to_f # => 0.0
| 401960 [jdaudier@ou ] ...
+ 401919 [sto.mar@we .] Using float for currency is a bad idea.
| 401921 [sto.mar@we .] /\$(?<dollars>\d+)\.(?<cents>\d+)/ =~ "$5.99 /LB"
+ 401920 [botpena@gm i] see ri String#slice
  402056 [shortcutter@] That's a quite lazy match which will also try to convert "...." into a

String literal in condition and Invalid retry error in code.
401927 [lists@ru y- ] I am attempting to make a Vector Calculator, that will take either
401931 [jgabrielygal] 1.9.2p290 :001 > answer = "x"

Unable to run the program.
401928 [sachin.s32@w] Hey all,
401929 [ralf.mueller] ...
+ 401930 [sagy.drucker] There is no need to use both =93require=94 and =93include=94 for the class =
| 401937 [sachin.s32@w] Thanks Sagy for the info provided...
+ 401936 [sachin.s32@w] Thanks Ralf.. Its working now after changing the name of "def search to def=
  401939 [ralf.mueller] ...

Re: Code wont run due to errors
401932 [lists@ru y- ] answer = 'hello'
401933 [lists@ru y- ] Thanks for that. I'll give it a try and let you know how it goes.
401935 [lists@ru y- ] if answer != "given" || "coordinates"

how to require specific version of gem in my project
401934 [lists@ru y- ] I have installed two different versions of a gem (1.0.0 and 1.0.4)
401941 [ryand-ruby@z] On Dec 5, 2012, at 01:27 , Mallikarjuna Yaddala <lists@ruby-forum.com> =
401949 [lists@ru y- ] where i need to add these lines

Surds in Ruby
401938 [lists@ru y- ] I was wondering if anyone knows of a way to express surds in Ruby. Again

Re: Vectors & Surds in Ruby
401940 [lists@ru y- ] I think you'll have to be more specific about both questions.
401942 [lists@ru y- ] Thanks, for the reply. With the Vector class, I am unsure how to set the vector a value, when I try it in irb i am given the error "NameError: uninitialized constant Vector". Also with the expressing surds, I want to take a float value and then express in in it's exact value eg 1.73 as ĘŚ3.
401944 [lists@ru y- ] The Vector class is part of the standard library, so you need to include
401946 [lists@ru y- ] Thanks for that, I wasn't aware that the "require matrix" was necessary.
401947 [lists@ru y- ] Then you have to use symbolic calculations with custom square root
401951 [lists@ru y- ] If you want to do a lot of math with vectors and surds (symbolic
401952 [ralf.mueller] For numerics there are several packages with fast Vector/Matrix implementation with lots of features
401953 [carlos.agari] There's also NMatrix: http://github.com/sciruby/nmatrix. It's being
401954 [lists@ru y- ] Thank you for all who point to the vector/matrix capabilities in Ruby.

Organizing code to avoid name space collision
401945 [lists@ru y- ] I need some hints to organize my code, so I avoid name space collision
401950 [shortcutter@] It depends on the lifetime of the association between a Seq instance
401955 [lists@ru y- ] Thanks Robert,
401968 [shortcutter@] How is it decided which of the two is included in regular code?
401973 [lists@ru y- ] I decide if I want backtrack or dynamic matching in the scripts I write
401977 [shortcutter@] You're welcome!
401983 [s.zhikharev@] Excuse me please, how can I unsubscribe from it?
401984 [mariosouzalu] @Sergey ,
401985 [chris.hulan@] see http://www.ruby-lang.org/en/community/mailing-lists/
401986 [attnjd@gm il] confirmed via email, I am still getting ruby-talk emails.

Find element test with webdriver
401956 [lists@ru y- ] that it was not found. But below code fails, i want my test to output '
+ 401958 [lists@ru y- ] The best workaround I've seen for this was to use findelements to return
+ 402110 [lists@ru y- ] Thanks for your reply. According to array you mean something like below?
+ 402111 [lists@ru y- ] array = @driver.find_elements(:id, "gbqfba")
+ 402167 [lists@ru y- ] Thanks for your answer Joel. I really want to solve this with Selenium
  + 402171 [hassan.schro] Specifying exactly what that "complaint" is would help people help
  + 402172 [sto.mar@we .] Be more specific (provide the error message).

Feedback on Code/Script
401961 [lists@ru y- ] Hey guys, I am currently creating a Vector Calculator program on Mac
+ 401969 [lists@ru y- ] I tried Shoes but ended up using Tk, it seemed more suitable for my
+ 401970 [lists@ru y- ] It seems to work ok.
| + 401974 [lists@ru y- ] Thanks for that. The purpose of the
| + 401975 [lists@ru y- ] Thanks for that. The purpose of the
+ 402097 [eule@sp ce c] On OSX? By all means go native with MacRuby.

Having isues with capitalizing words
401962 [lists@ru y- ] def  title(words)
+ 401963 [sduncan@we a] Does this help?
+ 401964 [matthew@ke w] Try using "and"s instead of "or"s.
| + 401965 [sagy.drucker] Firstly, don=92t use =93||=94 for =93or=94. Simply use =93or=94 command.
| + 401966 [tamouse.list] or...
|   401967 [tamouse.list] words.gsub!(/\w+/)do |match|
+ 401988 [lists@ru y- ] Basically what sagy said helped me solve this.  Thanks for the help

Array#concat Enumerator
401971 [transfire@gm] ...
+ 401981 [lists@ru y- ] Well, the documentation of concat is explicit that it requires an array
+ 402052 [shortcutter@] Then do
| 402085 [transfire@gm] ...
+ 402087 [lists@ru y- ] Who uses .push when .<< is so much nicer.
  402091 [shortcutter@] That lies in the eye of the beholder, doesn't it?  A typical use case
  402093 [matthew@ke w] I've also used #push when I want to make it explicitly clear that I'm using

how to reproduce error System error (Failure) Imap
401972 [lists@ru y- ] Am using Imap in ruby 1.8.7
+ 401980 [attnjd@gm il] unsubscribe
| 401982 [s.zhikharev@] ...
+ 401998 [ryand-ruby@z] If you look through the code of net/imap.rb you'll see that there is no =
  402008 [lists@ru y- ] This issue raised at line in my code  imap.examine("[Gmail]/Sent Mail")
  402022 [tamouse.list] Really hard to debug code without seeing it, but...

[ANN] Rainbows! 4.4.2 - EventMachine async.callback fix
401976 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

Browser close/open issue watir-webdriver using IE.
401978 [lists@ru y- ] Start of server failedset_ports_option: cannot bind to 5555: No errorNo
401979 [lists@ru y- ] Have you looked at this thread? We might have covered whatever is
402009 [lists@ru y- ] How to rescue that error?
402025 [lists@ru y- ] "rescue Exception" will rescue anything. More likely you're trying to

Trying to get "translator" to work
401987 [lists@ru y- ] So, basically, I'm trying to get the below code to work properly for
+ 401989 [lists@ru y- ] I'll have to have a think about the "qu" problem (one of the geniuses
+ 401990 [lists@ru y- ] On a side note, I tried the /a-z&&[^aeiou]]/i in rubular.com.  It
| 401994 [lists@ru y- ] Here's a demo I made for you: http://www.rubular.com/r/7sZKl7CqJ1
+ 401991 [jgabrielygal] =3D> "square"
| 401992 [lists@ru y- ] Way better than the shameful hack I ended up trying (writing another method to pass all the results through) :)
+ 401996 [lists@ru y- ] Maybe I am just bad at this, but I'm having a hard time figuring out how
| 402000 [jgabrielygal] I'm guessing the argument words is just a string, since you are
+ 402004 [lists@ru y- ] I have looked at what you are saying.  I'm having a hard time seeing how
+ 402011 [lists@ru y- ] contains_qu=word.match(/(.*qu)(.*)/).captures rescue contains_qu=nil
+ 402021 [list.push@gm] This is not a complete solution, but maybe you can modify the 'if'
+ 402026 [lists@ru y- ] I got lost trying to decode your logic for two consonants, three