Software Engineering: If it’s not broken, don’t fix it!

If it’s not broken, don’t fix it…

One of the great advantages of software is its ability to be easily changed.

One of the biggest disadvantages of software is it’s ability to be easily changed.

Why do I say that?

Because it’s far too easy to tweak the code…

…or add functionality that’s not really required;

…or quickly tidy up the code because you’ve though of a better way of implementing it;

…or fix a bug you’ve just found whilst editing the file.

We’ve all done it, even me, but ad hoc changes are Continue reading “Software Engineering: If it’s not broken, don’t fix it!”

[SOLVED] How to create a MacOS High Sierra boot disk on USB thumb drive

How to create a macOS High Sierra boot disk…

TL;DR — Just run the installer and select the external dive. Scroll down for screen grabs

If, like me, you’ve been trying to create a boot disk for your MacBook to run High Sierra from an external drive, you’ve probably run into a few issues.

Following the instructions on the Apple website, here, I had this error on the command line…

/Applications/Install macOS High Sierra.app does not appear to be a valid OS installer application.

 

Several other articles I read pointed me at other tools to download but they didn’t work either. If you’ve tried them you might have come across these errors…

How to create a macOS High Sierra boot disk
Invalid macOS High Sierra Installer error
Invalid macOS Installer

The selected item does not appear to be a valid macOS installer.

It is lacking the file ""Contents/SharedSupport/InstallESD,dmg

 

One of the other tools I tried also failed.

How to create a macOS High Sierra boot disk
Invalid macOS High Sierra Installer error
The disk could not be created because of an error: An error occured: -10006. Finder got an error: Can’t set alias "Install macOS High Sierra:Install macOS High Sierra.app" to {425, 76}.

 

The Solution…

Continue reading “[SOLVED] How to create a MacOS High Sierra boot disk on USB thumb drive”

How to use the 500px api [solved]

If the documentation exists that shows how easy it is to use to 500px api, I’ve not been able to find it. This post resolves that by sharing my findings and the solution I’m using in a WordPress plugin I’ve been working on.

The problem…

I wanted to tweet photos from 500px at random intervals to improve the visual impact of my twitter feed.

Using the 500px api…

It sounds simple enough but I hit a roadblock: I couldn’t find an example for how to authenticate using oauth and call their api. The best I found Continue reading “How to use the 500px api [solved]”

MUTEX — What is a MUTEX? Where are they used?

MUTEXes — What are they and where are they used???

A mutex or Mutually Exclusive Semaphore to give it it’s full name is a software construct commonly found within a multi-tasking operating system, especially an RTOS.

The mutex, as with all semaphores, is a means of signalling between threads and works in exactly the same way tokens are used on the railway network to prevent two trains being on the same piece of track at the same time. Continue reading “MUTEX — What is a MUTEX? Where are they used?”