Blog Archives

Getting started with Heroku and Rails 3.1

Pre-requesites: RVM on your local machine with Ruby 1.9.2 Heroku account Switch to the 1.9.2 version of Ruby, install the rails and heroku gems, create your rails 3.1 application Terminal $ rvm 1.9.2 $ gem install rails $ gem install heroku $ rails new tickets $ cd tickets Add in the nifty-generators gem: /Gemfile gem "nifty-generators", [...]

Shopify – such a compelling offering

Been thinking about the cloud of late. In particular after using Shopify which is a great example of a SaaS (software as a service) offering.  I was blown away by just how easy it is to use the Shopify offering.  The main reasons being: It is already fully integrated to other services, in particular a [...]

Passenger (mod_rails) updates

When updating Passenger: sudo gem update passenger passenger-install-apache2-module The second command is important as it compiles the apache 2 module (caught me out for a whiles, hence this post). Ensure that the module is properly added to your config file. (e.g. /etc/apache2/apache2.conf) by confirming its pointing to the new directory for the updated version of [...]

Version controlling WordPress themes on simple hosts

Here’s a quick tip if your WordPress host is quite simple and only provides FTP access and no version control tools (svn, git) or specific syncing tools (rsync) Use version control for the theme on your local machine (where you run your dev WordPress environment), then use syncing capability of FTP tool (Cyberduck for MacOSX [...]

It’s the people, stupid!

Bill Clinton summed it up beautifully when he used the line, “It’s the economy, stupid.” It has just become frustratingly obvious to me of late that when it comes to organisations maximising their investment in technology, a lot of their energy is misguided. In the spirit of Bill: It’s the people, stupid! Focus on the [...]

Git repositories with Slicehost

No doubt I am really happy with my Slicehost VPS, it has been so hassle free!  The best part about Slicehost is all the amazing articles they provide to help you get going with your slice. I’ve setup my slice to host my private git repositories, particularly since I wanted to use them with Rails [...]

Installing MySQL, Apache2, PHP, and WordPress with MacPorts

I’ve recently started working on a website project using WordPress.  I’ve got a production environment where I run this blog on my ubuntu server (VPS) hosted by slicehost.  But because I’m going to muck around with themes and plugins I decided that I’m better off doing that locally on my Mac.  So this is the [...]

Making your Rails app work on Java

So you’ve written a Rails app and you want to show it off to your boss at work because you know that it will impress them. Problem is that your company only uses Java and won’t consider it for their production environment if it can’t be deployed under a JVM. Let’s go: Install JRuby http://jruby.org [...]

Getting Oracle XE to work with SpringFramework JDBC Template

Ever get this error when using Oracle XE with SpringFramework JDBC Template? SORA-12519, TNS:no appropriate service handler found You can get around it by executing the following commands: ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE; ALTER SYSTEM SET SESSIONS=100 SCOPE=SPFILE; Then stop and start database (Oracle XE service) and you’re good to go! Remember: needs to be [...]

Setting up scheduled jobs with Rails

I’ve seen lots of different approaches to scheduling jobs with Rails, including a great run down by Ryan Bates’ Rails Casts Episode 129, however the most elegant solution I’ve seen so far is what was outlined in Episode 164 using the cool Whenever gem and good ol’ Cron. Within a couple of hours I had [...]