Notepad++ is an popular text editor between Windows users. It comes with the large number of useful options than regular Notepad provided by Microsoft Windows. A Snap package is containerised software packages build by Canonical team for the Linux based systems. Nodepad++ is also available as Snap package for the installation. This tutorial will help you to install Nodepad++ on Ubuntu 18.04 LTS Linux system. Prerequisites You must have Desktop installed on your Ubuntu system. Login to your system on desktop using sudo privileged account. Step 1 – Install Nodepad++ on Ubuntu 18.04 You system must have installed and running…
Author: Rahul
NetBeans is a popular IDE for the Java application development. Which allows applications to be developed from a set of modular software components called modules. NetBeans is available to run on popular operating systems like Windows, macOS, Linux and Solaris systems. A snap package is available for the NetBeans installation on Ubuntu 18.04 Linux system. This tutorial will help you to install NetBeans IDE on your Ubuntu 18.04 Desktop system using snap package. Prerequisites Login to your Ubuntu 18.04 Desktop system with sudo privileged account. Then launch a terminal on your system. Step 1 – Installing Java You must have…
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…
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…