James McDonald

Access

Blog History

AWS to Digital Ocean DNS Record Migration

Just completed a migration away from AWS to Digital Ocean Need to install the Digital Ocean dotctl command line utility (this is using brew on a mac) brew install dotctl Transfer domain records away from AWS using the aws-cli #!/bin/bash domains=$(aws route53...

read more

Format validationsErrors

A recursive function that takes a validation error array and return a string with all the different errors concatenated into a formatted string Further to my previous posting https://toggen.com.au/it-tips/cakephp-2-displaying-validation-errors This function will walk...

read more

PHP Version Gotcha

Just copied some code from a PHP 7.3+ development environment to the server running PHP 7.2 On the server I am getting this On PHP 7.3 it runs fine Because the line number is not listed this is how I find the problem Find which controller is being called when you see...

read more

Remove Sensitive Data from Git Hub

If you follow the faqs on github it will say you can use bfg to remove sensitive data https://help.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository Here are my learnings bfg has to be run from the root of the git repository i.e....

read more

G-Suite to Office 365 Migration Stalled

Following the steps at this link: https://docs.microsoft.com/en-us/exchange/mailbox-migration/perform-g-suite-migration#create-a-migration-batch-in-office-365 Trigger the migration in the ECP (Exchange Control Panel) Viewing the status of the migration Login to...

read more

I like the smell of Laravel

So I've created number of websites and applications in CakePHP 2.x and 3.x As my coding experience has grown I found invariably I have been struggling with a number of things and while I really appreciated: Cake conventions providing consistent approach to structuring...

read more