Visual Studio Code is an optimized, feature-rich code editor for building web and cloud applications. It is developed by the Microsoft team. It includes features like embedded Git, supports debugging, syntax highlighting, intelligent code completion, snippets, and code refactoring. The Visual Studio Code is freely available for most modern operating systems like Windows, Linux (RPM and Debian installations are also available), and macOS. This tutorial will help you to install Visual Studio Code on Ubuntu 18.04 LTS Linux system using Apt package manager and using snap package. Prerequisites Login to your Ubuntu 18.04 system with sudo privileged account. You must…
Author: Rahul
Python is an extremely popular, versatile, and easy-to-learn programming language that is widely used in various industries and applications, from web development and data analysis to artificial intelligence and machine learning. Python 3.9 is one of the latest versions of the language, offering improved performance and a host of new features. In this tutorial, we will guide you through the process of installing Python 3.9 on CentOS/RHEL 7 and Fedora operating systems using the source archive file. This method of installation ensures that you have full control over the installation process and can customize it to suit your specific needs.…
Node Version Manager (NVM) is an essential tool for any developer working with Node.js. It allows you to install multiple versions of Node.js and switch between them as needed, ensuring compatibility and ease of development across various projects. This guide will walk you through the process of installing NVM on Amazon Linux 2, a popular choice for cloud-based applications due to its stability, performance, and long-term support. Prerequisites Before you begin, ensure you have: Access to a terminal or SSH client. Sudo privileges on an Amazon Linux 2 instance. Step 1: Update Your System Start by updating your Amazon Linux…
Python is a highly popular and versatile programming language, renowned for its simplicity, ease of learning, and wide range of applications, including web development, data analysis, and machine learning. The release of Python 3.9 brings several performance enhancements and new features, making it an attractive choice for developers. In this tutorial, we will walk you through the process of installing Python 3.9 on Amazon Linux 2 systems using the source archive file. This method of installation provides you with greater flexibility and customization options, ensuring that your system is equipped with the most up-to-date version of Python. Prerequisites Installing Python…
Q. How do I check if a specific value exists in an array in PHP. Write a sample PHP program to check if a value exists in an array. Using PHP in_array() function Use PHP in_array() function to check whether a specific value exists in an array or not. Here is an sample PHP program, initialized an array with few element. Then check if an element is available in the defined array. Example
1 2 3 4 5 6 7 | <?php $colors = array("Yellow", "Green", "Blue", "Pink", "Black"); if(in_array("Green", $colors)){ echo "Green element found in colors array"; } ?> |
Output: Green element found in colors array
Postman is the large scale collaboration platform for the API development. It is used by the million’s of developers across the world including tech companies. A snapcraft package of postman is officially build the official team. The snap packages provides an efficient way of packaging and deployment of application on multiple Linux operating systems. This tutorial will help you to install Postmap on Ubuntu 18.04 Linux system. Prerequisites Login to your Ubuntu 18.04 LTS system with sudo privileged account. Install Postman on Ubuntu 18.04 Postman snap package is available on the snapcraft. You must have snapd service installed on your…
If you’re a system administrator, you know how important it is to keep an eye on the processes running on your Windows system. Sometimes, you may need to find out which process is listening on a particular port. In this article, we’ll show you how to do that using both CMD and PowerShell. By learning how to identify the process listening on a port, you can troubleshoot network-related issues more effectively and take necessary actions to fix them. Method 1. Using Command Prompt Use the following command to find out the process id (PID) listening on port 80. You can…
Q. How do I remove a specific element from an array using PHP. In this tutorial, you will learn two PHP unset() and array_splice() methods to remove specific array elements. Using PHP unset() Function Use the PHP unset() function to delete an element from an array. Basically it is used to unset any variable in PHP. This function accept variable as argument and unset it. Example:
1 2 3 4 | <?php $arr = array("a" => "apple", "b" => "ball", "c" => "cat"); unset($arr["b"]); ?> |
Output: array(“a” => “Apple”, “c” => “Cat”) Another Example:
1 2 3 4 5 | <?php $arr = array(1, 2, 3, 4, 5); unset($arr[3]); print_r($arr) ?> |
Output: Array ( [0] => 1 [1] => 2 [2] => 3 [4] => 5 ) You can see the result array is…
An array is a data structure that contains a group of elements. Typically these elements are all of the same data type, such as an integer or string but in the case of JavaScript, we can store different types of elements. Using arrays you can organize data so that a related set of values can be easily sorted or searched. This tutorial described to you to remove duplicate array elements using JavaScript. Example Here is a sample JavaScript program to declare a static array with few default elements. Add some duplicate elements as well. After that, remove all the duplicate…
Angular is a popular web application development framework that is widely used by developers worldwide. The framework is constantly evolving, with new features and functionalities being added in every release. As a developer, it is essential to keep up with the latest version of Angular to ensure that your application is using the latest features, and to stay up-to-date with any security fixes or bug patches. In this article, we will explain how to check the Angular version of your application and the Angular CLI version installed on your system. We will guide you through the steps to check the…