285984-286900
285772-293800 subjects 286185-287042
^ popup after selection from selectlist
285984 [giel degekst] I got a problem.
^ problem with sockets
285988 [ian frogcott] I've just started using ruby and thought I'd do some experimenting
286022 [jftucker gma] STDIN.gets blocks hard on windows - that is, it blocks at the "c
286026 [garbagecat10] The generic answer that EM would provide is: "don't use threads at all."
+ 286031 [luislavena g] AFAIK, there was a patch for 1.8 that solved this, but couldn't find
+ 286032 [jftucker gma] The video there doesn't use threads. That's a completely "native" EM
286088 [ian frogcott] with gets, and it still has the same error.
+ 286143 [garbagecat10] "EM" is EventMachine: http://rubyforge.org/projects/eventmachine/
+ 286144 [luislavena g] I/O operations are blocking thread in 1.8 (this under Windows)
+ 286191 [jftucker gma] Ian,
+ 286196 [fred lacave.] I know it has no bearing to your current point, but this is unaccurate.
| 286249 [jftucker gma] Right, ARGF. In fact, it's all of ARGF in order isn't it? Something =20
+ 286264 [ian frogcott] The problem is the way that ruby deals with the ConsoleIO, which is in
^ With statement
285993 [oliver.saund] I'm pretty sure ruby doesn't have a with statement. Is it possible to
+ 286002 [larsch belun] module Kernel
| 286005 [giuan.m gmai] Or
+ 286010 [m_goldberg a] Maybe. You're not very clear on what semantics you expect from
286020 [oliver.saund] Great solutions thanks guys.
^ random i/o disk file
286004 [tc tomcloyd.] Am definitely on the steep part of the ruby learning curve. I've
286008 [denis hennes] It works just like in C....
286013 [tc tomcloyd.] Oh, man, I really DID miss something. What great news. You've made my
^ [QUIZ] Studying Blackjack (#151)
286012 [james graypr] 1. Please do not post any solutions or spoiler discussion for this quiz until
+ 286100 [phillipsds y] Are we able to post partial / full outcomes within the 48 hours?
| 286105 [james graypr] You bet. Feel free.
| 286193 [denis hennes] charset=US-ASCII;
| + 286203 [sander.land ] I think that's correct.
| | 286232 [denis hennes] I'm calculating (based on every permutation of remaining cards) rather
| + 286284 [james graypr] Correct.
+ 286334 [denis hennes] Here's my solution, with a sample run.
+ 286344 [sander.land ] Here is my solution. It's just another simulation.
+ 286410 [jamesbkoppel] 1)The hand of the dealer . E.g.: $probs[1][:A][:K][:hand]==[1,:A,:K]
+ 286860 [james graypr] => 22
286883 [sander.land ] Thanks. I should have thought of this considering Dennis' results matched mine.
286900 [james graypr] this. ;)
^ superb idea from the python camp
286015 [martindemell] * Inputs and outputs are handled for you automatically
286081 [chiology gma] Sounds a lot like Balloon that _why made.
286082 [martindemell] No, Balloon (though a brilliant piece of work in its own right) is a
^ Checking an array for an item
286023 [dominicjeffe] How come this code doesn't return "true" for the following?
+ 286027 [dchelimsky g] It uses ==, not ===.
+ 286028 [TimHunter nc] Because include? doesn't test the class of an object, it tests for the
+ 286033 [wieczo.yo go] class Array
+ 286068 [dominicjeffe] Thanks
+ 286074 [rick.denatal] Well, if you're trying to find out if the array contains at least one
^ iterating over array of variables - can't change them?
286040 [andrewstaffe] title="Title"
+ 286043 [olsonas gmai] You're looking for map, which performs the action on each element and
+ 286044 [stefano.croc] The block variable (item) is set by ruby to "point to" each object of the=20
| 286049 [andrewstaffe] perfect
+ 286045 [sepp2k googl] No, it doesn't. It changes the strings, it doesn't do anything to the
+ 286046 [shortcutter ] It does not work because you assign to "item" which is a local variable
+ 286047 [tomaso.tosol] item="" sets item to reference to another string instead of the original at
+ 286055 [kbloom gmail] Refer to the variables as strings and use eval.
286071 [shortcutter ] I believe this is rather inefficient (aka slow) and more importantly
286286 [kbloom gmail] Whether or not it's needed depends entirely on how much he's condensed
^ how to get CPU usage
286050 [lcalje gmail] For the (RAILS) application I'm writing I need to know what the CPU
+ 286053 [djberg96 gma] gem install sys-cpu
| 286095 [fedzor gmail] Is there a way to control how much CPU Ruby uses **FROM WITHIN** ruby?
| 286130 [djberg96 gma] Process.setrlimit
+ 286164 [znmeb cesmai] Are you looking for the overall system utilization? There are lots of
286167 [fedzor gmail] I'd love to see that code!
286178 [znmeb cesmai] /proc/self/stat
286210 [fedzor gmail] Thanks!
286212 [thomas.adam2] No -- that has to be controlled at the process level, something your
286216 [gwtmp01 mac.] Perhaps something like Process::setrlimit is something the OP could use?
286222 [fedzor gmail] I looked at setrlimit, but it seems to quit the process if it
+ 286225 [gwtmp01 mac.] I don't know if setrlimit is appropriate for your use or the OP's use
| 286229 [gwtmp01 mac.] On Mac OS X, SIGXCPU gets sent every second or so once you've
+ 286305 [znmeb cesmai] My last post was semi-facetious ... as it turns out, everything you need
286309 [fedzor gmail] So ruby methods won't *try* to use as much CPU as necessary, just as
286318 [znmeb cesmai] Actually, all of that is handled by the operating systems, and most of
^ REXML::Document could not parse UTF-8 "<name>\302</name>"
286054 [j.prabawa gm] require 'rexml/document'
286208 [matz ruby-la] "<name>\302</name>" is not a valid UTF-8 byte sequence. The rest is
286235 [j.prabawa gm] 1. I get an XML that is declared to be valid UTF-8, but
286241 [matz ruby-la] I guess you have to define what you want to do with this broken UTF-8
286333 [j.prabawa gm] Thanks Matz :)
^ Re: zed shaw zed shaw zed shaw
286056 [rick.denatal] Well, I don't know if Rails is really a ghetto. But ruby-talk appears
+ 286059 [billk cts.co] require 'net/http'
| + 286072 [mortonda dgr] Now, that's what the ruby community is all about! LOL
| + 286085 [rick.denatal] p x.tr('Mm','Zz').gsub(/ez/,'em').gsub(/arklar/,'edshaw').scan(/Ze\w+,\s+th.*,\s+or\s+z\w+s./m)
| | 286106 [billk cts.co] As such things go, immediately after I posted I noticed some glitches
| + 286122 [w_a_x_man ya] require 'net/http'
+ 286104 [vjoel path.b] To be more precise, it seems that Giles has blundered into a secret
| 286111 [vjoel path.b] Hat trick: Gone with the Winds of War and Peace.
| + 286115 [mental rydia] Is there a database of movie titles readily available somewhere?
| | 286132 [jontyjont bt] Thanks for the link!!
| | 286136 [chris ruby.t] You missed getting to 6
| | 286219 [martindemell] Not to mention, it's "20000 leagues under the sea".
| | 286250 [rick.denatal] Live Nude Girls Just Want to Have Fun in Acapulco
| + 286117 [ruby philip.] Yes. Unless we make it the next ruby quiz to query imdb.com :)
| | 286121 [mental rydia] Well, it shouldn't be too hard in principle -- they have complete pages
| | 286134 [evanhaveman ] charset=US-ASCII;
| + 286405 [kbloom gmail] K=100 #set this to the number of movies you want in the invented title
| + 286544 [ray.case gma] Ken, thanks for closing this thread with a bang!
| + 286589 [ray.case gma] HOUSE PARTY 2 DAYS IN THE VALLEY GIRL IN THE CADILLAC MAN TROUBLE
| 286621 [rick.denatal] Yep, I'd think that loops shouldn't be considered kosher.
+ 286253 [jeremymcanal] The buffalo thing is an old linguistics thing. You can make a whole
^ [OOT] rubygems: location of my gems
286060 [rubylearner ] Is there an easy way of finding the location of my installed gem
+ 286062 [mgreenly gma] not in front of a computer but 'gem env | grep -i gempath' should come close
+ 286065 [jftucker gma] gem which gemname
+ 286067 [kbloom gmail] __FILE__ will tell you the location of the file in which you use it. So
+ 286069 [james graypr] gem_spec = Gem::GemPathSearcher.new.find(require_name)
286080 [rubylearner ] This is exactly what I was looking for. Thanks a lot.
^ Re: rubygems: location of my gems
286063 [luislavena g] irb(main):001:0> require 'rubygems'
^ schedule jobs with ruby
286064 [junkone1 gma] are there any tools to schedule jobs with ruby in xp. i dont want to
+ 286070 [shortcutter ] I think there was some discussion of scheduling implemented in Ruby a
| + 286076 [djberg96 gma] The Task Scheduler is already a service, but it's possible there's
| + 286179 [mo_mail ongh] I use PyCron on Windows which is very similar to Cron. It works well,
+ 286152 [lrlebron gma] You may want to take a look at this article
| + 286153 [jmettraux op] Though maybe it's already a bit too much for just "ruby in xp".
| + 286154 [pstickne gma] (This was just the first google result ;)
+ 286192 [jftucker gma] How about the "at" command instead then?
^ DBI doesn't seem to install correctly on CentOS
286077 [xcampanoli g] I tried installing with the old tarfile sequence using setup.rb, as I
286079 [joshua.schai] ruby setup.rb config --with=dbi,dbd_mysql
+ 286083 [xcampanoli g] ruby setup.rb setup
| 286091 [xcampanoli g] I just tried rebooting also, and that doesn't help.
| + 286094 [xcampanoli g] cksum dbi-0.1.1.tar.gz
| | 286107 [joshua.schai] I'm not sure if you need this or not because I'm just getting into
| | 286119 [xcampanoli g] I cannot read that website, which I see as Japanese. Perhaps you could
| | 286137 [joshua.schai] There should be a link on that page that says "English" which will
| | 286141 [xcampanoli g] Yes, but the section on installation which it refers to is in Japanese?
| | 286381 [xcampanoli g] I appear to have this working now, although I have not fully tested it.
| + 286102 [xcampanoli g] I have lost the thread at a place in /usr/lib/ruby/site_ruby/1.8/dbi.rb
| 286116 [xcampanoli g] This appears to fail the same way on my Ubuntu system after I installed
+ 286084 [ian frogcott] On 4 Jan, 20:32, Joshua Schairbaum <joshua.schairb...@gmail.com>
286087 [xcampanoli g] Yum works just fine, it's just that CentOS doesn't have a package for
^ [ANN] Mr Bones - 1.3.0
286086 [tim.pease gm] Mr Bones
^ broken gems uninitialized constant Gem::CommandManager (Nam
286089 [dtilley roch] I am a ruby newbie. Somehow (I suspect with a gem update command) I have
+ 286142 [renard nc.rr] The proper syntax
+ 286183 [drbrain segm] Looks like you're using an older `gem` executable with a newer
^ String#tr_s
286090 [nefigah gmai] This seems to be a pretty good example of a "built-in" function that I
+ 286096 [jan.dvorak k] It's named after the unix program 'tr' with parameter '-s' as in squeeze.
| 286112 [nefigah gmai] That makes more sense, thank you. I'm still not sure if it's justified,
| 286129 [gwtmp01 mac.] # Remove blank lines from standard input
+ 286099 [sepp2k googl] No, he doesn't.
286124 [robert.dober] Stupid me, I thought that was simply #tr, my bad.
^ Website comments with ruby
286092 [ruby datanet] I have a website and I would like some of the pages to be able to accept
286118 [dangerwillro] The Ruby for this is not going to be any simpler than PHP, basically.
^ Contacting Toshi Hirooka (tosik) about using Rulang
286101 [vosechu gmai] I'm going to be using RulangBridge by Toshi Hirooka (tosik) in my
286113 [dangerwillro] Looks like the last update to that wiki was May 23rd, so it may be
286128 [vosechu gmai] Thanks for the advice. This project requires that the owner add me to
^ Best Ruby book for experienced programmer
286120 [kamilski81 g] I have about 5 years of work experience in programming websites, and
+ 286125 [kamilski81 g] In addition, my work experience is primarily in Java, and JSP, with the
| + 286127 [qbproger gma] It seems to do a pretty good job. A good way to learn the language is
| + 286135 [evanhaveman ] charset=US-ASCII;
| 286138 [bjorn.maelan] I would recommend "The Ruby Way" as well. I think it will suit you
| + 286199 [victor.reyes] I have a dozen or so Ruby books, although I am still trying to learn the
| | + 286306 [znmeb cesmai] As far as I'm concerned, for an *experienced* programmer who wants to
| | + 286427 [softmindtech] This is Regarding:- " Teach Yourself Ruby in 21 Days "
| | 286441 [victor.reyes] Softmind,
| + 286223 [jari.william] I have the first edition of "The Ruby Way". Does anyone know if there
| + 286228 [james.britt ] It's bigger.
| + 286240 [TimHunter nc] Well, the 2nd edition has a huge section about RMagick. That right there
| 286269 [rick.denatal] The Ruby Way certainly covers a lot of material, and is a formidable tome.
| + 286320 [znmeb cesmai] I have also just gotten _Design Patterns In Ruby_. I picked it up
| | 286414 [dangerwillro] The Pickaxe is a vital reference book for anybody doing anything with
| | 286419 [znmeb cesmai] I have, but it was so bad I've forgotten which one it was. :)
| + 286386 [s0nspark gma] Same here... yet I'd really like a printed version of the complete API
| 286392 [TimHunter nc] The best source seems to be Chapter 21 of the Pickaxe, combined with
+ 286131 [TimHunter nc] The canonical Ruby book is _Programming_Ruby_ by Dave Thomas. It's now
^ Re: Mr Bones - 1.1.0
286133 [nexneo gmail] after running merb generator i get similar error.
^ Re: Studying Blackjack (#151)
286139 [chris.lowis ] Here's mine so far, my first ruby quiz !
+ 286147 [rubytraining] Here are my results. I combined the 10 and the face cards in one row
| + 286150 [qbproger gma] I didn't think it was supposed to be run a specific number of times,
| | 286162 [james graypr] I think I've heard about two different, but very interesting
| + 286165 [james graypr] I believe what you say is true, though I think it's a detail typically
| + 286181 [micathom gma] I'm sorry for asking this dummy question (and I hope not to spoil it
| | + 286184 [micathom gma] It's * 4 because there are 4 colours.
| | + 286283 [james graypr] No worries. I probably didn't explain it well.
| + 286267 [rick.denatal] Interesting. This seems to have to do with the Casinos doing away
| 286285 [james graypr] This isn't really true, though it's a myth both Hollywood and the =20
| + 286310 [rubytraining] After going the randomized simulations route, I was inspired by the
| | + 286325 [micathom gma] When actually calculating permutations it could also be interesting
| | + 286377 [rubytraining] It took me a while, but after comparing Denis' code and my own, I
| | 286379 [denis hennes] That's interesting. The understanding I had was that a dealer could
| | + 286389 [chris.lowis ] I'm not sure if that's what I do with my algorithm, but that's what I
| | + 286390 [james graypr] You have all of that right, but Eric was saying you don't properly
| | 286395 [denis hennes] Actually, I think my code is correct, but I might be snow-blind.
| | 286397 [denis hennes] ... original function ...
| | 286407 [rubytraining] Yeah, it was a pretty subtle issue. I read your code many times,
| + 286335 [novakps gmai] A card-counting-system evaluator would be interesting as a follow-on
| + 286337 [chris.lowis ] Here's my solution. I'm particularly interested in comments on my
| | 286343 [micathom gma] Here is my solution. I originally tried to run through all solutions
| | 286349 [rubytraining] Here's my solution, which, like Denis Hennessy's solution, attempts to
| | 286466 [rubytraining] Well, it looks like I over-engineered my solution. After noting that
| | 286711 [robert.dober] exact values so I explored the whole game tree of the dealer.
| + 286366 [james graypr] This has been well studied. The short story is that most of the
+ 286163 [james graypr] Welcome to the quiz. Glad to have you.
+ 286195 [denis hennes] You have an extra card in your hand (a '1' as well as an ace).
286205 [chris.lowis ] Thank you, well spotted !
286206 [chris.lowis ] Here's my updated results using a two-deck deck and 5000 simulated
^ [ANN] rbridge 0.1 Released
286151 [vosechu gmai] rbridge version 0.1 has been released!
^ some help needed on regex
286155 [junkone1 gma] I have a very complex regex requirement and need some hand here. I can
+ 286156 [fedzor gmail] well since you can describe it in english alright....
+ 286157 [pstickne gma] break it down... these aren't all *exactly* to your specs--it's less
^ 10-Minute Quick Start Guide for Facebooker - Create a Facebook Desktop Script Using Ruby in 5 Easy Steps
286158 [geraldbauer2] I've published a new 10-Minute Quick Start Guide for Facebooker
^ Invalid char errors
286159 [grabber gmai] Yeah! I`m learning to program in ruby but i can`t understand what i`m
286160 [pstickne gma] Use an editor/viewer that will show characters outside of the normal
286161 [nobu ruby-la] Or, copy&paste from http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/286159
286279 [grabber gmai] Oh! Thanks i`m using TextMate and i activate "Show invisible" and see a
^ Re: parse tree redux
286176 [ryand-ruby z] I still don't understand the 1-line obsession... and yes, that is
286180 [mailing.mr g] i recently started playing with Parsetree and Ruby2Ruby and Ruby2C,
286248 [ryand-ruby z] complete lack of documentation?!? I write developer tools. I basically
286251 [mailing.mr g] Hmmm. Problem is that sometimes when you look for a solution for certain
threads.html
top