logi

joined 4 months ago
[–] logi@piefed.world 3 points 1 day ago

You will know it when I throw it.

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

There is only one of each of the other creatures as well, so?

[–] logi@piefed.world 7 points 2 days ago

Wait, I think I see it. Everyone in that scene is white! (Well, except for the little green creature)

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

But it doesn't have a view of a cabin. Not even of the woods!

[–] logi@piefed.world 5 points 2 days ago

Gerrymandering is entirely irrelevant for presidential elections, since the state's votes get added up at the end anyway. To gerrymander for presidential elections you'd need to be redrawing state borders.

[–] logi@piefed.world 2 points 2 days ago

"We" are not in power, so that's a given. And then I'm beginning to think that you'd have to get rid of pardon powers before it is safe to have a bunch of fascists in storage.

But in general, "we" can work on more than one thing at a time. Othdrwise "we" would be only working on global warming, right?

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

That's pretty much how it works in the Italian cities where I have lived. Especially in covid, a lot of parking got converted.

This seems to be specifically about the maze of narrow streets in the centre of Firenze and there really isn't any room for eating there. And, tbh, when was there 2ish months ago, there was mostly the 1 or 2 bar stools outside a few places, so this seems to be all headline and no story.

[–] logi@piefed.world 1 points 3 days ago* (last edited 3 days ago)

That looks very nice and seems to hit most use cases as far as I can see in my just-woken state. If it had been easier to search for, then I might now have written mine.

I'd have to try it to see how it deals with my common case of rather a lot of numpy arrays in hierarchies if ducts or pydantic models and the floating point precision issues. Maybe it'll do that brilliantly.

 

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!

[–] logi@piefed.world 1 points 4 days ago

So he's a child's tooth? Unusual insult, but I ain't defending him.

[–] logi@piefed.world 6 points 5 days ago

Yeah, we know anecdotally that it was horrific and that the government was indifferent at best, but I'd like to quantify it as well.

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

I applied the Firefox readability mode, or what it's called, and finally got a sane page.

view more: next ›