@hdcola 这题有解决办法吗?
Enjoying “the pleasure of design and some despair and the indescribable joy of creation.” Dad. Husband. CEO. Foilist. Urban Farmer. 80% maker; 20% manager.
@hdcola 这题有解决办法吗?
@hdcola 兄台,这…..没解吧。你把人家chatgpt给难倒了吧。
@hdcola 大叔,自娱了呢?
Just came across the strangest Swift syntax that I did not know you could do:
extension SomeProtocol: where Self: SomeOtherProtocol {}
to add conformance to SomeOtherProtocol
It makes sense if you think about it, but I would expect:
extension SomeProtocol: SomeOtherProtocol {}
This is an engineer's reaction to the first verse of Leonard Cohen’s Hallelujah.
Last night, while watching the documentary "Hallelujah: Leonard Cohen, A Journey, A Song" on Netflix, I kept being struck by the first verse: "Now I've heard there was a secret cord / That David played, and it pleased the Lord / But you don't really care for music, do ya? / It goes like this, the fourth, the fifth / The minor fall, the major lift / The baffled king composing Hallelujah". 1/
Not sure who originally discovered this style of prompt but I laud their genius. #chatGPT #dontTellMeWhatToDo
When extending generic types, it’s super useful that Swift enables type constraints to be attached directly to methods, since that enables us to use a method’s generic parameter types when defining those constraints.
For example, here I’m extending SwiftUI’s Binding type with a transforming method that lets me bind a Set property as a Bool that reflects whether that Set contains a given value 👍
Just published my first Swift article of 2023! 🎉
This one is about how the content offset (or scroll position) of a SwiftUI ScrollView can be observed without requiring any UIKit bridging. Very useful when implementing things like collapsable headers, or when performing other kinds of scroll position-dependent operations 👍
https://www.swiftbysundell.com/articles/observing-swiftui-scrollview-content-offset
Here we see senior #Linux admin or developer fixing bugs like a boss. Credit IG: https://www.instagram.com/p/CnOouErpE46/?hl=en I love how he takes his own sweet time. It is like he mastered this art so many times.
"Software and cathedrals are much the same. First we build them, then we pray." ~~ Samuel Redwine
The way I look at it. Machine learning in general (including these large language models) are great when you have the following problem criteria
#1: You need to build a pattern matcher
#2: You don't know what to look for.
#3: When the pattern matcher is finally built you don't care to know what it actually looks for
#4: The results are allowed to be hilariously, insanely wrong some % of the time
And there are actually a lot of things that match that criteria
I designed the 12-bit rainbow palette for use on https://grid.iamkate.com. It consists of twelve colours chosen with consideration for how we perceive hue, chroma, and luminance. The palette uses a 12-bit colour depth, so each colour requires only four characters when specified as a hexadecimal colour code in a CSS or SVG file. For more details, see https://iamkate.com/data/12-bit-rainbow/
Yes please if anyone at Apple can read this great writeup about #SwiftUI, this is exactly the issue I'm hitting with @icecubesapp@mastodon.cloud I just can't have the timeline scrolling up because how janky it is!
https://blog.timing.is/swiftui-production-experience-problems-solutions-performance-tips/
@simonbs remember. During a negotiation, whoever is ready to walk away holds the power.
“When it comes to visually rendering a virtual environment, VR/AR/MR devices will always fall short of a modern video game console. Always. This is because the work performed by these devices is far, far harder while constraints are far, far greater.” - my day job in a nutshell
Happy to welcome and unofficially verify Phil Schiller on Mastodon: @pschiller
They’ll let anyone in here. Literally!
@r0ml good quality paper too. The more intense my digital work becomes, the more desirable it is for me to get tactile feedback. Whether in the form of nip waltzing over paper or soil between fingers.
@johnvoorhees John. I have always been curious about “who is this guy” because your writings are very unique. Thanks for sharing your life’s story. Waving from Dunedin, New Zealand.
OK, the three most common uses for App Clips I've heard so far are:
- paying at the pump at Exxon/Mobil gas stations
- various parking apps
- paying at the table in restaurants using Toast
Honestly, all three of these feel to me like they'd be equally well served by a QR code leading to a mobile web page with Apple Pay and Google Pay widgets on it