What will happen to my @horsefucker.org email
What will happen to my @horsefucker.org email
Whatever will they do without algorithms recommending their low effort posts to other users?
I would’ve considered buying this. That’s a good deal.
here, 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()
}
Here’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?
Link to presentation?
Please 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.
rusty software incoming
Huh, I somehow enjoy this more.
maybe not kate but kwrite. kate is a code editor
The needed drivers should be provided by the kernel, so no.
Yeah. I hope it can compete with the bigger search engines someday.
No. And I hope it won’t have it any time soon.
I do like SearXNG over Kagi due to their pricing and AI bs but Kagi really just has better search results.
Sure.
Self host your own database and synchronize it that way.
I’d have to disagree on that one
crypto bros’ hangout