Now do brainpower
Now do brainpower
That’s awesome. I think I might get into MC modding…
Good job. I fell for it
Beware of child predators
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
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()
P.S. in the second case I’d recommend to change the return type of self.permalink()
to &str
. It avoids unnecessary cloning of the string.
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<String>?
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
I think the meme refers to the joke that “all guys just want a big tiddy goth girlfriend” meme.
The bottom text is just a joke to divert from the obvious meme
No idea for Tiberius, but for SQLite I’m stuck with converting to timestamp and back. Ugly but works
P.S. add a getter to your data struct and you can be “seamless”
Sadly sqlx seems to have gone semi-proprietary with their MSQL driver. Personally never understood the appeal of mssql when there’s Postgres and SQLite, but hey, it does work.
I’ve started using welds as my new ORM of choice as SeaORM and Diesel is just not a friendly experience, and supports Mssql OOB. So it’s nice there’s still options for it.
Half joking. Lifetimes can be hard but once you understand the concept it’s quite easy.
The second joke is about you never learn Rust. You’re always on the learning rollercoaster. Always one step away but each time it makes you rethink the whole language.
Don’t get me wrong, I’m a rust main. But does issues does exist
Rewrite it in rust. Now get a lifetime of problems
Oh no. This is so bad. Who in their right mind would assume that a login user remains the same user throughout the session!?
Oh wait. Windows.
What? No! I leave at 6pm. (But start at 2)
I get 100m up front, right?
Right?
I see pee on the pavement.
I think I know what happened. Did you do something like
PATH="/usr/bin/golang"
?Because doing that overwrite your path variable. You need to set it like this:
PATH="{PATH}:/usr/bin/golang"
to append to the path.And well… I hope you got a backup of your
/root/.bashrc
or whatever you use as a terminal. Restoring it should fix itEdit: you should be able to use any program by appending /usr/bin/ to your commands, as long as it’s in this directory