Mac apps built with Xcode 14.0 and 14.0.1 may contain concurrency bugs because the Swift 5.7 compiler can generate invalid code when targeting the macOS 12.3 SDK. If you distribute Mac apps, you should build them with Xcode 13.4.1 until Xcode 14.1 is released. Here’s what happened: Swift 5.7 impleme...
Ole Begemannby Ole BegemannOct 12, 2022read🤖 Summary
In TypeScript, you can create an object with any keys or allow only certain keys.Any Keys AllowedTo use any keys, indicate that any string is a valid key:type TrackedValues = Record const tracked = { any: true, thing: true }Only Allow Keys from an InterfaceIf you have an interface and want to use th...
Your service runs in a Kubernetes cluster. Find and address it.Find the IP of the NodeThere is a node in the cluster. To find the IP of that node, run:$ kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}" 192.168.64.7%Find the Port of Your AppYour app is runni...
My last “In praise of” article covered qemu, a project founded by Fabrice Bellard, and today I want to take a look at another work by Bellard: ffmpeg. Bellard has a knack for building high-quality software which solves a problem so well that every other solution becomes obsolete shortly thereafter, ...
My last “In praise of” article covered qemu, a project founded by Fabrice Bellard, and today I want to take a look at another work by Bellard: ffmpeg. Bellard has a knack for building high-quality software which solves a problem so well that every other solution becomes obsolete shortly thereafter, ...
Designing and engineering a messaging system that is used by 6.8 million students and half a million teachers in K-12 schools is no easy feat. While the typical threats against online systems from unauthorized and unauthenticated access to sensitive information remain, the school environment compo...
SwiftUI’s .task modifier inherits its actor context from the surrounding function. If you call .task inside a view’s body property, the async operation will run on the main actor because View.body is (semi-secretly) annotated with @MainActor. However, if you call .task from a helper property or func...
Ole Begemannby Ole BegemannOct 11, 2022read🤖 Summary