Cutting the Size of the Mautic JavaScript Tracking Script

Having used Mautic for a few clients, I decided to install it on my own site, partly for testing and partly to actually use it’s functionality.

Unfortunately, having made an effort to keep my page sizes to a bare minimum, it was depressing to see that the tracking script increased the overall size of my pages by around 50%.

So I took a look at the script to see if it’s size could be cut down.

Continue reading “Cutting the Size of the Mautic JavaScript Tracking Script” ››

Fixing Broken Email Template Images When Running Mautic in a Folder

I first ran into this issue after installing a local copy of Mautic to develop some custom Email templates.

Everything looks fine until you open up the email builder and images added in the Email Twig template don’t show.

The fix is pretty simple if a little counter intuitive.

Continue reading “Fixing Broken Email Template Images When Running Mautic in a Folder” ››

Using the Symfony Installer Command Line On Windows

Posted in Symfony

If you are following the official documentation to use the symfony installer on Windows then it is very likely that you will run into the error:

'symfony' is not recognized as an internal or external command,
operable program or batch file.

Here’s how to fix it.

Continue reading “Using the Symfony Installer Command Line On Windows” ››

Fixing JSON Data Errors After Updating to Joomla 3.6.3

How to fix fatal errors related to JSON decoding when updating you Joomla core version.

Continue reading "Fixing JSON Data Errors After Updating to Joomla 3.6.3" ››

How to get your Windows 10 Key

Posted in General

I recently bought a new pc, and was a bit quick to install Windows, create a backup drive and remove the disk to install the larger ssd from my previous computer.

The upshot of that was that, after installing the operating system on the new drive, it wouldn’t activate Windows as I didn’t fully activate it on the first install before making the recovery drive.

In the end, I got in contact with a Windows support person who recovered the activation key from the computer hardware. Which is pretty simple when you know the commands.

To get your key:

Right click on the start menu and select “Command prompt (admin)”

Type in:

wmic path SoftwareLicensingService get OA3xOriginalProductKey

You should then get your key in the console output.

Adding Custom Mime Types for WordPress Uploads

WordPress allows the upload of different filetypes to posts through custom fields, but it only understands certain file types by default.

As an example, if you wanted to allow the upload of ebook formats like epub and mobi, you need to tell WordPress how to understand those filetypes.

Continue reading “Adding Custom Mime Types for WordPress Uploads” ››

Selecting WordPress Posts That Contain a String in PhpMyAdmin

Posted in Wordpress

I was asked to find a list of posts in a WordPress install where the body text contained a certain string. Subsequently, I discovered how bad the search is in the post listing screen and decided it would be easier to find them in the database.

To just grab the useful information, I used the following SQL:

Continue reading “Selecting WordPress Posts That Contain a String in PhpMyAdmin” ››

Issues Assigning Nameservers to .de Domain Names

I recently ran into an issue whilst trying to change the nameservers for a German (.de) domain name. When I tried to point the domain to a whm/cpanel install I got the error ‘Failed to Modify Domain Nameservers: The domain DNS check has failed’.

The reason for this is specific to .de domains.

Continue reading “Issues Assigning Nameservers to .de Domain Names” ››

How to Find the Full Joomla Version in the Site Files

Sometimes, for whatever reason, I need to find out the exact version of Joomla a site is running without being able to access the administration area.

Here’s where to find the version number in the file system.

Continue reading “How to Find the Full Joomla Version in the Site Files” ››

Standard URLS Called by Websites for DNS Prefetching

There are many articles out there on how DNS prefetching works so I will keep it brief.

It works by adding a link to the head of your web page with a relationship of ‘dns-prefetch’ and the url of a domain which holds assets needed for the page to load. That could be a cdn for the site, a social plugin or anything else.

Without prefetching, a browser will render the page top to bottom and when it gets to an asset which needs to be loaded from another domain it performs a dns lookup to find the location of the host and then downloads the assets. By adding prefetching links we are letting the browser know that these domains will be used before the assets are requested. Browsers can then loook up the hosts whilst rendering the rest of the page, cutting out this step when the assets are needed leding to a shorter download time.

This process is non-blocking and will only be performed when possible. For example, on a small page requesting an asset from another site high in the head of the document, it’s likely that the asset will be loaded before there is a chance to prefetch the dns.

The point of this article is to list domains used by common services for easy future reference.

Continue reading “Standard URLS Called by Websites for DNS Prefetching” ››