In giving myself an exercise to practice πŸ’ͺ Pandas and Matplotlib, I ended up looking into this question by comparing GDP per capita with UN Sustainable Development goal indicators of educational proficiency. Here’s the result, and more importantly (at least for me) the process I went through, including one or two mistakes… πŸ™„

Read More →

The job of a data scientist / analyst is to present data in a way that is as a minimum both useful and accessible. Probably engaging too, though some might see that as a slightly lower priority.

Now, a CV presents data πŸ“Š – so as someone in data science your CV had better meet those requirements. Does that mean it’s different from the A4 1-pagers I usually see? I think so, in small but important ways.

Read More →

The Search & Filter Pro plugin has some neat functionality to allow users to refine their searches in just about any way you might wish. Not only that, but it’s pretty slick in delivering updated results via ajax with very little configuration. So it’s been my go-to choice whenever a site needs anything more than the most basic search function.

It’s not too hot on the look though.

Read More →

Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth.

Sherlock Holmes

Over the years I’ve learned it’s always my fault. If something isn’t doing what I expect it to, then I’ve messed up somewhere – so I look to my code, and the most recent changes, to see where the problem is.

Read More →

In adapting a twitter feed plugin to my needs, I came across a weird problem where transients wouldn’t save, and worse, it was intermittent. I at last isolated the problem to emojis, and found this post on the subject which explained the problem.

Read More →

One of my Bulk Attachment Download users suggested I make it work for grid view as well as list view, and since this was entirely sensible and something I should have looked at sooner, off I went. Most of the work was relatively straightforward, but I hit a bump when trying to respond to users selecting attachments for download.

Although I could get a jQuery function to react to a click event on the image, nothing would happen when clicking on the check / uncheck icon at the top right of each image.

Read More →

When I’m developing a site I always have an st_error_log( $var ) function that writes to an error log so I can dump variable data there to figure what’s going. On three separate occasions now I’ve had a wtf moment when it seems as though a filter or action has been firing twice for a single page load.

Read More →

A few years back I wrote about how to get Fancybox 1 working on WP galleries – specifically how to add a rel tag to an image anchor tag so that images would appear grouped in their correct galleries.

That all became obsolete with the introduction of the Gutenberg block editor, as images and galleries are now inserted into posts and pages in completely different ways.

Before, there were plenty of filters available to change image and wrapping anchor tags relatively easily, but my attempts to do something server-side and php-based with the block editor met with total failure. Instead I ended up upgrading to Fancybox 3 and using jQuery to sort pretty much everything out.

Read More →