• Rails Application and SSL Problem in Internet Explorer

    Recently we ran across a very annoying problem when deploying a Ruby on Rails application running under SSL when viewed in IE7. When we loaded the page in Internet Explorer 7 there was a content security error. This made no sense at all as everything was secure, and even when we hard coded absolute links the problem still persisted. What could possibly be causing this problem.

    Thinking perhaps it was some random HTTP link sitting in the code, the developers went over everything with a fine tooth comb and could not find the problem. Knowing that a secure content error could be the result of a number of things we broke parts out of the page and rebuilt the page one line at a time until we recreated the content error. Low and behold we found a single JS file that was causing this problem!

    Read the rest of this entry »

    Share
  • Rails and the iPhone

    With the growing Rails and iPhone communities, many developers seek ways to easily interact with their Rails applications on their iPhones. Enter ObjectiveResource, a framework for interacting with Rails on your iPhone. Go to iphoneonrails.com to learn more.

    ObjectiveResource is an Objective-C port of Ruby on Rails’ ActiveResource. It provides a way to serialize objects to and from Rails’ standard RESTful web-services (via XML or JSON) and handles much of the complexity involved with invoking web-services of any language from the iPhone.

    Read the rest of this entry »

    Share
  • Mongrel Gem and Paperclip Plugin Problems

    This problem occurred when setting up a site using mongrel along with the paperclip rails plugin. After about a week of normal operation we started having lots of problems with the automated image resizing required by the rails application.

    It was running along and generating all the images just fine, then all of a sudden it stopped processing the ‘large’ images or made them blurry, and we started seeing the following in the application logs:

    Paperclip::NotIdentifiedByImageMagickError: /folder/stream.####.# is not recognized by the 'indentify' command.
    

    This is a very strange problem since the development environments work just fine and the developers were insistent that the server was the problem and not the code, as they usually do.
    Read the rest of this entry »

    Share
  • Costs Using Amazon EC2 & S3

    Figuring out all the costs when hosting on EC2 using S3 storage can be tricky. This is break down of what you can approximately expect to pay using a few basic scenarios, such as a lamp server and S3 backups, with Amazon services. This will also compare the costs to what you would expect to pay if you want to do the hosting yourself.

    To fully understand EC2 charges, you need to know the difference between the instance types and what they cost to best meet your requirements. For the purpose of this post I will summarize – I have converted the Amazon Compute Units into basic CPU power and will then detail the costs based upon each of these instances.
    Read the rest of this entry »

    Share
  • Setting up Hardy for Ruby on Rails Hosting

    These instructions should take you through the process of setting up Ubuntu Server version 8.04 (Hardy Heron) for Ruby on Rails hosting using Apache and Passenger Phusion (mod_rails). This will also step you through adding certain programs needed to install the Rmagick gem required to add Captcha to a RoR application and the mysql gem.

    Install the server with just the SSH server option so you can copy and paste the commands for simplicity

    So once you have the base installed, make sure your distribution is up to date:

    
    sudo apt-get update
    sudo apt-get dist-upgrade

    Install the package required for building software, siince we will be doing some compiling:

    sudo apt-get install build-essential

    Read the rest of this entry »

    Share