Mike Crowe

@mikecrowe
37 Followers
142 Following
140 Posts
Software developer (embedded Linux, C++, Git, build systems), cyclist, European. (he/his/him).
Web sitehttps://www.mcrowe.com/
Bloghttps://randombitsofuselessinformation.blogspot.com/
GitLabhttps://gitlab.com/mikecrowe
GitHubhttps://github.com/mikecrowe

Back in 1978 Brian Kernighan wrote, in the book "The Elements of Programming Style" that he co-wrote with P.J. Plauger:

"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"

Now, in the age of LLM, the question becomes "If you wrote it by using AI, how will anyone ever debug it?".

RE: https://dice.camp/@johnzajac/115845954658479816

I spent a lot of time in the 90s working on Y2K. It wasn't a huge panic. It was just a slice out of everything else we spent auditing code. It wasn't "spend 80 hours a week fixing this." It was just boring. Incredibly boring. And we made it be ok by being bored and fixing stuff.

And the one thing I never thought would happen was that people would say it was never a problem. Oh good grief, it was a problem. All over. We just fixed it. Like we thought grownups should do when there's a problem.

I _think_ that I've combined inotifywait and offlineimap to just deposit incoming emails directly into the GMail inbox. I would have tried using ARC but it's still experimental in Exim so Debian doesn't have it enabled.
Why is it that I often spend New Year's Day working on email configuration? Today it's trying to work out what to do about GMail dropping support for fetching from other accounts: support.google.com/mail/answer/16604719

$ LC_ALL=it_IT.utf8 cal 9 1752
Settembre 1752
do lu ma me gi ve sa
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Well that's disappointing.

https://xkcd.com/3138/ is a joke but somewhere I have a rule from my pattern-maker grandfather which is really like this. I was told that it was to account for shrinkage somewhere and https://en.wikipedia.org/wiki/Metal_casting#shrink_rule seems to agree.
Dimensional Lumber Tape Measure

xkcd
clang-tidy - modernize-use-std-print — Extra Clang Tools 22.0.0git documentation

@vitaut oh neat, looks like it can substitute with fmt::print als well, which would make the check useful on pre-C++23 codebases!

Update on my pthread_cancel post. I used the condition variables wrongly, as pointed out by @mikecrowe (thanks!).

https://eissing.org/icing/posts/pthread_cancel/

pthread_cancel - It's always DNS!

Updated (2025-08-22) at the end You probably know about threads and most likely heard of pthreads, but have you ever used pthread_cancel()? Well, I had not before last week and it was a little bit of a journey. What’s the problem? curl (or better libcurl) runs all transfers in the same thread (You can run libcurl in several threads, but that’s a story for another post). So, libcurl does not use threads, right? Well, maybe. If your curl is linked with c-ares for resolving, it does not. But without c-ares it tries to use threads, where available, for the “AsynchDNS” feature.

icing's blog
Of course, the only way to do that is to log into the account that I didn't create but is using my email address. Once I went through the forgotten password dance I ended up with a message telling me that they can't remove my email address and taking pleasure in telling me that. This confuses me greatly.