Skip to content
duane blake

Latest posts

~/posts
Faith running from some secruity
~/games/gaming ·

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.

~/code/laravel ·

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…

~/code/front-end ·

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.

~/code/seo ·

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.

~/code/how-to ·

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…

~/code/wordpress ·

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

~/code/laravel ·

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.

~/code/linux ·

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.

~/code/front-end ·

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…