242196-243432

241942-244107 subjects 242352-244124

^ How to do INTERESTING things with Ruby sockets???
242196 [theosib gmai] I've done quite a bit of reading about socket programming in Ruby, but
+ 242197 [garbagecat10] You don't say if this is a learning exercise in low-level socket programming
+ 242369 [see signatur] To do the things that you seem to want to do, you will need to

^ Mocha raise exception first call, return value second call
242198 [nappin713 ya] Is there a way to have mocha raise an exception the first time an stub
+ 242200 [jeremy bitsw] server.expects(:connect).returns do
+ 242231 [jamesmead44 ] results = [ lambda { raise ServerBusy }, lambda { return true } ]

^ High ActiveRecord CPU Utilization
242199 [lojicdotcomN] When running a test that primarily involves loading up a few MySQL
+ 242201 [jeremy bitsw] Hey Brian, could you start this conversation on the Rails list? It's a
| 242301 [ben bleythin] For what it's worth, I'm using AR extensively outside rails and would
| 242329 [lojicdotcomN] I never saw Jeremy's message :( I don't know if the problem is with my
| 242340 [avdi avdi.or] The best place to look for ruby-related mailing lists and newsgroups
| 242441 [lojicdotcomN] $ ruby -v
| 242449 [lojicdotcomN] Interesting. Do you mind if I ask where you got the 10 to 30% figure?
| 242515 [jeremy bitsw] I used it for the earlier benches and it has posed no problems for any
| 242566 [martindemell] And it's already in portage (I \heart Gentoo!)
+ 242202 [lojicdotcomN] mongrel_rails start -e production
| 242204 [ssmoot gmail] Ruby is a slowish language right now, but this isn't really Ruby's
| 242213 [lojicdotcomN] Yeah, I remember when I first saw the computer language shootout stats!
+ 242248 [khaines enig] No, that isn't surprising.  Any ORM trades CPU utilization outside of the
| 242327 [lojicdotcomN] I agree about ORMs trading CPU for convenience, but I've used other ORMs
| 242337 [ssmoot gmail] I'd definitely echo the perception that AR is unreasonably taxing on
+ 242424 [zach.dennis ] What is your script doing? Can you post it?
  242440 [lojicdotcomN] I created a smaller test that I could post that exhibits the same
  + 242442 [twifkak comc] Is this being run in development mode, still? Dev mode does database
  | 242443 [lojicdotcomN] Nope, it's running in the production environment.
  + 242466 [jeremy bitsw] I wrapped this up in a simple script that anyone with MySQL or SQLite
    242501 [jeremy bitsw] An updated script that actually works with MySQL is attached ;-)

^ [ANN] memcache-client 1.3.0 Released
242203 [drbrain segm] memcache-client version 1.3.0 has been released!

^ Re: mssqlclient returns nil for money, decimal, numeric fiel
242205 [d_rems yahoo] I am using last rails (1.2.2), ruby 1.8.5.

^ [ANN] Ruby-IXP 2.0.0
242206 [ snk gna.org] = Version 2.0.0 (2007-03-06)

^ Set operations on arrays of non-trivial objects
242207 [jes luretank] # MAIN QUESTION
242212 [shortcutter ] list.select {|p| b.include? p.ssid}
242546 [jes luretank] Robert

^ using win32ole to print .txt, .pdf, .xps files
242209 [justin.irigo] good afternoon to all.
242309 [dave burt.id] If you've written VBA code for MS Office programs, you may notice the

^ Satish has Tagged you! :)
242210 [satish.talim] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

