Named redirect routes in Rails 3 I didn't see this mentioned anywhere in the Rails Guide or in my admittedly cursory Google searches, but apparently it's possible to create named redirect...
It Should Include Only One Of – An RSpec Matcher I know RSpec tests should typically be implementation/data agnostic, but I ran into a situation in a unit test where I needed to make sure...
Join (implode) an Array of String Values with Formatting In programming, I often need to join values together from an array. Typically this will be to do something on the backend, like join a...
Find the longest common substring using PHP I recently found a need to find the longest common substring in an array of strings in PHP. A couple of Google searches didn't return...