131831-133039

131659-132516 subjects 132042-132688

gem-newbie's first attempt...
131831 [wybo@se va y] Attempting local installation of 'fxri'
131833 [martin.anker] installed, which are required for fxruby. I don't know which
131841 [wybo@se va y] Attempting local installation of 'fxri'
131842 [martin.anker] You need fox 1.2
131858 [wybo@se va y] I tried fox-1.2.13.tar.gz : same result (pointing to fxruby 1.2.3)

[ANN] FreeRide 0.9.3 - The Free Ruby IDE
131838 [laurent@mo d] Version 0.9.3 of FreeRIDE has been released and is available for download!

[ANN] RubyToDot
131843 [martin.anker] Ah, this was a productive weekend.

[Q] include shell script in my RubyGems package
131844 [kwa@ku at -l] I want to include a shell script into bin/ directory.

communicate with named pipe
131849 [jsli@ic .a .] I am a newbie of this mailing place but I want to draw a gui for other
131870 [wmorgan-ruby] If the C++ program is creating the pipes, you can simply open them as

Lock on some special file reading within XML-RPC
131862 [pterjan@li u] I was having a timeout in a client/server program using xml-rpc under
131871 [wmorgan-ruby] This is a known problem with no solution, only workarounds.
131872 [pterjan@li u] Thanks for the explanation and URL

YAML/RedCloth Question
131863 [mikeleonard@] I'm very new to Ruby, so appy-polly-loggies in advance if the answer to
131866 [jamis_buck@b] Use triple line breaks to indicate paragraph breaks. It's just the way
131894 [ruby-talk@wh] Unless you use a literal block.
131896 [jamis_buck@b] Gah! Now *that's* something I wish I'd known six months ago. Would

Modules and classes have a 'load' private method?
131864 [ay1204@qa i.] If I do a 'class C; end; C.load' I get something about a private
131865 [flgr@cc n. e] It's in all objects because Object includes Kernel. See Kernel#load.
131869 [ay1204@qa i.] Ah... good to know :-)

[ANN] CAST -- Ruby's C parsing dog.  Woof.
131867 [g_ogata@op u] What Is

CGI strange behaviour
131868 [jvalencia@lo] I have a set of ruby cgi scripts, that works when trying in localhost.

Re: [SOLUTION] [QUIZ] 1-800-THE-QUIZ (#20)
131876 [ruby@br an s] i once again found the time to do the ruby quiz. I liked the quiz
131877 [ruby@br an s] This version loads the dictionary a lot faster (3 times as fast as the old
131998 [jordi@bu st ] Must be something wrong with my old iBook, because here it takes
132033 [ruby.brian@g] you found a bug. Your number makes my code enter into an infinite
132035 [ruby@br an s] Thanks to Jordi who found a testcase that broke my code I reworked the solution. Now I use a different approach to skipping numbers. I create the possible skips for a given number, ignore the skipped numbers, search a real solution for the rest and reinject the skipped numbers into the solution.
132097 [lmarlow@ya o] ...
132171 [james@gr yp ] Just FYI, I get some pretty unusual output when I run this on the quiz
132180 [lmarlow@ya o] ...

[ANN] rblex 0.0.1 - parser/lexer for ruby source
131878 [ruby-lists@l] ...

Re: Kwartz-ruby 2.0.0-beta2 - a language independed template system
131883 [kwa@ku at -l] is
131887 [james.cromwe] Kwartz-java are now being developed.
131927 [kwa@ku at -l] Reason1. Ruby-C binding or PHP-C binding is too hard for me to

Including problems
131884 [thedcm@gm il] I have a file (index.rb) that includes head.rb. head.rb has a class
131888 [ruby@br an s] If you are inside of another modules namespace, maybe you'd need to directly address the Page class you want. Otherwise, please try to cut down the code to a minimal example and post it here.
131892 [vjoel@PA H. ] This is sending the #start method to Page. In other words, it is calling
131893 [thedcm@gm il] That works, thanks :)

Net::HTTP
131895 [w3gat@nw ag ] The folowing is a program from The Ruby Way page 441
131897 [jamis_buck@b] Can you be more specific? Do you get a raised exception? If so, what
132023 [w3gat@nw ag ] The version of Ruby running on both machines is Ruby 1.8.2 <2004-12-25>
+ 132024 [lyndon.samso] Try and do something similar with a socket, see if that behaves the same way.
+ 132040 [wmorgan-ruby] Put a "puts 'hello'" statement between each line, and count how many
+ 132302 [w3gat@nw ag ] Try and do something similar with a socket, see if that behaves the same
| 132315 [mulperi@cc h] try to run your ruby script with -d option in other words, ruby -d script.rb
+ 132349 [djberg96@ho ] <2004-12-25>

problems with rubycocoa on macosx 10.3.8 w/ ruby 1.8.1
131902 [jeffm@gh st ] $ ruby -v
131908 [acharlieblue] /Users/gg/ulocal//lib/ruby/site_ruby/1.8/osx/cocoa.rb:12
131922 [ruby-lists@l] could someone with a clue just make a .dmg? :)
+ 131924 [Richard_Dale] Well a .dmg of QtRuby would be pretty useful, if you know how to do one.
| 131926 [ruby-lists@l] agreed. wanted to postpone until qt4 though on which
+ 131956 [laurent.sans] See hdiutil(1).  It is pretty easy.
  131962 [sroberts@un ] Making a .dmg is easy, building ruby cocoa can be hard, and making a
  132010 [jeffm@gh st ] Thanks to all those who made suggestions.

