fn sub(foo: &String) {
    println!("We got this string: [{}]", foo);
}

fn main() {
    // "Hello", 0x00, 0x00, "!"
    let buf: [u8; 8] = [0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x00, 0x00, 0x21];

    // Create a string from the byte array above, interpret as UTF-8, ignore decoding errors.
    let lossy_unicode = String::from_utf8_lossy(&buf).to_string();

    sub(&lossy_unicode);
}

Create a string from a byte array, but the result isn’t a string, it’s a cow 🐮, so you need another to_string() to convert your ā€œstringā€ into a string.

I still have a lot to learn.

(into_owned() instead of to_string() also works and makes more sense to me, it’s just that the compiler suggested to_string() first, which led to this funny example.)

⤋ Read More
In-reply-to » So I was using this function in Rust:

@lyse@lyse.isobeef.org Rust is so different and, at the same time, so complex – it’s not far fetched to assume that I simply don’t understand what’s going on here. The docs appear to be clear, but alas … is it a bugs in the docs? Is it a lack of experience on my part? Who knows.

By the way, looks like there was a bit of a discussion regarding that name:

https://github.com/rust-lang/rust/issues/120048

⤋ Read More

So I was using this function in Rust:

https://doc.rust-lang.org/std/path/struct.Path.html#method.display

Note the little 1.0.0 in the top right corner, which means that this function has been ā€œstable since Rust version 1.0.0ā€. We’re at 1.87 now, so we’re good.

Then I compiled my program on OpenBSD with Rust 1.86, i.e. just one version behind, but well ahead of 1.0.0.

The compiler said that I was using an unstable library feature.

Turns out, that function internally uses this:

https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.display

And that is only available since Rust 1.87.

How was I supposed to know this? 🤨🫩

