Step-by-step guides for the work we actually do — Laravel, PHP, WordPress, MySQL, Linux servers, and the occasional rabbit hole. Every command has been run on a real machine; nothing is theoretical.
Install HandBrake CLI on Linux with Flatpak (the official path) — flatpak install fr.handbrake.HandBrakeCLI. Includes RPM Fusion and apt alternatives.
Install and configure HAProxy on AlmaLinux, Rocky Linux, RHEL, or CentOS — dnf install, minimal frontend/backend config, firewalld setup, zero-downtime…
Fix MySQL CONCAT() returning NULL on a NULL field — wrap with COALESCE(col, '') or use CONCAT_WS(), which skips NULL…
Get the selected radio button's value with jQuery using $('input[name="..."]:checked').val(). Includes change-event handler and the vanilla JS equivalent.
Get the last item from a PHP array with end($arr), $arr[array_key_last($arr)], or array_slice($arr, -1)[0]. Includes the array_pop variant when you…
Get the first character of a PHP string: $str[0] or substr($str, 0, 1) for ASCII, mb_substr($str, 0, 1) for UTF-8,…
Get the first character of a JavaScript string with str[0], str.at(0), str.charAt(0), or slice/substring. Includes empty-string behavior and the emoji/surrogate…
Remove the "Other Favorites" button from the Microsoft Edge favorites bar by emptying the Other Favorites folder — drag every…
Get N elements from an array in JavaScript with slice(start, end). The end is exclusive — use slice((page-1)*perPage, page*perPage) for…
Get multiple rows from the WordPress database with $wpdb->get_results() — not get_row(). Includes get_var/get_col/get_results comparison and prepare() usage.
Sign in to your account