45579-47085

45385-46843 subjects 45702-124366

Regular Expression question
45579 [nojgoalbyspa] All,
+ 45580 [james@ja es ] Do you mean, for example, given
+ 45581 [james@ru yx ] Do you mean, for example, given
+ 45582 [ned@bi e- om] There is a Perl module that generates regexes given a word list.
| + 45583 [jfreeze@fr e] Yeah. Here is my program that matches a list of words.
| | 45588 [cjh_nospam@m] def find_regex(str)
| + 45584 [michael_s_ca] There's some code in emacs elisp to do this too.  (The info for the function
+ 45587 [guaracybm@ig] Ok, information and code :)
  45591 [nojgoalbyspa] Wow Thanks!

Ruby Hosting - 3 Questions
45585 [jeffc@co ec ] [1] Is there an inexpensive place to host my Ruby backed website?
+ 45586 [jim@fr ez .o] PHP 4.2.2 *
+ 45590 [x@ic im nk .] Define inexpensive. :)
| 45599 [michael_s_ca] I'm not familiar with how to do this (but would be willing to learn),
+ 45627 [nojgoalbyspa] Free hosting for Ruby.  It requires a banner on every page, but it would be

A LIFE TIME OPPORTUNITY
45592 [nkonuko3@re ] Auditing and Accounting Unit.

YAML4R 0.26 tests fail
45593 [dsafari@pa a] Has anyone else tried the YAML4R library? I seem to get 3 failures when
+ 45596 [dsafari@pa a] I just downloaded version 0.26 what I thought was a week ago, seems there is
+ 45597 [dsafari@pa a] Hmm, nope version 0.30 seems worse, I now get 13 tests failing in
  + 45607 [ned@bi e- om] Per the author's recommendation: don't use the tests/basic.rb. The new
  + 45625 [yaml4r@wh th] Hey, thanks for pickin up the library.  It's a minefield right now, as it's

Ruby hosting services
45595 [tobiasreif@p] Please list good Ruby hosters @

RE: [ANN] OpenSSL for Ruby 0.1.2
45598 [djberge@qw s] Michal,
45606 [m.rokos@sh c] There is some in README file. There is also some WiKi page for

Vim - versions < 6.0
45605 [djkea2@mu ca] Are any vim users particularly interested in me maintaining backwards
+ 45608 [rubytalk@bo ] yeah, I'm using both versions - 5.6 & 6.1 - does that count? :)
| + 45611 [pbrannan@at ] Paul
| | 45616 [rubytalk@bo ] Nope, thanks a lot. That's exactly the page I dreamt about. :)
| + 45613 [djkea2@mu ca] Regards,
+ 45609 [Ephaeton@gm ] Yes !
  45612 [djkea2@mu ca] Well, you're all spoil-sports aren't you :-)

ruby-dev summary
45610 [ttate@kt ja ] The publication of the summary of this week got suspended,
45669 [tobiasreif@p] Thanks again for this great service :)

Getting the 1.7.2 source
45615 [djberge@qw s] I'm trying to download and install the latest 1.7.2 source via CVS based on
+ 45617 [decoux@mo lo] Select a mirror, then goto in the directory ruby/snapshots
| 45618 [djberge@qw s] Ok - got it.  Thanks.
+ 45619 [lyle@us rs s] is a snapshot of the latest CVS sources for Ruby 1.7.2.
+ 45622 [nobu.nokada@] Are you inside a firewall?
  45626 [djberge@qw s] Oops - yes.  That's probably it.  I got the source, though.

ANN: Linux Devices for Ruby (0.1.1)
45620 [matju@sy pa ] * module Linux::SoundDSP renamed to Linux::SoundPCM (with alias)
45651 [ptkwt@sh ll ] Cool.  I was wondering why we hadn't heard much from you lately, Mathieu.

