Michal

joined 2 years ago
[–] Michal@programming.dev 5 points 3 months ago

Other countries should move their armies near Russian borders and waters just to keep them on their toes and prevent them from redeploying those troops to Ukraine.

[–] Michal@programming.dev 7 points 3 months ago* (last edited 3 months ago)

Makes perfect sense. If you're checking if a collection is empty you don't need to know its exact size. Getting the size can be very inefficient in collections like linked lists or trees, if you have to follow all nodes. To check if it's empty, all you need fo know if at least one item exists. If one does, there's no point counting the rest.

People who don't understand the difference will probably not understand the difference between passing a list and passing an literator/generator to any() .

[–] Michal@programming.dev 6 points 3 months ago

It's just how pythonic code is written. All python developers know that not and bool can indicate that variable is either empty or null. They will also use the in operator and other python specific syntax.

[–] Michal@programming.dev 1 points 3 months ago (1 children)

Close. It was more like "i may be wrong but I don't care".

[–] Michal@programming.dev 2 points 3 months ago (7 children)

It's not really that reliable as it it will depend on the diameter of the wheels that can vary with pressure, wear, and and actual tyre size.

A better method may be a sensor like the one used in optical mice.

[–] Michal@programming.dev 8 points 3 months ago (9 children)

Is this unique to women? Do men experience anything similar in women-dominated fields? I'm not actually sure what these may be; teaching, childcare, hair stylists? I realise this may make me sound misogynist, but I'm really clueless.

[–] Michal@programming.dev 5 points 3 months ago
Wordle 1,403 2/6

🟩⬛⬛⬛⬛
🟩🟩🟩🟩🟩
[–] Michal@programming.dev 22 points 3 months ago (1 children)

Why imagine when you can just read the article?

For adults, Sensitive Content Warnings are opt-in and disabled by default

This image classification, which does not currently apply to videos, works on-device and is powered by Android System SafetyCore, which “doesn’t send identifiable data or any of the classified content or results to Google servers.”

[–] Michal@programming.dev -1 points 3 months ago (3 children)

I did consider when making my comment that it could likely be work of an artist, but if the artist chose AI slop as their aesthetic, it was a conscious choice. Thanks for the source, though.

[–] Michal@programming.dev 4 points 3 months ago

I thought the bird was tone deaf

[–] Michal@programming.dev 8 points 3 months ago

The only problem preventing it lasting a life time is that they easily get stolen.

view more: ‹ prev next ›