Programming

Simplify Strings for Comparison by Removing Special Characters and Diacritic Marks

Posted on

I was working on a search system that needed to simplify the strings for comparison. It needed to compare the text regardless of special characters (diacritic marks) or casing. The following function breaks the special characters into their component parts, before removing the “special” parts and lower-casing the whole thing. function normalise(term) { // Simplifies […]

Programming

Find All Images on a Page With JavaScript

Posted on

One of the most common issues I see in content-managed websites is the presence of a fully-qualified image address that isn’t secure when the website itself is. When this happens, you’ll need to find all images that aren’t secure and fix them. For example, if you are visiting https://www.example.com and there is an image http://www.example.com/image.png […]

Process

The DITE Cycle: Data Insight Theory Experiment

Posted on

This is not my idea, though I’ve named it the DITE cycle in opposition to other available alternatives. There are lots of organisations and individuals doing something along these lines and they all give it different names. There are echoes of The Lean Startup, flashes of Spotify’s DIBBs, the velvety touch of Impact Mapping, and […]

Opinion

Tech is Only as Bad as the Non-Tech Analog

Posted on

I had an interesting discussion with a very smart woman I know about tech. In particular, we talked about whether technology is inherently good, or bad. Our conclusion was that tech is only as bad as the non-tech analog for the activity you are engaging in. This is deep stuff, so let’s use some examples […]