libitunesdb bindings for Ruby
131904 [daniel@ni ht] I recently got an iPod and have been fooling around with some of the

trying to build self-contained RubyCocoa apps
131912 [doug@be ve .] i've written a RubyCocoa app, but i would like to be able to distribute

YAML and hash
131925 [merke@ju it ] is there a possibility to recognize multiple keys while
+ 131932 [bob.news@gm ] "Artur Merke" <merke@ls1.cs.uni-dortmund.de> schrieb im Newsbeitrag
| + 131936 [navindra@cs ] I would hazard a guess that YAML is deferring to the Hash constructor
| | 131945 [bob.news@gm ] "Navindra Umanee" <navindra@cs.mcgill.ca> schrieb im Newsbeitrag
| + 131959 [merke@ju it ] I have looked into this and yaml/rubytypes.rb
+ 131974 [ruby-talk@wh] You're right.  This should throw an error or a warning (according the
  131975 [a.r.ferreira] I've spent some time trying to write code to make such a thing work.
  132056 [gavin@re in ] Heh, that's a cute name :)

ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)
131940 [iorcc@ya oo ] Dear Fellow Rubists,
+ 132095 [ jupp@gm .d ] 1st price: "Advanced Obfuscation: Perl for Ruby Programmers"
| + 132099 [ruby-lists@l] you're just annoyed cus you can't write crap code!
| | 132276 [ jupp@gm .d ] It only seems more natural to use C for that. The following is a quick
| | 132327 [ruby-lists@l] dunno why anyone would find that wierd...
| + 132102 [matz@ru y- a] Well, it is a good chance to prove them we can write pretty unreadable
| | + 132104 [sroberts@un ] Powerful languages allow obfuscation. Weak languages only allow garbage
| | + 132105 [dblack@wo bl] Is that "pretty" as in "somewhat", or "pretty" as in "nice-looking"?
| | | + 132107 [agorilla@gm ] How about "pretty" and "pretty unreadable"?
| | | | + 132109 [shalev@si pl] WoW
| | | | + 132143 [chneukirchen] Don't tell me you can't read base64! :P
| | | | | 132151 [navindra@cs ] I agree, you did some really clever work, including a generator
| | | | | 132159 [chneukirchen] puts [926381,23200231779,1299022,1045307475].map{|n|
| | | | | + 132169 [ruby.brian@g] $ uname -a
| | | | | | + 132170 [chneukirchen] Very interesting...
| | | | | | + 132183 [navindra@cs ] So ruby -e 'srand 52019; puts rand(16)' prints 6 for you, not 11?
| | | | | |   132205 [ruby.brian@g] $ ruby -e 'srand 52019; puts rand(16)'
| | | | | |   132270 [caiot1@ib st] 11 for me (WinXP).
| | | | | + 132184 [navindra@cs ] puts [1360991028827446, 591861].map{|n| n.to_s(?$
| | | | |   132185 [navindra@cs ] Ugh.  Thank god my horrible horrible typo is encoded and the whole
| | | | |   132214 [chneukirchen] Why, thank you. :-)
| | | | + 132335 [matju@sy pa ] Here's mine.
| | | |   132336 [jason.sweat@] $ ruby -e'p (1..36).inject(0){|a,b|a+b}'
| | | |   + 132337 [mulperi@cc h] ruby 1.9.0 (2005-02-14) [sparc-solaris2.8]
| | | |   + 132338 [neoneye@gm i] '-NEON-EYE-'.unpack('C*').inject(0){|a,b|a+b} #-> 666
| | | |     132342 [flori@ni e. ] Ok, let's golf that down a bit, shall we? :)
| | | + 132112 [matz@ru y- a] Both, of course.  I'm glad you've found the pun.
| | + 132111 [matt@te hn r] There are already too many Ruby books that I can't read.  :-)
| |   132144 [chneukirchen] Now, "Ruby, the language where the documentation is more unreadable
| |   + 132145 [dblack@wo bl] I think the books Matt is referring to are perfectly readable, if you
| |   + 132155 [matt@te hn r] Personally, I find the book on Ruby Internals to be impossible for me to
| + 132106 [ochronus@gm ] 1, the flexibility of the target language
| + 132141 [chneukirchen] I wonder how the perl community reacted on books like "Object-oriented
|   + 132147 [ruby-lists@l] as far as i can tell more people (e.g me) in the ruby community
|   | 132157 [chneukirchen] Now, *that* would explain lots... }:-) Excellent book, btw.
|   + 132275 [ jupp@gm .d ] "Who needs yet another way to do it?" I suppose.
+ 132188 [ljz@as as .c] ruby -e 'def x(n,m)z=n;(m-1).times{|x|z*=n};z;end
  132215 [chneukirchen] Now, that's a lotta code to calculate 6*9. :-)
  132300 [ljz@as as .c] Hey, this is nothing.  They had a planet-sized computer working for

