• Thursday

    • Humidifier cleaning: https://cdn.accentuate.io/7062932586584/1649372746090/D1_02.00_M1_LUH-D302-WUS_2022-01-14_US_PRINT_en.pdf?v=0
    • Everything about poetry env management is for different python versions within a project: https://python-poetry.org/docs/managing-environments/. I wish you could create named envs per dependency set. I want a dev env. I want a test env. I want a doc env. I currently do poetry install --with [dev|test|doc] for those, which takes my single py3.11 project env and makes sure it has the proper deps, but that takes a few seconds – why can’t I just prebake envs that match those depsets and then (eg) poetry env use testenv?? I could create a my own venvs for these and pass the python executable path of them to poetry, but then there’s a required step outside of poetry for dependency management. Defeating the whole purpose of using a pkgmgr framework.
    • You can run flask db upgrade if you’re 2 versions behind, and it will apply them both in order.
    • Was going to switch verizon autopay to CSR (from boa debit), but remember that you get a big discount with debit. So left it. But the debit expires in 3 months. BoA should send me a new one, and I’ll change it. Added a calendar note.
    • Awesome video showing how much more frequently spacex has been launching over the years: https://twitter.com/stem_feed/status/1630971547434221578
    • You can’t just wrap a div around multiple td elements. Use selectors on the rows/cells as necessary.
    • SBSC. Finished the statuses/teams tables.
    • https://gitlab.com/bmahlstedt/supercontest/-/issues/175
    • Also moved ansible and flask-debugtoolbar to group.dev.dependencies. Added a devenv target to makefile and made it a requirement of other targets that do poetry run ansible <> (just like I do with testenv targets and docenv targets). Removed ipython from all depsets.
    • Bcrypt-hashed all the backfilled-users’ passwords (generic) with passlib via flask_user.
    • SQLA can only join to a table once. If you’re joining to a table twice because you have 2 FKs that you want to filter on (like Line.favored_team and Line.underdog_team requires 2 joins to the Team table), set up aliases for the table and join over the aliases. Note that the table aliases should be used in the filter as well.
    • With postponed evaluation of annotations (https://peps.python.org/pep-0563/), you don’t have to pass models in quotations to Mapped[<model>] attributes. But static analysis tools still flag it, since python doesn’t hoist. Going to leave them quoted.
    • Deployed new tables and app to prod.