Types are nice, infinite recursion edition Playing around on hackerrank to prepare for an interview, I had some fun solving tree problems using recursion.
Going further with ChatGPT Discover the untapped potential of ChatGPT in our latest blog post, and learn how this tool can transform the way you create diagrams and rephrase text, simplifying tedious tasks and enhancing your content!
Conditionally debounce value updates, in Swift Improve your iOS app's performance and enhance your users' experience by learning how to conditionally debounce events. Also, it's a panacea that solves everything. Ok, almost everything. Depending on how you look at it.
Metaprogramming in Swift, and the issue with Process and relative paths Find out why your Swift CLI tool isn't capable of dealing with relative paths, and how to solve it!
Convert between image (pixels) and scaleAspectFit UIImageView coordinates like a champ! When working with images in iOS, it's sometimes necessary to convert between an image's pixel coordinates and the coordinates of the UIImageView that displays the image. Here's how to do it.
Life is short, and I am wasting mine away I envy most lead fictional characters of well-enough written stories. With their foes, their moral dilemmas, the high(ish) stakes. Wether they live in a manichean or a complex world, what matters usually is obvious. In these worlds, one knows what they have to care about if they want Here?
Making a zoomable Image, in SwiftUI This should have been simple, but it wasn't. So if you too are having a hard time making a zoomable image in SwiftUI, come on in!
Preserve your images' transparency when saving and sharing them, in Swift Loosing your rounded corners or transparent background when saving an image to the user's photo library or sharing it with UIActivityViewController? It's because it's be turned into a JPEG. Here's how to solve that.
Everybody's doing it (a Stable Diffusion test post) A few years back, in February 2019, I, like quite a handful of people, heard for the first time of OpenAI's GPT-2. And while it sure was impressive, it only gave us a glimpse of what GPT-3 would be able to do a year later. Impressive wouldn't start to describe
From a base64 API Key to a json file, in bash, on macOS While working on a client's app's CI pipeline, I needed to use an API key. However, it was stored as a base64 environment variable, when the tool I needed to use required it to be plaintext in a JSON file. Fun times.
We aren’t that remarkable I've heard quite a few times that we, as a species, are terrible, destroying the Earth, ourselves, and that we are, all in all, the worse. That's assuming a lot. First and foremost, that we are as smart and great as we think ourselves to be.
Escape a newline in bash on macOS While setting up a new step for a client's CI pipeline on a macOS agent, I needed to export an API key containing line breaks to a JSON file. Meaning I had to escape line breaks, in bash, on macOS. Turns out, it's not as easy as it sounds. Who would've guessed?
Build OpenCV Contrib as a .xcframework, for iOS, on a M1 We needed an OpenCV Contrib module in an iOS app, using Swift Package Manager. I thought the hardest part would be using OpenCV. How wrong I was.
Work is a market With remote work on the rise, I've seen people debating the fairness of companies adjusting pay based on one's location and cost of living. As if there ever was an intrinsic justification to compensation. Spoiler: there isn't.