RustyNova

joined 11 months ago
[–] [email protected] 0 points 11 hours ago

Technically yes, but a newbie doesn't need that. I doubt it's an application that performance is so critical either.

Too much premature optimisation IMO

[–] [email protected] 0 points 16 hours ago (2 children)

It's quite simple. Just remove the permalink field! If you are calculating it then no need to store it in the struct.

If you do need the field to be there (ex you serialise it with serde), then create a method called new that takes everything but the permalink, construct your permalink there, then return a new object.

Your permalink method can now just be self.permalink.to_string()

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

For a second I thought it was the Linux comunity

[–] [email protected] 8 points 3 days ago

This graph is awful to read ngl

[–] [email protected] 0 points 1 week ago* (last edited 1 week ago)

I wouldn't mind having a explanation of what you want to do instead of the code. It's not quite clear what you mean.

Anyways, what you want is to transform an iterator (your Select) into an iterator of Option?

For that, there's multiple ways but here's the simplest:

link_nodes.map(|node| node.value().attr("href").to_string())

Essentially, for each elements, we execute a closure (arrow function in JavaScript) that transform the node into your href string.

P.S. can't guarantee it works, I don't know what this "Select" type is, and I'm programming on mobile

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

And in the porygon episode (sort of)

[–] [email protected] 5 points 1 week ago (1 children)

"projects" is doing some megaton lifting

[–] [email protected] 126 points 1 week ago (1 children)

And in my mind "CE" is "Clear everything". I'm keeping OP's method

[–] [email protected] 6 points 2 weeks ago (1 children)

They also accept pulling the power cord out as "oh no" and shutdown for you!

[–] [email protected] 1 points 2 weeks ago

I didn't know it was native too!

[–] [email protected] 4 points 3 weeks ago

True, but my joke wasn't meant to be scientifically accurate at all. We have a genie here. They don't care about science. Apart from monkey paw science

[–] [email protected] 4 points 3 weeks ago (3 children)

0 is the freezing point of water 50 is the boiling point.

If it's 30°c outside, it will be only be 15 after the wish, thus fit what the character said

 

Is there any way to speed up the task switcher pop in animation? I find it way too slow. Ideally I'd like it to be as fast as the one on cinnamon as I switched for it to KDE

 

I got an home server that is running docker for all my self hosted apps. But sometimes I accidentally trigger Earlyoom by remotely starting expensive docker builds, which kill docker.

I don't have access to my server outside of my home network, so I can't manually restart docker in those situations.

What would be the best way to restart it automatically? I don't mind doing a full system restart if needed

 

I am looking for an alternative to Easy Effects for windows. It works really well on my Linux machine, but I want something for my work machine that runs windows.

Any suggestions? I don't need all the filters, but at least something to correct the awful bass

view more: next ›