I've got some certificates (let's just say they're all PEM encoded right now) in a single file that I can read into a string easily enough, but does anyone have a good way to split it up so I can store each certificate in their own `OpenSSL::X509::Certificate` instance? The only thing I can think of is splitting on "-----\n-----", but that doesn't seem like a very good method
i typicall just use rvm to install gem/ruby, then gem install rails bundler. not sure if there is a better way
this might be a silly question, but if your app needs to create a system user, is there a more ruby/rails way than just sticking a shellscript in the project root and having that user run it beforehand?
i can't wait for the inevitable ruby that breaks all backwards compatibility
is there any difference memory/perforance wise between double and single quotes? I remember (vaguely) hearing about this at a meetup from a while ago, and can't quite recall what was said
I have an array of hashes, and I'd like to test if any of the members of the array have a specific key/value pair, and if they do, return true (this is a condition for a select block on a different array). Is there an easy way to do this?
tpanarch1st: (c) md5 is a hashing algorithm. hash in this case refers to a Hashmap (which internally will use a hashing algorithm, but probably not md5). you might have seen it called an associative array or dictionary