213664-215018

213432-215030 subjects 213814-235921

^ Running [Watir] Tests With the Browser Not Visible
213664 [phlipcpp yah] Unit tests should run as silent, fast, and unattended as possible. Even sick
213667 [bpettichord ] require 'watir'
213738 [phlipcpp yah] It turns out this sets the wie.ie.Visible flag. So it's the same as I had
213742 [bret pettich] This was a bug in 1.4. It is fixed in 1.5 when using the COM server -- at

^ Ruby Gnuplot Splot problem
213675 [Nuralanur ao] Dear all,

^ Why Lisp macros are cool ...
213686 [rdm cfcl.com] This posting looks just as relevant to Ruby as to Perl...

^ Possible to use Ruby with CLIPS?
213688 [kubilayisik ] Is there anybody here tried to use Ruby with CLIPS expert system
214299 [akimichi_tat] I have tried wrapping CLIPS with SWIG library a few years ago.

^ How about Enumerable#find_pattern?
213690 [asbradbury t] Ignore the name, I don't really know what it's best to call it. Basically I've
+ 213691 [dblack wobbl] #find, yes, but #grep does something similar to what I understand you
| 213692 [asbradbury t] foo=[1,2,3,4,5,6,5,4,3,2,1]
| 213695 [robert.dober] something a little bit more elaborated than this
| + 213696 [asbradbury t] That is one possible implementation, and this isn't something I'm having a
| + 213700 [asbradbury t] while c.first(l) != args do
|   213703 [robert.dober] There is at least one guy reading my posts!!!
+ 214044 [asbradbury t] Well, here's a (not very good) implementation, kind of ported from some python
  214126 [rick.denatal] Nice, but it can fall down if the pattern contains a regexp which
  214134 [asbradbury t] I'd actually argue that's expected behaviour and you're just using it
  214344 [rick.denatal] Well, I'd expect that if you allow regexps that you should allow
  214349 [asbradbury t] But why would it be expected behaviour for a regexp to try to match across

^ patching strings together to make a variable
213693 [sy1234 gmail] I'm curious to know if I can patch multiple things together to make a variable.
+ 213697 [dblack wobbl] references, plus a whole chorus of people to tell you that you should
+ 213710 [david vallne] This sounds very, very PHP to me. And subjectively speaking, I think
| 213711 [sy1234 gmail] I know nothing of PHP, but this trick would make my code much clearer.
| 213720 [mike stok.ca] What are you actually trying to do?  Sometimes stepping back from a
| 213725 [sy1234 gmail] I was just looking for an alternative to the classic if/then/else.
| + 213729 [asivitz ober] Uh...if you have so many similarly named variables, it sounds like you
| | + 213731 [dblack wobbl] David
| | | 213732 [mike stok.ca] One of the reasons for the Perl chorus is that in Perl the "soft
| | | 213746 [dblack wobbl] Interesting.  I've always been part of the "use hashes" chorus (long
| | + 213739 [sy1234 gmail] Oh, good point.  =)
| + 213737 [mike stok.ca] Depending on what's in your instance variables and how you call test
+ 213723 [mike rubywiz] puts "#{eval('$' + 'var' + (if $a == true then "iable" end))}"
| + 213724 [dblack wobbl] If your if fails you end up adding nil to a string, which will give
| + 213744 [sy1234 gmail] I can see the value with this, but what if I wanted to add a number to
|   213754 [mike rubywiz] I'm not quite clear what exactly you're trying to achieve, but you
|   213756 [sy1234 gmail] That's definitely what I wanted for one little snippet I was working
+ 213749 [ng johnwlong] I've occasionally used something like this with methods. For instance, I
  213757 [sy1234 gmail] That's pretty interesting.. I think I could adapt that for some other

^ Re: [OT - Again] Another reason Rails doesn't suck
213709 [david vallne] Well, Hani of bileblog's quotes from the Axis 2 API and docs are pretty

^ Feedback on Ruby XML binding/mapping tools?
213716 [vasudevram g] I'd like to hear from anyone who has used any Ruby XML binding/mapping
213832 [hutch recurs] Warning, xampl is my thing and I'm biased :-)
213877 [vasudevram g] Thanks for the detailed reply :)

