has_many :codes

Posts - Page 3 of 7

Jenkins with Rails applications

  • 6 min read

I’ve had to set up Jenkins with Rails projects today so I thought I’d write a post about it. Hopefully it will save someone time – I’ll assume here that your already know what Jenkins and CI are, and prefer setting up…

Read More

Devise and default scope for authentication

  • 5 min read

Multi tenancy with default scope Multi tenancy in a Rails application can be achieved in various ways, but my favourite one is using Devise and default scope for authentication as it’s easy and provides good security…

Read More

Top level methods in Ruby

  • 3 min read

How top level methods work in Ruby There are many quirks in the Ruby language which IMO show funny behaviours. Take the top level methods, for example – that is, methods defined outside of a class or module. There is something…

Read More

Microsoft buys a chunk of Nokia. Surprise!

  • 1 min read

We saw this coming, didn’t we? It was all planned, and well orchestrated; it’s been a good strategy: send someone to the other company, help it sink, then buy it at a discount price. It was all a con. I love conspiracies. The…

Read More

Why I switched from Jekyll back to WordPress

  • 5 min read

Back in 2011 I wrote a couple of posts -which became very popular- on why I had migrated from WordPress to Jekyll and on how to perform such migration in great detail; now I will explain why I switched from Jekyll back to…

Read More

Transfer files through an intermediate server

  • 1 min read

Sometimes I need to copy files from a remote server, but I can only access it through an intermediate server due to some restrictions, so here’s a couple of ways to transfer files through an intermediate server. The first…

Read More

Percona Galera MySQL Cluster

  • 19 min read

Why a MySQL cluster This post describes how to set up a Percona Galera MySQL Cluster with synchronous replication and load balancing. I have been using MySQL for many years as the RDBMS of choice for most applications; it does…

Read More

L2TP IPSec VPN for private browsing

  • 8 min read

Why an L2TP IPSec VPN I use VPNs all the time these days to access resources that I have restricted on the servers I manage. I also want to be able to watch live TV programs from various countries regardless of where I am; in…

Read More