Upgrading the php version on your server doesn’t come without risks. With all coding languages, old features can become deprecated or even removed. Trawling through a codebase manually to check it’s still all going to work doesn’t sound fun. So this article shows how to lint php version breaking changes. Prerequisites You’ll need PHP’s equivalent […]
Category: How to
I went bravely from using js to jsx files. Then I overcame the gag reflex to write html in javascript. It was time to cover the final threshold with TypeScript and the tsx filetype. In this article, I cover briefly, how to use TypeScript with React. Defining types within functions If you’re familiar with TypeScript, […]
SSL certificates on websites are now the norm. They are also useful for subdomains, such as testing environments etc. This post looks at using unlimited ssl subdomains in cpanel, whilst optionally using cloudflare. It doesn’t have to be hard to set up, but there are some requirements to keep in mind. Prerequisites For hosting, you’ll […]
Sometimes you might want to run a function without ever having to call it. This is especially useful when you want to declare some global variables, but also keep them private, within a function. This article explains how you can immediately call a function in javascript. What is an IIFE? An Immediately Invoked Function Expression […]
One of the annoying quirks of writing HTML inside of a javascript file is that, by default, it doesn’t recognise that you’re actually writing HTML. In VS Code, this can be fixed by opening your settings.json and adding this option: Oh happy days!
Using the native fetch() to get frontend api data with javascript is easier than ever, and works great alongside frameworks such as vue. Grabbing data the old way Before fetch came along, API requests were made using XMLHttpRequest, which didn’t include the use of Promises. It was a little bit verbose, like so: Grabbing data […]
An SSL certificate provides a secure connection between your website and the visitor’s browser. All data transmitted is encrypted and protected from eavesdropping and tampering. Wamp doesn’t come with it enabled out of the box, so here’s how to set it up. This article assumes you already have Wamp up and running. Enabling https in […]
I’m always forgetting how to update my raspberry pi, this is just short & to the point cheat sheet. If you’re accessing the pi remotely, the following commands can be run within a regular powershell terminal via Windows. Just make sure that you have the OpenSSH Client enabled on your windows machine. You should find […]
Arrays are the bread and butter of javascript when it comes to handling data. Especially awhen grabbing data from APIs and filtering results. I’ve noted some super useful built in methods relating to arrays, to help with all sorts of situations. Get to know these, for great power comes great responsibility…
I’ve started to enjoy using Visual Studio Code as of late, my favourite choice in Code editor (Intellisense ftw). However, if you notice that vs code scripts are disabled using the terminal, you might need a slight configuration. Specifically, if you plan on using it for running global commands.