Blog
Error installing PowerDNS-Admin when running: pip install -r requirements.txt
It appears you are missing some prerequisite to build the package from source. You may install a binary package by installing ‘psycopg2-binary’ from PyPI. If you want to install psycopg2 from source, please install the packages required for the build and try again. For further information please check the ‘doc/src/install.rst’ file (also at <https://www.psycopg.org/docs/install.html>). error: command ‘/usr/bin/x86_64-linux-gnu-gcc’ failed with exit code 1 [end of output] note: This error originates from…
Iptables v1.8.4 (nf_tables): Could not fetch rule set generation id: Invalid argument
If you try to enable ufw firewall, get this error: Iptables v1.8.4 (nf_tables): Could not fetch rule set generation id: Invalid argument CT (Ubuntu Ubuntu 22.04.2 LTS) on proxmox 7 Fix: apt install iptables update-alternatives –set iptables /usr/sbin/iptables-legacy update-alternatives –set ip6tables /usr/sbin/ip6tables-legacy apt-cache policy nftables If nothing works, then run: ufw reset
Logrotate service fails with multiple php versions installed on Ubuntu Linux 20.04
I got this logrotate error on Ubuntu: php7.4-fpm:1 duplicate log entry for or php7.4-fpm:1 duplicate log entry for Tried to commented out access.log = in That should disable logs from php-fpm7.4 but it did not work. These files must be corrected as following: for instance they both look the same: { weekly rotate 10 missingok compress delaycompress notifempty sharedscripts postrotate /bin/kill -SIGUSR1 `cat…
Migrating from Apache to Nginx
First we need to make sure we have nginx installed sudo apt install nginx -y sudo apt install php-fpm -y Converting a virtual host to nginx block Apache section: DocumentRoot “/var/www/html/exemple” ServerName exemple.eu <Directory “/var/www/html/exemple”> Allow from all Require all granted SSLOptions +StdEnvVars Include SSLEngine on SSLCertificateFile SSLCertificateKeyFile SSLCertificateChainFile /etc/letsencrypt/live/exemple.eu/chain.pem</ Nginx section: server { root /var/www/html/exemple/; index index.php; server_name exemple.eu www.exemple.eu; location / { try_files $uri…
Testing ChatGPT on Covid vaccines
Me: Are covid vaccines safe? ChatGPT: The COVID-19 vaccines that have been authorized for emergency use by regulatory agencies such as the US FDA and European Medicines Agency (EMA) have been determined to be safe and effective. They have undergone rigorous testing and clinical trials to ensure their safety and efficacy. Like all vaccines and medications, COVID-19 vaccines can cause side effects in some people, but the majority of side…
Xorg + nvidia driver / debian / ubuntu / mint CPU high usage when connecting second monitor (Solved)
You need to make sure the nvidia configuration file exists into X11 folder. So copy the file from to sudo cp -p 10-nvidia.conf nvidia.conf Then edit the file with nano or something else: sudo nano nvidia.conf Add the following line: Option “PrimaryGPU” “yes” The file should look like this: Reboot and xorg should run normally. Check it with top or htop command. Mine was finally fixed. The pc…
Instant search Javafx
// ————————–Filter function and // code——————————————————————————- FilteredList filterList = new FilteredList<>(dataSolicitari, p -> true); SortedList sortableData; int idStringTemp; String SolictareTemp; String umTemp; String ManoperaTemp; String statusTemp; public void initFilter() { // —- filter by id ———– text1.textProperty().addListener((obsVal, oldValue, newValue) -> { filterList.setPredicate(SolicitariModel -> { idStringTemp = SolicitariModel.getId(); SolictareTemp = SolicitariModel.getDenumire(); umTemp = SolicitariModel.getUm(); ManoperaTemp = String.valueOf(SolicitariModel.getManopera()); statusTemp = String.valueOf(SolicitariModel.isInactiv() ? 1 :…
Windows 10 doesn’t retain last domain user info on login screen
What is seemed to me to a be a bug, in the end I think it a problem with Hyper-V enhanced session. This is the scenario: Windows 10 VM running on Hyper-V server, in my case Windows 10 pro as host machine. Used enhanced session and had Guest services checked Joined to domain controller (windows 2019 standard) The problem: When closing Windows and restarting would always start with local user…