58550-59589

58385-59703 subjects 58681-59499

^ Implementing combinatorics
58550 [waisun.chia ] Rubyists,
58553 [jdevries pfr] binary         set elements

^ The coolest thing since sliced bread
58561 [mikkelfj-ant] The coolest thing since sliced bread is a piece of sandwich bread which is
58569 [rich infoeth] Well, having authored some of FreeRIDE I don't know
58574 [curt hibbs.c] Thanks for the kind words.
58662 [Michael.Garr] Ugh!  Free write forces users into a new editor?  I'm lost without Vim.
58672 [curt hibbs.c] Sounds like an opportunity to me!
+ 58690 [Michael.Garr] Hmm.....
| + 58691 [djberge qwes] What I really want to know is, what was the coolest thing *before* sliced
| | + 58692 [walker deafc] Beer
| | | 58699 [ted datacomm] Glass doorknobs to ensnot?
| | + 58727 [mikkelfj-ant] Quite obviously it was either bread or a knife.
| + 58747 [gsinclair so] A 12KB message with only 8 bytes of original content is grounds for
+ 58702 [spoon dellah] There's more to Vim than just the key bindings. Otherwise we'd be using
| + 58714 [martindemell] But the keybindings would be a excellent start around which other
| | 58720 [spoon dellah] An awful lot of effort reinventing the wheel. I suspect it would
| | 58731 [harryo zip.c] I agree. Actually, what I've often wondered is why someone doesn't take the
| | + 58882 [drbrain segm] he=20
| | | 58887 [alan digikat] Emacs too. Generally the plugins talk to the MSVC++ IDE fairly well.
| | | 58894 [curt hibbs.c] Great! These are precisely the kinds of features we want to get in to
| | + 58965 [dsafari para] They have it's called the vim Kpart for KDE :) FWIW on their project page they
| |   59106 [harryo zip.c] Brilliant!
| + 58726 [mikkelfj-ant] You forget you have Ruby on taps.
|   58734 [spoon dellah] And emacs has lisp on tap =) [and vim has its viml, but I'm not a fan of
|   + 58743 [harryo zip.c] Some editors that have vi bindings tend to get this right.
|   + 58746 [gsinclair so] The number of times I've hit ^W (delete word in insert mode in Vim) while
|     + 58754 [michael_s_ca] I found the same to be true for me with emacs and Eclipse.  I love emacs; been
|     + 58780 [curt hibbs.c] Without a doubt, IntelliJ IDEA is as good as it gets for Java development --
+ 58705 [james jamesb] I take, then, you've done something along these lines?
  58733 [harryo zip.c] Yes, it amazes me how IDEs never seem to have editors that look like vi or
  + 58763 [mikkelfj-ant] I believe you can run vim inside MS developer studio, although I haven't
  + 58818 [martindemell] Of late, I've been wishing for better project management tools - IDEs
    58827 [austin halos] Vim can do this as an OLE client  in Windows, IIRC.
    58836 [asodu azot.c] Привет Austin,
    58837 [Michael.Garr] Sorry Gavin.  Actually it was 9 bytes.
    58839 [Michael.Garr] I would be nice to be able to "plug-in" the existing vim into FreeRIDE.
    + 58840 [rich infoeth] Just wait and see what the project management system in FreeRIDE
    | 58841 [mark.firesto] At least the message wasn't...
    + 58845 [curt hibbs.c] If its not too much to ask, can you tell me what features have been
    | + 58847 [Michael.Garr] I'm just starting to learn about vim plug-ins.  After studying some of these
    | | 58860 [curt hibbs.c] Its gratifying to hear that the responses you got were nearly unanimously in
    | + 59113 [bulatz integ] just running ruby interpreter forked and using it to execute
    + 58937 [gsinclair so] None of those features that I've mentioned can possibly be handled from Vim

^ replacing chars in string
58563 [sdate kc.rr.] I am trying to globally replace characters in a string by "chaining" the
58572 [ruby-talk wh] For your need, the chained gsub is the fasted I can think of.  Here's my
58577 [nobu.nokada ] x.report( "chained gsubs 2:" ) do
58590 [batsman.geo ] x.report( "chained gsubs 3:" ) do
58592 [nobu.nokada ] (test = str.gsub(/[,()]/,' \& ')).gsub!(/([^<>])=/,'\1 = ')

^ all the pretty evals...
58566 [nemo hellotr] So, I've been kind of confused about all of the different ways of evaling
58593 [batsman.geo ] Don't forget
58634 [nemo hellotr] Don't forget
+ 58649 [decoux moulo] a singleton class is a class which is associated with an unique object.
+ 58671 [batsman.geo ] A singleton class is by definition associated to a single object. If you

^ st_lookup problem with sockets on ppc
58576 [dave thomase] ruby -v

^ Ruby Problem
58588 [stefanocheri] RGVhciBydWJ5LXByb2dyYW1tZXJzLA0KDQpptG0gdmVyeSBuZXcgdG8gcnVieSBhbmQgaSBoYXZl
58589 [botp delmont] It works here like a charm.. even faster than I can blink. Nice graph =
58603 [emmanuel.tou] FWIW, works perfectly on win2k and ruby 1.6.7 here (definitely impressive).

^ Bit syntax
58596 [martindemell] Came across this in the lambda weblog, where the poster said
58600 [bulatz integ] sorry, but ruby don't have pattern matching even for regular data
+ 58604 [martindemell] Doh - okay, misread that. Yeah, pattern matching wouldn't work in Ruby.
+ 58655 [ysantoso jen] I failed to see the FP-ness of Erlang Bit Syntax's pattern

^ calling a perl script
58597 [max solution] i would like to call a perl script with ruby.
58618 [bob.news gmx] "max" <max@solution-x.com> schrieb im Newsbeitrag
+ 58622 [max solution] yes i have some perl libaries and no chance to use them via ruby
| 58626 [bulatz integ] include "PerlInside"
| + 58629 [max solution] this sounds interestimg. well i downloaded the client libaries for
| + 58635 [max solution] correct my last posting. it works now that i can communicate.
| + 58674 [ptkwt shell1] Is your PerlInside on the RAA?  I didn't find it there.
+ 58624 [max solution] works fine. very cool. thank you.
  + 58625 [gsinclair so] Use 'irb' until you find the answer: e.g.
  | 58633 [max solution] but when i execute output = `test.pl`
  | 58636 [ahoward fsl.] either
  + 58645 [bob.news gmx] "max" <max@solution-x.com> schrieb im Newsbeitrag

^ String.scan (Regexp again...)
58598 [xrfang hotma] p=/.{4}((.{3})(.{6})(.{3})).{17}(.{16}).{13}(.).{33}(.{7}).{17}((.{3})(.{6})(.{3}))/
+ 58619 [bob.news gmx] regexp per se can not match recursive structures.  for that you need a
+ 58821 [mike stok.co] one thing you might consider as you seem to be using fixed width chunks
  58892 [xrfang hotma] Thanks a lot! That makes my program easier, because in the input file

^ Simpler case: String.scan (Regexp again...)
58599 [xrfang hotma] line="Hello World!"

^ subscribe me
58605 [findlok indi] Get Your Private, Free E-mail from Indiatimes at  http://email.indiatimes.com

^ TCPsocket, Errno::ECONNREFUSED and ruby on Windows
58606 [davep.news d] While writing some code intended to run on both GNU/Linux and WindowsI ran
58608 [decoux moulo] Why not
58620 [davep.news d] Because that catches all errors.

^ Help in invoking the ruby code throught web server
58607 [findlok indi] I am Lokesh, and I have a doubt in ruby, I have an IIS web server and I have installed the ruby on my system.  I am able to work with ruby as a comand line, but I would like to invoke my ruby programs through a web browser. That is I would like to keep a ruby code in a web server and call it through the client browser.
+ 58623 [phlipcpp yah] This is an IIS question, not a Ruby question.
+ 58631 [james jamesb] Take a look at ActiveScriptRuby.  You can use it to write ASP code, though
  58659 [ted datacomm] I certainly hope that the similiarity in addresses (indiatimes.com) is coincidental.

^ For (i=0;i>....) in Ruby?
58612 [stefanocheri] cout<<"Enter field length: ";
+ 58615 [robertm spel] <snipped what looked like homework>
+ 58616 [dblack candl] print "Enter field length: "
+ 58617 [martindemell] puts "Enter field length"

^ JRuby
58637 [xrfang hotma] I am learning to use JRuby. Currently just started reading the documents.
+ 58650 [GBanschbach ] Dear Shannon,
| 58938 [marathoner s] I would love to see the Ruby equivalent of Jython, too. For me, Jython
| 58976 [GBanschbach ] Dear All,
| 58978 [xrfang hotma] please look for post 58637 at http://www.ruby-talk.org. Or simply search
+ 58883 [ndrsbngtssn ] We're a little short on documentation in some areas on JRuby. But it's
  58896 [xrfang hotma] Thanks. I will let you know my test result on JRuby. BTW, I'm also very
  59049 [ndrsbngtssn ] I've started on the compiler, but so far it can only compile a few
  59050 [xrfang hotma] I think compiling into java source code is very useful, simply for
  + 59055 [michael_s_ca] I think if your boss saw the java code that *ANY* 'cross language' converter
  + 59119 [bulatz integ] this code will be completely unreadable and unmodifiable. ruby is

^ warning: discarding old <methodName>?
58638 [Juergen.Lind] why does this warning come up?
58639 [dblack candl] The warning ("discarding old <method>") comes up when you discard an
58642 [Juergen.Lind] Hmm sounds quite like I thought but I donot see the point.

^ Strainge Time Behaviour
58640 [whitton atla] I'm manipulating some dates, and I just found something weird.
+ 58641 [paul floorba] Note the difference in type of time returned: EDT vs. EST
+ 58643 [ahoward fsl.] ~ > irb
| + 58644 [ahoward fsl.] i guess maybe daylight savings time takes effect at 1:59 am, though that
| | + 58654 [nemo hellotr] i guess maybe daylight savings time takes effect at 1:59 am, though that
| | + 58664 [michael_s_ca] I thought it was 2:00 am.
| |   58667 [ted datacomm] Unfortunately this is not true all over the world -- DST is at the whim of politicians.  Arizona and parts of Indiana don't observe it;
| |   58675 [michael_s_ca] Well, yes, but I meant at which time does it take effect, with the understanding that I meant in those areas WHERE it does take effect at all. =)  (And in the US)
| + 58646 [dblack candl] I'm probably being completely thick, but what part of this
+ 58648 [a.bokovoy sa] Day Light savings turnover?