multi-language code -> html w/syntax highlighting--start me out
131949 [rpardee@gm i] Hey All,
132045 [wmorgan-ruby] I don't think you necessarily need any libraries. "puts" and some

London (UK) Ruby meeting, February 28
131955 [dblack@wo bl] For people in or near London who are not on the London Ruby mailing
+ 131979 [ruby.talk.li] Racking up those frequent-flier miles, aren't we?
| 131982 [robert.mcgov] Mmm, one wonders where he is going to end up next. I wonder has David
| 132012 [matt.mower@g] We'll let you know that when we see how quickly he gets his round in :-)
| 132021 [robert.mcgov] Heh, wife permitting I'm going to be there myself to find out :)
+ 132632 [robert.mcgov] and David did indeed see us there, 11 of us in fact which apparently
  132672 [rob.02004@gm] Here are some brief notes from the Feb 2005 London Ruby Group meeting.
  132674 [robert.mcgov] That was me ....

Re: FreeRide 0.9.3  problems...
131965 [snowzone5@ho] installed this version.
131967 [curt@hi bs c] Laurent will need to look at the actual problem, but in the meantime you can
131991 [snowzone5@ho] yeah, last time it happened that was the solution...unfortunately it

Temporary Outage of ML <-> NG Gateway
131966 [dennis@la sc] Dear list,
132210 [dennis@la sc] The gateway is now up and running again. All queued mails have been mirrored
132232 [ruby.brian@g] The good news is, that I could for once cope with the volume on the
132241 [chneukirchen] Yeah, I was thinking about that too... }:-)
132244 [bob.news@gm ] "Christian Neukirchen" <chneukirchen@gmail.com> schrieb im Newsbeitrag
+ 132252 [chneukirchen] Better subscribe quickly! :-)
+ 132988 [bg-rubytalk@] Is the Mailing List <-> Newsgroup gateway gone again?  Ruby-talk seems a
  133038 [ jupp@gm .d ] This would require that only one of the media is a lot quieter than
  133039 [ruby-ml@ma i] Wonder what the typical ML-NG post ratio is? It does seem that the ML

