Khan's Online Web Log (aka: my blog)!
MAR 29, 2025
Cross Compiling Swift
There are multiple ways to cross-compile Swift on different platforms. I explored a few methods while building a Discord bot and a Bluesky bot.
NOV 3, 2024
New Blog, New Me
I redesigned my blog, in Swift.
NOV 1, 2024
Hide Desktop macOS Shortcut
A quick Automator script I use almost daily to toggle my desktop contents. Updated for desktop widgets.
AUG 7, 2021
Sort a List of Objects
Learn how to store a sort order on a list of items saved in a database.
MAY 8, 2021
Implementing Sin(x)
We have a basic sin function, now we need to calculate more than π/2, and do it fast.
MAR 17, 2021
How Computers Calculate Sine
Sine is infinite, so how can a computer calculate an infinite function?
FEB 3, 2021
The Search Engine Matrix
One way search engines like google rank page poplarity using matrices.
JAN 7, 2021
Save Codable Dates In Firestore
Avoid JSON decoding errors when using Dates with Firestore and Codable.
NOV 4, 2020
Scripting With Swift
Make fast, simple scripts with my favorite language.
NOV 4, 2020
Programatic UI in UIKit without Storyboards
Use simple functions and layout anchors to create a simple UI without storyboards.
NOV 4, 2020
Getting Started With Vapor 4.0
Building a small Toggl Clone using Vapor.
MAY 14, 2020
Save Arrays of Objects in Realm
Create a mapping field on a realm object to easily save and retrieve arrays of anything from a realm object.
MAY 11, 2020
Subclassing Sprites in SpriteKit
Subclass a SKSpriteNode to make multiple types of the same sprite to save time and energy.
MAY 5, 2020
Using Dependencies in Swift Scripts
Use swift-sh to import any SPM module into your scripts.
FEB 23, 2020
Easy Container Controllers in Swift
Create a container controller to separate and simplify your UIKit views.
DEC 19, 2019
Firebase Auth State Listeners iOS
Receive notification when firebase users auth state changes on iOS.