Notes (20)

Mobile device detection using PHP and USER-Agent

When designing responsive websites, the main focus is using the template framework which has been chosen for the site, eg bootstrap to create views for different devices. This works to a certain extent but also creates a lot of code bloat which may load unnecessarily.

A little known attribute for HTML image - decoding async

The HTML image tag has a hidden attribute called decoding. When the image tag loads, content below the image has to wait for the image to finish loading before the rest of the content is displayed. With the decoding attribute you have three options which allow…

Automating Permissions and Cache issues in mautic

From time to time there are somethings which mautic always seems to have an issue with. One of these is the mautic cache environment. This seems to break after an update or sometimes when new plugins / themes are added. When there are updates to…

MYSQL Country & Nationality List Imports

One of the long standing GitHub projects I have been working on, is a list of country imports for MySQL. Recently we have added a nationality version for importing. There are different versions for the import ranging from a simple list to country codes and…

htaccess tweak for Mautic in a subfolder

There are different ways to install Mautic. The tweak to the htaccess below should only be applied if you are using option 2. Firstly, some context, read this Github issue. This tweak applies to both apache 2.4 and greater and older version less than 2.4. For reference…

Why use Cloudflare WAF for security

The primary reason Cloudflare has become popular is the ability to stop DDOS in its tracks. This has proved to be a very effective tool to mitigate any major issues on websites. DDOS protection is offered as a free service. There are other tools which…