• Played with Pycharm a little bit. Told it which venv/python to use for this project.
    • Supercontest
      • Added instantpage (https://instant.page/) to the main layout. Should speed page load with prefetch. Seems safe.
    • Finished with both seasons of Ozark now.
    • Got lunch with jcriss. Checked out the Redondo Beach Bay Club for the first time.
    • Started reading the book The Four Agreements. I’ve heard good things. Overall, not very impressed. Seemed straightforward.
      • Be impeccable with your word. No gossip. No lies. Pretend you are speaking on live tv at all times.
      • Don’t take anything personally. Other people assume something about you? Ignore it, be yourself, and prove them wrong! This applies to compliments as well as insults.
      • Don’t make assumptions.
      • Always do your best. Take action to enjoy the action, not to expect the reward. Sometimes working twice as many hours won’t mean you get there any faster.
      • Be a child! Be a dog! Explore the world with curiosity and delight.
    • Submitted an application to volunteer with Best Buddies! Honestly teared up a little bit while reading about it.
    • Bought and brined the lamb for tomorrow’s cook. First time smoking lamb! The costco business center has a pretty incredible selection of cuts.
    • Macros: I’d like to aim for something like 100/200/80 for grams of Carb/Protein/Fat, which is a calorie distribution of 20/40/40%. This totals about 2000kCal/day.
    • Went and saw a live taping of America’s Funniest Home Videos (AFV)! Overall, was a lot of fun. Carlton is the host now. The audience is pretty involved. Comparing this production to my SpaceX webcast production was very interesting. They’re very similar, and I’m thankful to have the experience. Live is very different. Carlton could retake anything that had a mistake.
    • DMV
      • Registered the Ninja as PNO (planned non-operation). It’s no longer insured, as well. $22.
      • Provided proof to the DMV that the BMW is insured. If they detect a vehicle is registered, but not insured, they will suspend the registration. I went online to provide this proof after I received the DMV letter, but AAA had already provided proof of insurance to the DMV, so the website informed me and all was good.
    • HN/PW/M/FW:
    • I could add this blog to my website and host it personally!
    • AGM = absorbent glass mat (type of motorcycle battery).
    • Was thinking about replacing the BMW battery. The current one is ~3yrs old. It hasn’t really been driven much. Now that the bike is garaged, we’re coming out of winter, and it’s in LA instead of the Bay (higher temp), the battery should last longer. I don’t expect to require trickle charging every week. I’ll drive it about once a week to the gym, and that should keep it tended for at least another year of use. When you do buy another battery, expect about $150.
    • All chores now that I’m back. Dishes, cleaned snake tank, opened the center hole for the litter tray up a bit, unpacked.
    • Watched a few videos from Athlean X, specifically the tennis elbows ones. He suggests a great stabilizing hang from a bar to strengthen the surround shoulder/forearm muscles to take load off the elbow.
    • HN
    • Drove from the Bay to LA today on the 1200. Crazy trip. Left at 1:30, a little hungover from Nick’s wedding yesterday. Got 5 hours of sleep. Stopped twice before the Grapevine, both for gas/food. Hit the grapevine around 7pm, after the sun had gone down. I was already cold and exhausted. It’s been weirdly freezing here in California lately, even just being outside. The temperatures on Tejon Pass were in the 30s. There was snow everywhere. I was on a motorcycle going 80mph, adding a huge wind chill factor. I was wearing jeans and a sweatshirt lol. It was the coldest I’ve ever been in my entire life. After the summit, I had to pull into a rig’s brakecheck area to sit in Allie’s car and reheat my core before continuing. Total trip time was about 7.5hrs, including the 3 stops.
    • Great summary of machine learning: https://vas3k.com/blog/machine_learning/.
    • Started tracking the foods I eat with MyFitnessPal. I’ve got a solid diet, but I’m curious what my macro counts are, so I want to get more analytical about it.
    • PSD2 = Payment Services Directive. SCA = Strong Customer Authentication. They’re standards for transferring money with apps and services.
    • Twilio allows you to make calls, send texts, and more…programmatically! Basically communication APIs.
    • Authy is an alternative to Google Authenticator. It’s a 2FA app.
    • Good summary of Google’s JS style preferences: https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b. I’m in agreement with basically all. The semicolon still kinda annoys me.
    • Remember, var is function scoped and let is block scoped (smaller). So if you have a for loop in a function, the let variable is only available there. If you define that same variable as var in the for loop, the whole function will have it. If you use var or let outside of a function, they’re both globally scoped. You should never use var, only use let or const.
    • Medium article on graphql at Netflix. They’re very happy. What would be 8 direct rest API calls between client and server is now one client call and 7 server to server interactions. This is much faster, as the latency on server resources is much less. Abstraction in queries is great also!
    • Lucene is a search engine by Apache. It’s what the Atlassian products used (Lucene health check failed!). Elasticsearch is built on top of it, and is a very common tool to search, analyze, and visualize data.
    • Schema-on-write is when the data is validated before it is written, making sure it adheres to the schema. On the other hand, schema-on-read is when any data can be submitted and then the user can fetch it and apply their own lens (schema) to it (or part of it). Write is better for conformity, and more efficient. Read is better for flexibility.
    • Normalization is when a database contains many tables, each with a small atomic amount of information, then relations stitch the tables together. It avoids redundancy. A query then requires many joins, which can be inefficient. Denormalization, then, is when take a normalized database (NOT one that has never been normalized before, like a huge table with everything from the start), and intentionally add redundant information back in to make common queries more efficient. This makes read operations faster, while slightly making write operations slower (because they have to write in two redundant locations now).