Posts

2021

Testing Mobile App in AWS Device Farm using Appium and Node

· Reading time: ~6 minute(s) (1185 words)

Warning: this post is quite code heavy as I offer our solution as an example

At work, we’ve been working on a mobile app for our customers. We’ve been looking at automated testing to... (continue reading)

Configuring NGINX to work with React Router

· Reading time: ~1 minute(s) (159 words)

When using the BrowserRouter that’s provided by React Router, you’ll find that if you’re navigating within the site to the various URLs, they will work. However if you bookmarked one... (continue reading)

2020

How to test a custom React hook component

· Reading time: ~3 minute(s) (531 words)

As part of my GameBrowser side-project, I’m at the stage where I wanted to start improving the UI a bit. This included needing to define a way of filtering the servers in the list, because... (continue reading)

Basic Setup for React Projects in 2020

· Reading time: ~7 minute(s) (1399 words)

I’ve seen a lot of people using project initialisation tools to create their new React projects over the years, in particular create-react-app. While I do see there are some benefits to these... (continue reading)

How I Built My Custom Hugo Pagination

· Reading time: ~5 minute(s) (1011 words)

I’ve been planning on improving the pagination control for my blog for some time, but it always seemed a bigger job than I really wanted to work on in my spare time, but I was wrong. The only... (continue reading)

View Hugo served content on another device on network

· Reading time: ~1 minute(s) (190 words)

When you want to view content served by a locally running instance of Hugo on another device, you have to specify a few extra things so it will work correctly.

When you start the Hugo server locally,... (continue reading)

Debugging a dotnetcore application hosted in a local IIS server

· Reading time: ~1 minute(s) (153 words)

When debugging a dotnet framework application that is hosted in a local IIS server, you would usually identify the w3wp.exe instance running the Application Pool and attach your Visual Studio instance... (continue reading)

Moq - Setup Mock method specifying parameters of type

· Reading time: ~2 minute(s) (255 words)

When working on my GameBrowser project this evening, I wanted to verify that a method setup on a mock object had been called when a property of the parameter object was a particular value.

My scenario... (continue reading)

Creating a Terraria server in Docker on a Raspberry Pi 4B

· Reading time: ~7 minute(s) (1367 words)

Terraria is a sandbox style game, similar in many ways to Minecraft, but yet different enough for many to argue otherwise!

When the Steam sale started, and Terraria was only £3.49, it made sense to... (continue reading)

Some reference bits for Git source control

· Reading time: ~2 minute(s) (328 words)

Retaining chmod permissions for scripts in git repositories

git update-index --chmod=+x your_bash_script.sh

The git documentation provides more information on the update-index command here:... (continue reading)