ARCoachingOverlayView and SwiftUI

These last few weeks I’ve been diving into Apple’s RealityKit for iPhone. I’ve chosen to use SwiftUI instead of UIKit as I like the similarities between it and ReactJS. I thought I’d start posting a few things I learn as I find Apple’s documentation is great if you already know what you’re doing. Unfortunately, if…

Building a Business

I’ve done many coding projects in my career but until this year I’ve never created a project that actually earns money. I have always had big aspirations to do this, and I’ve always talked about it, but until September of this year I had never done it. Well, I’ve done it! Humbly, but I’m still…

Javascript Unique Objects By Key

Suppose you have an array of objects in javascript: In the above contrived example 2 of the 3 objects have the same id value of a. We’d like to filter this array so that the result is: Javascript doesn’t have a built in unique function like other languages do. But we can use the filter…

React Hooks: useState with Arrays

I spent a good portion of the work day today trying to code up a simple form to accept a list of zip codes and put them in an array. The final form looks as follows: As you can see there are a few zip codes and then we can click the ‘Add Zip Code’…

my own ngrok

ngrok is a great service that redirects public internet traffic to a service running on a private network, such as your laptop at your house. Lately, as I’ve been doing a lot of development with oauth2 sign ins on webforms, I’ve had to use ngrok to test. The free plan allows about 24 hours of…

Compressing Python dictionary objects before storing in json S3 files.

Here’s a quick little script I wrote since I need to test uploading files into s3. In this case the file generated will be 78 bytes. When unzipped 170 Bytes. The reason I wrote this is because I have to upload large amounts of data in json form into S3. Saving space in S3 results…

Fail2ban and Web Services

One of the problems of running my own servers and hosting my own sites is that for some reason people like to hack them and try to guess passwords with SSH. Fail2ban solves this problem by allowing only a few failed login attempts before banning the offending server for a specified duration of time. This…

Own your own content

Reading this morning on Hacker News was this article on how the old Internet has died because we trusted all our content to Facebook and Google. While hyperbole abounds in the headline and there are plenty of internet things out there that aren’t owned by Google nor Facebook (including this AWS free blog) it is…

2019 Year in Review

Another ride around the sun comes to a close and a new adventure begins in just a few days. I like to take a few minutes at the end of each year and think about how this year went compared to what I thought would happen when I wrote this review 12 months ago. I…