349800-351096

343136-344290 subjects 349907-358710

^ Re: Ruby doesn't implement x++ for Fixnum's because ???
349800 [dblack rubyp] It depends how you define "work" :-) I'll stick with my formulation,
349804 [usenet-nospa] I have found a lot of idioms which are amenable to use with ++, especially
349805 [dblack rubyp] Oh, I have no problem with ++ per se. It just seems against the grain
+ 349807 [_mwryder55 g] i = 10;
| + 349808 [marnen marne] No.
| | + 349810 [dblack rubyp] puts *10.downto(1)
| | + 349815 [_mwryder55 g] I missed the downto method, I guess that is a problem when you have so
| |   + 349817 [dblack rubyp] I think one thing that's getting lost in the sauce here is that Ruby
| |   + 349819 [marnen marne] That's because you're trying to write C in Ruby.  There are far more
| |     349828 [dblack rubyp] You'd need to take multi-word city names into account, though. So
| |     + 349833 [marnen marne] Quite right.  I was trying for simplicity, but that had indeed crossed
| |     | 349847 [RichardDummy] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 matz.
| |     + 350123 [t3ch.dude gm] irb(main):004:0> str =3D "Washington Court House OH 43160"
| + 349809 [matt harpsta] what about the downto method?
| + 349823 [walton vyper] the
+ 349814 [usenet-nospa] Yeah.  I think fundamentally it's the "variables aren't objects" thing.
  349879 [tony medioh.] I've seen this mentioned a few times.  I think it's something of a gross
  + 349880 [rick.denatal] el
  | + 349884 [usenet-nospa] Insofar as anything in C is "an object", pointers are.
  | + 349885 [tony medioh.] You still seem to be missing what I'm proposing.
  |   + 349886 [marnen marne] Yuuuuuuuck!  Why do this ugly special-casing for something that's hardly
  |   | 349887 [tony medioh.] To reiterate from my previous message, because the behavior of Numerics is
  |   | 349889 [walton vyper] How? Because they are immutable? That's not special casing, that's just
  |   | 349892 [tony medioh.] Yes, non-Numeric objects can be immutable.  However, Numeric objects can't
  |   | 349898 [walton vyper] Incorrect. In fact the very first message in this thread provided an
  |   | 349900 [tony medioh.] No it didn't, that post created a new class called "FixNum"
  |   | + 349901 [walton vyper] I apologize, you are correct that post defined a new class, due to a
  |   | + 349902 [florian.assm] Gaah, close this thread! ;)
  |   |   + 349903 [marnen marne] I don't think there's a mechanism for doing that, since this is an
  |   |   + 349908 [tony medioh.] I suppose the whole discussion is moot as Ruby will likely never see a ++
  |   |     + 349909 [marnen marne] And as others have made clear, you are incorrect.
  |   |     | 349910 [tony medioh.] What exactly is it you think I'm "incorrect" about?
  |   |     | + 349917 [jballanc gma] ...that is all.
  |   |     | | 349929 [tony medioh.] Tony Arcieri
  |   |     | | 350009 [afmcc btinte] OK, that gets you killfiled.  Getting ruby wrong is not so bad, you just
  |   |     | | 350011 [tony medioh.] Psst, it's a joke, and a self-deprecating one at that.
  |   |     | | 350015 [james grayso] I too found it really offensive.
  |   |     | + 349918 [marnen marne] The last assertion you made about the ++ operator.  Read the recent
  |   |     |   349928 [tony medioh.] I read and responded to them.  Was there something about my responses you
  |   |     + 349935 [gsinclair gm] If implementing ++ requires changes to the parser, that seems like a
  |   |       349937 [tony medioh.] Assuredly it would require changes to the parser, as "++" presently
  |   |       + 349939 [vjoel path.b] The only sane answer is to do what C does, as far as parsing. But the
  |   |       | + 349940 [tony medioh.] You will find the answer to these edge cases varies.  Fortunately they are
  |   |       | | + 349955 [marnen marne] Well, that's certainly one of the issues.
  |   |       | | | + 349977 [aldric trevo] I really do hesitate to speak, here, as I am not nearly as skilled in
  |   |       | | | | 350003 [tony medioh.] The only reasons it's impossible are cultural, not technical.  If you think
  |   |       | | | | + 350004 [usenet-nospa] It's impossible to implement as a method.  You could introduce it as
  |   |       | | | | | 350943 [aldric trevo] Well, with -that-, we definitely can add '++' as syntactic sugar for
  |   |       | | | | | + 351004 [gsinclair gm] Phew!  It was about time someone added to this thread! ;)
  |   |       | | | | | | 351005 [marnen marne] You mean thread++ ? :D
  |   |       | | | | | | 351008 [tony medioh.] NO!  thread += 1
  |   |       | | | | | + 351094 [sepp2k googl] But what good would that do except confuse people?
  |   |       | | | | |   351096 [aldric trevo] Hey. You see that horse on the ground? It's dead. Dead dead dead. D-E-D,
  |   |       | | | | + 350005 [aldric trevo] Tony, as I said: I am merely a fledgling Ruby enthusiast. I'm reading
  |   |       | | | + 349980 [usenet-nospa] blahblahblah.each do |args|
  |   |       | | |   + 349981 [marnen marne] Would you?  Or would you rather see
  |   |       | | |   | 349985 [usenet-nospa] Huh!  That is prettier.  Didn't know it existed.
  |   |       | | |   | 350063 [jballanc gma] prefer ++.
  |   |       | | |   | 350130 [_mwryder55 g] Or your style of programming is different than the programmer(s) in the
  |   |       | | |   | 350175 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
  |   |       | | |   | 350176 [dblack rubyp] Thanks!
  |   |       | | |   + 349988 [rick.denatal] Hey, I might 'rather' have C allow if statement modifiers.
  |   |       | | |     + 349989 [marnen marne] Ce n'est pas la même situation.  Nous anglophones ne pouvons pas changer
  |   |       | | |     | 349994 [aldric trevo] a = [1,2,3,4]
  |   |       | | |     | 349997 [marnen marne] Because you used a different method than I did.
  |   |       | | |     | 350000 [aldric trevo] a = [1,2,3,4]
  |   |       | | |     | + 350002 [marnen marne] You're using Array#size.  I'm using Enumerable#count.  They're not
  |   |       | | |     | + 350006 [dblack rubyp] it.)
  |   |       | | |     | | 350008 [aldric trevo] Actually, David, I believe that you are right on the mark with that
  |   |       | | |     | + 350020 [rick.denatal] Actually I think the subtleties are similar between French and English here
  |   |       | | |     |   350022 [aldric trevo] Okay, I knew that...
  |   |       | | |     |   350024 [rick.denatal] Just so you know I wasn't dissing La langue belle.  I try to maintain
  |   |       | | |     |   350027 [aldric trevo] Hah! No worries, I wasn't insulted.
  |   |       | | |     |   350046 [rick.denatal] Bien sur
  |   |       | | |     + 349995 [usenet-nospa] I'd rather use Ruby without those features than C++ with them.  (Not quite
  |   |       | | + 349978 [usenet-nospa] No, you won't.  The parsing is 100% consistent and has been, so far as I
  |   |       | + 349975 [usenet-nospa] Postincrement should always produce the original value.
  |   |       + 349974 [usenet-nospa] a++ + b
  |   + 349890 [rick.denatal] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 matz.
  |   | 349891 [tony medioh.] But the rebinding is being done by an operator, not a method, and there's
  |   | 349894 [usenet-nospa] And which of those operators special-case Numeric?
  |   | 349897 [tony medioh.] Admittedly it would be a first.
  |   + 349893 [usenet-nospa] I don't think that gives the right semantics in many cases.  It's also
  |     349895 [tony medioh.] Well, this is a very interesting question, as I discovered something about
  |     349896 [tony medioh.] Never mind, bar= was still defined because I was reopening the class.
  |     349933 [phrogz mac.c] Dude, you just about gave me a heart attack. Phewsh - sanity is
  |     + 349936 [tony medioh.] My bad, it will serve as a reminder to double check my work before posting
  |     + 349943 [ralphs dos32] Noob question: What does that mean?
  |       349944 [tony medioh.] class Foo
  + 349883 [usenet-nospa] I'd say they are in C.

