taladar

joined 1 year ago
[–] [email protected] 2 points 2 hours ago

It is certainly great news that gccrs doesn't intend to fuck up the Rust ecosystem the way multiple compiler implementations have fucked up other language ecosystems and standards.

[–] [email protected] 2 points 2 hours ago* (last edited 2 hours ago)

And then complaining that those customers are to blame that their business is tanking when in reality they just made them too poor to buy the product and/or killed them off but they will get a bailout anyway because they are "too big to fail".

[–] [email protected] 1 points 17 hours ago

Pretty sure it wouldn't be hard to do with something like InvokeAI where you have some basic image editing tools to use before inpainting.

[–] [email protected] 5 points 19 hours ago

InvokeAI 5.3.1 with the Environment Art setting and an SDXL derived model and 9:16 aspect ratio (otherwise defaults)

[–] [email protected] 3 points 21 hours ago (1 children)

That is over 10 years at 4h a day every single day.

[–] [email protected] 13 points 21 hours ago

Well, could just have started the game, then went to get the doorbell, got hit by a car on his porch and was in a coma for a year before he could get back to close the game.

[–] [email protected] 1 points 1 day ago (1 children)

My point is that Gaza should have no impact on your voting decision at all because not voting, voting Democrats and voting Republicans will get you the same outcome there, which would also be the outcome you got from literally any other US administration or potential administration (as in candidate that lost) in the entire history of Israel's existence.

Which leaves all the other potential considerations. Trust in the Democratic party can certainly be one of those but don't pretend not voting makes you morally better on the Gaza issue itself. That whole "inaction makes me better" mindset when action and inaction have literally the same outcome needs to die because it is literally not true.

[–] [email protected] 5 points 1 day ago

I mean judging by the comments people get when they say it is too stressful it could also be considered too relaxing. They always claim everything is optional and that somehow makes the game relaxing but even if I try to do just one of the things I could do the energy and slow walking and passing out mechanics still make it about as relaxing as getting something done in another game while some PvP griefers keep sniping my character randomly in the middle of tasks. At that rate not playing the game is infinitely more relaxing than playing it and just not doing anything at all.

[–] [email protected] 12 points 1 day ago

Your return will return from the function, not from the for loop as you probably assume. The for loop itself does not return a value. Only loop based loops can use break to return values, other loops do not.

You also forgot the let keyword in your assignment

I assume you want to return the value of the href attribute for the first node that has one? In that case you want something like

fn get_first_href_value(link_nodes: Select) -> Option<String> {
        for node in link_nodes {
            if let Some(href_value) = node.value().attr("href") {
                return Some(href_value.into());
            }
        }

        None
}

or, more idiomatically

fn get_first_href_value(link_nodes: Select) -> Option<String> {
    link_nodes.into_iter().find_map(|node| node.value().attr("href")).map(|v| v.to_string())
}
[–] [email protected] 5 points 1 day ago (2 children)

It really isn't for everyone. I tried it and hated every minute of it, super-stressful and tedious and returned it (one of only a handful of games in my Steam collection of a few hundred) because it was advertised as relaxing when it is anything but.

[–] [email protected] 2 points 1 day ago (14 children)

Not voting to absolve yourself from moral responsibility for the outcome is a fallacy though. Many people do believe that inaction somehow makes them less responsible but that just isn't the case. Inaction isn't the magical option, you still have to live with the outcome and you still have all the same opportunity costs as with any choice on the ballot.

If you think you aren't responsible for the events in Israel and Palestine because you didn't vote for either candidate you are just deluding yourself.

[–] [email protected] 8 points 1 day ago

That is more along the lines of high government official protection at special events they attend in other countries though, not a standard practice at normal sports games.

 

After adding some lines today to log some information I had missed that was vital for debugging I was wondering if there were any automated tools like linters or similar static analysis tools that help you identity the information to log and or return in error cases.

I am specifically talking about the information that should be identifiable automatically because it contributes to the control flow arriving in the current scope such as values of variables in the condition for the scope or parameters of functions that calculate those values (e.g. the file name in a permission error, the value of a variable that failed an if let or let else pattern match,...

view more: next ›