TIL: Elixir's `File.stream!/2` has an option `:trim_bom` which removes the (optional) BOM from a file stream.
TIL: Elixir's File.stream!/2
has an option :trim_bom
which removes the (optional) BOM from a file stream.
Open Source Software and Publications by Christian Kruse
This page contains random thoughts and impressions by me.
TIL: Elixir's File.stream!/2
has an option :trim_bom
which removes the (optional) BOM from a file stream.
Vacation is over, but the first work day was surprisingly pleasant
I‘m thinking about publishing my workouts to my website. Granted, nobody is interested in my workouts, but for a quantified self thing it might be interesting
The bad thing with a DIY website: when things go wrong you are to blame. The good thing: you can fix it when something goes wrong.
The last few days I‘ve been working on creating an iOS app for my website so I can publish easier when on mobile. While SwiftUI and it‘s tooling is still bugged it also made development much, much easier and less complex. I indeed enjoy the experience.
SwiftUI is not quite ready for prime time… everything is still rough, a lot of pieces are missing, things are bugged, documentation is… suboptimal.
Creating a SwiftUI application to publish to my website is more work than expected. But I am still pretty motivated! 😜
Ok, seriously: why is it always old, white men being the biggest assholes on earth? When I was shopping this morning there was an old, white man standing directly in the entrance. When I politely asked him to step back so I could leave the building without getting to near to him he barely stepped back and laughed at me. Oh, and of course he wasn't wearing a mask. I called him an asshole and he screamed after me, telling me how this is all a hoax and I'm an idiot for believing it.
We do this social distancing and mask wearing shit mostly for people like him: old, overweight, male, probably high blood pressure - that's a whole lot of risk factors for dying because of COVID-19. I am still angry about this.
How is that simple? We failed for years implementing something like this. The closest we got to this is with GNOME keychain, but it still doesn‘t get it completely right...
I found a new rabbit hole to fall into 😂 Just started a new iOS project using SwiftUI
Oh, I forgot Telegram
This messenger thing gets out of hands. On my phone I have installed:
On my desktop computer I also have installed an IRC client. And I refuse to use Facebook messenger, Snapchat and probably some additional messenger I never heard of. This is ridiculous.
I released version 0.6.0 of the microformats2 parser for Elixir. This release features value class pattern parsing and test suite compliance.
Software I miss for the Linux desktop:
TIL: there is an aggregate function mode() WITHIN GROUP (ORDER BY sort_expression)
in PostgreSQL. It returns the most frequent value of a group. So, for example when you have this table:
CREATE TABLE foo (id serial, user_id integer, task_id integer);
You can get the most frequent task ID for each user ID by using this aggregate function:
SELECT user_id, mode() WITHIN GROUP (ORDER BY task_id)
FROM foo
GROUP BY user_id;
Are you an Elixir developer? Take some time and answer the Elixir community survey 2020
While I don't need it (and thus don't buy it): the PineTab is a pretty interesting device.
I'm hurt again. A torn muscle fiber. At least 4 weeks no running 😭💩
I'm seriously considering to switch again to a different distribution. Maybe back to Arch or something like that.
I get why Canonical hypes Snaps that much. But seriously, why do they have to be so fucking slow to start? A simple application I already use for ages, Hexchat, now takes more than 20 seconds to start. It feels like being back on spinning disks again, and worse, even slower.
When did I get so fucking old?
Today's training: long run, 25,38km in heart frequency zone 2, at 04:36 minutes per km, 1h56m.
„Die Zerstörung der Presse“ – Ich finde den Stil zwar anstrengend (bin vermutlich einfach zu alt), aber er hat Recht. Viele Kritik-Punkte gehen mir auch schon seit Jahren gegen den Strich. Danke, Rezo.
Fuck death.