150426-155618
150260-155358 subjects 150583-152510
Re: require each time new [irc::bot]
150426 [ulmo@va ar a] Tanks to the two who helped me with load(). itĄs working fine, and i can
150430 [dave.m@em il] charset="utf-8"
burn a cd from a ruby script
150427 [webwesen@gm ] is there a way to burn a cd from a ruby script on Windows?
150432 [james_b@ne r] Have you tried File.copy?
150467 [rcoder@gm il] There is, IIRC, a Cygwin port of the *NIX 'cdrtools' package, which
150481 [webwesen@gm ] that's what I was lloking for. thanks!
enum collection of constant values
150439 [drosihn@gm i] I'd like to have a set of constants for a class, where their values
+ 150446 [ jimm@io co ] Use symbols. They are similar to strings, but every use of the same symbol
| 150449 [pit@ca it in] ... and for a set of values use the class Set.
| 150453 [ jimm@io co ] I'm not sure I understand why you suggest the use of Set. Am I missing an
| 150464 [pit@ca it in] I'm sorry that you didn't understand me. I also think that having
| 150466 [ jimm@io co ] That makes perfect sense. Thank you.
+ 150452 [phurley@gm i] SB_MODA, SB_MODB, SB_MODC = *0..2
| 150457 [phurley@gm i] Oops I had not read your whole message. To handle the binary one, I
| 150459 [phurley@gm i] Oh yeah you can take out my puts statements too :-)
+ 150454 [Ara.T.Howard] class methods are your friend
| 150480 [phurley@gm i] I like the Enum module, but if I include it into the 'main' scope, I need to
| 150482 [Ara.T.Howard] hmm. this is a bit shorter
| + 150483 [vjoel@pa h. ] Why would you want the mc = self.class option ?
| | 150487 [Ara.T.Howard] isn't this what the op wanted?
| + 150512 [drosihn@gm i] Wow. Very nice. Works great in my script. Thanks!
| + 150520 [drosihn@gm i] I changed the method names to enum_constants and enum_bit_constants.
+ 150456 [ruby.brian@g] bschroed@black:~/svn/projekte/ruby-things$ cat enum.rb
+ 150458 [ysantoso-rub] SB_ENUM = {:none => 0, :good => 1, :bad => 2, :logic_err => 4}.freeze
setting up ruby on os x 10.2
150451 [julian@co et] I just downloaded ruby and did the configure, make, make test and
150460 [ jimm@io co ] Julian,
+ 150465 [rcoder@gm il] Actually, if I remember correctly, /usr/local/bin *is* in the default
+ 150472 [peloke.ruby@] What was the error?
+ 150511 [julian@co et] /usr/local/bin appears to be in my path.
150526 [discordantus] There is no reason to delete Apple's 1.6.x Ruby at all. Just make sure
150546 [julian@co et] /sw/bin /sw/sbin /usr/local/bin /bin /sbin /usr/bin /usr/sbin /usr/
+ 150552 [r_mueller@im] I'm still not sure, if gem has install rails or not. The Non-existence of
| 150553 [julian@co et] I haven't installed rails yet.
+ 150558 [threeve.org@] the /sw/bin and /sw/sbin concern me. Do you use fink? Did you ever
150560 [julian@co et] Yes, I use fink. No I never installed ruby with fink (unless it was a
151576 [bg-rubytalk@] You might have better luck using DarwinPorts. Once it's installed
Ruby Kerberos libs?
150470 [rcoder@gm il] It's been such a long time since we had a thread like this on c.l.r.,
+ 150471 [jfh@ci e. fl] I've been too lazy to actually make a library, so I just use the pty and
+ 150522 [prakash.diby] Sounds a good idea.I mite be interested to write something like this.
150605 [rcoder@gm il] We use Kerberos for authentication to a number of services, (printing,
150673 [prakash.diby] Good idea to start with.I got introduced to Kerberos thru a a mobile
Strange behavior with constants
150476 [batkins57@gm] ...
150479 [matz@ru y- a] Constant assignment is done in the context determined at compile time,
Jedit code formatter?
150485 [Peter.Fitzgi] ...
+ 150486 [Mail@Jo as H] yes
+ 150488 [belorion@gm ] Check out http://www.jedit.org/ruby/. Among other things (ie the nice
150489 [Peter.Fitzgi] Yes, I've been using the Ruby plug in ... But I'm looking for any code
+ 150491 [belorion@gm ] My mistake, when you said code formatter I thought syntax
| 150493 [mrcode@ne ro] VIM will. But if you've never used VIM it has quite a learning curve. But
| 150525 [clbustos@su ] I learned, but I come back to Jedit, and emacs....
| 150540 [chneukirchen] Emacs can do it too. :-)
+ 150747 [rob.02004@gm] The Ruby jEdit plugin can format code as you type it. To do this set
writing id3v2 tags
150490 [SimonKroeger] as the subject may suggest i'm trying to write id3v2 tags of mp3 files.
+ 150496 [tom@in oe he] although one of them is just a wrapper for id3v2.
| 150498 [SimonKroeger] with your link i get 2 hits: MP3 Retracker is just a wrapper (as you
| 150504 [tom@in oe he] Argh, sorry, I should have checked both projects closer.
+ 151284 [meta@po ox c] <URL:http://www.pobox.com/~meta/>
151293 [SimonKroeger] Thank you mathew,
QBXML anyone?
150492 [khaines@en g] There's nothing on RAA or Rubyforge, but on the offhand chance that someone is
Ruby script to post to a typo blog?
150494 [vfoley@gm il] Has anyone written a small script/library to post to a typo blog? I
+ 150508 [hal9000@hy e] As for me, I'd like to use BloGTK (or I think I'd like to try it)
| 150517 [nohmad@gm il] I had been working on it, but currently not working.
+ 150523 [bitserf@gm i] Not work? (I'm no Emacs user, so I can't test :P)
+ 150542 [chneukirchen] Maybe see http://www.emacswiki.org/cgi-bin/wiki/CategoryJournaling
[RCR] array or with non-array
150495 [neoneye@gm i] Sometimes wish that [3, 5, 13] | [8] can be written as [3, 5, 13] | 8
+ 150499 [matz@ru y- a] Too much conversion sometimes makes troubles, or hides troubles, for
| 150503 [neoneye@gm i] Hehe.. that was fast. Thanks many times.
| 150505 [matz@ru y- a] They are fragile. Don't assume they will behave same forever.
+ 150502 [eric_mahurin] Are you suggesting this or saying it is bad?
| 150506 [matz@ru y- a] Usually using duck types, for example "to_str" for string-like
| 150519 [eric_mahurin] Having the the method take any object that implements the to_s
| + 150535 [matz@ru y- a] I know but it is a matter of cost both efficiency and implementation.
| | 150575 [eric_mahurin] Right now, it probably covers 100%. I think it is hard to
| | + 150576 [matz@ru y- a] But you need to convince its usefulness before someone implement it.
| | + 150597 [dblack@wo bl] class != type. Type is at the heart of duck-typing; class isn't :-)
| | 150615 [eric_mahurin] Huh? Where do you get that? Duck-typing is about not caring
| | 150616 [dblack@wo bl] Class is irrelevant, but you'd be well-advised to care about what the
| | 150628 [eric_mahurin] Whatever your definition of type is, a method should not care
| | + 150634 [mrcode@ne ro] It seems to me that much of this encouragement to use duck-typing comes
| | + 150643 [dblack@wo bl] I guess it usually involves method arguments, though only indirectly
| + 150537 [twifkak@co c] Uhh... erh?
| | + 150538 [twifkak@co c] Oops. Guess I should proofread.
| | + 150545 [dblack@wo bl] puts array
| + 150547 [dblack@wo bl] You can define #to_str on your object to get Regexp#match to accept
| 150559 [eric_mahurin] This doesn't really help in the polymorphism department. This
| 150565 [dblack@wo bl] I think it's quite different, certainly in appearance and to some
+ 150573 [michael.camp] Why not [2, 1, 3, 4] or [1, 3, 2, 4] or [1, 3, 4, 2] here? Arrays have
| 150574 [matz@ru y- a] It's random. It uses Hash inside.
+ 154679 [mailing-list] Why not just use Array#<<? It works fine, is unambiguous, and neither
154689 [chneukirchen] << is destructive, + copies, | copies but doesn't add it if it's
154697 [mailing-list] Ah, of course; silly me.
[ANN] Arachno Ruby 0.6 for Windows
150497 [mailinglists] i'm happy to tell you that there is a new 0.6.0 release of the Arachno Ruby IDE
+ 150500 [the_mindstor] #: Lothar Scholz changed the world a bit at a time by saying on 8/2/2005 11:51 PM :#
+ 150513 [hipertracker] It looks excelent but it is lacks utf-8 support... :(
+ 150514 [hipertracker] It looks excelent but it lacks utf-8 support... It cannot display correctly
| 150524 [mailinglists] Not yet, but FOX 1.6 is coming closer and so does full unicode
+ 150530 [mailinglists] I just updated it to 0.6.1 as there were two bugs introduced.
155586 [christoph.st] Hey lothar!
155587 [Tim.Ferrell@] Try this: http://www.ruby-ide.com/ruby/download.php#linux'
155612 [ruby@ml ic m] Hmmm... You mean, the page where it (still) says "version 0.5.6"? :-/
155618 [mailinglists] Yes. 0.5.6 is still the latest for Linux.
Re: Arachno Ruby 0.6 for Windows
150501 [demetriusnun] Hey Lothar, great news. Downloading 0.6 right now! ;-)
rubygems error
150516 [julian@co et] ...
150705 [chadfowler@g] crashing, so I wonder if
RMagick problem
150527 [joevandyk@gm] The following Rails/Ruby code gives me this error: "Zero-length blob
150637 [cyclists@nc ] Well, it works for me. Here's my attempt to reproduce the problem.
150640 [joevandyk@gm] Yeah, I tried to do that test last night and it worked fine.
150676 [joevandyk@gm] Here's my image model. Perhaps that will give someone some insight.
150686 [joevandyk@gm] I'll be damned. Moving
[proto] dea installer, your opinions
150528 [dave.m@em il] charset="us-ascii"
150529 [r_mueller@im] Nice idea to use a gui!
150531 [dave.m@em il] charset="iso-8859-1"
150533 [r_mueller@im] damn :)
150543 [dave.m@em il] charset="iso-8859-1"
Problems with debugger.
150544 [olczyk2002@y] ruby 1.8.2 (2004-12-25) [i386-mswin32]
+ 150548 [olczyk2002@y] I forgot. I also have the problem that emacs does not have any menu
| 150567 [pat.eyler@gm] to start the debugger? You'll need to edit your .emacs to add them,
+ 150566 [pat.eyler@gm] Does this happen for all Ruby programs you try, or just this
symbols in C extensions
150549 [p.capriotti@] Is there a better (i.e. faster) way to create a symbol in a C
+ 150550 [ruby.brian@g] You can get the symbol value from a string within C code by using
| 150592 [ptkwt@ar cn ] Also, to speed things up in cases where you'll need to use the same
+ 150551 [rmagick@gm i] ID2SYM(rb_intern("my_symbol"))
DRb and method_missing?
150554 [khaines@en g] You have a class that defines method_missing. Some set of the functionality
150644 [drbrain@se m] This has come up a couple of times in the past month and a half...
10.2.8 and rubygems
150556 [julian@co et] Okay I just did a package install () of the Jaguar (10.2.8) ruby. It
151522 [chadfowler@g] What's your ruby -v?
151629 [julian@co et] 1.8.2
151746 [chadfowler@g] (you said "1.8.2")
151821 [julian@co et] Yup, that's right. I did say 1.8.2. (<quizzical look>).
RUDL and segfaulting
150557 [nornagon@gm ] When I try to use RUDL, after working around the rubygems problem, I
150568 [tom@in oe he] I ran into some odd behavior with RUDL a while back; it sort of went
150690 [nornagon@gm ] Hmm, that seems not to work.
David Heinemeier Hansson wins Google-O'Reilly Open Source Hacker Award
150561 [james_b@ne r] Saw this on the Rails dev list, but not (yet) here.
+ 150563 [curt@hi bs c] +100
+ 150627 [mvondung@gm ] Seconded -- good job, David! Awesome achievement. :)
Closures [was Re: Populate <select> in .rhtml]
150562 [gavin@re in ] FWIW, I believe that Martin uses the term "closure" incorrectly on
+ 150564 [gavin@re in ] 1) I can't count.
+ 150682 [daniel@br ck] Gavin,
Deploying Ruby on a Windows Network
150577 [brian.takita] I would like to deploy the One-click version (== ruby-mswin32 I
150610 [batkins57@gm] ...
+ 150619 [brian.takita] Bill, thank you for the reply.
| 150635 [curt@hi bs c] /S /D=<install dir>
| 150638 [chadfowler@g] -y, --include-dependencies Unconditionally install the required
+ 150624 [curt@hi bs c] Also, some registry keys are set to associate *.rb and *.rbw with the
Re: array or with non-array
150578 [vikkous@gm i] You need this to be able to do fancy parsing/lexing in ruby.
150580 [matz@ru y- a] It's good to hear it's not impossible. Although I'm not agree very
ruby-dev summary 26468-26661
150581 [ttate@tt ky ] Here are recent ruby-dev summaries.
+ 150598 [navindra@cs ] I like it! Looks much more uniform and consistent with function
| + 150599 [Daniel.Berge] Blech. It's no cleaner, consistent or uniform to me. Ruby's problems
| + 150636 [george.mosch] Couldn't agree more. I like this! Perhaps the notation could be further
| + 150711 [dblack@wo bl] I assume you mean method syntax. But why is that important? Until
| + 150736 [matz@ru y- a] lambda is an anonymous function, so that it requires full syntax of
| | 150749 [transfire@gm] If lambda === Method (minus context), I don't think he would be joking.
| | 150819 [transfire@gm] I suprised no one's picked up on this.
| | + 150824 [matz@ru y- a] The meaning of above code is not obvious for me at all, besides its
| | | + 150832 [transfire@gm] Read as "each do n of i ... end" such that "n of i" is the block name
| | | + 150833 [transfire@gm] Hmm.. read as "each do n of i ... end". But if the syntax conflict
| | + 150838 [florgro@gm i] [:a, :b, :c].each as n(i) do
| | 150863 [transfire@gm] That'll work. Fits in well with the "with" version too. And really if
| + 150823 [ezra@ya im -] I think one of the first things that attracted me to ruby is the {|
| 150825 [matz@ru y- a] Don't worry. The block syntax will not be changed. Never.
| 150831 [jimfreeze@gm] Ok, that's good to hear. So, if a new lambda syntax is created,
| 150862 [transfire@gm] My concern with this is admittedly a matter of wishful thinking, but I
+ 150601 [Daniel.Berge] deliver
| 150606 [vjoel@pa h. ] handle
| 150612 [transfire@gm] Instead of another method like send, which does exactly what normally
+ 150613 [transfire@gm] meth(x,y) -> (a,b) {
| 150618 [jimfreeze@gm] What about scope? This notation makes me think that
| 150647 [transfire@gm] That's a good point.
+ 150710 [dblack@wo bl] I'm not clear on what problem or shortcoming this addresses. Also,
+ 150715 [jamis@37 ig ] IIRC, part of the problem with the || syntax is that it makes it very
| + 150717 [ruby.brian@g] Then why don't we use two different delimiters, e.g. (,) which would
| | + 150718 [dblack@wo bl] ...
| | | 150719 [ruby.brian@g] { () (a) }
| | | + 150728 [dblack@wo bl] ...
| | | | 150732 [ruby.brian@g] Why should you write it like that. If there is no starting ( there is
| | | | 150782 [gavin@re in ] ...
| | | + 150729 [dblack@wo bl] ...
| | | | 150734 [ruby.brian@g] Just for the protocol, I'm also very happy with the way blocks work
| | | + 150730 [eric_mahurin] That doesn't sound bad and is consistent with "def". But, it
| | | 150834 [nobuyoshi.na] Default values can be very long beyond new lines, if it is a
| | | 150889 [eric_mahurin] When I said ";" or newline, the newlines I'm talking about are
| | | 151169 [nobuyoshi.na] Agree for the former, but not for the later. I think it
| | + 150723 [mailing-list] I don't understand why we can't retain the use of vertical bars. Is
| + 150740 [chneukirchen] I have no clue about the Bison grammar underlying Ruby, but can't you
| 150742 [matz@ru y- a] It would be great if it's possible. But unfortunately I don't have
| + 150777 [chneukirchen] Neither do I...
| | 150789 [jimfreeze@gm] It was brought up today at lunch by Hal
| | 150794 [dblack@wo bl] x(a,b) {|y, z(=2)| ... }
| | 150796 [jimfreeze@gm] As long as we are being noisy in our thinking, I'm pretty sure
| | + 150800 [mrcode@ne ro] I agree. I like this one more than most of the other suggestions. In fact,
| | + 150818 [transfire@gm] It may seem simple enough but its horrible. I think maybe this should
| | 150821 [dblack@wo bl] Sorry for the "horrible" suggestion, but I think we are all discussing
| + 150830 [ezra@ya im -] I think this looks the best to me.
| + 150926 [surrender_it] jus to notice: there is a language named SuperCollider[1] which by some
| + 150951 [james@gr yp ] That makes it seem like a very small sacrifice then. It's an edge
| 150956 [james@gr yp ] Now that I've read on, I understand that this is for lambdas only and
| 150959 [eric_mahurin] In the 1.9 I tried, the new syntax that few people like works
+ 150820 [ezra@ya im -] +100
just saying hi
150582 [mccarthyjame] just got added to the mailing list & saying hi.
150586 [james_b@ne r] Welcome!
150589 [mccarthyjame] na, I've been used it for my project last year (cgi, ick) & then didnt
threads.html
top