How is linking to freely and publicly available information to their profile links considered doxxing?
- 5 Posts
- 68 Comments
Thanks for understan
asudox@programming.devto
Rust Programming@lemmy.ml•How do I use Option and the '?' operator with a for loop?
1·2 years agohere, it definitely is shorter, I’ll keep filter_map in mind, thanks:
fn get_links(mut link_nodes: Select) -> Vec<String> { link_nodes.into_iter().filter_map(|node| node.value().attr("href").map(|href| href.to_string())).collect() }
asudox@programming.devto
Rust Programming@lemmy.ml•How do I use Option and the '?' operator with a for loop?
1·2 years agoHere’s what you are trying to do, with a one liner:
fn get_links(mut link_nodes: Select) -> Vec<String> { link_nodes.retain(|node| node.value().attr("href").is_some()).into_iter().fold(Vec::new(), |links, node| links.push(link.value().attr("href").unwrap().to_string())) }edit: shorter and updated version:
fn get_links(mut link_nodes: Select) -> Vec<String> { link_nodes.into_iter().filter_map(|node| node.value().attr("href").map(|href| href.to_string())).collect() }The retain method is to get rid of all the nodes which don’t have a href attribute and the fold method after it is to extract the href out of the nodes and push them into the vector.
It might work or not, I’ve written this from my memory and I can’t exactly know what that Select is.
I also hope you begin reading The Book without half assing it.
Linux was optimized to be used as a desktop OS?
asudox@programming.devto
Rust Programming@lemmy.ml•How do I use Option and the '?' operator with a for loop?
6·2 years agoPlease explain what it is you are trying to do.
As far as I can understand from the function return value and the body of the function, you are trying to compose all of the href attributes in each node into a single String, which is encapsulated in an Option. Is this correct? Something looks weird but I can’t quite catch it. I hope you didn’t take a quick glance over the rust book and just started assuming things work like JS in Rust.
asudox@programming.devto
Asklemmy@lemmy.ml•How do l contact moderators of Lemmy community like modmail from Reddit?
15·2 years agoLemmy does not have a modmail system yet. I opened a feature request regarding this a few months ago, check it out: https://github.com/LemmyNet/lemmy/issues/5110
The needed drivers should be provided by the kernel, so no.
There are no recommendation algorithms like in YouTube or TikTok here, if posts that are alike and get sonewhat the same amount of high votes, you most likely will see them one after the other. There isn’t a way around it really.
Anyways, it’s better if you subscribe to communities and mainly uss the subscribed feed along with a good algorithm like Scaled (gives a boost to posts in communities that aren’t as active as the others) or maybe just Active.
I rarely use the All feed, only when I try to find new communities honestly.
Normal distros
- Pop!_OS
- Mint
- Fedora
- Ubuntu
Gaming distros
- Garuda
- Bazzite
- Nobara
…or any other distro really. I’ve been gaming on vanilla arch linux. It’s pretty stable and low maintenance once you’re done setting it up and don’t tinker much and have backups with something like Timeshift in place. archinstall script makes it really easy to install vanilla arch linux with everything essential configured.
There’s JMP.chat or SMSPool (rentable non-VOIP) which accepts Monero.
KDE Plasma.
GNOME kind of looks nice but is too strict on customization.
The URL leads to a 404 page. You’re including the dot at the end in it.
As for your question, it has something to do with the PKGBUILD file. Edit it to fix the error and then build it locally with pacman.
If you are talking about wanting to maintain the AUR package, make an orphanage request and assign yourself as the maintainer.
Whatever nonsense gen alpha started saying these days.
Play games and watch anime.
TF2 Never gets boring. I’ve been doing the same thing in TF2 for over 1500 hours









Yeah well, that’s not doxxing.