Problems with Mondrian
131971 [paniagua@pc ] format my harddrive and then I installed Ruby 1.8, followed by Mondrian.

FW: FXRi in FreeRIDE (done!)
131989 [curt@hi bs c] Laurent Julliard just took Martin Ankerl's FXRI and massaged it into a

Constructor overloading???
131995 [pkarvou@gm i] Does Ruby support constructor overloading?
+ 131996 [halostatue@g] Ruby does not support method overloading at all, only overriding.
+ 131999 [ruby.talk.li] No; Ruby desn't support method overloading.  But you can pass a
  132078 [eliahhecht@g] I've run into this before when (for instance) I want initialize() to
  + 132088 [ruby.talk.li] You may do better using a hash and named arguments.  The
  + 132092 [ruby.brian@g] If the initializers are totally different, then it may make sense to
    132096 [pkarvou@gm i] Thanks!!!!!!!!!!

Anyone run rbbr on OS X?
132000 [jim@fr ez .o] Before I go off and try to install rbbr on OS X, I thought I would
132022 [shalev@si pl] Well, it shouldn't be that hard.  You can install the ruby-gnome
132062 [jim@fr ez .o] That's good to hear. You seem to imply that Gnome is optional.
132076 [shalev@si pl] # ruby 1.6.x, 1.8.x, 1.9.x

Constructor overloading???
132003 [pkarvou@gm i] I am not trying sth special.I am testing language features that I use with Java.
+ 132004 [halostatue@g] class Rectangle
| 132007 [pkarvou@gm i] ...
| 132015 [ruby-ml@ma i] What I would do is just use 'one' constructor,
+ 132006 [sroberts@un ] Trying to program in one language like it is another language is
  132009 [flori@ni e. ] And using lots of constructors in Java loses a lot of its attraction,

Any "Powered by Rake" button out there?
132008 [ jupp@gm .d ] There is a lot of 'Powered by Ruby' buttons that allow you to show you
132026 [halostatue@g] ...
132273 [ jupp@gm .d ] ...

Looking for docs
132011 [jvalencia@lo] I'm looking for cgi docs, there are lots of things undocumented, as
132061 [ruby.talk.li] There are numerous element methods that are not individual described

