2428-2757 subjects 2836-3055
^ Re: MAILGATE: comp.lang.ruby
2625 [schneiker ju] I am guessing not since I didn't see this on the ruby-talk mail list (which
2626 [matz netlab.] I'm planning gateway the list and newsgroup, so that one can choose
2637 [nosuzuki e-m] I am writing gateway scripts between NetNews comp.lang.ruby and
^ OT: Japanese names
2639 [Dave thomase] Every now and then, I'd like to give credit to the writer of some
2640 [matz netlab.] The latter. But relax. See answer 2.
2641 [gotoken math] Some Japanese guys (including me) write their family name in upcase
2642 [Dave thomase] Context free names! Gotta love it.
^ Ruby Toplevel
2643 [Dave thomase] Is there any way to express the Ruby toplevel in Ruby itself (without
2644 [matz netlab.] I don't think there is.
2645 [Dave thomase] I was trying to write a section on the toplevel environment for the
2646 [matz netlab.] I see what you mean. I was misunderstanding you.
2647 [Dave thomase] True enough. What I'm trying to illustrate though is how that binding
2648 [matz netlab.] Bindings can only be used for the optional second argument of eval().
2649 [Dave thomase] Agreed, but using a binding is cheating, because I wanted to show the
^ [1.5] eval / module_eval
2650 [decoux moulo] I'm still trying to understand the security mechanism of ruby.
2652 [matz netlab.] eval() evaluates a string under the current context. module_eval()
^ Append alias for Array.append?
2651 [aleksi.nieme] Some reason there's no Array.append? Or, let me rephrase, should there exist
+ 2653 [matz netlab.] Python's append works like this.
| 2666 [quinn envy.u] Actually, the reason python's append works like that is deprecated hysterical
| 2679 [schneiker ju] different
+ 2654 [hideto-i rr.] I don't know whether Array should has the `append' method.
2655 [aleksi.nieme] exist
2656 [aleksi.nieme] Good point.
+ 2657 [andy Toolshe] It does, and I get finger cramps from all the typing that is
+ 2701 [hideto-i rr.] I'd add Array.shrink. But some native English speakers might think
+ 2702 [andy Toolshe] I think push and pop are fine, or if you wanted the opposite
| + 2704 [hgs dmu.ac.u] But prepend means append to the beginning. It does not undo an append.
| | 2715 [Dave thomase] I'm not sure I should be weighing in here, but I really don't like
| | + 2716 [aleksi.nieme] Are you saying here that we should make the basic classes as simple as
| | + 2723 [schneiker ju] Wait! Stop right there!
| | 2724 [Dave thomase] I happen to agree 100% (particularly if you all let _me_ choose the
| | 2727 [schneiker ju] prefer
| + 2707 [hideto-i rr.] Now I've come to understand.
| 2708 [thucdat hotm] What about chop or drop instead of prepend?
| 2720 [schneiker ju] Absolutely.
+ 2709 [matz netlab.] I'll vote against it. You cannot tell which end `shrink' remove
| 2713 [aleksi.nieme] This is true and something I can't value easily. It's great to have you
| 2714 [aleksi.nieme] I'm not writing this as a opposite argument. In a same spirit, this is a
| 2744 [matz netlab.] How about 'b[2,3] = a.slice!(-3,3)'?
+ 2726 [schneiker ju] # From: Aleksi Niemel<email@example.com>
2729 [hideto-i rr.] Yes, I agree.
2736 [andy Toolshe] FYI, it's not on my ISP yet either.
^ Emacs mode?
2658 [jesse prinz-] is there such a thing as a ruby mode for Emacs? Searching the FAQ and
2659 [andy Toolshe] In the distribution, under the directory misc, you'll find ruby-mode.el.
2661 [jesse prinz-] Oops. Thanks. Somehow I missed that one.
^ win OLE / eRuby
2660 [Andy Toolshe] I'm looking for a few more short examples of win32ole. Is anyone
+ 2662 [crouton duel] If you know apache web server, you can invoke eruby via accessing
| + 2663 [aleksi.nieme] Great example, thanks!
| | 2664 [crouton duel] <%=foo%> is short form of <%print foo%>
| | + 2665 [crouton duel] Let me add a small explanation.
| | + 2703 [crouton duel] Let me add a small explanation.
| + 2718 [andy Toolshe] Umm, I'm a little confused. There is no eruby binary in the
| + 2719 [fit0298 fite] eruby is an implementation of eRuby, too ;-)
| + 2722 [crouton duel] # Sorry for my previous multiple mail. The queue was not flushed.
+ 2676 [nakahiro sar] May I ask this question in Japanese mailing list?
| 2682 [andy Toolshe] Please, by all means!
| 2734 [nakahiro sar] I forwarded the article to ruby-list to get a serious application
| + 2735 [crouton duel] $ tar xzf mod_ruby-0.1.7.tar.gz
| | 2739 [andy Toolshe] Wow, thanks. I'll give it a look.
| | 2776 [nakahiro sar] Thanks to Ishii-san, new example has arrived in ruby-list.
| | 2778 [matz netlab.] I think it's good to document them separately. README.en in eruby
| + 2771 [m_seki mva.b] ERb sample code is here.
+ 2795 [m_seki mva.b] Table.rhtml writes a table of alternate white and gray rows.
2807 [nakahiro sar] Godd example from developer. :)
^ The reference manual is now online
2667 [Dave thomase] Thanks to Mike Hendrickson at Addison-Wesley, we're please to announce
+ 2668 [schneik us.i] # Thanks to Mike Hendrickson at Addison-Wesley, we're please to announce
| 2669 [Dave thomase] Thanks! The check's in the mail ;-)
| 2694 [hipster xs4a] This reference is most definitely a Good Thing[tm]! Thanks a lot.
| 2700 [Dave thomase] The revision number is a great idea, and I'll look at adding it on the
| 2705 [DDouthitt cu] This is a MIME message. If you are reading this text, you may want to
| 2712 [Dave thomase] Let's tread gently here. It takes something of a leap of faith for a
+ 2671 [nakahiro sar] Ruby HotLinks maintainer.
2673 [Dave thomase] Yes - that will become the definitive site once we get it fully
+ 2680 [schneiker ju] announce
| 2681 [schneiker ju] ...
+ 2683 [Dave thomase] Oops - as Andy pointed out, the link should be
+ 2691 [schneiker ju] (FYI: Reposted to comp.lang.ruby from ruby-talk ML.)
+ 2733 [nakahiro sar] Links in this page take me to non-#80 site...
2743 [Dave thomase] This is a bug.
^ [OT] Name endien (Re: Re: Append alias for Array.append?)
2670 [matz netlab.] In Japanese, family name always comes first, then given name comes
2674 [Dave thomase] I'm trying to document all the various taint checks in the
2678 [Dave thomase] \item Can't manipulate a directory whose name is a tainted string.
+ 2685 [decoux moulo] * only for setuid, setgid script (see init_ids)
| + 2687 [matz netlab.] Too late for "-T" option at /tmp/test.pl line 1.
| + 2688 [decoux moulo] moulon% cat a.pl
| | 2690 [Dave thomase] Is the answer simply to defer all path and RUBYOPT processing until
| | + 2692 [schneiker ju] (Reposted from ruby-talk ML to comp.lang.ruby.)
| | + 2693 [matz netlab.] I gues it is. I'll move adding RUBYLIB and "." to the load path after
| | 2697 [schneiker ju] (Reposted from ruby-talk ML to comp.lang.ruby.)
| + 2689 [Dave thomase] Good stuff
+ 2686 [matz netlab.] Here's (imperfect) list.
^ new to ruby
2677 [mugoi mail.u] a perl background and was hoping i could pick ruby up rather
2695 [matz netlab.] Let's face it. Not yet. Perl is close to _that_ popularity.
2698 [schneiker ju] If you were to receive one of the McArthur "Genius Award" grants (or
2699 [matz netlab.] Yes. The only problem is that I'm the last man to be a genius ;-)
2725 [schneiker ju] I think that's an implementation detail (tm), albeit a big one, mainly due
^ Fw: Re: The reference manual is now online
2696 [schneiker ju] (FYI: Reposted to comp.lang.ruby from ruby-talk ML.)
2706 [aleksi.nieme] My (daily :) contribution to the sudden burst of traffic: I start yet
2710 [matz netlab.] (1) ++ and -- are NOT reserved operator in Ruby.
2711 [aleksi.nieme] so
2717 [aleksi.nieme] Before we RAA have stable tag everywhere on Library/Database section is
+ 2721 [schneiker ju] already
+ 2746 [matz netlab.] Some friends in Japan made prototype for RDBC(Ruby Database Connection).
2747 [aleksi.nieme] I don't have any databases at my current location, and at home only unused
2756 [matz netlab.] OK, I'll ask them. The program I have now has no documentation, plus
2763 [alwagner tca] I need a db interface. I would like to try it also.
2768 [matz netlab.] What DBMS do you want to connect? Although RDBC is still a toy,
^ Public/Private clarification
2728 [alwagner tca] I have read the documentation and am now browsing sample code to learn
2730 [Dave thomase] 'printf' is a module function in Kernel, and the Kernel module is
2742 [alwagner tca] Thanks, Dave. That helped a lot. And yes, it is neat.
^ irb buggette
2731 [Dave thomase] The script irb.rb assumes that ruby is in /usr/local/bin.
2732 [matz netlab.] I'll fix it. In fact I've already fixed it.
2737 [andy Toolshe] 1) It came that way
2738 [andy Toolshe] Apologies all, that last message wasn't supposed to go out to the list -- I
^ irb install
2740 [Andy Toolshe] Matz is going to include irb with the next Ruby distribution,
+ 2741 [aleksi.nieme] It's surely is an important tool. I vote for inclusion.
| 2749 [gotoken math] Well, it seems to be difficult to decide the timing of each Ruby devel
| 2750 [Dave thomase] One of the real strengths of Perl is
| 2751 [andy Toolshe] Excellent! Will you consider adding mod_ruby to install_app as
| 2755 [matz netlab.] No. I think mod_ruby should follow Apache's rule, since it is an
| + 2758 [andy Toolshe] Fair enough.
| | 2777 [nakahiro sar] Agreed.
| | 2779 [matz netlab.] eruby? I don't think so. RDtools? Probably.
| | 2808 [nakahiro sar] Agreed.
| | 2809 [Dave thomase] My feeling is that rd should be included because some form of
| | 2810 [nakahiro sar] (Again and again...) Agreed.
| | 2811 [Dave thomase] The following message is a courtesy copy of an article
| + 2766 [Dave thomase] If there's one application I think _should_ be included, it's rdtool -
+ 2745 [matz netlab.] I'm going to pack irb in next distribution. Probably I will add new
+ 2748 [aleksi.nieme] Sounds great!
+ 2761 [alwagner tca] I am confused. I installed 1.4.4 and it seems to include irb. irb.rb
2767 [matz netlab.] I was speaking of installing it by make.
^ RE: Array.pop and documentation [was: Append al ias for Array.append?]
2752 [aleksi.nieme] Fun!
+ 2753 [decoux moulo] It's normal, it is only in 1.5 :-)
+ 2759 [matz netlab.] Because I'm living 7 hours ahead of you all the time.
| 2760 [Dave thomase] Do you do lottery numbers?
| + 2762 [alwagner tca] It'll do more than save duplicating some effort. It'll help me make
| + 2769 [matz netlab.] No. In addition, from unknown reason, it takes hours for information
+ 2783 [schneiker ju] # In message "[ruby-talk:02714] Re: Append alias for Array.append?"
2785 [aleksi.nieme] Conrad,
2791 [schneik us.i] # Conrad,
2796 [alwagner tca] I hope it's OK for a newbie to comment here. Why complicate things with
2798 [aleksi.nieme] Asking such questions isn't bad thing to do! There might be others in the
+ 2799 [schneik us.i] # I hope it's OK for a newbie to comment here. Why complicate things with
+ 2802 [alwagner tca] You seem to be using the word "slice" in a context where "truncate" is
2805 [schneiker ju] Sort of looks like COBOL done right and made worth keeping around.
^ More code browsing questions
2764 [alwagner tca] I see some class definitions contain "include" and "extend" statements.
2765 [Dave thomase] Both include and extend take one or more modules and add their methods
2772 [alwagner tca] ===========================================================
+ 2773 [matz netlab.] 'include' adds features (methods) to instances of the class TkAfter.
+ 2775 [Dave thomase] In Ruby, class definitions are executable code, not just lame old
2786 [alwagner tca] Aha! Ruby is beginning to smell more and more like Smalltalk. I like
2770 [Andy Toolshe] I'm trying to install mod_ruby 0.17 with the latest Ruby from CVS,
2774 [matz netlab.] Hmm, Makefile.RB should find the place for libruby.a or libruby.so
2780 [decoux moulo] This is a 1.5, no ?
2781 [decoux moulo] Forget this, this is just stupid :-(
^ Re: comp.lang.ruby (Was: Re: Append alias for Array.append?)
2782 [schneiker ju] Any reputable ISP should automatically be adding entries for the so-called
^ Re: Ruby vs. The Others
2784 [schneiker ju] Well, Perl still helps feed me, so I still have some appreciation for it. It
2790 [matz netlab.] I haven't get comp.lang.ruby yet.
^ Time Conversions
2787 [DDouthitt cu] This is a MIME message. If you are reading this text, you may want to
+ 2788 [Dave thomase] require 'parsedate'
+ 2789 [matz netlab.] One-liner? here it is.
2792 [DDouthitt cu] This is a MIME message. If you are reading this text, you may want to
+ 2794 [aleksi.nieme] This message is in MIME format. Since your mail reader does not understand
+ 2797 [Dave thomase] Converts the array into a list of parameters.
^ After-the-fact installation questions
2793 [alwagner tca] I probably should have asked this before I installed. I unpacked
2815 [matz netlab.] Do you mean you want to tell ruby to search for ~/tmp/ruby-1.4.4/ext?
2816 [alwagner tca] ========================
2820 [matz netlab.] Ruby does not search files recursively. You must specify paths
^ rdtool output libraries
2800 [Dave thomase] This weekend I'm in the throes of documenting rdtool, so expect a
2803 [toshirok yb3] Questions about RD and RDtool is always welcomed.:-)
^ Couple of minor rdtool bugs
2801 [Dave thomase] 1. rd2man-lib.rb is missing the line
2804 [toshirok yb3] Thank you!
^ Fw: Ruby vs. The Others
2806 [schneiker ju] ...
^ Fw: sorta OT (ISPs and comp.lang.ruby, browsing ruby-talk mail list without signup.)
2812 [schneiker ju] without signup.)
^ Re: sorta OT (ISPs and comp.lang.ruby, browsing ruby-talk mail list without signup.)
2813 [Dave thomase] The following message is a courtesy copy of an article
^ www.rubycentral.com - Reference
2814 [neumann s-di] I (perhaps) found some errors in the Reference at www.rubycentral.com.
+ 2817 [Dave thomase] To convert LaTeX to XML, the first stage is to tag the matching
+ 2819 [matz netlab.] It's available only in Ruby 1.5.x. For 1.4.x, use find.rb.
^ Bug in Dir
2818 [Dave thomase] ruby 1.5.3 (2000-05-10) [i686-linux]
^ Re: Bug in Dir (PR#3)
2821 [matz netlab.] Oops, fixed by the patch below.
^ A question on Dir["**"]
2822 [Dave thomase] The following message is a courtesy copy of an article
2824 [matz netlab.] Could you forward this message to the newsgroup please?
2826 [Dave thomase] The following message is a courtesy copy of an article
2827 [matz netlab.] Could you mention irb, not rbc, please?
2828 [Dave thomase] Of course.
^ rbc.rb under 1.5
2823 [Dave thomase] rbc doesn't catch the new Script error exception at line 130. This
2825 [matz netlab.] Basically yes. But this patch may help.
2829 [aleksi.nieme] =begin
2832 [Dave thomase] Did you try file#tell?
^ Ruby's inherit OS dependency bugs me
2830 [aleksi.nieme] As much as I happen to like (love) Unix environment I don't like
2839 [matz netlab.] Every language relects its designer's view and philosophy. For me,
2842 [schneiker ju] (Posted to comp.lang.ruby and ruby-talk ML.)
2873 [matz netlab.] The following message is a courtesy copy of an article
^ obj = new BeautifulInstantiation
2831 [aleksi.nieme] I'm back from a small trip as you probably have noted :). This is just small
2837 [matz netlab.] Although you're perfectly free to choose your style, I don't vote for it.
^ 'configure' missing from latest checkout
2833 [Dave thomase] Is the intention that users run 'autoconf' directly? If so, it's
2838 [matz netlab.] It's only for development version. configure was removed because it
^ Re: file.size, OS dependency and Ruby look killer?
2834 [aleksi.nieme] No, didn't feel intuitive (so I didn't find it), but it seems to work
2835 [Dave thomase] OK, but then look at the code of the interpreter, or the code of