• New season of castle rock. This one follows annie wilkes, the bipolar nurse from misery who killed the author.
    • House of Spirits was cool, but the most shocking part was the SURPRISE full nudity. They didn’t even warn us.
    • Riding 100 down the freeway, on the ducati, in the purple suit.
    • Router/modem are overheating in the cabinet, gonna leave the door open.
    • Talked with bmanning about matlab/c bindings. They have a product called Coder. Functional verification still needs to happen obv, but syntax conversion is automatic.
    • Music.
      • Kanye released a new gospel album today? It’s called JESUS IS KING. It’s garbage.
      • Old creed. Great. Old eve6. Not as much. Old rob thomas. Not as much. Vertical horizon was pretty good. David Gray and Howie Day. Meh. A little too soft but ok for background I guess.
    • Supercontest.
      • Fixed the consistent-width cols on all-picks. The logos in the headers had removed min-width.
      • Distinguished the finished games from in-progress games by color stripes, not border. If the game is finished, it’s the solid color representing the result. If the game is still underway, it’s the same color but a white band in the middle. Looks really good.
      • Made the legend look a little better, touches on both sides and white bg / black text in the middle.
      • Combined both instructions/legend buttons, on all views, into one single help collapse.
      • Converted all my inline styling to custom classes. Some basic ones already existed in bootstrap:
        • white-space: nowrap -> text-nowrap
        • rgb(225, 225, 225) -> text-muted
        • display: none -> d-none
      • Went through and checked for any inline scripting as well, and handled it.
      • Did not minify or bundle the css. It’s only like 50 lines.
      • Scraped all templates for common macros I could abstract out.
      • Scraped all js for common functions I could abstract out. The biggest one was colorPickCell, which contains the logic for checking game status and coverer and stuff to determine how to color the cell, red/green/yellow, and the in-progress band. This included two other helpful functions isGameUnstarted and isGameFinished.
    • Used the vitamix for the first time today. It makes a whole world of difference. So satisfied, shoulda bought it years ago.
    • TSLA jumped over 10% today. BTC over 40% too (so dumb).
    • Shorting kinda defeats the purpose of investment, ya? Tribute to the fact that the market is really there for gamblers, not for supporting good ideas financially.
    • Warriors got killed by the Clippers, but it’s game 1 and the Clippers are champion contenders.
    • Amazon’s switch from 2 to 1 day shipping increased revenue by 24% but increased shipping costs by 46% also.
    • Bootstrap source css, 10,000 lines: https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css.
  • Thursday

    • Record for lines.
      • Biggest all time: 27, Steelers over Bucs, 1976.
      • Biggest recently: 26.5, Broncos over Jags, 2013.
      • Biggest since my app: 22.5, Pats over Jets, 2019.
    • Westgate.
      • Leaderboard.
        • After week 6, the #1 had 27/30 points (90%).
        • After week 7, the #1 had 28/35 points (80%).
      • They have a mobile app. Downloaded and played with it.
        • Called “Fantasy Supercontest” from BookieLab Inc.
        • Mine is better:
          • All-time stats.
          • Desktop and mobile (via browser, but responsive).
          • Data API (graphql for web client and python pkg for desktop client).
          • Customizable banner.
          • Funny feedback form (trivial).
          • Localized time.
          • In-app rules, page-specific instructions, legend.
          • Progress graph (total points vs week).
          • Free league.
        • Theirs is better:
          • Native mobile.
          • Full record, covers-pushes-noncovers (mine just has total points).
          • Ranking graph (lb position vs week).
        • Both have:
          • Old seasons, old weeks (historical data).
          • Leaderboard. Full percentage.
          • Total picks per team per week.
          • Weekly summary of teams and players.
          • Team logos.
        • Not sure:
          • Live-update frequency.
          • Administration.
          • Payment interface.
          • Email reminders / notifications.
    • Nationals are up 2-0 in the world series.
    • Listened to mostly Myles Kennedy (vocals/guitar for altar bridge) and his solo work. Tremonti is still my favorite of the 3, between Tremonti, Cornell, and Kennedy.
    • Supercontest.
      • Fixed a few small issues due to lowercasing the team names and mapping the statuses. The capilization now is completely confined to the frontend html, through a jinja filter. The backend python/postgres all used uppercase before, but the frontend js does now as well.
      • picks_open is now forwarded to js.
      • Added logos: https://gitlab.com/bmahlstedt-group/supercontest/issues/128.
      • Total size of all 32 logos is 452K in vcs, which is fine.
      • A deployment failed because the droplet ran out of disk space (it’s 25GB).
        • df -h
        • docker system prune -af (16GB)
        • sudo apt clean (4.4MB)
        • sudo apt upgrade (8MB)
        • sudo reboot
      • Decided not to do full record (covers-pushes-noncovers). I only pass total points everywhere, I don’t plumb which points came from a full cover vs half point from push. It would require some surgery to expose that through the whole chain, and it doesn’t add much.
      • Backend did all the same pick verifications as frontend except “you picked the opponent” – added it.
    • Ethanol cannot be concentrated by ordinary distillation to greater than 97.2% by volume (95.6% by weight), because at that concentration, the vapor has the same ratio of water to alcohol as the liquid, a phenomenon known as azeotropy.”
    • Tesla jumped quite a bit after the profit report.
    • FB won’t move forward with Libra until approved by regulators (sure).
    • Google possibly spied on its own employees? https://www.bloomberg.com/news/articles/2019-10-23/google-accused-of-creating-spy-tool-to-squelch-worker-dissent.
    • House of Spirits event.
    • Pulled out of every private investment. Nothing in robinhood, tradeking, or ally. All solium. I’ll rediversify again after tradebot reports conclusively successful movements, hopefully after some recession with lower positions.
    • There are ~630,000 publicly traded companies in the world. From a data standpoint, it’s not ridiculous to do a simple linear regression on all of them through history, with decent resolution.
    • Most mobile phones are in the ballpark of 375×800, for design reference (banners etc).
    • Made the banner for franky. Deployed.
      • Pxlr free online to remove the necessary sections, then intentionally filled in the background white so that the space between the repeated image (bg-secondary) was contrasted.
      • Used background-repeat: space, which is much better because it will adjust the x padding between the repetitions responsively for viewport size.
      • Background-position: center, just for the case where there’s only one instance (mobile).
      • And then background-size: contain, with a fixed height as usual.
    • Reinstalled gnome-system-monitor for process and resource utilization, uninstalled htop. I already have top for terminal inspection, I want history with my graphical monitor (even if it’s only 60 seconds).
    • Clippers beat Lakers on opening night.
    • Nationals beat Astros for game 1 of the world series.
    • Remember:
      • sudo apt remove <> will uninstall the package, and the packages that depend on it, but leave the config files.
      • sudo apt purge <> will uninstall the package, and the packages that depend on it, and remove the config files.
      • sudo apt autoremove will uninstall all packages that were installed as dependencies but the parents aren’t around anymore. It’s not the best practice to run this.
      • sudo apt list –installed
    • You shouldn’t delete the default ubuntu python installation, there are many system packages that depend on it:
      • apparmor* apport* apport-gtk* aptdaemon* apturl* apturl-common* dh-python* foomatic-db-compressed-ppds* gdm3* gedit* gedit-common* gir1.2-ibus-1.0* gnome-control-center* gnome-menus* gnome-online-accounts* gnome-session* gnome-shell* gnome-software* gnome-software-plugin-snap* gnome-terminal* gnome-tweaks* google-chrome-stable* hplip* hplip-data* ibus* ipython3* language-selector-common* language-selector-gnome* lsb-release* nautilus-extension-gnome-terminal* nautilus-share* openprinting-ppds* orca* plymouth-theme-ubuntu-text* printer-driver-foo2zjs* printer-driver-foo2zjs-common* printer-driver-m2300w* printer-driver-postscript-hp* printer-driver-ptouch* printer-driver-pxljr* system-config-printer-common* system-config-printer-udev* tox* ubuntu-drivers-common* ubuntu-release-upgrader-core* ubuntu-release-upgrader-gtk* ubuntu-session* ubuntu-software* ubuntu-system-service* unattended-upgrades* update-manager* update-manager-core* update-notifier* update-notifier-common* usb-creator-common* virtualbox* virtualbox-qt* virtualenv* xdot* xorg* xserver-xorg*
      • This is absolutely ridiculous. Python should not be this coupled to the base dist and desktop env.
    • Git LFS.
      • My pip install was being weird after using lfs. It can’t install any pip packages, which means it can’t create venvs, run tests, etc. Even after uninstalling git-lfs, it was still pointing at their repo. The default index was still being reported as pypi.
      • Deleted this shitty piece of code. It was messing with a bunch of system-level config on my machine. Wiped my python installation as well.
      • Removed the .git/hooks/ relevant files: post-checkout, post-commit, pre-push, post-merge.
      • https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh.
      • Honestly fuck this project. It messed with so much in my system level. It left cruft everywhere with no mechanism for cleanup.
      • Tried purge, reinstalling, more for all versions of python, pythonX-pip, virtualenv, pip, etc.
      • `curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3` was the start.
      • /usr/share/python-wheels is not necessary. It can be empty.
      • sudo pip3 uninstall then install virtualenv tox back into the system environment was the fix.
    • Joe Rogan got Edward Snowden on the podcast!
      • lol: 
      • Snowden found no evidence of aliens, chemtrails, other gov’t coverups, and conspiracy theories, and he had deep access to nearly everything.
      • It was basically Snowden talking for 3 hours. Joe was probably the quietest I’ve ever seen.
      • It’s scary to live in a world where someone is prosecuted for doing the right thing.
      • Departments don’t collaborate, they try to work solo to take full credit for accomplishments, just like in a regular job.
      • Ultimately, it’s just people trying to save their jobs and/or get promotions, just like any other industry. It’s just in government, politics, and intelligence.
    • WeWork’s CEO Adam Neumann is walking away with 1.7B after the buyout, after driving the company and the stock price into the ground. The employees are getting screwed.
    • Toggle buttons are better than checkboxes, if there are many items: https://medium.com/@uxmovement/why-toggle-tokens-are-a-better-alternative-to-checkboxes-2b6403e140ff.
    • Roasted 5 pounds of peanuts and processed into peanut butter.
    • Listened to Chris Cornell most of today (lead singer audioslave, soundgarden). I don’t like his solo work as much as Tremonti.
    • Reinstalling ansible added python2.7 back to my system. Lol.
    • Supercontest.
      • https://gitlab.com/bmahlstedt-group/supercontest/issues/127.
      • Took the plots that had complementary data (cover/push/noncover by team, and favorite/push/underdog by line) and stacked them all onto the same bar chart (for each complement to 100).
      • Plotly is smart enough to sort each individual trace, and then reassign each trace based on similar label. However, if you want to sort across multiple numbers (like primary sort covers then secondary sort on covers+pushes), you should separate the full dataset separately and then build the traces explicitly, rather than having plotly aggregate for you.
      • Made them horizontal and colored them with the same colors as table-success/warning/danger, for consistency.
      • Committed nellw lines for week 8.
      • All text looked good, appropriate relative to picks open/closed, padding, margin, during all phases of line commit.
      • Submitted my picks.
    • Bootstrap hex colors for table (these are different than the ones for text, buttons, etc).
      • table-success: c3e6cb
      • table-warning: ffeeba
      • table-danger: f5c6cb
    • Set up the splunk logging composition, for the most part, and then removed it.
      • Docker has logger drivers which tell it how to access the logs from the containers. The default is json-file.
      • Splunk uses HTTP Event Collection as the logging driver, known as HEC.
      • You can run 500Mb/day through Splunk for free.
      • Created an account with splunk.com.
      • Remember that it takes a minute or two for the splunk server to start. Check for status: healthy in docker-compose ps.
      • Added a token that the app container uses to push the http events to a specific url.
      • Installed the docker monitoring app inside the splunk interface.
      • You need collectord to make it work, you can’t just forward it directly from hec. https://www.outcoldsolutions.com/.
      • This is way more complicated than it needs to be. I literally just want to tail a logfile from the browser. The docker interface already forwards stdout/stderr from the container.
      • I also don’t want to bloat the under-resourced DO droplet with a splunkenterprise container. It’s built to do way more than I’d use it for.
    • Darnold had a passer rating of 3.6 last night. Insanely low. Patriots D are absolutely killing it, they’re in the top 10 for all offensive players in fantasy. I lost the yahoo league and won the espn league. Got 2/5 in supercontest.
    • In purging some docker images/containers on my laptop, it tried to upgrade the database container to 12 on a new build/pull. That version is incompatible with a db created with 11 (my version), so I pinned it in docker-compose.
    • Big Mouth roles I didn’t know: John Mulaney is Andrew, Chelsea Peretti is Nick’s phone, Kristen Bell is Jay’s pillow, and Jordan Peele is Duke Ellington!
    • Did blender research.
      • Notes.
        • I don’t need pulse. I only need it for smoothies (and maybe nut butters), I don’t use the blender for salsa, grinding herbs, chopping nuts, etc. Plus I still have the ninja if need be.
        • I don’t need preprogrammed settings. Soups, desserts, smoothies, blah.
        • I don’t need digital or touch control. Buttons/switches are fine.
        • I don’t need self-detect and self-clean. Manual control is fine.
        • I don’t need timers and programmability. It’s not an oven.
        • I don’t need an app to pair with it wirelessly (lol).
      • Vitamix.
        • Given all the above, the 5200 is the right fit.
        • There are a couple more features to consider.
          • The classic series blenders have 2hp motors, while the smart series blenders have 2.2hp motors.
          • The smart series blenders are a bit smaller (low profile 64oz container).
          • The smart series blenders are a bit quieter.
        • Those 3 features aren’t worth it to me.
        • Its usual price is $450, there was one available for $400. The base is red, but worth the $50 discount. Ordered.
    • Camelcamelcamel is a great price tracker for buying expensive items on amazon. You can see the most/least expensive it has been, and even set up alerts where it will email you.
    • Bought a huge batch of shelled, skinned, blanched, unsalted peanuts. They’re much cheaper in bulk than other nuts – down as low as $2/lb. I bought 10lbs at $3/lb. At costco, the packages of pecans/cashews/etc are $8/lb, and that’s a great price already.
    • Downloaded paypal for my phone.
    • Greg bought week 9 for the sbsc banner. Franky has week 8. Jcriss paid but still needs to send the graphic, so he’ll probably get week 10.
    • Netflix issued 2b of corporate bonds to fund new content, adding debt.
    • WeWork is in a bad place.
    • FF waivers. 3 for yahoo, 2 for espn.
    • Used the new razor. Cleanup was easy, since it catches all the hair. Cleaning the unit is easy, just run under the tap (full or taken apart). It’s a close shave. I need to get used to the motion/pressure so it gets everything.
    • Updated the banner_archive (.gitignored):
      • 2019-01-niners.svg
      • 2019-02-warriors.svg
      • 2019-03-williamstown_basketball.svg
      • 2019-04-moon_landing.txt
      • 2019-05-meats.jpg
      • 2019-06-ducati.jpg
      • 2019-07-britney_spears.txt
    • Made the static/README.md always show build status successful for the stack view, since the gitlab project is private. The regular readme still points to the actual build badge, updating in realtime.
    • Started the new season (9) of AHS. It’s called 1984, and it’s an 80s camp horror theme (which I’m a big fan of).
    • Would be nice if spotify had a simple feature like “save for later” where you could add artists (or albums, or songs) to a list to go through whenever you wanted. I often find a few new artists, and then find a couple more good suggestions in “related artists”, but there’s no way to keep those artists queued in the app to go through later.
    • My laptop battery:
      • Discharge, normal use, full brightness: ~12.5%/hr. Total time ~8hrs. Linear.
      • Discharge, idle, closed: ~0.25%/hr. ~2% over 8hrs. Linear.
      • Charge, normal use, full brightness: ~50%/hr during the linear portion to ~85%SOC. Total time ~3hrs. Logarithmic toward the end.
    • Google Keep can do bulleted lists by default, just type an asterisk then space on a new line.
      • Moved a few longer term items from blogger to google keep.
    • The new batch of protein bars is even better than the previous, which is saying a lot.
    • Made all my gitlab projects private, and transferred them all from my user namespace to my group namespace. Updated all remotes, on my laptop and the droplet.
    • Updated the readme in the fivesquared project to shrink the images to a reasonable size. They now display side-by-side.
    • Al Noor lunch with Corey/Harner.
    • Tradebot.
      • Created and configured the repository in gitlab.
      • Enabled autodevops at first to play with it. It created a pipeline with 3 jobs: build, code_quality, and test. If would have added a deployment job as well, but you need a kubernetes cluster. The first job, build, failed and stopped. The default command was `herokuish buildpack build`. I don’t need autodevops for this project, so I disabled it.
      • Added a very basic .gitlab-ci.yml pipeline instead. Just runs pylint via tox.
      • Created both tickets, one for analysis and the other for buy/sell.
    • Useful advice: when performing any sort of corrective action (filing a complaint, etc) against a party in a non-face-to-face manner, pretend you’re a third-party witness. You won’t be discounted as disgruntled, and they’ll perceive more weight around the incident if it’s apparently large enough to be reported by a witness.
    • LFS for prod db backups and the banner archive.
      • curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
      • sudo apt-get install git-lfs=2.9.0
      • cd ~/code/supercontest
      • git lfs install
      • git lfs track “backups/
      • git lfs track “supercontest/static/img/banner_archive/
      • git add .gitattributes
      • Then commit and push as usual.
      • You can run `git lfs status` to see which files are going to git and which are going to lfs.
    • Added the sbsc production db backups to git lfs. Added the banner_archive as well.
    • Listened to some good old Tremonti solo work today. Lead vocals/guitar for creed/alterbridge.
    • GitLab has template files for .gitignore, .gitlab-ci.yml, LICENSE, and Dockerfile that you can add to any project. Example: https://gitlab.com/bmahlstedt-group/tradebot/new/master. They will come prepopulated with whatever environment syntax you want (Python, for most my cases).
    • Ducati is owned by Lamborghini, which is owned by Audi, which is owned by Volkswagen.
    • Went through some different lists of folks’ “stocks you’ll never sell”. Curated them into ones I actually cared about. Removed ones that didn’t look amazing (unless your basis was 10 years ago). Removed the ones that I don’t believe in (general electric GE, etc). Removed the ones that I don’t want to support (mcdonalds MCD, etc). The remainder is obvious. The big players with consistently linear positive trends. After some recession to reduce the position, these would be good ones to dump some excess into (or weight more highly in the tradebot, as a qualitative boost since it’s a quantitative tool).
      • AMZN
      • GOOG
      • MSFT
      • DIS (disney)
      • IDXX (idexx laboratories: products and services for animal food and stuff)
      • ILMN (illumina, inc: genetics)
      • BAM (brookfield asset management: equity)
      • RACE (ferrari)
      • BA (boeing)
      • LMT (lockheed martin)
      • INTC (intel)
      • CSCO (cisco)
    • Meal prep.
      • Made new batch of oat milk. With dates this time. Extra filtered.
      • Made new batch of cashew butter. Because it’s much more doughy than the other nut butters, add a bit of olive or coconut oil to cream it out.
      • Made new batch of protein bars. Getting the ratios closer to perfect every time.
        • 2lbs nuts, roasted 400F 10m.
        • 3 bananas.
        • 4-8oz pitted dates (about 40, 1 pack).
        • 10 scoops protein powder.
        • 1 cup oats.
        • Salt sprinkle.
    • Maia/Askren this saturday and then Masvidal/Diaz the next.
    • Supercontest.
      • Added the sbsc gmail account to my phone so I can monitor there, and get push notifications.
      • Banner.
        • Ross wants week 12 (needs to pay).
        • Jcriss bought a week but hasn’t specified which yet.
        • Greg, Jeremy, and Franky have all expressed interest in a later week.
        • There are 10 weeks left.
      • Celery (backed by redis + rabbitmq) would probably be 1000x better than flask-apscheduler for my background cron jobs.
      • I could expose a REST API for the direct models. There are tons of flask extensions to do so. Picks, changing leagues, roles, some of the admin stuff; it would all get a little easier. Plus then you can autobuild the documentation with swagger. It’s a little different than the graphql api, which is just for user querying. I’m not going to do this now, because the added value isn’t crucial for this app.
      • https://gitlab.com/bmahlstedt-group/supercontest/issues/126.
        • Minified the html (in prod) using flask-htmlmin. The text responses are condensed. It strips comments, extra whitespace, etc. It’s still quite readable without prettyprint (unlike minified js). You access this on the elements tab of devtools (like you’d expect), not sources like for js files.
        • Made team names on your-picks lowercase with capital, rather than fully upper.
        • Max-width on name columns for all-picks and lb, so any user making their name gigantic doesn’t wreck the responsive few. Overflow is hidden. Added the full name to the tooltip so that you can see it hovered if it’s cut off normally.
      • Made the int/float renderer pre-round to 1 decimal place properly, handling the X.0 case.
    • It’s annoying that companies are taking political stances on topics completely unrelated to their industry, simply for compounding reputation + appeal to new fanbases. Categorization, classification, identity politics, call it whatever you want – it’s moving focus away from the actual values and individuals, which can’t help the actual values and individuals. https://marker.medium.com/why-companies-need-to-pick-a-political-side-9fd5541da81d.
    • This badge is pretty cool: https://github.com/sourcerer-io/hall-of-fame. Shows your top contributors.
    • Checked out a meat market that I hadn’t been to before (manhattan and manhattan basically).
      • They had an ok selection, but not a wide variety of raw cuts. More like a nicer grocery store with preseasoned dinners. They didn’t stock elk, but you can call on thursdays and add it to their weekly order.
      • Costco business center still the best around here by far.
    • The entity code for a linebreak is &#013;
    • Big Mouth is a super underrated show. There are so many clever bits and current social commentaries. There’s even the artistic display with the musical portions.
    • It’s obviously not feasable to gasoline home delivery for a car owner, since a full tank is ~100lbs, and you’d need it every couple weeks. But for motorcycles? I need 3 gallons to fill it up completely. That’s like a few gallons of milk every month, which is well within the means for a service like amazon fresh.
      • There’s a home delivery service called filld: https://filld.com/. It’s $5/gal for premium, and a $5 delivery fee.
      • You can order an above-ground fuel tank directly from Atlas: https://www.atlasoil.com/products/93e10lv. Minimum 150lbs, at $4.04/lb. 91-93 octane, but has 10% ethanol.
        • I would totally do this for home use, if I were in a static location. It would last me a couple years, and be super convenient. It’s a little risky though; basically a bomb on your property.
    • The elastic stack is elastic search, logstack, and kibana (ELK). Beats is a fourth application that’s sometimes included. It’s similar to splunk and nagios, a full operational monitoring system. You can aggregate logs, monitor the system, all profiles/processes/nodes/etc, dashboards, metrics, other visualizations.
    • This is amazing:
      •  
    • The dew point of water is a function of dry temperature and relative humidity, but 50-60F is usually pretty close.
    • Switched 24, uber, and digital ocean (verizon was already migrated) over from the prime rewards card to citi, for 1% additional cash back.
    • Placed Fresh order. Arrived same day.
    • Watched El Camino (the Breaking Bad movie) with Harner.
    • World series starts Tuesday, Astros vs Nationals.
    • Niners still undefeated babyyyyyyyyyy. 6-0.
    • Looks like I’ll probably lose both FF games this week, and 2/5 for sbsc.
    • Got the nice shaver delivered.
      • Clean it under the tap after every use. You can take it apart.
      • Clean it in the full machine once a month. The cleaning fluid needs replacement about once a year.
      • Charging takes an hour. The battery lasts about 50m with the shaver on.
      • Hold the power button for 3 seconds to enable/disable the travel lock mode.
    • Supercontest.
      • Added sticky-top to the navbar, which means that it scrolls down on the banner but then when the main navbar gets to the top, it stays! It’s not supported on every browser but chrome is fine.
      • Only two late pickers this week (marcus and cam).
      • Added a user icon from font awesome for the profile dropdown on the navbar.
      • Removed the dropdown-divider elements. I didn’t like the spacing it added because the link should be clickable in the whole area, and overwriting the margin/padding wasn’t worth the simple benefit of the line.
      • Moved all the variable forwarding (python ->js) to a separate template file to keep it together and separate.
      • You can’t just pass the whole g object because it’s not json-serializable.
      • Moved harner to the paid league.
      • Did a deployment in the thick of Sunday football while games were live. No prob. Downtime is <5 minutes.
      • The statistics template was gitignored because it was in a directory named data. Fixed. https://sentry.io/organizations/bmahlstedt-org/issues/1288047383.
      • The help collapse button in the contest view header needed ml-auto. The instructions/legend buttons already had it, but the collapse didn’t.
      • Added the full font awesome stylesheet so that the icons load a little faster.
      • Made it so that late picks will send the confirmation to the admin as well.
      • Made the all-picks page have consistent fixed widths for the team abbreviation columns.
      • Added an abbreviation map for the nfl scorestrip’s statuses, so it prints Final and Not Started and stuff.
      • Verified that all divisions for percentages (usually possible points or num_picks) are protected with DivisionByZero error handling, so that users can register anytime (with 0 picks) and not break the service.
      • Added tooltips on the lb for total picks for the week (all users), total picks for the season (one user), and total picks for the season (all users).
      • Moved all percentage calculation to the frontend. The backend just has the numerator and denominator data. The frontend does the division to calculate percentages as necessary. This was moved to a macro to keep it consistent. It handles the divide-by-zero case.
      • Added a really useful rollup to the left of the all-picks view, showing the status colors of all 5 picks in a convenient glance. This also consolidated the picks_open and !picks_open views, which this template had a few conditionals for.
    • Don’t use the scope attribute for td elements (in html5). It’s only for header, to specify whether it’s a header for a row or a col.
    • You can’t just + arrays in js like in python, you must concat or something like const newArr = […oldArr1, …oldArr2];
      • Greg Hardy (former Carolina Panther, beat his girlfriend up, bad guy) won his UFC fight last night via unanimous decision but then was ruled a NC after because he used an inhaler between rounds 2 and 3. Crazy, first time I’d ever seen this.
      • Chris Weidman has lost 5 of his last 6 fights (all KO/TKO finishes). Joe Lauzon came back and won tho!
      • Enrolled in autopay for the citi card. It doesn’t activate until next month, so I’ll have to make a manual payment for this statement.
      • get_flashed_messages() is a flask capability. You can basically flash a message inside any route, and then it will be displayed on the next request.
      • Jinja.
        • `include` will return already-rendered content from another file. You can’t inject a block into it, like you can with `extends`.
        • Blocks can’t be conditional. Just make the content conditional in the other template.
      • Supercontest.
        • Moved the flashed_messages over from alerts (the flask-user default) to notify.js. Much cleaner, and consistent with the rest of the app. Migrated the js to the toplevel layout as well, rather than the flask_user template, so it flashes on every site in the app. This is much better because you might be exiting a user view and going to a contest view (which is the case during normal login), and you want the message to display right away.
        • Restructured the contest views a tiny bit to extend the contest view header so that it could inject the title block (they were previously only `include`).
        • Got rid of the contest routes passing “label” back. It’s no longer necessary with the generic “View” title in the navbar and the specific route title in the contest_view_header.
        • Pretty substantial change for season/week/league filtering in the TEMPLATE layer instead of the backend routes. Makes it a lot easier to manage. A log was able to be consolidated. Just conditionals in html now, mostly, for what gets shown to the user.
          • Along with this came easy stuff like: don’t show leagues on matchups page, don’t show week on lb, etc.
        • Renamed graph to progression. In title and such only, not in endpoint.
        • Added a macro that returns card header title with h3 and mb-0.
        • Could add some extends for the card/card-body/row/col, but they’re all pretty different so this inheritance wouldn’t save a ton (diff sizes for col breakpoints mostly). It’s also less direct/explicit.
        • Made it so the “View” nav dropdown is available at all times, even when you’re looking at the basic secondary ones (rules, stats, etc). This just meant building url_for with NO arguments, if coming from those routes. All the url_defaults were already in place on the app side.
        • Changed my int-casting into the proper divisibleby(1) (jinja built-in test), and moved it to a macro. Rounds to one decimal place if float. Returns a string in either case.
      • Galantis concert at the Shrine.