Categories
Android Apple Developer Linux

How to encrypt everything in your life

Big warning before we begin Encryption is only as strong as the schema that supports it. If the software has a vulnerability then your encrypted data may be as good as unencrypted data in the hands of adversaries. So make sure you keep all of your software up to date and follow best practices. I’m […]

Categories
Apple

How to remove packages from macOS

If you’ve installed an application that comes bundled in .pkg files, there’s a pretty easy way to get rid of them. All package installers have a Bom file, a bill-of-materials file that macOS can keep track of. This file shows what the package installer installed to the system, and can be used to clean up […]

Categories
Apple

Find CPU model in macOS

This is just a note to myself so I don’t forget. The command is: This usually prints something like:

Categories
Apple

Use NSSavePanel in Swift

TL;DR for impatient developers: Don’t forget to allow the app to access the filesystem. Okay, we need to make a dialog, so let’s make a variable named dialog and assign it the NSSavePanel. So far so good. Then we have to set some parameters. Let’s give the dialog a title-bar name. The parameter names are […]