When you have to use UserDefaults to share data between a core app and a widget you have to do a couple of things. Inside of the project Signing & Capabilities use the Add Capabilities button to add App Group. You need to do this while selecting both the app […]
Advanced SwiftUI Stepper
Apple’s built in stepper allows you to only have one step increment value, I’ve designed on that allows for two different increment values. Initial version supported 1 and 10 for the step values and is tied to an integer. This of course is the first revision, and it isn’t very […]
MUI React Progress Bar
When building a page with a Linear Progress bar, I thought it should have been partially filled and it wasn’t filled at all. Turns out it expected value to be between 0-100 and I was assuming it would have been 0-1. Best to check the documentation over just guessing, but […]
If you are seeing weird differences in code.
Check that you are on the expected GIT Branch and GIT Commit!!
Debugging in PHP
When you want to debug certain sections of code with in an environment without restarting Apache or NGINX, there’s a template I use for displaying print messages.
Swift Temperature Format Customization
When you use Measurement format function in Swift it will always format the temperature to the format of the locale of the device. This is not the experience I wanted in my application. I wanted to provide the user an option to chose which scale they wanted to use, so […]
Some of the biggest things that bug me as a user of software is how they handle errors. Apple has been known for silently handling errors and not telling users that something went wrong, this is bad. Another example of bad user handling is how Git Kraken handles theirs, they […]
Simple HTTP Server
When you have a need to serve up files using http. You can do so with http-server do this with npx http-server.
PHP Ini File
Sometimes when you are using php you need to change some of the settings, this can be done by using the ini file. Before you change anything in the ini file you should check the phpinfo. This can be done by creating a file containing <?php phpinfo(); ?> and then […]
Code Style Tips
When you write if/else statements please put your else block on a new line not on the same line. The following doesn’t work with certain editor for code block collapsing. Do the following instead. OR The second way allows those of us who use code collapse features inside of editors […]