Toggen Blog
Tech tips
Articles
Latest
CakePHP passing data from beforeDelete to afterDelete callback
Old post found from 2019/06/15 at 7:55 pm in Drafts. Published April 2025 private $fileTemplateName = []; /** * @param $cascade */ public function beforeDelete($cascade = true) { $this->fileTemplateName = $this->findById($this->id); return true; } public function...
Azure Geographies/Regions/Availability Zones/Availability Sets
Putting this together with things I already know Geography = Australia For Geography I like to think of a Country Regions Australia East = Sydney Australia Central = Canberra Australia Central 2 = Canberra 2 Australia Southeast = Melbourne Within Azure I think that...
Protecting your Confidentiality and Security
Use antivirus software on your computerEmploy a spyware-detection programInstall a firewallKeep all of the above continually updated, and install security updates for your applications and operating system.Beware of links or attachments in e-mail or instant messages,...
CakePHP 4 Events
Found in my Drafts folder last modified 2020/08/21 at 11:20 am. Published April '25 Until yesterday I hadn't used the CakePHP Event system with the exception of putting some code in default Event callbacks such as Model.beforeSave, Model.afterSave or...
Changing Mac to Windows Compatible Filenames in S3
I did a heap of aws s3 sync ./Documents s3://myBucket/Documents commands on a MacBook to upload files to S3. When I went to download the S3 files to Windows. I found that there were many characters that the Macbook and S3 would happily accept but windows wouldn't...
diskpart Attrib:
Found in Drafts and posted April '25. Not sure what this is about but posting just-in-case it is useful in future. Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 D DVD-ROM 0 B No Media...
