222705-254716

222468-223811 subjects 222935-244483

Is there an working example for rubyful_soup on RoR?
222705 [wellington20] I found only Ruby language example to use rubyful_soup.

Is there an working example for rubyful_soup on RoR?
222706 [wellington20] I found only Ruby language example to use rubyful_soup.

Using "not" in compound conditions
222710 [argnosis@ya ] I am still a beginner at Ruby, and have just arrived at this in my
+ 222711 [ruby-ml@ki t] =20
+ 222712 [collinsj@se ] "&&", "||", and "!" have higher precedence than "and", "or" and "not" -
+ 222843 [david@va ln ] =20
+ 223184 [dale.martens] I never use the 'not' logical negation. I always use '!'. There is a
  223262 [argnosis@ya ] Thankyou Dale for pointing me in the right direction.

[ANN] DNS library released
222713 [alexd@no in ] For those who may be interested, I have made the first release of my port
+ 222714 [zimba.tm@gm ] Just a quick RTFM question : is it only a client or is it also
| 222717 [alexd@no in ] It is primarily a client. However, with some work, it would be possible to
+ 222724 [djberg96@gm ] While I appreciate the effort, I'm curious why you didn't join Marco
  + 222725 [alexd@no in ] Marco had agreed to take my code during this summer, while I was still
  + 222744 [james@gr yp ] I'm curious how all of these options differ from the standard resolv
    + 222746 [garbagecat10] ...
    | 222748 [alexd@no in ] that
    | 222755 [garbagecat10] ...
    | 222756 [alexd@no in ] nonblocking
    | 222757 [garbagecat10] ...
    | + 222813 [alexd@no in ] I certainly have, and I certainly will be! :0)
    | | 222816 [garbagecat10] ...
    | | 222909 [alexd@no in ] pure
    | + 225207 [drbrain@se m] Its built-in, just require 'resolv-replace'.
    + 222747 [alexd@no in ] The standard resolv library lets you do a lot of DNS look-ups. However, it
      225206 [drbrain@se m] So why are you writing a whole new library to add this?  Why not a

Drb in depth ?
222720 [faivrem@gm i] I can't find any in depth online article on Drb, presenting anything
+ 222733 [znmeb@ce ma ] I'm not sure anyone uses just drb ... it's more common to use drb via
| + 222738 [jcribbs@ne p] For a fairly simple example of how drb can be used to enable
| | 222740 [jcribbs@ne p] Oops, that should have been http://netpromi.com/kirbybase_ruby.html!
| | 223247 [faivrem@gm i] Thanks for the code.
| + 223248 [faivrem@gm i] This site is indeed the best site on Drb but do not answer all my questions :)
| + 223631 [drbrain@se m] sit on top of Rinda::TupleSpace.  Whenever you need communication
+ 223630 [drbrain@se m] The basic idea is to remove the hassle of communication between

Uploading files with eruby & lighttpd?
222721 [comtuxaps@gm] I am not sure if i should be asking this question here or lighttpd

Gettext of variables
222726 [matthauck@gm] Greetings!

ruby libcurl maintainer?
222727 [just-for-new] I tried to contact Mr Hirotaka Matsuyuki,however his email address
222735 [rossrt@ro co] I tried to contact him earlier this year, but to no avail - I think the
254716 [shuvo.razi@g] I am trying to install istall curb by trying this >gem install curb

Re: Please Forward: Ruby Quiz Submission
222732 [james@gr yp ] Welcome to both!

Alias singleton method from C
222737 [rossrt@ro co] I think I must have missed something obvious, but I can't see how to
222762 [djberg96@gm ] #include <ruby.h>
222767 [tim.pease@gm] rb_define_alias only works for instance methods.
222769 [djberg96@gm ] It should work for either singletons or instance methods.  If it
+ 222779 [rossrt@ro co] This is similar to what I was going to do - you just need to get the
| 222785 [djberg96@gm ] Bingo.  That's what you want.  I was just getting the singleton wrong.
+ 222780 [tim.pease@gm] Your line of code above that grabs the singleton class is incorrect.

true.to_i
222750 [leslieviljoe] I am processing database rows and I see that there are "bit" columns
+ 222752 [amos.l.king@] I don't see a problem with it.  There is no to_i for either class so
+ 222760 [invalid@gm .] It isn't really dumb, but you can get into problems when debugging code
+ 222764 [shortcutter@] Remember that a lot of other values are considered true so converting

