Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Blog Archives

Instagram Posts Borked

Apparently, Instagram changed how they link images at some point, which broke all my previous image posts. I can replace the broken posts with oEmbed versions, so you might see a couple of working ones. I just need to find time to write up a script to fix the rest of them, so that I don’t have to edit 80+ posts manually

Good Breakdown of Recent WordPress Vulnerability

The Sucuri Blog has a good dissection of the recent critical WordPress REST API vulnerability. I won’t rehash the details here, but I did want to point out that this is why developers should remember to follow these two rules of defensive programming:

  1. Sanitize inputs as early as possible
  2. Sanitize outputs as late as possible

In this case, there was a failure to follow the first rule. There are a couple of different places where this could have been handled better.

Continue reading

Project time

I’ve been tinkering a little bit with my electronics stuff again. Now I’m trying to decide on a project to do, and which hardware platform to use… I have a ton of different microcontrollers — Digispark (ATtiny85), Digispark Pro (ATtiny167), Digistump Oaks (ESP8266, wifi), Adafruit Trinket Pro (ATmega328), PunchThrough Bean (BLE), Particle Core (wifi) / Photon (wifi) / Electron (3G cell), NodeUSB (ESP8266, wifi), ESP201 wifi  modules, some Arduino Pro Mini clones, a Tessel2 (wifi, … Continue reading

A Rant

Once upon a time, before the Facebooks and Twitters and Reddits and MySpaces, there was Usenet. And on Usenet, flaming and trolling was an art form. It wasn’t just a bunch of angry, shocking, monkeys on keyboards. Trolls were subtle. Flames were eloquent and surgically precise. Then in the early 90s, they opened the internet up to the general public, and it became Amateur Hour. Newcomers, with no knowledge of the existing culture, nor the … Continue reading

DIY

We moved into our new house at the end of December. But we’re still doing fix-ups and clean-up at the old house to get it ready for market. One thing our realtor recommended was to remove the popcorn ceiling in the kitchen and master bath.  My wife, Susan, did all the popcorn ceiling removal, I sanded them, and we shared the painting work.  So, we started with something like this: ? Then got to this: … Continue reading