45579-47085

45385-46843 subjects 45702-47288

^ Regular Expression question
45579 [nojgoalbyspa] All,
+ 45580 [james jamesb] Do you mean, for example, given
+ 45581 [james rubyxm] Do you mean, for example, given
+ 45582 [ned bike-nom] There is a Perl module that generates regexes given a word list.
| + 45583 [jfreeze free] 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 codeci] [1] Is there an inexpensive place to host my Ruby backed website?
+ 45586 [jim freeze.o] PHP 4.2.2 *
+ 45590 [x ichimunki.] 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 red] Auditing and Accounting Unit.

^ YAML4R 0.26 tests fail
45593 [dsafari para] Has anyone else tried the YAML4R library? I seem to get 3 failures when
+ 45596 [dsafari para] I just downloaded version 0.26 what I thought was a week ago, seems there is
+ 45597 [dsafari para] Hmm, nope version 0.30 seems worse, I now get 13 tests failing in
  + 45607 [ned bike-nom] Per the author's recommendation: don't use the tests/basic.rb. The new
  + 45625 [yaml4r whyth] 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 qwes] 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 mugca] Are any vim users particularly interested in me maintaining backwards
+ 45608 [rubytalk box] yeah, I'm using both versions - 5.6 & 6.1 - does that count? :)
| + 45611 [pbrannan atd] Paul
| | 45616 [rubytalk box] Nope, thanks a lot. That's exactly the page I dreamt about. :)
| + 45613 [djkea2 mugca] Regards,
+ 45609 [Ephaeton gmx] Yes !
  45612 [djkea2 mugca] Well, you're all spoil-sports aren't you :-)

^ ruby-dev summary
45610 [ttate kt.jai] 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 qwes] I'm trying to download and install the latest 1.7.2 source via CVS based on
+ 45617 [decoux moulo] Select a mirror, then goto in the directory ruby/snapshots
| 45618 [djberge qwes] Ok - got it.  Thanks.
+ 45619 [lyle users.s] is a snapshot of the latest CVS sources for Ruby 1.7.2.
+ 45622 [nobu.nokada ] Are you inside a firewall?
  45626 [djberge qwes] Oops - yes.  That's probably it.  I got the source, though.

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

^ Seattle.rb meeting tomorrow (7/30)
45621 [pate eylerfa] Just a quick reminder that we'll be meeting tomorrow night at 7:00 PM at
+ 45623 [ned bike-nom] What and where is SU?
| 45682 [pate eylerfa] Seattle University, it is in the neighborhood of Swedish Hospital.
+ 45624 [Dave Pragmat] Talking about Seattle: anyone fancy getting together this coming
  + 45645 [pabs pablotr] Out of curiousity, what's up with all the Ruby activity in the northwest
  | + 45646 [elanthis awe] Heh.  Seattle area is *full* of computer "activities."  Seat of
  | + 45650 [ptkwt shell1] You left just as the PDX.rb is getting going - if you had only been
  + 45683 [pate eylerfa] I'm certainly interested (the big question is can I convince my wife to be
  + 45713 [hal9000 hype] Wish I could be there for that.
    45715 [Dave Pragmat] The slides on their own don't realy get the message across. Perhaps an
    45728 [hal9000 hype] 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 Pragmat] 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 qwes] I recently installed the syslog module and I noticed that it does something
