213814-235921

213664-215018 subjects 214045-215255

^ heredoc with variable interpolation breaks script
213814 [olli sopos.o] micalg=pgp-sha1; protocol="application/pgp-signature"
213852 [logancapaldo] You are calling the method "test" (which is a perlism, FYI) inside your
213869 [olli sopos.o] Indeed, it was a typo.  The real error was that I did a chomp on an

^ metakit from ruby using swig
213816 [v.konrad lse] i managet to make the metakit (http://www.equi4.com/metakit.html) work
213837 [znmeb cesmai] I'm interested, although I'm perfectly happy with SQLite and its Ruby
213840 [v.konrad lse] here it goes...
213842 [v.konrad lse] forgot one thing, the metakit can be built as static library

^ Almost ! RSA Javascript/Ruby
213819 [jean.verger ] It looks that Javascript returns hex, while Ruby

^ instance_eval
213822 [srdjan.marin] I've got a following problem: when I do
+ 213825 [decoux moulo] Try this
+ 213826 [flori nixe.p] This works because the context of the block is used to create T.
  213828 [srdjan.marin] of course eval, I just didn't think of it really, I feel kinda silly:)

^ compare bitmaps
213829 [junkone1 gma] i am looking for libraries to compare bitmap images in png format. can
+ 213830 [foamdino gma] try RMagick the ruby interface to the ImageMagik libs
+ 213831 [alex blackke] Yes.  You want to look at the RMagick library - specifically, if you're
+ 213835 [farrel.lifso] It's probably easiest to generate MD5 hashes for each file and compare those.

^ system stack error in Signals
213833 [inxs.hemant ] Why following code, should cause a SystemStackError(* after i let it run for

^ Re: Why this exception is not caught?
213834 [inxs.hemant ] class RetryException < RuntimeError; end;
213910 [rick.denatal] Because that second rescue statement catches any exception which is a

^ Constant lookup starting in superclass, not derived class
213839 [chrisjroos g] I'm no doubt missing something obvious but I found this a little
+ 213845 [matz ruby-la] use "self.class::Foo" instead of plain "Foo".
+ 213846 [logancapaldo] Constants, unlike methods and instance variables, are "quasi"-lexicaly
+ 213849 [shortcutter ] Foo is not in the scope of Base so it cannot be looked up the way you
  213857 [chrisjroos g] Do you have any suggestions of alternative implementation?
  + 213862 [shortcutter ] Depends on what you want to do.  If you just want to create instances
  | 213872 [pbattley gma] Or to put it more clearly, 'please trim quotations and don't top post.'
  + 213992 [bpettichord ] I was bumping against the same wall you are for a while. Later, i

^ [ANN] OK.rb Meeting Tomorrow Evening
213841 [james graypr] The Oklahoma Ruby Users Group will hold its quarterly meeting
213853 [shortcutter ] Let's see...  It's just 790 miles from St. Paul - that'll be a quick

^ string as nil or empty string?
213847 [aidy.rutter ] With everything in Ruby being an object, should a string be initialised
+ 213850 [farrel.lifso] I prefer using nil that way I can do if statements like
+ 213851 [shortcutter ] It depends on the circumstances.
| 213855 [chris.hulan ] +1 Robert
| 213863 [shortcutter ] Often yes, but this may vary according to circumstances.  Since I
+ 213864 [garbagecat10] nil signifies the absence of an object, so you can always set a
| 213914 [robert.dober] strange sentence you have written, I am quite surprised,
| 213927 [rimantas gma] What alternatives do we have? For me it is perfectly natural.
| 214016 [robert.dober] You read me very well, we might not have any, still I think it is flawed
+ 213899 [eero.saynatk] I would recommend, whenever possible, deferring initialisation

^ fedex shipping gem question
213848 [joevandyk gm] I'm using the Shipping gem (with FedEx).  When I try to generate a
213858 [wccrawford g] That, or just deal with the error message by picking another day.  Or

^ Filtering files while copying/moving.
213854 [ola.bini ki.] I have the need to filter files, replacing in-place-tokens with
214172 [mattrose fol] I've done an even uglier hack for my makefiles at work.

^ Newbie syntax questions
213867 [brian.kejser] In the 'test/unit' library the file unit.rb contains the following code.
213870 [gavin.kistne] Methods can have an equals sign at the end of their name. Ruby calls

^ Live to_s calls for rexml attribute
213873 [gavin.kistne] Summary
213882 [gavin.kistne] FWIW, I found that the above doesn't work, since REXML::Element uses

^ subscribe
213874 [bhoang veran] subscribe

^ Problems trying to unsubscribe
213875 [cathoxtoby a] I feel kind of bad sending this, but I just don't seem to be managing to unsubscribe. It's not that I don't want to read the list, just that my inbox is getting flooded and I'd rather go to the archive to read the posts.
+ 213876 [angus quovad] ruby-talk-ctl@ruby-LANG.org
| + 213878 [Jody.Cole ma] Me too! I would like to unsubscribe as well for the same reasons (and
| | 213942 [cathoxtoby a] Me too! I would like to unsubscribe as well for the same reasons (and
| + 213880 [cathoxtoby a] Sorry ! Unfortunately although I was being stupid when I typed the address in my question, the attempts to unsubscribe have been going to ruby-lang.org
| + 215824 [djberg96 gma] I, too, am having problems.  I sent an unsubscribe email to
|   215842 [matz ruby-la] Recently, some MUA send us command mails in base64 format, which our
+ 213879 [ben bleythin] Try @ruby-lang.org :)

^ [QUIZ][SOLUTION] Secret Agent 00111 (#94)
213888 [martin snowp] Got your memo about needing help with the encoding.  The code is
215707 [etorreborre ] Here's my "solution" to the quiz. It passes the mandatory tests but not the

^ how to click the Buttons in Forms
213891 [bhoang veran] I try to write the code to click the button in form but it keep give me
213901 [patrick pksp] Just for S&G, try...
213909 [bhoang veran] $ie.frame("bottom").button(:value, /Login/).click
213924 [bhoang veran] Thanks Patrick! It works!

^ Getting argument names and default values: doable (if hackish)
213892 [ mfp acm.org] I've written some code to get the argument names and their default values (if
213919 [ezmobius gma] Hey Mauricio-
+ 213930 [ mfp acm.org] The semantics of set_trace_func have changed somewhat in 1.8.5 [1], so it
+ 213937 [ mfp acm.org] Alright, it took only 1 line to make it work on both 1.8.5 and previous
  213987 [ezmobius gma] Sweet! It works great now. Thanks Mauricio.

^ Watir and Internet Explore security settings
213893 [brian.kejser] If this is the wrong place to post questions about Watir, please let me know.
213898 [patrick pksp] Read the "Having Problems" paragraph on page 3 of the Watir user guide;

^ Re: what is the best non-rails web/ruby development environm
213897 [cohen.jeff g] Huw, it sure would be nice if you contributed meaningfully to this list,
214025 [logancapaldo] I don't think that's really fair. The poster was looking for a graphical
+ 214033 [wccrawford g] I have to agree, here.  While I normally despise people advertising
| 214072 [snail objmed] Crawford <wccrawford@gmail.com> writes
| 214145 [wccrawford g] I think it's simply an idealism problem.  There's nothing logically
+ 214046 [cohen.jeff g] Point taken, Logan.  It's just that the only posts I've *ever* seen from

^ Default values for arguments
213900 [patrick pksp] For some odd reason, the default values for some of the optional

^ Need help setting up ruby-xslt on Windows
213902 [weyus att.ne] Has anyone successfully built and used the ruby-xslt library on Windows?
214121 [weyus att.ne] I'm using the MinGW make to try to build this extension.
217540 [walexxx libe] I have the same problem in this days !!!
217611 [weyus att.ne] Alex,
235573 [weyus att.ne] Alex,
235916 [walexxx libe] I Wes
235921 [weyus att.ne] Wes

^ [QUIZ][SOLUTION] Secret Agent 00111 (#94)
213903 [prog.kcz goo] here is my solution (00111_gizmo.rb)

^ [ANN] BYU Ruby Users Group meeting tomorrow
213907 [pat.eyler gm] Tuesday, Sep 12th at 7PM

^ uninstalling ruby
213908 [chilaquil gm] I wonder if there is a way to uninstall ruby.
213911 [jmg3000 gmai] Depends upon the procedure followed when it was installed.

^ Net::FTP questions...
213926 [ayblinkin gm] I am attempting to write a client side script that mirrors a user's
+ 214020 [vincent.arno] drwxr-x---   2 login ftp            96 Sep 11 16:07 mydir
| 214056 [ayblinkin gm] Yeah, I noticed that after my post... I guess I was trying to
+ 214071 [cribbsj oakw] Here's a class I defined to use in a script I run that moves files
  214097 [vincent.arno] Perhaps this can be useful to browse the FTP server tree (directory
  214102 [ayblinkin gm] That looks exactly like what I'm trying to do for the directory

^ Reflection and files
213931 [brian.kejser] Suppose I have a ruby file with a single class. Is it possible to write a
+ 213933 [brian.kejser] Let me rephrase the question ....
+ 213934 [ara.t.howard] -a
  213936 [gavin.kistne] Well, here's one terrible idea. (It's 'terrible' because it's brittle,
  + 213965 [divoxx gmail] Wouldn't be easier to give the file the same name of the class?
  + 214018 [MonkeeSage g] def get_class_from_file(file)
  | + 214110 [vjoel path.b] Doesn't work if file requires some other file (such as a ruby std lib
  | + 214428 [david vallne] Also doesn't work if the file was already required before.
  + 214114 [stefan mahli] I agree.

^ passing function into another function
213935 [joevandyk gm] class Reports
+ 213938 [gavin.kistne] class Reports
+ 213940 [ara.t.howard] class Reports
  213941 [joevandyk gm] Ah, Object#method.  Thank you both!

^ Fwd: Problems trying to unsubscribe
213943 [cathoxtoby a] I was wondering if you'd had any luck? Will you let me know the secret if you manage to find it?

^ Fwd: Fml status report (ruby-talk ML)
213946 [cathoxtoby a] I've just had 4 copies of the same email from ruby-talk-admin, presumably in response to my query here about how to unsubscribe. Can anyone help me to interpret it? They all say 'your mail has no effective commands' and then include a help file which, I swear, is telling me to mail ruby-talk-ctl@ruby-lang.org with a body of "unsubscribe". A look through my sent mail shows that I've done that no less than 19 times over the last 3 weeks!

^ Ruby Site Launced
213947 [ng johnwlong] Kudos to everyone involved!
+ 213954 [eero.saynatk] Yay! Good job all around
+ 213959 [rubyfan gmai] Ummm... the new Ruby site isn't coming up...  Or... If... It.. Is...
| 213964 [perrin apoth] That might be a combination of digg and reddit -- and it's possible by
| 213966 [rsanheim gma] I'm sure its getting absolutely hammered.
| 213969 [perrin apoth] ++ for humor
+ 213963 [perrin apoth] I dugg it, but only after I reddited it.
+ 213967 [perrin apoth] I've taken the liberty of submitting it to Slashdot as well, though I
+ 214000 [sigma.kappa ] I think it's really great.
+ 214089 [Mail Jonas-H] - it runs smooth

^ Opengl Tk widget for Ruby?
213948 [mpthompson g] I'm would like to create a unified Ruby on Windows XP that will combine
213976 [nagai ai.kyu] There is a section "Windows 95/NT/2000/XP usage" on
213997 [mpthompson g] Thank you for the information.  I'm actually pretty new to Ruby and
215404 [mpthompson g] I think I'm getting close to getting OpenGL and Tk playing nice in
215502 [mpthompson g] OK, I think I got getting Ruby Tk and OpenGL figured out -- at least

^ The economics of a slow but productive Ruby
213949 [lukfugl gmai] [NOTE: I'm trying to present the facts and be objective in this post.
+ 213950 [carl.lerche ] 1) It doesn't take 5 times more boxes for a ruby app than a .NET app,
| + 213953 [lukfugl gmai] I agree, but I was using the numbers from Joel's article. See my
| | 213970 [carl.lerche ] I realize that you are using the numbers from Joel's article, but
| | 213977 [perrin apoth] No kidding.  For one thing, while it's possible that in some
| + 213981 [gregory.t.br] Which is significant.  I don't know the cost of licenses for Windows
|   + 213982 [shevegen lin] The same what can be said about Ruby here can also be said about
|   | + 213985 [perrin apoth] More generally, the economic bottleneck tends to be skilled personnel --
|   | + 213988 [gregory.t.br] can we avoid Python vs. Ruby in this argument... please?
|   |   214002 [perrin apoth] I don't see how Python is even relevant, except in saying "If so-and-so
|   + 213984 [perrin apoth] I don't have current figures, but you're right -- server licenses are
+ 213951 [lukfugl gmai] Also note that the values I used here a pretty conservative. As many
+ 213952 [matt technor] Howdy folks.  As a top notch sysadmin, I just wanted to rimind y'all that
+ 213978 [perrin apoth] It also helps if you're using a system that has a lower
+ 213979 [znmeb cesmai] Ah, but does SuperSysAdmin have to use a slow scripting language?
| + 213980 [perrin apoth] Do you suggest they should use a slower scripting language, like batch
| + 213993 [lukfugl gmai] As others have mentioned, the scripts used by sysadmins aren't really
|   + 214003 [perrin apoth] Yeah . . . premature eja^H^H^Hoptimization, evil, et cetera.
|   + 214049 [ara.t.howard] i wouldn't agree with that.  we just started a trio of ruby scripts running
|     214057 [lukfugl gmai] I accept that those scripts will definitely depend on CPU. Those
|     214086 [perrin apoth] . . . or, put another way, sysadmin scripts are for administration of
|     214090 [bitdoger2 ya] ...under my experience what is almost never considered are these
|     214129 [perrin apoth] I disagree rather strongly with your use of the phrase "any other
+ 214017 [aldursys gma] It's rarely a matter of economics and statistics. Essentially there is
  + 214047 [lukfugl gmai] I'll actually agree with you here as well. My email actually started
  | 214050 [garbagecat10] This is interesting as far as it goes, but the challenge I have with
  | + 214059 [lukfugl gmai] Very good points. Thanks for the feedback!
  | + 214083 [perrin apoth] These people, who think 2 and 3 are mutually exclusive, have clearly not
  |   214108 [garbagecat10] It's the darnedest thing. I know plenty of managers who have read
  |   + 214123 [snail objmed] <3a94cf510609121051g709ff1c0m45d8c948c68990d9@mail.gmail.com>, Francis
  |   | 214128 [garbagecat10] You and I must be hanging out in different companies. Most IT
  |   | 214162 [snail objmed] <3a94cf510609121155l7b6e8452ga1b81d12dc216f4e@mail.gmail.com>, Francis
  |   + 214130 [perrin apoth] I guess there have to be shops that obstinately do things wrong, if only
  + 214178 [sethrasmusse] Or in this case, mathturbation.
    214181 [gregory.t.br] 42

^ Strongtalk VM now open source
213957 [rubyfan gmai] The Strongtalk is supposedly a very fast VM for Smalltalk.  Now it's
213962 [rick.denatal] Given the provenance (Dave Ungar's self group) at first glance this
+ 213971 [dido.sevilla] Self itself may be a mine of good ideas for making Ruby faster, the
+ 214076 [chneukirchen] ... except the JRuby implementation 1) is there, 2) is founded, 3)
  214079 [pbattley gma] It's also not the first time someone has talked about running Ruby on

^ find_all help
213986 [stevenrockar] I have an array filled with employee objects that are defined like
+ 213989 [MonkeeSage g] In the block to select you don't want to use the Employee object, you
+ 213994 [m_goldberg a] I was tempted to answer that your code is illegal because employing

^ QA for a script that relies heavily on net/ftp
213991 [carl.lerche ] things and ftp the backups to a remote site using net/ftp. How can I

^ (no subject)
213998 [youngker mye] unsubscribe

^ Blogger Data API
214004 [mark chandle] I have spent the past few days looking at the different blog APIs that

^ newbie: yaml array of arrays
214006 [allan.m.mill] I'm new to yaml, and yaml in Ruby.
+ 214007 [farrel.lifso] You can use IRB to work it out in reverse... start with the ruby array
+ 214008 [jtregunna bl] You wanted YAML.load_file not YAML.load; and a yaml file that looks
+ 214009 [bruno exceli] - a
+ 214010 [ola.bini ki.] puts [%w(a b c), %w(d e f), %w(g h i)].to_yaml
+ 214012 [nospam nosit] Or a two-dimensional array.
  + 214015 [ola.bini ki.] Whitespace in YAML is only significant when using block style data.
  | 214019 [nospam nosit] Well, it was significant in this case -- it prevented correct interpretation
  + 214099 [rick.denatal] DarnitnowIunderst
    214107 [nospam nosit] Point taken. :)

^ cgi scripts and external css
214014 [silentgreen ] #!ruby
214021 [nospam nosit] Is this HTML (or the script that generates it) located in the same directory
214027 [silentgreen ] Both files are in /cgi-bin/
214029 [nospam nosit] Okay. I will try again.
214031 [silentgreen ] Sorry, my language was ambiguous. With "both files" I meant the script
214037 [wccrawford g] I just put example.rbx and example.css in ~/ruby on my server and it
214139 [mike rubywiz] When in doubt about browser caching you might want to add version
214143 [silentgreen ] I've found the problem. It seems that Apache does not serve the file

^ Fetching an URL using cookies
214026 [user domain.] I'm trying to fetch an url which needs several cookies to be set in
+ 214034 [wccrawford g] <snip/>
| 214038 [user domain.] I don't why but suddenly it worked... I presumed I've missed something
| 214067 [wccrawford g] Experience tells me it'll suddenly stop again, don't fret ;)  When I
+ 214094 [aaron_patter] Why write all this yourself?  WWW::Mechanize will handle storing and
  214147 [user domain.] Thanks for the link !

^ Browser applications (applets, flash...) with Ruby?
214039 [francis.ramm] Howdy,
+ 214041 [richard.conr] Well you could host 'static content' flash and applets, and have them
+ 214042 [danielbaird ] There's RJS in the Ruby on Rails framework, that converts your Ruby
+ 214043 [logancapaldo] You would definitely need a special plugin, to directly run ruby on the
+ 214051 [francis.ramm] Thank you all. I would like to write some games like Tetris and post
| + 214055 [Mail Jonas-H] While I am really a noob, I still think JavaScript is NOT to LIMITED.
| | 214195 [danielbaird ] I agree that JavaScript is a real language.. I'd even go so far as to
| | 214479 [Mail Jonas-H] If you do stuff on Bitmap basis. No.
| + 214100 [richard.conr] Well in those respects, your Java & Flash content is effectively static
+ 214492 [guido sohne.] It depends on your goals. If you want everything in Ruby then you have
threads.html
top