- Old mansion with horror themes and spooky stuff, with 6 mini cocktails. Yup. https://feverup.com/m/76796. Bought tickets.
- Later requested to swap the house of spirits tickets from sat 26th to fri 25th to deconflict with Lawrence’s bday and Briley/Sharon party, just in case. They honored it; moved to Thursday Oct 24th, 630-830pm.
- Called and made haircut appointment, and there was availability today. The online system was smooth.
- A whole cow is a few thousand bucks (~$5/lb of usable meat). A whole pig is a few hundred bucks (~$2/lb for usable meat).
- Bought tickets for dark harbor (queen mary long beach horror event every year).
- Jinja.
- Read through much of the documentation: https://jinja.palletsprojects.com/en/2.10.x/templates/.
- You can do an {% endset %} if you don’t to confuse scope of a common variable.
- Macros are just functions that return html. If you have similar blocks of html anywhere, conditional on some sort of input (or even not), then you can make it a macro and just import/call it whenever needed. Not that import is different than include and extend; it’s only used for macros (and variables, if need be), just like python.
- There are some useful built-in filters I wasn’t aware of: dictsort, map, unique…
- {% trans %} is used for i18n (translation, obviously).
- The `extends` clause should be the first line in a child template. You can have multiple `extends` clauses in the full inheritance chain, but you have to be smart about the `include` / `extends` relationships. Remember, `include` will just pull html from somewhere else. `extends` will tell the blocks to fill the parent. The block definitions themselves should be in the file with `extends`, and the `include` sections within the blocks.
- Netflix has twice as many paid subscribers as Hulu, but only 10% of the viewers as regular old tv! Their q3 earnings were much better. Surged 10%.
- I’m gonna start doing some intermittent fasting, out of curiosity. The main benefit you hear people talking about: IM increases autophagy (cell recycling). I already have such a regimented diet, I figure adding a time dimension to this won’t be hard. 16/8 is the goal, but if I have to use 12/12 as a transition period, that’s fine.
- 3 main meals (I already do this, just shifting times).
- 1000 shake.
- 1200 smoothie.
- 1800 meats.
- Other.
- Veggie juice before gym.
- Coffee. Since you can’t drink on an empty stomach, this keeps caffeine consumption in better complement with your natural cortisol cycles.
- Protein bar after gym.
- Python 3.8 is released. Good summary: https://docs.python.org/3.8/whatsnew/3.8.html. Main additions:
- Walrus operator, for stuff like check length WHILE assigning to variable.
- fstrings can do stuff like f'{user=}’ now, where it will print the variable name, an equals sign, and the value for you.
- importlib.metadata can give you info about version, requirements, and data files for any package. More info: https://docs.python.org/3/library/importlib.metadata.html.
- Toilet was wobbly. Tightened everything. Plastic fasteners into porcelain.
- Splurged on a new electric razor.
- My old one is tiny, uses batteries, takes forever to finish, etc. It’s small, I’ll keep it around for precise stuff like arms.
- Got the Philips Norelco 8900. $200. It’s the nicest one without a digital interface.
- Calculated all the utilities (gas/water/electric) + internet that briley still owes. Will be about +$1500 when I move out. Also will probably get some security deposit back, although keeping expectations lower.
- Citi Double Cash arrived! Activated the card, as well as the online management account. Added it to Google Pay, which chrome obviously has access to. Added to Mint. Changed the verizon autopay to this; it’s the only recurring payment on the card (so far).
- Changed the verizon bill to submit payment on the 1st of the month, to keep everything in sync.
- Elastic, splunk, and nagios are popular log monitoring platforms.
- Installed gthumb so I could crop images natively in ubuntu.
- Sudulaev is so good. In under 5 seconds, he goes from being in a standing single leg to taking the other guy down.
- Supercontest.
- If you don’t commit the lines before midnight, the app will 500 because it will try to commit scores (Thursday is a score day, so it tries). It can’t commit scores when there are no lines yet, because the score table FKs to the line table. No programmatic action here, just make sure to commit lines before midnight on wednesdays. Added the note to the sentry error: https://sentry.io/organizations/bmahlstedt-org/issues/1279298266.
- Committed this week’s lines and submitted my picks.
- Sentry error for InvalidPicks(‘A pick is being attempted on a game that has already started, and for a pick that the user did NOT already place. This is likely a malicious attempt, since the frontend should screen for this.’). https://sentry.io/organizations/bmahlstedt-org/issues/1270625608/?project=1773879. Changed it to properly send the error msg back to the frontend, and log it locally.
- Renamed the season blueprint to the better contest_blueprint.
- Reorganized ALL templates into subfolders. Completely separated them. Instead of inheritance everywhere along the whole change, they’re now all distinct, and I define commonly used bases that include the appropriate sections.
- Removed basically all customization of flask_user templates, other than that they extend bases/banner_navbar.html.
- Finished the second season of succession. Solid show.
- Disabled adblockplus, ublock origin, and privacy badger for mtv.com so that I could successfully watch live tv in that domain.