45634 [lyle users.s] include Syslog
45636 [djberge qwes] 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 v55h] I've been playing with a Ruby implementation of the *nix 'tail' command.  Here's
45681 [pbrannan atd] I have an implementation of tail -f that looks similar, except it
45685 [djberge qwes] I guess to truly imitate the *nix tail -f command, it should read the 10
45768 [djberge qwes] Well, it looks like Florian Frank went and released his own version of tail
45828 [flori eavesd] This is funny: I don't know if it is a coincidence. I've released it
45905 [jfh cise.ufl] - Check for rotation by checking for changes in the inode number
+ 45966 [djberge qwes] This is proving difficult in practice because, as the Pickaxe says, the
| 45971 [jfh cise.ufl] This is a multi-part message in MIME format.
| 45974 [cjs cynic.ne] Right. You also ought to check the device number, in case the file
| 45976 [djberge qwes] Heh.  I came across that while reading some usenet posts on a similar
+ 46024 [flori eavesd] Good idea. This should handle the rotation-by-moving case much faster.
| 46059 [jfh cise.ufl] This makes sense to me.
| 46123 [flori eavesd] def last(n = 0, bufsize = 4096)
+ 46055 [pbrannan atd] numlines += 1 if getc() == ?\n
| 46060 [jfh cise.ufl] Hmmm...I haven't run across "?\n" before -- what does that do?
| + 46061 [djberge qwes] I agree.  I don't think the *nix tail command even allows you to tail from a
| | 46064 [jfh cise.ufl] 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 cise.ufl] Then it's much better :->
| | 46067 [djberge qwes] Ok.  I had it in my head that no one would tail more than 4k anyway, though
| | + 46069 [jfh cise.ufl] I do it all the time :->
| | + 46071 [ned bike-nom] file.stat.blksize
| + 46068 [lyle users.s] ?\n --> 10
+ 46063 [jfh cise.ufl] log.next { |line|

^ (광고) PDF 문서관리 및 변환솔루션 출시 !!
45640 [YAKSUK1 lyco] <HTML>

^ Anonymous CVS access to cvs.ruby-lang.org
45643 [rich infoeth] I am having problems connecting to cvs.ruby-lang.org with a complaint

^ [ANN] FormatR 1.06
45644 [rubel crhc.u] A new release of FormatR is out, 1.06. FormatR provides perl-like

^ Ruby Weekly News
45647 [Dave Pragmat] Ruby Weekly News: 07/29/2002

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

^ Virus Alert
45656 [security pop] ...

^ 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 moulo] 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 moulo] class Thread

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

^ base64
45665 [beyerlin mag] hey rubys,
45668 [matz ruby-la] Use pack.
45671 [shirai p1jp.] Or just use base64 module.

^ function reference?
45672 [beyerlin mag] hey again rubys,
45679 [Dave Pragmat] You could download 'ri' from the RAA and have it interactive, or

^ PL/Ruby for postgresql
45675 [mjais web.de] postgresql supprts PL/Python, PL/Perl and PL/Tcl
45676 [decoux moulo] Just look in RAA
45677 [mjais web.de] thank you. I looked there but obviously I was blind

^ Procs and scope (function pointers)
45678 [jim freeze.o] I have a class that that has several
+ 45680 [Dave Pragmat] You could try
| 45717 [jim freeze.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 capitain] could you tell us why you want to use Proc objects in class
  45718 [jim freeze.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 hype] The nearest thing to a standard is this
+ 45801 [jim freeze.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 bike-nom] 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 freeze.o] I decided some time ago not to be a slave to the language, but
  | | + 45856 [hal9000 hype] I'll certainly agree with you on the tabs. I know that
  | | + 45908 [alwagner tca] This is fine if you do not expect to share your code with others who choose
  | |   45909 [jim freeze.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 panopt] If you can't indent a do-end block by starting at the "do" line and
  |   46937 [gsinclair so] the
  |   46946 [dossy panopt] True.  Vim's = (reindent) doesn't Do The Right Thing for me and
  |   + 46948 [pmak animegl] [1, 2, 3].each do |x|
  |   | 46950 [dossy panopt] I _did_ have an older version of ruby.vim, so I replaced mine
  |   | 46956 [dsafari para] That is interesting. When I type :set I get a list of indentkeys and an
  |   | 46995 [dossy panopt] 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 panopt] Thanks.
  |   | 47085 [gsinclair so] Make sure you have "filetype indent on" (and "filetype plugin on") in your
  |   + 46955 [dsafari para] 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 hype] me.
  |   45919 [jim freeze.o] It used to bother me to see code in C/C++ that was
  |   45920 [hal9000 hype] And Niklaus Wirth used to do it in Pascal (which
  |   45959 [meier meiste] But by forcing a way ruby avoids any flamewar about how to do it ;-)
  + 46846 [dossy panopt] Let me ask a related question:  is there a accepted standard
    + 46852 [alwagner tca] But I admit to changing my mind occasionally.  I like having all of loop
    | 46860 [james jamesb] I think of that first line as scaffolding for the loop, and the rest as the
    + 46861 [dblack candl] That's the one I like for multi-line ones :-)  I personally don't like

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