What's been on my mind

"Plastic Nightmare": a presentation in Kommetjie by Surfer and Scientist Dr. Tony Butt

Submitted by charles on Mon, 08/20/2018 - 15:00

Surfer and oceanographer Dr. Tony Butt, who has been a regular at the big wave spots around the Kommetjie area over the years and who has given talks about the science of waves and geomorphology, spoke again this evening at the Kommetjie Surf Shop, but this time it wasn’t about surfing or the formation of waves, rather he presented his research and thoughts on this “Plastic Nightmare” we are living in and are all contributors to.

Prompting a user to confirm navigation away from a page using the "beforeunload" event in javascript

Submitted by charles on Sun, 08/19/2018 - 13:43

To brush up on, and solidify my javascript knowledge, I'm currently going through the book "Eloquent Javascript", and came across the brief mention of "load" and "unload" events. I'm well aware of and use the "load" event all the time, but I haven't actually needed to use the "unload" event in any custom js code of mine before, so while the book doesn't really go into any detail I looked at the MDN's "beforeunload" documentation for some more info. 

The illusion of freedom and control in our modern technology (phones, apps and social media websites)

Submitted by charles on Sat, 05/13/2017 - 16:12

The makers of the many of the apps and probably all of the social media websites we use (Facebook, Twitter, Gmail, LinkedIn, YouTube) don't have our best interests at heart, and are designed to keep us within their environments for as long as they can, and to make sure we come back often. This shouldn't come as a surprise, when most of the business models are advertising based, and more time spent = more advertising revenue potential.

Cache-Control: max-age header missing from static files in Drupal

Submitted by charles on Sun, 07/24/2016 - 20:45

One of the sites I maintain recently had a server upgrade to Ubuntu 14.04.4, which included a new version of varnish (version 3.05) which required an update to the Varnish configuration. After setting up a new default.vcl file I was monitoring the headers sent and received to make sure that what was supposed to be cached was in fact being cached by Varnish. While testing I discovered that I was not getting any Cache-Control headers from static files like images.

South African born Musk's Tesla and SpaceX websites use Drupal

Submitted by charles on Sun, 07/17/2016 - 13:25

I'm a huge fan of Elon Musk, the world-changing, South African born pioneer of the consumer electric car and space technology company SpaceX, and was pleased to learn that both the Tesla website, and the SpaceX website are built on Drupal. Both are currently Drupal 7 sites with home pages that use beautiful images and videos (in the case of the Tesla site) to provide high visual impact and engagement.

Tesla website uses Drupal
Tesla's visually compelling Drupal website home page