How to Ignore Files That Are Being Tracked by Git

If you’ve added files to your .gitignore that were already being tracked by Git and you want to stop tracking them, you’ll need to remove them from the index. Here’s how you can do it: Remove the files from the index: Use git rm with the –cached option to untrack the files that should be […]

How to Migrate From PHP 7.4 to PHP 7.4-FPM for Ubuntu: A Step-by-Step Guide

Hey there, tech-savvy readers! Today, I’m diving into a topic that’s been a hot favorite among server administrators and developers alike—how to upgrade from PHP 7.4 with the Apache module to PHP 7.4-FPM on an Ubuntu server, and why you might want to consider making the switch. Why PHP-FPM? First off, why would you want […]

Demystifying iOS Certificates and Provisioning Profiles: A Step-by-Step Guide

As a developer venturing into the iOS ecosystem, one of the inevitable rites of passage you’ll encounter is mastering the art of managing certificates and provisioning profiles. It might seem daunting initially, especially with Apple’s tightly controlled ecosystem, but fear not! I’m here to demystify the process for you. Let’s walk through creating distribution certificates […]

How to Dump Your Locally Hosted PostgreSQL Database

To dump your locally hosted PostgreSQL database, you can use the pg_dump utility. This tool creates logical backups, which are useful for transferring databases between PostgreSQL instances, upgrading your database, or simply for backup purposes. Here’s how you can do it: Step-by-Step Guide to Using pg_dump Open a Terminal on Your Local Server: Ensure you […]

Top 10 Free Tools for Effective Screenshot Annotation

Mastering Screenshot Annotations: Why Arrows and Notes Are Your Best Friends Hello fellow tech enthusiasts! Today, I want to dive into a hands-on, creative task that many of us tackle regularly: annotating screenshots. Whether you’re preparing a presentation, drafting an instructional document, or simply sharing knowledge with your team or friends, the power of a […]

How to Troubleshoot and Resolve Disk Space Issues on Ubuntu

Discovering the Root of the Problem We’ve all been there: you’re working away on your Ubuntu system, executing commands, building projects, and out of nowhere, you bump into the dreaded error: ENOSPC: no space left on device. If you’re running into this, take a breath; I’ve got some strategies to get you back on track. […]

How to Install PostgreSQL With phpPgAdmin on Ubuntu

To install PostgreSQL along with a web-based tool like phpMyAdmin for PostgreSQL (called phpPgAdmin) on Ubuntu, follow these steps: Step 1: Update Package List First, ensure that your package list is up to date: sudo apt update Step 2: Install PostgreSQL Install PostgreSQL using the package manager: sudo apt install postgresql postgresql-contrib This will install […]

How to Explicitly Set the Port for Your NextJS Production Application on Ubuntu

When running a Next.js application with PM2 on an Ubuntu server, setting the environment variable directly in the command line might not always work as expected due to the way PM2 manages processes. Here’s how you can make sure your application starts on a specific port: Use PM2 Environment Configuration The most reliable way to […]

Welcome to AMTdev

🌟 Welcome to AMTdev! 🌟 Hello, tech enthusiasts, innovators, and business leaders! We’re thrilled to welcome you to the official page of AMTdev, your go-to destination for all things web & app development, SEO, AI, and the latest in information technology. 🖥️ Who Are We? At AMTdev, we are passionate about harnessing technology to create […]

How to Transfer Files from Your Local Machine to a Vagrant VirtualBox via CLI

Although Visual Studio makes local development a breeze, transitioning those builds to my test environment within a Vagrant VM wasn’t as straightforward. After plenty of trial and error—and a fair bit of Googling—I figured out an effective way to transfer files using the CLI. Here’s a breakdown of the steps I took, and why this […]

Managing App Store Package IDs Effectively In Your C# .Net Maui App

Hello all! Today, I want to share a simple yet effective way to manage app store package IDs in your C# .Net Maui Application. Whether you’re an indie developer or part of a larger team, keeping track of your app’s unique identifiers across various platforms can be quite the challenge. We often need a structured […]

How to Add a GIT Submodule to Your Repository

Adding a Git submodule to your repository is a straightforward process. A submodule allows you to include and track a repository inside another Git repository, making it easier to manage dependencies. Here’s how to add a submodule: Navigate to Your Repository: Open a terminal, command prompt, or Git Bash and navigate to your main repository’s […]

How to Run .Net Application On Ubuntu Apache Server

To set up a .NET 8 API to run on an Ubuntu Apache server, you’ll need to configure the server as a reverse proxy to manage your .NET application. Below are the steps to guide you through the process: Prerequisites Install .NET 8 SDK Ensure you have the .NET 8 SDK installed on your Ubuntu […]

How to Manage .NET 8.0 Applications on an Ubuntu Server

To manage .NET 8.0 applications on an Ubuntu server, you can use systemd to create a service for your application, which allows you to start, stop, and manage the lifecycle of your application in a way similar to how pm2 works for Node.js applications. Here are the steps to accomplish this: Prerequisites Install .NET SDK/Runtime: […]

