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 […]
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.
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 […]
Sharpening My Tools Part 2
Developing an iOS application is full of small bits of repetitive tasks. When you develop User Interface in code, you must create and handle constraints in code. Depending on what you have to do this could become extremely repetitive and complicated. You can write each constraint yourself, but this gets […]
Sharpening My Tool Part 1
I’ve been working on a full fledged pdf reader application for iOS. During the process of developing for this I have wanted to use Icons from Font Awesome; as buttons in the app. Apple’s iOS doesn’t like SVG files or the font awesome font files, to work around this I’ve […]
Tool Spotlight: https://app.quicktype.io
Today I had to make Swift structs for the datatypes that are returned from an API. This is usually a rather time consuming process, especially for large data sources. I found this really simple yet helpful tool that takes json objects and converts it to usable structures that you can […]