flying_gel

joined 1 year ago
[–] flying_gel 5 points 2 weeks ago

Got to tweak dos startup menu to maximise your conventional or ems memory.

[–] flying_gel 1 points 2 weeks ago

I'm using pass, the Unix standard password manager. While the original application is just a. shell script, gpg and git, it seems to have evolved more into a standard structure of encrypted files that any applications can use.

On UNIX I use gopass, on my phone I use Password store together with open keychain.

Benefits: completely self hosted, well known and robust technology, easy for developers to make applications or even just read the files youself

Cons: Need to setup and maintain gpg keys. Applications I've used so far seem geared to more technical people. Setting up a new device requires copying gpg keys or generating new ones and add the public key to your vault. Last I checked, no viable IOS client.

Depending on your view this can be either pro or con, but you can store your 2fa and password in the same repo, all protected by your gpg keys.

[–] flying_gel 13 points 3 weeks ago

It will help pay for the tax cuts for the rich

[–] flying_gel 8 points 3 weeks ago* (last edited 3 weeks ago) (5 children)

I tried to look this up but I couldn't find much. The "worst" I found was this:

Some users have expressed concerns about the platform's moderation practices, suggesting that the community's emphasis on inclusivity and respect may lead to over-sensitivity, where even minor disagreements or differing opinions are met with significant backlash. This environment can create a perception of excessive policing of content, potentially discouraging open dialogue.

Where are you reading that people are saying that it's worse than twitter? Is it right wing people that are saying that because they put emphasis on inclusivity and respect?

[–] flying_gel 5 points 1 month ago

It makes perfect sense actually. I did write another comment here if you are interested.

This is how operator overloads were written going back to the initial version of C++ back in 1985. The only new thing is that we can now add = default to get the compiler to generate a default implementation that compares all the member variables for you.

[–] flying_gel 7 points 1 month ago

Maybe to a non C++ dev, but a lot of C++ is probably incomprehensible to a non C++ dev, just like there are other laguages that are incomprehensible to C++ devs. To me it makes perfect sense as it works just like all the other operator overloads.

auto - let the compiler deduce return type

operator<=> - override the spaceship operator (pretty sure it exists in python too)

(const ClassName&) - compare this class, presumably defined in Class name, with a const reference of type Class name, i.e. its own type.

const - comparison can be made for const objects

= default; - Use the default implementation, which is comparing all the member variables.

An alternate more explicit version, which is actually what people recommend:

auto operator<=>(const ClassName&, const ClassName&) = default;

if I just want to have less than comparison for example I would:

This one makes it explicit that you're comparing two Class name objects.

if I just want to have less than comparison for example I would:

auto operator<(const ClassName&, const ClassName&) = default;

If I need to compare against another class I could define: auto operator<(const ClassName&, const OtherClass&)

[–] flying_gel 1 points 1 month ago

You mean copy/move constructor and assignment operator?

Unless you have any special handling the ones generated by the compiler automatically should work just fine. But if you do have to define them for some reason (which is becoming increasingly rare) you would need to define both if you need both copy/move construction and copy/move assignment.

[–] flying_gel 34 points 1 month ago (13 children)

I do appreciate how newer C++ standards have made these kinds of things a lot easier too.

Define all comparison operators with just one one line using C++20

auto operator<=>(const ClassName&) const = default;

[–] flying_gel 2 points 1 month ago

Tens of billions is technically correct since in the last year US spent about 2 tens of billions, I.e. $20 billion, or about 2.5% of the annual military budget on Israel.

[–] flying_gel 2 points 1 month ago* (last edited 1 month ago)

Could also be the first women president vs 4th worst president of all time.

edit: actually shared 3rd worst, shares with Franklin Pierce

[–] flying_gel 5 points 1 month ago (1 children)

While still to the right of center of the political compass, I do really like how much closer to the center Walz is than the other and previous candidates.

[–] flying_gel 5 points 2 months ago (16 children)

Not to defend them too much and I have to admit that I don't know much about the details which bills were priorities during the 4 months that Obama has house, senate and Presidency.

What I did read a while back was that Obama didn't know how long his supermajority would last and some of the things he wanted he wanted done but couldn't once he lost the house.

 

Maybe a bit early but it's the 14th where I am. Hopefully can take the new release for a spin tonight.

view more: next ›