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.
- https://doc.rust-lang.org/std/string/struct.String.html#method.from_utf8_lossy
- https://doc.rust-lang.org/std/borrow/enum.Cow.html
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.)
@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:
@bender@twtxt.net @prologic@twtxt.net meanwhile i want to try microblog but can’t because not able to pay for it. They have trial but…
[47°09′55″S, 126°43′06″W] Working impossible due to blizzard
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? 🤨
@movq@www.uninformativ.de I HOPE SO TOO!!! when i found out there were boxes on ebay i just had to jump on it!!
Hey, Europe: Congratulations, we now have radioactive contamination in Iran. Are we going to continue selling weapons to Israel?
@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.
Soooo very very close! 😅
@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 🤣
@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!
#MaradoWeekly #WeeklyPlant Week 23
@bender@twtxt.net I just babble on Twtxt 🤣 I honestly find that I don’t realy have the time nor the energy to “blog” in full really, I rarely do 😢
@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.
I’m now going to delete 7,336 old photos (previews, resized web versions and index.htmls) and reclaim 3.3 GiB disk space on my laptop.
@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?).
@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.
On my blog: Toots 🦣 from 06/09 to 06/13 https://john.colagioia.net/blog/2025/06/13/week.html #linkdump #socialmedia #quotes #week
@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
I’ve told that whomever has this link will be able to watch live the third and edition of “Secret Garden festival”.
“We bring you the delights of Scott Marshall Hurdy Gurdy, and Bristol’s Dead Space Chamber Music, with a little Sieben to kick off proceedings. Come join us in the garden!”
Starting now!
@thecanine@twtxt.net … all these stupid, pointless “apps” are stuff that I eventually have to remove from family devices … Sigh.
@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.
@movq@www.uninformativ.de how does Gopher relates to Mastodon? Are you getting off the Fedi completely?
@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. 🤷
@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! 😅
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.
@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.
Lately (since there are AI summaries at the top), each time I Google for the answer to a question, the AI summary has at least a part of the answer wrong. It makes up laws that do not exist, books that were never published - in sum, well written sentences that make linguistic sense, but with made up content.
Let me repeat: each time. Maybe I only search for hard stuff, or fringe stuff, or this some other explanation - but seriously, it’s hard to understand how isn’t Google ashamed of its AI overviews… or not sued under some regulation regarding fake news.
PS: yes, I know, my fault for using Google as a search engine.
@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.
@bender@twtxt.net remind me to look into this a bit later because I’m starting to suspect there’s a weird behavior in the system 🧐
@aelaraji@aelaraji.com I’m glad to hear that you don’t find it too terrible. :-) There are still heaps of bugs to fix and things to improve. Bucketloads of them.
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.
“Later in the evening, posting on X, #Macron said: “I’m banning #socialmedia for #children under 15. Platforms have the ability to verify age. Let’s do it.”
French authorities are already progressing with efforts to force certain social media sites — including X, Reddit, Bluesky and #Mastodon — to introduce age verification, by classifying them as pornographic websites.
French measures forcing porn sites to verify their users’ ages came into effect on June 7, prompting the world’s largest porn website, Pornhub, to stop operating in France. Demand for virtual private network services, which allow users to trick websites into thinking they are in a different location, immediately surged.”
https://www.politico.eu/article/emmanuel-macron-social-media-ban-minors-france/
[47°09′39″S, 126°43′54″W] Transponder still failing – switching to analog communication
kyivindependent.com writes that russian state duma passed a bill to create a state messaging app as it considers to block whatsapp.
@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 🤞
@kat@yarn.girlonthemoon.xyz awwww, wish I could help you with that! Is there anything people could do to help you manage it?
@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!!
@movq@www.uninformativ.de That’s cool! I think I never ran across a moorhen in the wild. Nor such a goose, just the “normal” ones. I should maybe try to sit on a watch to shoot some birds. With my cam, not a rifle of course. :-)
() @aelaraji@aelaraji.com I am missing the root for this twtxt. What was it? Hmm, referring to https://twtxt.net/twt/g5sjnlq.
My Journey to KubeCon + CloudNativeCon 2024: A Story of Volunteering and Growth
My name is Oscar Ayra and I am from Lima, Peru. In 2024, I had the privilege of being part of the volunteer team at Kubernetes Community Days (KCD) Lima. It was an enriching experience where… ⌘ Read more
Newbie No More: Lessons from My First KubeCon + CloudNativeCon as a Speaker
Introduction April in London has never felt so electric. From the first footstep in the ExCeL halls to the hallway conversations, KubeCon + CloudNativeCon Europe 2025 was a whirlwind of new ideas, familiar faces, and those… ⌘ Read more
Passing of Jean-Raymond Abrial
Jean-Raymond Abrial, father (in particular!) of the Z notation, but also of the B method, and then Event-B, passed away on May 26. I was surprised to see that this piece of news, which may be of some interest to formal method folks, doesn’t seem to be very well known (there’s not much material on the web).
Here are some links (on LinkedIn, sorry):
[by Bertrand Meyer](https://www.linkedin.com/posts/bertrandmeyer_i-am-saddened-to-report-from-todays-print-activity-7335684948974034944-SJf1? … ⌘ Read more
[$] Improving iov_iter
The iov_iter
interface is used to
describe and iterate through buffers in the kernel. David Howells led a combined storage and
filesystem session at
the 2025 Linux Storage,
Filesystem, Memory Management, and BPF Summit (LSFMM+BPF) to discuss ways
to improve iov_iter
. His topic\
proposal listed a few different ideas including replacing some
iov_iter
types and possibly allowing mixed types in chains of … ⌘ Read more
@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.
[$] An end to uniprocessor configurations
The Linux kernel famously scales from the smallest of systems to massive
servers with thousands of CPUs. It was not always that way, though; the
initial version of the kernel could only manage a single processor. That
limitation was lifted, obviously, but single-processor machines have always
been treated specially in the scheduler. That longstanding situation may
soon come to an end, though, if this patch\
series from Ingo M … ⌘ Read more
Breaking: Australia sanctions against two far-right Israeli ministers over Gaza comments
Foreign Minister Penny Wong says Australia will join the UK, Canada and New Zealand in sanctioning Itamar Ben-Gvir and Bezalel Smotrich over comments they have made about Gaza. ⌘ Read more
NT police boss faces political questioning over Kumanjayi White death probe
The Northern Territory’s acting police commissioner clarifies why police believe the investigation into Kumanjayi White’s death should not be outsourced to an external body. ⌘ Read more
Marines to arrive in LA as ABC camera operator hit by less lethal round during protests
An additional 700 US Marines are expected to reach Los Angeles on Monday night or Tuesday morning, local time, as part of efforts to quell the protests. ⌘ Read more
Breaking: Several people dead in Austrian school after shots heard, authorities say
Several people have been killed at a school in the Austrian city of Graz, according to local authorities. ⌘ Read more
South Korea’s new president vows to ‘restore democracy’
Reuters Editorial Staff, - Reuters
_Stephan: I am leading today’s SR with this story because it represents exactly how the population of a country can end a fascist authoritarian coup. First, millions go into the streets for nonviolent demonstrations, then citizens overwhelmingly vote for democracy. As Trump tries to stir up violence in the Los Angeles demonstrations so he can claim it is an insurrection and susp … ⌘ Read more
Trump’s troop deployment is a warning sign for what comes next, legal scholars fear
Kyle Cheney and Josh Gerstein, Staff Writers - Politico
_Stephan: What is see in Trump is a bully in a panic. He wants to create misdirection so the media stops covering his bully-off with Elon Musk, and the nasty oligarch benefit bill his morally spineless Republican vassals in Congress are trying to pass. Like all cowardly bullies, his solution is to over … ⌘ Read more
Red State Voters Approved Progressive Measures. GOP Lawmakers Are Trying to Undermine Them.
Jeremy Kohler, Contributing Writer - ProPublica
_Stephan: The Republican Party at both the state and federal level has been completely taken over by fascists. It is a fascist anti-democratic party that cares nothing for the voters they are supposed to serve, but which they seek to dominate. Nowhere is this made clearer than in Republican cont … ⌘ Read more
Looser gun laws tied to thousands more US child shooting deaths
Issam Ahmed, Staff Writer - Agence France-Presse / Raw Story
Stephan: The failure of the Democrats and Republicans, and the corrupt Supreme Court MAGAt majority to deal with gun violence in the United States has made death by gunfire the leading cause of nonmedical death. The Trump coup fascists have even gone so far as to legalize functional machine guns in civilian hands.
, which builds sustainable ecosystems for cloud native software,… ⌘ Read more
CNCF Kubestronaut Program Momentum Highlights Asia’s Role in Growing Cloud Native Talent
Upcoming Kubestronaut celebrations in China and Japan to honor global program growth Hong Kong, China– 10 June, 2025 – The Cloud Native Computing Foundation® (CNCF®), which builds sustainable ecosystems for cloud native software, today announced continued… ⌘ Read more
Why this top AFL selection feels for his fellow number one draftees
The Giants’ key forward says there can be too much pressure put on first- and second-year players who are high picks. ⌘ Read more
Man charged with attempted murder after alleged stabbing
Queensland police say a 33-year-old man allegedly broke into the home of a man known to him in Brisbane’s south before stabbing him. ⌘ Read more
Cairns’s only paediatric cardiologist under ‘intense pressure’
Medical groups and a national charity add to calls from parents to bolster a paediatric cardiology service in Far North Queensland. ⌘ Read more
Fertility group incorrectly transfers wrong embryo for second time
In an announcement to the ASX on Tuesday morning, Monash IVF said the incident happened on June 5 at its laboratory in Clayton, Victoria. ⌘ Read more
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
Boy with disabilities put in house akin to ‘correctional facility’, whistleblower says
A whistleblower says a 12-year-old boy with disabilities alleged to be the victim of indecent treatment in Cairns watch house has been flown to Brisbane and placed in housing “similar to a correctional facility”. ⌘ Read more
Live: Erin Patterson returns to give more evidence in triple-murder trial
Erin Patterson will begin her sixth day of evidence as her triple murder trial resumes in Morwell. Follow the court proceedings live. ⌘ Read more
GitOps in 2025: From Old-School Updates to the Modern Way
1. Introduction: Why Everyone’s Talking About GitOps in 2025 It’s 2025, and building software is more cloud-driven than ever. Cloud computing offers incredible speed and flexibility, but it also brings complexity. Companies are expected to ship… ⌘ Read more
West Australian fire volunteer’s decades of service honoured
Toodyay Volunteer Fire and Rescue Service captain Ian MacGregor has responded to some of WA’s most traumatic fires and road incidents during decades of service, recognised this week with the Australian Fire Service Medal. ⌘ Read more
Worry as SA drought smashes low-rainfall records in farming areas
Farmers were able to achieve a good harvest over summer because of sub-soil moisture, but a second year of extremely low rainfall has them fretting. ⌘ Read more
Flooded growers ask for patience as blueberry prices near $10 a punnet
Eye-watering blueberry prices could stay higher for longer this year due to seasonal shortages and crop damage caused by torrential rain in northern New South Wales. ⌘ Read more
Proposal to keep whale-watching vessels further back concerns operators
Whale tourism operator Rod Keogh fears his business of 17 years may not survive the introduction of new whale nursery areas in SA. ⌘ Read more
McKeown survives DQ and a dark place to qualify for world titles
Kaylee McKeown beat rival Mollie O’Callaghan in the race of the night at the Australian Swimming Trials, but she acknowledges she is still not at her best after struggling since the Paris Olympics. ⌘ Read more
Live: LA braces for more protests as California files lawsuit against Trump administration
California Governor Gavin Newsom says the state will sue Donald Trump’s administration after the US president deployed the National Guard to handle protests. Follow live. ⌘ Read more
Head praises ‘optional’ training sessions ahead of WTC clash with South Africa
Travis Head says a more relaxed approach to training is helping Australia thrive on the world cricket stage. ⌘ Read more