173290-174380
173111-174364 subjects 173533-180725
^ Ruby WinCE Translation?
173290 [greg.kujawa ] If any Ruby enthusiasts out there can read Japanese could I please get
^ apache and eruby
173293 [pere.noel la] i'd like to use eruby with mod_ruby
^ Symbols/references (was: What is the difference between :foo and "foo" ?)
173300 [rosco roscop] a, b = :sym, :sym
173426 [johannes.fri] The 'pass by reference/value' terminology isn't used much in Ruby (or
^ Problem generating RSS feed with enclosures using FeedTools library
173301 [alex.castro ] I'm using the FeedTools library to generate an RSS feed with a media
^ Rote - feedback request
173307 [rosco roscop] Rote (http://rote.rubyforge.org/) is looking for brutally honest people
^ Proper use of 'require'
173308 [Klauer gmail] and I don't think I've found an exact answer to my problem.
173316 [cyclists nc.] This is a bug in the tutorial. See
173306 [Klauer gmail] Thank you very much. The updated version is excellent and had the exact
173445 [hal9000 hype] Say it this way: If you require a file that has a local variable in it,
^ Optional arguments and default values
173314 [biyokuantum ] How do I give a method optional arguments and default values?
+ 173296 [rosco roscop] def foo(*args)
| 173334 [bob.news gmx] The implementation of Enumerable#inject allows for an even more elegant
| 173367 [rosco roscop] Cool, I didn't know that, thanks for pointing it out :)
+ 173303 [surrender_it] => nil
^ Where is my TestResult?
173315 [gary.mccants] So I'm teaching myself Ruby. I'm playing with Test::Unit. I've
173374 [pit capitain] Welcome!
173382 [gary.mccants] Excellent, Pit! Many new nuggets of Rubyness for me to chew on here,
^ confusion with extension modules
173317 [goldfita sig] I'm trying to write a very simple extension module using the example -
173276 [goldfita sig] I got it! It needs to be Head, not head.
^ Ruby PDA implementation?
173318 [greg.kujawa ] I asked this question a couple of months ago, and now am throwing it
174172 [jstell gmail] Just blogged an article describing what I did to get Ruby running on my
174217 [greg.kujawa ] I did this as well. The problem is that I receive Wince::Strerror error
+ 174220 [greg.kujawa ] ...
+ 174361 [jstell gmail] I'm running an iPAQ 5550 with an ARM processor and WinCE 2003.
174373 [greg.kujawa ] Perhaps it's a difference in the OS version. My Axim is running Windows
^ FOUND was (Re: apache and eruby)
173322 [pere.noel la] # AddType application/x-httpd-eruby .rhtml
^ Gateway issues again
173327 [djberg96 gma] It seems that posts submitted via the web are not making it to the
173333 [bob.news gmx] Um, what do you mean by "submitted via the web"? AFAIK there is only news
173335 [shadarach gm] i think he means the forums
^ discrete event simulation in ruby?
173344 [ljw1001 gmai] I'm looking for a reasonably complete discrete event simulation library in
173486 [paul nospam.] <d15ea14a0512310543q68611fc1te680fa78d8d96b9c@mail.gmail.com>,
173494 [ljw1001 gmai] i'm looking to simulate small, but not 'toy' systems.
173501 [znmeb cesmai] Well ... let's start with the "basics". Is there an open source C/C++
173560 [znmeb cesmai] Well ... I found two discrete event simulators that are open source. One
173699 [paul nospam.] There's a fairly comprehensive LGPL'ed library written in Java called
173717 [znmeb cesmai] Yeah ... I saw that. There's a lot of really great software written in
^ CGI class question
173358 [lars.gersman] when i execute the following
+ 173359 [steve waits.] Correct me if I'm wrong, but it looks like it's there. ???
+ 173370 [james_b neur] In
^ [ANN] RForum 0.2
173366 [f andreas-s.] RForum is a forum software with mailing list connectivity based on the
^ PAbbrev with Ruby Electric
173372 [spamoff.danx] Does anyone have problems with PAbbrev completion with Ruby Electric in
^ What's the difference in calling method vs self.method?
173373 [narf968 gmai] Here's some example code. In method_b, what is the difference in
+ 173376 [kibleur.chri] I see no difference indeed, but I'm a Ruby beginner...This is a Ruby
+ 173377 [joseph josep] I am sure that the more experienced coders will speak up soon, but until
+ 173378 [narf968 gmai] I just had a thought that it may very well make a difference in the
+ 173379 [lopexx autog] In Your code it makes no difference, however there are situations when
173383 [rosco roscop] class Clz
^ Stuck on Page 27 of Programming Ruby
173388 [junk dardene] books for Christmas and I am having a lot of fun with them. But I am
+ 173389 [alder.green ] Song.new("Bicylops", "Fleck", 260)
+ 173390 [simonharriso] def initialize(name, artist, duration)
+ 173392 [leavengood g] You need to define an initialize method which can take the arguments
+ 173393 [gavri.fernan] class Song
173395 [junk dardene] Wow, thanks everyone for the fast replies!
^ WEBrick servlet for https
173391 [jose abc.xyz] I'm writing a servlet subclassed from
^ my stupid code ...
173396 [vnpenguin gm] 1. Input : File or $stdin
+ 173399 [pan erikveen] Abstraction is the keyword. Put the decision to open a file or
| + 173402 [f andreas-s.] I do not think that tinkering with the core classes is a good idea for
| | 173406 [pan erikveen] Make it a new class, instead of "reusing" a core class... :)
| + 173409 [vnpenguin gm] Thank you but I'm not yet familar with class/method notions :)
+ 173400 [f andreas-s.] fin = ARGV[0] ? File.open(ARGV[0],'r') : $stdin
| + 173404 [pan erikveen] You should close an IO stream, when it is a file.
| + 173408 [vnpenguin gm] Thank you for your solution.
+ 173431 [ilmari.heikk] in_file, out_file = ARGVinput = in_file ? File.open(in_file) : $stdinoutput = out_file ? File.open(out_file,'w') : $stdout
^ Re: Welcome to our (ruby-talk ML) You are added automatically
173397 [alder.green ] help
^ Stepping through Ruby's C code on Windows
173398 [khoff98107 y] I've downloaded Ruby 1.8.4 source code and built C executables from the
^ Why does this work?
173410 [garth penrhi] thread = Thread.new(thread) do |thisThread|
173417 [dbatml gmx.d] this_thread is nil, so this_tread.exit just calls the private method
173447 [garth penrhi] Thanks Dominik,
^ Memoization, files and Marshal?
173412 [djberg96 gma] Inspired by a recent blog entry by Mauricio Fernandez, I decided to try
173418 [ara.t.howard] def memoize_to_file(name, file)
173421 [djberg96 gma] As is, I get a stack level too deep error on Windows. If I change the
173428 [ara.t.howard] @@ -1,9 +1,10 @@
173452 [djberg96 gma] Thanks, that did the trick nicely. It's now part of memoize 1.2.0. :)
173587 [ mfp acm.org] Dumping the cache on every miss seems expensive.
173621 [ara.t.howard] This message is in MIME format. The first part should be readable text,
173640 [djberg96 gma] Rehearsal ----------------------------------------------
173666 [ mfp acm.org] Your stack is too small; fib(500) goes 1000 levels deep. Change
^ Tuples/Records/Quicky Objects + Read Only Arrays?
173419 [spamoff.danx] Does Ruby have a tuple or quicky object mechanism? I'm new to Ruby and
+ 173423 [florgro gmai] Just use Object#freeze. Note that you will not usually be able to change
+ 173430 [wilsonb gmai] The Ruby equivalent of a tuple is pretty much an Array, since the
+ 173479 [bob.news gmx] => Tuple
+ 173485 [spamoff.danx] Thanks guys.
173487 [bob.news gmx] Are you sure you recovered? I mean, what's the point in stuffing a hash
173490 [spamoff.danx] Heh... it was just an example, I will be stuffing lots of hashes into an
^ Happy New Year
173422 [ben tanjero.] => #<Year:2006 @happy=true>
+ 173425 [james_b neur] Thanks! Same to you and yours, and to all hackers everywhere.
| + 173433 [rubydevelopm] Happy? Without Ruby? Impossible. (just kidding...) :-)
| + 173434 [ryansobol gm] (1..10).to_a.reverse.each do | sec |
+ 173432 [rubydevelopm] Thank you Benjamin.
+ 173437 [gregory.t.br] Happy New Year all! (Just turned it here on the East Coast)
| 173439 [obiefernande] Happy New Year everyone -- It's sure gonna be exciting times for all us
+ 173461 [chneukirchen] Soon the evil GC will come and take you a Year. ;-)
| 173546 [ben tanjero.] I always disable GC before making statements using code!
+ 173553 [ilmari.heikk] irb(main):001:0> class Yearirb(main):002:1> end=> nilirb(main):003:0> 2006 = Year.newSyntaxError: compile error(irb):3: syntax error2006 = Year.new ^ from (irb):3irb(main):004:0> 2006.happy?NoMethodError: undefined method `happy?' for 2006:Fixnum from (irb):4irb(main):005:0> 2006.happy!NoMethodError: undefined method `happy!' for 2006:Fixnum from (irb):5irb(main):006:0> 2006.frozen?=> falseirb(main):007:0> 2006.freeze=> 2006irb(main):008:0> 2006.frozen?=> falseirb(main):009:0> 2006.power!ArgumentError: wrong number of arguments (0 for 1) from (irb):9:in `power!' from (irb):9irb(main):010:0> 2006.help:power!No help found.=> nil
^ Ruby 1.8.4 and tcltk under Linux
173424 [r.mark.volkm] I have some Ruby code that uses Tk that works fine under Windows.
+ 173427 [gmurray clou] ruby does not replace tcl or tk. It requires the underlying libraries
+ 173536 [gerardo.sant] I had the same problem. Hard to find a solution on the web, until I
173609 [r.mark.volkm] This command runs without error, but I don't have a /usr/sfw directory.
+ 173614 [slyphon.ml g] On my system, ubuntu, the shared library is /usr/lib/libtcl8.4.a, and
+ 173615 [gerardo.sant] At then end of the output of extconf.rb says it couldn't find some
173713 [r.mark.volkm] My Fedora Core 4 system doesn't have tcl.h anywhere, but I do have
173715 [r.mark.volkm] Got it! Here's what I had to do.
173718 [gerardo.sant] Extracting the sources you get the header files, yes, but not the
173719 [r.mark.volkm] That's right. I had the libraries, but not the header files. Maybe
^ Immediate Values
173440 [gwtmp01 mac.] I understand that this is the standard explanation for this sort of
+ 173441 [itsme213 hot] Some do (including me), but others don't find it useful. e.g. See
+ 173455 [johannes.fri] You're describing the user model, I was talking about the
^ macworld
173454 [michael.schw] What Ruby stuff will be happening at Macworld? What software is
173606 [hcatlin gmai] I just bought a new Mac, and its the worst dev environment for ruby
+ 173607 [james graypr] I've used a Mac for Ruby development since day one and I couldn't
| 173646 [perrin apoth] I seem to recall reading somewhere that MacOS X has some nonstandard
| 173648 [james graypr] Not that I'm aware of.
| 173665 [perrin apoth] Okay, thanks for the clarification.
| + 173667 [mike stok.co] I replaced my linux desktop with a 17" PowerBook, and it quite
| | + 173671 [perrin apoth] I'm perfectly aware of the capability of Macs to interface with an
| | | 173676 [ilmari.heikk] You can emulate the second button and the third button by pressingdown the sightseeing key and the switch key, respectively. Not thatit's a terribly good solution.
| | + 173677 [rdm cfcl.com] The support software for the Kensington mice and trackballs supports
| + 173670 [ryansobol gm] charset=US-ASCII;
| | 173673 [perrin apoth] Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ]
| + 173696 [blargity gma] They give you a mighty mouse now anyway, so A is your only problem.
| | 173734 [perrin apoth] I direct your attention again to my reference to laptops.
| | + 173735 [twifkak comc] While we're hijacking this thread for our own purposes, I have a couple
| | | 173743 [cjwoodward g] I hope I'm not repeating what anyone else is said but you can get
| | + 173844 [blargity gma] I direct your attention again to plugging in any usb mouse. I'm sorry, but I
| | 173856 [perrin apoth] Just accept that I require an integrated interface with which I'm
| | 173895 [kashia.buch ] You might want to keep one thing in mind: the Apple Interface is built to
| | 173935 [perrin apoth] I've used Macs. I didn't like the one-button mouse.
| | 174309 [shot shot.pl] Have you tried a ThinkPad laptop with a TrackPoint device (the red
| | 174311 [perrin apoth] Actually, I'm using one right now. I love Thinkpads. Once I turn the
| + 174380 [payton foolo] These little utils enable trackpad right-clicking (and scrolling, and
+ 173617 [mike stok.co] What are your specific problems?
+ 173654 [twifkak comc] Use DarwinPorts or Fink.
173661 [jim freeze.o] For MySQL, I used the dmg. That was easy and it even gives you a control
+ 173674 [twifkak comc] To be fair, I used the dmg for MySQL. I tried DarwinPorts, but could not
+ 173688 [pere.noel la] it is true that's the simplest way to install ruby from sources. However
+ 173693 [luc honk-hon] Uh ?!?? As far as I know, DarwinPorts is still at 1.8.2.
| 173700 [pere.noel la] ~%> /opt/local/bin/ruby --version
+ 173697 [swolfe spind] I have to agree here. On my OSX workstation I've built readline and
173701 [pere.noel la] i did install anjuta one week before and today where i was unlucky ))
^ Ruby speaks languages and wishes you a happy new year
173456 [ mfp acm.org] "002 112eJzN Vlt
173503 [ezmobius gma] charset=US-ASCII;
^ Re: (Real) Primitive Ruby Generics support
173457 [tristan.allw] Static typing means the type checking happens at "compile" time (or NOT
+ 173475 [gene.tani gm] "Nominal/structural" typing, haven't seen that one before. Artima
+ 173524 [florgro gmai] Already knew about dynamic <> static and strong <> weak.
173525 [hal9000 hype] I have never heard these terms used this way, but it is interesting.
+ 173527 [florgro gmai] At least the first two pairs ought to be unless I misremembered them.
| 173529 [hal9000 hype] Sure, I know those. It was the nominal/structural I was
| 173586 [tristan.allw] Hey,
+ 173758 [surrender_it] all the people that actually understand typing issues, it seem :)
^ initialize
173458 [lists turnip] Should initialize() be public, private or protected, and why?
173459 [decoux moulo] moulon% cat b.rb
173464 [lists turnip] Thanks for the reply. Forgive me, but I don't understand what the point
173465 [decoux moulo] #initialize (like #initialize_copy) is *always* a private method. Even if
+ 173466 [decoux moulo] Well, there is an exception when you redefine its state after the creation
+ 173472 [lists turnip] Ah, okay, thanks.
^ FOUND was (Re: [MacOS X] RubyAEOSA and Address Book)
173460 [pere.noel la] sorry for the noise, i've forgotten that even if the script is written
^ [SOLUTION] Numeric Maze (#60)
173463 [james graypr] Here's my simple breadth-first search with a single optimization
173468 [M.B.Smillie ] OK, so I didn't have time to code it up and see for sure, what with
+ 173470 [steve waits.] I had the same thought, then decided it doesn't fit. But too, I'm
| + 173477 [ilmari.heikk] [SOLUTION] Numeric Maze (#60)
| + 173478 [maurice.codi] I guess we're allowed to submit solutions now... here's my first ever ruby
| + 173482 [james graypr] Yes, 48 hours have passed sent the quiz was sent in
| + 173491 [mark.ericson] Maurice,
| | 173495 [maurice.codi] [3, 6, 8, 16, 18, 36, 38, 76, 152, 154, 308, 616, 1232, 2464, 2466, 1233]
| | + 173496 [mark.ericson] Nevermind, a copy and paste error on my part!
| | + 173500 [M.B.Smillie ] OK, so this sort of counter-example is pretty trivial, but the +2 can
| | 173502 [jubishop gma] [SOLUTION] Numeric Maze (#60)
| | + 173506 [mel melaxis.] Here's my solution. It uses the A* algorithm and the priority queue stuff
| | + 173517 [reinder verl] <60768b90601011339l5a8bd2ecq514eb3c2fa59d52c@mail.gmail.com>,
| | 173518 [ruby anthrop] This is my first Ruby quiz. I was hoping to have the whole thing done
| | 173548 [ilmari.heikk] $ ruby test60.rb 255 257[255, 510, 512, 514, 257]
| | 173559 [ryansobol gm] Here's my (first) solution (ever) for quiz #60.
| | 173613 [dbatml gmx.d] $ time ruby ryan_org.rb 22222 99999
| | 173620 [ryansobol gm] Oh nice. :)
| | 173622 [ryansobol gm] I didn't like having the roof calculation done inside the solve
| + 173498 [dalewis tikv] My first quiz, as well.
| + 173508 [steven.aerts] hereby my first solution for the ruby quiz and my first real world ruby
| | 173516 [james graypr] 1. We usually do variable and method names in "snake_case" style and
| | 174059 [steven.aerts] Thanks for your "general comments".
| + 173515 [james graypr] It's great to see so many new faces. Welcome everyone!
+ 173509 [ptkwt aracne] I kept thinking that a recursive solution would be the easiest way to go, but
+ 173512 [SimonKroeger] Ok, my solution. It keeps track of all reached numbers *and* how it gets
| 173681 [SimonKroeger] could someone please confirm (or disprove) that this i correct?
+ 173514 [james graypr] This seems odd to me. Wouldn't a recursive breadth-first (or even
^ Test::Unit assert_throws
173483 [mjb asplake.] Any good examples out there (I couldn't find any) of assert_throws? I
+ 173484 [james graypr] I'm guessing you might be looking for Exception handling assertions.
+ 173565 [g_ogata optu] #assert_throw checks for a Kernel#throw, which takes a Symbol.
^ Re: Numeric Maze (#60) [SOLUTION]
173488 [horndude77 g] For this quiz I took what I made for the word chain quiz and modified
173612 [dbatml gmx.d] I did that, too ;-)
^ TAO CORBA from Ruby. How??
173499 [iIdont wantn] Yes, I know, drb is better, but at work we have a distributed system
^ An Orlando Ruby/Ruby_on_rails user group is forming
173505 [slitt earthl] Anyone in Central Florida wanting a Ruby and Ruby_on_rails user group, please
^ Can't change the value of self
173520 [lists turnip] class Time
+ 173521 [james_b neur] "Destructive" methods must alter self using that self's existing
| 173523 [hal9000 hype] To which we should add: Time has no destructive methods, since
| + 173528 [lists turnip] Thanks for the replies. Why is Time immutable (presumably it's
| | 174213 [henrik.marte] Immutable classes are less prone to bugs than mutable classes. This is
| | 174238 [hal9000 hype] Thanks, Henrik. That's a great discussion and a great example.
| + 173537 [wilsonb gmai] class Fixnum
| | + 173541 [twifkak comc] Well, that, and what would "2.double!" do?
| | + 173558 [g_ogata optu] You could do s.<<('a', 'b'), but it seems unrubyish. Perhaps you
| + 174252 [gavin refine] That'd be me, and it's documented at http://phrogz.net/RubyLibs/rdoc/
+ 173530 [gwtmp01 mac.] Instead of
+ 173582 [ronjeffries ] One way of thinking about reassigning self is if you imagine in a numeric class
173589 [lists turnip] Thanks very much for this explanation, the restriction makes a lot more
173641 [hal9000 hype] You should also know that more complex objects (as you know) can
threads.html
top