Consider a list of strings you need to permanently assign a random color.
First you should turn the string into a hash.
var string = "string"
var hash = 0
# Installed barrier_breaker rc2 OpenWrt image | |
# Set computer to 192.168.1.2 | |
telnet 192.168.1.1 | |
passwd | |
# Set new root password; this enables ssh | |
# Set up the wired network interface as a DCHP client | |
cat > /etc/config/network <<\EOF |
{ | |
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"], | |
"registry-mirrors": [], | |
"insecure-registries": [ | |
"172.16.197.20:5000" | |
] | |
} |
BIOS: EC-ARB20A-1.15-T01
Proxmox VE: 7.3-1
This is a guide to get the Ryzen 7 7735HS with integrated graphics running with proxmox inside a Windows VM.
#include <exception> | |
#include <functional> | |
#ifdef __EMSCRIPTEN__ | |
#include <emscripten.h> | |
#include <SDL.h> | |
#include <SDL_image.h> | |
#include <SDL_ttf.h> |
Some random notes on trying (and failing) to get Proxmox as host with 5700G APU GPU PCI Passthrough to Ubuntu guest VM working:
References:
SSH into proxmox node and become root user. Run the following commands to download extra software dependencies we'll need.
apt update
apt install -y libsasl2-modules mailutils
Enable 2FA for the gmail account that will be used by going to security settings
// Zero-Clause BSD (more permissive than MIT, doesn't require copyright notice) | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any purpose | |
// with or without fee is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS | |
// OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |