Duncan McClean Duncan McClean
Posts About Newsletter

An accidental £1.7k bill from Google Cloud Platform - a story

Nov 25, 2019

As I'm writing this I've just got off a live chat with a Google Cloud Platform support agent who helped me escape this accidental bill. I can't say thank you enough for the agent that helped me out during this very stressful situation. So a week or so ago I was using ReadCast and I ran a...

How to Force Remove Service Worker from Chrome

Nov 6, 2019

So I recently created a service worker for one of my apps so I could turn it into a Progressive Web App. Although, for some reason I was under the impression that I should cache the main page of my app. I later realised that it was a very bad idea. I think I'm the only user of the site tha...

How School Has Shaped Me

Nov 2, 2019

I wrote this essay way back in May but I couldn't really share it back then or I wouldn't get any grades so here it is for everyone to read. I can’t remember the first day I went to primary school, obviously it helped me learn the basics of learning to read and write but it also affect...

Has Christmas become too commercialised?

Nov 2, 2019

I wrote this essay way back in May but I couldn't really share it back then or I wouldn't get any grades so here it is for everyone to read. Did you know that the average person spends £600 on Christmas presents every year? Toys, clothes, iPhones: whatever it is, we spend hundreds of ou...

About my recent redesign

Oct 30, 2019

You might have noticed that I've recently redesigned this site. In fact, it's not just a redesign, it's a whole rebuild. From the ground up. The old site was a Systatic site (my old static site generator) that got its content from a Ghost backend hosted on Heroku. This site is much simpler...

Setting up Laravel Forge for a Statamic site

Sep 14, 2019

A big thanks to Ben Furfie who helped by looking over this article and suggested loads of improvements. Every site needs to be hosted, and your Statamic site is no different. The recommended solution is a combination of Digital Ocean and Laravel Forge to handle your hosting and provisionin...

Finding an idea can be hard...

Sep 4, 2019

I'm getting to that point with ReadCast where it's starting to be pretty stable and the features are pretty much what I wanted them to be when I initially started.This is leading me to think about starting another side project. The only thing is: I want to do it for real this time.Before I...

Getting Started with testing Laravel Apps

Jul 17, 2019

Recently I've started to write tests in my Laravel applications. Tests are useful because they allow you to make sure important parts of your application are working, things like registration or subscriptions. Things that could be easily missed and could cause uproar if they broke. When I ...

Update Customer in Stripe using Laravel Cashier

Jun 6, 2019

I've just had the situation where I needed to setup my Laravel app to update my customer's information in Stripe when they change it in my app.The method I used to do this is actually undocumented on the official Laravel Cashier documentation, I found it while I was looking through the Cas...

How I built a Web Scraper to create a Bin Collection API

Jan 4, 2019

A few months back I wrote some code that would go to my local council's website, search for a street name, open the link, get the bins for that week. When I got it working I was amazed at how easy it was. I was able to just take out content from another site and present it however I wanted...

Previous posts

Page 1 of 2

Newer posts

© 2019 Duncan McClean