^ Re: Struggling with Blocks
213721 [nospam nosit] To put it in simplest terms, the keyword "do" must be preceded by a data
213735 [nospam nosit] Because do ... end functions differently than begin ... end, and begin ...
213755 [nospam nosit] is not an iterator. They are different. There are good reasons to make this
213759 [kbloom gmail] What *are* those reasons? That's the whole point of his question.
213762 [nospam nosit] (implicit "do")
+ 213764 [logancapaldo] Excellent argument, poor choice of example code *cough*.
| + 213773 [nospam nosit] / ...
| | 213782 [logancapaldo] Entirely my point, the exact same ambiguity exists in ruby. Why can't be
| + 213777 [nospam nosit] Second reply, after reflection. Okay, I think you are saying the example
+ 213767 [jlhurtado gm] Excellent explanation Paul... I guess many newbies, and not so new are
+ 213768 [hal9000 hype] Not strictly true. Reemember that the iteration comes from the fact
| + 213772 [nospam nosit] Yes, strictly true, IMHO.
| | 213779 [logancapaldo] That's a bit of a stretch, don't you think? What exactly is in "the
| + 213789 [nospam nosit] Yes, you are right (an I am quite wrong in the above quotation). The "do ...
|   213890 [rick.denatal] While it is true in that in the most common case of do..end (or {..}),
|   213944 [m_goldberg a] That's what I thought until recently, but there is a difference.
|   213956 [rick.denatal] I have to admit that I was struggling a bit when I made the analogy to
|   + 213999 [m_goldberg a] The problem -- for me -- is that I can also make the analogy that
|   | 214080 [gwtmp01 mac.] There is certainly a syntactic similarity to begin/end and do/end but
|   | 214215 [none none.co] The OP is confused as to why the different semantics exist at all. It appears (to a newbie) to be
|   + 214095 [rick.denatal] Having spent a bit more time perusing the 1.8 source code, my analogy
|     + 214116 [m_goldberg a] Even without further explication, the above is already enlightening.
|     | 214149 [rick.denatal] The journey is the reward!
|     | 214205 [MonkeeSage g] I sure can't enlighten you, but I can comment: that is wierd! I must
|     + 214266 [gwtmp01 mac.] These two example illustrate the ability to attach a rescue modifier
|       214364 [rick.denatal] Yes, I knew all that.  I was trying to think of a semantic reason to
+ 213781 [gwtmp01 mac.] This just doesn't sound right to me.  do/end and {} are part of the
| + 213787 [MonkeeSage g] That's what I was thinking. do...end / {...} is an implicit closure,
| + 213791 [nospam nosit] I was wrong. I should have thought a bit more deeply about what I was
|   213802 [hal9000 hype] It's inspiring when someone can say the three magic words
|   213990 [gwtmp01 mac.] +10
+ 213797 [kbloom gmail] Let me try a direction in answering this question. I don't know anything
  + 213800 [nospam nosit] / ...
  + 213803 [hal9000 hype] guesswork on my part, and stands a large chance of being wrong.

