Category Archives: Programming
![Building a Calorie and Nutrient Counter Using FoodData Central API](https://a1websitepro.com/wp-content/uploads/2024/07/Building-a-Calorie-and-Nutrient-Counter-Using-FoodData-Central-API.jpg)
In this tutorial, I’ll walk you through the process of creating a calorie and nutrient counter using the FoodData Central API. This guide will help you build a web application that allows users to enter a food item and receive detailed nutritional information. Video Here https://youtu.be/t2WidqU06n4 Prerequisites Before we start, ensure you have the following: Read More
![Enable Imagemagick in PHP8 on Ubuntu 20.04 For WordPress1x1](https://a1websitepro.com/wp-content/uploads/2023/03/Enable-Imagemagick-in-PHP8-on-Ubuntu-20.04-For-WordPress1x1.jpg)
Enable Imagemagick in PHP8 on Ubuntu 20.04 For WordPress. ImageMagick is a powerful open-source software suite that is used for creating, editing, and converting images. It is commonly used by WordPress developers and designers to enhance the visuals of their websites. If you’re running Ubuntu 20.04 and PHP8, and you want to enable ImageMagick in Read More
![sumernote as a wordpress text editor](https://a1websitepro.com/wp-content/uploads/2023/02/sumernote-as-a-wordpress-text-editor.jpg)
Yes, you can use Summernote as a text editor in WordPress. However, to do so, you will need to install a plugin that adds Summernote as an option in the WordPress editor. One such plugin is the “WP Summernote” plugin, which you can find and install from the WordPress plugin repository. Once installed, the plugin Read More
![How Can I Make Multiple Summernote Text Area Fields](https://a1websitepro.com/wp-content/uploads/2023/03/How-Can-I-Make-Multiple-Summernote-Text-Area-Fields.jpg)
If you’re looking to add multiple Summernote text area fields to your webpage, it’s actually quite easy to do so. Summernote is a powerful WYSIWYG (What You See Is What You Get) text editor that allows you to create and edit content easily.To create multiple Summernote text area fields, you can follow these steps: Include Read More
![Put Summernote in Dark Mode](https://a1websitepro.com/wp-content/uploads/2023/02/Put-Summernote-in-Dark-Mode.jpg)
Summernote is a popular WYSIWYG editor for web applications, and it supports a dark mode theme out of the box. Here are the steps to put Summernote in dark mode: Download the Summernote CSS file from the official website or use the following link: https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.18/summernote-bs4-dark.css Include the CSS file in your HTML code. You can Read More
![custom toolbar in Summernote](https://a1websitepro.com/wp-content/uploads/2023/02/custom-toolbar-in-Summernote.jpg)
To create a custom toolbar in Summernote, you will need to modify the toolbar option during initialization of the Summernote editor. Here’s an example of how you can create a custom toolbar: $(document).ready(function() { var customButtons = [ [‘style’, [‘style’]], [‘font’, [‘bold’, ‘italic’, ‘underline’, ‘clear’]], [‘para’, [‘ul’, ‘ol’, ‘paragraph’]], [‘insert’, [‘link’, ‘picture’, ‘video’]], [‘table’, [‘table’]], Read More
![Delete Images Off Server In Summernote with php, mysql, jquery, and ajax](https://a1websitepro.com/wp-content/uploads/2023/02/Delete-Images-Off-Server-In-Summernote-with-php-mysql-jquery-and-ajax.jpg)
In this article, I will explain how to delete images from the server using Summernote, a WYSIWYG editor, with the help of PHP, MySQL, jQuery, and Ajax. Summernote is a popular open-source WYSIWYG editor that allows users to create rich text content, including images. Sometimes, users may want to delete the images they have uploaded Read More
![Summernote How To Delete Images Uploaded To A Folder](https://a1websitepro.com/wp-content/uploads/2023/01/Summernote-How-To-Delete-Images-Uploaded-To-A-Folder.jpg)
In Summernote you want to be able to delete your images in your directory or folder at times. As far as I can see, this is the only tutorial out there on this, so I decided to do it. I made a tutorial in the past that shows you how to upload images to a Read More
![Find Largest Files in Linux Terminal](https://a1websitepro.com/wp-content/uploads/2022/11/Find-Largest-Files-in-Linux-Terminal.jpg)
There are times when you need to find the largest files in your Linux Terminal. Here are a list of commands that you can use to find out what is bloating your website. Remember that every web page that you have should not load any more than 2 MB maximum. Use The List Command ls Read More
![Delete Files in Directory or Folder With PHP](https://a1websitepro.com/wp-content/uploads/2022/08/Delete-Files-in-Directory-or-Folder-With-PHP.jpg)
To delete files in a directory or folder with PHP, all you have to do is use the unlink function. Unlink not only deletes pictures, but will delete any kind of file in a directory. Lets get started. Unlink in PHP The unlink function has been around since PHP4. It also works on PHP5, PHP7 Read More
![Self Destruct Letter Script](https://a1websitepro.com/wp-content/uploads/2022/08/self-destruct-letters.jpg)
This self destruct letter script is fun, fast and mobile friendly. All you have to do is download it and upload it to your server. I created this script a while ago but I made some updates to it. You can see the self destruct letter script in action here. Feel free to use it. Read More
![Summernote How To Store Images and Entries in MySQL Without Base 64](https://a1websitepro.com/wp-content/uploads/2022/08/Summernote-How-To-Store-Images-and-Entries-in-MySQL-Without-Base-64.jpg)
In this tutorial, we will show you how to store images and entries in MySQL without base 64 encoding. Base 64 encoding will bloat your database. The way I show you how to do it here will not bloat your database. You can download summernote here, however you do not need to download it for Read More
![BEST HOME INVENTORY MANAGEMENT SOFTWARE FREE AND EASY](https://a1websitepro.com/wp-content/uploads/2022/07/fb-page-grid.jpg)
So I just got done programming the best home inventory management software. I wanted it to be free and easy to use for all my friends, neighbors and subscribers. Last September, I hit the big 50. I have stuff I never knew I had. A person accumulates things over time naturally. Then there was stuff Read More
![Failed To Insert Media WordPress Problem](https://a1websitepro.com/wp-content/uploads/2021/11/WORDPRESS-PROBLEMS.jpg)
If you are seeing the error “Failed To Insert Media” in WordPress then chances are you have a permissions issue on your website. You could also experience issues with trying to install a plugin or a theme. This is an easy fix, so just follow along here. Open FTP Program To Edit File Permissions Open Read More
![Ajax In WordPress Tutorial Ultimate Beginners Guide](https://a1websitepro.com/wp-content/uploads/2021/11/Ajax-In-WordPress-Tutorial-Ultimate-Beginners-Guide.jpg)
This is an Ajax in WordPress tutorial. Let it serve as an ultimate beginner’s guide for you. I have already made several posts on Ajax and how to use it. However, this is my first post for using Ajax in WordPress. I think you will enjoy this lesson with all the codes and video instruction. Read More
A1WEBSITEPRO Social Media Pages
Here are my social media pages, lets hook up!