Assigning fixed names for USB devices with udev on Linux

Whilst you can use udev rules with any USB device, I am writing this post to help anyone else who is also having issues with their USB printer name. The main which I had was is the printer’s USB name changing when it is restarted, plugged into a different USB port or when another USB device is connected […]

Read More

Looping through a Data Map with Sass

I’ve decided to share this code for anyone who requires a quick ‘copy and paste’ solution for using data maps (map-get) and loops within Sass. This example will allow you to set values within the data map, then loop through and output as CSS rules. Setup the variables within the data map and create the code […]

Read More

Using statuscake.com to monitor your website and database uptime

Note: Updates have been added since this article was originally written. These updates are listed at the bottom of this page, click here to view them. This guide will show you how you can monitor your website and database uptime using a free service from Status Cake (https://www.statuscake.com). Once you have setup an account, you will […]

Read More

PHP Function: Get a file’s last modified timestamp

I’ve recently found the need to show a file’s last modified timestamp. This function is useful when including CSS or JavaScript files. By including a query string will ensure web browsers re-download a fresh copy of the file rather than using a cached file. Simply run this function as you’re including a file, such as: […]

Read More

Custom WordPress login

WordPress has a wide range of options to change the look and feel of your WordPress setup. One that most people overlook is the login box, accessible at http://yourdomain.com/wp-admin/. Using the code below, you will be able to apply a custom CSS stylesheet to the login page. Firstly create your stylesheet. You could name the file […]

Read More

Change Bootstrap 3 Navicon on toggle

I’ve been looking at how to change the button icon which is shown across Bootstrap 3 navigation menus in a mobile viewport. For months I’ve come across a whole variety of clever Navicon icons which change when clicked upon. I wanted to implement this feature into a Bootstrap navigation menu. In the end, I used a […]

Read More