-
Refining for microblog
I’ve recently revamped the website to embrace a more microblog-centric design compared to its previous layout. The navigation has been streamlined to three essential sections: ‘About,’ ‘Blog,’ and ‘Contact.’ The primary aim of this blog is to serve as the main channel for sharing my public thoughts and notes on topics I’m passionate about. While…
-
Collateral
I finally got to watch the movie, Collateral, starring Tom Cruise and Jamie Foxx, and I thoroughly enjoyed it. When describing the film to my son, however, I told him it was like playing a campaign on GTA V.
-
How-to Backup a WordPress Website Using WP-CLI
Backing up a WordPress website using WP-CLI (WordPress Command Line Interface) involves several steps. Here’s a general guide on how to do it: 1. Install WP-CLI If you haven’t already installed WP-CLI, you’ll need to do so. You can find the installation instructions on the WP-CLI’s official website. 2. Access Your Server You’ll need SSH…
-
The principle of least privilege
The principle of least privilege is a key concept in computer security and information security. It refers to the practice of limiting access rights for users to the bare minimum necessary to perform their job functions. This principle is applied to every part of a system, including systems, processes, users, and programs. Here are the…
-
Crontab
Issue: How to setup cron jobs in Ubuntu (and Linux)? Solution: Setting up cron jobs on a Linux system like Ubuntu is a straightforward process. Cron jobs are scheduled tasks that your system runs at specified times or intervals. Here’s how you can set them up: Accessing the Cron Table: Special Syntax: Instead of the…
-
WordPress: How to manually create a user in the database
Manually creating a WordPress user in the database involves adding a new entry to the wp_users table and assigning the necessary user capabilities. Here are the steps to do this: Please exercise caution when making direct changes to your WordPress database, as incorrect changes can break your site. Make sure to back up your database…
-
Credit Card Testing
PayPal sandbox testing guide The PayPal sandbox is a self-contained, virtual testing environment that simulates the live PayPal production environment. The sandbox provides a shielded space where you can initiate and watch while your apps process PayPal API requests without touching any live PayPal accounts.
-
iOS 17 is out and a couple of things stick out
The first thing, the battery life took a hit (hopefully, there’s a fix for this asap). The second is the announcement of the upcoming Journal app. I’m curious if this can be synced to WordPress… hopefully there will be an app for that.
-
Update WordPress MySQL tables from old domain name to new domain name
This code is typically used when migrating a WordPress site from one domain to another, ensuring that all references to the old domain are updated to the new domain.
-
Image Tag Cheat Sheet
Basic Usage Attributes Attribute Description src The path to the image file. alt The text to display if the image fails to load. width The width of the image in pixels. height The height of the image in pixels. title The text to display when the user hovers over the image. Example Notes