Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Here is a step-by-step guide with examples that explains how you can push your code to GitHub using Git Bash, with creating repository to updating the code and pushing the changes back to GitHub using Git Bash.1. Install Git Bash Download Git Bash from the official Git website. Run the installer and follow the setup instructions. Once installed, open Git Bash by ... Read More
Having the latest Node.js and NPM is crucial as developers get to have access to the new features, security fixes, and improved performance. In those tools, you need to learn the following general steps in order to update them quickly This is the simplest guide to update those two tools. Why Update Node.js and NPM? Here are some reasons why you should update Node.js and NPM − Access New Features: Every one or two updates, new features and improvements make their ways into the software. Improved Security: Updates patch and other vulnerabilities in the environment so as to remove ... Read More
In this article, we will style the label for the radio button which is currently selected. CSS also allows you to eliminate the default radio button and style the selected and unselected states of the labels. This will be accomplished with the help of the :checked pseudo class. Additionally adjacent sibling selectors will be used to achieve this effect. Styling the Selected Label of a Radio Button To begin with, we set the display property of the original circular radio button to none and it disappears from view. Next, we apply default styles to the label elements for unselected ... Read More
Since ES6, JavaScript has a standardized way in terms of using the import statement in your project to include modules. Originally Node.js was using require() to import a module but with the update it is also imported ES6 import. This article will explain how to use ES6 import in Node.js, why it is important, and what constitutes good practice. Why Use ES6 Imports in Node.js? The following are some key reasons why you should use ES6 imports in Node.js − Modern Syntax: import is even better than require() to import modules because it is clean ... Read More
When working with JavaScript, especially in a Node.js or modern JavaScript environment, you often come across two popular module systems: use require which comes from the CommonJS and import and export keywords which came with ES6. They are both used with the same goal of modularizing your code but they differ as to how and what you use or do with them. Now let us discuss these differences in a greater detail. What is Node.js require? The require is the module-loading mechanism in CommonJS, the default module system for Node.js. It allows you to include modules, JSON files, or local ... Read More
Operators are special symbols in C that performs an operation on values and variables. These special symbols allow us to manipulate data and variables in different ways. Those Operators are classified into the following − Arithmetic operators. Relational operators. Logical operators. Assignment operators. Increment and decrement operators. Bitwise operators. Conditional operators. Special operators. Expressions in C is a combination of variables, operators, and values that generates ... Read More
We need to find a number of all the pairs that has the maximum sum, In a given array of integers. A pair consists of two numbers, and the sum is simply the result of adding them. We will see multiple solutions to this problem, starting with a naive (brute force) approach and moving to more optimized solutions. Below is the list of approaches we will cover in this article: Brute Force approach using two loops Max Sum Pairs with Sorting ... Read More
Node.js is one of the most vital tools in the hands of modern developers to create the necessary server applications. In this article, you will learn about how to create and run a Node.js project in one of the best, and most used, editors named Visual Studio Code (VS Code). What is Node.js? Node.js is an open-source cross-platform runtime environment for executing JavaScript code on the server side. It will be beneficial for creating web servers, APIs, and applications that run in real-time. Key Features of Node.js The following are the key features of Node.js − ... Read More
In Java, we can create a date object using the calendar class, which gives us more control on date and time. We will discuss the process in this article. What is the Calendar class? In order to understand the usage of we must know what is the calendar class. The Calendar class allows us to work with date and time more easily than Date class. like, we can set specific parts of the date, like month, year, and day. For using Calendar class, import the following package. import java.util.Calendar; Now, let us create an object of Calendar class. Calendar ... Read More
In programming, functions often require parameters to be passed to them to be called or invoked. There are 2 ways to call functions, the 1st being call by Reference and the 2nd being call by value. In this article, we are going to demonstrate call by value in Java. Call by value is a method in which the value of the argument is passed as a copy to the function, hence any change made to this argument inside the function will not affect the original value of the argument beyond the scope of this function. To help understand these concepts ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP