My name is Stefan Ashwell and when I'm not coding personal projects or painting miniatures, I'm a Software Engineer at Holmes Media in Market Harborough.

This blog is a place for me to write about things that require that little bit extra to solve. We all have gaps in our knowledge and every now and then I need to reach out on search engines or blogs to find an answer. Often, these answers come from multiple sources. This blog serves as a personal resource, but if it's helpful for me I'm sure it'll help others too!

Deploying CodeIgniter with Deployer

Posted on 17 April 2018

Deploying CodeIgniter is a task we all have to perform at some point, to both test and production environments. There is an excellent package I’ve used for a while for configuring Deployer with CodeIgniter. Unfortunately, as with many good packages for CodeIgniter, it’s now a little out of date (3 years). I ran into an […]

Continue reading

SSH How to move all files up one directory – including hidden files

Posted on 16 April 2018

This is one command that comes up every now and then and I always forget it! So to save some time Googling the answer I thought I’d post it here as a quick reminder. The command will move all files in the current directory – including hidden files – up one directory. Here’s what’s going […]

Continue reading

Getting Started with Laravel

Posted on 22 June 2017

Laravel is a modern PHP framework for building web apps. Laravel ships with lots of features that will make your life as a developer easier. First off though, we’ll be getting started with Laravel by installing our development environment. Once you’re up and running you can move on to some of the other Laravel tutorials […]

Continue reading

CodeIgniter Base Model

Posted on 14 September 2016

Why Use a Base Model? I like to use a base model for common CRUD tasks that every model will need to perform. Rather than duplicating lots of code to retrieve database records this stuff can be written once and used by all of them. Of course, some models might need something slightly different, which […]

Continue reading

The Best Laravel 5 Tutorials and Resources

Posted on 19 July 2016

Today I thought I’d share some of the best places I’ve found for learning Laravel 5. Laracasts Laracasts is an obvious one when learning Laravel, but it’s so good it’s worth mentioning again. Well presented, easy to follow video tutorials that cover everything from the basics of Laravel to more advanced lessons. Well worth the […]

Continue reading

eCommerce packages – why are they all rubbish?

Posted on 13 July 2016

Something about eCommerce packages has always ground my gears. They are all rubbish. I’ve had to use a number of them, and each time I end up frustrated, angry and wanting more. It got to the point where I’d recommend a custom built solution over any eCommerce package 100% of the time. However that’s not […]

Continue reading

User Authenication in CodeIgniter – Some advanced techniques

Posted on 12 July 2016

Today we look at user authentication in codeigniter and some best practices to use when building a secure login environment for members of an application. Our goal here is not just to allow users to login and access members only content. We can do this very easily by setting some session data after checking the […]

Continue reading

CodeIgniter Development Series

Posted on 11 July 2016

What is This Series? Welcome to a new series on Code Bastard – CodeIgniter Development. I’ve been using CodeIgniter extensively now for over 5 years, and have learnt a lot over that time. With this series I’d like to add some meaningful tutorials discussing how you can use CodeIgniter in real world situations. What I […]

Continue reading

MySql not restarting on Ubuntu

Posted on 10 March 2016

Today I came across an issue with MySql not restarting correctly. In addition, when rebooting the server, MySql would run for a few seconds and then crash, and would not restart after doing so. It seemed to be down to a rogue MySql process running which was stopping it from starting up again: Running this […]

Continue reading

Quick and Easy Maintenance Mode

Posted on 28 June 2015

When moving a website between servers it’s usually a good idea to put the website into maintenance mode, which displays a message to any visitors telling them to check back soon, and also ensures we can transfer the most up to date database and files to the new server before making the switch. Some content […]

Continue reading

< Previous