Jamie's Blog

Lessons from a life of startups, coding, countryside, and kids

The Triangle Question

2015 04 23 at 13.30

I’m currently entertaining myself by working through the Ruby Koans which I’d somehow missed over the last few years.

Most of the questions are fairly mundane like

def test_iterating_with_each
  array = [1, 2, 3]
  sum = 0
  array.each do |item|

Zapier Marketing Automation for Consultants

2015 04 07 at 18.38

I’m rebuilding my consulting site as part of a wider process of marketing my services. One crucial part is how people contact me: I like to have a form because the typical emails I get are usually pretty vague, leading to even more vague and confusing...

Rebuilding my Consulting Site from scratch

Screenshot ideasasylum.com 2015 04 07 22 21 00

I’ve tried themes. Lots of themes. I always start with a theme and often customise it until it’s barely recognisable. I was on my third theme for my consulting site and it really wasn’t speaking to me. It was busy. It used all the modern things like...

SSL the easy way

2015 02 03 at 11.46 1

A long time ago I wrote up how to setup SSL with Rails 3.2, nginx and NameCheap. That will forever be known as “the hard way”. I still need to do things the hard way with my current project but for all new projects I’m going to take one of the easier...

Default has_one instances in Rails without the performance hit

2015 01 23 at 22.07

My first ill-fated attempt

A while ago, I added an optional profile object for our users. I thought, in my haste, that the easiest way to provide an default profile instance would be like this:

class User < ActiveRecord::Base
  has_one :profile

Schema vs Query-based Multitenancy

2014 11 23 at 23.17

Most SaaS application are “multi-tenancy” to some extent (i.e., host more than one customer on the same system) but typically the term is reserved for apps that have company accounts, each with multiple users, authorisations etc. These companies would...

When you hire them, their problems are your problems

2014 11 13 at 22.08

As a young corporal in the Air Training Corps, one of the most valuable lessons I learnt was:

You can delegate responsibilty but you cannot delegate accountability

What does that mean? It means that when you delegate a task to a subordinate, you...

Can your entrepreneurial need be satisfied working for someone else?

Img 81361 e1414884081294

I was listening to a recent episode of the Fizzle show where they announced the departure of one of their team. Caleb was a founding member of Fizzle but is leaving to start his own business, and it prompted them to ask:

Can you be satisfied, entrepreneurially...

The Ruby in Rails

2014 10 20 at 17.04

Back in August I did a short talk at Corkdev about the features of Ruby that make Rails so easy to work with.

The aim was to show off Rails to a general tech audience but without being all preachy about it. So instead I flew through the actual Rails...

Generating a hierarchical graph with Rails & Javascript

2014 10 20 at 21.50

At WorkCompass, we can import a .csv file of employees from a customer but, as anyone who’s done anything with CSV files knows, you need a lot of validation to make sure the data is clean. Among the automated checks are some manual things like “these...

Page 3 of 92