First
|
Prev |
Next
|
Last
Pages: 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
Ruby "Save Game" function Hello! I am currently working on a text-based RPG and I wanted to implement a function that allowed the user to save their game at any point, so that it could be resumed later. Of course, this would need to be complimented by a load function that would resume the game at that previous state. Anybody know how I... 17 Feb 2010 20:11
[ANN] Red Dirt RubyConf: Call for Proposals Just a quick reminder here folks. Our Call for Proposals for the Red Dirt RubyConf (http://reddirtrubyconf.com/) is now half over. You only have a couple of weeks left to get those ideas in. Currently, the Rails 3 theme (http://reddirtrubyconf.com/theme/rails3) is trailing the others in submissions. If you would ... 15 Feb 2010 14:19
Parallel assignments vs. Serial assigments Hey all I was always under the impression that parallel assignments in Ruby were faster than assigning variables individually. Recently I was curious to see how much faster it was and decided to test it: class One def initialize(first_name, last_name) @first_name = first_name @last_name = las... 17 Feb 2010 00:06
what's the nearest ruby equivalent to waf? http://stefano.italians.nl/archives/66 is a pretty nice example of using waf, a python build tool, instead of autoconf and make, to build a c++ project. Is there a ruby build tool that can be used for something similar? (This is not a case of NIH; looking at the waf script in that example, I can imagine it being a ... 14 Feb 2010 14:01
Delegating testing to another class This is probably funky.. :-) I'm writing some tests with Test::Unit::TestCase, and I want them to be data-driven. I want to abstract the assertions to another class (call it TestIt) more tightly tied to the data. So far, I either get NoMethodError exceptions because TestIt isn't subclassed from Test::Unit::Te... 13 Feb 2010 16:02
Question about load(). WasRe: [ANN] envjs rubygem 0.1.1 Steven, How closely does the env-js gem follow the docs for the Rhino based project? For instance: window.location="some.html" that has a script tag that loads jquery.js, seems to be loading that external file. The server logs a GET for it anyhow, and it seems to be live within evaluates. But the docs say you... 13 Feb 2010 14:54
[ANN] Zbatery 0.1.1 - leak fix from Unicorn Unicorn had a memory leak that didn't affect Unicorn, but only Rainbows!, so we bumped the dependency on Rainbows! which in turn bumped the dependency on Unicorn... Also some minor documentation updates. * http://zbatery.bogomip.org/ * rainbows-talk(a)rubyforge.org * git://git.bogomips.org/zbatery.git -- ... 13 Feb 2010 06:02
Sorting numbers. I read a line from a CSV file as the following: fooone,22,114,66,125,footwo and I would like to sort the numbers from index 1 to 4, but I can't convince the sort function to work with integers instead of strings. The result of sort is always 114,125,22,66 as it is sorted by the first ASCII character. The to_... 13 Feb 2010 16:02
Subtracting string arrays Hello, I am having am issue subtracting two arrays with string elements. I have the following? a = ["StringA", "StringB", "StringC"] b = ["StringC"] How to I subtract the two arrays so I have a new array with the following? result = ["StringA", "StringB"] Thanks -- Posted via http://www.rub... 13 Feb 2010 13:46
Rmagick DNG I am using RMagick to process photos that are in the DNG format. However, RMagick seems to just use the thumbnail version of the image. How do I tell it to use the full resolution image? require "base64" require "rubygems" require 'RMagick' include Magick f=File.open(file_name,'r') p = Image.read(f) p[0]... 15 Feb 2010 15:27 |