Archive for the ‘Quick posts’ Category

Is it possible to be happy?

Saturday, February 13th, 2010
Reddit wants to know, is it possible to be happy?

Adding watermarks to images with mini_magick error 256

Wednesday, April 8th, 2009
I was attempting to watermark an uploaded image using attachment_fu for uploads and the mini_magick gem for processing. I received an odd little error that Google doesn't seem to have many answers for. That error is Error 256. This is what I was doing: after_attachment_saved do |image| if image.thumbnail.nil? ...

Embed your free online portfolio from SHOWN’D

Monday, January 5th, 2009
I just finished adding a feature on SHOWN'D that allows you to embed your showcase directly to an external site. It can be your blog, personal page, business page, or anything that you can place a simple script into. The script is automatically generated for you whenever you update your ...

Ruby snippet: Return a different string if empty or if replacing

Wednesday, December 24th, 2008
In my latest Rails project I needed a quick way to return a string if that string happened to be blank, and also a way to return a different string if the existing string is set. Here's the solution I came up with which I placed in extras.rb in my ...

SHOWN’D - Showcase your stuff.

Friday, November 21st, 2008
So the latest project I've been working on is finally ready for prime time. SHOWN'D is a resource for creative professionals. It allows them to set up an online portfolio and connect with employers. I like how it turned out in the design department, and early users seem to be reporting ...

Quick tip to fight email form spam

Saturday, August 16th, 2008
I discovered this a couple of days ago, but the simplicity and "oh wow, I should've thought of this years ago"-ness of it makes me believe I'm not the first to think of this. A few months ago I began receiving spam from the form over at my XHTML slicing site ...