logi

joined 10 months ago
[–] logi@piefed.world 1 points 1 week ago

Biker plus bike plus gear. Yes. Easily. Or it might be 90kg which changes nothing.

[–] logi@piefed.world 2 points 1 week ago (3 children)

they're usually much lighter, obviously

Sure. But if the combined weight of rider and bike is around 100kg and that rises to 115kg for an electric, then that's not a huge difference.

[–] logi@piefed.world 13 points 1 week ago

France passed a law like that and it should be phasing in now. I wonder how that's going.

[–] logi@piefed.world 20 points 1 week ago

Also, and worst of all, where is Jesus' gun?

[–] logi@piefed.world 1 points 1 week ago

The Constitution thinks it's OK for Iran to have nuclear weapons!

[–] logi@piefed.world 5 points 1 week ago

We have a bunch scattered around my neighbourhood here in Italy.

[–] logi@piefed.world 6 points 1 week ago

That, and if WhatsApp has the keys, then no amount of encryption is going to help.

If I remember, the allegation was that they did keep all the keys and many employees could request them to decrypt specific sessions.

[–] logi@piefed.world 1 points 1 week ago

Tidal is really feeding off the momentum of the planet, but yeah, that's not nuclear.

Potential energy... that's more a storage medium.

Perhaps we need to add the original energy of the big bang to nuclear. That threw things apart so they could have potential energy, and it gave a lot of matter a lot of momentum which gets topped up occasionally by a nuclear exploding star.

[–] logi@piefed.world 1 points 1 week ago

Right, sorry, slip of the ginger.

[–] logi@piefed.world -1 points 1 week ago* (last edited 1 week ago) (6 children)

That's all just nuclear fission with even more steps.

Are there perhaps only two primary power sources: fission (in stars for now) and fusion (on Earth)?

[–] logi@piefed.world 14 points 1 week ago

it's either done via inflating the price of the food or a fixed service fee.

That's exactly equivalent except for the false advertising.

[–] logi@piefed.world 13 points 1 week ago (1 children)

It's an easy question to answer but a more difficult question to remember to ask. But I guess that's what those 2 to 3 levels are for 😏

 

Hi there! After writing approximately the same bunch of test functions at two jobs, I've extracted a little pytest library for doing expectation testing the way that I like to, and published in the usual places. So, I thought I'd tell y'all about it.

Essentially, it allows lots of variations of this kind of test:

def test_compute(resources):  
    input = resources.load_json("input")  
    output = compute(input)  
    resources.expect_json(output, "output")  

The input data and expected results will be located in predictable places relative to the test function, and in a format that is nice to work with as a developer. No magic pickles or multiple expectations squashed into a single file that you're afraid to edit.

It works well with text data, json and pydantic models and others may appear over time. Test file path creation is completely configurable, but I think the defaults are reasonable.

I'd love for it to see some usage and to get some feedback about how to make it better.

That's it!

view more: next ›