^ [ANN] Hpricot 0.8.2 released
349801 [nicksieger g] I'm one of the three new maintainers for Hpricot (along with Ola Bini
349824 [normalperson] Before I forget again, I posted about it here when _why first

^ Re: accessing the element of a span
349802 [michael.hinc] Oh wow, thats what I get for posting at 3am. I am using Watir and ie is
349812 [bbxx789_05ss] ie.spans.each do |span|
349822 [michael.hinc] That was the first thing I tried, span.class simply returns Watir::Span
349855 [bbxx789_05ss] With such poor documentation, I wonder why anyone would use Watir over

^ Re: LISP macros vs Ruby procs ?
349803 [minilith gma] That like saying a string is equivalent to an array/list. In lisp, a
+ 349813 [ryand-ruby z] yes and no... one of the other differences is that lisp macros are
| 349821 [ninja slapha] New syntax is the main thing.
+ 349832 [rick.denatal] The enabling feature of Lisp which makes its macros possible is
  349842 [minilith gma] It makes things easier and more elegant. Basically, you could also use
  349844 [aldric trevo] Thanks, everyone for the responses. I am, at the moment, merely a Ruby
  349845 [marnen marne] if @thread.closed?

^ Re: how to read this
349806 [sven.schott ] I have usually found that either the base class or file usually have the
+ 349984 [b.candler po] require 'digest/sha1'
+ 350274 [msoulier gma] Yeah, sort of. No hard example for SHA1, but you can replace Class

