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.

Wednesday, May 8, 2019

  • California has a larger economy by itself than every country on the planet except 4: US, China, Japan, Germany.
  • Got my POA notarized. Allie will bring to SpaceX tomorrow. We also got the final allocations today. lol.
  • Read about all 3 star wars trilogies, 9 movies in total. I have only seen maybe 2 of them, and only when I was a child. Not a fan, but was just curious to read a 10min summary of the entire saga.
  • Unloaded amazon fresh and packed the BMW saddlebags full of all LiB food. Packed all regular stuff as well, after laundry.

Tuesday, May 7, 2019

  • Supercontest
    • Split the uwsgi ini file into proper sections and moved all configuration there instead of as clargs in docker-compose.
    • Process
      • docker network create nginx-proxy
      • docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --name nginx-proxy --net nginx-proxy jwilder/nginx-proxy
      • Then start the app containers (usually `make build-start-prod`).
    • letsencrypt-nginx-proxy-companion has some useful utilities.
      • docker exec nginx-letsencrypt /app/force_renew
      • docker exec nginx-letsencrypt /app/cert_status
    • Created the bmahlstedt.com github repo. Added a tiny app with tiny landing page.
    • Created the infra github repo. Moved the command line process above to a docker-compose and added a readme. Now, you simply docker-compose up there (after creating the nginx-proxy network) just once, and then can create as many virtual hosts as you'd like.
    • nginx-proxy is pretty dope. It uses a dummy dhparam while a new one is generated in the background (2048 bits can take a while), then it reloads nginx automatically when done.
    • Renamed services (like app_prod) to use dashes instead of underscores (to app-prod).
    • Confirmed that app-dev still works.
    • After a docker system prune, you need to recreate the network. The volumes will stay by default.
    • http forwards to https and www forwards to non-www (just southbaysupercontest.com and bmahlstedt.com).
    • Got ssl working with letsencrypt-nginx-proxy-companion. The setup is pretty clean now.
    • Updated documentation.
    • Closed #47. Everything is done now. There are two containers (nginx-proxy and letsencrypt) that control traffic (and certify) all other virtual host containers on that machine. Right now that includes two apps, southbaysupercontest.com and bmahlstedt.com.
  • DHPARAM = Diffie Hellman parameters, used for secret key validation.
  • Buyback BS.
    • I made my election and submitted the transmittal form separately to SpaceX. This is a dumb requirement in the first place, because you're already making a digital confirmation.
    • I played with my election after, knowing that I wasn't going to change it. I just wanted to observe. I intentionally did not submit the transmittal forms for these.
    • Because the transmitted number and my solium number did not match, Solium generated incorrect final documents. SpaceX can fix this, but they need my power of attorney since it's technically changing a number after the close date. Ridiculous and inconvenient (requires notary).
    • Made an appointment for BOA tomorrow.
  • Dad is going in for surgery tomorrow, called for good luck.
  • Placed Amazon Fresh order for Lightning in a Bottle - $140. Soylent, protein bars, and almost every non-refrigerated fruit & vegetable you can imagine!
  • Tutorials
    • Express
      • Process
        • npm init (creates package.json)
        • npm install express (adds it to node_modules/ and the deps in package.json)
        • app.js with require, app instantiation, route addition, listen on port.
        • node app.js
      • This is identical to what I'm used to. Remember, node is the javascript runtime outside the browser (python). Express is the web framework (flask).
      • Autoreload behavior can be enabled by `sudo npm install nodemon -g` then `nodemon app.js` instead of `node app.js`.
      • Pug (and old-school jade) is the template engine for node, just like jinja is for python. You can render these templates and insert variables and other functionality.
    • JS, even with its exponential growth, is still not as full-featured of an environment for enterprise app development as something like java/python/c#.
      • Typescript goes a little further than JS because it has static typing.
    • OvernightJS is a utility lib for apps build with typescript and express. Gives some nice classes and controllers and decorators.
  • Updated resume. Cleaned the skill organization at the bottom. Did a little on linked/github as well.