Re: Fuzzy Time (#99)
222758 [camerooni@gm] Thanks for the test and the quiz. Writing a solution wasn't very hard,
222788 [dan@fl en ra] Here is my script. This is my first entry to Ruby Quiz.
222861 [james@gr yp ] Welcome!

Ruby performance on Windows XP
222765 [sambient@gm ] ...
+ 222768 [halostatue@g] More details would be useful. Raising this on the Rails list would be
| 222771 [gustav@ra ls] Hey,
| 222826 [sambient@gm ] ...
| 222835 [znmeb@ce ma ] What are your criteria for choosing a Linux distro? There's actually a
| 222860 [sambient@gm ] ...
| 223318 [david@va ln ] For the sake of completeness, the only difference between Ubuntu,
+ 222776 [zedshaw@ze s] Well, that's kind of just Ruby on Windows for ya.  My unofficial experience (which everyone constantly blasts me for, so I'm obviously wrong) is that Ruby on Win32 is about 1/10th the speed of Linux 2.6 on the same computer.  This is with the exact same non-rails Mongrel handler tests I run.  Cygwin is then about 1/2 the speed of that.
| 222839 [halostatue@g] Zed, your wounded act is wearing thin, if it was ever amusing to begin
| 222850 [znmeb@ce ma ] Ah, but I am. :) Zed's numbers are *very* suspicious. Here's what I
| + 222853 [rob@oc te h.] ...
| | 222855 [znmeb@ce ma ] Interesting ... have you posted your benchmark code? Do you have the
| | 222857 [rob@oc te h.] ...
| + 222964 [wilsonb@gm i] My tests (looking for the benchmark code now.. without much luck thus
|   223085 [znmeb@ce ma ] In a related development, it took some doing, but I managed to get the
+ 222825 [znmeb@ce ma ] Hmmm ... lots of questions ... but the other posters are right ... this
  222828 [sambient@gm ] ...
  222956 [sambient@gm ] ...
  223087 [znmeb@ce ma ] Yeah ... PC Linux is easy to make LiveCDs with. Almost any LiveCD Linux
  223208 [mtrier@gm il] Michael

Re: Ice for Ruby Preview Release
222774 [mes@ze oc co] We have no plans for it at this time. Ice for Ruby is implemented as a
222790 [kevwil@gm il] Sweeeet. I've been meaning to check out ICE for a long, long time. This
222791 [rtilley@vt e] I think the gateway to ruby-talk may be down. Perhaps that is why the

__FILE__ for requiring file
222793 [jim@fr ez .o] I keep wondering if there is a way to have __FILE__ be delayed
+ 222797 [shortcutter@] require 'test/unit'
+ 222798 [louis.j.scor] def __REQUIRING_FILE__; caller[1] =~ /([^:]*):/; $1 end
  222800 [shortcutter@] I played around already :-)
  + 222803 [louis.j.scor] Very nice.
  + 222805 [jim@fr ez .o] ...
    222808 [louis.j.scor] Just make sure that you won't have any file names with a ':' in them =)
    222812 [jim@fr ez .o] ...