^ process id
58651 [mengx tvrati] Is there anyway to get the process id forked by IO.popen. i.e.
58765 [eban os.rim.] IO#pid
58828 [mengx tvrati] Thanks very much.

^ deleting a class
58653 [nemo hellotr] I'm try to find a way to completely delete a class.  (What I would
58658 [nemo hellotr] class Foo
58814 [decoux moulo] Well, you are just seeing that the GC is conservative.
58851 [nemo hellotr] I don't understand.  Are you saying there's a temporary reference to the
58855 [decoux moulo] Yes,
58863 [nemo hellotr] When you write
58864 [decoux moulo] pigeon% cat b.rb
58872 [nemo hellotr] Are you saying I do have a reference to Foo in my code?!  There might be a

^ functional programming "style"
58657 [i_wont tell.] i discovered ruby some weeks ago and i have to say now that i'm through with
+ 58663 [drbrain segm] ith
+ 58684 [mikkelfj-ant] with
| + 58695 [martindemell] Interesting! Could you point me somewhere for details?
| | + 58721 [mikkelfj-ant] I think I recall having seen n-queen sampling in litterature, but it may
| | | 58843 [martindemell] Very neat.
| | + 58798 [bulatz integ] btw, in fido7.ru.compress conference several weeks ago was published
| + 58799 [bulatz integ] qs() = ()
|   59047 [jcb iteris.c] Here is quick sort in Ruby
+ 58709 [jcb iteris.c] Actually, Ruby is an Object-Oriented Language.
  58711 [ysantoso jen] This seems to be a common misperception. Imperative, functional and
  58716 [simon simon-] Strictly speaking, imperative, functional and object-oriented are

