If you have problem with uperfect monitor and you are using with MacBook then this is for you. The coil whine is present when the display is powered only from MacBook. Uperfect monitors support power pass through which actually removes the coil whine. So plug MacBook power source into the monitor and connect monitor to the MacBook. This way the mac gets all the power and the monitor won't whine.
@State Marks view's property as reactive. Like React's useState() or Vue's ref() . Triggers rendering when changed. @Binding Same concept as v-model in Vue. Marks view's property for 2-way binding. Modifying the property inside view will propagate changes outside. ObservableObject Protocol and @ObservedObject class OrderModelController: ObservableObject { // @Published notifies watchers when order…
How to make SQL more readable? Is it even good question when it is closer to english than any other programming language? My bet (and hope) is that SQL will be more common knowledge as spreadsheet formulas are. It's expressive and quite powerful and get works done. I would say that it is much more easier to write than it is to read. Composing queries in your head will make sense to you as you go…
Something not immediately obvious but obvious after thinking about it for a minute is memory size of tagged unions. Each Token will take up 40B + size of enum discriminant - 1B (tag) which will be aligned to 8B because entire structure needs to be aligned by the highest data type size (usize or String (ptr inside is 8B)) which is 8B. struct Span { line: usize, // 8 bytes column: usize, // 8 bytes…
I was thinking about this for more than one year now. It is time to give it a shot and create brand new scripting language that is secure by default. What security means in this context? capbalities for io, networking etc. safe to run untrusted code memory limits and fuel backed into runtime embeddable into server environments allowing user scripting allow injecting host functions into the runtime…
You can't talk to the AI without treating it like a human. They say: "Treat it like a tool". But how can you instruct the tool without "talking" it to it like a human?!