Background: 000000
BLUE 3B78FF
BLACK FFFFFF
CYAN 3A96DD
GREEN 13A10E
MAGENTA ED19D2
RED D83545
The Holocaust lasted around 4 years, and killed about 6'000'000 Jews. | |
The Nazi regieme and its civilian and military collaborators industrialised murder, and managed around 1.5 million killed per year. | |
We rightfully hold those complicit in contempt. | |
Cars directly kill about 1.6 million a year. Every year, for decades. |
// From https://tech.ebayinc.com/engineering/fast-approximate-logarithms-part-i-the-basics/ | |
float fastlog2(float x) // compute log2(x) by reducing x to [0.75, 1.5) | |
{ | |
// a*(x-1)^2 + b*(x-1) approximates log2(x) when 0.75 <= x < 1.5 | |
const float a = -.6296735; | |
const float b = 1.466967; | |
float signif, fexp; | |
int exp; | |
float lg2; | |
union { float f; unsigned int i; } ux1, ux2; |
dark and light sand. One magnetic, one not. Fill at top in pattern to write the time. Slowly drain out the bottom and separate with magnets.
Once there was a young rat named Arthur, who could never make up his mind. Whenever his friends asked him if he would like to go out with them, he would only answer, "I don't know." He wouldn't say "yes" or "no" either. He would always shirk making a choice.
His aunt Helen said to him, "Now look here. No one is going to care for you if you carry on like this. You have no more mind than a blade of grass."
One rainy day, the rats heard a great noise in the loft. The pine rafters were all rotten, so that the barn was rather unsafe. At last the joists gave way and fell to the ground. The walls shook and all the rats' hair stood on end with fear and horror. "This won't do," said the captain. "I'll send out scouts to search for a new home."
Within five hours the ten scouts came back and said, "We found a stone house where there is room and board for us all. There is a kindly horse named Nelly, a cow, a calf, and a garden with an elm tree." The rats crawled out of their little houses and stood on the floor in a l
'strict'; | |
function log(msg){document.getElementById('outp').innerText+= msg+"\r\n";} | |
log("Reed solomon octal coding for short messages\r\n"); | |
const extraCodes = 2; | |
let orig = [46,219,120,55]; | |
let int32Val = (orig[0] << 24) + (orig[1] << 16) + (orig[2] << 8) + orig[3]; | |
log("tag value="+int32Val); |
using System.IO.MemoryMappedFiles; | |
using System.Runtime.InteropServices; | |
namespace MemMapTests; | |
internal static class Program | |
{ | |
private const long Megabyte = 1048576; | |
private const long Kilobyte = 1024; |
On Linux: lsof -PniTCP -r 1 | grep 1.2.3.4
On Windows: netstat -tabn 10 | find "1.2.3.4"
Take a normal forth-like
25 4 * 100 = // true
Add parenthesis as a re-write rule, and move one symbol from the left to the right
write(2 4 *)
becomes 2 4 * write