RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Paperclip "RecursiveThumbnail" processor (speed up thumbnail generation)

This processor (and patch to Paperclip) sped up thumbnail generation by 8 seconds (originally 12, now 4). RecursiveThumbnail processor.

Not sure it fits all cases. The geometry of the next smaller image must be chos…
Aleksey - You’re absolutely right, but in certain situations it saves a lot of…

Rails, Paperclip, -auto-orient, and resizing...

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.

CarrierWave makes this way easier. Just saying.
Link broked.

A Mini-Review-Benchmark of Ruby’s Different Testing Frameworks

Ruby has got such amazing testing frameworks that it is such a shame that people still use other languages to test code. The goal of this post is simple – to show you how to test a given code in various different frameworks, so you can choose the one for you. Read the entire post here.

Lightning - Speed For Your Shell

Introducing lightning, a gem which could revolutionize how fast you are on the commandline. The first post explains what it’s capable of. The second post explains how to use it. With this gem, rubyists may be pleased to know they can apply any command on the commandline to a standard ruby library, less-ruby fileutils.rb, or a gem directory, cd-gem rails-3.0.0.beta, with autocompletion.

Boost.Regex in Ruby

Ruby makes Regexes easy. Boost.Regex in C++ offers a really fast Regex implementation that blows Ruby’s regexes out of the water. I just made a gem so you can have both. Just run gem install ruby-boost-regex.

Which version of Ruby are you using for your benchmarks?
He’s using 1.8 (#include “re.h” not “ruby/re.h” amongst other reasons I don’t t…
Shanna is correct - this is 1.8.x. Working on 1.9 right now, but since most pr…
Loading older posts