All posts
Every post published on duaneblake.co.uk, grouped by year.
67 posts · 2010 → 2026
2026
1 post
2025
4 posts
- How to automatically delete old records in Laravel There may be circumstances in your application where you need to delete old or no longer needed data. This could be for reasons such as improving performance or keeping your data fresh. Laravel has a trait which is perfect for this called Prunable, which allows you to set up a command to delete records from…
- My go-to secondary job for each character in Octopath Traveler 2 Octopath Traveler 2 is, to me, a best-in-class game and one of the most complete RPGs I’ve ever played. Unless you are playing boss fights, the battles don’t last long, especially with the right build. It’s one of those games where by lining up your secondary jobs, skills, and weapons, any of the eight characters…
- How to add a custom font to your Laravel project There may be occasions when you have to use a custom font, such as a brand font, in your Laravel Project. I’m going to go through the steps for adding a custom font to your project.
- Beyond WordPress: first thoughts on using Statamic as a CMS With all the issues with WordPress and WP Engine, I thought it would be a good opportunity to look at a couple of other CMS. For a while now, I’ve not been keen on the direction that WordPress has been heading in the past few releases, so I used this as a perfect opportunity to…
2024
3 posts
- Games I completed in 2024 As we come to the end of the year, I wanted to reflect on some of the games I have completed. This year was a lot different for me, as I usually go back and replay games I completed before. But there is not one game on this list I have completed before. I’m also…
- How to update input values dynamically based on another input with Laravel and Livewire One of the things I love about modern development tools and frameworks is how they make it so easy to do simple features. Years ago, these sorts of things I’m about to show would be some jQuery gymnastic with a prayer that it works in IE. Updating another value based on input in Livewire is…
- Thoughts on Mirror's Edge Catalyst I recently picked up Mirrors Edge during one of the recent Xbox store sales. At the time of its launch, I was interested in playing it because I liked the idea of a parkour first-person game.
2023
3 posts
- Using the ChatGPT API to create a tweet from content on a URL With all the talk going around with Chat GPT and the latest development with AI. I decided to spend some time looking at using the API to create a very small MVP. The aim was to spend a couple of hours building a app. Where a user provides a URL and then selects from a…
- Changing the default validation message on an HTML input tag Using HTML validation is a good extra protection for using server-side validation. However, I found the validation message used doesn’t always provide the user with enough context about what is wrong with the issue. I’m going to describe how to change this message.
- Preventing search engines indexing pages on your site They may be situations when you may not want Search engines such as Google and Bing to index pages on your website. For example login pages, testing sites or basket pages. I’m going to list how to do this using the Robot.txt file and add a meta tag to the page.
2022
4 posts
- Adding tasks to Todoist from the command line I’ve been using Todoist for close to ten years. I find it a great tool to track my task and get ideas out of my head. There is a browser implementation and apps which works on pretty much works on every OS. Since I spend a lot of time in my code editors such as…
- Useful snippets for working with templates in WordPress There is a couple of pieces of code snippets which I find useful when working with templates inside WordPress. Here is a couple I use on a regular basis
- How to set a user session time in Laravel By default Laravel when logging a user into a website the session time is set to 120 minutes. They may be instances where you need this increased. As with most things in Laravel Its straight forward to do.
- Working with and optimising images on the command line in Linux Using the command line there are optimisation you can do with images rather than using a photo editing program to perform some basic image editing. The code below is what I tend to use more often. For all the code below its assuming Debian based system like Ubuntu.
2020
12 posts
- Moving from Sass to PostCSS Now that I tend to use TailwindCss for most of my projects I’ve noticed that I don’t really use Sass anymore. I was and still a huge fan of Sass/Scss and I still do use it on legacy projects. When I first started using Sass, I used to use loads of the features sass offers…
- My current website hosting, backup and deployment setup I host/look after several different websites. Over the years I’ve used several different hosting companies. I want to run through what my current site setup which I’m using to manage the site I look after.
- How to use and add VTT to a video I’ve been doing a lot of work recently on WCAG guidelines on making websites accessible and usable for all users. Something which I discovered and never knew about is using WebVTT which is a basic text file to add subtitles, audio description to video rather than embed straight into the video.
- How to remove author sitemaps from WordPress In the WordPress 5.5 release they have added the ability to generate a XML sitemap. XML sitemap are great because it tell search engines such as Google and Bing what pages to crawl. One of the sitemap which the WordPress core creates is a user sitemap. On a WordPress site I work on we didn’t…
- Locked out of your own WordPress site and need to create a new user I recently got asked to look at friends WordPress site. Nothing major just installing a few plugins and changing around the permalinks. However there was big problem it’s been a over year since she’s last logged into the site and she doesn’t know her password. The password reset email also doesn’t seem to be sending…
- Google Analytics site search with WordPress Google Analytics is a great tool for your site. There is loads of areas of the tool which you can learn about user behaviors. In this example we will be looking at how to hook up WordPress Search queries with Google Analytics.
- How to create a hamburger menu with Alpine.js and Tailwind CSS AlpineJS is a great lightweight Javascript framework which is very similar to VueJs. It’s quick easy to get up and running. In this tutorial I’m going to show you how to create a simple hamburger menu using AlpineJs.
- Truncating lines of text in CSS using line clamp Line Clamp is one of those tools which I wish had existed when I first started to code similar to Border-radius and Box shadow. In a nutshell what Line clamp allows you to do is restrict the number of lines to display based on property value in css.
- Thoughts on The Legend of Zelda: Breath of the Wild I’ve finally got round to picking up a Nintendo switch. One of the games which was high on my list was Zelda: Breath of the Wild. I’ve played a couple of Zelda games in the past Link to the past, Wind Waker and Majora’s Mask. Here are more thoughts on the game on the recent…
- Using CSS variables with Tailwind CSS I’m a big fan of TailwindCss, I tend to use it for all of my new projects which I’m building. However in some instances I find myself reaching to write custom styles and I’m unable to use the Tailwind apply directive. In situations like this it’s good to be able to use CSS Variables.
- Using Laravel Envoyer with RunCloud for Laravel projects I’m going to go through the steps I use to set up a Laravel application in Runcloud. I’m going to assume that you already have a server instance setup and you are familiar with both Runcloud and Envoyer.
- My most used WP-CLI commands I’ve only just recently started WP-CLI(WordPress Command Line Interface). It’s something I wish I started using earlier. Basically what WP-CLI does is allows you to run typical WordPress actions such as updating user passwords, removing plugins and backing up a WordPress database from the command line in the root of your WordPress installation.
2019
7 posts
- Useful Vim commands and tips When coding I often switch between both Vim and VScode. The main thing which always impresses me is the amount of commands which are in the editor. Vim is one of them editors the more you put into it the more you get out of it. I have listed some of the command which tend…
- Thoughts on Bully: Scholarship Edition Every few years a rumor always seems to pop up that a new Bully game is in the works. Bully is one of the Rockstar IP that I have never played and it seems to have a strong following. It was recently on sale on the Xbox store so I decided to take a punt…
- Converting Bootstrap's accordions to a Vue.js component From time to time I have to use Bootstrap it’s usually on legacy projects as I tend to prefer to use utility based frameworks such as Tailwindcss. In an attempt to make it more easier to create accordions. I decided to rewrite the Bootstrap collapse accordion code into a Vue.js component.
- Setting up a SSH config file From time to time there are occasions where I need to SSH to a server. In the past when I was on a Windows machine I would use Putty. Now that I’m using Linux on a day to day basis. I can no longer use Putty I wasn’t to keen on using the traditional way…
- Front end developer switching from Windows to Linux I’ve now been using Linux on my machine at home for close to a year. I decided to go all in when I has some problems with my windows machine booting up. All of my files are stored on either onedrive, bitbucket or an external hard drive. So I took the plunge and went to…
- Thoughts on Dante's Inferno Dante inferno was always a game on my backlog that I wanted to play but for whatever reason I never managed to pick it up. It was recently on Games with Gold on the Xbox. So I thought now would be a perfect opportunity to give it a look.
- How to create a search filter with faceting in Vue.js I’m a big fan of VueJs, It’s a great framework. In this quick example I am going to write a Quick search that will filter out results as you type into the search box and it will also have a facet filtering similar to what you see on eCommerce sites.
2018
1 post
2017
5 posts
- Restrict access to a website to only certain IP addresses When building a new website there is a number of ways in which you can allow the user to see the site before launch. The way in which I tend to prefer is once the site is live give the client the a record and request them to change there host file so they can…
- How to write a password strength indicator in Vue.js My current place of work like most site has a password strength indicator. The requirements for the password is it has to be longer than seven characters, a capital letter, a special character and a number. All these requirements are currently hidden behind a tooltip. Which isn’t ideal for the user experience. An approach I…
- How to add author information from WordPress into Google Analytics Google Analytics is a valuable tool for any website it provide a great way to have insights in how users browse and discover your website. With a little bit of effort it possible to get more out Analytics in this guide we show how to add WordPress authors on blog post into Google Anayltics.
- JavaScript currency conversion tool using fetch This is a quick tutorial how to use the fetch command in Javascript to write a currency conversion tools. Using the excellent Api from fixer.io which will get the daily exchange rate.
- Using npm instead of Gulp to compile Sass I’m a big fan of Gulp, I’ve been using it for over two years recently I found myself using NPM scripts for my Javascript Applications. So I decided to see if it possible for me to use NPM also to compile my sass files.
2016
4 posts
- System notification in Gulp using Notify and Plumber A bugbear when I first started using Gulp instead of using Compass for compiling my stylesheets. Was Gulp would just crashed and you had to restart gulp to get it back running. In this guide i’m going to show you how to prevent this along side showing a system notification for when it errors and…
- Troubleshooting the fatal WordPress white screen Getting the white screen of death or any other error messages on your WordPress site can be a nightmare to fix but don’t panic. A lot of the time it can be easier as updating plugin. I’m going to write some of my personal steps. I use to resolve this issue.
- Using Rollbar with Laravel and Laravel Envoyer I stumbled across a great application called Rollbar which logs application error in a variety of languages such as Php, Perl, Javascript and Ruby to name but a few. It also has integration with Trello, Slack and Github.
- YouTube gallery using Vue.js At work recently I created a youtube gallery widget using a mixture of jQuery and HandlebarJS. I decide to rebuild my Gallery widget but using VueJs framework something I’ve not used before.
2015
7 posts
- Favourite matches of 2015 2015 was a a up and down year for both Wrestling and Mma. But for in ring/octagon action they’re has been loads of great matches. I decided like most site this time of the year I write a list of my favourite matches. The list isn’t in order and I’ve bound to of missed some…
- Sending out automated tweets in Laravel Sending out automated tweets is really easy for a Laravel using the CodeBird package. I’ve wrote a quick guide how to do this which you may find useful for you site.
- Changing and removing WordPress login and admin bar logo WordPress is my goto platform for when I want need to create a simple site where I want to user to have full control of the site and make updates if needed. They may be times when you don’t want to show the site is powered by wordpress. I’m going to show how to remove…
- My Pokémon ORAS team I’m a long term fan of Pokemon, I’ve been playing since the Generation 1 days. I finally managed
- How to set up Browsersync with WordPress using WAMP and Gulp I’m a huge fan of BrowserSync. In particular the ActionSync and the Browser reload feature. I’m going to demonstrate how to get BrowserSync working with Wamp, Gulp and WordPress stack.
- My Firefox addons Firefox popularity has struggled recently due to the rise of Google Chrome, although i use both browser on daily basis. Firefox is still my personal browser of choice for when working on desktop machines. I’m going to list my add ons which I use on a daily basis.
- Current workflow using SVN We currently use Svn in the office altogether their 10 dev which use the code base a mixture
2014
5 posts
- Dynamically generate the current year It’s coming up to my favorite time of the year where dev go through their site
- Creating XML sitemaps in Laravel In a world where Penguin and Panda can cripple your organic traffic to your site.
- Front end developer moving to Laravel I’ve been doing front end for a quite a while, I decided to back into server side development.
- Current workflow with Sass and Compass I’ve been using sass and compass for over two years. It has completely changed the way in which I develop…
- Mass Effect DLC – thoughts I’m a big mass effect series fan bar the last 30mins in the third game. Its one of my favourite
2013
3 posts
- Different charts API I recently worked on a project which required to build admin application which required to produce some…
- My current Vim plugins I’ve currently been using Vim as my main editor for the past two years, before that I was mainly Netbeans…
- Web testing with PhantomCSS When working on large projects with multiple developers over time a stylesheet can become very difficult and time consuming….
2012
2 posts
- How to create your own mini search in your browser toolbar One of my favorite features which I like to add to sites which I’m working on is a Browser Mini Search Box. This feature can be used in Firefox and Internet Explorer…
- Multiple WordPress pages on one page One of the guys in the office was working on a Wordpress project, Which led to a interesting question how in wordpress…
2011
4 posts
- The art of CSS warfare I have been a Front end web developer now for over 5 years, over this time I have picked up some techniques and best practises…
- How to do a quick SEO audit During my day to day job I usually have to do basic site seo review. I have written up what processes I usually go through when reviewing a website…
- Tae Kwon Do tournament sparring advice The beginning of this year I decided to go back and start doing tournaments again. After my previous attempts went down like a lead balloon
- Free eCommerce HTML email template This email template is a professional built email template. Ideal for eCommerce store to send as their email promotional email.
2010
2 posts
- Tae Kwon Do – 6th kup – green belt grading A while back I started learning Tae Kwon Do, which is a martial arts which originated in Korea. Tae Kwon Do means Foot, Fist and way. It is well known for its dynamic kicks. The organisation I belong to is the TAGB which the largest martial arts organisation in Europe. As I am doing my…
- Three great tips for increasing product page conversion In online retail the product page can be seen as the most important page on a website. This page has several purposes it can be a landing page, an upsell opportunity but more importantly the page should start the customer on the order process. In this post I will look at three different strategies which…