• Monday

    • Private work.
    • Some logarithms.
    • Charged the remote control blinds. Just take microusb from desktop, extension cord from drawer, and plug in (red -> blinking green -> green).
    • Remember {:,} for comma separators on numbers in the thousands spots.
    • The equinox increase of 7/mo is in relation to ~260 or whatever I pay. A little under 3% increase.
    • S3.
      • Charges for versioning (if you have it enabled for a bucket) at the same rate as regular storage. If you have 6 versions of the file, it’s 6x the storage (not diffs).
      • Lambdas for pre/post data fetching. Many capabilities.
      • Remember permissions on the bucket are given by the ARN, but permissions on objects within the bucket require the /* suffix.
      • Looked at some policy examples for fine-tuned access control.
      • You can add localhost to Referer in a bucket policy to allow access in dev quickly/temp. This effectively exposes to the public though – any service can refer from localhost.
    • Lol equinox is increasing their rates by $7/mo.
    • Set up the ring cam. Remote control, voice, everything.
    • Supercontest.
      • Finished the larger change to rewrite all the routing
      • https://gitlab.com/bmahlstedt/supercontest/-/issues/218
      • Includes the shifting of the statistics views, the cleanup of the template logic (as far as URL params), and the filtering of stats by season.
      • Changed the logic so season=0 meant ALL (just like league=0 means all). This required some special handling of the season param – ONLY the stats views allow 0 (others just require valid seasons).
      • Moved all static assets to s3. Team logos, branding icons, banners, etc.
      • https://gitlab.com/bmahlstedt/supercontest/-/issues/193
      • Couldn’t find an easy solution for a “pointer” – a generic s3 alias (just a key-value pair) which I can point at anther object path in the bucket. I would update the banner pointer to the specific img in the archive. Oh well, just copying each week’s head as banner.jpg, like I used to do locally.
      • Much easier to manage these assets now. I can change the banner and the docs and everything else without rebuild/redeploy. They’re just s3 refs.
      • There is a flask-s3 python package: https://flask-s3.readthedocs.io/en/latest/. I’ve decided not to use it. The interface of pure URLs is simple/proper/stable enough for me. I don’t need extra functionality.
      • Could add WAF to cloudfront. Slows it down a TINY bit but adds some basic protection. Don’t need for now.
      • The docs were broken. Local and remote builds. Needed to add setuptools back to pyproject.toml – it’s necessary for sphinx.
      • Remember to delete docs/modules, these are autogenerated and if you’ve moved modules around, you’ll have some stale imports.
      • Also remember open in live server for index html files from vscode (useful for autodocs).