⤋ Read More
In-reply-to » (#a2drj7a) @bender Both Gopher and Mastodon are a way for me to ā€œbabbleā€. šŸ˜… I basically shut down Gopher in favor of Mastodon/Fedi last year. But the Fediverse doesn’t really work for me. It’s too focused on people (I prefer topics) and I dislike the addictive nature of likes and boosts (I’m not disciplined enough to ignore them). Self-hosting some Fedi thing is also out of the question (the minimalistic daemons don’t really support following hashtags, which is a must-have for me).

@bender@twtxt.net Yeah, well, it’s a bit like twtxt. There is a Gopher community, but it’s small. I actually don’t like that HTTP is so easily accessible. I don’t like it that much when people post links to my site on HackerNews or something like that. Too much exposure.

Gopher is a small world. It’s slow and cozy.

And much like twtxt, the protocol is simpleĀ®, so it’s easier to tinker with it.

⤋ Read More

Hmmm 🧐 Not what I thought was going on… No bug…

 time="2025-06-14T15:24:25Z" level=info msg="updating feeds for 8 users"
 time="2025-06-14T15:24:25Z" level=info msg="skipping 0 inactive users"
 time="2025-06-14T15:24:25Z" level=info msg="skipping 0 subscribed feeds"
 time="2025-06-14T15:24:25Z" level=info msg="updating 80 sources (stale feeds)"

⤋ Read More
In-reply-to » (#his4cya) @prologic I am finding writing my Notes very therapeutic. Just create a markdown file and commit, push, and it’s live. Whatever comes to mind, whatever I want to keep as relevant. Silly things, more like a dump.

@bender@twtxt.net I know I know! I don’t know why I ever signed up and used it and still continue to pay for the silly thing. Twtxt/Yarn is so much better in every way 🤣

⤋ Read More
In-reply-to » (#his4cya) @prologic I am finding writing my Notes very therapeutic. Just create a markdown file and commit, push, and it’s live. Whatever comes to mind, whatever I want to keep as relevant. Silly things, more like a dump.

@prologic@twtxt.net yes, I never understood you using micro.blog (and paying for it, nonetheless!). I don’t like it (as a platform), and have an unexplainable dislike for its creator.

⤋ Read More
In-reply-to » (#his4cya) @prologic I am finding writing my Notes very therapeutic. Just create a markdown file and commit, push, and it’s live. Whatever comes to mind, whatever I want to keep as relevant. Silly things, more like a dump.

@bender@twtxt.net Maybe one day I’ll take back over my prologic.blog domain from µBlog and redoit with my handy zs tool with some nice CSS 🤣

⤋ Read More
In-reply-to » (#ag2kqka) @movq why Gopher to babble, and not just HTTP? I mean, may as well just write plain text files on your machine, and leave them there, right?

@prologic@twtxt.net I am finding writing my Notes very therapeutic. Just create a markdown file and commit, push, and it’s live. Whatever comes to mind, whatever I want to keep as relevant. Silly things, more like a dump.

If I feel like it, I do. If not, I don’t. Not social, not intended for anyone to see them. I am enjoying it!

⤋ Read More
In-reply-to » (#a2drj7a) @bender Both Gopher and Mastodon are a way for me to ā€œbabbleā€. šŸ˜… I basically shut down Gopher in favor of Mastodon/Fedi last year. But the Fediverse doesn’t really work for me. It’s too focused on people (I prefer topics) and I dislike the addictive nature of likes and boosts (I’m not disciplined enough to ignore them). Self-hosting some Fedi thing is also out of the question (the minimalistic daemons don’t really support following hashtags, which is a must-have for me).

@movq@www.uninformativ.de why Gopher to babble, and not just HTTP? I mean, may as well just write plain text files on your machine, and leave them there, right?

Gopher and Mastodon are two completely different things. That’s where my confusion comes from.

⤋ Read More

Can you get the effects of a PiHole (filtering of ads) without having to build a a PiHole?

Would you recommend building a PiHole or similar? Is it hard? Is it worth the effort? I like some technical stuff but I’m usually afraid of network stuff…

⤋ Read More
In-reply-to » (#a2drj7a) @bender Both Gopher and Mastodon are a way for me to ā€œbabbleā€. šŸ˜… I basically shut down Gopher in favor of Mastodon/Fedi last year. But the Fediverse doesn’t really work for me. It’s too focused on people (I prefer topics) and I dislike the addictive nature of likes and boosts (I’m not disciplined enough to ignore them). Self-hosting some Fedi thing is also out of the question (the minimalistic daemons don’t really support following hashtags, which is a must-have for me).

@movq@www.uninformativ.de Me too šŸ˜… – Speaking of which i know you’ve lost a bit of ā€œmojoā€ or ā€œenergyā€ (so have i of late), rest assured, I want to keep the status quo here with what we’ve built, keep it simple and change very little. What we’ve built has worked very well for 5+ years and we have at least 3 very strong clients (maybe 4 or 5?).

⤋ Read More
In-reply-to » (#a2drj7a) @bender Both Gopher and Mastodon are a way for me to ā€œbabbleā€. šŸ˜… I basically shut down Gopher in favor of Mastodon/Fedi last year. But the Fediverse doesn’t really work for me. It’s too focused on people (I prefer topics) and I dislike the addictive nature of likes and boosts (I’m not disciplined enough to ignore them). Self-hosting some Fedi thing is also out of the question (the minimalistic daemons don’t really support following hashtags, which is a must-have for me).

@prologic@twtxt.net Yeah, I’m very glad twtxt/Yarn doesn’t have this. āœŒļø

⤋ Read More
In-reply-to » (#hlikpha) @quark Plot twist: I only drink decaf. 🤯🤯🤯

@quark@ferengi.one It’s as close as coffee as you can get. šŸ˜… They take the beans, apply magic, and then most of the caffeine is gone. You can also buy whole decaf’d beans and then grind them yourself. It does kill some of the flavor – but it’s not like you’re drinking black water.

⤋ Read More
In-reply-to » Great article from Tailscale about how security policies we've often seen in many large complex organizations that we all love to hate don't actually provide the security that we assumed.

@bender@twtxt.net yes but my point is my handcrafted set up also achieves the same thing 🤣

⤋ Read More
In-reply-to » Great article from Tailscale about how security policies we've often seen in many large complex organizations that we all love to hate don't actually provide the security that we assumed.

@prologic@twtxt.net do you remember Hamachi? Tailscale/Headscale is Hamachi on steroids. They are used primarily for creating a VPN among all your devices so they can talk to one another as if they were on the same LAN, even when they’re not. That was, mostly, my WireGuard usage.

I still have WireGuard running—because it is so lite that it doesn’t matter—to use as regular VPN, but Headscale keeps all my devices connected forming their own ā€œmini-Internetā€ 100% of the time.

⤋ Read More
In-reply-to » Great article from Tailscale about how security policies we've often seen in many large complex organizations that we all love to hate don't actually provide the security that we assumed.

@bender@twtxt.net What’s awesome about it btw? I use WireGuard pretty heavily here. And my entire family also use it to keep a VPN connection back to our home network

⤋ Read More
In-reply-to » (#a2drj7a) @bender Both Gopher and Mastodon are a way for me to ā€œbabbleā€. šŸ˜… I basically shut down Gopher in favor of Mastodon/Fedi last year. But the Fediverse doesn’t really work for me. It’s too focused on people (I prefer topics) and I dislike the addictive nature of likes and boosts (I’m not disciplined enough to ignore them). Self-hosting some Fedi thing is also out of the question (the minimalistic daemons don’t really support following hashtags, which is a must-have for me).

@movq@www.uninformativ.de This was always my belief too re likes, etc.

⤋ Read More
In-reply-to » Of Pointlessware and CEOs Had a moment, to check up on some of the companies, I stopped following, get to The Browser Company and see their newest product - it's just Chrome, with an AI chat window pop-up and that's it. Something Canary Chrome, come with already. I see Theo from T3.gg, making fun of it on YouTube and promoting "his" product - an AI chat app, where you can choose from multiple models, by all the popular AI companies. Something I already have a worse version of, at work and I don't even use it. There's also an interview, about the future of virtual keyboards, surely this is at least actually a real thing and not more pointless horse shit. I check the website of the keyboard SDK, and it's around 20 identical apps, that just copy the same keyboard SDK/api and slap chatgpt features on top - in the App Store, these are surrounded by chatgpt clones, that just feed the users prompts, into the real thing and put ads, next to the answers.

@thecanine@twtxt.net … all these stupid, pointless ā€œappsā€ are stuff that I eventually have to remove from family devices … Sigh.

⤋ Read More
In-reply-to » Gopher server is back online and I’ll be phasing out Mastodon.

@bender@twtxt.net Both Gopher and Mastodon are a way for me to ā€œbabbleā€. šŸ˜… I basically shut down Gopher in favor of Mastodon/Fedi last year. But the Fediverse doesn’t really work for me. It’s too focused on people (I prefer topics) and I dislike the addictive nature of likes and boosts (I’m not disciplined enough to ignore them). Self-hosting some Fedi thing is also out of the question (the minimalistic daemons don’t really support following hashtags, which is a must-have for me).

I’ll probably keep reading Fedi stuff, I just won’t post that much, I think.

⤋ Read More
In-reply-to » (#baw3tka) I wanted to port this to Rust as an excercise, but they still have no random number generator in the core library: https://github.com/rust-lang/rust/issues/130703

@prologic@twtxt.net Yeah, it’s difficult, you often don’t get what you’d expect. They also make heavy use of 3rd party libraries. IIUC, for random numbers, they refer to this library. I’ve read many times that the Rust stdlib is intentionally minimalistic (to make it easier to maintain and port and all that).

I’m struggling with this, using 3rd party libs for so many things isn’t really my cup of tea. I’ll probably make my own tiny little ā€œstandard libraryā€. It’s silly, but I don’t see any other options. 🤷

⤋ Read More
In-reply-to » (#hlikpha) @quark Plot twist: I only drink decaf. 🤯🤯🤯

@movq@www.uninformativ.de I had to look it up! ā€œIs decaf coffee real coffee?ā€

ā€œYes, decaf coffee is real coffee. It’s made from the same coffee beans as regular coffee, but the caffeine content is significantly reduced through a decaffeination process. This process involves removing 97% or more of the caffeine, leaving behind the coffee’s flavors and aromas.ā€

OK then! šŸ˜…

⤋ Read More
In-reply-to » Great article from Tailscale about how security policies we've often seen in many large complex organizations that we all love to hate don't actually provide the security that we assumed.

@prologic@twtxt.net Tailscale is awesome! I run Headscale; it replaced my vanilla WireGuard install.

⤋ Read More

Catastrophic #HackMD failure today :(

I use it when teaching most of my classes, they had some outage today, https://status.hackmd.io says they are back up but… all my notes are marked ā€œofflineā€ and I can’t edit them! I need them for my classes!
I usually edit them together with the participants during class, we all share code and image results.
(I’m happy to have backed up locally most of my notes, but still… I’m very upset as I have many ongoing classes)

Update: After some more 5XX, it seems to be working again. But the ā€œofflineā€ bug/issue is scary (the offline flag/button still flashes). A good reminder that ā€œthe cloudā€ is other people’s servers.

⤋ Read More
In-reply-to » (#qmi37rq) @lyse those are pretty cool! The one change I would recommend doing pronto is the colour of the hyperlinks. Ay, ay, ay, my retina! :-P

@quark@ferengi.one Ta. Hmm, what’s wrong with the blue text color? Is it too dark on the black background for you? :-?

Normal links are blue while images are teal. I thought I differentiate the two if I easily can. The underline of URLs comes from my terminal and is not tt’s fault.

Configuring colors is in the todo list. But of course, providing a sane default is definitely something I’d like to have.

⤋ Read More
In-reply-to » I swear that I have muted all the cat's feeds already. Yet, a new(?) one popped up.

@prologic@twtxt.net will do. No worries, not a show stopper. I will suggest that the muted numbered list not be sorted, but latest muted first. That way we have a better idea. Maybe adding timestamps to those too? Just a thought.

⤋ Read More

Of Pointlessware and CEOs
Had a moment, to check up on some of the companies, I stopped following, get to The Browser Company and see their newest product - it’s just Chrome, with an AI chat window pop-up and that’s it. Something Canary Chrome, come with already.
I see Theo from T3.gg, making fun of it on YouTube and promoting ā€œhisā€ product - an AI chat app, where you can choose from multiple models, by all the popular AI companies. Something I already have a worse version of, at work and I don’t even use it.
There’s also an interview, about the future of virtual keyboards, surely this is at least actually a real thing and not more pointless horse shit. I check the website of the keyboard SDK, and it’s around 20 identical apps, that just copy the same keyboard SDK/api and slap chatgpt features on top - in the App Store, these are surrounded by chatgpt clones, that just feed the users prompts, into the real thing and put ads, next to the answers.

⤋ Read More
In-reply-to » Once again, I went on a hike onto my backyard mountain after calling it quits very late. This time I brought my cam along. The view was extremely hazy, but the setting sunlight resulted in cool colors. The freshly cut grass smelled wonderful.

@lyse@lyse.isobeef.org Looks pretty nice! Enjoy the mild temperatures while you can. šŸ˜…

⤋ Read More

Je cherche un vieux jeu dont j’ai oubliĆ© le nom. Je l’avais achetĆ© Ć  17 francs sur un CDROM. C’était un jeu de plateforme, où on contrĆ“lait un personnage qui portait un chapeau pointu, dans un univers asiatique. Il lanƧait des cailloux, puis des sortes de boomerangs qui rebondissaient sur les parois. Il me semble qu’il y avait les mots ā€˜fortune’ et ā€˜cookie’ dans le nom, mais pas moyen de le retrouver. Des idĆ©es? #help #teamvieux

⤋ Read More
In-reply-to » (#yvoqgza) 2024 was okay for me, but 2025 is gonna be real shit. šŸ˜‚ So much annoying stuff coming up. Gotta enjoy the moment, who knows how long it will last. šŸ˜…

@bender@twtxt.net @aelaraji@aelaraji.com Sorry this was my fault 🤦 For whatever reason my pod had never seen that particular Twt from @movq@www.uninformativ.de – And… There’s a bit of a ā€œbehavioralā€ problem with the Trusted Peers functionality that means operators have to periodically re-trust peers manually 😭 Need to rework this šŸ¤ž

⤋ Read More
In-reply-to » been a while! i've been using my laptop more to kind of change my workflow, but without my browser bookmarks to remind me to check some sites, i've forgotten to check yarnverse! forgive me friends T_T

@bender@twtxt.net i’ve been trying to lock in!! it’s so hard but i really gotta relearn how to focus and just zero-in on what i need to do. ADHD kicking my ass but i’m fighting it!!

⤋ Read More

Once again, I went on a hike onto my backyard mountain after calling it quits very late. This time I brought my cam along. The view was extremely hazy, but the setting sunlight resulted in cool colors. The freshly cut grass smelled wonderful.

I saw a flock of pidgeons circling around and some sort of rat or mouse quickly running over the road in front of me from one field into the next one with a giant nut in its mouth. Or so I at least believe, couldn’t really tell, it happened so fast.

A couple enjoyed the setting sun on a bench and stripped their shoes on this warm evening. Somebody forget their bottle of water on the summit, but it looked rather cool in the evening light:

Image

Not sure what they’re doing, but they now set up scaffolding at the ruin. I heavily doubt it, but it would be cool if they rebuilt the castle. :-)

On the way back I met up with a mate who couldn’t come along right from the beginning. We saw two deer on the meadow, but it was already too dark for my camera, the photos were totally rubbish. The sunset turned really pretty and colorful just in time when I reached home. https://lyse.isobeef.org/waldspaziergang-2025-06-10/

⤋ Read More
In-reply-to » (#yvoqgza) 2024 was okay for me, but 2025 is gonna be real shit. šŸ˜‚ So much annoying stuff coming up. Gotta enjoy the moment, who knows how long it will last. šŸ˜…

@movq@www.uninformativ.de you have no idea what a soul sucking, heartbreaking SOB 2025 turned out to be. I wish you the best of luck with whatever annoyances life might have thrown your way. Power to you, my friend.

⤋ Read More

On sent les 30°C arriver lĆ , avec la pĆ©nurie d’eau qui va avec (Ƨa baisse dans la rĆ©serve). Alors on la joue collectif les copains : on rĆ©cupĆØre l’eau de vaisselle pour arroser, on privilĆ©gie la toilette de chat Ć  la douche quand c’est possible et on reste pieds nus pour se rafraichir

⤋ Read More