266279-268477
266095-273374 subjects 266503-273013
^ 2D MMORPG
266279 [schaefer88 g] I've been trying to find out what programming language would be best for
+ 266283 [wikipedianki] There are libraries for Ruby that help you do this.
+ 266317 [dangerwillro] There are libraries like rubygame and gosu. Gosu is probably more
| 266366 [apeiros gmx.] Rubygame runs on all three major platforms: Win, OS X and linux. Though
| 266369 [dangerwillro] Well, that's good to hear but their web site must be woefully out of
| 266370 [apeiros gmx.] No RDOC? http://rubygame.sourceforge.net/doc/2_0_0/ - I think there it
| + 266380 [apeiros gmx.] SDL is supposed to use the OSes libs to render the stuff. But Rubygame3
| | + 266590 [bigboss64 ip] The Simple DirectMedia Layer (SDL) creates an abstraction over various
| | + 266617 [ snk gna.org] IMHO, instead of writing their own collision framework, they should
| | 266696 [apeiros gmx.] of the rg3 collision system - mostly as an exercise in C, though, as I
| + 266400 [dangerwillro] perhaps a slight misunderstanding. My post could be read to mean 'no
| 266418 [shevegen lin] "But Rubygame3 moves away from SDL actually. It goes towards OpenGL and
+ 266385 [sean.zuzu gm] sorry if this is bad juju on the Ruby list, but if you're going to
+ 266423 [richard.conr] I am curious as to why you selected those 2, or why you are restricting
+ 266466 [jeremywoerti] Don't know if you knew this or not, but RPG Maker XP was written in Ruby
| + 266479 [schaefernn g] Too bad RPG Maker XP isn't open-source. Otherwise I'd immensely modify
| + 266567 [robert.mcgov] Thanks for posting that Jeremy, I had never heard of it. Looks
+ 266563 [ snk gna.org] If you want the *fastest*, coolest 2D game physics for Ruby, be sure to
+ 266568 [robert.mcgov] Mmm, the Sketch video is stunning. Now that is the sort of software I
+ 266626 [schaefernn g] That looks like a nice project. I'll have to check for updates as when
^ ANN: Sequel 0.1.9.12 Released
266284 [ciconia gmai] Sequel 0.1.9.12 has just been released. This release includes a few
^ sort_by { rand } not working
266285 [michael.ders] I've got an array of arrays that I'd like to sort_by random. each
+ 266287 [rrafje gmail] @all.sort_by { rand } returns a randomly sorted array, but leaves @all
+ 266290 [phrogz mac.c] On Aug 26, 7:25 am, Mike Dershowitz <michael.dershow...@jpmchase.com>
+ 266295 [kbloom gmail] sort_by returns the sorted list
| 266302 [kbloom gmail] Whoops. As soon as I posted, I noticed that there is no sort_by!.
| 266315 [botpena gmai] try
| + 266323 [james graypr] => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
| | + 266328 [apeiros gmx.] Well, it has the (extremely little) chance of being 0, which introduces
| | + 266330 [lionel-subsc] I was wondering about a crazy idea of mine: "sort!{rand<=>rand}" and
| + 266325 [apeiros gmx.] That's equivalent to sort! { 1 } and rather predictable (sort/sort!
+ 266351 [dzwell gmail] Mike,
| 266353 [lionel-subsc] You could even optimize this further with 0...@all.length-1 instead of
| + 266355 [dzwell gmail] Heh, you're right about the noop, and that hasn't been said. This code
| + 266356 [apeiros gmx.] You could even use @all.length.times :) (IMHO more readable, speed wise
| 266390 [logancapaldo] @all.each_index { ... } ?
+ 266441 [thomas.mackl] If you don't mind removing duplicates, Sets are non-ordered, so you
266455 [dzwell gmail] Non-ordered isn't the same as randomized. Sets most certainly are
266460 [lloyd 2live4] I apologize mos sincerely for posting actual code but what about this
266461 [lloyd 2live4] dang it! I *knew* that I should have been thinking more ruby and less
266467 [dzwell gmail] Yes, that is fairly simple to understand. But it is equivalent to
266474 [lloyd 2live4] Actually, it was different. The sort_by {rand} gives the same sequence
266476 [dzwell gmail] Thanks. Wanna see a better version of this algorithm? Check out a sample
^ [SOLUTION][QUIZ] ID3 Tags (#136)
266289 [jesse.d.merr] charset="utf-8"
+ 266298 [jesse.d.merr] charset="utf-8"
+ 266324 [james graypr] #!/usr/bin/env ruby -w
266335 [brad bradedi] Well played, sir. I always forget about ARGF. And to think I call
266347 [uni hehejo.d] What the heck is ARGF?
266349 [vjoel path.b] It's a pseudo-IO that reads the concatenation of the files named in
+ 266350 [tom accident] charset="US-ASCII"
+ 266359 [uni hehejo.d] Thank you.
266378 [jmrepetti gm] [SOLUTION][QUIZ] ID3 Tags (#136)
^ [SOLUTION][QUIZ] ID3 Tags (#136)
266296 [kbloom gmail] class NoID3Error < StandardError
266337 [kbloom gmail] Apparently unpack('A30') doesn't work quite the way I thought --
^ Why does: system("./ati-driver-installer-8.40.4-x86.x86_64.run --buildpkg Ubuntu/feisty") not work ? It always fails without any error?
266309 [kazaam oleco] Well,
+ 266312 [botpena gmai] i cannot tell you why, but i can tell a way to make it run.
| 266320 [kazaam oleco] kazaam <kazaam@oleco.net>
+ 266318 [phlip2005 gm] Some commands don't tell their environment when they fail. If you have a
266322 [kazaam oleco] I don't know exactly what you mean. Normally --buildpkg is verbos-mode like, so when it fails it's normally printed on the screen. With the two methods mentioned above I also have output for progress and success/error on the screen. system() is not supressing any errors. They are normaly printed on the screen, so system() always makes verbose messages or do you mean something else?
266338 [phlip2005 gm] system('') will print the output "on the screen", meaning to the console.
266429 [kazaam oleco] #!/usr/bin/env ruby
266432 [fwmailinglis] charset="us-ascii"
266435 [kazaam oleco] it is executable and working with
266498 [list.rb gmai] So do..
266499 [list.rb gmai] arg, --less the 'system'
^ Re: ID3 Tags (#136)
266311 [come.news fr] require "delegate"
266319 [brad bradedi] => ["New", "Age"]
266332 [come.news fr] Yes, you are right, I answered a little bit to fast ;-)
266334 [come.news fr] require "delegate"
266364 [erik.bryn gm] Here's mine. Takes a directory as input and exports a tab-seperated
266450 [alpha.chen g] class ID3
266451 [jfmiller28 y] __BEGIN__
^ DRbFire testing fails
266314 [pere.villega] I've download DRbfire to be able to run DRb through NAT, but when I run
266489 [ntalbott gma] There's a fix for this in Subversion now (it was an issue with the
266830 [pere.villega] Thanks a lot! It works (test_drbfire.rb). Now let's see if I can make
^ Re: [QUIZ] [SOLUTION] ID3 Tags (#136)
266316 [brad bradedi] One of the biggest problems in software development is feature creep.
+ 266327 [james graypr] I just did that to inspire you to such a clever solution. ;)
+ 266336 [kbloom gmail] You hard-coded the value of the unpack field. If you wanted to download the spec
266339 [brad bradedi] I know, I felt bad about doing it (and this was more of a "ha-ha,
^ Fwd: Please Forward: Ruby Quiz Submission
266326 [james graypr] charset=ISO-8859-1;
^ Re: class X < Hash ... how do I do X.new { |hash, key| ...}
266341 [lfast mdsi.c] Thank you both. Yes, that works. So I'm puzzled by the error I was
^ [QUIZ][SOLUTION] ID3 Tags (#136)
266371 [jamesbkoppel] $genres = ["Blues","Classic Rock","Country","Dance","Disco","Funk",
^ if assignment is a method call
266373 [rubylearner ] Given an object x, if you invoke x.y = 1 then this will work if the object
266406 [robert.dober] x.send( :y=, 1) do puts "in the block" end
^ [ANN] Ruport 1.2 pre-release, please help test!
266376 [gregory.t.br] It's been a while since we've done a major Ruport release (1.0 in mid-
^ how to check for block in an evaled method?
266381 [rubylearner ] Consider the snippet -
266392 [logancapaldo] Stage 1) Upgrade to ruby 1.9 or later. 2) define_method(:foo) { |arg, &block|
266422 [dblack wobbl] class C
266491 [logancapaldo] Well alrighty then... I don't know what thats about and I haven't
^ Ruby Gems Help
266383 [schaefer88 g] I've run into trouble installing RubyGems. I've read the readme and
+ 266387 [dzwell gmail] I haven't installed RubyGems by this method, but you will need to
+ 266388 [schaefer88 g] Sorry if double posting is breaking a rule here, but I think I found how
266395 [dzwell gmail] Prefix a command with "sudo" to elevate your permissions before the
266593 [bigboss64 ip] I think it is also linked to the comp.lang.ruby newsgroup, so that what ever
^ newbie to Ruby
266391 [chuckdawit g] I was reading through Learning Ruby and was trying to get the example on
266394 [mark.gallop ] I don't think that regular expression (regexp) works. Maybe google has
266396 [dzwell gmail] As Mark said, google changed their code somewhat. If you work out the
266399 [dangerwillro] As those guys said, Google probably changed their code since the book
266463 [jaimeiniesta] Yes, web scraping using just open-uri and regular expressions is
266753 [chuckdawit g] So I was trying out what everyone said and I got it to work. Here is
^ Gosu
266393 [dangerwillro] Hey everyone, I'm playing around with the Gosu game library now. (no
^ Override object initialization, add a filepath attribute.
266397 [beingthexemp] Is it possible to override initializations so that anytime an object is
266402 [alexg kuicr.] Do you want the name of the file each object is defined in? I think
^ [QUIZ][SOLUTION] ID3 Tags (#136)
266398 [rubify softo] def fileTail (file, offset)
^ Ruby Pocket Reference
266403 [dangerwillro] I picked up the new OREILLY book Ruby Pocket Reference today, by
+ 266404 [alexg kuicr.] AFAIK the Perl Camel originated from the 'Programming Perl' book. It
+ 266414 [usenet s4r.d] Because they put animals on almost every book. The "camel book" comes
| + 266415 [fxn hashref.] Indeed, the "eagle book" is the one about mod_perl, and the "llama
| + 266452 [doodpants ma] Since the item most associated with Ruby is a pickaxe (due to the book
| 266456 [kyleaschmitt] But ruby already _has_ animals.
| 266464 [dangerwillro] No, I'm not that dense, I know OREILLY chooses random animals at
| + 266470 [promos burch] I think we need to adopt Toto from The Wizard of Oz as the official Ruby
| | + 266475 [kyleaschmitt] Because we need more people thinking rubyists are hopeless dreamers,
| | | 266485 [promos burch] What's wrong with being a hopeless dreamer?
| | + 268477 [lloyd 2live4] I see that picture with Bill Gates on a broom holding his "Iron Ruby" in
| + 266487 [jeremymcanal] I think the giraffes are what they've assigned to Ruby for some
| | + 266488 [kyleaschmitt] No, that our heads are in the clouds ;)
| | | 266492 [caduceass gm] No, that we have long reach.
| | | 266504 [znmeb cesmai] Stick your neck out! Learn Ruby!
| | + 266581 [frdrch web.d] Not to forget the *billy goat* on Ruby in a Nutshell
| | + 268467 [sven715rt su] Hey, this is funny --
| + 266572 [ebonak_delme] ok, so aside from the importance of the animal (!) .. what do folks think
| + 266579 [ml synthetic] I, for one, am terribly disappointed in what appears to be a lack of
| | 266711 [keith audiob] Just wait a couple of weeks and it'll appear on oreilly.com, as they
| + 266635 [dangerwillro] Ruby in a Nutshell is still interesting, but a bit out of date.
| 266710 [ebonak_xxx_ ] Great, thanks for the feedback!
+ 266577 [ebonak_xxx_ ] Thanks for posting this, I had not heard about this one. I'll have to
^ Re: Override object initialization, add a filepath attribute
266405 [beingthexemp] Great, this will work perfectly. thanks again
266407 [alexg kuicr.] ???
266409 [beingthexemp] OH yeah, sorry, I just assumed that would work. I am wanting the file
^ Ruby Swig passing Argument
266412 [nx2zdk gmail] If I have swig module
266663 [aff28 delete] SWIG is able to handle pointers without any particular help. But if you
^ DateTime yaml bug
266421 [am artbot.de] does anybody know a quick fix to the DateTime or Yaml bug
+ 266525 [am artbot.de] Nobody out there to answer the question? The Problem is
| 266529 [botp delmont] # > does anybody know a quick fix to the DateTime or Yaml bug
+ 268409 [drbrain segm] Please file a bug in the ruby tracker on RubyForge.
^ Changing/Setting Passwords in Active Directory
266433 [damnbigman g] I've been doing some searching but am not faring so well.
266443 [damnbigman g] I think I'm close but something is not working somewhere. This seems to be
266446 [damnbigman g] Never mind, figured it out.
^ What is happening with this Unary minus?
266439 [promos burch] LOOPER = 6
266444 [stefano.croc] I'm not completely sure, but I think the difference arises because of operator
+ 266445 [promos burch] result = -(LOOPER).....
+ 266481 [jonas onda.c] This is correct. On the first example, the loop is
^ More convenient #p?
266442 [transfire gm] Has anyone else every wished #p would passthru it's argument? Ie. Work
+ 266449 [phrogz mac.c] I can't recall ever wanting that. (Though I did find it odd that it,
| 266453 [transfire gm] Oh yes, lots of times. When I'm debugging code I sometimes want to see
| 266478 [matthias wae] Here is a version that also handles multiple parameters required for
+ 266454 [eban os.rim.] % ruby -ve 'p "foo".gsub("o"){p "a"}'
| 266457 [transfire gm] Yea!
+ 266465 [dangerwillro] Well, the beauty of Ruby is that you can change that as you see fit!
+ 266562 [ed.odanow wo] I prefer the following modification, because it makes it easy to be a
266573 [ymendel pobo] On Aug 28, 11:34 am, "Wolfgang NáÅasi-Donner" <ed.oda...@wonado.de>
+ 266599 [ed.odanow wo] irb(main):001:0> "abc".tap{|x|p x}
+ 266605 [transfire gm] Similar idea. But #p is for debugging. Who would want to go through
^ howto decode encoded mail subjects?
266447 [d454d web.de] i need to parse mails. Some of the Mails in question use some ending
266468 [lists bertra] than only decode header fields. I post some example code for
266515 [d454d web.de] Where can i find bs-net? :)
266523 [lists bertra] <http://opensource.bertram-scharpf.de/sites/cropmail>
266651 [d454d web.de] thank you for providing the link. Maybe you should announce cropmail on
^ [ANN] mms2r 1.1.7 Released
266458 [mikemondrago] mms2r version 1.1.7 has been released!
^ Number of seconds as English duration
266462 [phrogz mac.c] Date.prototype.asDuration.js) over to Ruby today. I submit it below
^ socket 10s hangs
266469 [rogerpack200] freezes all thread for multiples of 10s? (i.e. 10 or 20 or
266480 [vjoel path.b] Does it help if you do
266575 [rogerpack200] I think that did it! Thank you!
266578 [vjoel path.b] It is mentioned in the socket section in the Pickaxe (ed. 1 is on-line
+ 266584 [mental rydia] You don't always want to do that, since you can recover the unhandled
| + 266589 [rogerpack200] Interesting. I suppose I've never run into that. It helped me debug
| + 266594 [vjoel path.b] Good point. It's a global setting, so should be avoided. Better to set
+ 266587 [rogerpack200] And of course I had been. Silly me. Thank you!
^ Substitution within system quoted string
266471 [victor.reyes] Team,
+ 266472 [stefano.croc] system("start putty.exe -X -ssh -pw #{ARGV[0]} myuserid@myhostname")
| 266535 [victor.reyes] This worked like a charm!
+ 266473 [fwmailinglis] charset="us-ascii"
+ 266477 [lists bertra] I don't know what Windows does with this command line. On
+ 266482 [matthias wae] never trust parameters or their encoding, or you beg for privilege
266483 [fwmailinglis] charset="iso-8859-1"
266484 [matthias wae] Sure, but the problem is not limited to passwords. Any input you
266496 [overlord gmx] You are talking about two different things. Felix is about sensitive
266521 [matthias wae] You are right about the two different topics. Sure, it's very,
266526 [overlord gmx] But it doesn't enable the user to do things he isn't allowed to do, so
^ Select
266486 [eder.sq gmai] def receive
266574 [rogerpack200] return !r.empty? # r is an array -- if it has @socket in it then
^ SQLite 3 and Ruby Wierd errors
266490 [saliktheblan] I created a sqlite3 database and I get the wierdest error: Sometimes it
266493 [phlipcpp yah] - post some code, so we don't need to stress our ESP
266505 [jfs.world gm] I'm not so sure about an updated version from _why, but this is like
267346 [phlip2005 gm] I suspected as much - that's why I said "at least"...
^ Conducting Regular Expressions on a text file
266495 [petertmarks ] I'm trying to find and replacace the string "placeholder" in a text
266501 [logancapaldo] The most "natural" way would be to use ruby-mmap.
+ 266516 [petertmarks ] How might I be able to make multiple placeholders within a text file? I
| 266518 [ondemannen g] Nearly there though ;-)
| 266530 [petertmarks ] Thanks J-H, that works fine. I do have a a lot of these however, so a
+ 266708 [mark mwilden] The other thing to watch out for is if the search text spans chunks.
+ 266720 [w_a_x_man ya] I think that Ruby makes a temporary copy of the file.
^ IDE's With Indentation Guides Like SciTE?
266497 [list.rb gmai] I've used SciTE for quite some time now and have become addicted to the
+ 266522 [martindemell] Not precisely an IDE, but when I have to read someone else's java or c
+ 266561 [ snk gna.org] jEdit[1] does it (install the whitespace plugin). Also google around
+ 266580 [bigboss64 ip] Vim or Emacs can probably be made to, ether by an internal setting or an
| + 266591 [perrin apoth] I'm pretty sure one would have to find a script for such purposes on
| | 266601 [croese gmail] check out
| | 266606 [bigboss64 ip] I think it only works with 'noexpandtab' (using tabs not spaces), don't know
| | 266610 [perrin apoth] Yeah, that looks like it only works with tabs -- which *would* be a
| + 266602 [dtuttle1 gma] Netbeans will highlight the other end of a block. It's a good ide for
+ 266603 [jeremywoerti] I use Komodo IDE which is awesome. It has the indentation guides which
+ 266620 [reid.thompso] ...
266625 [reid.thompso] or
266630 [perrin apoth] Oh, that one looks handy -- and probably like exactly what the OP would
266855 [list.rb gmai] I'll have to check out Komodo. VIM --I'm not that *hardcore* :-)
+ 266859 [jmrepetti gm] =ABQuien nunca ha cometido un error nunca ha probado algo nuevo.=BB
+ 266867 [perrin apoth] Does that mean I get to call myself "hardcore" now? Cool!
+ 266871 [hassan.schro] Yes, but only in private. And not too loudly. Think of the children...
+ 266874 [list.rb gmai] Whatever keeps you from chastising me for not liking VIM
threads.html
top