Web Development

Posts about Web Development.

What are next-gen image formats?

Updated 17th March 2022

IKnowThatNow

Google Page Insights is a useful tool used to report on the performance of webpages on both mobile and desktop devices and provide suggestions on how the page can be improved. A common suggestion many websites are given is ‘Serve images in next-gen formats’, but what are next-gen image formats? Next-gen image formats provide superior

React JSX Error – Adjacent tags must be wrapped in an enclosing tag

Updated 17th March 2022

React

React is a popular and powerful library used by developers across the world. Initially released by Facebook in 2013, React has seen widespread adoption for its faster rendering, stable code and its helpful developer tool set such as the React Developer Tools browser extension for Chrome and Firefox. However, there are a number of reasons

What is a CDN and should you be using a one?

Updated 16th August 2022

IKnowThatNow

In this post, we are going to take a closer look at how CDN’s (Content Delivery Networks) work and what the advantages and disadvantages are of using a CDN to delivery your users static assets such as images, CSS files or JavaScript files. You will learn what a CDN does exactly, how it can prevent

Pixel Tracking in PHP

Updated 16th August 2022

PHP

When creating email campaigns, it’s important to know how many recipients actually opened your email. This information can help you determine if your efforts are working or if it’s time to change your strategy. Most mail champaign tools such as Mailchimp and SendInBlue use a technique called Pixel Tracking. In this post, you will learn

[UPDATED 2022] Change PHP version on Ubuntu, Linux

Updated 23rd August 2022

PHP

In this post, I will show you how to switch PHP version on Ubuntu, Linux. If you are developing on Windows, follow this guide to set up Windows Sub System for Linux. What will be covered: Change PHP version for Apache2 Change PHP version for Nginx Change PHP CLI version In this example, we will

Prevent Chrome and Firefox auto-filling password

Updated 16th August 2022

Chrome Browser

Do you have a user management page where users are able to update their account passwords? Do you have form validation that checks a password field against a confirmation password field but the validation fails because the browser has auto-filled the values? In this article, you will learn how to prevent Chrome and Firefox from

How to exclude an IP Address from Google Analytics

Updated 16th August 2022

Google Analytics is a great tool for tracking your website traffic, analyzing trends, and seeing the fruits of your labor if you’re currently trying out a new marketing strategy. However, if you’re like me and on your website a lot, the last thing you want is to unintentionally pollute your Google Analytics data. In this

What is an IP Address and how to find yours

Updated 16th August 2022

You may have heard the term “IP Address” and not sure what it actually means. In this article you’ll learn what an IP Address is and how to find yours. In short, an IP Address is a unique string of characters that identifies a device over a network. Every device that connects to an internet

How to Upload and Download files to and from a Linux server over SSH

Updated 16th August 2022

Its common place to need to upload and download files to and from a remote Linux server. To upload and download files from a remote Linux server you can use the scp (secure copy) command. To download a file you can use: To upload a file you can use: scp /path/to/file/your/uploading username@ip-or-server-name:/path/to/location/to/upload/to Note: It is

How to generate an SSH key and add to authorized_keys

Updated 16th August 2022

In this article we explain how to generate a SSH key for your local machine and add your public key to the authorized_keys on a remote server. Generate an SSH key for Windows, MAC and Linux Note: If you are using Windows, we recommend you use a SSH client like PuTTY. For MAC/Linux run: ssh-keygen

How to grant full privileges to a user in MySQL

Updated 16th August 2022

After setting up a lamp stack development environement with phpmyadmin locally on Linux you may notice that your phpmyadmin user (or other user name) doesn’t have the correct privileges to create new databases. To use the phpmyadmin user to create new databases and users for those databases you need to grant full privileges to the

Laravel php artisan make:auth command not defined

Updated 11th August 2022

Laravel

Laravel 6.0 LTS came with a lot of changes to the framework, apart from moving the the new Semantic Versioning, Laravels famous php artisan make:auth command was dropped. php artisan make:auth Before the Laravel make:auth command would create all the Migrations, Models, Controllers and Routes needed to easily setup an authenticatable application in seconds. However,