PHP 8.4 Property Hooks: Simplify and Streamline Properties

Published on 2024-11-23


public int $postalCode {
    set {
        if (mb_strlen($value) !== 5) {
            throw new \InvalidArgumentException('Must be 5 characters.');
        }
        $this->postalCode = $value;
    }
}

Introducing Property Hooks in PHP 8.4 [...]

PHP 8.4 New Features: Discover What's New and Improved

Published on 2024-11-23


user@server:~$ php -v
PHP 8.4.1 (cli) (built: Nov 21 2024 14:54:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.1, Copyright (c) Zend Technologies
with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies
with Xdebug v3.4.0beta1, Copyright (c) 2002-2024, by Derick Rethans

[...]

How to Upgrade From MariaDB 11.3 to MariaDB 11.4

Published on 2024-10-01


user@server:~$ mariadb --version
mariadb from 11.4.3-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper

Upgrade to MariaDB 11.4 from MariaDB 11.3 [...]

Make ThinkPad T14 Gen 5 AMD Compatible With Linux Mint & Ubuntu

Published on 2024-09-28


Distributor ID:	Linuxmint
Description: Linux Mint 22
Release:	22
Codename: wilma

How to make the ThinkPad T14 Gen 5 AMD compatible with Linux 22 / Ubuntu 24.04 [...]

ThinkPad T14 AMD - Mint 22 - Fix Auto Brightness Reduction After Suspend

Published on 2024-09-28


sudo nano /usr/local/bin/reset-brightness.sh

How to fix auto-dimming brightness after sleep issue on ThinkPad T14 Gen 5 AMD running Linux Mint 22 [...]

ThinkPad T14 Gen 4 / Gen 5 AMD - Fix WiFi on Ubuntu - QCNFA765

Published on 2024-09-27


wifi.powersave = 2

ThinkPad T14 AMD / Qualcomm QCNFA765 NFA725A Chipset - Fix WiFi on Linux / Ubuntu 24.04 / Mint 22 [...]

Remove Casper-md5check Service Error After Boot on Linux

Published on 2024-09-26


Sep 11 08:35:36 lnv-14 systemd[1]: Failed to start casper-md5check.service - casper-md5check Verify Live ISO checksums.

Fix the casper-md5check.service error after boot on linux [...]

AMD CPU: Remove Thermald Error on Linux Mint

Published on 2024-09-25


thermald[1570]: Unsupported cpu model or platform

Remove Thermald error on Linux Mint 22 [...]

ThinkPad T14 Gen 5 AMD - Linux - Fix Battery Drain Issue in Sleep Mode

Published on 2024-09-15


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi.ec_no_wakeup=1"

Laptop Lenovo ThinkPad T14 Gen 5 (AMD) - Fix battery drain issue during sleep mode (suspend to RAM mode) with Linux / Ubuntu 24.04 / Mint 22 / Etc. [...]

How to Upgrade From Debian 11 to Debian 12

Published on 2024-03-17


VERSION="12 (bookworm)"

Upgrade to Debian 12 Bookworm from Debian 11 Bullseye [...]

How to Upgrade From MariaDB 10.5 to MariaDB 10.6

Published on 2021-10-15


user@server:~$ mariadb --version
mysql  Ver 15.1 Distrib 10.6.*-MariaDB, for debian-linux-gnu (x86_64)

Upgrade to MariaDB 10.6 from MariaDB 10.5 [...]

How to Upgrade From Debian 10 to Debian 11

Published on 2021-08-30


VERSION="11 (bullseye)"

Upgrade to Debian 11 Bullseye from Debian 10 Buster [...]

PHP Problem: Floating Point Precision - BC Math & Round

Published on 2021-05-20


<?php

// Problem:
var_dump( 2161.06+1498.47 );
// result (error): float(3659.5299999999997)

// Solution with BC Math:
var_dump( bcadd('2161.06', '1498.47', 13) );
// result (success): string(18) "3659.5300000000000"

PHP Problem: floating point precision. Solution: BC ... [...]