^ elseif v. elsif ??
242214 [dolgun excit] What the??  I just spent two days trying to figure out why I couldn't
+ 242217 [perrin apoth] Ruby isn't the only language that does that.
| 242341 [ ark acm.org] Different?
| + 242432 [msoulier dig] Not to mention that Ruby builds on Perl, which uses elsif.=20
| + 242435 [dangerwillro] Remember in those days, heck even in the 80's languages and tools
| | 242624 [rick.denatal] On the other hand.  I once was talking to the late John Cocke.  John
| | 242658 [dangerwillro] Interesting, but if you type CONTINUE or elsif that many times and
| + 242461 [perrin apoth] I was being slightly facetious.  I really don't see anything
+ 242219 [robert.dober] Because it nvere sees it :(
| 242224 [stefano.croc] Not always. In Robert's first example,
| 242232 [robert.dober] Good points Stefano, conclusion *always* use "then" :)
+ 242222 [hans.sjunnes] Well, Ruby doesn't try to differentiate itself in ridiculous ways just
| 242225 [robert.dober] No of course it is not :)
| 242230 [chris.lowis ] I find this page very helpful.
| 242235 [dolgun excit] First, I'd like to say that the web site is really beautiful and eye
| + 242238 [dolgun excit] ~/2testing/dir1$ ruby rubyHelloWorld.rb
| | + 242241 [robert.dober] I could explain why, but just follow Stefano's advice and put "then"
| | + 242243 [dolgun excit] I did a search on the C/C++ page for 'elsif' and it wasn't found.
| |   + 242247 [dolgun excit] What does that have to do with anything?
| |   | 242249 [dolgun excit] I tried it, and I got an error for the 'elseif'.  Why is that?  If the
| |   | 242250 [dolgun excit] Hmm...I think I get it: Ruby doesn't realize elseif is another branch,
| |   | + 242252 [B.Candler po] And yours is.
| |   | | 242255 [dolgun excit] Ok, thanks.
| |   | | 242258 [dolgun excit] Thanks for all the help.  It looks like way up at the top, Robert Dober
| |   | | + 242263 [pit capitain] It all depends where you come from. Other languages have had elsif
| |   | | + 242414 [ljz asfast.c] It may seem like a ridiculous construct to you, but for lots of people
| |   | + 242253 [dolgun excit] #!/usr/bin/env ruby
| |   |   242256 [robert.dober] That is correct
| |   + 242265 [perrin apoth] Really, your complaint amounts to nothing more than "I'm more used to
| |   | + 242273 [robert.dober] Chad you remind me of a dispute between fans of Domingo and Pavarotti when
| |   | | + 242415 [ljz asfast.c] si ... , entonces
| |   | | | + 242455 [perrin apoth] Maybe we should start using Japanese, particularly for Ruby.
| |   | | | + 242483 [robert.dober] With all due respect Sir, you have forgetten
| |   | | + 242454 [perrin apoth] It's grammatically correct.
| |   | |   242467 [matz ruby-la] Correct or not, I chose 'elsif' as the shortest correct pronounceable
| |   | |   + 242481 [perrin apoth] . . . and I'm perfectly happy with that choice.  I'm sure I'd be happy
| |   | |   + 242484 [dangerwillro] be glad Mr. M didn't choose to make elsif in Japanese.
| |   | |     242507 [perrin apoth] I suspect the early popularity of Ruby in Japan had more to do with the
| |   | + 242288 [dolgun excit] Yes, I guess you're right.  I've never seen 'elsif' or 'elif' before.
| |   |   + 242289 [dolgun excit] z = if x < y
| |   |   | + 242294 [martindemell] Note the difference between
| |   |   | | + 242296 [dolgun excit] How do you turn on syntax highlighting with vim?
| |   |   | | | 242297 [sepp2k googl] Ist so, weil ist so
| |   |   | | | 242323 [dolgun excit] Hey,  I can see the elseif error now.  :)
| |   |   | | + 242298 [robert.dober] Thank you Martin, I started to feel lonely ;)
| |   |   | | + 242456 [perrin apoth] Whitespace isn't significant.  No need to make it ugly like that.
| |   |   | + 242302 [dangerwillro] No.
| |   |   |   242457 [perrin apoth] I mostly agree -- except that complaints about syntax and the like that,
| |   |   + 242389 [rimantas gma] I guess it will take a huge effort to document everything that may
| |   + 242300 [avdi avdi.or] For the record, I find a few of Ruby's naming choices silly and
| + 242240 [B.Candler po] That's because you're not exercising the section under @names.nil?
| | 242242 [robert.dober] You spoiled it ;)
| | 242246 [B.Candler po] and a good argument for code coverage testing (e.g. rcov)
| + 242254 [pit capitain] when reading (compiling) your code, Ruby can only detect syntactic
+ 242272 [dblack wobbl] No -- literally never.
| 242278 [jenda cpan.o] Yeah. Like the use of "throw" and "catch"; ".inject"; "yieieild" that's
+ 242324 [lojicdotcomN] I have a similar language background (minus php). When I first looked at
  242330 [jenda cpan.o] Don't worry. They'll go away. The Wuby moto is break what works, rename
  242363 [dolgun excit] I've seen it mentioned a couple of times--what the heck is wuby?
  + 242364 [halostatue g] Jenda, at least this version of Jenda since others seem to recognise
  | + 242370 [lionel-subsc] I don't agree. Thunderbird may be able to learn how to automatically put
  | | 242459 [perrin apoth] Ahh, the silver lining.
  | + 242388 [lukfugl gmai] I agree with you insofar as "this version". I'm under the impression
  |   242390 [robert.dober] now that might be a stupid - although unlike - typo.
  |   242394 [alex blackke] Alex
  |   + 242399 [robert.dober] Oh boy I am a bad detective, I was about to innocent the guy.
  |   + 242460 [perrin apoth] That almost makes me embarrassed to be a Perl hacker on ruby-talk.
  |     242523 [jenda cpan.o] Well this is what you get if you force an already angry person to learn
  |     + 242528 [shevegen lin] "The "Ruby in 20 Minutes" tutorial is obviously geared to the
  |     | 242575 [perrin apoth] The Pickaxe has some severe shortcomings as an instructional text for
  |     | 243432 [rubygeekgirl] I bought the Pickaxe and did great with it for the first few chapters.
  |     + 242536 [B.Candler po] FWIW, I understand this is/has changed in ruby 1.9, so that block
  |     | 242722 [jenda cpan.o] Makes sense. Except that it's a backwards incompatible change.
  |     | 242726 [dangerwillro] Jenda, certainly u b trollin'
  |     + 242550 [alex blackke] So you've been tasked by your superiors to learn a new language, and
  + 242458 [perrin apoth] It's a sarcastic, trollish way of saying "Ruby" if you're trying to
    242538 [djberg96 gma] Damn, it's also the name of my top secret fork of Ruby for MS Windows.
    + 242539 [robert.dober] Cheer up you can still call it Microruby ;)
    | 242577 [perrin apoth] No no no, the correct answer is "It's okay if I call it Wuby; I'm takin'
    + 242576 [perrin apoth] Hey . . . if you were really planning a "top secret fork of Ruby for MS
      + 242578 [martindemell] He'd need to do it because Windows can't fork :)
      | + 242579 [dave pragpro] That's strange: I'm constantly overhearing people saying "forking
      | | 242584 [perrin apoth] += 1
      | + 242583 [perrin apoth] I hadn't thought of that.  Good point.
      + 242581 [djberg96 gma] A Windows-only fork would have several advantages.
        242585 [perrin apoth] That's not a benefit of a Windows-only fork -- it's a "benefit" of
        242587 [djberg96 gma] Fair enough, but it would mean that I could drop the cruft of
        242597 [perrin apoth] Ouch.  Point taken.

