Category
Web
96 posts tagged #Web
- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 26 Tahoe
Create a very robust, clean, and fast local multi-version PHP (8.2, 8.3, 8.4, 8.5) development environment on macOS 26 Tahoe.

- · 1 min read
Quick Fix: Nginx PID Errors on macOS (Apple Silicon + Homebrew)
If you run Nginx on an Apple Silicon Mac using Homebrew, you may see errors after a reboot caused by a stale /opt/homebrew/var/run/nginx.pid. I wrote a small ZSH script to remove the stale PID, restart Nginx, and confirm it’s actually serving traffic.

- · 1 min read
Understanding the Computer Fraud and Abuse Act (CFAA) — What Developers Should Know
I'm not a lawyer, and this is not legal advice. But if you write code or work on websites, you need at least a basic understanding of the Computer Fraud and Abuse Act (CFAA) — U.S. Code Title 18, Section 1030.

- · 1 min read
Scaling Laravel (Repost)
Mateus Guimarães shares how they scaled a Laravel app to handle 30,000 requests/sec and 100M+ jobs, with clear, practical insights on database tuning, queue optimization, and architecture choices.

- · 1 min read
JavaScript Bloat in 2024 (Repost)
Nikita Prokopov’s post “JavaScript Bloat in 2024” is a refreshingly honest look at how modern websites have traded simplicity and performance for layers of unnecessary JavaScript.

- · 1 min read
Fixing Border Radius Clipping with CSS contain: paint;
It’s not a magic bullet, but in layout fights, contain: paint; can win the round if the need fits the solution that the CSS property contains.

- · 3 min read
Link Share: Issue #5
I have quite a build-up of links to share. It's been a while, so some may be old news, but it's still worth posting. Grab a coffee and enjoy!

- · 5 min read
How to Configure PHP Memory and PHP-FPM for Scalable Performance on 8, 16, and 32+ GB Servers
Learn how to configure PHP memory limits and PHP-FPM settings for 8GB, 16GB, and 32GB servers to maximize concurrency, avoid swap usage, and scale your app efficiently without wasting memory.

- · 1 min read
Ecosystem > Preference
Ecosystem often matters more than personal preference when choosing dev tools. It's not just about what you enjoy using—it's about what removes friction. Don’t let comfort trap you. Adaptability is part of the job.

- · 2 min read
Cold Archival Storage for Web Devs: What Actually Matters
You need hardcore long-term cold storage—designed to last 50–100 years and survive an EMP. (I had lightning take out a few pieces of equipment once. It happens.)

- · 1 min read
AI Ethics: Navigating the Unavoidable
AI’s ethical issues, like using copyrighted data without consent, trouble me, but its unstoppable rise forces participation in digital life.

- · 1 min read
Laravel and the Evolution of Open Source: Adapting to a Changing World
Open source isn’t 'free'—it’s accessible code that needs cash to evolve. Laravel proves it: as passwords fade and users demand phone-friendly logins like Google or Apple, features expire. Small teams must adapt to shifting expectations or drown in tech debt. 'Free' always has a cost.

- · 1 min read
CRDT: The Key to Seamless Data Synchronization in Distributed Systems
CRDTs, or Conflict-free Replicated Data Types, are a solution for keeping data consistent when multiple devices or users make changes at the same time.

- · 1 min read
How to Fix Washed Out Colors in Google Chrome Screenshots for Clear and Accurate Images
Resolve washed-out colors in Chrome screenshots by enabling the sRGB color profile via chrome://flags/#force-color-profile or using the --force-color-profile=srgb argument in Puppeteer.

- · 1 min read
Unlock PHP's Built-In REPL for Faster Debugging
Have you ever wished for a simpler way to test snippets of PHP code on the fly? If so, it's time to meet the built-in PHP REPL (Read-Eval-Print Loop).

- · 2 min read
How to Set Up a Custom ChatGPT Action for Your WordPress Blog
Integrating ChatGPT with your WordPress blog just got easier. With the power of the WordPress REST API and ChatGPT’s custom action capabilities, you can now create a seamless workflow for fetching, summarizing, and interacting with your blog posts.

- · 1 min read
How to Authenticate WordPress with Application Passwords for ChatGPT
Generate Base64-encoded credentials for Basic Authentication effortlessly in a single command using PHP's -r flag.