^ Re: Possible to use svn as file system in rails application
349811 [marnen marne] Subversion would be a very poor solution here.  You will have better
+ 349834 [jordi bunste] Not that I think it's a good idea, but subversion can be installed in a
+ 349837 [flo andersgr] Can you please elaborate why a decentralized approach is required here?
  + 349838 [marnen marne] I didn't know about SVN's autoversioned WebDAV, so I was thinking that
  + 349839 [rick.denatal] t.
    349848 [flo andersgr] I do know how git works. I question that it is a good system for that

^ Re: encapsulation issue
349816 [gsinclair gm] On Nov 7, 12:50=A0am, James French <James.Fre...@naturalmotion.com>
+ 349818 [josh.cheek g] Ruby is a dynamic language, as David pointed out, you can always get around
| 349983 [James.French] Thanks for the answer - appreciate it, and have taken it on board.
+ 349982 [James.French] Thanks for that. I think I may go that way.

^ Re: Executing one of several ruby objects
349820 [ninja slapha] I usually like to do that implicitly. For example, all these files probably
349827 [shortcutter ] Of course, the process can be improved.  Thanks for the suggestions.  My
349840 [james.britt ] James Britt

^ [ANN] ERBook 9.2.0
349825 [sunaku gmail] ERBook 9.2.0

^ HELP
349826 [revathy.p an] than 2 days from the current date.
349830 [citizen428 g] ...
349831 [revathy.p an] Thank u

^ [ANN] nanoc 3.0.2
349829 [denis.defrey] nanoc 3.0.2 is out!

^ [gtk] - My image the Treeview column
349835 [andrey.demid] I need to display the images in the one of columns in the Treeview.
349873 [andrey.demid] user_renderer = Gtk::CellRendererPixbuf.new
349875 [andrey.demid] iter = @store.append

^ Copy current state of gem on server to my local machine
349841 [toastkid.wil] I have a gem (thoth-0.3.0) on my server which has had a few changes made
349843 [marnen marne] Run 'gem server' on your server, and then specify it as the source from
349846 [toastkid.wil] ah, that's great Marnen.  thanks!

^ RCR enumerable extra into core
349849 [rogerpack200] I'm considering suggesting that the base functionality for the
+ 349851 [ tel jklm.no] Makes sense, given that you can already do
+ 349853 [dblack rubyp] I'm very much in sympathy with the position that &:name is ugly. It's
  + 349854 [dblack rubyp] I garbled that bit, due to an irb session gone horribly wrong :-) So
  + 349860 [gsinclair gm] I think                          list.map :name
  | + 349861 [axgle 126.co] list.map :name
  | + 349869 [dblack rubyp] This message is in MIME format.  The first part should be readable text,
  |   349881 [rick.denatal] Not completely on-point, but I tend to be rather conservative when
  |   349906 [dblack rubyp] I'll take on all comers in the matter of being conservative about
  + 349996 [rogerpack200] Hmm.  I suppose I'm of a slightly different opinion--to me
  | + 349998 [marnen marne] But we are.  &:symbol is equivalent to :symbol.to_proc.  So the & form
  | | + 350056 [axgle 126.co] list.map(:symbol) is just like object.send(:symbol),except the :symbol
  | | | 350061 [marnen marne] But it isn't.  The semantics of the two are completely different.  You
  | | + 350091 [rogerpack200] The next question...
  | |   + 350093 [marnen marne] Questions like this point to the very flaws that indicate that list.map
  | |   + 350098 [b.candler po] The ultimate conclusion of this: all Enumerable methods should return
  | |     350119 [rick.denatal] And you base this ultimate conclusion on what?
  | |     350127 [b.candler po] The OP was asking whether map(:foo) should return an Array or an
  | |     + 350163 [gsinclair gm] That's a pretty yucky option.  I use map all the time, and I expect to
  | |     + 350173 [dblack rubyp] array = [1,2,3,4]
  | |       + 350334 [eregontp gma] I'm quite conservative or maybe 'wise', seeing this discussion.
  | |       + 350337 [rogerpack200] It is surprising that currently it appears to *ignore* the given block.
  | |       + 350340 [rogerpack200] Appears somewhat possible...
  | + 350058 [dblack rubyp] I don't think that &:symbol is inherently clear, but once you know the
  + 350075 [b.candler po] As you say, it could be extended to other Enumerable methods which

