RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

phallstrom — 13 posts

I wanted a way to see production S3 assets in development when using a production database export without hacking Paperclip. My solution.
I finally snapped and no longer wanted to see Google ads while developing my Rails app. This was my solution.
Scratched an itch and released Slackistrano to get Capistrano deployment notifications in our Slack channel.
If you use Pow to manage your Rails apps and you have a lot of apps, you might find this useful. It's a default app that lists/links to your other apps so you don't have to remember their names.
Solving this annoying error once and for all in your Rails applications.
If you want a local, searchable copy of Ruby or Rails API docs here are some instructions.
If you like the documentation and are sad you can't get the latest Rails docs from it, I've built them for offline use.
I ended up with a little too much free time the other day and was curious to see what would happen if I fed the entire history of Rails' commit history through the visualization tool glTail. It looks like this.
This processor (and patch to Paperclip) sped up thumbnail generation by 8 seconds (originally 12, now 4). RecursiveThumbnail processor.
I recently had a situation in which I wanted to generate thumbnail images and have them constrained to 67x50 (specifically "67x50>"). No problem so far, but I also wanted to auto rotate (via Imagemagick's -auto-orient option) the images as they all come from a digital camera that provides this information. This causes a problem. Namely that some images ended up being 50x67 instead of 67x50. Here is my solution.
Perhaps this is why Ruby is such a wonderful language.
Let's say you have a Rails app, and that app has a Photo model, and that photo model has many Destinations, and the destination pages are cached to disk, and when you update a photo you need to expire all of the current destination pages that photo is currently associated with. Here's how.
Hoptoad is a service that allows you to funnel all of your Rails exceptions to a central location so you can splice, dice, and fix them. I’ve noticed however that some web spiders mangle valid URLs into invalid ones and rather than deal with all the possible permutations it would be a lot nicer to simply have Hoptoad ignore them completely.