- · 2 min read
Laravel 11 Migrations: Best Practices for Stability and Scalability
Learn the top best practices for writing Laravel 11 migrations, including avoiding dynamic table names, separating schema from data migrations, and blocking down method rollbacks in production. Build resilient and maintainable database migrations for your application.

- · 1 min read
4 Key Learnings From Many Years of Tech Experience
Taking written notes leads to doing work right. Work done right leads to deep learning and the ability to teach. Teaching makes you wise enough to know when to use AI and when AI is using you.

- · 1 min read
Optimizing Database Queries in Laravel: The Power of Eager Loading
Use Laravel eager loading to optimize database queries and avoid the N+1 query problem.

- · 2 min read
How to Add A WordPress Custom Login Logo
Do you want your WordPress site's logo applied to the login screen? Do you want the logo to link back to your homepage? Are you using a theme with or without full site editing?

- · 2 min read
Shopify Dawn Theme v15 Update
The Shopify Dawn theme version 15 has been out for over a week. This excites me because I'm a big fan of using Dawn for your Shopify store. Why?

- · 2 min read
How To Install GA4 On Shopify Using Customer Events, Pixels, and GTM
To add Google Analytics 4 to the Shopify checkout process using customer events with a custom pixel, use the code snippet on this page.

- · 1 min read
How To Add GA4 Purchase Conversion Tracking To Shopify
Add GA4 purchase conversion tracking to your Shopify store using Google Analytics scripts.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 15 Sequoia
Create a very robust, clean, and fast local multi-version PHP (8.0, 8.1, 8.2, 8.3, 8.4) development environment on macOS 15 Sequoia.

- · 2 min read
Is It Worth Changing Your WordPress Login URL?
No. As a security measure, I do not advise changing the login URL of your WordPress website, so it is hard to find.


- · 1 min read
What Is New in PHP 8.2
December 8th, 2022, is a day away! Which means it is time to get excited about PHP 8.2.

- · 2 min read
How To Add Google Customer Reviews to Shopify Checkout
To add Google Customer Reviews to your Shopify site, you need to take serval steps within Google Merchant Center and Shopify.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 13 Ventura
Create a very robust, clean, and fast local multi-version PHP (7.4, 8.0, 8.1) development environment on macOS Ventura with Intel or Apple M1 chipsets.

- · 1 min read
How To Clear PHP-FPM Logs Daily On macOS (M1 Chipset)
To clear your php-fpm logs daily set up a CRON job to run the following script.

- · 1 min read
Convert MP4 to WebM Lossless on macOS
To convert MP4 to WebM video on macOS, install FFmpeg using Homebrew. And get a video poster too for your video element.

- · 1 min read
How To Get Your WordPress Plugin's Admin Page URL
Create a helper function to get WordPress plugin admin page URLs with support for query parameters.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 12 Monterey
Create a very robust, clean, and fast local multi-version PHP (7.4, 8.0, 8.1) development environment on macOS Monterey with Intel or Apple M1 chipsets.

- · 1 min read
Log PHP Data In WordPress To Your Browser's Console
Debugging PHP can be a pain in WordPress. Add this handy code snippet to your theme's functions.php file. The function will log PHP data to your browser's console.

- · 2 min read
Don't Trust The Numbers!
As developers, we can't trust raw data about people. Yet for some reason, when we see stats and figures from studies about people we tend toward blind faith in them.

- · 1 min read
How To Create The Perfect Type Scale in SCSS
Get your type scale spot on with this bit of SCSS. You can use the Type Scale website to determine the typographic scale that fits your design.

- · 1 min read
How To Quickly Check / Find Your WordPress PHP Version
Not sure or need to know what version of PHP your WordPress website is using? Here is how to find your version quickly.

- · 1 min read
Set The Max Upload Size of Nginx on Laravel Homestead
To increase the max upload size on Laravel Homestead add the config option client_max_body_size.

- · 3 min read
How to Create a Custom API endpoint in WordPress
Create custom REST API endpoints in WordPress using rewrite rules, query variables, and custom templates.

- · 6 min read
macOS 11 Big Sur Nginx Setup: Multiple PHP Versions
Create a very robust, clean, and fast local multi-version PHP (7.4, 8.0, 8.1) development environment on macOS Big Sur with Intel or Apple M1 chipsets.

