91019-92852
90770-91100 subjects 91144-92449
^ Net::http.get has a 50K limit?
91019 [mliang cox.n] I'm trying to write a screenscraper and am getting a 50K limit on the data
91024 [nvivek ncst.] Just a small change required.
91062 [mliang cox.n] I tried your suggestion (ie. using a block and putting it to a file: see
91060 [bob.news gmx] "Meihua Liang" <mliang@cox.net> schrieb im Newsbeitrag
91046 [mliang cox.n] Yes the server completes the document. Browser serves it nicely, and I also
91076 [daniel_usene] I played around with your script a bit, and noticed something strange: When
^ Ruby perllib
91022 [harryo qiqso] I found the main web page for perllib here ...
91026 [surrender_it] you can even look for perlinside that was mentioned looong time ago in
^ Ruby Book
91028 [usenets_remo] Thanks
+ 91032 [matz ruby-la] No, even in Japanese.
| 91043 [usenets_remo] The book that are available now are excellent - easy to follow, have good
+ 91050 [gavin refine] If it weren't for that whole copyright issue, it would be really cool if
+ 91052 [gavin refine] I have prelimnary approval of Dave Thomas (one of the authors, not the
+ 91057 [lyle users.s] Hope this helps,
^ Learning Curve Development Time Question
91036 [zdennis mkte] I am curious what others have found with a learning and development curve
+ 91037 [rove.monteux] Not sure if its inside the topic at all, nor if it will help, posting
+ 91038 [peter semant] Having two systems talk across a network is not to big a deal but at
91039 [jim weirichh] Or even something like DRuby!
^ OSCON call for papers
91040 [dave pragpro] Last year's O'Reilly Open Source Convention was the first to have a
91049 [lyle users.s] Also note that the initial proposals are due February 9...
91095 [djberg96 hot] Submitted. Wish me luck. :)
^ Windows 1.8.1 installer ready
91041 [andy pragmat] rubyinstaller.sourceforge.net now has the latest installer, built for
+ 91042 [rich infoeth] gee...this should be a RubyForge project ;-)
+ 91047 [usenets_remo] Great! Andrew.
+ 91051 [joey joeygib] 4NT: C:\ruby\bin\ri.bat [6] Unknown command "T:\pp\ruby\installer\sourceforge\installer\stable\bin\
| 91054 [curt hibbs.c] Yes, the paths are wrong in all the bat files. Andy wanted to get what he
| 91120 [joey joeygib] As I did. I just thought he would want to know.
+ 91077 [jwkenne attg] ri and rdoc appear to be broken.
91082 [curt hibbs.c] The *.bat files in the ruby\bin directory have bad paths in them. You can
^ Webrick URIs to autosearch extension sequence (eg. html, htm, pdf) Howto?
91044 [ralph amissa] the file extension is not provided, eg. search html, htm, pdf in that order
^ Changes to "Programming Ruby" book for 1.8.x
91053 [intc_ctor ya] Since the text to Dave & Andy's "Programming Ruby" book is freely
91055 [dave pragpro] I've updated the built-ins (that's where all the new ri stuff came
+ 91066 [ahoward fatt] RCR = <<-txt
+ 91078 [gsinclair so] One option is to leave (most of) them out of the book. The
91087 [ptkwt aracne] There could be an online version of "Programming Ruby" that covers
91092 [damphyr free] ....more stuff omitted.....
^ principle of most suprise
91056 [snowzone5 ho] tda=Array[(logline.split(/\[\d+\]/))]
+ 91058 [gfb tonesoft] tda.first.first should work here.
+ 91059 [vjoel PATH.B] tda=logline.split(/\[\d+\]/)
+ 91061 [markjreed ma] I believe the problem here is that split RETURNs an array. You're creating a
+ 91063 [contact maik] Try this
| + 91223 [snowzone5 ho] i read that a number of times before i posted...that's why i was stumped
| + 91806 [snowzone5 ho] i read that a number of times before i posted...that's why i was stumped
| + 91254 [bob.news gmx] "tony summerfelt" <snowzone5@hotmail.com> schrieb im Newsbeitrag
| + 91817 [bob.news gmx] "tony summerfelt" <snowzone5@hotmail.com> schrieb im Newsbeitrag
| + 92007 [bob.news gmx] "tony summerfelt" <snowzone5@hotmail.com> schrieb im Newsbeitrag
| + 92181 [bob.news gmx] "tony summerfelt" <snowzone5@hotmail.com> schrieb im Newsbeitrag
| + 92331 [bob.news gmx] "tony summerfelt" <snowzone5@hotmail.com> schrieb im Newsbeitrag
| + 91348 [snowzone5 ho] yup, thought of that one already :)
| + 91856 [snowzone5 ho] yup, thought of that one already :)
| + 92046 [snowzone5 ho] yup, thought of that one already :)
| + 92236 [snowzone5 ho] yup, thought of that one already :)
| + 92413 [snowzone5 ho] yup, thought of that one already :)
+ 91065 [davel canuck] another way of writing this code, which you may find more explicit if you
| 91070 [vjoel PATH.B] logline[/^.*(?=\[\d+\])/]
| + 91630 [gedb rushcod] tda, number,address=(logline.split(/\[|\]|(?:addr\:)/, 3))
| + 91944 [gedb rushcod] tda, number,address=(logline.split(/\[|\]|(?:addr\:)/, 3))
| + 92133 [gedb rushcod] tda, number,address=(logline.split(/\[|\]|(?:addr\:)/, 3))
| + 92329 [gedb rushcod] tda, number,address=(logline.split(/\[|\]|(?:addr\:)/, 3))
+ 91605 [invalid see-] tda= logline.split(/\[\d+\]/)
+ 91631 [gedb rushcod] Remember to use 'p variable' to see what your object actually
+ 91935 [invalid see-] tda= logline.split(/\[\d+\]/)
+ 91943 [gedb rushcod] Remember to use 'p variable' to see what your object actually
+ 92125 [invalid see-] tda= logline.split(/\[\d+\]/)
+ 92134 [gedb rushcod] Remember to use 'p variable' to see what your object actually
+ 92315 [invalid see-] tda= logline.split(/\[\d+\]/)
+ 92330 [gedb rushcod] Remember to use 'p variable' to see what your object actually
^ open-uri and proxies
91064 [intc_ctor ya] I was trying to play with open-uri as shown on Whytheluckystiff's
+ 91068 [rodrigo.berm] you can try setting your proxy via Env variable.
+ 91074 [intc_ctor ya] open("http://www.ruby-lang.org",:proxy=>"http://your.proxy.here:8080") do |f|
^ Accesing to private attributes
91071 [imodev softh] I was discusing about Object Oriented Languages with a friend and I have a
+ 91072 [david.naseby] Ruby doesn't really get in your way if you need to do something like this.
+ 91073 [djd15 po.cwr] You can do it.
+ 91256 [bob.news gmx] "Dan Doel" <djd15@po.cwru.edu> schrieb im Newsbeitrag
+ 91292 [gedb rushcod] Dan,
+ 91819 [bob.news gmx] "Dan Doel" <djd15@po.cwru.edu> schrieb im Newsbeitrag
+ 91836 [gedb rushcod] Dan,
+ 92009 [bob.news gmx] "Dan Doel" <djd15@po.cwru.edu> schrieb im Newsbeitrag
+ 92026 [gedb rushcod] Dan,
+ 92185 [bob.news gmx] "Dan Doel" <djd15@po.cwru.edu> schrieb im Newsbeitrag
+ 92215 [gedb rushcod] Dan,
+ 92336 [bob.news gmx] "Dan Doel" <djd15@po.cwru.edu> schrieb im Newsbeitrag
+ 92365 [gedb rushcod] Dan,
91303 [djd15 po.cwr] As far as I can tell, no.
^ question about install.rb
91079 [vjoel PATH.B] When exconf.rb cannot create_makefile for some reason (e.g., a platform
^ regex bug?
91081 [zdennis mkte] key = "file"
+ 91083 [hal9000 hype] It recognizes \4 as meaning the fourth submatch of the
| 91084 [zdennis mkte] Thank you much Hal! It's working now.
+ 91085 [ng johnwlong] command.gsub!( /\[#{key}\]/ , "#{Regexp::quote(attrib)}" )
+ 91086 [markjreed ma] As others have said, '\4' in a gsub string is special. To get around
91126 [mike stok.co] also if your replacement includes \ then you might consider using the
^ flip flop operator and assignment
91088 [ptkwt aracne] I'm working on the pattern matching section for
91093 [decoux moulo] this is not the flip flop operator, but the range operator : this is why
91118 [ptkwt aracne] Yes, I figured that it was being interpreted that way, but my question is
91163 [decoux moulo] ruby use `..' for the range operator and the flip-flop operator.
91389 [jgb3 email.b] Reading the posts in this discussion has been very enlightening for me.
91394 [nobu.nokada ] Ruby already has both of unary and binary '-' operators, so the
91406 [jgb3 email.b] Good point. Another option would be to retain the use of the '..' and
^ No difference between .. and ... flip/flop operators?
91089 [ptkwt aracne] I thought .. meant inclusive and ... meant 'not including matching lines'.
91090 [djd15 po.cwr] When constructing ranges of values (such as Fixnums), ... excludes the
+ 91096 [michael_s_ca] Which is a darn shame.
| 91097 [nathaniel ta] previous.sub(/a darn shame/, 'wonderful')
| + 91098 [michael_s_ca] Why? If you didn't like it, why would you use it?
| | 91103 [nathaniel ta] An interesting question; I'll try to give a coherent answer. First of
| | 91105 [michael_s_ca] I don't find it either of those.
| | 91107 [nathaniel ta] Point taken. But then, I know from talking to others that my opinion on
| | 91116 [ptkwt aracne] Not only will it be missed, it will break a _lot_ of code if it's removed.
| + 91111 [ptkwt aracne] Why? Care to elaborate? If you don't like them, you don't have to use
+ 91112 [ptkwt aracne] identical as in there is no difference in behavior between them?
91125 [djd15 po.cwr] Yes, that's what I meant.
+ 91127 [hal9000 hype] I can't speak for Matz, but my impression is that the perlisms
+ 91129 [nathaniel ta] language.html
+ 91132 [michael_s_ca] The 2 dot form evaluates the end condition at the same time as the beginning one, so will flip to "on" then "off" if both are true. The 3 dot form does not.
+ 91133 [djd15 po.cwr] Ah, I see.
+ 91137 [ptkwt aracne] Thanks for the reference. I thought I'd seen that state diagram
^ ruby-fcgi on FreeBSD 5.1
91094 [careck circl] I just installed ruby-fcgi on FreeBSD 5.1 from the ports tree. It
91108 [shu rufuran.] There is no C version of each_cgi, it says so in a comment in the pure-Ruby
^ Ruby 1.8.1 REXML performance
91099 [steven.jenki] I have a script that uses REXML to stream parse an XML file and load a
+ 91106 [steven.jenki] Here's a little more data. I've stripped the application down to a
+ 91128 [steven.jenki] Quick update--I'll post numbers later. It appears that the REXML stream
| 91146 [djberg96 hot] Steve,
| 91150 [steven.jenki] I've been running lots of tests. Unfortunately, the profiler adds a
| 91193 [steven.jenki] I've repeated all the tests with Ruby 1.8.0 and it sure looks like
| 91202 [mailinglists] You are the only one talking with you in this thread. Do you really
| + 91204 [Ephaeton gmx] So we should ask for money if you come here and ask for help ?
| + 91207 [paul vudmask] Tho i think this thread would be more relevant on the rexml ml, I have
| + 91208 [steven.jenki] Other people are reading it. You read it. It gets archived.
| | 91216 [gsinclair so] Well done. I was just about to send a private note thanking you for
| + 91416 [mvondung gmx] Hmm, that's the third or fifth message I am reading from you today,
| + 91879 [mvondung gmx] Hmm, that's the third or fifth message I am reading from you today,
| + 92069 [mvondung gmx] Hmm, that's the third or fifth message I am reading from you today,
| + 92259 [mvondung gmx] Hmm, that's the third or fifth message I am reading from you today,
| 91426 [sroberts uni] Which is particularly weird, given that Lothar is the principle of a
| 91427 [rasputnik he] Maybe its a troll impersonating him?
+ 91212 [steven.jenki] Thanks to all who helped on IRC.
92502 [ser germane-] Steve,
92698 [steven.jenki] I know how that goes. Fortunately, Zachary Landau already had a
92852 [ser germane-] Yeah, well... I think REXML is at the point where I'm squeezing
^ credit card processing
91101 [armin xss.de] does anybody have any experience processing credit card
+ 91102 [dave pragpro] My "Summer Vacation" app used Authorize.net. The basic version of their
| 91138 [ruby hitmedi] Yes! I can HIGHLY recommend using Authorize.net because of their openness
+ 91113 [mailinglists] Maybe the best way is to use a 3rd party for credit card processing
^ graphics lib?
91104 [alwinblok fa] What would be the best choice for 2d vector graphics with ruby?
+ 91179 [neoneye adsl] I can recommend RMagic.
| + 91226 [cc1 cec.wust] I have used RMagic in the past, but it doesn't quite seem suited to per
| + 91403 [rasputnik he] Not exactly what was asked for, but ruby-ming is a cracking Flash
| + 91807 [cc1 cec.wust] I have used RMagic in the past, but it doesn't quite seem suited to per
| + 91262 [neoneye adsl] It's possible with RMagick.. get/set pixel methods :-)
| + 91823 [neoneye adsl] It's possible with RMagick.. get/set pixel methods :-)
| + 92013 [neoneye adsl] It's possible with RMagick.. get/set pixel methods :-)
| + 92192 [neoneye adsl] It's possible with RMagick.. get/set pixel methods :-)
| + 92342 [neoneye adsl] It's possible with RMagick.. get/set pixel methods :-)
| + 91362 [cc1 cec.wust] Right I have used that function it's just very cumbersome, it would be
| + 91860 [cc1 cec.wust] Right I have used that function it's just very cumbersome, it would be
| + 92050 [cc1 cec.wust] Right I have used that function it's just very cumbersome, it would be
| + 92240 [cc1 cec.wust] Right I have used that function it's just very cumbersome, it would be
| + 92421 [cc1 cec.wust] Right I have used that function it's just very cumbersome, it would be
| + 91363 [hal9000 hype] Tell that to Tim. I'm sure he'll consider adding to the API if you
| | + 91400 [cyclists nc.] Or even a weak case :-)
| | + 91874 [cyclists nc.] Or even a weak case :-)
| | + 92064 [cyclists nc.] Or even a weak case :-)
| | + 92254 [cyclists nc.] Or even a weak case :-)
| + 91382 [ahoward fatt] i'm in total agreement. what i have done is to create a class the memory maps
| + 91868 [ahoward fatt] i'm in total agreement. what i have done is to create a class the memory maps
| + 92058 [ahoward fatt] i'm in total agreement. what i have done is to create a class the memory maps
| + 92248 [ahoward fatt] i'm in total agreement. what i have done is to create a class the memory maps
| + 92438 [ahoward fatt] i'm in total agreement. what i have done is to create a class the memory maps
| + 91391 [cc1 cec.wust] You don't happen to have some code for example of this? I'm not quite
| + 91870 [cc1 cec.wust] You don't happen to have some code for example of this? I'm not quite
| + 92060 [cc1 cec.wust] You don't happen to have some code for example of this? I'm not quite
| + 92250 [cc1 cec.wust] You don't happen to have some code for example of this? I'm not quite
| + 91418 [ahoward fatt] before i reply to the above i'd also suggest checking out narray - it features
| + 91880 [ahoward fatt] before i reply to the above i'd also suggest checking out narray - it features
| + 92070 [ahoward fatt] before i reply to the above i'd also suggest checking out narray - it features
| + 92260 [ahoward fatt] before i reply to the above i'd also suggest checking out narray - it features
+ 91259 [dmertz free.] libplot from the gnu plotutils project could be a good choice for you.
+ 91821 [dmertz free.] libplot from the gnu plotutils project could be a good choice for you.
+ 92012 [dmertz free.] libplot from the gnu plotutils project could be a good choice for you.
+ 92188 [dmertz free.] libplot from the gnu plotutils project could be a good choice for you.
+ 92338 [dmertz free.] libplot from the gnu plotutils project could be a good choice for you.
^ cascading message sends
91109 [paulmg digit] In Smalltalk, which Ruby is much like in some ways, you can 'cascade'
+ 91110 [vjoel PATH.B] x=[]
| 91119 [djd15 po.cwr] Note that you can wrap this into a nicer looking syntax, similar to
+ 91121 [markjreed ma] Others have mentioned a couple ways to do this generally, but
+ 91131 [guslist free] [gus@gusmac tmp]$ cat chain.rb
| 91134 [bystr mac.co] self
+ 91198 [paulmg digit] It's lucky that in Ruby Array#push and Array#<< do return self; unlike
91245 [assaph avaya] class Object
^ Save the flip/flop op!
91114 [ptkwt aracne] And just what would you replace that functionality with? It seems to me
+ 91115 [hal9000 hype] Phil,
| + 91122 [michael_s_ca] Well, I like the syntax, because I've trained my brain to understand it. Would Ruby be as easy to read as it is now if all the reserved words were not in English (or in ANY known "natural" spoken language)? My point here is that anything you dont yet understand, take the time to understand it. The reason Ruby is easy now is only because you have the understanding of the context in/for which it was designed.
| | 91124 [hal9000 hype] Well, it runs counter to the rest of Ruby.
| | + 91130 [michael_s_ca] I have no stance to debate that, but I'd wager that for virtually every construct in ruby 1 person considers within "the ruby way", there would be a set of people who disagree.
| | | 91135 [nathaniel ta] Here's my stab at a replacement. My goal with it was to replace the
| | | 91136 [michael_s_ca] Yes, it's the ".." operator... >=)
| | + 91147 [jwkenne attg] Code with an invisible state always reminds me of COBOL, frankly.
| | 91149 [michael_s_ca] Interesting, since everything in COBOL is global and there IS no visibility...
| | + 91153 [jim weirichh] 1) It is context sensitive. Is the following snippet of code a
| | | 91187 [michael_s_ca] I will agree that on a *purely* academic level, that's true. However, I (nor anyone I've ever worked with) don't run, read, write, or otherwise deal with code that has absolutely 0 context around it, so the argument there is somewhat moot.
| | | 91220 [gsinclair so] It's a POV thing. I agree with what you're saying on an academic
| | + 91767 [NewGroups nt] <michael_s_campbell@yahoo.com> writes
| | + 91988 [NewGroups nt] <michael_s_campbell@yahoo.com> writes
| | + 92189 [NewGroups nt] <michael_s_campbell@yahoo.com> writes
| | + 92416 [NewGroups nt] <michael_s_campbell@yahoo.com> writes
| + 91123 [ptkwt aracne] Not everything in Perl was bad (No offense taken). Matz obviously got a
| + 91171 [bob.news gmx] "Hal Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
| 91176 [gsinclair so] Nice implementation. The usage is still more verbose than the FF
| 91181 [bob.news gmx] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
+ 91139 [avi beta4.co] What an odd operator! It took me a bit of toying around to figure out
+ 91140 [avi beta4.co] def from(start_cond, end_cond)
| 91141 [ptkwt aracne] ff = FlipFlop.new
| 91142 [michael_s_ca] No doubt.
| 91143 [ptkwt aracne] I haven't tried Nathaniel's proposed solution, but Avi's solution takes a
+ 91145 [avi beta4.co] BEGIN
+ 91384 [sabbyxtabby ] This one short-circuits, evaluating the left operand when the
+ 91869 [sabbyxtabby ] This one short-circuits, evaluating the left operand when the
+ 92059 [sabbyxtabby ] This one short-circuits, evaluating the left operand when the
+ 92249 [sabbyxtabby ] This one short-circuits, evaluating the left operand when the
+ 92439 [sabbyxtabby ] This one short-circuits, evaluating the left operand when the
threads.html
top