2,472 Matching Annotations
  1. Nov 2019
    1. 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 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.
    3. using a mixture of different database types is the best approach for handling the data of your projects

      Many times mixing different databases is a good approach.

      For example:

      • store user information - relational databases
      • configuration values - in-memory key-value store
    4. best suited for use cases with high volumes of relational data in distributed, cloud-like environments

      Best suit of NewSQL

    5. CAP theorem is a statement about the trade offs that distributed databases must make between availability and consistency. It asserts that in the event of a network partition, a distributed database can choose either to remain available or remain consistent, but it cannot do both. Cluster members in a partitioned network can continue operating, leading to at least temporary inconsistency. Alternatively, at least some of the disconnected members must refuse to alter their data during the partition to ensure data consistency

      CAP Theorem relating to distributed databases

      CAP

    6. NewSQL databases: bringing modern scalability and performance to the traditional relational pattern

      NewSQL databases - designed with scalability and modern performance requirements. Follow the relational structure and semantics, but are built using more modern, scalable design. Rise in popularity in 2010s.

      Examples:

      • MemSQL
      • VoltDB
      • Spanner
      • Calvin
      • CockroachDB
      • FaunaDB
      • yugabyteDB
    7. aggregate queries like summing, averaging, and other analytics-oriented processes can be difficult or impossible

      Disadvantage of column databases

    8. Column-family databases are good when working with applications that requires great performance for row-based operations and highly scalability

      Advantage of column databases. They also collect row data in a cluster on the same machine, simplifying data sharding and scaling

    9. it helps to think of column family databases as key-value databases where each key (row identifier) returns a dictionary of arbitrary attributes and their values (the column names and their values)

      Tip to remember the idea of column databases

    10. Column-family databases: databases with flexible columns to bridge the gap between relational and document databases

      Column-family databases - also called as non-relational column stores, wide-column databases or column databases. Rise in popularity in 2000s. Look highly similar to relational databases. They have structure called column families, which contain rows of data, each of which define their own format. Therefore, each row in a column family defines its own schema.

      Examples:

      • Cassandra
      • HBase

      Diagram of column-family database structure

    11. querying for the connection between two users of a social media site in a relational database is likely to require multiple table joins and therefore be rather resource intensive. This same query would be straightforward in a graph database that directly maps connections

      Social media prefers graph databases over relational ones

    12. Graph databases are most useful when working with data where the relationships or connections are highly important

      Major use of graph databases

    13. network databases require step-by-step traversal to travel between items and are limited in the types of relationships they can represent.

      Difference between network databases (SQL) and graph databases (NoSQL)

    14. Graph databases: mapping relationships by focusing on how connections between data are meaningful

      Graph databases - establishes connections using the concepts of nodes, edges, and properties. Rise in popularity in 2000s.

      Examples:

      • Neo4j
      • JanusGraph
      • Dgraph

      Diagram of a graph database structure

    15. Document databases: Storing all of an item's data in flexible, self-describing structures

      Document databases - also known as document-oriented databases or document stores, share the basic access and retrieval semantics of key-value stores. Rise in popularity in 2009.

      They also used keys to uniquely identify data, therefore the line between advanced key-value stores and document databases can be fairly unclear.

      Instead of storing arbitrary blobs of data, document databases store data in structured formats called documents, often using formats like JSON, BSON, or XML.

      Examples:

      • MongoDB
      • RethinkDB
      • Couchbase

      Diagram of document database

    16. Document databases are a good choice for rapid development because you can change the properties of the data you want to save at any point without altering existing structures or data. You only need to backfill records if you want to. Each document within the database stands on its own with its own system of organization. If you're still figuring out your data structure and your data is mainly composed discrete entries that don't include a lot of cross references, a document database might be a good place to start. Be careful, however, as the extra flexibility means that you are responsible for maintaining the consistency and structure of your data, which can be extremely challenging

      Pros and cons of document databases

    17. Though the data within documents is organized within a structure, document databases do not prescribe any specific format or schema

      Therefore, unlike in key-value stores, the content stored in document databases can be queried and analysed

    18. Key-value stores are often used to store configuration data, state information, and any data that might be represented by a dictionary or hash in a programming language. Key-value stores provide fast, low-complexity access to this type of data

      Use and advantages of of key-value stores

    19. Key-value databases: simple, dictionary-style lookups for basic storage and retrieval

      Key-value databases - one of the simplest database types. Initially introduced in 1970s (rise in popularity: 2000-2010). Work by storing arbitrary data accessible through a specific key.

      • to store data, you provide a key and the blob of data you wish to save, for example a JSON object, an image, or plain text.
      • to retrieve data, you provide the key and will then be given the blob of data back.

      Examples:

      • Redis
      • memcached
      • etcd

      Diagram of key-value store

    20. NoSQL databases: modern alternatives for data that doesn't fit the relational paradigm

      NoSQL databases - stands for either non-SQL or not only SQL to clarify that sometimes they allow SQL-like querying.

      4 types:

      • Key-value
      • Document
      • Graph
      • Column-family
    21. relational databases are often a good fit for any data that is regular, predictable, and benefits from the ability to flexibly compose information in various formats. Because relational databases work off of a schema, it can be more challenging to alter the structure of data after it is in the system. However, the schema also helps enforce the integrity of the data, making sure values match the expected formats, and that required information is included. Overall, relational databases are a solid choice for many applications because applications often generate well-ordered, structured data

      Pros and cons of relational database

    22. querying language called SQL, or structured query language, was created to access and manipulate data stored with that format

      SQL was created for relational databases

    23. Relational databases: working with tables as a standard solution to organize well-structured data

      Relational databases - oldest general purpose database type still widely used today. They comprise the majority of databases currently used in production. Initially introduced in 1969.

      They organise data using tables - structures that impose a schema on the records that they hold.

      • each column has a name and a data type
      • each row represents an individual record

      Examples:

      • MySQL
      • MariaDB
      • PostgreSQL
      • SQLite

      Diagram of relational schema used to map entities for a school

    24. database schema is a description of the logical structure of a database or the elements it contains. Schemas often include declarations for the structure of individual entries, groups of entries, and the individual attributes that database entries are comprised of. These may also define data types and additional constraints to control the type of data that may be added to the structure

      Database schema

    25. Network databases: mapping more flexible connections with non-hierarchical links

      Network databases - built on the foundation provided by hierarchical databases by adding additional flexibility. Initially introduced in late 1960s. Instead of always having a single parent, as in hierarchical databases, network database entries can have more than one parent, which effectively allows them to model more complex relationships.

      Examples:

      • IDMS

      Have graph-like structure Diagram of a network database

    26. Hierarchical databases: using parent-child relationships to map data into trees

      Hierarchical databases - the next evolution in database development. Initially introduced in 1960s. They encode a relationship between items where every record has a single parent.

      Examples:

      • Filesystems
      • DNS
      • LDAP directories

      Have tree-like structure Diagram of a hierarchical database

    27. Hierarchical databases are not used much today due to their limited ability to organize most data and because of the overhead of accessing data by traversing the hierarchy

      Hierarchical databases aren't used as much anymore

    28. The first flat file databases represented information in regular, machine parse-able structures within files. Data is stored in plain text, which limits the type of content that can be represented within the database itself. Sometimes, a special character or other indicator is chosen to use as a delimiter, or marker for when one field ends and the next begins. For example, a comma is used in CSV (comma-separated values) files, while colons or white-space are used in many data files in Unix-like systems

      Flat-file databases - 1st type of databases with a simple data structure for organising small amounts of local data.

      Examples:

      • /etc/passwd and /etc/fstab on Linux and Unix-like systems
      • CSV files
    29. Some advantages of this format

      Advantages of flat-file format:

      • has robust, flexible toolkit
      • easily managed without specialised software
      • easy to understand and work with
    30. While flat file databases are simple, they are very limited in the level of complexity they can handle

      Disadvantages of flat-file databases:

      • system that reads or manipulates the data cannot make easy connections between the data represented
      • usually don't have any type of user or data concurrency features either
      • usually only practical for systems with small read or write requirements. For example, many operating systems use flat-files to store configuration data
    1. One of the earliest interactions with a customer is to signal a lack of trust. The bartender is suggesting the customer will leave without paying.

      Show your trust to the customer

    2. I think many business owners do not consider the subconscious effects on how they manage their business

      Don't forget about the subconscious effects

    3. In another example, there is a plaza near where I work that has a number of eating options but my preferred is a sandwich place at the far end of the building. When I pull in I often look for parking in front, if there is not I might need to go to the opposite end of the plaza to find parking. While walking to the sandwich shop I pass by 3 other places to eat. I almost never make it to the sandwich shop. I always convince myself to try something different before getting to the front door of my go-to lunch spot

      That's what would happen if your customers would need to take a long walk from the other end of the parking lot

    4. the experience his customers have while visiting him was very important to him and it started when they pulled into the parking lot. In his view, they should have front row parking

      Why to park far away from your own business office

    1. "Secrecy is the first law of Magic" - from Julia Cameron's Artist's Way.Talking about your project seems to spread your energy in every direction other than towards completion.

      Inspiring comment