freshsauce web development

Recent blogs

Logging browser javascript errors back to your server

Logging browser javascript errors back to your server It’s impossible to know if your web app is throwing errors in old or modern browsers unless you instrument to track those errors. The good news is it only takes a few lines of javascript code and server side code to get a proof of concept up […]

Posted: August 9, 2017 at 9:16 pm

MySQL/MariaDB auto update multiple timestamp fields

MySQL/MariaDB auto update multiple timestamp fields Prior to MySQL < 5.6.5 only one DATETIME or TIMESTAMP field in a table could be updated automatically on INSERT or UPDATE. From MySQL >=5.6.5 this restriction went away, so it’s now possible to have both a created_at and modified_at field for example (you can have more) and have […]

Posted: September 21, 2016 at 8:48 am

Mac DNS for local development using dnsmasq *.dev.local domains

Mac DNS for local development using dnsmasq *.dev domains A quick gist to cover the basics of adding dnsmasq to your mac and setting up the domain *.dev.local to point at your local development environment, or more granular control if you want it. View the code on Gist. Thats it, shout if you’d like more […]

Posted: September 21, 2016 at 8:34 am

A/B tests, going downstream

A/B tests, going downstream Normally running a front-end A/B test I just reach for Google Experiments which are easy to setup in Google Analytics, and it does all the heavy lifting around user selection, statistics and confidence rating on the results for you. However, Google Experiments only work if the front-end test is all about measuring […]

Posted: August 20, 2016 at 7:25 am

SSL how to get an A+ rating with Nginx

SSL and Nginx, how to get an A+ security rating

Posted: May 24, 2016 at 7:53 pm