207193-210027

206979-209723 subjects 207347-213671

^ Question on how to source a file with variables in it.
207193 [rakxzo gmail] I'm just trying to learn some scripting in Ruby and I am trying to
207194 [rakxzo gmail] Posted via http://www.ruby-forum.com/.
207200 [ezmobius gma] The only way to do it with plain old local variables that I know of
+ 207217 [inxs.hemant ] Or convert you file to a YAML.
+ 207290 [rakxzo gmail] Thanks Ezra, that's exactly what I was looking for. I'll give it a try!
  207293 [rforum gmail] vars.yml

^ Ruby Cookbook now in PDF format
207195 [leonard.rich] You asked for it, you got it! O'Reilly is now selling the Ruby Cookbook
+ 207204 [sambient gma] Figures, I order my first print book in ages and a few hours later it's pdf'ed.
+ 207207 [BreadWithSpa] That's awesome.
| 207260 [bitdoger2 ya] thank you....now i don't have to lug the big book on the bus when
+ 207272 [Paul.vanDels] Brilliant! Within 5 minutes of reading the above, I had it on my laptop. Now I can lend my
| 207280 [drnicwilliam] Thanks O'Reilly. 900 virtual pages of loveliness.
+ 207491 [ml e4net.com] Thank You, Thank You, Thank You... I guess Bitching and Whining does work ;)
  + 207583 [rick.denatal] Or at least Bitching and Whining take the credit, as usual.  Those two
  + 207593 [josselin wan] Forbidden
    + 207596 [sambient gma] Just to mention little fact.   I downloaded the source code and all
    | 207687 [leonard.rich] I fixed this in the zipfile on crummy.com.
    | 207690 [sambient gma] Thanks Leonard.
    | 207691 [sambient gma] Wait ..I can't find it on there.
    | 207870 [wrecklass1 g] Thanks for the pointer. I had already ordered it from Amazon, but the
    + 207606 [keith oreill] Works fine for me at 12:56pm EST.

^ RubyConf in Second Life?
207201 [drjflam gmai] Since RubyConf this year has sold out so rapidly, I was wondering if
+ 207203 [julian.kamil] That's a really interesting idea, count me in, and I will be willing to
+ 207220 [halostatue g] Sort of. I've heard about Second Life, but haven't really studied it.
| + 207222 [drjflam gmai] Thanks for the pointer to that info, Austin! I'm checking with the
| | 207223 [james.britt ] This sounds quite interesting.  I've been meaning to poke into SL, but
| | 207239 [headius head] There's actually already a SL rubyist community that meets every first and
| | + 207240 [hal9000 hype] Excuse my ignorance and uncoolness, but what is Second Life? Is it a
| | | 207241 [james.britt ] James Britt
| | + 207305 [drjflam gmai] That's really cool. I'll definitely drop by on the next meeting.
| + 207386 [drjflam gmai] I've got a response from the Linden folks. Each region (16 acre chunk
|   + 207399 [headius head] Well, wouldn't it just be better to ask the Rubyists of Second Life if we
|   | 207400 [drjflam gmai] Doh! That's much more straightforward :)
|   | 207407 [james.britt ] For Rubyists who have yet to enter SL, are there any tips or warnings to
|   | 207413 [tbray textua] Plan on spending a couple of hours tinkering with your avatar so it
|   | 207421 [pixelnate gm] Or doesn't.
|   + 207425 [jim weirichh] This sounds really cool ... but I have some questions
|   | 207432 [james.britt ] ?? Advantages? It's a COOL TOY!
|   | 207652 [Bil.Kleb NAS] And coming from a guy that used Zelda to teach
|   + 207441 [chneukirchen] I can't believe people are paying money for virtual real estate.  ;-)
|     207442 [M.B.Smillie ] Domain names?
+ 207445 [dblack wobbl] I tend to agree with Jim W. that I'm not clear what the advantages
  207460 [drjflam gmai] Regarding the experience, here's a link to a YouTube video for
  + 207482 [drjflam gmai] For another look at how things happen in Second Life, check out this
  | 207485 [hal9000 hype] Omigosh. Do you know what a huge Suzanne Vega fan I am?
  | 207492 [james.britt ] Is the book done?
  + 207486 [jim weirichh] I'm still wondering what exactly the SL folks will be getting out of the
    + 207487 [hal9000 hype] I'm wondering the same.
    + 207528 [dblack wobbl] I think we're just going to be recording the event, not streaming it.
      207573 [drjflam gmai] I think you're probably right about this David. The bandwidth

