Just a reminder to myself to be very careful with the new update of MacOS Catalina It sounds like a number of things are going to break... I just hope I don't forget this and blindly click update when it comes out. (As of 8 Oct 2019 MacOS Catalina is released) I think...
James McDonald
MAC Address Changer for MacOS
If you have the need to change your MAC Address on you MacBook Pro. You can use macchanger which is a command line utility installed using home brew. brew install macchanger Then to show your current MAC address macchanger -s en0 Then to change it to something random...
SIM Corner FTW
Before we travelled this time around I bought a UK SIM with 12GB of data from https://www.simcorner.com/ which I used in Greece including the Ionian Islands, Italy, Netherlands, Belgium, Germany, France and the UK It worked well and having data made travel so much...
AZ-300 ACloudGuru Notes
Function App Settings Default URL Format https://toggen-fa.azurewebsites.net/api/HttpTrigger1?code=<FUNCTION_KEY> Default URL for HTTP Triggered function app has /api/HttpTrigger1 which is configured by two settings /api/HttpTrigger1 {routePrefix}{Route Template}...
CakePHP 2 Displaying Validation Errors
# app/Controller/ShipmentsController.php public function toggleShipped($id = null) { if (!$this->Shipment->exists($id)) { throw new NotFoundException(__('Invalid shipment')); } if ($this->request->is(['post', 'put'])) { $shipment = $this->Shipment->find( 'first', [...
Toggen is IPv6 Live
So I haven't done much with IPv6 to date but have just discovered that my new NBN connection has IPv6 enabled... So I have configured my Amazon VPC with a IPv6 address range and added or associated a IPv6 address to this websites EC2 eth0 interface Also needed was...
Proxying an application from an Nginx subdirectory back to the root of the backend server
This is what needs to be done to get a reverse proxy working with client requesting data from Nginx at a 'sub-directory' location and an Apache backend serving the application from the root-directory In hindsight this was probably what I would need to do in order to...
MacOS Scanning – Now working with IPv6
I had problems printing and scanning from my MacOS laptop to a HP Officejet Pro 8620. I ended up fixing it by turning off IPv6 on the printer and the MacBook. But it appears that you can have IPv6 turned on and it still work. Please see below...
OPTIONS pre-flight Check CakePHP 2
Before fetch sends a POST request to another domain it will do a CORS pre-flight check. The following website has the HTTP OPTIONS middleware code you can use for CakePHP 3. It mentions for a CakePHP 2 version you need to go to another website which is unavailable now...
Nginx Certificate Installation from PFX File
https://gist.github.com/junxy/2464633f27345fbe6a98 # if your pfx file is yourdomain.com.pfx # split the name up so you can have a descriptive # cert and key name OUT=yourdomain.com PFX=.pfx # create pem fromat certs from pfx fiiles # and a decrypted key openssl pkcs12...
CakePHP 2.x Validating Forms without a Database Model
I have a CakePHP form that I need to validate but the form fields don't equate to anything in a database table or model. To get it to work I create a dummy 'Model' using ClassRegistry::init, attach all the necessary validation rules, set the POST data from the form to...
Dynamically Displaying the Twitter Bootstrap Version in a CakePHP Page
This is the CakePHP Code that I embed in a page to display the current version of Bootstrap CSS that is in use on the website. Assuming that JQuery is included somewhere on the page all that is required is a target div and then a snippet of javascript created using...
Getting Windows to print to IPP Printer hosted on Ubuntu 18.04
Just some notes for Windows 2008 R2 This is the error message I was recieving when trying to connect to Cups on Ubuntu 18.04 from Windows 2008 Server Definitely have to Install the "Internet Printing Client" feature in Windows Server 2008 and reboot Also may have to...
Since CUPS 2.2 System V interface scripts are no longer supported for security reasons
lpadmin -p weighbridge -E -i /home/jamesm/weighbridge -v socket://192.168.0.28:9100 lpadmin: System V interface scripts are no longer supported for security reasons. So just upgrading a system from Ubuntu 14.04 which uses Cups 1.7.2 to 18.04 which uses Cups 2.2.7....
Viewing Expected and Unexpected Reboots on Windows Server 20xx
Just logged into a server and discovered the unplanned reboot screen was asking why it had unexpectedly reboot. So wanted to know when it happened and how often there had been planned and unexpected reboots To get this information you have to filter your System Log...
Telstra Smart Modem Gen 2 mobile mode – PPTP and L2TP VPN’s don’t work
Problem: Mobile Mode doesn't support L2TP or PPTP VPN connections Recently my ADSL filter between the phone line and the TELSTRA SMART MODEM GEN2 failed and caused my internet connection to fail over to "mobile mode" or "backup mode" which I believe is a SIM card in...
vncserver on Ubuntu 16.04
This link has the instructions to install VNC on Ubuntu 16.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04 Following are the fixes for things that didn't work for me Missing Icons in XFCE #follow the tutorial but...
Test of Social Media Share
This is a test of Jetpack free account sharing to my connected Social Media accounts: LinkedIn and Twitter