^ Regular Expression Question
58668 [jonah13579 h] What would be the ruby equivalent of the following perl script?  I
58676 [batsman.geo ] probably not very idiomatic, and EVIL

^ Ruby lecturer in L.A. ?
58670 [mjbjr beaude] Once a month (second Saturday), my local LUG has a meeting, which usually

^ Re: calling a perl script (YAML serialization?)
58673 [ptkwt shell1] What I did in a situation like this was to write a wrapper around my Perl
+ 58700 [james jamesb] Similarly, couldn't one wrap XML-RPC around the perl code?
| 58722 [ptkwt shell1] Sure, some form of XML serialization could be used too.  I'm just partial
+ 58713 [ruby-talk wh] Oh, yes.  It's the essence of YAML's existence.  User-defined classes are
+ 58796 [bulatz integ] i did this in general way. my library handles hashes/arrays of any

^ help -- persuade my boss to adopt ruby
58677 [xrfang hotma] I have a tough task need your help. I try to persuade my boss to adopt
+ 58679 [vjoel PATH.B] The file will be left open after the loop. It will eventually be closed
+ 58686 [ptkwt shell1] Yes, this can be a very tough task indeed and it really depends a lot on
| 58687 [ptkwt shell1] One more thing that I thought of as I sent this to the ng...
| 58698 [xrfang hotma] 1. Currently only I understand Ruby.
| + 58701 [ted datacomm] Unfortunately, people rise in management by NOT making waves...
| | + 58703 [mark.firesto] Don't feel bad.  I'm stuck with writing stuff in KixStart.  Ugh!  Damn
| | | 58704 [dcarrera mat] What is KixStart?  (I'm a Linux guy, so I wouldn't know).
| | + 58712 [xrfang hotma] What do you mean making waves? Confused...
| | | 58761 [ptkwt shell1] What he means is that people usually don't rise in management by taking
| | + 58800 [bulatz integ] it's the MATZ'S position that Ruby will never be REAL WORLD language.
| |   58804 [xrfang hotma] Is it really Matz's opinion, and the direction of Ruby?
| |   + 58807 [mwilson13 co] ...
| |   | 58943 [billtj z.glu] Reading the web page(s), I could not find an explicit answer on whether
| |   | + 58945 [phlipcpp yah] "Only the true messiah denies his divinity" - Monty Python
| |   | + 58960 [wyzzrd bells] I never heard that he made that statement. But, even if he did, and even
| |   | + 59114 [bulatz integ] i mean "Matz don't interested in creating languages for large-team,
| |   + 58949 [dblack candl] It's a particularly malicious bunch of nonsense from our resident
| |   | 59116 [bulatz integ] it insulting me, not matz :) ruby is perfect language which don't have
| |   | 59129 [jim freeze.o] I think such discussions are exercises in futility. Ruby will be what
| |   | 59133 [bulatz integ] my point is that someone can't fire managers which dont want to use
| |   | 59158 [matz ruby-la] Don't fire me.  It is a hard time for us, language designers.
| |   + 59157 [matz ruby-la] I don't think so.  Ruby was his toy at the beginning, but this fact
| |     + 59159 [wyzzrd bells] Ditto c, c++, lisp, linux, perl, etc.
| |     | + 59161 [hal9000 hype] Wonderful quote. It's going in my list. Who said it? You? :)
| |     | | + 59164 [wyzzrd bells] Oops.  I fleahed this out and was going to attribute it before I posted,
| |     | | | 59218 [austin halos] I have to disagree with this quote about XML. First, I don't think
| |     | | | 59532 [james jamesb] For what it's worth, XML, through the use of id and idref attributes, can
| |     | | + 59171 [ahoward fsl.] i just did a balsa wood prototype used in a funds pitch made for a grid
| |     | | + 59181 [bulatz integ] of course, the language itself is better than perl in any ways
| |     | |   + 59184 [bruce codedb] I leave this argument to Matz and the core developers.
| |     | |   | 59187 [bulatz integ] - please add optional type-checking to the language
| |     | |   + 59186 [matz ruby-la] I don't understand what you mean at all.
| |     | |   | 59196 [bulatz integ] i see process of development of large application as prototyping w/o
| |     | |   | 59216 [matz ruby-la] I didn't know you (and him) representing it.
| |     | |   | 59220 [bulatz integ] =====================================================
| |     | |   | 59238 [matz ruby-la] Yes, theoretically possible for this tiny artificial example, by
| |     | |   + 59264 [dan sidhe.or] This is very much incorrect. It's certainly possible to do things to
| |     | |     59292 [bulatz integ] yes, i mean exactly that
| |     | |     + 59294 [matz ruby-la] No, it's not what you meant.  Read the original post carefully.
| |     | |     | 59295 [rich lithino] can't be compiled == non-trivial
| |     | |     | 59325 [austin halos] Ruby currently can't be compiled. Ruby needs to become a
| |     | |     | 59351 [dan sidhe.or] Almost. You could go compiled now, you just won't see the speedups I
| |     | |     | 59407 [gsinclair so] Interesting.  How would the following code be compiled?
| |     | |     | + 59420 [mikkelfj-ant] mov eax, [gets]
| |     | |     | + 59469 [simon simon-] This is compiled normally.
| |     | |     | | 59472 [gsinclair so] OK, so eval would be quite slow, wouldn't it?  And eval is hidden in a fair bit
| |     | |     | | 59473 [bulatz integ] eiffel can
| |     | |     | + 59525 [dan sidhe.or] It gets compiled into a read and invocation of the compiler. For
| |     | |     + 59348 [dan sidhe.or] I don't, though--you cut out some interesting bits in the middle. And
| |     | |       + 59356 [pbrannan atd] template<typename T>
| |     | |       | + 59362 [dan sidhe.or] How often is time to time, though? Daily? Weekly? Monthly? It's just
| |     | |       | | + 59376 [pbrannan atd] It's often enough that I don't want to completely abandon static typing,
| |     | |       | | + 59378 [flori nixe.p] In most cases static typing isn't useful for the programmer but useful
| |     | |       | |   59391 [mikkelfj-ant] DON'T use that argument - software is never fast enough. The correct
| |     | |       | |   59403 [austin halos] like this safety sometimes because they don't trust the self-imposed discipline
| |     | |       | + 59377 [flori nixe.p] class Vector
| |     | |       |   59380 [pbrannan atd] template<typename T>
| |     | |       + 59360 [hal9000 hype] Wow, you know him?
| |     | |       + 59441 [bulatz integ] dynamic typing can coexist with static typing in one program
| |     | |         59527 [dan sidhe.or] It doesn't get you any of the benefits you wanted it for, though.
| |     | |         + 59534 [mikkelfj-ant] Doesn't Dylan do this quite convincingly.
| |     | |         | 59544 [dan sidhe.or] I'm not sure Dylan's a great example. It does have some pretty
| |     | |         | + 59547 [mwilson13 co] charset=US-ASCII;
| |     | |         | + 59557 [mikkelfj-ant] Dylan got hit twice: first developed and dumped by Apple, then the
| |     | |         + 59548 [billtj z.glu] For a concrete example, just look at Pyrex, which is "Python with C data
| |     | |         | 59589 [bulatz integ] thank you for the music :)  and another interesting approach you can find in Eiffel
| |     | |         + 59581 [bulatz integ] library modules can be optimized while user functions will not. or we can rewrite
| |     | + 59308 [peter semant] Perl is used extensively for "corporate use" but there is nothing that I
| |     |   59310 [bulatz integ] i don't know ICON but SNOBOL is even less structured than Perl. Perl is definitely
| |     |   + 59313 [peter semant] Strange how large projects succeed without this then. Discipline is not
| |     |   | 59314 [bulatz integ] i don't think that perl is appropiate for large projects. maybe i must buy some more brain
| |     |   | 59315 [peter semant] Then clearly you lack experiance and no amount knowledge or opinion will
| |     |   | 59319 [bulatz integ] you compared perl to ruby or some other language? i think that ruby is definitely
| |     |   + 59320 [robertm spel] I agree on the needing discipline, but the discipline is more related to
| |     |   | 59332 [gsinclair so] I don't disagree, but I submit that managers often have real concerns that we
| |     |   + 59326 [austin halos] Strong typing does not impose discipline, any more than language-
| |     |     + 59333 [gsinclair so] It is often said that Java makes it difficult to write bad code.  It sort of
| |     |     + 59439 [bulatz integ] but noone do it. so, when language provide optional strong typing,
| |     |       59484 [austin halos] It does get used, and more often than you think -- any time you have
| |     + 59166 [billtj z.glu] Thanks for the clarification.  It is really comforting to read your
| |       + 59169 [ptkwt shell1] Well, that doesn't mean that no companies in the DC area are using Ruby.
| |       + 59173 [ahoward fsl.] same here (colorado),  but plenty of small businesses are all ears when the
| + 58706 [spoon dellah] It's been in vogue since release (which someone else in the list said
| | 58707 [rrytov entop] Well, my experience my help a bit though I don't know the task
| | + 58708 [mark.firesto] Heh.  It's a scripting language for Windows written by some dude at
| | + 58741 [harryo zip.c] This would be a good addition to the "Real World Ruby" wiki page.
| + 58710 [jim freeze.o] I have given two presentations on Ruby at my work. It was received much
| | 58758 [ptkwt shell1] However just to show that YMMV: I gave a presentation on Ruby to my group
| | 58760 [jim freeze.o] And it had nothing to do with Phil's abilities, no matter what he says. :)
| | 58772 [ptkwt shell1] Well, yeah, your presentation might have been a lot better ;-)  You
| | 58822 [jim freeze.o] Ooh, that is classic. :)
| | 58833 [austin halos] This is the wrong attitude to take -- management, for good or bad, has the ability to choose the tools that will be used in a production environment. Even if they are ultimately the wrong tools chosen for the wrong reasons.
| + 59107 [paul argelfr] If that's their concern, pick ruby over Java - It's not at all clear
|   59304 [peter semant] If you want long term stability then you want
+ 58693 [Ephaeton gmx] Heyas.
+ 58715 [leif.jantzen] You might try something like the following.  It has been tested on a sample
| 58719 [xrfang hotma] Thanks for the code. While reading your code, I remembered one thing I'm
| + 58738 [ted datacomm] Dang!  Ugly American idioms...
| | 58742 [russ freesof] 1. Don't tell them you are using Ruby (or mention any technology for
| | + 58762 [ptkwt shell1] That's certainly one strategy: if you think you can develop this app in
| | | 58795 [gsinclair so] Alternatively, take the approach that you'll save time in the long run by doing
| | + 58809 [robert_linde] Before I learned Ruby, I had a job as a 'Unix Tool Man', writing
| | | 58811 [ted datacomm] Well, it's been my observation that the "down and dirty" languages make it.  C is one of those -- it gives much freedom; Pascal (made for teaching students programming) is strongly-typed.  In other words, a pain.
| | + 58877 [xrfang hotma] 1. I've already mentioned that... :(
| |   58890 [GBanschbach ] I have found that convincing management is really more a matter of showing
| |   58900 [xrfang hotma] Actually, the BIGGEST problem for them now is only ONE: supportability.
| |   58904 [jim freeze.o] Like I said before: Program in ruby for 2 days and you will know the
| |   58906 [xrfang hotma] Jim,
| |   58910 [jim freeze.o] Agreed. Tell you what, why don't we form support company and charge folks who
| |   58921 [rrytov entop] What presents Unit Tests on Ruby planet? Does some library exist or you
| |   58923 [bruce codedb] Take a look at Test::Unit.
| + 58838 [leif.jantzen] You are quite right. However, the class library authors have ( sensibly
+ 58797 [bulatz integ] if THEY think that Java is better then THEY must write this code. WE
threads.html
top