^ Re: All Gems Down?
349850 [rogerpack200] Hmm. Where is the slick backtrace again?
349859 [jballanc gma] I think perhaps he means the spew from Passenger... I have to admit, =

^ connect to pop-server via proxy
349852 [psixxx bk.ru] Is it possible to connect to pop3-server via proxy and how if it's
349979 [b.candler po] What sort of a proxy?

^ [ANN] bones 3.0.0
349856 [tim.pease gm] bones version 3.0.0
349905 [vjoel path.b] A bit of a puzzle at first, but now I see that 3.0.0 is available on
349911 [tim.pease gm] In the midst of my release frenzy last night I screwed up the

^ [ANN] bones-git 1.0.0
349857 [tim.pease gm] bones-git version 1.0.0

^ [ANN] bones-extras 1.0.1
349858 [tim.pease gm] bones-extras version 1.0.1

^ A method that doesn't change its arguments
349862 [jeranko gmai] def some_method(array1)
+ 349863 [minilith gma] If your code is slow, it's not because of this use of clone. If your
| 349864 [bbxx789_05ss] "Inefficient" can also refer to memory.  If the array has 4 million
| 349866 [minilith gma] Well, maybe you shouldn't use an array then anyway -- which is more or
| 349878 [josh.cheek g] Arrays in Ruby get unbearably slow when you get into the millions, it would
+ 349865 [list.push gm] Couldn't you do something like this?
+ 349867 [phrogz mac.c] Could you clarify what you're trying to do? What you've shown is a
+ 349924 [kbloom gmail] If you're comfortable with the idea of using completely immutable lists,

^ Trip down memory lane...
349868 [dblack rubyp] I've been hunting through old RCRs, and came across my favorite
+ 349870 [dblack rubyp] Found it! See map(:sym) thread....
| 349874 [eleanor game] I always wanted http://oldrcrs.rubypal.com/rejected.html#rcr2 - but
| 349976 [b.candler po] Is that more or less what Fiber is in 1.9 ?
| 349986 [eleanor game] It could be viewed that way, however a closer analogue to icon's usage
+ 349899 [ninja slapha] Actually, it looks like rcr124 was eventually accepted as BasicObject, right?
  349904 [dblack rubyp] See technique used in delegate.rb for such purpose.
  350086 [ninja slapha] My point wasn't that it had _ever_ been done, but that it had been done well,

^ SoRRy
349871 [imanway.222 ] Sorry for not sending anything related to this group but it might be
349877 [ralphs dos32] ??> 1. We believe that Allah is one God, our Lord and the Lord of

^ [ANN] tumblr-2.2.0
349872 [ara.t.howard] 2.2.0 introduces support for delete operations (thanks to

^ Re: Rdoc with readable hashes
349876 [flo andersgr] class Test

^ Re: [ANN] Ruby-Tk LIbraries Runtime Library 3.0 and Gestalt Items
349882 [m.fellinger ] I'll go through your stuff, sounds really handy.
349953 [arndt.roger ] your project lacks some documentation.
349964 [m.fellinger ] I'm sorry, the project is just a month old and just got usable
350087 [arndt.roger ] Yes it's a 3rd party package!

^ Using Nokogiri
349888 [jzakiya gmai] I'm trying to scrape some data off websites using nokogiri
+ 349914 [bbxx789_05ss] You aren't really searching by css, which would involve things like
| 349919 [bbxx789_05ss] require 'rubygems'
| 349920 [bbxx789_05ss] require 'rubygems'
+ 349927 [mark thomasz] prefix = '//div[@class="sectionHeaderText"]/following-sibling::'
  349941 [bbxx789_05ss] I was wondering if you could answer some xpath questions? I would think
  + 350010 [jzakiya mail] ETAIL
  | 350052 [mark thomasz] Strange... it works for me.
  + 350054 [mark thomasz] Not quite. following-sibling:: is an axis predicate that needs to be
    350059 [bbxx789_05ss] Yes, however I get a warning message that informs me that I'm using an
    + 350097 [jzakiya mail] OK, when I put Mark's code in a file and ran it (versus entering it in
    + 350103 [jzakiya mail] - Hide quoted text -
    | 350158 [mark thomasz] You'll need to modify that last line. Unlike the other items, the URL
    | 350268 [jzakiya mail] Yes, this allows me to capture the url I want (and sometimes ones I
    | + 350306 [mark thomasz] Let's take the first one as an example. I noticed that everything was
    | + 350313 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
    + 350180 [mark thomasz] cool! I didn't know about that.
      350242 [bbxx789_05ss] I've looked into installing newer versions of libxml2 and libxslt, but
threads.html
top