Thursday, July 25, 2019

  • array.map(function) - apply the func to every element and return a new array with the values returned.
  • array.filter(function) - this function should return a boolean based on a condition, and a whole new array is returned with only the original values that met the condition.
  • Sim port attack: An attacker collects enough information about you (dob, etc) to convince your cell provider that they're you. They then request that your sim card (your phone number) be transferred to a device they own. Since almost everyone uses their phone for 2FA, they then initiate a password reset for your google account (which is basically everyone's main email). Once they have your google account, they can do a lot. Saved passwords, google auth with other sites, etc. They can issue bank transfers, empty your crypto accounts, etc.
  • Jewish law is extremely strict. There are many activities which are not allowed on shabbat (friday evening to saturday night), which orthodox jew observe: https://en.wikipedia.org/wiki/Activities_prohibited_on_Shabbat.
    • An example: you can't carry things to other places. To get around this, orthodox jewish communities will construct a wire or fence around the district (an eruv). This means if you take an umbrella to a friend's house, you're not carrying it to another place, it's all one private domain and you were just walking within it.
  • Kosher(ing) salt is qualified by larger crystals because it is (was) used to extract the impurities (blood) from meat.
    • Kosher does not mean it was blessed by a rabbi.
    • For my smoking purposes, this larger crystal size just helps retain more water when rubbed on the meat.
  • Trichinosis - disease caused by eating raw pork which contains trichinella (roundworms). These parasites die at 158F.
  • Netflix is getting a lot of bad publicity lately. Disney+ is coming out, and Netflix is losing a lot of content. I still disagree with the media licensing regime in the first place. It's going to become so fragmented.
  • Good comparison of being a swe at amazon vs uber: https://medium.com/swlh/amazon-to-uber-from-the-lens-of-a-software-engineer-e5bd1c38caba. Neither jump out solely from this limited information.
  • Rust is continuing to gain popularity. Syntactically like c++, but better at memory management.
  • Tartiflette is a graphql server in python 3: https://tartiflette.io/.
  • Remember, most uses of babel refer to the js compiler. But the flask library babel is for i18n l10n.
  • Jon jones just got charged with battery from an incident with a stripper back in April. He allegedly slapped her.
  • Every group of friends/coworkers/families has a "prestige economy" that drives actions. This is a popular concept in social science. For some, like common teenage male friend groups, it's athletics or comedy. Decisions are made to increase fitness or humor. That's what establishes the hierarchy in the group; that's what earns brownie points among your peers. One that's very popular among newer generations: virtue signaling. Showing some exhibition of justice to your friends, in an outward way.
  • AT&T merged with Time Warner a while back. DirecTV prices have now increased instead of decreasing as promised. Many subscriptions were lost.
  • Gatsby (https://www.gatsbyjs.org/) is kinda like create-react-app but it prerenders everything static beforehand, which means it's faster (but can't do dynamic stuff).
  • Progressive web apps (PWAs) are mobile apps that are intentionally built to run in the browser. They're html/css/js. They don't need an app/play store to install, and they're inherently cross-platform.
  • Web
    • sudo npm i -g npm@latest && sudo npm i -g npx@latest
    • "serve" is a great npm package for running a static page. Just `serve -s <dir>` on a folder like the build output of create-react-app's `npm run build`. You can also just run `npx serve` in that directory.
    • react-scripts is a great package that gives the majority of standard commands (like those from pip or sx-setuptools) - start, build, test, etc.
    • Played with create-react-app for quite a bit.
    • Lol to apply a stylesheet in a react app, just import the css file into the js of the app. It's not like html where you specify this sheet directly, but it does compile down to that.
  • Goodnight y'all:
  •  Post image

Wednesday, July 24, 2019

  • Smoked 8 beef plate ribs yesterday. Bought some maple syrup and honey to experiment with the wrap drizzle. Used to just do brown sugar, wanna compare the bark glaze with the syrups.
    • Honey was the winner.
    • Gonna do the other 2 racks thursday for softball.
  • Started to look for hawaii housing yesterday but jcriss had already booked. The hotel is $300/night. Searched for airbnbs nearby and there's one right next door for $200/night. Booked it instead.
  • Placed fresh order.
  • Listened to joe rogan + sam harris in the background while working: https://www.youtube.com/watch?v=ZA106wrMUe4.
  • Filed a claim for the equifax data breach. My data was part of the leak. $125 for compensation.
  • Settled funds for Remy's 30th in big bear.
  • Cool site to find data breaches: https://haveibeenpwned.com/. Mine are 8tracks, dropbox, linkedin, eatstreet, exactis, ticketfly. I'm not worried about any. I don't have password reuse accross any of those, nor do they contain particularly current or valuable data.

Monday, July 22, 2019

  • Chores. Refilled jars. Laundry. Picked up chicken breast and beef ribs for smoking. Finally threw out the earring holder and reorganized the bedside table. Light grocery shopping.
  • Deactivated my fb account. Never used it, and it was starting to fill with spam. Don't need any extra exposure if I'm getting no value in return.
  • Made homemade hummus. Used raw chickpeas and homemade roasted tahini. Delicious.
  • Started the next kombucha batch as well.

Sunday, July 21, 2019

  • Homemade oat's milk and almond butter, both were bomb.
  • Amazon sold some $5k+ camera gear for $100 on prime day due to a pricing error. https://petapixel.com/2019/07/17/amazon-accidentally-sold-13000-camera-gear-for-100-on-prime-day.
  • 5 users - that's usually all it takes to get a good distribution of the space for design.
  • Neuralink launch: https://www.youtube.com/watch?v=r-vbh3t7WVI.
    • FDA approval is the tough part.
    • Release end of 2020 (lol).
    • Implant that simulates the action potential, providing a neural interface.
  • Some say that the government played a pivotal role in the genesis of silicon valley. Meh. Tech innovation is gonna naturally create an epicenter somewhere. Maybe some of the american ideals (free speech, capitalist platforms, etc) helped accelerate it.
  • There were a few successful logins (un/pw) to my steam account which I haven't used in 10+ years. Emails were sent to trackseventeen and gmail. I changed the pw.
  • Spinnaker is the CD platform at Netflix. Deployment, environments, staging, pipelines, etc. Allows red/black deploys, where the new (red) phases in and takes load until the old (black) lessens to offline.
  • Remember, Kayenta is the canary app at Netflix.
  • Even some of the art that netflix presents to you is personalized. Often, shows and movies have multiple images that can be thumbnailed in presentation. Based on your other tastes, machine learning on your account will personalize the one that resonates.
  • Flutter is a framework for developing mobile apps. It's built by Google. It focuses mostly on UI. It's crossplatform. It also supports native mobile/web/desktop.
  • React native and flutter are probably the two main competitors for crossplatform mobile development right now. Hot reloading and other common features.
  • Went to the natural history museum. Was nice. Saw lots of dinosaurs, mammals, and birds mostly.
  • Blockchains lol. Ledges that show every transaction, ever. In order to place the next block (make a transaction), you need your private/public key. This is associated with you wallet, of which someone can have many. Therefore, your anonymity is preserved (until you try to transfer back to USD or something else with an identifiable destination). A cryptographic hash is solved to record the transaction. It's broadcasted to all nodes to compare and prevent fraudulent transactions. In order to successfully fake it out, you'd have to be faster than the rest of the entire network (which would make your fraudulent tail of the chain more trustworthy in the mathematical race). Nodes can be people(s) who dedicate their computer to mining. This incentivizes by giving a small amount of coin for uses the computing resources to solve the math problems for new transactions.

Wednesday, July 17, 2019

  • Remember, single page applications send data back and forth asynchronously with the server (the URL doesn't change as you interact with them, simply). Example: gmail. Multiple page apps will render a new template for each request.
  • "Grease the Groove" training (GtG) is very low weight, not to fatigue, many times a day, multiple set exercising. It is designed for neurological training of the movements, and has become quite popular.
  • Researched tax amendments.
  • Material IO is a cool project: https://material.io/develop/. Easy drop-in for design.
  • React-router is the library to manage routes in a react app: https://reacttraining.com/react-router/web/guides/quick-start.
  • create-react-app is a fantastic starting point for most SPAs. Nwb is an alternative that's a bit more flexible. It can integrate with a serverside templating framework, like flask/jinja.
  • Remember, angular is two-way binding whereas react is one-way.
  • Coming from an extensive python background, writing functional application code mostly, I just want to note that web development is an extremely different software beast. Over the past few months, I've forced myself into beginner's mind, and I must admit that it has been uncomfortable, and continues to be. But as always, these growing pains signify that you're learning.
  • React's jsx blend of html/js I still find weird. Take advantage of the existing languages. Why blend them? You create conflicts like class/className and onClick and such.
  • Vue comes with its own state management (vuex) and router, unlike react/angular. For those, it's offered as a third-party package.
  • CRUD = cread read update delete. Administration of storage.
  • Bruh this template application is fantastic: https://github.com/briancappello/flask-react-spa. It's basically the exact same stack as my supercontest, but slightly better.
  • "Gists" in github are snippets. It's a scratchpad to share code or notes.
  • Bower is a package manager (under npm). I guess this is similar to something like sx-setuptools being under pip.
  • Github is great. It has an automated system that detects security vulnerabilities (like the lodash one), but then is also capable of autogenerated a PR with the fix: https://github.com/brianmahlstedt/supercontest/pull/52. Approved and merged.
  • Placed regular and fresh order to make homemade oat milk, tahini, hummus, and almond butter. I use these all regularly, but I've never tried the homemade versions which I hear are cheaper and much better.
  • Pumpkin no longer has the license for HATTS.

Tuesday, July 16, 2019

  • FAANG = Facebook Apple Amazon Netflix Google.
  • Some good design principles always: precompute, caching, in-mem datastore, how will it scale?, index the db.
  • console.dir is similar to python dir(), you can pass it an object and it will tell you all the properties of that obj. A common use for this is console.dir(document), which gives you the whole DOM.
  • Finished the react tutorial: https://github.com/tyroprogrammer/learn-react-app. Took notes on gdoc.
  • Ducati Elettrico, "not far from starting production"
  •  Image result for ducati elettrico
  • The average stomach can stretch about 15%. Professional eaters can go up to 200%. It can tear.

Monday, July 15, 2019

  • Prime day. Bought some things I'd been needing, jeans and socks.
  • Github sent me an email about a potentially risky dependency, which is an awesome feature they have. lodash < 4.17.13 has holes.
  • I do this already! https://medium.com/better-humans/replace-your-to-do-list-with-interstitial-journaling-to-increase-productivity-4e43109d15ef.
  • Lumen is the internal tool netflix built for dashboarding.
  • Insomnia (https://insomnia.rest/) is a tool that allows you to test APIs. Would be better as a webapp. Allows you to create requests and observe the response in an easy-to-consume-for-humans manner.
  • Purchase offer.
    • Morgan Stanley acquired Solium for 900m. Shareworks is their product now.
    • The oversubscription algorithm is not by request now, it's by holdings. This is in my favor. It also means that your sale election is basically your max, not some hypothetically inflated number that you hope gets truncated properly.
    • It's annoying that transmittal forms are required for former employees and those with paper certificates. Waste of infra, and incovenient.
  • While I am currently using blogger for this effort, I could easily add a wordpress docker image to my droplet. This could run mysql/php to serve a dashboard allowing me to write blog posts by logging into my bmahlstedt.com domain.

Thursday, July 11, 2019

  • Medium, one of the most popular publishing platforms on the Earth, sent me an ad today: "Humungus is a new publication about pop culture and masculinity. It's for men, but not toxically masculine." Are you kidding? Must every sentence about men be followed by a second sentence defending it?
  • Watched midsommar yesterday. Amazing. Also finished season 3 of stranger things.
  • Former tesla important brought secrets to china: https://www.theverge.com/2019/7/10/20689468/tesla-autopilot-trade-secret-theft-guangzhi-cao-xpeng-xiaopeng-motors-lawsuit-filing.
  • Main Python ML suite:
    • Scikit-learn, the actual learning. Has SVM, regression (of all kinds), classification, gradients, naive bayes, neural networks, clustering, signal analysis, PCA. No deep learning or reenforcement learning.
    • Numpy, for data structures. Arrays, matrices, etc. Low level.
    • Pandas, for operations on data. Wraps numpy. Handling of missing data, timeseries, merging data, etc. High level.
    • Matplotlib, for visualizing the data.
  • Sidenote: Scipy is the ecosystem around these, the umbrella. Numpy, matplotlib, and pandas are part of scipy.
  • Still annoying that tmux isn't starting with my proper bash shell (coloring, aliases like ll, etc).
  • Gitpod is an awesome feature of github: https://www.gitpod.io/. It's an online interpreter, giving you an environment like bash/python/whatever for testing.
  • MD/PW. Nothing to write down, but still lots of good reminders and triggers. I skim about 10 articles a day, and find it valuable.
  • Sam Harris has the good point that open discourse is fundamental to everything. Our ability to reason is the bedrock of progress. Anything that goes against open discourse is by definition limiting (in the best case), and violently wrong (in the worst case, like radical islam). Dogmatic points of view are the bases of all religion. They're the bases of dictatorships like Hitler's Nazi Germany and Stalin's communism. Free speech and the pursuit of truth (science, evidence, and rationale) are paramount.
  • Chopra and Houston dropped a funny ball on this one lol: https://www.youtube.com/watch?v=nupB70anRrQ.

Tuesday, July 9, 2019

  • 1-1 friendships usually end up with imbalanced power. Triad friendships (3 people) have been proven to be more successful: https://medium.com/better-humans/how-to-use-triads-to-improve-your-personal-relationships-a83dd2f3578c.
  • Did the fizzbuzz test. Could have done it in 10 seconds in python, but had to remind myself of some js syntax. The ternary operator (condition?outputiftrue:outputiffalse) can make it way shorter (pass to print for fizz and buzz with cond being modulus then or with the number), but I did it with a simple bitmap and switch statement for printing.
  • Hex goes 0-9 then a-f. This counter demonstrates it well: https://www.mathsisfun.com/hexadecimals.html. Regular numbers are 10^0+10^1+10^2 etc, hex are just base 16, and binary is just base 2.
  • Never forget: https://www.youtube.com/playlist?list=PLZvJl8qNSAyZ_0q8Wdzq77hMMPy5ZJ2f1. Man vs Beast. The best show.
  • Dogma = things people say as true without budging. Pontification, incontrovertible beliefs, etc.
  • Sam Harris is a pretty sharp guy. He's like an atheist Jordan Peterson. Watched a lot of debates in the background today.

Monday, July 8, 2019

  • Switched the home UI on my phone back to Nova Launcher (prime). I had paid for it a long time ago and forgot about it.
  • Egalitarian = equal opportunity.
  • There's a significant statistical difference (1std) in preference: men toward things, women toward people. Source: data from personality surveys, meaning that the difference is biological, not that it's cultural or societal (which it might be if the data were taken from career surveys, for example).
  • Interesting study on the gender pay gap at Uber: https://www.forbes.com/sites/avivahwittenbergcox/2018/09/23/gender-paygap-uber-case-study/#227052a3b555.
  • Feeling good to go back to work/grind/gym/focus. I get the most purpose in those routines (vs socialization/drinking/hanging/etc).
  • Bought a muscle stim kit off amazon. $30, with amazing reviews. I'm hoping to relieve some of the stiffness in my neck, but also melt away a bit of the epicondilitis and sciatica.

Sunday, July 7, 2019


  • Past week was a blur of vacations, had bmanning and richard and derek and james in town, + the fourth of July. Went to see Bring It On at Hollywood Forever cemetary last night. Huge UFC fights as well, jones, melendez, rockhold, nunes, holm, askren, more.
  • Soccer all day today, with 3 tournament finals coinciding.
  • AAPL sell executed. Transferred to BOA.
  • Caught up on all Medium/HN/PW.

Wednesday, July 3, 2019

  • The largest private company in the world is Vitol (Europe), then Cargill (USA). Over a hundred billion/yr in revenue and over a hundred thousand employees each.
  • Finished the change to enumerate the week dropdown: https://github.com/brianmahlstedt/supercontest/pull/51. Deployed. So easy, just `make deploy`. It looks pretty horrible on mobile, but that's certainly not my focus right now.
  • Fixed the "register new user" behavior of flask-user. It wasn't the library at all (as expected). It was simply that the mail password was wrong.
    • Reset it (in gmail), then copied it to both the flask-user conf and the postgres conf (flask has to use it to talk to the database).
    • Had to reset the password in the actual database too, since it persists and the db was created with the old pw. It's now up to date with the one that starts with D (for the supercontest user in the supercontest db). This was a simple ALTER TABLE in psql.
  • A warning indicator on the BMW turned on. It's for the front/side headlights. I checked all of them, and all bulbs are fine. Could just need a diagnostics reset? I don't have the machine, so I'm just gonna leave it for now.

Tuesday, July 2, 2019

  • Postcard stamps (35 cents) are different than regular stamps (49 cents). You can put two on a regular letter to send it, you're just overpaying by 21 cents. You simply have to pay the minimum.
  • Bmanning got here last night and is gonna stay till wednesday. Had some great talks about business, his LEO gps startup, law, space, pharmacy app, and much more.
    • Most pre-seed money is won due to team, not due to product. If you can namedrop Spa SpaceX, Stanford, and truly believe in your idea, it's pretty easy to acquire funding.
  • A lot of competition bbq uses weird stuff like sodium phosphate for tenderizing, msg (accent), and other umami flavors. I prefer the classics. Salt, pepper, garlic, onion, chiles, spices.
  • UX design. Ideal animation time should be ~250ms. Ease in and out, just like realworld acceleration.
  • Brined and rubbed the other beef rib racks for tomorrow.
  • USA beat England in the women's world cup semi. Watched at Rock n Brews. Mexico beat Haiti in the gold cup semi. Watched at Aleworks.

Monday, July 1, 2019

  • Looks like: KD/Kyrie to Nets, DLo to warriors, Iggy to Memphis, Klay/Curry/Dray/Boogie stay.
  • Amazon fresh is so awesome. Placed another full order in the morning, arrived about 10hrs later.
  • Watched some Gordon Ramsey for the first time lol he's hilarious: https://www.youtube.com/watch?v=iM_KMYulI_s. The comments are gold too.
  • BFR = blood flow restriction. It's a physical therapy technique that's gaining popularity.
  • Blender busted. The buttons caved in and it would no longer turn on. Bought another $75 ninja.
  • Received a notice for changes to my 2017 tax return.
    • The penalty is ~20%. It also accrues compounding interest, starting with 5% in the year you filed incorrectly, and 6% the year after that.
    • If you do not respond, you get a statutory notice of deficiency and interest/penalties increase.
    • The changes are correct, and I paid them. There are first time abatement waivers for the penalties/interest, but you have a much likely higher chance of getting them if you have never gotten them before. If you receive a waiver, you are not eligible for the same one for the same rationale for 3 years, so I'm going to save it for next year just in case there were any mistakes in 2018's return. I moved a lot more money around that year.
    • So many frustrating aspects of the current system:
      • SpaceX not allowing us 83i, even though the liquidity offered during these irregular buybacks is capped at a max that will never pay the tax burden incurred by AMT on a regular exercise schedule.
      • Not having a foolproof automated process.
      • Not have a well designed tax code in the first place.
      • Knowing so many colleagues who cheat their way out of tens and hundreds of thousands of dollars in real tax, while the IRS spends effort targeting stuff like mine (this 2017 case was $5K) and they're all scot-free. 
      • Not having tax education in middle/high school.
      • Having a complicated enough system that needs education in the first place.
      • Rich people taking advantage of these loopholes, directly creating quagmires like the AMT trap for middleclass people like me.
      • My good, AMT as an entire concept. The tech world and regular equity have obsoleted the original foundation of this.
    • It's a wonderful practice in letting go of things I can't control :( Sure, it's complete chaos, and it affects all citizens' piggy banks intimately, but outside of my vote, I can't change it. Money will never drive my satisfaction and peace of mind.
  • Set a stop limit order for gtc sell on all my aapl shares - slowly clearing out my ally account so I only have securities in robinhood and solium. I need the little boost of liquid cash right now to handle the IRS bs.

Sunday, June 30, 2019

  • Always organize elements of information in categories no larger than 9, but preferably ~5 chunks.
  • These are great! https://uxdesign.cc/the-worst-volume-control-ui-in-the-world-60713dc86950. Terrible volume control designs.
  • Beets have nitrates which are good for athletics. Lower heart rate, longer workouts, etc.
  • Remember, diversity is a proven benefit. It applies to decisionmaking, nutrition, genetics, workplace creativity, health, relationships, and much more. But remember, diversity's variable is not race. It's not gender, it's not sex. It's not sexuality. It's not age, weight, or height. Diversity's variables are deeper than that. Diversity's variables are born from our choices as we navigate these lives, born from things we as individuals have control of. Diversity's variables are not born from characteristics that we are born with. If you want multiple flavors of soda for a party, buy multiple flavors of soda - don't pick sodas bottles with differently colored wrappers.
  • Julio Jones' actual first name is Quintorris lol.
  • Organized a lot of my personal stances. I had them written in various documents over the years but I combined them all into one. Each topic (politics, religion, etc) has a few bullets of rationale.
  • USA beat Curacao to advance to semis in the gold cup.
  • KD and Kyrie Irving are going to the nets lol.
  • Changed the Robert/Arlen wedding RSVP.

Saturday, June 29, 2019

  • I had been confusing beef ribs. Notes are below. Bought and smoked them for the first time today! Each rib is almost $4 and 1lb, wow.
    • "short ribs" without any other specifier refer to beef plate short ribs. They're the biggest beef ribs.
    • Chuck short ribs are like plate short ribs (both are from the underbelly and have more meat, like pork spare ribs), but a little smaller.
    • Beef back ribs are the third type. Like baby back ribs for pork. They're the smaller beef rib, but they're still bigger than pork ribs.
    • Just like pork ribs, beef ribs are right next to other expensive cuts (ribeye), so you might see shiners (bones sticking out) from where the butcher tried to cut as close as possible.
    • You cook beef ribs with the membrane ON, unlike pork ribs. This helps keep them together.
    • You don't wrap beef ribs. Because of this, clean smoke is important. Cook a little hotter 275 and go a little lighter on the wood.
    • Bark is everything for beef ribs. Don't spritz until the last couple hours.
    • Total time about 8 hours.
  • Paid rent.
  • Refilled on charcoal (70lbs).
  • Tried the new breakfast burrito from Mickey's. Was good! Bfast burritos are easy, but one thing I liked about theirs is that they crisped the potatoes, almost like tots, so that it added some crunch to the burrito.
  • I had been keeping the intake on the blower mostly closed, but it's easier on the motor to open the inlet when in use.
  • Matchlight charcoal has lighter fluid soaked in, don't use it.
  • Moist snuff is just more finely cut.
  • Engines.
    • V vs Inline. Doesn't change performance a ton, if it's the same combustion volume, but it does give more torque on the lower end. In a V, they share the same crankshaft, so you can push on both sides.. V geometries are usually more compact, because inline cylinders can get long. However, V patterns cause more vibration, if not balanced or dampened.
    • 2 vs 4. For the same displacement volume, the 2 will have a better low end and the 4 will have a better upper end (and wider overall powerband). 4 has higher top speed and higher redline, as well as harder maintenance. The 4 will also be smoother, with less vibration.
  • Design.
    • Don't use grey on colored background. Whiten it up.
    • Offset shadows for text.
    • Use background colors for separation, rather than borders/whitespace.
  • Lerna and Bit are great tools for monorepos with javascript (projects with multiple npm packages).
  • Came across an awesome concept during my mindfulness practice today. "Beginner's Mind". The goal is to become better at everything you do, of course, but that's not the carrot in front of you as you progress. Have the perspective of a beginner, of a child. Ask questions. Be amazed. Be curious. Be humble.
  • Hung the donut poster.

Friday, June 28, 2019

  • Full cycle at netflix. Individual(s) own the full design-dev-test-deploy-operate-support. https://medium.com/netflix-techblog/full-cycle-developers-at-netflix-a08c31f83249. I agree with this model.
  • For democrats, Amazon is the most trusted institution. For republicans, it's the military. https://bakercenter.georgetown.edu/aicpoll/.
  • Market cap is just share price * number of shares. It's the total value of a company.
    • In 2019: MS #1, Apple #2, Amazon #3, Alphabet (Google) #4.
  • Berkshire Hathaway is an american company. I always assumed it was British. They own GEICO, fruit of the loom, and a bunch of other big companies.
  • Good reminder of web form hygiene. https://uxdesign.cc/design-better-forms-96fadca0f49c. Most important: show all options side by side instead of a dropdown, if there are 5 or fewer.
  • I changed my mind. I enjoyed the new Aladdin.
  • USA beat France to advance to the semis.

Thursday, June 27, 2019

  • Using nonstick spray on an already nonstick cooking surface (like teflon) reduces its efficiency. It covers the nonstick coat. It doesn't damage it, per say, but it creates a bunch of unnecessary buildup.
    • Nonstick spray on cast iron is fine. Those pans should be seasoned anyway.
  • Mark Hamill (Luke Skywalker) does the voice of Chucky in the most recent Child's Play.
  • White holes are the opposite of black holes; nothing can enter, even light. They are just a mathematical construct. Nothing physical can create them.
  • pysnooper is a library that gives you a decorator which helps with debugging, like printing the various in the local scope and such. I still like pdb and breakpoint().
  • You can do some pretty cool customization with jupyter: https://towardsdatascience.com/how-to-effortlessly-optimize-jupyter-notebooks-e864162a06ee. Notebooks are a useful tool for sharing/collab. I don't use them for my own dev.
  • An IPv4 address is 32 bits, and therefore there are 4.3 billion of them (2^32, also there are 4 octets and each is a number 0-255, or 2^8). There are hundreds of millions reserved (already in use) - https://en.wikipedia.org/wiki/Reserved_IP_addresses. Eventually, they'll be exhausted. They can be reclaimed for other purposes, resold on markets, etc, but they are finite. IPv4 is 128 bits, with muuuuuuuch more room.
    • But, remember this takes you to a machine. It's an address. You could have multiple domains and multiple sites being served from the same IP address, like my nginx reverse proxy is doing.
  • The conjuring series, the annabelle series, and the nun all take place in the same universe.
  • Both the conjuring and child's play series are ok. Nothing amazing, but still enjoyable.
  • TS and TC are telesync and telecine, bootleg movie formats that are between CAM and DVD.
  • Read Aaron Franklin's BBQ book!
    • I like meathead's a bit more overall, because it goes into the scientific rationale for all bbq decisions and variables.
    • Learned mostly about building your own smoker. Using pure wood fire in an offset, adding baffles to mix the airflow and create more homogeneous temperature, and smokestack height for how hard it pulls.
    • The process is very manual at Franklin. All offsets, oak wood, thermometers, and natural airflow (controlled by doors). Nothing closed-loop. This process could be made simple, more repeatable/dependable, and easier to manage (much less work!) with some simple automation. Just because you're programming something doesn't mean it's doing it differently, it's just more efficient.
    • Start the fire with a piece of juice-soaked butcher paper from yesterday's brisket wrapping :)
    • Wagyu means "Japanese Cow" in Japanese.
    • Try to buy never-frozen. If you see more blood in the package, it was likely frozen.
  • Homemade BBQ sauce with espresso beans - a delicious idea I first saw at Franklin's.
  • Bought a large serrated slicer for brisket, and a boning knife for easier trimming.
  • Watch the new live-action Aladdin. Meh. Loved the idea, did not love the adaptation.
  • The steam room at 24 closes a couple hours nightly for cleaning, usually around 1-2am.

Wednesday, June 26, 2019

  • Finished the donut puzzle.
  • Neck is feeling a little better, as if it were a muscle strain and were fading. I'm never cracking my neck or back or fingers again! The stiffness is kinda annoying while I go cold turkey, but I'm sure it will fade.
  • PassportJS is a good lib for user auth.
  • M&A = mergers and acquisitions.
  • Glass breaks at like mach 4.
  • Max heart rate is about 220 minus your age.

Tuesday, June 25, 2019

  • Pumpkin spice = cinnamon nutmeg ginger clove.
  • Fb's crypto is Libra. The programming language behind it is called Move. It is written in Rust.
  • Popular JS libs: https://blog.bitsrc.io/11-javascript-utility-libraries-you-should-know-in-2018-3646fb31ade. Lodash (underscore) tops the list, obv. Utility functions.  Rambda is #2, a functional library.
  • shift-escape in chrome opens up the browser's own task manager. How am I just now finding this. You can view processes, memory, cpu, and terminate them. It even shows resource usage by tab and by extension, which is an extremely useful thing for determining how your browser is slowing your computer.
  • All round-of-16 games in the women's world cup are now over. Our path to the championship will likely be france-england-germany, which is no easy sequence.
  • Smoked chicken and made tacos again. This time, made the corn tortillas by hand for the first time! They're way better.
  • Cloudfare is the company that offers the standard ddos protection you see (an annoying 1s delay).
  • I'm never cracking my neck again! Twisted a little too far and might have tweaked the muscle a little bit. Wasn't really painful, but it's just a scary area to mess with. Beyond muscle issues, you can tear the arteries and cause a blot clot that goes up into your brain, causing a stroke. Nottttt worth it.
  • A little React work. Remember, it's just the "V" in MVC, it's not a full framework.

Monday, June 24, 2019

  • The tipping system in the US is broken. Patrons paying employees instead of the employers. Incentivization is good, but it should be inherent to the accountability of the position, like, you know, every other job on the planet.
  • Idea: a restaurant that doesn't allow tips.
  • Decided to subscribe to Medium. I get about 5 articles in my digest that look interesting but I can't read. Since this is something I do daily, and enjoy, I'm going to try the premium content. It's $50/yr.
  • USA Spain. Won 2-1. On to quarterfinal against France (which is basically the final).
    • Over large numbers, only about 3% of corner kicks result in goals.
    • A set piece is one that returns the ball to free play, like a corner or a free kick.
  • Medium.
    • In JS (just like python), you can access properties with dot notation (obj.prop) or bracket notation (obj['prop']). The latter should be used when the property name might have invalid syntax (leading digit instead of letter, etc).
    • Angular is a much larger framework that uses the regular dom and integrates components in. It has two way binding. React is a smaller library that uses a virtual dom. It only has one way binding.
    • Read the top articles on misophonia. None helpful. They all explain and characterize the condition. None provide solutions, because there are none. You just have to cope. Exposure makes it worse. There's no medication. You just have to avoid the triggers with earplugs, leaving the room, etc.
  • Updated my search engines in google chrome (i, a, t, w, y).
  • My "a" key is still a little bit sticky since I busted the retaining clips.
  • Priapism: an erection that won't go away.
  • Idea: a machine learning app that follows all of your activity (google searches, songs listened to, words said, apps opened, etc) and allows you to observe various outputs (energy, happiness, stress, whatever), then performs analysis to map the inputs to outputs and suggest patterns.
  • The flavor in root beer comes from sarsaparilla bark and sassafras bark.
  • Made the rub for the chicken tomorrow. Used a TON of anchos and guajillos, and included the seed pods this time. I'm excited for some strong flavor. Also used more garlic and onion powder, since Allie is in Sweden for 2 weeks.
    • Just like ancho is the name for the dried poblano, guajillo is the name for the dried mirasol.
  • Matt Stonie has done challenges of 20,000cal in 1hr. Holyyyyyyy. https://www.youtube.com/watch?v=oOop2bLiSFw.
  • Booked all my one-way hawaii flights. LAX-HNL-LIH-LAX. United, Hawaiian, and American. Basically had to reset passwords on all argghghhh. Total cost ~$550. Next step is getting a kauai hotel room with wes/jcriss, then I should be good on accommodations.

Sunday, June 23, 2019

  • The concacaf (north/central american and caribbean) men's soccer tournament (gold cup) is going on right now as well. USA beat Trinidad and Tobago today.
  • Light speed is almost 700 million miles per hour. The Earth is almost 100 million miles from the Sun.
  • Ground cacao nibs are so much better in my morning shakes than whole.
  • Checked the ninja out. Battery is dead. Put it up on the rear lift so the tires would survive longer.
  • A mcguffin is a plot device (in a movie or show) that exists solely to move the plot forward but doesn't get any explanation.
  • Some new couples are combining last names in marriage!

Friday, June 21, 2019

  • Went to ear appointment with Allie. Was very interesting.
  • Did surgery on a couple keys on my laptop. The S key was sticking, so I removed and cleaned underneath it. I also checked the A key next to it, to make sure I had put S back correctly, but it didn't come off as well. The retaining clip system is ridiculous, there are like 3 layers with 4 corner attach points each. It's back in place and working ok, but definitely not perfect. You have to press the A extra hard to register (which is annoying since it's a pinky key).
  • HN
  • Pineapple has the enzyme bromelain which breaks down protein chains. If you marinate meat with any pineapple in it for too long (hours), it will tenderize it into mush.
  • Updated al pastor:
    • Trim pork butt into slices. Brine as usual.
    • Mix marinade separately and apply right before smoking. Don't want pineapple bromelain.
    • Put slices on grill like chicken thighs, not skewered. More surface area for bark/smoke.
    • Get the internal to 170-200 and you're fine. Chop up. Don't need to reverse sear.
  • NBA contracts are insane. https://en.wikipedia.org/wiki/NBA_salary_cap. It's just as ridiculous as tax law, where there was a decent set of 10 original rules and then 3,000 people came in and exploited loopholes which resulted in new provisions. The worst way to scale.
  • Some questions for the interviewer. https://medium.com/free-code-camp/how-to-interview-your-interviewers-when-youre-looking-for-a-job-d848bc3a910.
    • Describe your CI/CD/CodeReview process.
    • How free are individual contributors to pursue new ideas? Even across departments?
  • I turn 1 billion seconds old in two months! The night of Wednesday, August 22, at midnight.
  • Domains are case insensitive, but you can totally make an endpoint case-sensitive. It just gets sent to the server. You shouldn't. Users should always consider it to be case sensitive, to be safe, but it shouldn't be.
  • Watched the smarter every day videos on tattoos and removal.
    • The guns are rotary (just a motor and a needle(s), like a crankshaft and piston) or coil (magnetically pulling a needle, then letting go while a sprint pulls it back).
    • Laser removal just sends a very tuned flash at the tattoo. This heats up one side of the microscopic ink particles quickly enough that the other side can't deform, so it cracks. Once broken up, white blood cells can engulf the smaller ink particles and bring them to the liver for waste processing (this is the same reason tattoos fade over a long time, the white blood cells are eating away at them).
  • Smoked the tacos al pastor.
    • At first I thought the temp probe was bad because it just kept flashing "lid off" but it settled after a while. The forums say that sometimes you can get bad readings at low temps. Also, power cycling the unit seems to help.
    • I'll have to screw the fan back on later as well.
    • Dicing the onion the right way is awesome.
  • USWNT beat Sweden to get 1st in their group. We play Spain in the round of 16, and then likely France in the round of 8. It could very likely be a USA-Germany final.
  • NBA draft.
  • The heaviest person of all time was 1400lbs.
  • If you just change the "r" in the reddit url to "c" then you can see posts that dumb mods have removed.

Tuesday, June 18, 2019

  • Hung out with Eric and the whole family all day. Woke up at 6, gymmed, then beached and piered.
  • Created the splitwise group to settle all the Austin finances.
  • (Certain) Corporate action(s) can be taken without a shareholder meeting, even if the company is private, like SpaceX. It must win by majority shareholder vote nonetheless. They must notify the shareholders, by law.
    • These are usually equity dilutions, like increasing the total number of shares by ~0.01%.
    • This directly decreases the percentage of the company you own, and therefore your voting right, but that was never substantial anyway. It does affect value though, because external valuations are usually done on the total worth of the company, and then simply divided by the number of shares. It's a sneaky, indirect way to dilute your equity, since these events (dilution and valuation) are usually months apart.
  • Did Hawaii planning.
    • The friends leg is just pettys/gmereks/remilins (6) so far.
    • Harner/Eddie/Jonny already have flights home and other plans.
    • Allie is out for the friends leg, and is waffling the wedding leg.
    • Wes/Jcriss/I are the other 3 who are considering the friends leg, which would make 9. If so, Wes and I would be the only ones with the same flights for the whole trip.
    • I would like to go both legs. I will definitely need the LAX-HNL flight for the wedding. If Wes and Jcriss go on the other leg, I'll definitely go, and would need HNL-LIH + LIH-LAX. I would like to encourage Allie to come to both.
  • I can make al pastor for the bay whenever they come down.
    • Trim a pork butt into strips (easier to buy boneless for this, obv).
    • Make my usual dry rub (salt, pepper, paprika, garlic, onion), but then add Achiote paste and Guajillo chili powder and mix it all with pineapple juice to make a marinade (or just buy a premade pastor marinade). Let it sit overnight, then smoke as usual.
    • Spritz with pineapple juice instead of water.
  • Using openssl you can create a root certificate (used to generate other certificates) and then specify localhost as the domain to trust. Fairly simply article here: https://medium.com/free-code-camp/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec.
  • Guajillo chiles are the second most popular chile in Mexico. Poblanos are #1. Ancho is the name for dried Poblano.
    • The carolina reaper is the hottest pepper in the world. Before that it was scorpion, then naga, then ghost. There are claims for 2x the carolina (Pepper X) but they have not been confirmed yet.
    • New peppers are created by literally breeding other insanely hot peppers.

Monday, June 17, 2019

  • Remember superchargers and turbochargers are a little different. Both compress the air going into the engine to add about 50% more power, but the turbo takes it from the exhaust gases (turbine->compressor) and the super takes it from the crankshaft (belt->compressor). The turbine has a slight amount of lag and then will lurch forward (because the air must move through the whole engine before you get the boost). The super delivers extra power all the way through. The Kawasaki Ninja H2 is the first bike with a super, I believe. There are custom Hayabusas with turbos.
  • Oh, forgot to write my Franklin's BBQ review.
    • Rankings:
      1. Brisket. The best I've ever had.
      2. Ribs. Good, but too much pepper.
      3. Pulled Pork. The usual.
      4. Turkey. Tasty, but too much butter, and they only had breast.
      5. Sausage. Surprisingly bad.
    • Overall, the brisket was incredible. Everything else was about par with what I cook at home.
    • The wait in line / drinking / relaxing was fun. We went on a Thursday and waited from about 830-1230. Worth it to do once - is probably not worth a repeat when there are so many other comparable BBQ places around.

Sunday, June 16, 2019

  • Back home from the Austin trip with Richard and Derek! Was a blast. We even go to talk to James.
  • Medieval Times for Eddie/Ray/Haley yesterday. Awesome place.
  • USWNT beat Chile 3-0.
  • Finished Leadership and Self Deception and The Untethered Soul. Added notes to drive.
  • Periodicals:
  • Did some research for the Hawaii trip, both the first wedding leg and the second friends leg. Tentatively:
    • Fly from LAX to Oahu on Thursday August 8. Wedding Saturday 10th.
    • Leave Oahu Tuesday August 13 for Kauai. Stay at the Sheraton Kauai resort.
    • Leave Kauai on Saturday the 17th.

Tuesday, June 11, 2019

  • Really tough yesterday with Kevin Durant.
    • Reinjured the same leg, likely from playing before being ready/healed. You can see the leg snap here: https://youtu.be/lYrA30qcvK4?t=49.
    • Bob Myers gave an emotional statement about it: https://www.youtube.com/watch?v=K3esK_em420.
  • Awesome reunion of 88 year old dad with 53 year old son with down's: https://www.youtube.com/watch?v=XXDvD-jLn74.
  • Cancelled classpass.
  • Received and set up the wireless mouse. Works great. The usb a-c adapters work well too.
  • Woah. You can send documents to your kindle via email. This is very convenient right now since my ubuntu laptop can't talk to it. You simply make sure your email is whitelisted (your default amazon address is), then email your kindle address (check in device management, like brian.mahlstedt_<number>@kindle.com). You can type "Convert" in the subject to automatically convert. Amazing. Did this for two documents.
  • React/redux work. Took notes on my google doc.
  • Played with youtube live again. You have access to the same settings beforehand: private, public, chat enabled, etc. You can then edit the video after you end the stream, but it's only stuff like captions and other standard settings. You can't snip, filter, add sound, all the advanced editing functionality. Do that offline and upload, don't use livestream.
  • The women's world cup started. United states beat Thailand 13-0!

Monday, June 10, 2019

  • Android emulation.
    • Genymotion is probably the most popular android emulator for linux. Downloaded the personal-use edition.
    • Needed to apt install virtualbox first. Then chmod +x the genymotion bin and simply run it.
    • Created a desktop icon for it so I wouldn't have to execute the binary from the command line every time (and leave the pesky terminal around). Just create a APPNAME.desktop file with a hashbang that farms out to xdg-open, including the paths to the binary and the icon.
    • Added StartupWMClass to the .desktop so the icon wouldn't duplicate.
    • When emulating a device, my laptop craaawled. The galaxy s9 was unusable. An old Google Pixel (around galaxy s6 days) was even slow. My laptop only has 3.6GB of ram and 8GB of swap, but all ram was railed and swap was at 50%. Not sustainable, and I hadn't even run any heavy android apps yet.
    • Ended up unistalling genymotion and virtualbox. Was too slow.
    • Looked around and found Anbox, which runs Android in a container instead of a vm, and farms many android tasks back to your native linux host.
    • Added the ppa and installed linux-headers-generic anbox-modules-dkms. Then installed the anbox snap.
    • Google play store doesn't come automatically with android (licensing and such). You'd normally have to install apks manually, OR the better option of something like houdini. This script provisions all of that for you: https://github.com/geeks-r-us/anbox-playstore-installer/blob/master/install-playstore.sh.
    • Anbox also didn't work. Games wouldn't open because of Anbox' unique configuration.
    • Lastly, looked at the Android SDK itself. It requires minimum 4GB ram and recommends 8GM. Mine is below both.
    • In summary, my laptop does not have enough memory to use a VM-based android emulator.
  • Bought an adapter to connect my phone/laptop to older hard drives and kindle and such. Usb-c (android size) male to usb-a female.
    • Remember, usb-b is the boxier one (usually printers and such).
    • Micro and mini are the other obvious ones.
    • Also, remember, usb-c comes in two sizes: android and iphone. My linux laptop is the android size, because that's the standard. If you see usb-c with no other qualifiers, it's the android size.
  • Bought a wireless mouse as well.
  • Reinstalled the gnome system monitor. It doesn't open sometimes, and this seems to fix it.
  • MD. In javascript, the variable declarations are hoisted but not their values.
  • I feel like an absolute idiot for never taking advantage of this, but you can actually do curly brace expansion in bash. `echo {hello,world}` or `echo {0..10}`. You can even combine two curly brace arguments for combinations. My goodness.
  • DKMS = dynamic kernel module support. Used with virtualbox.
  • Shopped for a RAM upgrade to my XPS13.
    • DDR4 is newer and faster than DDR3L, which was a midterm upgrade for DDR3.
    • Need a T5 to open the back.
    • Unfortunately, I can't upgrade the RAM on the 13 easily because it's solder to the motherboard lol. On the 15" and above models, they have additional slots but the 13" does not. In order to have more RAM, I would have needed to upgrade at factory purchase, or replace the whole motherboard myself.
    • Don't need the torx screwdriver anymore.
  • Brainstormed some ideas for internet companies. Nothing huge jumped out, but the immersion helps. I want to be more mindful as I go through my day-to-day about anything that is annoying, even in the slightest. These inconveniences are just opportunities for improvement.
  • YouTube.
    • Went through my channel and removed liked videos. Added a few subscribers.
    • YouTube Studio is in beta. It's a cool dashboard for everything on your channel.
    • You can see your total subscriber count, but not the individual subscribers (unless they've chosen to allow that to be public).
    • You can change 3 privacy settings: your liked videos, your subscriptions, and your playlists. All of mine are not public.
    • You can livestream, but YouTube is much more geared toward recording and editing a video offline, then uploading it.
  • Motorcycles
    • Cool drag race: https://www.youtube.com/watch?v=DnTL4wDAbK0.
    • Quarter mile ranks:
      1. H2R
      2. F1 Redbull
      3. F16
      4. Tesla P100D
      5. Aston Martin Vantage
      6. Plane
      7. Lotus Evora
    • Observations:
      • Off the line, the bike and F1 and Tesla were all about the same, dusting everything else.
      • The bike took the lead through the midrange.
      • At a quarter mile, the bike and F1 were about the same, ahead of everything.
      • After that the F1 would have overtaken the bike.
      • After that, the aircraft pull way ahead.
    • H2R facts:
      • Same combustion volume as my ducati, but over 4 cylinders instead of 2. About 2x the horsepower and 1.5x the torque. About 35lbs heavier also.
      • It's currently the fastest motorcycle. It's not street legal.
      • It can go from 0-250mph in 26s (lol): https://www.youtube.com/watch?v=6_n7ru1e-rg. My ducati top speed is probably around 170mph, and would get there in around 15s.
  • Gave Ken about 5lbs pulled pork for home, and gave Allie about 5 more pounds to bring to work. I'm leaving for Texas so I won't be able to finish all the leftovers before Wed.
  • Finals game 5 in toronto. Warriors won! Back to Oracle.

Sunday, June 9, 2019

  • Got over 3500 pages of printed documentation from healthnet in the mail, unsolicited. It's basically a printout of a registry of all provider. This is unacceptable in 2019. It's a gigantic waste of paper, shipping infrastructure, delivery jobs, and more. Sure, there might be a percent of members who do not have access to a computer, but this paper delivery should be opt-in during member registration.
  • Paid a $48 parking ticket on Allie's car because we're in the summer 1hr months.
  • Great day of volleyball. Tweaked my back a little bit.
  • Bruins push to game 7.

Saturday, June 8, 2019

  • Parents left. Was a great couple days. Cooked leftover smoked chicken stir fry on thursday, sweet potato homefries and bacon and poached eggs and bananas/blueberries on friday morning, then smoked pork shoulder on friday night.
  • Warriors lost last night, didn't look good.
  • Interesting video on some pitfalls of streaming services like netflix: https://www.youtube.com/watch?v=fDF-S68kx5o. It's not healthy competition. Every show is IP which means it has an exclusive license. Like a ... monopoly.
  • saidit.net looks like it was closed.
  • Finished Harper's Island. Was pretty decent.
  • UFC 238. Shevchenko had the best female KO I've ever seen. Cejudo was a monster as well.

Wednesday, June 5, 2019

  • Bought the flight to Austin, Wed-Sat (have to be back before Eddie's). It's a little early on Sat morning (7am), which will suck after Friday night, but it was the best option. Used 25k miles, leaving the price at $6. I have ~150k miles left still. Probably do Franklin on Thursday, get in line at 8am and drink chair beers for 3 hours until they open.
  • Meta = most effective tactics available. Used in gaming, refers to the best strategy/combo.
  • Talked to pops. They're gonna come to hermosa tomorrow and we'll have a couple days to hang. Shopped to make sure I had enough for them.
  • Warriors game 3.
    • Klay, Durant, and Looney all out due to injury.
    • Iggy, Boogie not 100%.
    • Steph and Draymond the only starters who are normal. Wow.

Tuesday, June 4, 2019

  • Idiosyncrasy = odd habit, peculiarity. If someone is idiosyncratic, they're peculiar.
  • Netflix Tech Blog: container cpu isolation.
    • CFS = Completely Fair Scheduler. Mainstream solution to timeslice the cpus properly.
    • They wrote another better one call titus-isolate, optimized for their container usage.
  • Kawhi filed a lawsuit yesterday against Nike for using the logo he designed: Image result for kawhi klaw logo
  • Bought a yoga mat finally so I don't have to keep borrowing from friends (or paying $2 rental) for each classpass.
  • Aprilia's mainstay, the RSV4, comes in a few models.
    • RR and RF are basically the same but the RF has a little better suspension and tires.
    • LE means limited edition. Usually just graphics / aesthetics.
    • FW means factory works. This is their GP bike, the best race bike.
  • Derek reached out about visiting Dick in Austin. Looked at flights next wed-sat (would have to be back for eddie's renn faire lol) and they were $190.
  • 20 year prediction: 10% of all jobs will become remote. Offices and commutes will become inefficiencies of the past.
  • Dcraig hit me up about the signed goodbye poster they forgot lol. Told him that Allie or Spencer could take it home, but otherwise I'd be happy to catch up as well!
  • Smoked chicken. Added to journal.
  • Fed mouse.
  • Grandma passed away tonight. So thankful for the complementary model she and grandpa left for us, and maybe even moreso for the model they raised their own children with - my mom/dad + aunts/uncles sure paid it forward. As I was hanging up with my mom, trying to plan a time to meet, the words "we'll stay in touch, and we'll find a way" came out of my mouth. I don't think that was an accident.

Monday, June 3, 2019

  • How many movies/shows would even remain if you removed the "pinned girl hits mounted attacker with unnoticed sharp/heavy object" scene ... ?
  • Costco, reupped on chicken and almonds.
  • Average salary for a pharmacist is ~125k in our area.
  • Education.
    • You can't declare bankruptcy on student loans.
    • College is 2.5x more expensive than it was a few decades ago. Most of the bloat is due to administration.
    • Now, in 2019, more information can be found online than in universities. In many cases, the quality is better as well. Individuals can give themselves the capabilities which merit a degree, but there's no accreditation mechanism yet. A business that found a way to do this (likely a well-designed sequence of tests) would uproot all of academia (for the better!). Loans, inflation, tribalism, administration, federal funding - so many improvements.
  • If you have a memory that's a couple years old, and you still have an emotional reaction to it, you need to address it! What was the cause? What could you have done better? How can you improve yourself to improve that outcome next time? This introspection is huge. If you're plagued by your past, your body produces the stress hormone cortisol, because it's an alarm to a vulnerability. Cortisol makes you age! Once you isolate the cause and understand how to better act next time, your body literally becomes healthier.
  • Notes from pharmarket meeting yesterday:
    • Info:
      • We'll have an account soon to compare.
      • Certain drugs have way better ROI. Go after those vendors first.
      • Hold the money for a month until vendor billing cycle, then collect X percentage from vendor. Show original prices on our site.
      • Offer service to feed prices, for the vendors without a frontend. They can update a google sheet or something and we can fetch it. This is a huge benefit for smaller vendors who want their stuff in the marketplace.
      • Universal app wasn't as complicated as we had thought, just basically need a license.
      • Meds have way more regulation, that's why amazon integration is hard.
      • Ezrirx and amazon are both in this market, but that doesn't mean we can't take a stab.
      • Medline is another company that sells (non-rx) supplies.
      • There is so much value in aggregating the search locations alone. Instead of buying 6 supplies from 4 separate sites, do it all in the same place.
    • https://www.mdm.com/2017-top-pharmaceuticals-distributors
      • 3 companies account for more than 90% of the drug distribution market: AmerisourceBergen (ABC), Cardinal Health (CAH), and McKesson (MCK). These are the "Big Three Wholesalers" and each has a revenue of well over 100B alone (together almost half a trillion).
      • Amazon's revenue in 2018 for comparison: 230b.
      • The next few large wholesalers: CuraScript, Morris & Dickson, Smith, FFF, Rochester, North Caroline Mutual, Anda.
    • Action items:
      • Finish the MVP website.
        • Get domain name and host.
        • Populate with fake data from multiple vendors. You might be able to get some public data for generics. Some sites even list their rx (like https://auromedics.com/products/ampicillin-and-sulbactam/, for example).
        • Write template API that we'll encourage vendors to use.
        • Add basic user login which protects the price comp tool endpoint.
        • Add basic landing page which shows the benefits for (a) pharmacies and (b) vendors (separate tabs?).
      • Go speak with vendors. Get them onboard and get their data. Then go speak with pharmacies. Get them to use it. Then repeat and grow.
  • Parlays. They're simply a compound bet. Instead of betting for a single team to win (or a single line, or whatever), you're betting for multiple. As long as none of them lose, you win. Because of the compound probability of failure, the payouts are usually very high
  • James lost on jeopardy! He was 60k from beating Ken's alltime record, and his average was 80k per night, so tonight should have been the night he became the GOAT. The opponent got both daily doubles, which was an inevitable misfortune eventually, but I still find it so strange that everything happened to fall into place tonight. After 32 victories, his streak ends on literally the night it should have become the record. Hm.

Sunday, June 2, 2019

  • Watched Ma yesterday. Loved it! Was a fresh premise for the horror genre so overloaded with repeats.
  • Stanley cup game 3 and UFC Gus vs Anthony Smith yesterday. Streams are now posted on https://saidit.net/s/MMAStreams/comments/ because r/mmastreams was shut down.
  • D3 = Data Driven Documents. It's a way to manipulate the DOM as data changes.
  • https://www.ibj.com/articles/72632-amazons-latest-target-is-pharmacy-disruption
    • Indiana has a ton of fulfillment centers that deliver meds.
    • They've been working on entering this market since ~2017.
    • This will help drive prices down, obviously, as it has done for all other open markets on amazon.
    • Amazon bought PillPack (online pharmacy) for $753m.
      • CVS, Walgreens, and RiteAid lost over 11b in market value that day.
      • Art said this won't affect independent pharmacies, just the big chains.
    • Amazon wouldn't need to create an infrastructure to compare prices, it's already baked into their stack. Filters, sorts, etc. Our kayak-like pharmacy wouldn't be of much value.
  • Met with Art again. Will post notes tomorrow.
  • Warriors game 2!

Friday, May 31, 2019

  • HN.
  • Jordan Peterson and Ben Shapiro: https://www.youtube.com/watch?v=1opHWsHr798.
    • Something like "inheritance jealousy" - if a dumb person inherits a billion dollars, you might be mildly annoyed because of their luck. If a competent, smart person gets a billion dollars, you are much more jealous. You are more threatened. Hierarchies are fundamentally efficient structures, and they provide purpose + goals, but they create resentment in the majority. Cain and Abel.
  • Audited all the phone bills and sent the balance (looks like $240) to mom to confirm.
  • While there are babel libraries to offer multi-language support, in webdev babel is the javascript compiler.
  • Split was Hollywood's first surprise sequel, where it was not marketed as such and rather left the bruce willis surprise for the end of the film. It follows Unbreakable, and the trilogy is concluded with Glass.
  • I like the whitestrips more than the mouthpiece with the light. It's too salivating. However, I do like the sequence of charcoal brushing right before the treatment, and will do so for whitestrips in the future.
  • React and redux practice.

Thursday, May 30, 2019

  • Most had originally thought (amount in diet = amount in blood). So, if you ate more cholesterol, for example, your blood would have more cholesterol, which is bad. Now, the equation is more clearly (amount in diet + amount produced = amount in blood). This applies to a lot, and is changing how we view a lot of foods (especially ones that were historically looked down on like saturate fat). If you eat more of something, your body produces less of it, and vice versa.
  • Transferred 10k (online limit) to parents, then went in to transfer the other 20. Spoke with a customer service representative about the $5 fees on the closed savings account. They said that they can revert fees up to 90 days old, so they credited $15 dollars back to my account lol. The other 200+ are lost.
  • Interesting PEP for the removal of many stdlib modules, due to obsoletion and/or replacement: https://www.python.org/dev/peps/pep-0594/#deprecated-modules.
  • RSVPed for 2 for Arlen/Rob's wedding. Eddie is gonna add us to his AirBnB. I'm gonna wait to buy flights because I don't know if I'll be leaving from the Bay or LA.
  • With some elimination, I've noticed a pretty clear causation for my back pain. It's Leg Day. I need to be extremely cautious, warm up, and stretch before any of these lifts.
  • Homemade sushi for the first time ever, it was amazing! Sticky rice, spicy sesame oil, salt and pepper, seaweed, salmon, avocado. That's it. Cost about $16 for 4 rolls, probably half the restaurant price.
  • WARRIORS RAPTORS game 1 finals.
  • Talked with Art a bit more.
    • Because we decide to flee or pursue, we should speak with pharmacies. User storymapping. Discuss the problem before understanding the solution.
    • A footrace is gonna have execution risk. Other products are way ahead, with bigger staff, etc. If we try to make a cleaner website, an easier signup process, a larger pharmacy base, rebates whatever - then we're probably going to lose. We need to shift a bit more into market risk. What different feature does our stack have that others don't? What additional service can ours provide?
    • Other models: buy in situ (orbitz model), take a percentage cut (amazon).
    • Another model we could try: redirect for purchase and take a query fee (kayak).

Wednesday, May 29, 2019

  • Teeth whiteners. Newer charcoal products are effective at removing stains, because activated charcoal's outer pores will strip away any foreign bodies on the outer surface of your teeth. However, they don't bleach the teeth like hydrogen (or carbamide) peroxide based whiteners do. These take time, working beneath the surface to actually change the color of your teeth. I'll probably get a charcoal jar to use sparingly (maybe brush once every couple weeks) for regular maintenance, but still use whitestrips about once a year for the actual whitening effect.
  • Went to store, placed regular amazon order, and amazon fresh order! All for various elements of making sushi at home tomorrow.
  • There are MANY important KPIs for websites: dwell time, new unique visitors, signups, return visitors, on and on and on. https://databox.com/website-kpis-and-measuring-performance.
  • Watched an entrepreneurship video from FW: https://www.youtube.com/watch?v=Q-Cbav_Dt2s.
    • Market risk. Better to play this game as a young person with an idea. Usually something novel, first product/service to create the market. You're buying a lottery ticket. Higher risk, higher reward.
    • Execution risk. Better to play this game as an established entrepreneur. Usually not a market-changing technology, but some improvement that's basically guaranteed to become successful. You can buy a team of sales, marketers, employees etc to see it to market first. Lower risk, lower reward.
    • This guy is pretty cool. Justin Kan. Biggest creation: twitch. He has a few smaller ones as well. He talks about mindfulness and how important diet/sleep/exercise/meditation are to his success.
    • Company culture is so so important. Make your employees feel like things are happening through them instead of to them.
  • Started reading two books: The Untethered Soul and Leadership and Self Deception.
  • Jon Snow checked into rehab: https://www.usmagazine.com/celebrity-news/news/kit-harington-checked-into-treatment-center-for-wife-rose-leslie/.
  • Went to bank of america. Deposited my solium check. Can't transfer until it clears (SOB tomorrow). Transferred my remaining balance in the savings account to the checking account, then closed savings. The $5 monthly fees were for being below a minimum lol. Ridiculous policy. The agent said she would try to waive them.
  • Did some valuation research on the ninja. KBB, cycletrader, and craigslist all were in the range of 2-3k for my year, odo, condition, etc. I would probably sell to a private party at around 1.5k because of the shift fork on 2nd gear. I might drop as low as $1000 for a friend.

Tuesday, May 28, 2019

  • Finally got a tracking number for Urthbox. If it arrives in a couple days, it will have taken 2 months to arrive after the order was placed.
  • The Solium check hasn't arrived either. If it arrives tomorrow, it will have taken 2 weeks for a $20 delivery fee.
  • Cheerio is the npm package for using jquery in node. You can select DOM elements, act on them, etc. Also serves a functionality like beautiful soup.
  • Axios is the npm package for an http browser client, like solium. It enables webscraping.
  • The chase for the world's largest tesla coil: http://lod.org/. Lightning on demand!
  • Pharm
    • Startup research.
      • Develop your business model.
        • Plan to grow, services provided, etc.
        • Build the beta website.
      • Develop your company model.
      • Patent/Copyright/Trademark/Trade Secret. Usually one is necessary.
      • Get funding. NDAs are necessary here.
      • Market to customers. Expand.
    • LLC research.
      • Limited Liability Company. The owners won't risk personal assets if it goes bankrupt or gets sued. Can't intermix personal money.
      • To start an LLC, you file Articles of Organization and Operating Agreement with the Secretary of State (online) and pay a fee.
      • LLCs can choose to be taxed like a partnership (see LLP below, basically personal income tax for partners) or like a corporation.
      • Different from:
        • Sole proprietorship. The simplest. The owner is responsible for all debts. It is not a legal entity. Just register for license. Also allows you to mix personal funds with the business. Taxed with owner as regular income.
        • Partnership. Can be general partnership (like sole proprietorship but with an even split for profit/debt across multiple people) or limited liability partnership (called an LLP, and still taxed on the partners' personal taxes). LLPs are common for architecture and law firms.
        • Corporation. The most common for larger companies. You have to have common stock, license, board of directors, etc. Very similar to LLC, just larger. The owners still have limited liability. The corp is basically another person in legal eyes. They're taxed separately and make decisions separately. Corp vs Inc - it doesn't matter, but once you declare, you have to be consistent in all your legal nomenclature after that. Most common type is C Corp.
    • Allie knows a decent amount about all of this.
    • Looked up some more domain names. These are available: focuseuticals, rxcenterpiece, keynoterx, plazapharm, rxcapitol, bazaarpharma, bazaarpharm, racketpharm, pharmracket, pharmaracket, rxracket, rxcrux, kernelpharm, pharmakernel, kernelrx, rxkernel.
      • I loooove racketpharm because it sounds like "rocket farm" and implies you're getting something for ridiculously cheap, but has negative connotations because technically rackets are illegal business handlings so it might deter people.
      • kernelrx and bazaarpharma both sound pretty good too, and are self-descriptive.
    • Still a little hesitant due to the maturity of other established sites.

Sunday, May 26, 2019

  • Murder mystery party was awesome yesterday. The curry brisket turned out pretty good as well. We finished one packer and I took the second home for leftovers this week.
  • Cast iron pans shouldn't be soaked, for fear of rust. They also shouldn't be washed with soap, which might strip some of the seasoning on the pan (the seasoning is usually vegetable oil).
  • Warriors raptors finals baby. We're the heavy favorites, but I love both teams. Some articles some that this is a bigger threat than Lebron's Cavaliers the best 4 years. That's ridiculous. There have been 9 NBA finals sweeps in the history of the league. I wouldn't be surprised if this becomes the 10th. Also, Drake is a diehard raptors fan but has warriors tattoos.
  • Reminder about betting lines. If a team is +150 and you bet $100, you would get back your $100 plus $150 in winnings. If a team is -250 and you bet $250, you would get back your $250 plus $100 in winnings. A positive line is for the underdog and you risk less than you gain. A negative line is for the favorite and you risk more than you gain.
    • The superbook line is -310 for the warriors in the finals, a very heavy favorite.

Friday, May 24, 2019

  • Scrolldown animations are very popular now. Just slight shifting of the text and increasing opacity is enough to give the user a nice scroll feel. Also gives a bit better load time and responsiveness, since the lower panes don't have to load when the initial page does.
  • The difference between iterator and iterable. They're very similar, they just slightly differ in how Python deals with them under the hood. Both can be looped over. Iterators just have an explicit __next__() method so they inherently know how they're supposed to be iterated over. Iterables don't have this behavior. Python calls iter() on them to determine how to sequence the iteration. TLDR: An iterator has the "how to iterate over my data" baked into it. An iterable does not.
  • Put the new amex credit card info for AAA autopay.
  • HN
  • Meditated for a bit today for the first time in a long time, love it. Great for destressing.
  • Did a little research into carnivory and other dietary choices. Some are extreme, like the sole "beef-salt-water" lifestyle. There are worshippers of this end of the spectrum, just like there are on the vegan side. Both with firsthand accounts and both with scientific research. Cholesterol too. Diff btw dietary cholesterol and blood cholesterol.

Thursday, May 23, 2019

  • Yesterday spent the day in San Bernardino again.
  • Notes from art meeting Tuesday:
    • Prices drop after the usual patent (10yr?) expires, allowing generic meds to flood.
    • AWP = average wholesale price. There are usually hot items that have low awp and high resell value. Knowing these waves is much easier if you work in the industry.
    • Redirects and utm query params can identify the majority of traffic induced by our hub. Probably not close to 100%, but maybe ~70%?
    • LOTS of domain names are taken.
    • Can have public accounts for otc and pharmacy accounts for rx.
    • Applications take a few days and require signatures, etc. Some are even still mail, not digital. Abstracting all of this into a universal application has value on its own, even without the price comparisons. We'd aim to do both.
    • Getting a read-only account is another option. This seems more core to the principles of the idea. Completely skip all buying capability, just show prices. No account, nothing. Simpler.
    • Befriending a vendor would be huge at this stage. Could give details on price margins, traffic amounts, value of our product, etc.
  • Identity Politics. It's something I've always been familiar with, but never knew the formal name for. Individual identity should come before group identity. Tribalism has historically ended in violence, and our modern world continues to confirm this. So much political conflict twirled around race, gender, etc.
  • PW/MD.
  • Checked mail. The solium check which was shipped on May 15, eight days ago, with a delivery method that cost $20, has not arrived yet :)
  • Bought brisket from costco. Trimmed and brined. Also bought jelly bellies for the counting game.
  • Bought prizes (drinks) from vons, as well as ring toss bottles (perrier lime lol).
  • Wow, this pharmarket alternative already exists: https://www.ezrirx.com/
    • Based in New Jersey. Founded 2016. They have the universal application, price comparison, and in-situ purchasing :/
    • We'll create an account to see the list of wholesalers. If it's not that many vendors, the market is still open.
    • Even if it's legit, we have another model that may work: no account, no buying power. Just show up to the site and compare prices, like kayak. The hard part about this is it involves uprooting the status quo. We'd basically have to convince vendors to publish their prices.
  • In order to fully immerse someone in an experience, you must attend to as many senses as possible. Think of a date: a scene with candles, chocolate, music, flowers, and physical touch is much more impressive than an alternative with any one sense missing.

Tuesday, May 21, 2019

  • Sent out all murder mystery invitations, as well as the printouts and office supplies and decorations. This is a lot of work!
  • India's Tandoori up near Allie in miracle mile has a lunch buffet that goes until 3. I went today, so good.
  • GRRM blogpost after the series finale: http://georgerrmartin.com/notablog/2019/05/20/an-ending/.
  • The expedia/priceline business model:
    • The customers are not the individual users. The customers are the companies selling through your marketplace.
    • The cofounder of Kayak was the cofounder of Orbitz before. The key change which made Kayak successful was that it no longer sold tickets, it just became a search engine to aggregate prices and compare. This was easier to maintain, fewer employees, no customer service needed, etc.
    • Kayak gets about half its revenue from referrals (flight/hotel/car companies paying them) and half from advertising.
    • Kayak earns anywhere from 0.1 - 0.3 cents per query for flights, cars, and hotels (hotels being higher).
    • Amazon takes anywhere from 6-20% cut per item sale (average 15%), as well as monthly dues to even list items ($0-$40). There's also a minimum (a dollar or two) in case 15% of an item sale is less than that.
  • Progress:
    • Free for pharmacies. Money comes from vendors. Could take a percentage of sales or charge a fee per query. We'll have to iterate on the sweet spot for this number until it makes sense for both parties.
    • Roadmap:
      • Add a few more vendors.
      • Enable user accounts, necessary to store partnership information and vendor credentials and such.
      • MVP is done. Show it to pharmacies. Get them to use it.
      • Once there are enough users, start pitching to vendors (our actual customers).
      • In production, we should not aggregate prices by webscraping. Supported vendors should expose a contracted API for our data.
      • Possibly: buy bulk and resell for discounted rates, just like kayak does with hotel blocks. To do this, we'd need to add functionality/complexity to the app. It would allow buy/sell instead of just redirect.
      • Start trending history and offering price prediction.

Monday, May 20, 2019

  • HN/PW.
    • Papermill is a tool that takes a Jupyter notebook (and some params) and executions it with a production context in mind (saving artifacts, etc). Netflix has been pushing these architectures hard, even outside of the data science workflows at the company, because it's a great way to combine runtime with notes/datasharing for others to consume.
    • Some awesome gems in python 3: https://datawhatnow.com/things-you-are-probably-not-using-in-python-3-but-should
      • fstrings for autoformatting based on variable names.
      • built-in lru.
      • type hints.
      • no __init__ necessary for subpackages.
  • Game of thrones and barry are done, mostly just nba/nhl now (although that will finish soon too). Westworld s3 trailer came out (parts filmed right here in hermosa).
  • Very interesting segment! https://www.youtube.com/watch?v=aMcjxSThD54.
  • Warriors swept Portland, off to the 5th consecutive finals!
  • Bought the circus murder mystery night (from a new company), started preparing everything for saturday.

Thursday, May 16, 2019


Tuesday, May 14, 2019

  • Back from LiB! Great trip. Uploaded and shared pictures.
  • Yesterday caught up on all the quarterfinals NBA/NHL games that I missed, game of thrones, and ufc/bellator events.
  • QR stands for Quick Response in QR codes. The most recent version is a 177x177 grid.
  • Emails, newletters, HN, PW, MD, etc:
    • Guido about creating python (as a middleground between C programs and shell scripts) and stepping down as BDFL: https://www.youtube.com/watch?v=qxMcGDnT8uc.
    • SQL is old and has many pitfalls. We should not resist the forthcoming of newer query languages.
    • Some good response headers to add to your server's HTML pages:
      • Strict-Transport-Security: max-age=1000; includeSubDomains; preload
      • Content-Security-Policy: upgrade-insecure-requests
      • Cache-Control: max-age=30, public
      • Accept-Encoding: gzip, deflate, br
      • Accept: image/webp; imgae/apng, image/*, */*;q=0.8
      • Accept-CH: Width, Viewport-Width
      • Accept-CH-Lifetime: 100
      • Link: </font.woff2>; rel=preload; as=font; no-push
      • Feature-Policy: vibrate 'none'; geolocation 'non'
    • Remember, PyTorch is an ML library.
  • Apparently the purchase offer proceeds are doled out through cash holdings in Solium, rather than between SpaceX and the employee directly. You have to elect between a transfer (which requires bank info) and a check (which requires an address). If you don't elect, it defaults to check. I was out of town with no service, but I received no notification of shipment, so I emailed them today (others said they received their transfers earlier).
  • GSW crushed Portland in game 1.
  • Promises in JS are just like callbacks (setTimeout, etc), just cleaner. They define two things: what to return when it succeeds (.then), and how to handle the error when it fails (.catch). Resolve vs reject. You can have multiple chained .then calls, executed in order if it no errors are thrown in the previous. You can also fire off multiple promises at the same time (Promise.all([]).
    • async is simply a way to return a promise. Then you call await, which blocks until the promise resolves. You can do multiple concurrently with Promise.all() in the same way.