- · 1 min read
Configure Xdebug for PHPStorm: PHP's Built-In Server
Set up Xdebug debugging in PHPStorm with PHP's built-in server, including Xdebug 3 configuration.

- · 1 min read
Link Share: Issue #4
The last week has been full of exciting news. Here are a few links that caught my attention.

- · 2 min read
How To Replace wp_mail Function In WordPress
To override the wp_mail() function using the filter pre_wp_mail is the best and modern way to do so. Using this method will future-proof your override.

- · 2 min read
How to Remove X-Frame-Options SAMEORIGIN from WordPress.
You can remove the HTTP header X-Frame-Options: SAMEORIGIN from WordPress by removing the send_frame_options_header function from the admin_init and login_init hooks.

- · 2 min read
Redundant DNS. Worth it?
Analysis of whether redundant DNS providers are worth the complexity and cost for most websites.

- · 1 min read
Kinsta CRON Jobs For WordPress Using WP-CLI
Set up server-level WordPress cron jobs on Kinsta hosting using wp-cli for better control and monitoring.

- · 1 min read
Resize Any Mac App to a Precise Size
Use macOS Automator to create a quick action that resizes any application window to specific dimensions.

- · 1 min read
How to Rename the *Master* Branch to *Main* in Git & GitHub
In this post we will cover renaming the branch master to main in Git. Before renaming your master branch to main in git, keep in mind anywhere you are using the master branch should also be updated.

- · 1 min read
Developer. Stop robbing yourself.
Developers. Stop robbing yourself in the software world. Resisting change and new learning. When I resist a tool in order to keep the status quo I rob myself of great satisfaction.

- · 1 min read
Gradient Text With CSS Custom Properties
Create reusable gradient text styles using CSS custom properties and utility classes.

- · 1 min read
How I configure Laravel Homestead after installing it on Mac
Each time after updating or installing Laravel Homestead I take these steps.

- · 1 min read
Video "background-size: cover" with CSS in 2020
How to get a video element to act like background-size: cover scoped within a parent element.

- · 1 min read
HTML Close Button The Right Way
Coding an HTML close button seems simple. But, the only thing simple about coding a close button is getting it wrong.

- · 2 min read
Scheduling Meeting Times
Best practices for professional meeting requests that minimize back-and-forth and build client relationships.

- · 1 min read
How to Reset the Primary Key Sequence ID in PostgreSQL
Reset PostgreSQL primary key sequences that fall out of sync using setval and pg_get_serial_sequence.

- · 1 min read
PHP UUID without a Library
Generate UUID v4 identifiers in PHP using simple functions without requiring a library.

- · 3 min read
Q1 2020 Desk Setup
Review of the hardware and tools used for a productive developer workspace in 2020.

- · 1 min read
Jump-to Links Done Right
Use scroll-margin-top CSS property to properly handle jump-to anchor links on the page.

- · 1 min read
Link Share: Issue #2
Recommended podcasts covering business, development, design, and personal growth topics.

- · 1 min read
Mono Fonts with Ligatures for Your IDE
Recommended monospace fonts with ligatures for improved code readability in your IDE.

- · 4 min read
Always Use <main> For Website Accessibility
Use the semantic main HTML element to improve website accessibility and help screen readers navigate content.

- · 1 min read
Vertically & Horizontally Centering an Element with CSS in 2020
Center elements vertically and horizontally using CSS flexbox and CSS grid techniques.

- · 3 min read
Adding Google Analytics To Your Website While Respecting "Do Not Track"
Add Google Analytics to your website while respecting user privacy and honoring the Do Not Track setting.

- · 1 min read
Link Share: Issue #1
Curated links and resources about CSS performance optimization and web rendering best practices.

- · 3 min read
Adding Dark Mode Toggle To Your Website
Implement dark mode for your website using CSS media queries and JavaScript toggle functionality.

- · 2 min read
Run Times for PHP Function & Method Call Types
Performance benchmarks comparing different PHP function and method call types for optimization.

- · 2 min read
From Scratch PHP Project with the PHP Built-in Web Server
Set up a PHP project from scratch using the PHP built-in web server with a custom router.

- · 1 min read
Fixing MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes
Resolve MySQL error 1153 by increasing the max_allowed_packet setting in the MySQL configuration file.

