Posts Tagged “Programming”

Afternoon hacking with Phoenix

Over the past few months my little side projects haven't made it off the starting blocs. They have all had the same downfall of trying to achieve too much.. make a React app using Phoenix as the backend but spend...
Read More

My first 3 hours on a project

I recently started a new full time job which is a little daunting, for the first time in a long while I am going to be owning this code not just for 3/6 months but for possibly years to come....
Read More

The bloated Ruby block

I am currently spending a month climbing in Spain before I start looking for a new job and in the process decided to setup up my old MacBook Pro for the journey. While I was moving my files over I...
Read More

Rails Dependent Associations

I often find that the dependent parameter gets forgotten on projects. This is easy to do if you're new to Rails. When dependent is not set, nothing terrible happens at first… but once you get further into a project you...
Read More

Rails Performance: The Database

My primary toolkit is the Ruby on Rails framework, and I mainly work with applications that have been in production for a while, which usually means they’re in need of a little pick-me-up. I thought it would be good to write...

Read More

Setting up Logwatch to email logs using Gmail

I thought I would share this quick guide to setting up sending yesterdays logs without needing to install Sendmail or another heavy weight email client. Step 1. Install our lightweight SMTP client. sudo apt-get install ssmtp Step 2. Configure our client...
Read More

A better way to handle SSH keys

I pair with quite a lot of developers and one thing I have noticed is most of them only use one SSH keypair for all of their services/servers. This isn’t the worst security threat out there but it does pose...

Read More

Rails tip: Titleize acronyms

I ran into a problem whilst trying to titleize a string containing an acronym. For example:

 "building an API".titleize 

Will output

 Building An Api 

Not exactly what...

Read More