maximum size of hash key?235 (3/3/2008 11:07:44 AM) comp.lang.ruby Hi, Is there a maximum size for the key in a hash? If I am using an array or a string as the key, will I run into trouble if the data is too big? How big? EB ... Esmail
eliminate duplicate sequences from file327 (3/1/2008 3:21:05 AM) comp.lang.ruby A few months back I asked for suggestions to parse a file that contained this type of data: >label_1 AAACCCCCCCTTTTTAAAAA AAACCCCCCCTTTTTAAAAA AAACCCCCCCTTTTTAAAAA TT >label_2 AAACCCCCCCTTTTTAAAAA AAACCCCCC... Esmail
using reg expr with array.index2329 (12/26/2007 10:32:37 PM) comp.lang.ruby If I have an array ar of strings that contains for instance aaaa bbbb cccc >dddd eeee dddd cccc etc. is there a way to use ar.index with a regular expression to get the index of the line >dddd I've tried ar... Esmail
array.index(obj, start)?246 (12/26/2007 6:48:05 PM) comp.lang.ruby Hi array.index(obj) will return the index of the item in the array. I am unable to find a version of this that allows one to specify a starting index in place of the default 0 start, is there such a function?... Esmail
image browser for windows?332 (12/23/2007 12:59:57 PM) comp.lang.ruby Hi, how complicated would it be to put a basic image browser for windows to display directories that contain .jpg .gif etc images? A file picker would be nice, but that would require some basic GUI code which... Esmail
maximum size of hash key?235 (3/3/2008 11:07:44 AM) comp.lang.ruby Hi, Is there a maximum size for the key in a hash? If I am using an array or a string as the key, will I run into trouble if the data is too big? How big? EB ... ebonak_delme(32)
eliminate duplicate sequences from file327 (3/1/2008 3:21:05 AM) comp.lang.ruby A few months back I asked for suggestions to parse a file that contained this type of data: >label_1 AAACCCCCCCTTTTTAAAAA AAACCCCCCCTTTTTAAAAA AAACCCCCCCTTTTTAAAAA TT >label_2 AAACCCCCCCTTTTTAAAAA AAACCCCCC... ebonak_delme(32)
using reg expr with array.index2329 (12/26/2007 10:32:37 PM) comp.lang.ruby If I have an array ar of strings that contains for instance aaaa bbbb cccc >dddd eeee dddd cccc etc. is there a way to use ar.index with a regular expression to get the index of the line >dddd I've tried ar... ebonak_delme(32)
array.index(obj, start)?246 (12/26/2007 6:48:05 PM) comp.lang.ruby Hi array.index(obj) will return the index of the item in the array. I am unable to find a version of this that allows one to specify a starting index in place of the default 0 start, is there such a function?... ebonak_delme(32)
image browser for windows?332 (12/23/2007 12:59:57 PM) comp.lang.ruby Hi, how complicated would it be to put a basic image browser for windows to display directories that contain .jpg .gif etc images? A file picker would be nice, but that would require some basic GUI code which... ebonak_delme(32)
Ruby Pocket Reference2221 (8/27/2007 5:39:53 AM) comp.lang.ruby I picked up the new OREILLY book Ruby Pocket Reference today, by Michael Fitzgerald. I've got to say, it keeps with the high quality of almost every Ruby / Rails book out there! A nice little tomb that fits... dangerwillrobinsondanger(913)
How can I make this if/else more succinct?1227 (8/25/2007 2:34:58 AM) comp.lang.ruby How can I make this if/else more succinct? Video.find(:all).each do |video| if video._3gp ext=".3gp" elsif video._3g2 ext=".3g2" elsif video.mp4 ext=".mp4"... eggie5(73)