How to Install .Net 8.0 on Ubuntu

Here’s how you install the .NET SDK on Ubuntu Install .NET 8.0 on Ubuntu Update Package Lists: Ensure your package lists are updated: sudo apt update Install .NET SDK using the Microsoft Package Repository: Microsoft provides a package repository for .NET installations. Here’s how to set it up: Install the HTTPS transport and the required […]

How to Publish a .NET MAUI Blazor App as Self-contained

Publishing a .NET MAUI Blazor app without requiring users to manually install the .NET Desktop Runtime involves creating a self-contained deployment. This type of deployment packages the application and the specific .NET runtime it requires into a single unit. Here’s how you can publish your application this way: Steps to Publish a .NET MAUI Blazor […]

How to Loop Through WordPress Child Pages And Build a Bootstrap Carousel

Here is a WordPress query to get all children of a specific page by its ID, and then loop through those children to dynamically populate the Bootstrap carousel items in the HTML: First, you need to get the child pages of a specific parent page ID. Loop through those child pages and dynamically generate the […]

To Implement Speech-To-Text Functionality in a .NET MAUI Blazor Hybrid Application

To implement speech-to-text functionality in a .NET MAUI Blazor Hybrid application, you can leverage platform-specific speech recognition APIs or third-party services. Here’s how you might approach this task: Using Platform-Specific APIs For a .NET MAUI Blazor Hybrid app, you can use platform-specific features by creating platform-specific implementations. Here’s a brief overview of how you might […]

How to Convert a C# Class Library to a .NET MAUI Class Library

Converting a C# class library to a .NET MAUI class library involves a few steps. Here’s a step-by-step guide: 1. Update your development environment First, ensure you have all the tools required for .NET MAUI development: Visual Studio 2022 (17.3 or later) with the .NET MAUI workload installed. .NET SDK (6.0 or later). 2. Create […]

How to Find Existing MySQL Settings and Override Them

Based on the output of the mysql –help | grep "Default options" command, the order in which MySQL reads configuration files is: /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf (the current user’s home directory configuration file) The configuration settings read later in this sequence will take precedence over those read earlier. This means that if you want to ensure […]

How to Access Services in a Custom Attribute That Extends Attribute and Implements IAuthorizationFilter in .Net 8

To access services in your custom attribute that implements IAuthorizationFilter and extends Attribute in a .NET Core application, you can follow these steps: Implement the Custom Attribute: Create a custom authorization filter attribute by extending Attribute and implementing IAuthorizationFilter. Get Services from HttpContext: Use the HttpContext to obtain the required services. The HttpContext provides an […]

How to Update NodeJS on Ubuntu Linux

Upgrading Node.js on Ubuntu can be done via the NodeSource repository or by using a version manager such as nvm (Node Version Manager). I’ll walk you through both methods. Method 1: Using NodeSource Repository Update the package index: sudo apt update Install curl if you don’t have it installed already: sudo apt install curl Add […]

How to Manage User Mailbox Storage Quotas in Microsoft 365

Managing user mailbox storage quotas in Microsoft 365 involves adjusting the settings within the Microsoft 365 Admin Center or using PowerShell. Here’s how you can do it: Using the Microsoft 365 Admin Center: Sign in to the Admin Center: Go to the Microsoft 365 Admin Center. Sign in with your admin credentials. Navigate to the […]

How to View Changes in a Specific GIT Commit

To view the changes in a specific Git commit, you can use the git show command followed by the commit hash. Here’s how you can do it: Open your terminal or command prompt. Navigate to your Git repository’s directory using the cd command if you are not already in it. Run the following command: git […]

How to Upgrade Ubuntu From 16.04 to 22.04

Upgrading Ubuntu from an older version (like 16.04) to the latest version (currently, Ubuntu 22.04 or later) typically requires you to incrementally upgrade through intermediate LTS (Long Term Support) versions. Here’s a step-by-step guide on how to perform this upgrade: Step 1: Update Current System Open a terminal and make sure your current system is […]

Bash Script Example That Backs Up Your WordPress Site Using `rsync`

This is an example bash script that performs a backup using rsync. This script will sync files from a remote server to a local folder, ensuring that only updated files are transferred. It will also exclude common WordPress files and folders, as well as git version control files and folders. Here’s a sample script: #!/bin/bash […]

How To Sync All Files From a Remote Server to a Local Folder With rsync

To sync all files from a remote server to a local folder using rsync while ensuring the remote files remain undisturbed, you can use the following command. This example assumes that you have SSH access to the remote server: rsync -avz –update –exclude ‘wp-content/cache’ user@remote-server:/path/to/wordpress/ /local/path/to/wordpress/ Explanation: rsync: The command itself. -a: Archive mode to […]

How to Sort Result Sets With LINQ

Using LINQ OrderBy: You can use the OrderBy or OrderByDescending method provided by LINQ to sort your list either in ascending or descending order. Below are a few examples based on different properties of the Post entity: Ascending Order by a Property (e.g., DateCreated): List<Post> posts = await _context.Posts .OrderBy(p => p.DateCreated) // Replace DateCreated […]