- Imagine you have to find a color that looks good both on black and white.
- By "looking good" I mean conforming at least WCAG AA Contrast (Minimum), which is a ratio of 4.5:1.
- NOTE Contrast ratios can range from 1 to 21 (commonly written 1:1 to 21:1).
- Simple math, right?
- You take two values and divide them.
- Then getting the R, G, and B values is done by a simple division (divide by 12.92) if the normalized value is less than or equal to 0.03928, or applying the exponential formula above if the normalized value is greater than 0.03928.
- The final step is summing the these three values with different weights.

- Imagine you have to find a color that looks good both on black and white.
- By "looking good" I mean conforming at least WCAG AA Contrast (Minimum), which is a ratio of 4.5:1.
- NOTE Contrast ratios can range from 1 to 21 (commonly written 1:1 to 21:1).
- Simple math, right?
- You take two values and divide them.
- Then getting the R, G, and B values is done by a simple division (divide by 12.92) if the normalized value is less than or equal to 0.03928, or applying the exponential formula above if the normalized value is greater than 0.03928.
- The final step is summing the these three values with different weights.

- A hashmap is basically just an array, and a way to convert keys to a seemingly-random index in that array (a hash function).
- How we choose to solve this problem is basically the entire problem with implementing a HashMap. A very simple solution is as follows: just walk along the array until we find an empty index (or matching key to overwrite).
- Tombstones are like free spots for insertion, but they let our search algorithm know that there used to be something there, so we should keep searching past that spot in case it displaced the key we're looking for.
- Knowing nothing else about our implementation, I would tend to favour the "single complex loop" approach, because it seems like it would do less work under heavy loads.
- But hey, that double simple loop looks familiar, what was that implementation that was troubling us again?

- Employers don't head into job interviews with the intent to verify everything you put down on your resume, but they will quickly get suspicious when they receive a series of vague and unconvincing responses to in-depth questions about a your previous work experience.
- A question like, "Exactly how many months did you work at [X company]?" or a simple phone call to your past employer is all they need to find out about your tendency to be deceptive.
- Two such ways they can go about this are by handing out exams as part of the interview process or by asking simple questions that candidates should be able to answer if they are indeed proficient at the skills on their resume.
- Peter Yang is a career expert and the CEO of Resume Writing Services, the parent company of ResumeGo. Before that, he worked as a manager and recruiter for more than 20 years.

- GRAPES-3 is designed to detect muons (a heavier cousin to the electron and positron) that are generated as gamma rays hit the Earth’s atmosphere.
- Instead of ignoring this, the researchers (while keeping their heads low), installed a set of electric field monitors at various distances from the observatory and started logging electric field strength every time a storm passed over.
- The model also included other high-energy muon production mechanisms, which allowed the researchers to exclude them as the source.
- These changes were also modeled and found to be consistent with the very high accelerating potential passing over the observatory.
- So, I guess the researchers mean that if you could extract energy from the storm as it passed over, you would have an average power flow of about 2GW for six minutes.