Tutorials for Developers & Sysadmins

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.

How to Install HandBrake CLI on Linux (Flatpak)

Install HandBrake CLI on Linux with Flatpak (the official path) — flatpak install fr.handbrake.HandBrakeCLI. Includes RPM Fusion and apt alternatives.

how7o

How to Install and Set Up HAProxy on AlmaLinux, Rocky, or RHEL

Install and configure HAProxy on AlmaLinux, Rocky Linux, RHEL, or CentOS — dnf install, minimal frontend/backend config, firewalld setup, zero-downtime…

how7o

How to Handle MySQL CONCAT Returning NULL

Fix MySQL CONCAT() returning NULL on a NULL field — wrap with COALESCE(col, '') or use CONCAT_WS(), which skips NULL…

how7o

How to Get the Selected Radio Button Value in jQuery

Get the selected radio button's value with jQuery using $('input[name="..."]:checked').val(). Includes change-event handler and the vanilla JS equivalent.

how7o

How to Get the Last Item from an Array in PHP

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…

how7o

How to Get the First Character of a String in PHP

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,…

how7o

How to Get the First Character of a String in JavaScript

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…

how7o

How to Remove the “Other Favorites” Button in Microsoft Edge

Remove the "Other Favorites" button from the Microsoft Edge favorites bar by emptying the Other Favorites folder — drag every…

how7o

How to Get N Elements from an Array in JavaScript

Get N elements from an array in JavaScript with slice(start, end). The end is exclusive — use slice((page-1)*perPage, page*perPage) for…

how7o

How to Get Multiple Rows with $wpdb in WordPress

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.

how7o