Joshua Paling

Tips for Conways Game of Life Mar 29 2014

Update: I am going. Yay. And I made some virtual scrap paper for Conway’s Game of Life.

There’s a senior / junior hack night on tomorrow night. They’ll be doing Conway’s Game of Life. I wish I could make it, but I gotta look after my babies.

Anyway...

read more

After Migration Callbacks in CakePHP Mar 19 2014

Here’s a little code snippet I never remember, and often find myself looking for in past projects. Figured it’d save me some time to paste it here.

Instantiate a model and execute some SQL (or do whatever you want) after a migraton has run:

public...
read more

How best to mock emails for testing in CakePHP Mar 11 2014

Great question (or rather, great answer) here

read more

Fix - Plesk fails to send email to same domain Mar 11 2014

I came across an issue where the server would send email fine, except if it was sending the email to the same domain as the website it was being sent from (eg. sending from the www.clientsdomain.com.au website to info@clientsdomain.com.au or similar...

read more

Ruby Conf Day 1 Wrap Up Feb 19 2014

Rubyists across the globe will no doubt be flocking to my blog by the millions to read my wrap up of day 1. Not really. But my business paid for my ticket, so I should make some notes or something.

Here’s the talks I went to, and the main points I...

read more

Questions About Unit Testing Feb 8 2014

Before I started unit testing, back when I knew it was all the rage but just hadn’t got around to learning it, or wasn’t sure if it’d be worthwhile for me, I wrote down these questions. It took me a while to get round to it, but I finally wrote answers...

read more

My 2014 Development Goals Jan 31 2014

Here are my goals for 2014. Overall I think they’re kinda conservative, but given I’ve got twin babies, I wanted to set something realistic considering the little free time I have.

I’ve been developing almost 10 years, but have relatively recently...

read more

Declare your javascript functions as variables Dec 17 2013

Just sharing a quick tip I recieved at the last Ruby on Rails Dev Hub: declare your javascript functions as variables.

Rather than declaring your javascript functions like this:

function sayHello($name){
 alert('hello ' + $name);
}

declare them...

read more

MicroCourses - Helping Newbies & Mentors Get More Out Of Ruby / Rails Events Nov 3 2013

I’m writing down my thoughts after a discussion with @gregmcintyre and others at RailsCamp Sydney regarding how to help newbies get more out of RailsCamp, and other events (eg. DevHub). ‘Newbies’ mainly refers to people who have had a basic intro through...

read more

Automate MySQL Database Backups with Capistrano Oct 2 2013

I was looking for a way to:

a) Run regular MySQL database backups, keeping eg. daily copies for the past week, monthly for the past year, etc.

b) Backup the database prior to each capistrano deployment, and download a copy of the backup to my own...

read more

Prev | Page 4 of 7 | Next