- · 1 min read
Wrapware - Software Produced Originally for Physical Distribution Only
Exploring the term wrapware for software originally designed for physical distribution before online downloads.

- · 1 min read
How to Display and Debug All Database Queries Made by WordPress
Debug WordPress database queries using SAVEQUERIES constant and helper functions for optimization.

- · 1 min read
REST Fest 2019: Links of Intrest
Curated links and resources of interest from REST Fest 2019 conference on API design.

- · 1 min read
Editing hosts file quickly using the command line or an app on macOS
Quick command line aliases for editing the hosts file and flushing DNS cache on macOS.

- · 1 min read
Ignoring .git and hidden files when zip archiving on macOS using the command line
macOS click-and-point file and folder archiving is limited. Often when I need to archive a code project folder that has GIT version control files and other assets I do not want to be zipped. For such a task click-and-point falls short but the command line gets the job done.

- · 1 min read
Tools for Sending, Developing, and Testing PHP Application Email
Tools for email testing and sending including MailHog, Mailtrap, and email service providers for PHP.

- · 1 min read
SSH Tips and Tricks
Productivity tips for SSH including config files, bastion hosts, SSH agent, and identity files.

- · 1 min read
Getting macOS to trust all your self-signed SSL certificates from Homestead with a single shot
Make macOS and Chrome trust Laravel Homestead SSL certificates by adding them to Keychain Access.

- · 1 min read
Increase Mac OSX Key Repeat Speed
Increase keyboard key repeat speed on macOS using terminal defaults commands.

- · 1 min read
Stop Chrome & Firefox from blocking HTTPS requests by default for all domains hosted by Homestead
Fix SSL certificate warnings for Laravel Homestead by importing certificates into Firefox and macOS Keychain.

- · 1 min read
The Poetic Tragedy of Privacy
Rethinking privacy expectations in the digital age and how to make informed choices about data sharing.

- · 1 min read
Disable MySQL Strict Mode and NO_ZERO_DATE Errors in Laravel Homestead
Disable MySQL strict mode and NO_ZERO_DATE errors in Laravel Homestead by configuring sql_mode.

- · 2 min read
Gutenberg and WordPress 5.0
Analysis of WordPress 5.0 and Gutenberg's impact on the WordPress community and platform direction.

- · 1 min read
What time is it?
Resources and snippets for working with timezones and dates in PHP using the Carbon library.

- · 1 min read
Don’t mistake the service worker as a small thing
Service workers enable progressive web apps by controlling network access and creating native-like experiences.

- · 3 min read
My Programming Naming Philosophy
Philosophy and best practices for naming functions, variables, classes, files, and folders in code.

- · 1 min read
The JavaScript Event Loop
Understanding how the JavaScript event loop works and how setTimeout functions in the call stack.

- · 2 min read
Import and Export MySQL and PostgreSQL
Import and export databases for MySQL and PostgreSQL using command line tools and troubleshooting.

- · 2 min read
Raw PHP and MySQL Eager Loading
Implement eager loading in PHP with PDO to reduce database queries and improve performance.

- · 1 min read
Character Encoding UTF-8: PHP, HTML,and MySQL
Understand how to properly configure UTF-8 character encoding in PHP, HTML, and MySQL.

- · 3 min read
Server Level CRON Backups
Automate server backups to AWS S3 using cron jobs and shell scripts for files and databases.

- · 3 min read
Installing Xdebug for PHP7
Install Xdebug for PHP7 on Ubuntu and configure remote debugging with PhpStorm.

- · 2 min read
Enabling Performance Monitoring for MariaDB and MySQL
Enable performance schema monitoring in MariaDB and MySQL to track query performance and optimization.

- · 3 min read
Podcasts 101: Learn How to Do Your First Podcast
Essential guide to starting your first podcast including gear, software, platforms, and guest selection.

- · 1 min read
Optimizing large font files for @font-face
Reduce @font-face file sizes by removing unused characters and converting fonts for better performance.

- · 1 min read
IE seeping content link overlap CSS fix
Fix Internet Explorer CSS bug with absolutely positioned links using opacity and background color.

- · 5 min read
Web Fonts: Foundries Evolved
History of web fonts and how font foundries embraced @font-face through services like Typekit.
