Some times we have following cases
- Where the variable of interest can only be measured indirectly.
- Measurements are available from various sensors but might be subject to noise.
We can use Kalman Filter for those cases, but remember, general Kalman Filter works well for objects/measurements changing at constant velocity or constant acceleration.
Linux Caddy Postgresql PHP
Installation
Linux
Debian 11
Caddy
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
PHP
sudo apt update && sudo apt full-upgrade -y
sudo apt install php php-fpm php-cli php-gd -y
Postgresql
sudo apt install postgresql php-pgsql -y
Configuration
Caddy
sudo nano /etc/caddy/Caddyfile
php.acytoo.com {
root * /var/www/php.acytoo.com
log {
output file /var/log/caddy/php.acytoo.com.log
}
encode gzip
php_fastcgi unix//run/php/php7.4-fpm.sock
}
file_server vs php
根据 Debian Wiki, 从 Debian 9 (Stretch) 开始,Debian 官方库中的 Mysql 就被 MariaDB 替代了,无奈今天必须安装 Mysql 到 Debian 11。
记录一下 C++ 中不同进制的表示方法。C++ 默认是 10 进制,需要注意的是,直到 C++ 14 时,二进制的 0b 表示法才被确定为标准,在 C++ 14 前,GCC 支持0b 的用法。