Seattle.rb meeting tomorrow (7/30)
45621 [pate@ey er a] Just a quick reminder that we'll be meeting tomorrow night at 7:00 PM at
+ 45623 [ned@bi e- om] What and where is SU?
| 45682 [pate@ey er a] Seattle University, it is in the neighborhood of Swedish Hospital.
+ 45624 [Dave@Pr gm t] Talking about Seattle: anyone fancy getting together this coming
  + 45645 [pabs@pa lo r] Out of curiousity, what's up with all the Ruby activity in the northwest
  | + 45646 [elanthis@aw ] Heh.  Seattle area is *full* of computer "activities."  Seat of
  | + 45650 [ptkwt@sh ll ] You left just as the PDX.rb is getting going - if you had only been
  + 45683 [pate@ey er a] I'm certainly interested (the big question is can I convince my wife to be
  + 45713 [hal9000@hy e] Wish I could be there for that.
    45715 [Dave@Pr gm t] The slides on their own don't realy get the message across. Perhaps an
    45728 [hal9000@hy e] Well, just do an audio recording of it...

Wiki FAQ
45629 [nojgoalbyspa] I wonder what people think to having the Ruby FAQ be in wiki form?
45631 [Dave@Pr gm t] I believe this was discussed a while back (although it might have been
45793 [nojgoalbyspa] Fair enough.  Didn't realize it had been discussed - probably missed it.

[ANN] YAML4R 1/3 (0.33) -- More tests, closer compliance, thanks for the patches
45630 [yaml-core@wh] Quick follow-up to the last message.  YAML4R 1/3 is out.  Changes from 0.30

include Module::Constants - opinion question
45632 [djberge@qw s] I recently installed the syslog module and I noticed that it does something
45634 [lyle@us rs s] include Syslog
45636 [djberge@qw s] How do I do that for a core class, though?  If I want to shorten the IO

(long) need advice to improve code
45635 [wmwilson01@h] Full code follows at the bottom.

A very basic tail -f implementation
45639 [djberge@v5 h] I've been playing with a Ruby implementation of the *nix 'tail' command.  Here's
45681 [pbrannan@at ] I have an implementation of tail -f that looks similar, except it
45685 [djberge@qw s] I guess to truly imitate the *nix tail -f command, it should read the 10
45768 [djberge@qw s] Well, it looks like Florian Frank went and released his own version of tail
45828 [flori@ea es ] This is funny: I don't know if it is a coincidence. I've released it
45905 [jfh@ci e. fl] - Check for rotation by checking for changes in the inode number
+ 45966 [djberge@qw s] This is proving difficult in practice because, as the Pickaxe says, the
| 45971 [jfh@ci e. fl] ...
| 45974 [cjs@cy ic ne] Right. You also ought to check the device number, in case the file
| 45976 [djberge@qw s] Heh.  I came across that while reading some usenet posts on a similar
+ 46024 [flori@ea es ] Good idea. This should handle the rotation-by-moving case much faster.
| 46059 [jfh@ci e. fl] This makes sense to me.
| 46123 [flori@ea es ] def last(n = 0, bufsize = 4096)
+ 46055 [pbrannan@at ] numlines += 1 if getc() == ?\n
| 46060 [jfh@ci e. fl] Hmmm...I haven't run across "?\n" before -- what does that do?
| + 46061 [djberge@qw s] I agree.  I don't think the *nix tail command even allows you to tail from a
| | 46064 [jfh@ci e. fl] Say you wanted to tail 100,000 lines before your tail -f . Given 80 chars
| + 46062 [1028732200.6] irb(main):005:0> ?A
| | 46065 [jfh@ci e. fl] Then it's much better :->
| | 46067 [djberge@qw s] Ok.  I had it in my head that no one would tail more than 4k anyway, though
| | + 46069 [jfh@ci e. fl] I do it all the time :->
| | + 46071 [ned@bi e- om] file.stat.blksize
| + 46068 [lyle@us rs s] ?\n --> 10
+ 46063 [jfh@ci e. fl] log.next { |line|

(광고) PDF 문서관리 및 변환솔루션 출시 !!
45640 [YAKSUK1@ly o] ...

Anonymous CVS access to cvs.ruby-lang.org
45643 [rich@in oe h] I am having problems connecting to cvs.ruby-lang.org with a complaint

[ANN] FormatR 1.06
45644 [rubel@cr c. ] A new release of FormatR is out, 1.06. FormatR provides perl-like

Ruby Weekly News
45647 [Dave@Pr gm t] Ruby Weekly News: 07/29/2002

Code Challenge Revisted
45652 [transami@tr ] makes sense. but the approach didn't fit. rather i took a differnt more
45653 [transami@tr ] this does not require the array of [self, :#{meth}]. self will suffice.

Virus Alert
45656 [security@po ] ...

ALERT -  GroupShield ticket number OA4_1028013819_LEVIATHAN_1 was generated
45658 [NAIITACTICSL] The attachment was quarantined from the message and replaced with a text

ALERT -  GroupShield ticket number OB3_1028013820_LEVIATHAN_1 was generated
45659 [NAIITACTICSL] The message was quarantined and replaced with a text informing the recipient

Naming a Thread
45661 [Laurent.Jull] I don't know if this is a question or a feature request. In the course
45663 [decoux@mo lo] Just use a thread local variable
45673 [Laurent.Jull] This is an option of course. But in my case I'm writing a graphical
45674 [decoux@mo lo] class Thread

Struggling with session
45662 [ontologist_2] I have still not been able to make my peace with

base64
45665 [beyerlin@ma ] hey rubys,
45668 [matz@ru y- a] Use pack.
45671 [shirai@p1 p.] Or just use base64 module.

function reference?
45672 [beyerlin@ma ] hey again rubys,
45679 [Dave@Pr gm t] You could download 'ri' from the RAA and have it interactive, or

PL/Ruby for postgresql
45675 [mjais@we .d ] postgresql supprts PL/Python, PL/Perl and PL/Tcl
45676 [decoux@mo lo] Just look in RAA
45677 [mjais@we .d ] thank you. I looked there but obviously I was blind

Procs and scope (function pointers)
45678 [jim@fr ez .o] I have a class that that has several
+ 45680 [Dave@Pr gm t] You could try
| 45717 [jim@fr ez .o] instance_eval(&func(x)) # would I pass the argument like this?
| 45766 [nobu.nokada@] No, it means calling func with an argument and its result would
+ 45711 [pit@ca it in] could you tell us why you want to use Proc objects in class
  45718 [jim@fr ez .o] Yes, I think that is what I want.

Style question
45684 [michael_s_ca] Is there an accepted standard as to when to use {} vs do/end?
+ 45686 [hal9000@hy e] The nearest thing to a standard is this
+ 45801 [jim@fr ez .o] I personally like the {} for the simple reason that it is easy
  + 45838 [michael_s_ca] This has been my thought as well.  Too, coming from a c/C++/Java
  | 45844 [gunnar.ander] Style issues like this define the feel of a language, but
  + 45852 [ned@bi e- om] Note that matchit will also let you bounce between e.g. do/end pairs
  | 45853 [gsinclair@so] What's really unfortunate, though, is that Vim has some killer features
  | + 45855 [jim@fr ez .o] I decided some time ago not to be a slave to the language, but
  | | + 45856 [hal9000@hy e] I'll certainly agree with you on the tabs. I know that
  | | + 45908 [alwagner@tc ] This is fine if you do not expect to share your code with others who choose
  | |   45909 [jim@fr ez .o] My experience is that 99% of people use mixed tabs and spaces.
  | |   + 45911 [rawlins@cs u] For some reason that seems to be the default in a lot of installations of
  | |   + 45918 [batsman.geo@] That's what expand and unexpand are for :-)
  | |   + 45997 [tom.hurst@cl] Vim users may notice that the filetype plugin for Ruby sets up exactly
  | + 46847 [dossy@pa op ] If you can't indent a do-end block by starting at the "do" line and
  |   46937 [gsinclair@so] the
  |   46946 [dossy@pa op ] True.  Vim's = (reindent) doesn't Do The Right Thing for me and
  |   + 46948 [pmak@an me l] [1, 2, 3].each do |x|
  |   | 46950 [dossy@pa op ] I _did_ have an older version of ruby.vim, so I replaced mine
  |   | 46956 [dsafari@pa a] That is interesting. When I type :set I get a list of indentkeys and an
  |   | 46995 [dossy@pa op ] Interesting.  $VIM/indent/ruby.vim wasn't being loaded.
  |   | 47005 [gsinclair@so] 1. You can use :scr[iptnames] to find out which scripts/plugins have been
  |   | 47019 [dossy@pa op ] Thanks.
  |   | 47085 [gsinclair@so] Make sure you have "filetype indent on" (and "filetype plugin on") in your
  |   + 46955 [dsafari@pa a] Hmm...indents fine for me with either of your examples above. I have vim
  + 45901 [charleshixsn] [1, 2, 3].each
  | + 45902 [rawlins@cs u] e.
  | + 45915 [hal9000@hy e] me.
  |   45919 [jim@fr ez .o] It used to bother me to see code in C/C++ that was
  |   45920 [hal9000@hy e] And Niklaus Wirth used to do it in Pascal (which
  |   45959 [meier@me st ] But by forcing a way ruby avoids any flamewar about how to do it ;-)
  + 46846 [dossy@pa op ] Let me ask a related question:  is there a accepted standard
    + 46852 [alwagner@tc ] But I admit to changing my mind occasionally.  I like having all of loop
    | 46860 [james@ja es ] I think of that first line as scaffolding for the loop, and the rest as the
    + 46861 [dblack@ca dl] That's the one I like for multi-line ones :-)  I personally don't like

Ruby Language Q's
45688 [justinj@mo i] After several rewrites of my GC memory code and implementing most of the
+ 45689 [Dave@Pr gm t] This would be nice if it can be done without impacting performance a
| + 45690 [decoux@mo lo] You must change the API for extensions
| | + 45699 [Dave@Pr gm t] I don't think so. The change I was discussing was that
| | | + 45701 [decoux@mo lo] unreadable for me, and I've used APL :-)
| | | | 45705 [Dave@Pr gm t] Smalltalk? Rather than
| | | | + 45709 [hgs@dm .a .u] This looks nice.  Only thing is the havoc one could write
| | | | + 45792 [mikkelfj-ant] You should also be aware of the syntax for possible type annotations that
| | | | + 45814 [matz@ru y- a] Removing commas make programs look more like Smalltalk, but it will
| | | |   + 45907 [pabs@pa lo r] If I attempted to quantify Ruby's "style", I would probably paraphrase
| | | |   + 46850 [dossy@pa op ] Matz's next book is "Feng Shui for Computer Programming Languages".
| | | + 45704 [pbrannan@at ] I see little advantage to doing this, since the function still has to
| | |   45725 [hal9000@hy e] 1. I think the commas are a separate issue.
| | + 45706 [pbrannan@at ] What about leaving the current API as is, and adding new methods to the
| |   45708 [decoux@mo lo] This is not the problem. When you write an extension, you use the same API
| |   + 45720 [pbrannan@at ] Not necessarily.  There can be a transition period in which not all
| |   | 45722 [decoux@mo lo] ??????????
| |   | 45731 [pbrannan@at ] Are you asking my why I am saying this or what I mean by Init_*?
| |   | + 45733 [pabs@pa lo r] He's saying changing the Init_* methods is a complete change of the Ruby
| |   | + 45813 [decoux@mo lo] If you really think that you can add named parameter with modifying *only*
| |   + 45739 [justinj@mo i] The idea was that it wasn't a language change as such, just a way of passing
| |   + 45741 [justinj@mo i] The idea was that it wasn't a language change as such, just a way of passing
| |   + 45749 [justinj@mo i] The idea was that it wasn't a language change as such, just a way of passing
| |   | 45756 [michael_s_ca] Is it just me, or is anyone else getting a multitude of duplicate
| |   + 45751 [justinj@mo i] The idea was that it wasn't a language change as such, just a way of passing
| |   + 45819 [justinj@mo i] The idea was that it wasn't a language change as such, just a way of passing
| + 45691 [michael_s_ca] Would this be a required feature, or optional?   Would I be REQUIRED
|   45700 [transami@tr ] function arguments are equivalent to arrays, hence
+ 45692 [pbrannan@at ] Have you considered using Spirit (http://spirit.sourceforge.net/)?
+ 45694 [dblack@ca dl] I wonder if I could interject a sort of philosophical question as a
| + 45697 [Ephaeton@gm ] Well, see what happened to lisp, got blown up, changed, incompatible,
| + 45721 [michael_s_ca] I'm not sure this is relevant, but the gnu c++ compiler allows a
| | 45726 [pbrannan@at ] In the case of C++, there is a C++ standard and a committee who composed
| + 45734 [justinj@mo i] That is a very good question.  I think Matz's implementation is Ruby with
| | 45827 [dblack@ca dl] But that just takes us back to the question: what is "Ruby"?  In other
| | 45832 [justinj@mo i] Your quite right - until somebody creates another implementation....
| + 45735 [justinj@mo i] That is a very good question.  I think Matz's implementation is Ruby with
+ 45696 [transami@tr ] i think matz himself once suggested he wish he hadn't put all those perl
| + 45707 [ashida@se s.] I'm relatively new to Ruby, so pardon me if I'm not making much
| + 45738 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| + 45740 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| + 45745 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| + 45746 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| | 45752 [hal9000@hy e] better
| + 45747 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| + 45748 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| + 45750 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
| + 45818 [justinj@mo i] The goal is to reduce back down to the pure language.  Practically, I need
+ 45714 [matz@ru y- a] Good to hear that!
| + 45716 [tobiasreif@p] I think so too.
| + 45730 [meier@me st ] C).
| | + 45732 [transami@tr ] philp,
| | | 45754 [Dave@Pr gm t] But syntactically that's compatible: it's currently acceptable Rby to
| | | 45758 [hal9000@hy e] Are you saying you *disapprove* of this choice
| | | 45759 [Dave@Pr gm t] Sorry - my typing's getting worse. I disapprove of '=', approve of
| | + 46047 [curne@cu no ] As you remark yourself, this would break the syntax of passing the value
| + 45816 [r2d2@ac .u u] I like Python's way of not distinguishing between named and "unnamed"
|   + 45817 [decoux@mo lo] ruby know the name of the parameters otherwise it will not possible to
|   + 45821 [justinj@mo i] You already have the parameter symbols in the method definition.
|   | 45822 [nobu.nokada@] Theoretically impossible.  Which method is really called is
|   | 45825 [justinj@mo i] Yes, of course.  I'm still stuck in static compiler thinking.
|   + 45823 [justinj@mo i] You already have the parameter symbols in the method definition.
+ 45820 [justinj@mo i] Arghh!! How embarrasing!
+ 46849 [dossy@pa op ] How much syntactic toothpaste and mouthwash would be required to
  + 46973 [justinj@mo i] Well, the main thing here is that the '?' and ':' are part of the
  | + 46982 [justinj@mo i] Apologies (yet again) for the multiple posts.
  | + 47011 [dossy@pa op ] irb(main):014:0> "".size ? true : false
  |   47016 [decoux@mo lo] in `1?true:false' `1' is interpreted as a Fixnum
  |   47024 [dossy@pa op ] Ahh.  But then, constants aren't method calls, so
  |   + 47027 [decoux@mo lo] Forgotten the method Kernel#Integer :-)
  |   + 47029 [dblack@ca dl] irb(main):023:0> def WeirdName? ; puts "hi" ; end
  |   | 47038 [dossy@pa op ] Didn't forget, just puzzled by the breakage of "all initially capitalizezd
  |   + 47032 [batsman.geo@] class Test
  + 46977 [justinj@mo i] Well, the main thing here is that the '?' and ':' are part of the
  + 46978 [justinj@mo i] Well, the main thing here is that the '?' and ':' are part of the
  + 46980 [justinj@mo i] Well, the main thing here is that the '?' and ':' are part of the
threads.html
top