^ Setting default vales
242223 [michaelst gm] I want to have some function that will two parameters. First is the
242229 [robert.dober] The first deception will come from this little snippet I am afraid,
242402 [michaelst gm] Thank you for your answer.
+ 242408 [robert.dober] Please Mike try not to top post unless you need to, normally we prefer
| 242431 [michaelst gm] def test_change(var, val)
| + 242485 [robert.dober] They second I sent the mail I knew I was not precise enough :(
| + 242497 [B.Candler po] (1) "<<" is a method call, but "=" is not (it's an assignment to a local
+ 242495 [B.Candler po] Free your mind a little :-) Allow for the possibility that there might be a

^ RDoc: XML Generate Method List
242233 [kk cs.aau.dk] I've been trying to extract the list of methods per class to XML with no

^ Regexp backtracking issues in 1.8
242237 [gaburici cs.] Basically Ruby 1.8 fails to backtrack correctly a number of regular
+ 242261 [robert.dober] Ruby 1.8 has a rather buggy regexp engine. Some constructs using
+ 242264 [wonado donne] It is an Error in Ruby 1.8. In Ruby 1.9 (with Oniguruma) it works correct
+ 242421 [atrus atrus.] I've posted a lot of very short test cases with varying quantifiers. The

^ A better benchmarking syntax (was: Automatic Benchmark Iterations)
242275 [daniel.schie] Reading Phrogz' post about automatic benchmark iterations, and then
+ 242280 [djberg96 gma] On Mar 7, 6:26 am, Daniel Schierbeck <daniel.schierb...@gmail.com>
+ 242287 [transfire gm] On Mar 7, 8:26 am, Daniel Schierbeck <daniel.schierb...@gmail.com>
| 242333 [daniel.schie] I must admit to being a great fan of RSpec, although the pace of API
| + 242336 [djberg96 gma] On Mar 7, 9:54 am, Daniel Schierbeck <daniel.schierb...@gmail.com>
| + 242339 [daniel.schie] I'm not sure... the other guy[1] suggested BenchUnit, which I think
| + 242343 [dchelimsky g] Thanks for being a fan. FWIW, the recent API changes are the last
| | 242346 [daniel.schie] Lovely :) It's a great tool!
| + 242345 [tim.pease gm] Algorithm for generating product names
|   242361 [daniel.schie] 1) 'laptop'
+ 242574 [daniel.schie] I've given this some thought, and it seems like a much bigger project
  + 242588 [james graypr] I agree and I would be happy to mentor it, so be sure and get it in
  | 242674 [daniel.schie] How could I say no now :D
  + 242591 [frdrch gmail] At the moment I want to do benchmarking two revisions (in version
  + 242673 [daniel.schie] I would surely need help of statistics gurus to get it right, so please
  + 242709 [daniel.schie] Lovely! This really seems like something that could take off!

^ Building ruby on Solaris (without root permissions).
242292 [jonathan.hop] I'm trying to install ruby under my home directory on a Solaris 5.8
242304 [djberg96 gma] This looks like the sort of error that I've run into in the past when
+ 242504 [jonathan.hop] Unfortunately I don't have another assembler I can use. Pity :-(
| 242679 [poopdeville ] On Mar 8, 2:08 am, Jonathan Hopkinson <jonathan.hopkin...@rbos.com>
+ 242633 [mailinglists] By the way: Anybody here in the beta testing for Sun Studio 12?

^ Can someone point me in the right direction? Pipe Delimited Files & Hashes...
242303 [rubygeekgirl] I have a file that is not a normal csv or tab delimited file.  It is
+ 242308 [shortcutter ] FIELDS = [:category, :subcategory, :description]
| 242326 [rubygeekgirl] Thank you, Robert!  I'm going to need to figure out what each thing
+ 242310 [james graypr] => ["Books", "Programming", "A fun book about Ruby"]
| 242319 [rubygeekgirl] Thank you!  I really appreciate it. :)
| 242321 [james graypr] Actually, FasterCSV plans for that too.  I should have said that.
+ 242313 [martindemell] Do the hash first, since that will give you a good feel for how things
  242320 [rubygeekgirl] Thanks, Martin!  I will check that out.