Picking a GUI toolkit for use with Ruby on windows
222794 [www@bl gg ng] I'm wondering which GUI toolkit I should use for experimenting with GUI
+ 222799 [mtrier@gm il] RubyCLR will do what you need.  You can use the visual designer in VS
+ 222801 [znmeb@ce ma ] Ruby/Tk is probably your best bet to start with. Given that FreeRide is
| 222810 [vincent.four] Well, I'm not developping QtRuby, just packaging it (Debian), and I
| 222819 [znmeb@ce ma ] QT4? I know the QT3 Ruby interface is solid, but QT4 is the only usable
| 222831 [vincent.four] I speak about Qt4, which I'm using everyday (on Linux). Apart from a
+ 222806 [jcribbs@ne p] Ruby/Gtk2 meets all of these requirements.  :-)
+ 222845 [ml.chibbs@gm] If you don't need cross platform, then you'll probably like VRuby
  222851 [david@va ln ] That page scares the heck out of me. Weird magical constants that are
  222965 [spoooq@gm il] If you mean the sample scripts (

[ANN] QtRuby 1.4.7
222804 [richard.j.da] URIS
+ 222820 [znmeb@ce ma ] 1. Does all this magic work on Windows?
| + 222849 [david@va ln ] Seconded, mswin32 gem or bust. I'm not particularly in the mood for
| | 224011 [shea@nu l. e] I will second that.  I would love to use ruby and qt together.  But my
| | 224014 [shea@nu l. e] What are the legal issues of creating a rubygem for Qt (which included
| | 224018 [vincent.four] Qt4 and QtRuby are GPL, which means that if you distribute you project
| | 224092 [david@va ln ] uilt?
| + 222927 [caleb@ae -t ] I am, but I'm in the final stages of another book project at the
+ 222837 [pgquiles@el ] Awesome!
+ 222838 [vincent.four] Great, that's exactly what was missing from 1.4.6 !! I'll make a new
+ 224200 [shea@nu l. e] The qtruby tarball I downloaded does not seem to have any of the

Active Record speed
222809 [alibby@ta ge] I'm writing some code that loads data into a database on a
+ 222814 [shortcutter@] You probably just need to change the line above to
+ 222815 [lukfugl@gm i] My guess is that prepared statements are indeed the source of your
  222830 [alibby@ta ge] Robert, Jaccob you two nailed it.  Thanks a bunch.

Easiest way to determine OS?
222818 [weyus@at .n ] What's the easiest way to figure out if you are on a Windows vs. UNIX
222824 [rtilley@vt e] irb(main):005:0> puts RUBY_PLATFORM
222829 [vshepelev@im] Brad Tilley

Re: Welcome to our (ruby-talk ML) You are added automatically
222821 [cparticle@gm] # help

<!-- foo --> in RDoc
222833 [christoffer.] Running [0] through RDoc raises the exception [1].
222836 [gavin.kistne] # Test

[ANN] XSPF for Ruby 0.4
222834 [pgquiles@el ] charset="iso-8859-15"

net/http performance question
222858 [borud-news@b] def fetch_into (uri, name)
222862 [jan.svitok@g] there seems to be HTTPResponse#read_body, that can provide the chunks
222971 [borud-news@b] ["Jan Svitok" <jan.svitok@gmail.com>]

[ANN] Phoenix Ruby Group Meeting for November
222859 [james.britt@] See http://www.rubyaz.org/groups/prug/ for a map and more information

Concerns about removal of continuations in Ruby 2.0
222907 [alder.green@] For instance, Ruby's generator implementation requires them[1].
+ 222910 [rossrt@ro co] Not any more - check out generator.rb in 1.9 (though what'll happen if
+ 222958 [matz@ru y- a] * Ruby 1.9.1 will not have continuation, since they have lowest
  + 222960 [charles.nutt] From a JRuby perspective, we could support continuations, but with the
  | 223018 [phurley@gm i] I will agree that they are rarely used (at least in Ruby), but for a
  + 223282 [znmeb@ce ma ] An old saying in programming language design states that the toughest

Duck typing and the Standard Library
222908 [mikeharder@g] I'm new to Ruby, so please excuse any ignorance on my part.  I read the
+ 222912 [shortcutter@] irb(main):003:0> def foo(s) s=s.to_set end
| 222917 [mikeharder@g] Yes, there must be an exception of some kind if the parameter is
| 222926 [dblack@wo bl] The way I've always looked at it is that the Ruby core and standard
| 222999 [Brian.Hartin] Why is it bad practice to check the type of a value at runtime?  I'm new
| 223004 [dblack@wo bl] It depends what you mean by checking type.  In Ruby, class and type
+ 222916 [vidar.hoksta] def superset?(set)

String#split: unxepected result
222911 [k.shutemov@g] irb(main):001:0> "aabbcc".split(/bb/)
+ 222913 [shortcutter@] #split returns matching groups of the split pattern if there are
+ 222914 [vincent.four] You have a capturing group in the last RE. In this case, split also
+ 222915 [jan.svitok@g] If there are any groups in the delimiter, they are output as well.

Learning Ruby
222919 [Cristiano.Ma] learning Ruby. So forgive me for the stupid question.
222920 [peter@ru yr ] Could you provide the examples you have tried? I did not really get you,
222922 [Cristiano.Ma] I did not explain me too well.
+ 222923 [vincent.four] str.gsub!(Regexp.new(re), "#{st}\\&#{en}")
+ 222931 [m.fellinger@] ########## LOTSA CODE #########

Net::SMTP problems
222921 [nickblack1@g] I'm trying to use Net::SMTP to send an email from a webserver running

Difference between define_method and def method; end
222924 [rune@sn sk t] It was suggested on the IRC channel that I try the ML for this
222957 [ara.t.howard] you are not redefining the method here, you are redefining the class.  if you
+ 222994 [rune@sn sk t] That is actually the same output I had. My problem (and excuse me for
| 223092 [interfecus@g] class Object
+ 223097 [robert.dober] ...
  + 223108 [rune@sn sk t] I don't necessarily prefer the first, I prefer them to behave the
  | 223151 [robert.dober] ...
  | 223177 [rune@sn sk t] I stumbled upon it by pure coincidence ... Should I report a RCR or
  + 223125 [ara.t.howard] huh - i'd sworn that was the case...  looks like you are right.

Ruby tools for managing static websites?
222925 [chrispearl@g] Are there Ruby tools to help webmasters manage static websites?
+ 222928 [vincent.four] webgen.rubyforge.org.
| 223252 [martindemell] I have one fairly serious problem with webgen - there's no way to just
| + 223296 [ryand-ruby@z] Does it do the whole site? ZenTest does incremental builds as
| | 223404 [martindemell] Yeah :( http://rubyforge.org/forum/forum.php?thread_id=7986&forum_id=1268
| | 223525 [ryand-ruby@z] While ZenWeb is site-based, it has a ton of functionality at the page-
| + 223307 [rossrt@ro co] Rote takes care of that thanks to Rake, with your pages as file tasks -
+ 222929 [Bil.Kleb@NA ] Don't know if it fits, but take a look at: http://radiantcms.org
+ 222939 [rosco@ro co ] Check out Rote - sounds like it's custom-designed for your needs :)
+ 222941 [farrel.lifso] There's also Hobix (http:.//www.hobix.com) although it doesn't look
+ 222955 [ara.t.howard] i'm not quite clear why you wouldn't just setup a rails site and crawl it to
| + 222974 [khaines@en g] You can do that with a relatively new IOWA feature, too (introduced in
| + 223088 [chrispearl@g] For the needs I described, Rails integrates a lot of features that
|   + 223095 [ara.t.howard] can't you elaborate a bit?  ;-)
|   + 223106 [rosco@ro co ] <hard-sell>
|   | 223171 [alder.green@] Thanks a lot for the information. Rote is among the handful of tools I
|   | 223224 [craigbeck@lu] Okay, I have a similar problem and I'm curious as to the other
|   | 226869 [chrispearl@g] I posted the same message to the relevant Python ML. Python has *a
|   + 223109 [rimantas@gm ] Some static sites are dynamic but with slow dinamics :). For these it is very
+ 223173 [ryand-ruby@z] ZenWeb http://rubyforge.org/projects/zenweb
+ 223174 [GENIE@pr di ] Article from Martin Fowler about using rake (ruby's version of
+ 223379 [aglarond@gm ] ...

Re: QtRuby 1.4.7
222930 [richard.j.da] Yes, once you get it built - I'm not sure whether QtDBus works on

Re: [ANN] bfts 1.0.0 Released
222932 [s450r1@gm il] This is excellent news!
+ 222972 [ryand-ruby@z] Thanks! I just bought a new mac mini to replace an old loud freebsd
+ 222973 [ryand-ruby@z] thanks
  + 222978 [binary42@gm ] Myself being one of those people who are stubborn about using
  | 222982 [ryand-ruby@z] *nod* I'll poke at this. I suspect I need less than 30 lines of ruby
  + 222979 [ben@bl yt in] I don't think it's too high a hurdle, it's just an unnecessary one.  I'm
    222983 [ryand-ruby@z] how about: subversion blows multicolored chunks?
    + 222987 [ben@bl yt in] plz elaborate?  It works fine for me and lots of other folks.  Again,
    | 222989 [ryand-ruby@z] hrmmm... to start: slow as dirt, user unfriendly, merging is a bitch,
    | 222991 [ben@bl yt in] I've not noticed it to be slow or unfriendly, but I learned version
    | + 222993 [tim.pease@gm] Ryan, is this going to be a one developer project? You have already
    | | 223003 [ryand-ruby@z] Oh hell no.
    | | 223034 [charles.nutt] I understand SCM preference, but this is probably the primary reason
    | | 223075 [znmeb@ce ma ] I'd be happy if the CVS and SVN folks would settle their war so I don't
    | | 223098 [charles.nutt] I can't say I'm a huge fan of either, but they're no-brainers to use for
    | | 223132 [cdcarter@gm ] ...
    | | 223162 [ryand-ruby@z] file a bug pls. that way we can track em.
    | + 222995 [ryand-ruby@z] Try to figure out how to emulate 'p4 describe' and make it just as
    | | + 223001 [ben@bl yt in] granted
    | | + 223145 [halostatue@g] It isn't an issue with p4. We use it at work. Even if Perforce didn't
    | | + 225337 [ben@bl yt in] As it turns out, this apparently is a hurdle.  The day this thread was
    | + 223000 [tom@in oe he] FWIW, all the RubyForge svn repos are fsfs.
    + 222990 [tomp@ea th i] Sure, ruby-talk generates a lot of traffic, but I stay subscribed to

array of integers
222933 [rtilley@vt e] What is the best way to get determine the largest and smallest int in an
+ 222934 [thomas.adam2] [n6tadam@workstation fvwm]% irb
+ 222937 [rforum@gm il] puts x.max
threads.html
top