ruby Archives - Ravi Desai

Docker and Torquebox

My OVH box went down a few weeks ago and refused to get back up. I couldn’t even ssh in. No clue why. On the bright side, I got to use this as an opportunity to learn more about keeping things fail-safe. I’d say “more fail-safe”, but apart from github for my source-code, nothing was […]

Update to JParallel

I began the JParallel library a little while ago (Right after the post about not doing my own parallel programming (It doesn’t make a lot of sense)), and nearly immediately got a response from Mohamed Hafez on the issue tracker recommending I add a bunch of features. And a week later he implemented things in […]

Ruby: Select random element from array

This is a cool little trick I picked up from StackOverflow. Select random element of an array [:foo, :bar].sample Its the Array#sample instance method. Good to know.