Category Archives: Ruby on Rails

Hacking attachment_fu to work with Flash/Flex uploads and crop square images

Rick Olson’s attachment_fu is my favorite file upload plug-in because let’s you use three different image manipulation tools [rmagick, mini-magick, image science] and storage options [file system, database, amazon s3]. However it doesn’t yet support two features I use on every CMS I build, Flash/Flex file upload (images will upload but won’t be resized) and [...]

Also posted in Flash, Flex, Ruby | 10 Comments

Rails 2.0 is go

Tons of new stuff, my favorite is Cookie store sessions

The default session store in Rails 2.0 is now a cookie-based one. That means sessions are no longer stored on the file system or in the database, but kept by the client in a hashed form that can’t be forged. This makes it not only a [...]

Also posted in Ruby | 1 Comment

Akelos PHP framework apes Rails

Monkey see monkey do. I’m usually wary of PHP frameworks that are ‘inspired’ by Ruby on Rails but the Akelos folks have done a really good job with their port. They even have a screencast narrated by guy who’s funny accent you can’t quite place
Every now and then I get a project that [...]

Also posted in PHP | Leave a comment

Two new ways to load data into Flash

SWX Ruby is a port of SWX (originaly PHP), which claims to be “Ruby’s fastest library for exchanging data with Flash” I haven’t tried it because it doesn’t yet support Flash player 9 but I wouldn’t doubt it’s the fastest as many other methods aren’t too speedy (Although RubyAMF is much quicker lately).
as3yaml, you guessed [...]

Also posted in ActionScript, Flash, Flash Remoting, Flex, Ruby | Leave a comment

Want a job working with Flex and Rails?

Jobs that combine Flex and Rails don’t come down the pike too often. Even more rare is one from a start up with a lot of buzz like Blist.
Speaking of pikes the job is in Seattle so all you Northwest Flex/Railers send in your resume and the solution to Blist’s programming challenge.

Without using any built [...]

Also posted in ActionScript, Flex, Ruby | Leave a comment

Reduce your Rails RAM Usage with MiniMagick

If your Rails app uses Rmagick to resize images on shared hosting you may have had your app shut down because of a RAM spikes (the spike can be > 40mb when processing an image > 2mb).
MiniMagick to the rescue!
MiniMagick accesses ImageMagick directly, similar to exec(’my ImageMagick command’); in PHP. Since shared hosts are looking [...]

Also posted in Ruby | Leave a comment

Rails on Mosso

My non-stop quest to find decent shared Rails hosting may be complete. I was pretty pumped about Media Temple’s Grid supporting Rails but each of the half-dozen RoR sites I’ve deployed to the Grid haven’t been ripping it up performance wise. An issue with an unresolved grid error when trying to cache pages had [...]

Also posted in Media Temple, Mosso | 3 Comments

Sorting Images with a Flex Tile Component

This is a test for an image manager component that I’m building. The final version will have an upload feature, and when you sort the images they’ll hook up with their model in Rails using acts_as_list to save the sorting in the database. Right click the swf below to view source.

I’ve built something similar in [...]

Also posted in ActionScript, Flash, Flex, RIA | 4 Comments

Everybody’s chatting about Flex

…make that chatting on Flex. All Flex front-ends but a multitude of approaches to flinging the messages about on the back-side.

Ted (on Flex) has his AIRchat running on Python Twisted.
Derek Wischusen has his messages moving atop Rails, Apache ActiveMQ, ActiveMessaging, and STOMP (post 1, post 2)
Alex McCaw is the creator of Juggernaut which can use [...]

Also posted in AIR, ActionScript, Flex, RIA | 1 Comment

Flex RubyAMF Screencasts

There are some new RubyAMF screencasts up, Aaron Smith walks you through tutorials on…
Flex with stand-alone RubyAMF
Flex with the RubyAMF Rails plug-in
Flash and authentication
Flash and custom fault objects
RubyAMF is also now 1.2 with respond_to functionality, so you can use one controller action to return anything your heart desires RHTML, AMF, XML, JSON you name it.
def [...]

Also posted in Flash, Flash Remoting, Flex | 7 Comments