^ How many ways can I execute ruby program?
207210 [vijaypatel c] I have to admit this is great language and good people to support it. I
+ 207215 [inxs.hemant ] Why not?
+ 207216 [foamdino gma] On *nix platforms, redirecting output to another file is as simple as
  + 207303 [vijaypatel c] Thanks a lot eveyone. This place is wonderful.
  + 207304 [jan.svitok g] Recently (=w2k+),

^ why doesn't Array include Comparable
207224 [ara.t.howard] why __wouldn't__ one want this?
+ 207229 [hal9000 hype] Offhand I would guess it's because arrays can
| + 207261 [logancapaldo] But spaceship is already defined for array (and it does the right
| | + 207266 [james graypr] I have to agree.  I know I've wanted it a couple of times now.
| | + 207286 [ara.t.howard] yeah - exactly.  by implimenting <=> it __is__ comparable in that one can
| + 207281 [ara.t.howard] i don't understand - it's up to to the objects inside the container to
|   207291 [Daniel.Berge] FWIW, I modified the Array class to include Comparable and then ran both the
+ 207267 [transfire gm] Indeed I have found it useful to

^ Job Offer: Agile Tapestry, Spring Webflow, Ruby (Prague, CR)
207234 [kajism yahoo] We are searching for enthusisastic agile developers for full time job
207238 [headius head] Sounds like a good environment for JRuby!

^ blade will be stopped
207236 [sinara blade] 9 August 15:00 - 13 August 1:00 (UTC)

^ Error though exception handling
207237 [ rsm home.se] /app/ruby/1.8.4/lib/ruby/1.8/net/telnet.rb:551:in `waitfor': timed out
207284 [ara.t.howard] irb(main):001:0> begin; Timeout.timeout(1){ sleep 2 }; rescue Timeout::Error; p 42; end

^ bug in ruby or bug in my brain?
207244 [ngoc yahoo.c] #!/usr/bin/ruby
+ 207246 [matz ruby-la] I don't know but both caused an exception on my box by using random
| 207248 [ngoc yahoo.c] My box is Redhat Enterprise Workstation 3.0
+ 207285 [nobu ruby-la] line.chomp!

^ Ruby Weekly News 31st July - 6th August 2006
207251 [timsuth ihug] Use the link above for a nicer version of this newsletter that's formatted
207262 [timsuth ihug] * RUBY ROUC conference

^ Looking for a Fast Persistent Store
207271 [hutch recurs] * I can use it from Ruby
+ 207275 [hhausman gma] If you're the fun and adventurous type you might want to look into
| + 207282 [znmeb cesmai] fast by adding RAM and tuning the I/O subsystem and the kernel, and
| | 207300 [hutch recurs] A few GB max for one set of applications, far far less for others.
| | 207470 [znmeb cesmai] A few GB ... I'd be looking at a "real database" for that. "Pay me now
| | 207749 [hutch recurs] Well, my concern comes probably comes from the same place that your
| | + 207793 [headius head] What about a prevalent DB, like Madeleine? You'd need the couple GB to keep
| | + 207835 [khaines enig] How fast is fast enough, and what kind of transaction support do you need?
| |   + 207869 [garbagecat10] Kirk, how did you do this? Are you storing immutable objects and
| |   | + 207879 [collinsj sea] I'm interested in this, too...please make an announcement on the list
| |   | + 207882 [khaines enig] I don't think it is necessarily a better mousetrap.  In this case, I'm
| |   |   + 207889 [garbagecat10] With all the times I've reinvented this wheel, I've never tried
| |   |   | 207893 [khaines enig] Not really.  I have not stored the results of any tests to date.  The
| |   |   | 207901 [garbagecat10] I was so interested in this idea that I cobbled up a quick test on a
| |   |   | + 207915 [hutch recurs] directory, nothing shared though. No problems until you did a 'ls' by
| |   |   | | 207928 [garbagecat10] Clearly a directory hierarchy is the only way to make this work, and Kirk's
| |   |   | | 207975 [hutch recurs] So was I but it actually is quite good (I'll publish some
| |   |   | | 207978 [garbagecat10] That's a pretty constant tradeoff, speed for space, and it shows up in many
| |   |   | | 208165 [hutch recurs] I absolutely agree which is why I've implemented the filesystem route
| |   |   | | + 208169 [garbagecat10] for a guaranteed-devlivery messaging system. It used a decidedly
| |   |   | | + 208171 [garbagecat10] Ok, did some reading up on Perst- no real magic there. They simply put
| |   |   | | + 208634 [khaines enig] Just FYI, I still haven't finished packing things up into a separate
| |   |   | + 208094 [billk cts.co] What is being measured?  Access time for files that already exist?
| |   |   |   + 208098 [chiology gma] What about writing a thin C extension for interfacing with Perst?
| |   |   |   | + 208144 [headius head] For that matter, you could just try using JRuby, which would let you call
| |   |   |   | + 208166 [hutch recurs] That's a good point. I don't think I want to involve Java in this if
| |   |   |   |   208499 [chneukirchen] I've just discovered RScheme's PStore,
| |   |   |   + 208126 [garbagecat10] I wanted to put a rough lower bound on the performance of the
| |   |   |     208173 [jonsmirl gma] You are rebuilding many of the features of git.
| |   |   |     208175 [garbagecat10] Write-once/read-many is the optimization profile for archival storage,
| |   |   |     + 208180 [khaines enig] A persistent session cache was actually my original motivation when I
| |   |   |     + 208182 [jonsmirl gma] Active sessions would stay as files and generate a new key each time
| |   |   |       208188 [garbagecat10] Once again, you're solving a rather different problem (or perhaps
| |   |   + 208005 [chneukirchen] (How) do you handle object references?
| |   |     208010 [khaines enig] It uses Marshal.
| |   + 207913 [hutch recurs] Oh, this sounds very cool! Even if it doesn't help with this
| + 207288 [hutch recurs] I have had a look at Mongoose, and quite like it. I'm sure to find a
|   207302 [simon.kroege] All I can say is SQLite3 was amazingly fast at solving every problem
+ 207276 [shortcutter ] What about PStore?
| 207289 [hutch recurs] Oh. Right. PStore never registered with me before.
+ 207277 [ara.t.howard] check out joel's fsdb - it's very nice if you want to go pure ruby.  i've used
| 207299 [hutch recurs] I'm already using that (version 0.5 -- I can't get to RAA right now
| + 207301 [ara.t.howard] please post a summary of your findings when you run your tests - i'd be
| + 208418 [vjoel path.b] I apologize for the lack of fsdb stuff on the RubyForge page. I've never
|   208425 [garbagecat10] Austin Ziegler has automated the "Rubyforge dance"- look at
|   208431 [halostatue g] Actually, the Net::LDAP Rakefile is the best thing to look at right now. ;)
|   + 208434 [garbagecat10] And he passes the proverbial buck! :-)
|   + 208460 [vjoel path.b] I will look at both before I start dancing. Thanks to both of you :)
+ 207473 [snacktime gm] Why not use berkeleydb?  There are ruby bindings for it.
| 207748 [hutch recurs] The licensing cost of bdb for commercial re-distribution is
+ 208007 [jonsmirl gma] SQLite has fully Ruby support and is free.

^ Re: Job Offer: Agile Tapestry, Spring Webflow, Ruby (Prague,
207274 [drnicwilliam] No no no. In Java you can do less, not more.
207361 [perrin apoth] I can do less in the shell -- it's one of my favorite utilities.  Why
207545 [kajism yahoo] We are creating models (Ruby web based modeling tool) from which parts

^ Automatically setting irb context
207294 [bpettichord ] $session = AIMS::Session.new

^ irb output
207307 [jamierobinso] i have a ruby/watir script that i evoke from irb containing the
207337 [patrick pksp] require 'watir'
207499 [jamierobinso] Thats great thanks. Can this be modified so that we pull out only the

^ [ANN][SOC] Ariel 0.0.1 released
207309 [asbradbury t] = Ariel release 0.0.1

^ Why is this returning nil?
207310 [sambient gma] class User
+ 207312 [decoux moulo] print @level
+ 207313 [farrel.lifso] print and puts return nil. As they are the last commands executed
+ 207314 [mvette13 gma] 2 things..
+ 207315 [M.B.Smillie ] Because methods return the value of the last statement.  In this
+ 207316 [vakhov gmail] You forgot quotes in line print #{@level}. Change it to "print
  + 207320 [vakhov gmail] Oh. Some mistake. Change it to
  + 207325 [sambient gma] Wow..lot of answers, thanks to all.

^ Code structure and using "require"
207311 [theopensourc] I'm coming from a java world and I'm trying to understand the structure
+ 207321 [M.B.Smillie ] It's actually something like Java's classpath.  There are several
+ 207323 [transfire gm] T.
+ 207327 [james graypr] Welcome to Ruby.
  207338 [theopensourc] Excellent.

^ Does Ruby have a built-in SMS Class??
207317 [trupti mobli] Can we send SMS using a ruby script from a PC to a mobile?? Does Ruby
207328 [collinsj sea] But SMS can almost always just be sent as email, right? So you could use
+ 207335 [M.B.Smillie ] I wish.  I know this is common in the US, but elsewhere it's a
+ 207336 [trupti mobli] Hey thanks Justin , completely slipped my dud mind , that I can send it
+ 207469 [dido.sevilla] No. I've worked with all of the major mobile carriers in my country

^ how to see if a variable matches an array element?
207318 [john.fink gm] Hey folks,
+ 207326 [dblack wobbl] raise unless choices.include?(userchoice)  # or something like that
| 207332 [john.fink gm] Yeehaw, that did it.  Thanks David.
+ 207329 [collinsj sea] unless choices.include? userchoice
| 207334 [john.fink gm] And that too.  As always, more than one way to skin a cat.  I had totally
+ 207330 [james graypr] die "Please choose one of #{choice.join(',')}." unless
| 207333 [james graypr] I must be having Perl flashbacks today.  die should be raise, of
+ 207331 [M.B.Smillie ] Check the documentation for the Array class at http://ruby-doc.org/core
+ 207380 [patrick pksp] irb(main):031:0> choices = %w{R P S}

^ Unable to call Java from a Ruby Script
207319 [trupti mobli] I am trying to call a java class from my ruby script. I have installed
207439 [headius head] - WATIR will not currently work in JRuby because we do not have a win32 OLE

^ Einrichtung einer deutschsprachigen Ruby-Newsgroup (bitte lesen!)
207322 [usenet-aug-2] My apologies! The rest of this article is in German. It's about
+ 207339 [Mail Jonas-H] Good Idea.
+ 207366 [martin snowp] Leider, obwohl ich Deutsch sprechen kann, kann ich Englisch viel
| 207526 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
+ 207374 [ jupp gmx.de] If you ask me it is a good idea to create Ruby newsgroup but you
+ 207391 [stesch no-sp] There's no Ruby traffic in de.comp.lang.misc. So the chances are
| 207505 [usenet-aug-2] Du hast da sicher nicht ganz unrecht. Der Probleme beim Einrichten
+ 207412 [james.britt ] James Britt
| 207506 [usenet-aug-2] Thanks!
+ 207511 [shortcutter ] Ich habe kein Interesse.
+ 208809 [marinho.tobo] Also ich fde eine deutsche Liste gut, aber die hat natlich ein paar
| 208926 [chneukirchen] Beim derzeitigen Status von ruby-de-talk (nlich, "tot"), ist das
+ 208932 [usenet-aug-2] F die Gruppe de.comp.lang.ruby wurde heute ein RfD (Request

^ Enumerable#all? and empty arrays
207324 [andre digira] => []
+ 207341 [ara.t.howard] well - it's either that or false.  we'd need maybe for it to really make
+ 207344 [angus quovad] It's what modern logic says... or something like it.
+ 207346 [flori nixe.p] I think they are modeled after universal and existential quantifiers in
+ 207348 [ mfp acm.org] a.all?{ ... }   == true
| 207359 [andre digira] OK, thank you all for the explanations :)
+ 207444 [ihatespam ro] It's mathematically consistent.
  210027 [strobel secu] lly=20

^ [ANN] Rails 1.1.5: Mandatory security patch (and other tidbits)
207345 [david.heinem] We're still hard at work on Rails 1.2, which features all the new
+ 207350 [tdjordan gma] I'm getting a Zlib::BufError when it gets to actionpack
| + 207353 [Daniel.Berge] On a completely unrelated note, what the heck is "flooshing"?  Some form
| + 207354 [wgrosso wgro] Me too. I'm on Windows, if that matters (does it work on other
|   + 207356 [james graypr] I did update successfully on Mac OS X.
|   + 207357 [mvette13 gma] I am getting...
|   + 207363 [tdjordan gma] gem --version ==> 0.9.0
+ 207365 [khaines enig] This seems misguided to me.  One of the things that I have always
| + 207367 [ksruby gmail] +1
| | 207368 [Daniel.Berge] I kinda took this message to mean that they would give folks some time
| + 207369 [M.B.Smillie ] There are competing interests at stake beyond adhering to general
| | + 207375 [jaever gmail] This update worked fine for me on OS X.
| | + 207387 [james.britt ] Good point.  I think what may have been irksome is the perception of the
| | + 207389 [david.heinem] What Matthew said. We'll release the details once everyone has had a
| |   + 207392 [tdjordan gma] yup it works now.
| |   | 207405 [mtrier gmail] Also works for me now.  Thanks David.
| |   + 207408 [james.britt ] Thanks for getting this patch out.
| |   + 207579 [khaines enig] It goes beyond that.  To quote Paul Legato (his comments can be seen in
| |     207581 [chneukirchen] Alternatively, you (or everyone else with a bit experience of Ruby)
| |     207585 [khaines enig] I fully agree, and fortunately this is a simple one to go and figure out
| |     + 207604 [gwtmp01 mac.] Why is it that folks happily use open source software at no cost and
| |     | 207607 [wgrosso wgro] So, let's pretend for a moment that sometime within the next 24 hours, an
| |     | + 207609 [codeblogger ] I totally agree! Thanks, Bill, for pointing this out!
| |     | + 207610 [drbrain segm] This is the fourth vulnerability that I know in Rails of but the
| |     + 207611 [ksruby gmail] I completely agree with Kirk. Especially considering that 1.1.5 patch
| |       207618 [snacktime gm] The only issue I have is with not disclosing the nature of the
| |       207624 [codeblogger ] ...
| + 207372 [james.britt ] I agree.  I understand there's value in insisting on applying the
|   207377 [mtrier gmail] Also getting the Zlib::BufError problem on Windows.  Advice?
|   207378 [klaste gmail] As mentioned in the rubyonrails weblog a "gem install rubyzip" should fix it.
|   207383 [mtrier gmail] Thanks Stefan but no workie.
+ 207452 [johnwilger g] Sorry, but this is ridiculous.
  + 207453 [johnwilger g] Doh! By "fix" I mean "exploit". Obviously, you told us how to fix it. :-)
  + 207457 [cdc cyphers.] Care to spend some time looking into files that have changed between
    207542 [dmitry.sever] Could someone else, please, confirm them?
    207566 [tamerlin gma] ENV["RAILS_ENV"] = "test"
    207600 [drbrain segm] test/rails is part of ZenTest.  You do have the ZenTest gem
    207662 [tamerlin gma] Without ZenTest, wouldn't the tests have failed before the Rails update?
threads.html
top