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 […]
Error Handling
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 […]
Slide Out Menu for iOS using SwiftUI
This week I’ve been working on prototyping a slide out menu, or as most people know it as the hamburger menu. This is a very useful navigation system for apps once the scale past 5 “systems” or tabs. This system has to wrap the main content view inside of a […]
Navigation View Constraints
If you are using Swift UI and you get an error based around the constraints, you might be able to fix it by putting this line at the end of your navigation view. .navigationViewStyle(.stack)
Dokku / NGINX not passing headers
Sometimes you just have to do a workaround when systems aren’t doing what they are supposed to, I have been building this API proxy for Weather Driver. Dokku / NGINX wasn’t passing the proper headers to my server, so I had to do a workaround. The work around I came […]