141340-143678 subjects 141824-144425
Re: HighLine 0.4.0
141616 [vfoley@gm il] good job on the new release, I plan to use HighLine in an application I
+ 141618 [james@gr yp ] Did you check the TODO? :D
| + 141621 [andre@di ir ] Dunno about Windows but I think that using ruby-termios would be
| | 141691 [james@gr yp ] I'm playing around with termios over here, to see if it's a viable
| + 141626 [mrcode@ne ro] You can see that in my other response.
| | 141627 [logancapaldo] I think you have that a little backwards. unix is LF, and Mac is CR
| | 141631 [mrcode@ne ro] Yes, you are right. Hmmm, this is kind of confusing though. Does ?\n
| + 141888 [vfoley@gm il] Indeed, I read it just after I posted :) Sorry about that. However, I
| 141892 [james@gr yp ] I put in on the list. I'll definitely look into it.
| 141908 [vfoley@gm il] How did you handle the noecho thing on different platforms? I looked
| 141920 [james@gr yp ] I used pretty much what Ryan showed.
| 141939 [andre@di ir ] Hmm. Maybe keep stty as a backup mechanism then... try to require
| 141940 [james@gr yp ] That's an option, possibly.
| 142005 [kjana@dm la ] Uhm, is the following URL useful?
| 142385 [james@gr yp ] Yes, this helped a lot, thank you. (Sorry for my delayed response.)
+ 141623 [mrcode@ne ro] Especially if you can do it multi-platform (the above does not work on
+ 141635 [james@gr yp ] I have a question about this solution. You're stopping when you see
| 141638 [mrcode@ne ro] Nothing, by using getch I get every character and DOS/Windows doesn't do
| 141641 [james@gr yp ] Thanks.
| 141648 [mrcode@ne ro] I get the same result on Windows, so I suspect Ruby is doing some stuff
| 141651 [james@gr yp ] $ ruby -e 'system "stty raw"; p $stdin.getc; syst "stty -raw"'
| 141931 [discordantus] You might not want to use stty in that exact way. From the stty
| 141937 [james@gr yp ] Hey, that's great to know. Thanks.
| + 141942 [discordantus] It works on my webhost's Debian system. It seems it's just dumping and
| | 141944 [jeffm@gh st ] -a will list the current settings in human readable form, ie, on my
| + 141946 [discordantus] converting linefeeds and such. Here's the method I'm using in a
| 141983 [james@gr yp ] Thanks for the tips, but HighLine actually counts on this. :)
+ 141637 [james@gr yp ] Last question on this, I promise. Does Windows echo the carriage
Apache CGI and spawning another process
141633 [sera@fh an .] Hey all,
+ 141636 [james_b@ne r] Hack, off the top of my head, untested (but I may yet go try it)
+ 141816 [joost@ze ka ] You should probably close the $stdout (and possibly $stdin and $stderr)
tips on deployment/distribution, esp on OS X?
141634 [imifumei@im ] I'm developed an application with Ruby, and it uses Tk as well as
141642 [logancapaldo] RubyCocoa has a neat little wrapper that you can use to turn ruby
Re: Vacation - email me when I. is gone or people FINALLY stop responding to him
141647 [lists@be tr ] Too bad that scanning mail bodies for the last name doesn't
141649 [sera@fh an .] Depending on what sort of hooks you have for filtering: Emails usually
+ 141661 [mailing-list] The References header is useful as well,
| 141749 [caiot1@ib st] Nikolai, the "References" header is the only obvious way of doing it to
| + 141751 [michael.camp] Just as a datapoint, I simply made a filter to kill any email with
| + 141762 [mailing-list] Yes, I know. It was Francis Hwang who only mentioned the In-Reply-To
+ 141698 [lists@be tr ] My Procmail could be configured calling just some Ruby
141699 [andre@di ir ] There's gurgitate-mail
+ 141705 [glenn.parker] You could train your spam filter (I use POPFile) to flag Ilias-style
+ 142113 [dagbrown@LA ] There is! I use it for all my email. ;)
Problem with Math module in extension.
141652 [erne@po er a] I'm trying to do something real simple find the sin of an angle in an
+ 141653 [cmills@fr es] variation
| 141668 [erne@po er a] Actually this produces an incorrect answer for sin.
| 141821 [g_ogata@op u] In ruby, all functions -- even things that look like static member
| 141855 [erne@po er a] Thanks for the information. I still can't seem to get the syntax right
| + 141856 [decoux@mo lo] svg% cat aa.c
| + 141857 [ruby-ml@ma i] Quickly and untestedly you would do something like
+ 141861 [erne@po er a] Thanks everyone.
No Thing Here vs Uninitialized and RCR 303
141655 [cyent@xt a. ] I'm observing a general trend in the responses to RCR 303.
+ 141657 [chr_mail@gm ] You could ask for the creation of a separate "undefined" value similar
+ 141659 [dblack@wo bl] That pertains only to instance and global variables, and I don't
+ 141667 [james_b@ne r] nil doesn't 'mean' anything. Assorted code uses nil to express a
+ 141671 [gavin@re in ] ...
+ 141745 [lthiryidontw] I suppose it's easier to refuse an RCR than to change programming habits.
141746 [batkins57@gm] This isn't about changing programming habits. Having nil return nil
+ 141761 [john.carter@] You confirm what I am saying about the difference between "uninitialized
| + 141778 [batkins57@gm] b + 4
| + 141794 [dblack@wo bl] I'm not getting exactly what you mean by "mean". Do you mean there's
| 141799 [john.carter@] Well, that one is clearly a case of nil === "uninitialized"
| + 141801 [batkins57@gm] As I pointed out, Ruby already handles unitialized variables as a
| + 141820 [dblack@wo bl] Clearly I can't regard it as uninitialized, if I've just initialized
+ 141763 [james_b@ne r] When I see code samples arguing in favor of the status quo, I tend to
| 141813 [pit@ca it in] Could you describe the threading issue, maybe in form of some unit tests?
| 141836 [james_b@ne r] If you change the behavior of NilClass (e.g., NilClass.blackhole = true)
| 141962 [pit@ca it in] I don't know whether this would be useful, but you can use thread-local
| 141978 [james_b@ne r] You can change the workings of a singleton class (NilClass) such that it
| 141993 [pit@ca it in] class NilClass
| 141999 [james_b@ne r] Ah. Quite sweet.
+ 141859 [bsd.SANSPAM@] irb(main):001:0> file.log 'here is a bit of infromation'
141863 [batkins57@gm] What does that show?
141890 [bsd.SANSPAM@] Why two months later? If your method 'create_new_log_file' returns nil,
141891 [msparshatt@y] I think the point that Bill Atkins is trying to make is that if RCR 303
141952 [bsd.SANSPAM@] Ok, Bill Atkins is right. There is no point is accepting such an RCR,
Introducing Features of other Languages (was: Re: object reference handle (like perl's reference to scalar))
141660 [bob.news@gm ] "Dave Burt" <firstname.lastname@example.org> schrieb im Newsbeitrag
141788 [dave@bu t. d] I agree - arguments = input, return value(s) = output generally makes stuff
141806 [bob.news@gm ] "Dave Burt" <email@example.com> schrieb im Newsbeitrag
RACC - one click installer/cygwin package
141662 [jlsysinc@al ] I have both the one-click installer and also the cygwin package. What
141673 [nobu.nokada@] No, integrated is only racc runtime, which is used to run
142026 [jlsysinc@al ] okay.
142109 [nobu.nokada@] racc doesn't need a compiler, as ruby 1.8 already contains its
142126 [jlsysinc@al ] Yes, but.. ;-)
Limitations of eval
141665 [adelle@bu le] I have been using eval to execute code fragments that I fetch from a
141666 [dblack@wo bl] (shudder :-) But I'm sure you've heard all of that already :-)
+ 141726 [bob.news@gm ] "David A. Black" <firstname.lastname@example.org> schrieb im Newsbeitrag
+ 142619 [adelle@bu le] Don't worry, it's a highly experimental prototype of something that I don't
Dir.glob and File.fnmatch
141672 [thomas_leitn] I always thought that the arguments to Dir.glob(...) and
141914 [nobu.nokada@] Brace Expansion is different from Pathname Expansion.
141964 [p_bossi_AGAI] Yes, PickaxeII contains a better explanation than ri and effectively
142137 [thomas.leitn] Thanks for the answers! So I will stick to Dir.glob for the time being.
Re: [QUIZ] [SOLUTION] [LONG] [CONTAINS-MAZES ;)] Amazing Mazes (#31)
141692 [ruby.brian@g] Thank you for the quiz,
141770 [james@gr yp ] Brian, simply amazing. You're work is always a pleasure to look
Representing Undirected Edges (advice, please)
141693 [gavin@re in ] ...
+ 141696 [gavin@re in ] ...
+ 141700 [Ara.T.Howard] i think you must also add the concept of direction to path. for example, if i
| 141701 [Nuralanur@ao] ...
| 141874 [lukfugl@gm i] Though an incidence graph can work (and work quite well) for a simple
| + 141876 [gavin@re in ] for
| | + 141904 [Nuralanur@ao] ...
| | | 141915 [lukfugl@gm i] I think you misunderstood. The three paths weren't one each for each
| | | 141934 [gavin@re in ] Aye. My goal for this library is to first make it really clear (and
| | | 141995 [Nuralanur@ao] ...
| | | 142032 [lukfugl@gm i] Sorry about that. I have a tendency to do that. :) I'll think of
| | | 142049 [ruby-talk@le] As far as we are concerned, there's only one effective connection from
| | | + 142080 [mrcode@ne ro] But the shortest path between two songs may not always be the path through
| | | | 142108 [lukfugl@gm i] Actually, what Greg is saying is that if there's another song
| | | + 142188 [gavin@re in ] That's one particular solution to the Barrel of Monkeys quiz, and one
| | | 142197 [mrcode@ne ro] If you can do that in an elegant way, that would be really awesome. It
| | | 142209 [steven.jenki] I've been thinking for some time that a cool group project would be to
| | | + 142248 [tom@in oe he] Yup, that would be cool. That's similar to what I did with Tim Jones'
| | | | 142261 [Nuralanur@ao] ...
| | | | 142278 [lukfugl@gm i] Welcome aboard :) Don't take my last email wrong, I still like the
| | | + 142329 [bob.news@gm ] Same here. I once started with graph algorithms but got stuck in the
| | + 141913 [lukfugl@gm i] Yeah, I think I like that example even better (mine felt a little contrived).
| + 142124 [kig@mi fi in] Unless you handle the incidence matrix values as lists of edges.
+ 141702 [ptkwt@ar cn ] The thing that strikes me here is that you probably want to have an
+ 141812 [monora@gm il] Did you already take a look at RGL (http://rgl.rubyforge.org/rgl)? The
141834 [gavin@re in ] I hadn't, thanks :)
Singleton class terminology
141707 [hal9000@hy e] Just expressing my opinion here.
+ 141708 [ruby-ml@ma i] Yes, excellent question! I was thinking about just giving it
| 141753 [logancapaldo] Well this is a little long but how about "singleton method table"? (or
+ 141716 [blaumag@gm i] You're right. I think the terminology for what we now call "singleton
+ 141721 [dblack@wo bl] It wasn't supposed to remind one of "idiom". It's a separate use of
| + 141747 [matz@ru y- a] You can forget my words. If I adopt the new model,
| + 141775 [chr_mail@gm ] You are surely aware that we already have a module called Singleton
| + 141792 [hal9000@hy e] OK, I see. I didn't think of "idiosyncrasy," and I don't know
| 141800 [ruby-ml@ma i] There are two distinct connotations to that prefix which accounts for
+ 141755 [dblack@wo bl] What I do like about the "class" in "singleton class" is that it fits
| 141785 [chr_mail@gm ] Very, very nice point:-)
+ 141758 [halostatue@g] Thank you, Hal. This is much the same though that I've been having,
| 141767 [dblack@wo bl] I don't like "shadow" for this. Shadow suggests, to me, a light
| + 141769 [gavin@re in ] I like it for sort of the same reason - the instance has a 'shadow'
| + 141780 [mrcode@ne ro] I came up with "shadow class", but I think David makes some good points.
+ 141949 [martindemell] But in Ruby, a class is pretty much a place where method lookup is done,
141966 [flaig@sa ct ] Yes, I think Hal's remark is quite interesting -- if I am not mistaken, "class" is derived from the Latin word for "fleet" (classis), which in turn is derived from "callare", to put under one common designation. There is always the implicit connotation of multiplicity. Getting rid of the word "class" in this instance (no pun in10ded) could been advantageous. OK, it *is* a class, but an atypical one. (<= Suggestion *g*!)
142097 [daniel.amela] I'm still a sucker for selfclass.
The discovery of private e-mail, access to source (Was: [OG] [NITRO] - Mr. George Moschovitis...)
141712 [ jupp@gm .d ] Next month's National Geographic comes with a feature on a recently
141723 [ilias@la ar ] you should quote more precisely.
+ 141728 [mailing-list] You don't constitute the whole Ruby community, dude,
| 141739 [ilias@la ar ] I don't have to.
| 141757 [sera@fh an .] At the least, it probably makes _why quite nervous.
+ 142449 [ jupp@gm .d ] I did not attribute anything to you (there is no ':'). I only stated
Query about the top level object
141718 [gavri.fernan] "At the top level, we're executing code in the context of some
+ 141724 [mrcode@ne ro] p self # => main
| 141741 [chr_mail@gm ] Defining a (private) method at the "top" scope is equivalent to
+ 141732 [bob.news@gm ] "Gavri Fernandez" <email@example.com> schrieb im Newsbeitrag
Re: [ETYMOLOGY] - Sterile Classes / Sterile Meta Classe
141720 [dblack@wo bl] (Actually it was "idioclass".)
[ANN] reference 0.5 (was Re: object reference handle (like perl's reference to scalar))
141725 [eric_mahurin] I just released the code that has already been discussed here
editor dog fight - newbie question
141729 [speechexpert] Dear group,
+ 141733 [kyu@co so e-] Are you using GNU emacs? Try www.xemacs.org, install that and then untar
+ 141736 [batkins57@gm] Make sure you're using ruby-mode and font-lock-mode. Also make sure
[ANN] RJournal 0.1.1
141737 [vfoley@gm il] Well, I finally did it, I released my first open source software, <a
141738 [mrcode@ne ro] Congratulations! :)
Analysis of IORCC Entries?
141744 [mrcode@ne ro] So, I was been browsing http://iorcc.dyndns.org/ and looking at the 2005
+ 141760 [florgro@gm i] I've done these and will post them tomorrow if possible. It would be
| 141765 [james@gr yp ] I, for one, am very interested in reading anyone's work on this.
| 141830 [florgro@gm i] Here we go, then: http://flgr.0x42.net/deobfu/
+ 141772 [ezra@ya im -] I'd like to read about it.
OT: Small RCR 303 type Joke...
141764 [john.carter@] I have just realized that I have, in all seriousness and in good faith,
+ 141777 [matt@te hn r] Is Nothing Sacred? (Gahan Wilson cartoon)
| 141787 [john.carter@] require 'Nothing'
+ 141798 [glenn.parker] If it makes you feel better, I've been giving that thread the "Ilias
[OT] RedHanded Down?
141766 [johnwilger@g] I haven't been able to connect to http://redhanded.hobix.com for a
141768 [batkins57@gm] It's happening here too. It seems all of why_'s sites are having the
141852 [robert.mcgov] They appear to be back up
Stats comp.lang.ruby (last 7 days)
141776 [bsd.SANSPAM@] Stats comp.lang.ruby (last 7 days)
141781 [jim@fr ez .o] When this was first published, I thought, wow this is cool.
+ 141782 [mrcode@ne ro] I had the same thought. In fact I need to post more so I can get in the
| + 141784 [jim@fr ez .o] LOL.
| + 141795 [hal9000@hy e] Heh heh. Could we have a "bottom 10" list as well?
+ 141786 [dblack@wo bl] You caught me! I'll try to stop it!
+ 141789 [james_b@ne r] Others might be thinking they should spend more time working.
+ 141796 [bsd.SANSPAM@] Yes, agreed.
+ 141797 [james_b@ne r] That's right, Ara. We're on to you!
+ 141808 [bob.news@gm ] "Dr Balwinder S Dheeman" <bsd.SANSPAM@cto.homelinux.net> schrieb im
141809 [jeffm@gh st ] Anyone care to give the new classifier a go at this? See if it can
+ 141814 [bob.news@gm ] A funny idea to play with but for real world application I prefer to use
+ 141819 [dblack@wo bl] Please, let's not get into the judging, ranking, hierarchy, scoring
+ 141831 [james_b@ne r] +5
+ 141926 [jeffm@gh st ] Two rules for stats and rankings,
Re: Ruby/DL SendInput
141779 [mrcode@ne ro] I tried this when I saw the original email, but couldn't get it to work.
141811 [news.home.nl] Thanks for the responses / example code. Will try and see if I can get
141867 [usenet1@no p] Code looks great! Seems really easy to map the C types to Ruby. Is there
Re: [QUIZ] [SOLUTION] Amazing Mazes (#31)
141783 [dbatml@gm .d] Hy,
Strange segfault on Linux with test-unit
141793 [djberg96@ho ] Ruby 1.8.2 (built with --enable-pthread)
141839 [decoux@mo lo] Don't copy proctable.so in the directory sys ?
+ 141943 [djberg96@ho ] You're right. Actually, I added a File.delete("sys/proctable.so")
+ 141989 [pbrannan@at ] Because you don't know the answer or you don't know how to explain?
Re: RJournal 0.1.1
141803 [vfoley@gm il] I found this Test::Unit::Mock thing
141833 [mrcode@ne ro] The Ruby version may seem a bit more complex because the nature of Ruby
Hang when updating Gem source index
141805 [nick-gmane@t] Just installed Ruby 1.8.2-15 (win32 version) on a new Windows XP pc.
+ 141807 [assaph@gm il] a. Updating the Gems source index can take a long time. Try and wait a
+ 141822 [chadfowler@g] browser? It's at http://gems.rubyforge.org/yaml.Z.
141840 [nick-gmane@t] Yes, I actually started it updating, went to dinner, and then came back
File.utime, Windows and Ruby 1.8
141817 [mike.pub@le ] time = Time.local(2000, 1, 1, 0, 0, 0)
+ 142664 [polyergic@gm] I see the same thing, using CIFS to a samba server. I just changed
+ 142669 [nobu.nokada@] It seems like related to DST.