| apeiros | I hope it doesn't crash in a huge explosion... |
| zenspider | wuzzit for? |
| apeiros | rubygame, collision detection, translation, scaling, rotation |
| stouse1 | apeiros: Sorry, back. |
| apeiros | collision detection of points in rects is roughly 100x faster with the C impl. :) |
| Malesca | Hum. How does Ruby guess what my time zone is, in e.g. Time.now? For my purposes, it'd be enough to change that. Some ENV? |
| zenspider | Malesca: ENV['TZ'] iirc |
| apeiros | only the bodies btw., all manipulation of graphics is done by SDL |
| ddfreyne | My Gem has an executable, but it it chmod'ed 644 when I install the gem, meaning it can't be executed& what's going wrong? |
| Malesca | zenspider: Thanks again. |
| apeiros | 644 is readable/writable 1 is for execute |
| ddfreyne | apeiros: yes, so it's not executable& it should be, though |
| stouse1 | zenspider: So, got a question about autotest. Namely, redgreen coloring. |
| zenspider | Malesca: whatever your localtime function uses. man localtime for more info |
| apeiros | ddfreyne, ah, it gives you that, it's not you doing it... ok |
| stouse1 | zenspider: I spent some time rewriting the existing module to work with RSpec. I later discovered that I could simply change the spec command to use the coloring natively provided by RSpec. |
| apeiros | ddfreyne, probably meant to be run via ruby exec |
| stouse1 | zenspider: However, when I was altering the module, I realized that no matter what you change in the results, for coloring, it never actually gets printed back out. The original response is always printed. |
| ddfreyne | apeiros: it'd still need to be chmod'ed +x in any case |
| zenspider | ddfreyne: hoe will take care of that for you |
| stouse1 | zenspider: And that drives me nuts, wondering how the Test::Unit redgreen coloring manages to work. |
| apeiros | ddfreyne, no |
| ddfreyne | zenspider: thanks, I'll check out hoe |
| stouse1 | apeiros: Does the C version work now? |
| apeiros | a scriptfile run by ruby doesn't need to have +x |
| zenspider | makes your rakefile/gemspec much much smaller |
| alfred___ | i have a numerical range of integers, [-4, 250]. what's the best way to test if a fixnum is in the range? just greater than and less then? or can i do something fancy like "in -4..250"? |
| apeiros | stouse1, currently rewriting all methods that had rg_ftor as return |
| ddfreyne | apeiros: ah, yes& but I'd like to type "nanoc" and not "ruby nanoc" just like you type "rails" and not "ruby rails" or something |
| apeiros | alfred___, x.between?(-4, 250) |
| dietbuddha | Is there good documentation on routes somewhere? |
| alfred___ | thank you aperios |
| apeiros | also (bit slower): (-4..250).include?(x) |
| stouse1 | apeiros: D'oh, but it does work? |
| dietbuddha | I tried reading through the code, but it's a little opaque. |
| zenspider | alfred___: have you ever used ri? ri is your friend(tm) |
| apeiros | stouse1, it did with add |
| stouse1 | apeiros: Great. |
| alfred___ | is ri anything like irb? |