Weeknotes 167
8th September, 2024
“Bidirectional”
-
Quite grumpy this week. Strap in.
-
Of course, donating blood is worthwhile if you are able. But in the last few years the process has gotten so much worse. It used to be great end-to-end. The website was convenient and easy to use. The staff were great. You didn’t have to wait that long, and you got a chocolate Orange Club biscuit at the end and some weak lemon drink.
Now it’s gotten to the point where you can never be sure you will actually be donating. Appointments are cancelled on the same day, seemingly randomly. If you do make it to the local village hall the lack of staff mean that you end up waiting ages to donate. Or worse turned away at the door (non O positive blood types in particular). Even the website mucks you about now.
All whilst enduring endless begging texts and emails constantly asking you to donate. I’m trying mate.
You do still get a biscuit though.
-
LiveView Modules Must End in
Live
We drafted some simple LiveView demos with modules that did not end in Live, and things worked fine. I had a gut feeling that this was required, but I could not put my finger on it.
Today, I was reminded when and why you need the Live suffix.
-
When you order postage stamps online, not only do the Royal Mail take 4 days to despatch said stamps, they also charge you for postage, which I find absolutely mind-boggling.
-
The rando DisplayPort to Thunderbolt cables arrived; all 6 of ‘em. Not a single one worked. Great success.
I plugged the original (deep breath) Cable Matters 32.4Gbps Bidirectional USB C to DisplayPort 1.4 Cable back in, and this time the picture was perfect?! No visual artifacts at all.
Everything was hunky dory until I started to actually play a game. The game started, and the menus loaded, but as soon as it attempted to start the game itself the screen would go blank!
On a hunch I disabled “G-Sync” in the Nvidia Control Panel settings and everything fell into place and I managed to play a game of Age of Empires IV without a single issue. Fucking computers, man.
I’m thinking that perhaps there was some sort of interference going on before. I had the cable routed next to some others, so it is possible. I will investigate further. Or I won’t because I can’t be bothered and I just wanna play games once a year.
-
Is there something wrong with this?
$ rg 'rubocop:disable Metrics/MethodLength' | wc -l 433
If we chose to ignore is 433 times, is it useful?
-
I had never heard of the Web Share API until I read Implement the Web Share API in Phoenix LiveView.
The Web Share API provides a mechanism for sharing text, links, files, and other content to an arbitrary share target selected by the user.
So, for example, in the context of iOS you can trigger the Share Sheet to share content directly with installed apps.
-
Typing lists and tuples in Elixir by Jose Valim. Very interesting explanation of the trade-offs required to make a type system work with Elixir.
-
ACCU is not an organisation I had heard of before. It seems to have started as a C++ group, but is now more general computing/programming. There is a local group near me and I went along for the first time this week. They were a friendly bunch, and I intend to go along again. The talk was on Ruby too.