Category: Development


Preventing Mobile Browsers From Turning Off

The following code has been published which prevents a mobile browser from going into sleep mode. This was affecting setTimeout functions as the javascript code in the browser is effectively paused preventing the event loop from processing once sleep mode is activated. I originally looked at nosleep.js but ended up simplifying the code and putting it into a standard module for Vue.js The code works by looping through a...


Setting up HTTPS (SSL) with Cloudflare and WordPress

I’ve been working with blockchain and cryptography for 3 years now which is probably a good time to update the old wordpress blog to SSL before anyone notices. Turns out I don’t need to purchase or manage an SSL certificate, which is a shame because I loved breaking things with that certbot thing on linux. If you are just running a wordpress blog or simple website like this one you...