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