HorusKol

Adventures and musings in the world of web development

Convert SVG images in the browser using JavaScript and the Canvas API

August 31, 2020

It is possible to convert an SVG image into PNG, JPEG, or even WebP, in the browser.

Drag and drop elements on touch devices

August 15, 2020

Want to allow users to move elements around a page no matter what device they're using? Here's a quick guide to implementing drag and drop for mouse and touch users.

Renaming your master branch

June 9, 2020

Git lets you rename your branches, but renaming your master branch can be tricky.

Some tips to help speed up Composer install/update

May 27, 2020

Composer taking a while to install/update? It's either time to go and make a coffee, or try these tips to speed it up again.

Live code highlighting in the browser with vanilla JavaScript

March 5, 2020

A cross-platform, vanilla JavaScript text editor that can provide code highlighting (or any other kind of highlighting).

PHPUnit - name your data sets in your data providers

February 26, 2020

Name the data sets in your data providers to help identify failing tests, and generally make life easier.

Laravel database factories for better testing

February 19, 2020

A quick look at how Laravel's database factories help with simpler tests, and how being lazy can speed up your tests.

Nutty network issues - a tale from the past

February 12, 2020

Sometimes you just cannot predict the root cause of an issue.

Levelling up dependency injection in Laravel

February 5, 2020

Take dependency injection in Laravel controllers to the next level by using interfaces and the service container.

Introduction to dependency injection in Laravel

January 29, 2020

Have Laravel do some of the heavy lifting for you by taking advantage of its DI framework.