2,505 Matching Annotations
  1. Nov 2019
    1. we tend to base our decisions on things we’ve experienced before, to make decisions easier

      We're basing decisions on previous experience rather than considering pros and cons.

      Therefore, after buying one expensive coffee at Starbucks, the next time we will also do it, as we would remember how good it was, but not how expensive.

      That is how we form good and bad habbits, which are so hard to get rid of

    2. It is difficult to find a logical explanation for this, but apparently the prices that end with 9 trigger some kind of automatic mechanism

      When presented with the price catalogues of:

      • $39
      • $34 and $44

      The first option would exceed all the other numbers of orders

    3. Offering to proceed with a $1 per day tariff and the one that costs $350 per year are mathematically equivalent, but trigger different reactions in customers. The first option can be compared to purchasing a water bottle in a grocery store, and the second option is more like purchasing a mobile phone

      Better to present sale in the form of $1 per day than $350 per year

    4. Mathematically equivalent statements are not necessarily equivalent psychologically

      For example, presenting two sets:

      A: A drunken motorist runs over a woman.

      B: A motorist runs over a woman.

      People would choose A as the more likely, but in fact it's just a subset of B.

      Same in this case:

      A: If you fly with this airline once a year, there's a possibility of one air crash in a 1000 years.

      B: 1 in every 1000 flights ends in a disaster

      It also applies in case of graphs:

    5. Do not lower prices. The price that you declare at the very beginning will become the reference point. You can also try to show your customers big numbers before starting to talk about the money

      Advice for marketers

    6. people are guided by the available prices to assess the rest of the offered goods

      For example, court judges were asked to roll a die before passing sentence, and the length of their verdict correlated with the values ​​they got on the dice rolled. Of course, the judges didn’t realize that the die roll had affected them

    7. Salesmen in retail stores try to sell the most expensive things first, or at least offer them to customers. For instance, a person who came to buy a suit is first shown the suits. When the customer makes his choice, then the salesperson suggests appropriate accessories, such as a tie to go with the suit. Compared to the suit’s price, the tie looks very inexpensive and is an easy upsell

      Propose the most expensive thing first.

      Case 1: For example, when someone wants to buy a suit:

      1. Suit
      2. Tie (small price in comparison to suit)
      3. Socks (small price in comparison to suit)

      Case 2:

      1. Overpriced real estate
      2. The right real estate
    8. We rarely think in absolute terms, and we don’t have a universal measure to understand the value of a certain thing. Therefore, we tend to evaluate things by comparing them to others

      The bait principle

      It can be supported by an experiment.

      1st version: Group of people was presented with 3 options:

      • a web subscription ($59) <--- 16% votes
      • a print subscription ($125)
      • print + web subscription ($125) <--- 84% votes

      2nd version: Group of people was presented with 2 options:

      • a web subscription ($59) <--- 68% votes
      • print + web subscription ($125) <--- 32% votes
    9. The lack of a ready-made pattern of behavior makes people rely on “simple” factors in decision-making (such as other people’s behavior, template principles, pre-designed baits, etc.), rather than the correct ones

      Use this for your advantage in sales

    10. The circles drawn in the center of the image above are identical. But depending on their environment, their perceived size changes

      Use this property in marketing:

    1. New study shows that our personal memories might not be personal at all. All it takes to change your memories is thinking about a different person, and considering how they would approach what happened to you. Perhaps our character isn’t as unique as we think, but more fluid, and changed by every person we meet. Our evaluation of ourselves changes even when we think of objects, not just other people

      Plasticity of our mind

    1. if your goal is to build a remarkable life, then busyness and exhaustion should be your enemy

      Life protip

    2. Hard work is deliberate practice. It’s not fun while you’re doing it, but you don’t have to do too much of it in any one day (the elite players spent, on average, 3.5 hours per day engaged in deliberate practice, broken into two sessions). It also provides you measurable progress in a skill, which generates a strong sense of contentment and motivation

      Hard work:

      • isn't draining like hard to do work
      • provides measurable progress in a skill
      • generates a strong motivation
    3. The elite players were spending almost three times more hours than the average players on deliberate practice

      1st difference between the elite and average students:

      spending 3x more time on deliberate crafting of the skill

    4. The average players, they discovered, spread their work throughout the day. A graph included in the paper, which shows the average time spent working versus the waking hours of the day, is essentially flat. The elite players, by contrast, consolidated their work into two well-defined periods

      2nd difference between the elite and average students:

      working in 2 well-defined blocks rather than multiple ones

    5. the elite players slept an hour more per night than the average players

      3rd difference between the elite and average students:

      1 additional hour of sleep

    6. the elite players were significantly more relaxed than the average players, and the best of the best were the most relaxed of all

      4th difference between the elite and average students:

      more relaxation

    1. the more files you have and the bigger your project, the more resources VS Code will start to consume. The Search Indexing and File Watcher scripts start eating up your memory. Moreover, to work on such a project, you will open each file in a new tab, leading to multiple VS Code instances running simultaneously, and eventually, your CPU usage will start to look like this

      VS Code consumes much more memory in comparison to Sublime while working on more significant projects

    1. FKs don't work well with online schema migrations.

      3rd reason why at GitHub they don't rely on Foreign Keys: Working with online schema migrations.

      FKs impose a lot of constraints on what's possible and what's not possible

    2. FKs are a performance impact. The fact they require indexes is likely fine, since those indexes are needed anyhow. But the lookup made for each insert/delete is an overhead.

      2nd reason why at GitHub they don't rely on Foreign Keys: FK performance impact

    3. FKs are in your way to shard your database. Your app is accustomed to rely on FK to maintain integrity, instead of doing it on its own. It may even rely on FK to cascade deletes (shudder). When eventually you want to shard or extract data out, you need to change & test the app to an unknown extent.

      1st reason why at GitHub they don't rely on Foreign Keys: Relying on FK to maintain integrity, instead of doing it on its own

    1. To grow, trees photosynthesize and turn water and carbon dioxide (pulled from the air), into hydrocarbons. A living tree sucks carbon dioxide from the air and locks it into wood as it grows. Even when the tree dies (unless we burn it), the carbon is still locked up in the wood

      Cycle of tree's life

    2. For a wood fire, ash is primarily composed of metal carbonates and oxides (such as Calcium Carbonate, and Potassium Carbonate), from the compounds in the original wood

      Ash - compounds that did not burn

    3. As long as there is a source of fuel (and oxygen), the fire will burn

      Oxygen keeps the fire alive

    4. As the fire gets hotter, more complete combustion occurs, less smoke is produced, and the flames lose the yellow color, turning more blue

      As the fire gets hotter:

      • more complete combustion
      • less smoke
      • yellow colour turns into blue
    5. yellow flames seen in a fire are the result of incomplete combustion

      Yellow flames - incomplete combustion

    6. smoke produced (early stages of fire) is unburned carbon

      Smoke - unburned carbon

    7. It is the volatile compounds that out-gas from the wood, and eagerly react with oxygen, that are burning, and generate the flames we see

      Generation of flames - volatile compounds eagerly reacting with oxygen

    8. When the temperature of wood is increased (through application of heat), first the water is driven off. This occurs up to about 200°C. Between approximately 200°C–280°C the heat starts to break down the hemicellulose compounds into Carbon Monoxide, Carbon Dioxide, Acetic Acid, (and more water vapour); these are driven out. Between 280°–500° decomposition of the longer cellulose and lignin begins and produces light tars and Methyl Alcohol

      Burning process:

      1. < 200°C - water is driven off
      2. 200°C-280°C - heat breaks down the hemicellulose compounds into Carbon Monoxide, Carbon Dioxide, Acetic Acid, and more water vapour
      3. > 280°C - hydrogen is still produced. Oxygen reacts directly with the Carbon left in the wood exothermically (process happening in the glowing embers)
    9. A couple of hundred intermediate products (organic acids, ketones, esters, aldehydes …) have been identified as being produced by the pyrolysis of wood

      Output from wood pyrolysis

    10. The pyrolysis of wood is an incredibly intricate and complex process that is not completely mapped out and the exact output depends of many variables

      Pyrolysis is complex and relies on lots of variables (type of wood, temperature...)

    11. The correct term to describe what is going on when we ‘burn’ wood is Pyrolysis

      Pyrolysis (from Greek) - correct term for "burning" wood (thermal decomposition)

    12. The chemical composition of wood varies from species to species, but is approximately 50% carbon, 42% Oxygen, 6% Hydrogen, 1% Nitrogen, and 1% other elements (mainly Calcium, Potassium, Sodium, Magnesium, Iron, and Manganese) by weight

      Chemical composition of wood. Mainly:

      • 50% carbon
      • 42% oxygen
      • 6% hydrogen
    13. Wood is the hard-fibrous material that comes from the trunk, stems, roots, and branches of a once living tree

      What is wood

    1. To boil everything down to a bullet list, the differences Firefox Developer Edition bring to the table include: A separate profile so your development environment can be configured differently to your regular browsing environment Access to cutting edge features not available elsewhere A 12 week lead time on support for the newest additions to web standards Default preferences tuned for developers Dark theme style out of the box

      Differences between Firefox vs Firefox Developer Edition

    1. “Why don’t you assume you’ve written your book already — and all you have to do now is find it?”

      That is heartening...

    2. Here’s Stephen Harrigan (talking about his book, Big Wonderful Thing: A History of Texas)

      "I think that when it comes to writing books, you have to start before you think you're ready, because you will always feel like you are never ready. I find that as you write the book, the road ahead becomes clearer; before that, the road ahead is just a distraction." ~ Stephen Harrigan

    3. In my experience writing books, it isn’t just a “resistance” thing or a “perfectionist” thing or a fear thing, it’s more about research and wondering if you’ve done enough of it. Research becomes your way of procrastinating, because, let’s face it, research is just more fun than writing. (Me, personally, I became a professional writer so I could be a professional reader.)

      Research is a pure pleasure included in the process of book writing

    4. There’s an awful temptation to just keep on researching. There comes a point where you just have to stop, and start writing. When I began, I thought that the way one should work was to do all the research and then write the book. In time I began to understand that it’s when you start writing that you really find out what you don’t know and need to know.

      Why researching during writing is recommended

    1. great place to start finding circuit schematic is the Discover Circuits site. They have a comprehensive list of fun circuits to experiment with

      Discover Circuits - more circuits to build

    2. Step 19: Your Third Circuit

      Example of a 3rd circuit to build (check images in post for step by step guide)

    3. Step 18: Your Second Circuit

      Example of a 2nd circuit to build (check images in post for step by step guide)

    4. Step 17: Your First Circuit

      Example of a 1st circuit to build (check images in post for step by step guide)

    5. designed to allow you to be able to insert an integrated circuit into the center

      This way, you can quickly build a circuit (without soldering or twisting wires together)

    6. To use wire in your circuit, simply cut a piece to size, strip a 1/4" of insulation from each end of the wire and use it to connect points together on the breadboard

      Using wire

    7. When things are wired in parallel, they are wired side by side, such that electricity passes through all of them at the same time, from one common point to another common point

      Wired in parallel - electricity passing through each thing at the same time

    8. When things are wired in series, things are wired one after another, such that electricity has to pass through one thing, then the next thing, then the next, and so on

      Wired in series - electricity passing through each thing

    9. circuit is a complete and closed path through which electric current can flow

      Circuit:

      • closed - allows the flow of electricity between power and ground
      • open - breaks the flow of electricity between power and ground
    10. electricity is typically defined as having a voltage and a current rating

      Electricity - typically having voltage and current rating

      but, also - resistance and watts

    11. it is recommended that you use insulated 22awg (22 gauge) solid core wire
      • Red wire - power connection
      • Black wire - ground connection
    12. Wires are nice because they allow you to connect things without adding virtually no resistance to the circuit

      Wires - to connect things together using breadboard

    13. there typically runs two continuous bus lines. One is intended as a power bus and the other is intended as a ground bus

      Two continuous bus lines

    14. They are covered with a grid of holes, which are split into electrically continuous rows. In the central part there are two columns of rows that are side-by-side

      Build of breadboards

    15. Breadboards are special boards for prototyping electronics

      Breadboards

    16. Batteries are represented in a circuit by a series of alternating lines of different length

      Marking of:

      • power
      • ground
      • voltage rating
    17. battery is a container which converts chemical energy into electricity

      Battery - simply stores power

      When put in:

      • series - voltage adds up, current stays the same. For instance, three AA-batteries (1.5V) will result in 4.5V.
      • parallel (rarely) - voltage stays the same, current doubles
    18. This is dependent on the type of switch it is

      Types of switches:

      • Normally open (N.O.) - close circuit when activated
      • Normally closed (N.C.) - open circuit when activated
      • single-pole double-throw (SPDT) - both open one connection and close another when activated
      • double-pole double-throw (DPDT) - two SPDTs combined. Break two separate circuits and open two other ones, every time the switch is activated
    19. switch is basically a mechanical device that creates a break in a circuit. When you activate the switch, it opens or closes the circuit

      Switch - open/close the circuit

    20. it is ideal to light up multiple LEDs by wiring them in parallel

      Prefer to light up LEDs in parallel over series

    21. Like all diodes, LEDs create a voltage drop in the circuit, but typically do not add much resistance

      To prevent short circuit created by LEDs, you need to add a resistor in series: calculate how much resistance is needed for a single LED (use slightly larger value than calculated)

    22. special type of diode that lights up when electricity passes through it. Like all diodes, the LED is polarized and electricity is only intended to pass through in one direction

      LED (light emitting diode):

      • polarized (like all diodes)
      • electricity intends to pass only through one direction
    23. For instance, if you have two 10K resistors in series between power (5V) and ground (0V), the point where these two resistors meet will be half the power supply (2.5V) because both of the resistors have identical values

      [Power] --(5V)-- [10K Resistor] --(2.5V)-- [10K Resistor] --(0V)-- [Ground]

      • 2.5V as we have two identical resistors
      • as we turn the knob in potentiometer, the 2.5V can shift towards 5V or 0V
    24. current is rated in Amps

      Current = Amps

    25. integrated circuit is an entire specialized circuit that has been miniaturized and fit onto one small chip with each leg of the chip connecting to a point within the circuit. These miniaturized circuits typically consist of components such as transistors, resistors, and diodes

      Integrated circuit

    26. PNP transistors allow electricity to pass from the emitter pin to the collector pin

      PNP:

      emmiter ---> collector

    27. NPN transistors allow electricity to pass from the collector pin to the emitter pin

      NPN transistors:

      collector ---> emitter

    28. transistor takes in a small electrical current at its base pin and amplifies it such that a much larger current can pass between its collector and emitter pins. The amount of current that passes between these two pins is proportional to the voltage being applied at the base pin

      Transistor

    29. the other side connects to power

      Anode

    30. The ring found on one end of the diode indicates the side of the diode which connects to ground

      Cathode

    31. Diodes are components which are polarized. They only allow electrical current to pass through them in one direction. This is useful in that it can be placed in a circuit to prevent electricity from flowing in the wrong direction

      Diodes

    32. Ceramic disc capacitors are non-polarized, meaning that electricity can pass through them no matter how they are inserted in the circuit

      Ceramic disc capacitors = non-polarized

      Typically marked with a number code to be decoded

      Typically represented as two parallel lines

    33. Electrolytic capacitors are typically polarized. This means that one leg needs to be connected to the ground side of the circuit and the other leg must be connected to power. If it is connected backwards, it won't work correctly

      Electrolytic capacitors = typically polarised

      Written on them:

      • Value typically represented with uF
      • minus symbol (-) representing leg connecting to the ground

      Represented by side-by-side straight and curved line

    34. capacitor is a component that stores electricity and then discharges it into the circuit when there is a drop in electricity

      Capacitor

    35. With alternating current, the direction electricity flows throughout the circuit is constantly reversing

      Electricity flows in AC:

      reversing (alternating direction) throughout the circuit

    36. resistors add resistance to the circuit and reduces the flow of electrical current. It is represented in a circuit diagram as a pointy squiggle with a value next to it

      Resistors:

      • measured in ohms
      • come with different wattage ratings
    37. electricity in a circuit must be used

      IMPORTANT consideration!

    38. With Direct Current, electricity flows in one direction between power and ground

      Electricity flows in DC:

      one direction between power and ground

    39. Potentiometers are measured in ohms like resistors, but rather than having color bands, they have their value rating written directly on them (i.e. "1M"). They are also marked with an "A" or a "B, " which indicated the type of response curve it has

      Potentiometers are measured in ohms (like resistors).

      Written on them:

      • value rating (i.e. "1M")
      • type of response curve it has ("A" or "B"):

      "A" - logarithmic response curve (1, 10, 100...) {increases logarithmically}

      "B" - linear response curve (10, 20, 30...) {increases evenly}

    40. Potentiometers are variable resistors. In plain English, they have some sort of knob or slider that you turn or push to change resistance in a circuit. If you have ever used a volume knob on a stereo or a sliding light dimmer, then you have used a potentiometer

      Potentiometer - changes resistance in a circuit

    41. The round notch on one edge of the IC chip indicates the top of the chip. The pin to the top left of the chip is considered pin 1. From pin 1, you read sequentially down the side until you reach the bottom (i.e. pin 1, pin 2, pin 3..). Once at the bottom, you move across to the opposite side

      Order of reading pins in the IC chip (1 to 8):

    42. As a beginner, you will be mainly working with DIP chips. These have pins for through-hole mounting. As you get more advanced, you may consider SMT chips which are surface mount soldered to one side of a circuit board

      Study from DIP chips to SMT chips

    43. you can learn all about integrated circuits by looking up their datasheets. On the datasheet you will learn the functionality of each pin. It should also state the voltage and current ratings of both the chip itself and each individual pin

      Find more information about integrated circuits in the datasheets

    44. There are two basic types of transistors, which are NPN and PNP

      2 basic types of transistors: NPN and PNP. They have opposite polarity between collector and emitter.

    45. They are represented in schematic as a line with a triangle pointing at it

      Representations of diodes:

      • line = connects to the ground
      • bottom of the triangle = connects to power
    46. it requires energy to pass through a diode and this results in a drop of voltage. This is typically a loss of about 0.7V

      Drop of voltage (important when talking about LEDs - special form of diodes)

    47. The most commonly encountered types of capacitors are ceramic disc capacitors that look like tiny M&Ms with two wires sticking out of them and electrolytic capacitors that look more like small cylindrical tubes with two wires coming out the bottom (or sometimes each end)

      Typical look of capacitors

    48. Capacitors are measured in Farads
      • picofarad (pF)
      • nanofarad (nF)
      • microfarad (uF)

      conversion chart

    49. Any resistor of over 1000 ohms is typically shorted using the letter K. For instance, 1,000 would be 1K

      1000 ohms = 1K

      1 000 000 ohms = 1M

    50. Anyhow... a resistor with the markings brown, black, orange, gold will translate as follows: 1 (brown) 0 (black) x 1,000 = 10,000 with a tolerance of +/- 5%

      Sample calculation of resistance

    51. You read the values from left to right towards the (typically) gold band
      • 1st two colors = resistor value
      • 3rd color = multiplier
      • 4th (gold band) = tolerance or precision of component

      You can tell the value of each color by looking at the color value chart, or by using graphical resistance calculator

    52. two different ways in which you can wire things together called series and parallel

      2 different ways to wire things

    53. switch does not add any resistance to a circuit and simply adding a switch between power and ground will create a short circuit

      Switch doesn't prevent short circuit

    54. Always make sure that you never accidentally connect positive voltage to ground while wiring things in parallel

      IMPORTANT!

    55. electricity always follows the path of least resistance to ground

      Having choice, positive voltage will pass through wire straight to ground, instead of motor to ground

    56. It is very important to prevent short circuits by making sure that the positive voltage is never wired directly to ground

      IMPORTANT!

    57. Shorts are bad because they will result in your battery and/or circuit overheating, breaking, catching on fire, and/or exploding

      Short circuits are bad

    58. there needs to be something wired between positive and ground that adds resistance to the flow of electricity and uses it up. If positive voltage is connected directly to ground and does not first pass through something that adds resistance, like a motor, this will result in a short circuit

      Resistance - prevents short circuit from happening

    59. Voltage is obviously rated in Volts

      Voltage = Volts

    60. There are two types of electrical  signals , those being alternating current (AC), and direct current (DC)

      2 types of electrical signals:

      • Alternating Current (AC)
      • Direct Current (DC)
    61. The rate of reversal is measured in Hertz, which is the number of reversals per second

      Hertz = number of reversals per second

    1. The result of the uniform interface is that requests from different clients look the same, whether the client is a chrome browser, a linux server, a python script, an android app or anything else

      Reason of the uniform interface - requests from different clients look the same

    2. The client can request code from the server, and then the response from the server will contain some code, usually in the form of a script, when the response is in HTML format. The client then can execute that code

      6) Code-on-demand (optional) - when the response is in HTML format, the response will come in form of a script, which can be executed

    3. data the server sends contain information about whether or not the data is cacheable. If the data is cacheable, it might contain some sort of a version number. The version number is what makes caching possible: since the client knows which version of the data it already has (from a previous response), the client can avoid requesting the same data again and again

      5) Cacheable - client can avoid requesting the same data again, thanks to remembering the version number of the cacheable data

    4. In order for an API to be RESTful, it has to adhere to 6 constraints

      6 constraints of RESTful API:

      1. uniform interface
      2. client - server separation
      3. stateless
      4. layered system
      5. cacheable
      6. code-on-demand (optional)
    5. there might be a number of servers in the middle. These servers might provide a security layer, a caching layer, a load-balancing layer, or other functionality

      4) Layered system - there's a number of server between the server and the response

    6. Stateless means the server does not remember anything about the user who uses the API

      3) Stateless - server doesn't store any history/information of user's requests

    7. client and the server act independently, each on its own, and the interaction between them is only in the form of requests, initiated by the client only, and responses, which the server send to the client only as a reaction to a request

      2) Client - server separation - client and server act independently, communicating through requests (client) and responses (server)

    8. Uniform interface

      1) Uniform interface has 4 parts:

      1. Request to the server includes resource identifier.
      2. Response from the server includes enough information so the client can modify the resource.
      3. Request to APi contains all the information server needs to perform the request, and vice versa.
      4. Hypermedia as the engine of application state - the server can inform the client, in a response, of the ways to change the state of the web application.
    1. What the server does when you, the client, call one of its APIs depends on 2 things that you need to provide to the server

      2 things required by the server:

      1. endpoint <--- identifier of a resource (its URL).
      2. HTTP method / verb <--- operation to perform: GET, POST, PUT, DELETE
    2. The representation of the state can be in a JSON format, and probably for most APIs this is indeed the case. It can also be in XML or HTML format

      JSON, XML or HTML <--- most popular formats of state representations

    3. It means when a RESTful API is called, the server will transfer to the client a representation of the state of the requested resource.

      Reason REST is named as REST:

      *REpresentational State Transfer*

    4. RESTful web application exposes information about itself in the form of information about its resources. It also enables the client to take actions on those resources, such as create new resources (i.e. create a new user) or change existing resources (i.e. edit a post).

      RESTful web application

    1. A single on/off decision is best understandable using a toggle switch.

      Single on/off option - use switch

    2. A single yes/no option is more usable with a checkbox.

      Single yes/no option - use checkbox

    3. Independent items use toggle switches for selection.

      Independent items - use switch

    4. To select related items in a list, use checkboxes.

      Related items (in a list) - use checkbox

    5. Sometimes toggle switch does not clearly indicate whether it is a state or action.

      Clear visual state - use checkbox

    6. Indeterminate state is best shown using a checkbox

      Indeterminate state - use checkbox

    7. Selecting multiple options in a list provides better experience using checkboxes.

      Multiple choices - use checkbox

    8. Checkboxes are preferred when an explicit action is required to apply settings.

      Settings confirmation - use checkbox

    9. The options that require instant response are best selected using a toggle switch.

      Instant response - use toggle switch

    1. The children watched an educational video that included clips from Sesame Street and covered math topics such as counting and addition as well as reading topics for comparison

      Base of mathematical experiment

    2. boys and girls as old as 8 had similar abilities when it came to perceiving numbers and grasping elementary mathematics concepts

      Girls and boys at age 8

    3. study of 104 children from ages 3 to 10 found similar patterns of brain activity in boys and girls as they engaged in basic math tasks

      Math looks the same in the brains of boys and girls

    4. factors other than biological differences explain why girls are less likely to pursue degrees and jobs in math and science
    5. males may be more likely to choose science because they are less likely than females to have strong reading, writing and language skills
    6. women in these countries are under less pressure to choose a field that promises an economic payback and have more freedom to pursue what interests them most.
    7. Yet paradoxically, females in wealthier countries with more gender equality, including the U.S., were less likely than females in other countries to get degrees in fields such as math and computer science.

      The wealthier the country, the least women in STEM

    1. With every negative emotion you’re experiencing, ask yourself: “Why am I feeling this? Is there a past experience that’s triggering this?”In short – sit with your discomforts, don’t run from them

      Dealing with negative emotions

    2. Be careful of excess coffee consumption – it’s very destructive to the adrenal glands
    1. The average American adult is sleeping 6 hours and 31 minutes per night 

      Average sleep duration

    2. A tiny percentage of people have the DEC2 gene, a genetic mutation that produces a short sleeping phenotype“The probability that you are a DEC2 carrier is very low… You’re far more likely to be struck by lightning in your lifetime.” – Dr. Matthew WalkerPeople with the DEC2 gene only need ~6.25 hours of sleep per night

      A very tiny percentage of the population having the DEC2 gene is okay with sleeping only 6 hours.

    1. Here’s a final tally for our comparison

      Comparison of code editors (basing on the ease of plugin development):

    1. BFS looks at each adjacent node and doesn't consider the children of those adjacent nodes. DFS looks at each adjacent node, and looks at all the children of the current adjacent nodes. It again, looks at the children of the next adjacent node (adjacent to the children of the prevoius)

      Difference between BFS (Breadth First Search) & DFS (Depth First Search)

  2. Oct 2019
    1. Humans are worse at this because we all have different goals, whereas all ants work towards the survival of their colonies.

      Ants are "immune" to traffic jams in their world

    1. The big idea behind Brave is that instead of supporting websites by viewing their banner ads, you can pay them directly through your browser

      How to make money with Brave Browser:

      1. You use money to buy Brave's Basic Attention Token (BAT) cryptocurrency, and that BAT goes into your Brave wallet.
      2. Brave will keep track of how much time you spend on each website or YouTube channel.
      3. Then Brave will divide up your BAT and pay websites and YouTube channels each month based on how much time you spent using them.

      This means instead of making a bunch of small individual donations to the dozens of websites and YouTube channels you use each month, you can just load money into Brave. Brave will then passively distribute that money for you.

    1. Tutorials and how-to guides are similar because they are both concerned with describing practical steps, while what how-to guides share with technical referenceis that they’re what we need when we are actually at work, coding. Reference guides and explanation are similar because they’re concerned with theoretical knowledge, and finally, what tutorials have in common with explanation is that they are most useful when we are studying, rather than actually working

      Difference between tutorials, how-to guides, explanation and reference:

    1. Summary: Napping
      • good siesta can double creative productivity
      • siesta should be taken 7-8 hours from natural waking
      • alarm clock undermines the value of napping
      • caffeine before the nap undermines the value of napping
      • caffeine after the nap may boost the effect of napping
      • one nap per day is optimum
      • habitual nappers improve nap quality over years of the habit
      • nap compensate slow-wave sleep needs in roughly 1:3 duration ratio
      • short night sleep may be a sign of bad health, aging, or a sign of good sleep (see: How long should we sleep?)
    2. NapNumber = 5.6 - 0.8*CoreSleep

      Nap number formula

    3. NapDuration = (SleepRequired - SleepObtained) / 3

      Nap duration formula (holds only for properly timed naps)

    4. Six naps no sleep; 4 naps one-point-five hours sleep; 3 naps three hours sleep; 2 naps four-point-five hours sleep; one nap six hours sleep*.

      PureDoxyk Law

    5. "Everyman sleep schedule". Were it not for that gravitation and a tendency to take a "core sleep", I might even suspect that the inventor of the Uberman sleep cycle suffered from a rare mutation that causes circadian arrhythmicity. People with that disorder cannot sleep well in a long block over the night and take multiple naps during the day

      Some people simply cannot sleep well in a long block over the night

    6. Even though naps provide an excellent compensation for lost sleep in the night, they cannot provide a full functional replacement. To achieve your maximum cognitive capacity, you need to run your night sleep uninterrupted until completion!

      Don't try to fully replace your night time sleep with naps!

    7. Early naps will not provide full compensation. Late naps will last longer and will shorten sleep in the following night

      Consequence of early and late naps

    8. For a nap to express its full power, the following conditions must be met (in order of importance): it should take place at the center of the midday circadian nadir (see: Best nap timing). This corresponds with Mediterranean siesta it cannot be regulated with alarm clocks, caffeine, or other sleep "tricks". Coffee naps are a good idea for people in a hurry, not for those who care about brain productivity it should be the only nap of the day (i.e. it cannot be part of a polyphasic sleep schedule) it works best in free running sleep with no sleep deficit it works best in people with no physical or mental health issues it works best in habitual nappers who improved the quality of their naps from month to month by adjusting and perfecting little details in their surroundings. Beginners are often too anxious to fall asleep

      How to correctly perform a power nap

    9. each hour of lost night sleep requires 20 min. of replacement nap time

      60 minutes of lost night sleep = 20 minutes of nap time

    10. The art of napping has the power to double creative productivity. Churchill was a famous biphasic sleeper. His naps let him squeeze two productive days into 24 hours

      Nap can let you be creative twice in 24 hours

    1. Analysis of data collected in 1970 from 48.738 young Swedish men, compared to national suicide registers, shows that lower intelligence increases suicide risk. Low emotional control significantly contributes to suicide in young men, but becomes less of a factor with age. Low intelligence, however, remains a significant contributor to male suicide throughout life.

      Intelligence as well as emotional control significantly contribute to male suicide

    1. In general, use synchronous communication when the following is true
      • You want to build rapport with people (e.g., a 1-on-1 or team meeting).
      • You need to provide critical feedback or discuss other sensitive topics.
      • You have a lot of unknowns and you want to brainstorm different ideas and solutions.
      • There are a lot of moving variables and you want to bring everyone on the same page quickly, e.g., via a project kickoff meeting.
      • A crisis happens that requires immediate attention, e.g., a server crashes. We use Telegram with the notifications turned on at all times for emergency communications only.
    2. Pyramid of Remote Team Communication post.

    3. It’s hard to build rapport and personal relationships with only written communication

      Disadvantage of async communication

    4. Slack boasts that users spend 9+ hours per workday connected to the app. 90 minutes of active usage spread over 9 hours is a whole lot of interruptions.

    5. 2015 study conducted by Yahoo Labs found that the most common email response time was just 2 minutes

      Common e-mail response time = 2 minutes

    6. synchronous communication is when you send a message and the recipient processes the information and responds immediately. In-person communication, like meetings, are examples of purely synchronous communication

      synchronous communication

    7. asynchronous communication is when you send a message without expecting an immediate response. For example, you send an email. I open and respond to the email several hours later

      asynchronous communication

    8. Study after study after study into remote work has made one thing clear: Remote workers are more productive than their office-bound counterparts.

      The question is: why?

      Answer is: it's not just because of the time saved by avoiding commuting

    1. The top reasons why a product fails:It’s too complicated – simplicity is kingIt doesn’t spread by word-of-mouthIt doesn’t take advantage of the power of iterationThe founder is too fearful of creating something novelIt’s not launched into a community

      Think about it before developing a commercial product

    1. principle of least privilege states that any process, user or program has only the privileges it needs to do its job

      Principle of least privilege

    2. If you really want to impress your security consultant, then casually mention Kerckhoffs Principle which is a more formal way of saying ‘security through obscurity is not sufficient’

      Kerckhoffs Principle

    3. Hashing is the process of turning one set of data into another through a reproducible algorithm

      Hashing

    4. symmetric key is. It’s a key that is ‘the same’ one used on both sides of the communication

      Symmetric key

    5. asymmetric key is one where access to the key used to encrypt the message does not imply access to decrypt the message

      Asymmetric key

    6. Authorization is the process of determining whether you are allowed to do something or not

      Authorisation

    7. Security through obscurity is security through the design of a system. In other words, if the design of your system were to become public then it would be easy to expose

      Security Through Obscurity

    8. Role-Based Access Control gives permission to a more abstract entity called a role. Rather than giving access to that user directly, you give the user access to the role, and then that role has the access permissions set for it

      Role-Based Access Control (RBAC)

    9. This is why it’s important to ‘salt‘ your hash with a secret key so that knowledge of the hash algorithm isn’t enough to crack a lot of passwords

      Improving hashing algorithms

    10. Encryption vs Encoding

      Encoding - converting some data into some other format

      Encryption - involves needing some secret or secure process to get access to the data, like a private 'key' that you store in your ~/.ssh folder

    1. for many women and purple can induce soothing and calmness with the image of royalty

      purple colour

    2. Colours and emotion 

      Colours and emotion

    3. Both men and women have blue as their top colour

      Blue wins

    4. The colours black & white have opposing meaning in western and eastern cultures

      west culture:

      • black = finality, death, formality
      • white = purity, peace

      east culture:

      • white = death
      • black = wealth, health, prosperity
    5. Think of each colour in context of its environment, for example do you have a mostly grey, white or muted colours on your website then make your call to action button(s) green or red

      There is no universal guide in choosing website colours. Go with your own intuition

    6. our brain processes visuals 60,000x faster than text
    7. Colour is such a pervasive part of everything we encounter visually in our world, it evokes emotions which in turn drives decision making

      Effect of colour

    8. When creating or refining your brand identity think about pairing your main colour with a complimentary colour or use the 3 grouping guides below

      colour harmony

    9. We are using colour to communicate the value of our product or service
      • Red – Passionate, Aggressive, Important
      • Orange – Playful, Energetic, Cheap
      • Yellow – Happy, Friendly, Warning
      • Green – Natural, Stable, Prosperous
      • Blue – Serene, Trustworthy, Inviting
      • Violet – Luxurious, Mysterious, Romantic
      • Pink – Feminine, Young, Innocent
      • Black – Powerful, Sophisticated, Edgy
      • Brown – Earthy, Sturdy, Rustic
      • Grey – Neutral, Formal, Gloomy
      • White – Clean, Virtuous, Healthy
      • Beige – Accentuates surrounding colours
    10. our eyes can only pick up certain light wavelengths

      We can only pick up the visible spectrum Colors

    11. The theory of colour is a discipline that stretches back to at least the 15th century. It encompasses chemistry, physics and mathematics to effectively explain colour

      The theory of colour

    12. There are 2 primary colour systems (to reproduce colour) we use on a daily basis additive & subtractive. Anything that emits light (sun, screen or projector) uses additive and everything else reflects colour and uses subtractive colour

      2 primary colour systems: 2 primary colour systems

    13. The colour wheel is where you need to start when planning a colour scheme or branding for your business and for sales and marketing campaigns. The colour wheel consists of primary, secondary and tertiary colours.
      1. Primary: can not be made from any other colours
      2. Secondary: formed by mixing the primary colours
      3. Tertiary: formed by mixing primary and secondary colours colour wheel
    14. round shapes are more trustworthy & straight sharp edges are more striking
    1. “When scientists analyze people who appear to have tremendous self-control, it turns out those individuals aren’t all that different from those who are struggling. Instead, “disciplined” people are better at structuring their lives in a way that does not require heroic willpower and self-control.” - Atomic Habits

      Where all the self-control comes from...

    2. “The professional has learned that success, like happiness, comes as a by-product of work.” - The War of Art

      Where all the happiness comes from...

    3. “To write a great book, you must first become the book.”  - Atomic Habits
    4. I could and probably will write an entire article (or 10) on how I approach SEO research, but for the purpose of this article, I’ll just share that I use these tools: Ahrefs, Keyword Planner, and Keywords Everywhere.

      SEO tools to consider while writing a blog post:

    5. Conversations, books and articles, personal experiences, and random Google searches

      Sources of ideas

    6. What is something that I can uniquely contribute?

      Good question to ask while searching for idea to write about

    7. I set an open invitation to my brain to take note of anything interesting. More specifically, I look for anything within the intersection of: (1) interesting, (2) doesn’t exist online in that exact form, and (3) something I can contribute uniquely to

      Ideation - look for topics to write about: Idea Ikigai

    8. In my opinion, writing should never be something that you do just to check off of your to-do list. At its core, writing is a mechanism to try to deliver value to others. And over time, I’ve defined that as my core goal.

      Indeed, writing for others is a great devotion

    9. There’s a great tool called Draftback, which essentially lets you “go back in time to look over your own shoulder as you write”

      Draftback Chrome Extension allows to "rewatch" your writing process

    10. Writing Process Steps:Ideation: PassiveTracking: ActiveOutline - ActiveIdea Arbitrage - PassiveResearch - ActiveWriting - Active

      Proposition of steps to follow while writing. Active state requires a "hard-core execute mode".

      1. Ideation (passive)
      2. Tracking (active)
      3. Outline (active)
      4. Idea Arbitrage (passive)
      5. Research (active)
      6. Writing (active)
    11. Practice makes any seemingly impossible task familiar

      Well said

    1. LINQ (a querying syntax in C# and VB.NET) uses the order FROM ... WHERE ... SELECT

      LINQ starts queries in a different order:

      1. FROM
      2. WHERE
      3. SELECT
    2. Database engines in practice don’t actually run queries by joining, and then filtering, and then grouping, because they implement a bunch of optimizations reorder things to make the query run faster as long as reordering things won’t change the results of the query

      SQL queries are run by database engines in different order than we write them down

    3. SELECT isn’t the first thing, it’s like the 5th thing!

      Order of SQL queries:

      1. FROM/JOIN and all the ON conditions
      2. WHERE
      3. GROUP BY
      4. HAVING
      5. SELECT (including window functions)
      6. ORDER BY
      7. LIMIT SQL queries happen in this order* 1.
    1. The vertical bar on the letter T represents the depth of related skills and expertise in a single field, whereas the horizontal bar is the ability to collaborate across disciplines with experts in other areas and to apply knowledge in areas of expertise other than one's own.

      T shaped knowledge

  3. Sep 2019
    1. To address the availability concern, new architectures were developed to minimize the impact of partitions. For instance, splitting data sets into smaller ranges called shards can minimize the amount of data that is unavailable during partitions. Furthermore, mechanisms to automatically alter the roles of various cluster members based on network conditions allow them to regain availability quickly

      Qualities of NewSQL - mainly minimisation of the impact of partitions

    2. typically less flexible and generalized than their more conventional relational counterparts. They also usually only offer a subset of full SQL and relational features, which means that they might not be able to handle certain kinds of usage. Many NewSQL implementations also store a large part of or their entire dataset in the computer's main memory. This improves performance at the cost of greater risk to unpersisted changes

      Differences between NewSQL and relational databases:

      • typically less flexible and generalized
      • usually only offer a subset of full SQL and relational features, which means that they might not be able to handle certain kinds of usage.
      • many NewSQL implementations also store a large part of or their entire dataset in the computer's main memory. This improves performance at the cost of greater risk to unpersisted changes.