New year, new lick of paint. See previous version of this site in the internet archive. It isn’t perfect, but I’m happy with where it’s going. The colour remains an ongoing experiment. The years archive on the Browse page is probably the site’s most vibrant manifestation at the moment.
I keep encountering issues when running Craft’s
setup command locally. Note that I use MAMP Pro for this sort of thing. I entered all the database creds correctly, and then got a
SQLSTATE[HY000]  No such file or directory error. This StackExchange answer sorted it for me. Add
'unixSocket' => getenv('DB_SOCKET') to
Still encountering database connection issues on staging for one site currently under development. All of the credentials are set correctly in
/config/db.php retrieves the wrong
DB_USER value. Ended up explicitly adding the problematic value to the
/config/db.php file as a quick workaround, but it’s not ideal.
- Introduction to WordPress front end security: Escaping the things
- WordPress front end security: CSRF and nonces
- WordPress plugin: Limit Login Attempts
Links to a few of the WordPress security resources I find useful. Limit Login Attempts hasn’t been updated in a while, but it still does the job stopping many annoying bots.
Finally updated my website to include information and links for a few recent projects. Sam and I worked together to redesign the site. In return, I helped him move his domain to sambaldwin.info.
I’m quite excited about the colour of the text and favicon. The hue, saturation, and lightness are calculated according to the season, temperature, and time of day where I am.
There’s definitely a couple of issues to sort out, will get to those soon.
Wanted to give a front-end dev like Sam the ability to define the important bits, including the default image size for the
src attribute, the media queries for the
sizes attribute, and classes for the
img element if necessary.
Edit 23 Jan 2019
This isn’t necessary anymore, responsive images have been part of WP core since v4.4. They’re implemented on
wp_content automatically via a filter. Use their related functions if you need to do something custom. Responsive images are behaving a little erratically on my site though, so will have to take a look at why that might be happening.