^ Matrix
213727 [v.srikrishna] a) Is there a way to create a non-square matrix in ruby?
+ 213730 [dblack wobbl] Check out the Matrix class -- look for matrix.rb in the Ruby
| 213765 [znmeb cesmai] You can only set an arbitrary element of a Matrix when it is created.
| 213774 [ihatespam ro] The []= operator does seem conspicuously missing.  If anyone knows why
| + 213783 [dave burt.id] It's by design. A Matrix is immutable, like Ruby's other numbers
| | 213805 [MonkeeSage g] Why should a Matrix be immutable? It's not a type like a Fixnum, it's a
| | 213818 [nospam nosit] In mathematics, matrices of various kinds are regarded as a unit, usually
| | + 213820 [wccrawford g] I think the point they are making is that not everyone uses matrixes for
| | | 213915 [dave burt.id] If you want a matrix-like data structure (rather than a mathematical
| | | + 213955 [MonkeeSage g] A mathematical matrix is just a dimensional arrangement of data into
| | | | + 213958 [rick.denatal] Yes, you're missing the distinction between a variable which
| | | | | + 213961 [ara.t.howard] but wouldn't it make to days go quickly!  nothing beats debuggin to burn up
| | | | | + 213995 [MonkeeSage g] Hmm, I guess I wasn't clear, because that was my point (and another
| | | | |   + 214005 [nospam nosit] / ...
| | | | |   | + 214011 [michael.ulm ] Then they would have been wrong. The lack of the []= operator has been a
| | | | |   | | 214022 [nospam nosit] / ...
| | | | |   | | 214028 [michael.ulm ] Granted, it is easy to add it. But the implementation is not the
| | | | |   | | 214030 [nospam nosit] / ...
| | | | |   | + 214120 [efuzzyone ne] irb(main):001:0> x="hello"
| | | | |   + 214355 [rick.denatal] There is a very important distinction between variables and values,
| | | | |     214424 [MonkeeSage g] Thanks Rick, that did help. The point about side-effects dovetails with
| | | | + 213960 [ara.t.howard] and it even dovetails with
| | | | + 213968 [ihatespam ro] As far as I can tell, matrices are no different.  Your example shows
| | | |   214013 [michael.ulm ] I think he's trying to say, that there is no rational reason for
| | | |   + 214023 [dave burt.id] The benefit is that you can assume no other code is modifying your matrix.
| | | |   | + 214032 [michael.ulm ] You are right, this is a somewhat useful feature (I've been bitten often
| | | |   | | + 214074 [verno mailin] How about using an alternative to subclassing (similar to  the
| | | |   | | + 214105 [ihatespam ro] Why do you think this?  A method doesn't have to be third party to
| | | |   | |   214158 [MonkeeSage g] My rationale? Erm, the rationale stated by _others_ was that a matrix
| | | |   | |   + 214166 [ihatespam ro] I think the rationale might be that the implementation of all "number"
| | | |   | |   | 214180 [MonkeeSage g] Ok, I was being ambiguous. I'm dumb though, so don't blame me. ;) I was
| | | |   | |   + 214557 [martindemell] Paul Graham had an excellent rationale for allowing this sort of thing
| | | |   | |     214618 [nospam nosit] In essence, this article advocates anarchy. The counter-evidence is to ask
| | | |   | |     + 214633 [jason adapt.] This seems to describe Ruby, and many here are very proud of how Ruby lets you redo any primative. I'm confused. Are you saying that Ruby doesn't allow something?
| | | |   | |     | + 214637 [znmeb cesmai] In what sense(s) has Perl "failed?" I still use it almost daily, and
| | | |   | |     | | 214639 [jason adapt.] I haven't seen a new Perl project started in a long time. All Perl work I see being done is legacy code. If Perl 6 is as complex as it appears it is going to be, I think the language will be on life support.
| | | |   | |     | + 214731 [nospam nosit] No, I was identifying Perl as a language sometimes sufficiently cryptic as
| | | |   | |     + 214635 [znmeb cesmai] Ah, but a variant of Newton's notation is still in wide use for ordinary
| | | |   | |     | 214730 [nospam nosit] Interesting. I didn't realize that notation originated with Newton. I find
| | | |   | |     | 214755 [znmeb cesmai] The only one that is more or less abandoned that I recall is MuPAD, and that was
| | | |   | |     | 214807 [dido.sevilla] I believe you missed one: Maxima.
| | | |   | |     | 214813 [znmeb cesmai] I actually noted Maxima in my first post. I think Maxima is a good bit simpler
| | | |   | |     + 214680 [MonkeeSage g] It's interesting that the most syntactically simple and absolute
| | | |   | + 214118 [efuzzyone ne] n.freeze can ensure immutability.
| | | |   + 214101 [ihatespam ro] Well, yeah, I got that.  It's just that he spent this whole paragraph
| | | + 214024 [wccrawford g] Because then I'd have to write all the matrix functions to go along with
| | |   214062 [dave burt.id] Cheers,
| | + 213836 [znmeb cesmai] The immutability of a Matrix violates Whoever's Law, which states
| + 213784 [nospam nosit] / ...
+ 213733 [nospam nosit] Another poster has answered this one.
  213883 [v.srikrishna] Thanks everyone. I had seen the same answers in the post i mentioned

^ Re: Using RubyInline for Optimization
213747 [mberrow1 pac] example/profile.rb:8:in `draw': undefined method `to_blob' for
213748 [drbrain segm] == Play along at home!
213811 [mberrow1 pac] Thanks,
213881 [drbrain segm] You need to set INLINEDIR or HOME in your environment.  This will be
+ 213884 [ara.t.howard] or campaign for an msys based ruby dist which would make this all go away ;-)
| + 213912 [ryand-ruby z] That would be ideal, but seems unlikely. Is there any progress on
| | + 213917 [vjoel path.b] I wonder how hard it would be to adapt the OCI build process (rakefiles
| | + 213918 [ara.t.howard] maybe we should just make one?  if it were me, i'd probably just compile
| | | 213925 [tim.pease gm] The command line is fine for a Ruby developer.  For an "average" end
| | | 214569 [tallison tac] The "average" user might not care about InLine Ruby as much as you do...
| | | 214658 [vjoel path.b] If an "average" developer uses a library that depends on RubyInline,
| | | 215005 [drbrain segm] RubyInline has the ability to create a gem that includes the built
| | + 213929 [halostatue g] No. I have, unfortunately, been busy with wedding planning and have
| + 213928 [halostatue g] ...and introduce three dozen other problems that aren't worth using MSYS for.
|   213932 [ara.t.howard] i'll confess that i have no idea if your are right or not and that chances are
|   213972 [ml.chibbs gm] No matter what path is taken, someone will still be unhappy. My goal
+ 214804 [mberrow1 pac] Well, now I've downloaded and installed Visual C++ 2005 express
  + 214987 [mberrow1 pac] So ... no takers on this?
  | 214993 [sander.land ] I only got it working after I recompiled ruby from sources using a
  + 215004 [drbrain segm] Did you build ruby with this compiler?
    215018 [mberrow1 pac] Sigh ... I get the picture.

^ Ruby Virtual Machine Benchmarks?
213771 [znmeb cesmai] I'm collecting benchmarks of Ruby on various virtual machines. So far, I

^ Research Methodology (RE: Real World Scalability and Ruby - Top 2 0
213775 [pbooth marke] Actually Joseph used one of the soundest research methods I know of. He
+ 213780 [headius head] Except that he drew conclusions from complete guesses, which were
+ 213794 [wgrosso wgro] Quite a few of the guesses can be refined using LinkedIn (search for
+ 213813 [gene.tani gm] ...

^ One Suggestion ( Re: I'm having a hard time learning ruby.
213778 [pbooth marke] PickAxe didn't work for me. I've found "The Ruby Way" and now "Ruby
213860 [brian.kejser] I'd recommend the 'Ruby Cookbook' as well. It's nothing more than several

^ A fun Ruport IRB hack to create a minimal SQL client
213786 [gregory.t.br] I was playing around with Ruport via IRB and I realized it can be
213799 [chiology gma] This is really very cool. :)

^ [ANN]  Phoenix Ruby User Group Meeting Monday, Sept 11 Reminder
213788 [james.britt ] The Phoenix Ruby Users Group will hold its September meeting on Monday,

^ Thread, external processes, and trap
213793 [jameswmills ] I have what I hope is a simple newbie problem.
213804 [shortcutter ] That's probably because a) the trap block is executed in the context of

^ Having problems interfacing with Google Calendar API using Net::HTTP
213801 [blissdev gma] 've been attempting to work on a script that would synch my iCal
213859 [logancapaldo] I would suggest looking at WWW::Mechanize,

^ public_key in X509 format?
213806 [paul.haddad ] Is there any way to get an RSA public key in X509 format?  By default
+ 213808 [snacktime gm] X509 is the structure used for certificates that contains the
| 213844 [paul.haddad ] Chris,
+ 213810 [nakahiro sar] ASN.1 DER + base64?

^ anti-advocacy advocacy
213809 [martindemell] Interesting read, and most of the points he makes are very relevant to
+ 213815 [wccrawford g] 2 words:  "Vocal Minority."
| + 213821 [flori nixe.p] Yeah, that's so totally different from why programmers chose their
| + 213843 [hal9000 hype] Sometimes I wonder if people exercise logic in their choice
| + 213866 [tallison tac] I think you missed a point he was trying to make about the FAQ.  If you
|   213886 [wccrawford g] No, I got the point... I was merely commenting on his reason vs the
|   213923 [tallison tac] Blind leading the blind...  I don't blog either!!!!  :)
+ 213827 [shortcutter ] Just to throw in my 0.02 EUR...  Although there is some advocacy of the
| 213913 [perrin apoth] . . . as opposed to The Heat, which conjures all the wrong notions.
+ 213838 [garbagecat10] It actually was somewhat interesting. It goes without saying that you get a
  214447 [johnatl mac.] Very interesting read, indeed.
  214463 [jeremy chaos] I think the *most* influential advocacy goes "If *your* needs include
  214568 [tallison tac] Doesn't advocacy == marketing ?
  + 214573 [wccrawford g] Marketing typically implies being paid.  Advocacy just means that you
  | + 214576 [perrin apoth] In some really egregious cases, we call it "astroturfing".
  | | 214598 [james.britt ] "astroturfing" is a great word, for an interesting concept, but a
  | + 214613 [nospam nosit] Which answers the original question, because advocacy is what fanatics do,
  |   + 214615 [mortonda dgr] Advocacy could also simply mean someone who is passionate about
  |   | 214622 [nospam nosit] / ...
  |   + 214678 [rick.denatal] Actually not necessarily.
  |     214729 [nospam nosit] I agree that it is not necessarily the case. I was taking an extreme
  + 214574 [perrin apoth] Strictly speaking, not necessarily.  Advocacy is basically about
    214577 [garbagecat10] For present purposes, this probably qualifies as nit-picking, but *sales* is
    214732 [robert.dober] marketing : adapting our strategy to the facts
    214757 [garbagecat10] Do you have a job? If you do, and it wasn't given to you by your mother,
    + 214827 [wccrawford g] I have to disagree there.  A night stock clerk at a grocery store never
    | 214829 [garbagecat10] William, you walked right past the point. Unless you get a job through
    | 214934 [wccrawford g] I see your point, but I disagree.  You are much more likely to get the
    | 214973 [garbagecat10] William, I cretainly don't mean to beat this to death, especially
    | 214980 [wccrawford g] I know, but we definitely see this differently.
    | 214981 [garbagecat10] Why can't my customers be like that? LOL!
    + 214936 [robert.dober] I am still wondering how I got it, your joke is hitting the truth, BTW is

^ Re: [OT] Struggling with Blocks
213812 [nospam nosit] / ...
threads.html
top