132965-136616 subjects 133344-144852
gem uninstall problem
133183 [jim@fr ez .o] Gems is giving me fits with uninstalling activerecord,
133184 [jim@we ri hh] The current gems software is a bit sloppy in its dependency evaluations
133188 [jim@fr ez .o] It looked to me that a 'Y' would have uninstalled
133189 [jim@we ri hh] Hmmm ... it does look like it selected all the versions of activerecord,
133185 [agorilla@gm ] given 5 variables... incoming, minimium, current, maximum, reserve
+ 133186 [azrael@de on] ==
| 133187 [agorilla@gm ] It's essentially a sort with grouping on equals. Which seemed to me
+ 133212 [csaba-ml@be ] I've sent my solution already offlist, but now I see William James sent
| 133213 [pit@ca it in] I get 541, too. Your code seems to not pay attention to the following
| 133215 [pit@ca it in] Looking at your code I see that the restriction *IS* handled there. The
| + 133221 [agorilla@gm ] Got some great replies to this, on and off-list. Thanks to all who
| + 133227 [csaba-ml@be ] Yes, you are right! Thanks for the enlightenment!
+ 133231 [ruby.brian@g] A little quiz is always nice. Attatched my solution, maybe not the
IRB for mac
133190 [neoneye@gm i] In the terminal there seems to be problem with the arrow keys.
+ 133192 [rasputnik@he] Install the readline extension - see list archives.
+ 133193 [curt@hi bs c] You could take a look and see what he is doing.
| 133195 [neoneye@gm i] I wasn't aware of FXIrb, nice. Thanks.
+ 133194 [james@gr yp ] I suspect Ruby did not link against the readline library when
133196 [neoneye@gm i] Thanks, I should have known that a week ago :-)
[ANN] Ruby Central 2005 Codefest Grant recipients
133197 [dblack@wo bl] Dear Rubyists,
+ 133216 [dblack@wo bl] And a belated thanks (my fault) to the judges, for their time and
+ 133218 [curt@hi bs c] This is a great list of enhancements for Ruby!
+ 133219 [james@gr yp ] Yes, a little on and off the radar. My partner, Greg Brown, and I were
priority queue using RBTree
133202 [vjoel@PA H. ] I couldn't find a nice PriorityQueue in ruby, so I patched one together
133230 [vjoel@PA H. ] Thanks! (And thanks for mailing directly--the gateway seems to be
133204 [nagai@ai ky ] I released a sample of Ruby/Tk: TkTextIO class.
Module#dup and Module.remove_method question
133205 [buter@cw s. ] I have a question about Module#dup and Module.remove_method.
133214 [dblack@wo bl] B.foo lives in A (the methods don't get dup'd when the class object is
133258 [buter@cw s. ] Thank you very much for you answer, but it's still not clear to me: I
133263 [dblack@wo bl] Now that I look at it again... I think it must be special handling of
+ 133267 [botp@de mo t] //Thank you very much for you answer, but it's still not clear to me: I
| 133274 [buter@cw s. ] That's the issue: you can't restore the old method-resolving behaviour
+ 133278 [lists@be tr ] => "probscedian"
133280 [decoux@mo lo] look at rb_mod_init_copy() in class.c
133306 [lists@be tr ] This functions description says: "/* :nodoc: */". That's not
133331 [botp@de mo t] //That's the issue: you can't restore the old method-resolving
tree transformation insight required
133206 [spoooq@gm il] I was wondering if anyone would have some insight into a problem Ive got.
+ 133448 [steven.jenki] I've done something similar to your first alternative, but using blocks.
| 133568 [spoooq@gm il] Steve,
| 133570 [spoooq@gm il] Fixed the bug...
| 133944 [spoooq@gm il] Ive just discovered XSLT templates can take parameters... which is the thing
+ 133953 [neoneye@gm i] I have had good results with visitor design pattern and interpreter
134035 [spoooq@gm il] Thats not a million miles from my first cut at an XSLT template. The
scada: killer app for ruby
133207 [botp@de mo t] In searchning for scada systems on the net, i noticed that they are usually
133209 [neoneye@gm i] what is scada ?
133211 [jason.sweat@] Supervisory Control And Data Acquisition.
133240 [spoooq@gm il] I think gnu scada systems are unlikely for a few reasons.
133244 [jeffm@gh st ] There is already some work in this area (non-ruby through).
133246 [spoooq@gm il] I look forward to being proved wrong.
133249 [tom.willis@g] I had to integrate a shipping system written in vb6 with something
+ 133252 [botp@de mo t] //There is already some work in this area (non-ruby through).
+ 133253 [spoooq@gm il] This is what I mean when I say the integration is more costly than the
Annotations in Ruby
133208 [curt@hi bs c] Forgive me if this was already discussed here (its very possible I could
[ANN] Irb enhancements
133210 [csaba-ml@be ] * support for bash-style multiline editing (multiline commands are
+ 133224 [vjoel@PA H. ] I've wanted this for a long time! (Stupid me, I thought zsh was the only
| + 133225 [bg-rubytalk@] Yay for zsh!
| + 133229 [csaba-ml@be ] According to my classification, there are three type of multiline
| 133232 [bg-rubytalk@] In zsh up-arrow and ctrl-p are both bound (by default) to
| + 133234 [sroberts@un ] There are BSD-licenced readlines around, with GNU readline compatible
| + 133237 [csaba-ml@be ] Ah, thanks! That's interesting.
| 133245 [sroberts@un ] FYI - a readline-like library I used with the rc shell, worked well, to
| 133251 [csaba-ml@be ] Certainly it's good to hear of such things -- I knew only of libedit as
+ 133261 [cldwalker@ch] Thanks for the enhancements. I'm also modifying irb, mainly
133343 [csaba-ml@be ] I've heard only of the first one (and I'm applying that, too).
x86_64 segmentation fault due to forgotten extern directive
133217 [Geert.Fannes] ...
133220 [decoux@mo lo] Normal, on 32 bit machine sizeof(int) == sizeof(unsigned long). This is
133257 [Geert.Fannes] Why does this cause a problem when extern is omitted? Is there some
133260 [decoux@mo lo] Yes, without declaration the return type is assumed to be int.
133222 [lists@be tr ] I want to understand thoroughly how singleton objects are
133223 [vjoel@PA H. ] The second object is the metaclass of C. There's a good explanation of
133238 [lists@be tr ] Ah, I see.
Re: [SOLUTION] Roman Numerals (#22)
133226 [james@gr yp ] Here's my own late entry for this party. My use of a prebuilt Array
rb_raise and memory
133228 [mailing-list] rp = ALLOC(Regexp);
133233 [matz@ru y- a] It's leaking. Thank you for finding it.
133235 [mailing-list] No problem. Is there a simple workaround (other than explicitly
133242 [matz@ru y- a] There's no way for Ruby GC to handle non-VALUE data. The only
133298 [g_ogata@op u] Won't ALLOCA_N work for this, or am I not following?
133300 [rooneg@el ct] alloca memory is deallocated at the end of the scope, which is not a
+ 133301 [g_ogata@op u] Right, I was thinking of a different situation. Sorry.
+ 133308 [ruby-ml@ma i] Well, there's an argument to be made that any memory that's to be used
Fwd: Ruby Central 2005 Codefest Grant recipients
133236 [james@gr yp ] (from the newsgroup)
ot -RE: scada: killer app for ruby
133250 [botp@de mo t] //I think gnu scada systems are unlikely for a few reasons.
133254 [spoooq@gm il] Customers know nothing. The spirit of gnu is not with them.
133259 [botp@de mo t] //I love gpl-software, even most gnu software, but I dont think
[OT] Tiny URLs
133255 [jamesUNDERBA] Informal poll: Are there others as leery as I am of tinyurl and similar
+ 133256 [joaopedrosa@] It's better to fit in a fixed size area, mainly because URLs don't
+ 133264 [Bil.Kleb@na ] I (naively) choose to view the world in a positive manner (aka a
| 133266 [rasputnik@he] 'you are going to tubgirl.com' or whatever.
+ 133269 [lists@ha ff ] =20
| + 133275 [tom@in oe he] Yup, exactly, I usually would paste in the link, but those ViewCVS URLs
| + 133283 [halostatue@g] -austin
| | + 133284 [petite.abeil] Looks very much like an industrial grade service :P
| | | + 133285 [alang@cr no ] Perhaps if the resources are available, someone could set up a
| | | + 133482 [tom.hurst@cl] It's been alive for over a year, what more do you want? :)
| | + 133293 [lists@ha ff ] For those who don't feel like clicking (and to tie this thread into the
| + 133299 [michael.camp] They've never been down that I've ever seen. The service has been
| | 133304 [jamesUNDERBA] Um, pretty much every person I've met who has exhibited routine juvenile
| | 133335 [sera@fh an .] You might have. I've known tons of reliable, juvenile people. I'd argue
| | 133393 [pabs@pa lo r] =20
| | 133415 [rampant@gm i] Though I guess the specific problem with the TinyURL joke is that it
| + 133431 [drbrain@se m] I find blade  to be a far superior archive of ruby-talk to google
+ 133286 [jel@tu dr .a] I would rather people just use HTML links properly, so that you see the label
| 133333 [sera@fh an .] Well, I can't say I've ever actually seen these used in web pages
| + 133471 [jlsysinc@al ] I've used them in web forums where badly written naughty word filters
| + 133536 [aredridel@gm] You mean used on web pages like
| 133541 [robby@pl ne ] You know... I just realized something. I *just* subscribed to RubyTalk
+ 133291 [khaines@en g] I have a simple tiny url service running at http://enigo.com/shortlink
| 133292 [Daniel.Berge] On that note, I thought there was a Ruby equivalent to the WWW::Shorten
| 133294 [khaines@en g] I would not be opposed at all. The algorithm that I use is very simple, and
+ 133295 [aredridel@gm] In the interest of web durability, I prefer not to use them.
+ 133302 [jamesUNDERBA] That's a legitimate concern, and long-term there is the good chance that
| 133303 [aredridel@gm] Since IRC chats are often archived, and mailing list posts too, I
| 133325 [horacio.lope] Exactly, besides, many of these tiny urls are based on a temporary
| + 133328 [rasputnik@he] But surely you just bookmark the url you get redirected to?
| | 133337 [ruby-ml@ma i] I often search ruby-talk (and other) archives for various information.
| + 133374 [chneukirchen] This is also true for no-paste services like rafb.net/paste.
+ 133334 [sera@fh an .] But honestly, the redirection URI is just as likely to stick around in
| 133349 [eule@sp ce c] (In response to news:firstname.lastname@example.org by Francis
+ 133342 [ng@jo nw on ] This is a great point and the very reason I wish people would not use
133262 [nagai@ai ky ] I added new TkRTTimer class to Ruby/Tk.
ruby-ldap rebinding ?
133265 [rasputnik@he] Can anyone tell me where I'm going wrong here?
133345 [ian@ca ib n.] Conn#unbind doesn't just unbind from the server; it also destroys the
133366 [rasputnik@he] Ok thanks - I've used Perl::LDAP in the past which lets you rebind and
133411 [ian@ca ib n.] Yes, I'm afraid you need a new connection to bind as a different user.
133414 [rasputnik@he] Yeah, but then I need to code an admin user/pass pair into my script,
133422 [ian@ca ib n.] You could consider using SASL and something like GSSAPI instead, but
133433 [ian@ca ib n.] This feature is now in Ruby/LDAP's CVS and will be released in 0.9.1.
133435 [rasputnik@he] Brilliant, thanks Ian!
133470 [ian@ca ib n.] You're welcome.
133472 [ian@ca ib n.] And I spoke too soon, because SSLConn connections are more complicated.
133558 [ian@ca ib n.] This has now been fixed in CVS. SSL connections can now also be rebound.
133594 [rasputnik@he] Lovely, ta. Out of interest, is there a reason you need to unbind before binding?
133784 [ian@ca ib n.] It all depends on how much transparency you want.
133794 [rasputnik@he] I think that's what feels wrong about a bind just clobbering the existing
Is iterating in lock-step possible?
133268 [roshanj@mi r] I have been wondering is there is a way to do this. Can I have two
+ 133270 [ruby.brian@g] you can use the Generator class, to wrap any iterator into a generator
| 133271 [decoux@mo lo] Why do you use #each ?
| + 133272 [roshanj@mi r] Brian, ts,
| | 133288 [wmorgan-ruby] There's a definite cost to using generators. Of course, you've already
| | + 133296 [wmorgan-ruby] Um that would be, 1000. Not ten. 1000.
| | | 133297 [g_ogata@op u] Actually, only the arguments are converted; the receiving object is
| | | 133305 [wmorgan-ruby] Oh, you're right. Thanks.
| | | 133346 [roshanj@mi r] Thanks for all the mails. Like William called out, this did not solve
| | | + 133370 [wmorgan-ruby] I think you might be overlooking the obvious, which is that you can take
| | | + 133376 [spoooq@gm il] Continuations are the right answer in this case.
| | | 133377 [spoooq@gm il] Gah, always miss something when I post code...
| | | 133380 [spoooq@gm il] Just found this, it seems to fit the bill nicely and its in the std
| | | 133383 [spoooq@gm il] More or less compliant with the generator.rb api, which I like.
| | | 133400 [csaba-ml@be ] in the std lib.
| | | 133508 [roshanj@mi r] // From: William Morgan [mailto:email@example.com]
| | | 133518 [wmorgan-ruby] It sounds to me like you've posed a problem at the syntax / abstraction
| | | 133595 [roshanj@mi r] // Would you be happy if you hadn't looked at the code? Would
| | | 133702 [wmorgan-ruby] The iteration state is all in the iterator method. For example, look at
| | | 133710 [roshanj@mi r] // def fib
| | + 133398 [csaba-ml@be ] It's a bit faster if you do
| + 133276 [ruby.brian@g] Thank you, I thought that was something not yet in the standard lib.
| + 133281 [tom.willis@g] I needed to do this the other day, but I was too embarassed to ask. :(
| + 133289 [dblack@wo bl] ...
+ 133290 [jason.sweat@] => [1, 2, 3, 4]
[SUMMARY] Roman Numerals (#22)
133273 [james@gr yp ] I like these easy problems. The barrier to entry is low, so we see lots of
SIGHTING: Ruby article in Dr. Dobb's
133287 [eule@sp ce c] In case that hasn't been mentioned: The february 2005 issue of Dr. Dobb's
very slow IO (STDIN.gets and puts) on Linux, ruby 1.8.2_pre3
133307 [ mig@19 4. z] Why is Ruby 2x slower in IO than php or bash?
+ 133312 [bg-rubytalk@] English is so much worse than Japanese! When I try to count to one
| + 133316 [Daniel.Berge] Any particular reason you're using a prerelease version of Ruby 1.8.2?
| | 133355 [ mig@19 4. z] I have 1.8.2 but wanted to do the test it in other version, so used pre3
| + 133353 [ mig@19 4. z] 1. I have NOTHING against Ruby, it is my best language
| 133396 [bg-rubytalk@] I'm glad you see the humour. I was a little harsh, but I was having a
+ 133320 [flori@ni e. ] Well, Ruby assigns the line string to $_, if you use gets that way. So
133356 [ mig@19 4. z] So the solution is maybe to use getc and parse lines on my own...
133359 [navindra@cs ] Maybe you're missing the point.
133381 [tom.willis@g] Here's my results on a 14.5 mb file, ruby wins.
Simple extension question
133309 [probertm@ac ] What is the easy way of clearing an array in an extension?
133310 [Daniel.Berge] rb_ary_clear(foo);
133315 [probertm@ac ] Thanks, Dan. I knew it was something trivial. I haven't done any extension
133313 [Daniel.Berge] It appears that messages posted to google groups are not making it the
133314 [ruby-ml@ma i] Yep, it sure is broken. I'm also getting some sort of bounce messages?
133317 [dennis@la sc] Hey folks,
+ 133318 [james@gr yp ] The gateway has been one way for several days now. A quick trip to
| 133321 [dennis@la sc] Hey James,
| 133322 [hal9000@hy e] I've seen this -- my impression has been that it's a symptom of
| 133363 [dennis@la sc] Yes, those bounces are definitely not related to the gateway at all.
| 133375 [chneukirchen] I already mailed the ml admins to remove that particular subscription,
| 133378 [matz@ru y- a] I think I missed your mail.
| 133395 [chneukirchen] I guess it's time for another line in my fetchmailrc then. :-/
+ 133319 [vjoel@PA H. ] One example: the recent thread on "priority queue using RBTree". My
+ 133323 [ruby-ml@ma i] I think I may have deleted all the bounces, I'll take a look. They're
| 133324 [james@gr yp ] To be clear though, these messages ARE showing up on the mailing list,
+ 133561 [james@gr yp ] Any word on the status of the gateway? Thanks.
+ 133563 [dave@bu t. d] No quiz posts have been sent to c.l.r but not the ML yet.
+ 133591 [decoux@mo lo] Apparently it's unidirectional : work only ruby-talk ==> clr
133607 [dennis@la sc] Hey ts, hey list,
133770 [ruby-ml@ma i] Indeed they did, unfortunately in some arbitrary semi-inverse order :)
133326 [ian@ca ib n.] We have a commercial calendaring application at work that conveniently
+ 133327 [neoneye@gm i] the substring "\210\004" is invalid UTF8.
| 133330 [neoneye@gm i] Forget this explanaition, its wrong.. (I mis-read my testcase)
+ 133332 [mailing-list] #! /usr/bin/ruby -w
133361 [ian@ca ib n.] My thanks to you and Simon. It's especially nice to see a formal
133329 [hal9000@hy e] OK, this is very strange.
[JOB] Possible ruby job in SF Bay Area
133336 [vjoel@PA H. ] This is an informal announcement of a possible position for
+ 133338 [jamis_buck@b] Just curious: how many people have written a project in Ruby consisting
| + 133339 [joaopedrosa@] I don't know. But > 50k LoC is a little bit over the top I think.
| | 133340 [spoooq@gm il] Im only up to 1.25k LoC in my current project, and thats my Ruby record.
| | 133341 [spoooq@gm il] Tallied up the (c++) output - around 32k Loc. :D
| + 133348 [ruby-talk@wh] I've always held to the old adage: If you've written 10K lines of Ruby
| | 133351 [vjoel@PA H. ] Oooh... a MATLAB clone in 10KLOR. MegaGolf, anyone?
| + 133350 [vjoel@PA H. ] Hm, maybe that is not a useful criterion. A program is not better
| + 133354 [laurent@mo d] FreeRIDE (the Ruby IDE) is roughly 20,000 LOC (25,000 lines with
| | 133364 [neoneye@gm i] I have started from scratch 3 times with AEditor.
| + 133371 [wmorgan-ruby] RubyTorrent is about 1700 loc for the libraries, and 2200 including
| + 133386 [mailing-list] My current project (unveiled shortly) is currently above the mark.
| + 133461 [sera@fh an .] Rhizome's code is about 22Kloc. Not that I'm proud of that, really; if
+ 133365 [david@lo dt ] While I think its great to see the job market get into drive, it would
| 133404 [vjoel@PA H. ] You're right. I always hated reading any job posting that was just a
| 133662 [ptkwt@ar cn ] It does seem to me that LORC (Lines of Ruby Code) tends to be much
+ 133385 [michael.camp] 50-60k in SF? Wow.
| 133401 [vjoel@PA H. ] Yes, wow. There are a lot of us trying to live at that rate, or below...
| 133403 [michael.camp] There's something to be said for doing what you love.
+ 133409 [vjoel@PA H. ] To follow up: if the job is offered as a contract, what sort of hourly
133664 [ptkwt@ar cn ] Yes. However, it started out as a C++ project going in. After a month