^ mkmf and environment variables
242305 [has.temp3 vi] I need to set an environment variable before building a Ruby C

^ Germany schoolgirls
242306 [mail_gw_ruby] Private video & photo with 18' teens. Germany extrime! )

^ reading unsigned byte
242307 [beingthexemp] I'm experiencing unexpected behavior when reading an byte.. as apposed
242316 [dale.martens] 'c' extracts a signed integer. 'C' extracts an unsigned integer.
242322 [beingthexemp] Ha, Duh, as soon as you posted this I caught that in the docs. Thanks.

^ (none)
242315 [tasmack gmai] unsubscribe

^ just saying...
242318 [martindemell] ...
242463 [perrin apoth] Excellent . . . !

^ [ANN] rSQLiteGUI 0.2
242328 [mforal.news ] It's been a while, but a new release of rSQLiteGUI is out!

^ Making "require" just work with some dynamic load path manipulation
242331 [greg.hurrell] #!/usr/bin/env ruby
242391 [transfire gm] Is there a reason you are not using setup.rb and/or gems?
242426 [greg.hurrell] Neither of those is really appropriate because the files "a.rb" and
242427 [ezmobius gma] IF you want to garauntee to require b in the same dir as a you can

^ Re: New Book: Everyday Scripting With Ruby ...
242338 [avdi avdi.or] Check out the aggregators, in particular.
+ 242358 [meisenzahl g] Thanks Avdi!
+ 242366 [rubygeekgirl] Also, there's the RubyMentor project for new Ruby users...
  242381 [theopensourc] That's a freaking cool website.
  242387 [rubygeekgirl] wonderful what the Ruby logo kit, GIMP, and collaboration can do. :)
  242464 [perrin apoth] I want to get my hands on that one.  It's probably ideal for the people
  242712 [richard.conr] Thats what I think too. Have 3 copies here at work, and me and the testers
  242756 [rubfor recit] Nice coverage - basics, xUnit, web page scripting. Just what I need.

^ Re: Trimming whitespace from ERB
242342 [djberg96 gma] I second this.
242656 [jan.svitok g] Reading the source revealed this: There is '-' ('explicit trim') mode,

^ Horizontal scaling - advice needed
242347 [do not.reply] I posted this in railsweenie, but it's not really a rails question, and the
+ 242349 [shortcutter ] I am not sure whether I get your interaction correctly.  What types of
| 242378 [temp lorrima] By interaction I just mean recording user relationships, like when one
| + 242404 [B.Candler po] And very hard (if not impossible) to enforce referential integrity on, since
| + 242533 [shortcutter ] Don't do that, i.e. don't work with multiple data stores because there
+ 242350 [lojicdotcomN] Maybe try: http://www.ruby-forum.com/forum/3
| 242380 [temp lorrima] I would agree in general, but as you mentioned earlier eventually
| 242393 [lojicdotcomN] Probably the most "notable" feature was that I really do want to do it
+ 242351 [khaines enig] Drb would rapidly become a bottleneck there.  And explicitly federating
| 242379 [temp lorrima] I've not seen any articles on the characteristics and limitations of
| 242384 [khaines enig] Sure.  Because while DRb is terribly cool and useful for a lot of things,
| 242396 [gwtmp01 mac.] I think that long before the database becomes a performance
+ 242395 [B.Candler po] something which is very difficult to build. You can make it work for, say, a
| 242544 [isak.hansen ] AFAIk edge rails does client side sessions (signed cookie) by default.
+ 242419 [drbrain segm] The set of problems you'll run into by trying to plan for scaling by
+ 242655 [pbooth nocoi] SOrry to rain on your parade. You won't learn about horizontal
threads.html
top