WEBrick: Virtual hosts and inherited directory mappings
132013 [ljz@as as .c] I posted the following query to the webrick mailing list, but that list
132098 [gotoyuzo@no ] I'm really sorry to post this too late.
132101 [ljz@as as .c] There is no apology necessary.  I posted here a short time after I
132121 [gotoyuzo@no ] Yes. Some utility methods (get_instance for servlets, #[]

CSS integration with CGI objects
132014 [jvalencia@lo] I think that the CGI class is still in development, isn't it?
132027 [halostatue@g] environment, such as Amrita or even the RDoc templating included with
132029 [jamesUNDERBA] I believe you can pass a hash of attribute name/values to the method
132037 [jvalencia@lo] mmm but using other methods means that cgi forms will not use
132049 [jvalencia@lo] I've tried amrita, but it gives me lots of Security Errors, i've tried

About "constructor overloading"
132019 [hal9000@hy e] Panagiotis...

any ideas on how to get readline support in OS X 10.3?
132025 [sroberts@un ] I just got this working for ruby1.8 on OS X 10.2... then upgraded.
132048 [gavin@re in ] I just re-installed everything on a brand new machine. I forgot about
132103 [sroberts@un ] Thanks, I know I can install my own copies of things that the OS already
132120 [doug@be ve .] hmm, can you even build against the system's readline?  there's a
132125 [sroberts@un ] Did a little more digging, and I now see my error!

Re: [OT] Any "Powered by Rake" button out there?
132030 [ruby-ml@ma i] There's something about green and red in the air...:)

Unicode recommendations
132034 [niklas@gr n.] What is the best way of dealing with unicode in ruby right now? I'm

Proposal for nil, 0, and "" in an if statement
132036 [dan@ep rk ab] The following was derived from a portion of the destrutive! operations
+ 132038 [lists@be tr ] Maybe even "true.empty? #=> true", "false.empty? #=> false"?
| 132039 [dan@ep rk ab] ...
| 132068 [mailing-list] How is 0 empty?  0 is a number representing nothing; it's not empty.
+ 132041 [david@lo dt ] I'd be pretty happy to see that happen. It would make especially Ruby
| + 132043 [mneumann@nt ] But please please use a different name than "empty?", maybe "nothing?"
| | + 132070 [halostatue@g] I think it was a joke, but why not #vapid? -- it came from the spawning thread.
| | + 132082 [jlsysinc@al ] How about "piningforcplusplus?"  ;-)
| + 132046 [pit@ca it in] Could anyone post examples of actual code that would be easier if 0 had a
|   132047 [gavin@re in ] I don't have actual code, but imagine looping through records returned
|   + 132053 [gavin@re in ] As I responded in the destructive! thread, if people are opposed to the
|   | 132054 [dblack@wo bl] It's arguably exactly the opposite of what you'd want -- namely, to
|   | + 132057 [mneumann@nt ] 100% agree. I especially cannot understand (at least mathematically) why
|   | | + 132072 [mailing-list] Well, False has the value, or perhaps valuation, false.  How about
|   | | + 132080 [caiot1@ib st] Binary logic, 0 is false, 1 is true.
|   | | | 132084 [mneumann@nt ] In fact, those are actual symbols and not numbers!
|   | | | 132085 [binary42@gm ] exactly! This issue seems to come up on the ML from time to time. I
|   | | | 132086 [mneumann@nt ] At least for .nil? I agree. I am not sure whether I'd like to write
|   | | | + 132089 [msparshatt@y] I don't think the proposal was to replace if a with if a.true? but
|   | | | + 132090 [binary42@gm ] Not quite what I meant... I left my post short as I have posted this a
|   | | + 132422 [matju@sy pa ] In Cantor-style Set Theory, the Naturals usually get redefined in such a
|   | |   132469 [csaba@ph ny ] That guy who has a paradox, is simply Skolem, without the umlaut.
|   | + 132059 [gavin@re in ] Aye, it is arguably so. But I think having a method name of
|   |   132063 [dblack@wo bl] Both, but I meant specifically the concept.
|   + 132055 [peter@se an ] Might this not cause trouble with databases. A database record (returned
|   | 132058 [gavin@re in ] Yes, there are many cases where you DO want to distinguish between nil
|   | 132060 [gavin@re in ] To be clear - the proposal is NOT to make Ruby act like one of the many
|   | + 132065 [peter@se an ] As long as we are only proposing to add a new method then I am happy but
|   | + 132066 [blaumag@gm i] Even though I'm not sure I love globals like $\ or $*, I think the
|   | + 132073 [eule@sp ce c] (In response to news:41EFDE9C-84DF-11D9-8B41-0011243148CC@refinery.com by
|   | | 132079 [halostatue@g] foo if bar.nil? or bar.empty?
|   | | + 132083 [c.r.mcgrath@] I'm pretty new to ruby, so may have this wrong, but if you're
|   | | + 132136 [eule@sp ce c] (In response to news:9e7db91105022209227c70832e@mail.gmail.com by Austin
|   | + 132110 [hal9000@hy e] FWIW, I once suggested the name "null?" for this.
|   + 132069 [mailing-list] How is a yearly/monthly/weekly/daily/whatever revenue of $0 not
|   | 132427 [matju@sy pa ] In Logic, a Boolean Algebra has 2**n elements, so a Boolean value may have
|   + 132071 [pit@ca it in] When dealing with financial data, you often have to calculate the product of a
+ 132044 [dblack@wo bl] class Fixnum
threads.html
top