monomon

joined 2 years ago
[–] monomon 4 points 1 day ago

+1 for Pocketbook

Never had any issues with it whatsoever.

The device works great with Calibre.

There is some other functionality that I did not use.

[–] monomon 1 points 2 days ago

Should mention Open Sound Control which is also pretty good. Not exactly a competitor, it was supposed to provide a richer, real time interface. Still popular for certain use cases, including beyond music.

[–] monomon 2 points 4 days ago (3 children)

Still, if legal, one would "boil" (not sure what the term is for oil soluble?) a kilo with no issue.

[–] monomon 3 points 2 weeks ago

The older is 9, found it challenging in the beginning, but caught on. Younger is 5, definitely not into Pandemic.

Speaking of snakes and ladders, we had a very fun project of making our own. Basically I stole the positions of snakes and ladders from another board, but we drew and painted all of it on thick cardboard. Small enough and really fun project. You can customize to your fancy.

[–] monomon 5 points 3 weeks ago (2 children)

Funny that you mention Pandemic, we finally got around to playing it with the kids, and it was great. They are just entering the age where they get it.

So far only played the simplified rules, none of the Legacy parts, and beat the game for the first time.

[–] monomon 4 points 4 weeks ago

In a similar vein, there's an old saying: "A lie travels around the globe while the truth is putting on its shoes."

[–] monomon 1 points 4 weeks ago

Not really true, but there are vocal minorities against, including wack political parties. Even they realize it would be beneficial, imo.

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

This. We kinda stumbled on this pattern, and use it to great effect. Simplified code:

@pytest.fixture
def tmpfiles():
    with NamedTemporaryFile(suffix=".html") as f:
        yield f

# or for paths, which are more suitable for certain tests
# touch them so they exist
@pytest.fixture
def othertmppaths() -> list[Path]:
    f1 = Path("...")
    f1.touch()
    f2 = Path("...")
    f2.touch()

    yield [f1, f2]
    # you could delete them here if needed
    f1.unlink()

def test_foo(othertmppaths list[Path]):
    result = upload_resource(othertmppaths[0]) 
    assert result.status == 200

The context manager one will properly clean up all files.

E: Pretty website btw

[–] monomon 1 points 5 months ago (1 children)

From what I read, the incursion force brought AA, making it hard for Russian air. Moreover, they did strike a few nearby airfields.

[–] monomon 3 points 5 months ago

This might be contrary to some, but i recommend diagramming! Can be anything from paper doodles to d2 to full blown uml diagrams. They help you stay focused, and aware of the program's data dependencies.

Regarding code practices - read code. If you use a library for something, dive into its code. This can be beneficial in many ways - you observe the style they used, you understand better how the library works (documentation rarely contains enough detail), and you see how libraries are structured, which is often lacking in newbies.

Learn your language's idioms. They can reduce complexity, and are usually more readable to people with experience in the given language.

Finally, don't sweat it too much. The more you write, the better you'll become, so just do it. New problems lead to new insights.

[–] monomon 4 points 5 months ago

This might be a bit advanced, but indeed a very good article.

[–] monomon 3 points 6 months ago

Same. Really happy with it.

 

I had been meaning to try OCaml for a long time, and saw the opportunity.

My daughter's school schedule was sent in an inconvenient format (screenshot), so I decided to type it in manually in sexps, which I am a fan of.

These are used as a source for my program to generate icalendar with recurrences, exceptions for the holidays, and so on. Someone might find it useful as reference too.

view more: next ›