Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Generate pseudo-random numbers in Python
Many computer applications need random numbers to be generated. However, none of them generate an actual random number. Python, like any other programming language, uses a pseudo-random generator. Python’s random generation is based on the Mersenne Twister algorithm that produces 53-bit precision floats. The technique is fast and thread-safe but not suitable for cryptographic purposes. Python’s standard library contains the random module which defines various functions for handling randomization. The following functions handle random integer number generation. random.seed() − This function initializes the random number generator. ...
Read MoreBest AI Tools for Software Developers
AI has revolutionized software development. Developers can now work more efficiently and innovate faster because of it. From generated code to debugging, AI-powered tools have significantly made difficult tasks easier, thereby increasing productivity. In this article, we shall ponder some of the best AI tools for software developers and how they make the development process smoother, faster, and more efficient. 1. GitHub Copilot Among the most revolutionary tools that AI has developed for developers is GitHub Copilot. GitHub Copilot is an AI code completion tool, developed by GitHub in partnership with OpenAI, which directly integrates into your code ...
Read MoreJava Program to insert an element at the Bottom of a Stack
A stack is a data structure that follows the LIFO (Last In, First Out) principle. In other words, The last element we add to a stack is the first one to be removed. When we add (or push) elements to a stack, they are placed on top; i.e. above all the previously-added elements. There may be certain scenarios where we need to add an element at the bottom of the stack. There are multiple ways to add an element to the bottom of the stack. they are − Using Auxiliary Stack ...
Read MoreEdge Computing: Definition, Characteristics, and Use Cases
Traditional cloud computing networks are significantly brought together, with data being collected on the fringe edges and sent back to the essential servers for taking care. This plan grew out of the way that most of the devices arranged near the edge came up short on computational power and limited capacity to separate and then again process the data they accumulated. How much data is ceaselessly being made at the edge is turning out to be decisively speedier than the limit of associations to manage it. As opposed to sending data to a cloud or a distant server homestead ...
Read MoreRegenerative Agriculture - What it is, Applications and Examples
What is Regenerative Agriculture? Regenerative agriculture is a method of farming which can be used to enhance soil fertility and quality. Water and energy management can be improved as carbon dioxide is stored and hidden. The farms where regenerative agriculture is being used have increased their harvest and decreased the input costs. Regenerative agriculture works with nature and reduces the usage of artificial inputs. Purpose of Regenerative Agriculture The main purpose behind using regenerative agriculture is to increase the fertility of the soil without harming the land. Many technologies are being used in this agriculture that help in the regeneration ...
Read MoreJava Program to display upper triangular matrix
In this article, we will understand how to display an upper triangular matrix of a given matrix in Java. A matrix has row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix. And, the term upper triangular matrix refers to a matrix whose all elements below the main diagonal are 0. Example Scenario: Input: matrix = { 2, 1, 4 }, { 1, 2, 3 }, { 3, 6, 2 } Output: upptri_mat = 2 1 4 0 2 3 0 0 2 Using ...
Read MoreJava program to check order of characters in string
You are given a String, your task is to write a program in Java that checks the order of its characters. If the order is previously defined, you have to check if the characters are in the given order otherwise check for alphabetical order. Let's understand the problem statement with an example − Example Scenario: Input: str = "abcmnqxz"; Output: res = TRUE The given string is in alphabetical order. Using Iteration In this approach, use a for loop to iterate over the string and check if the value of character at the current place and the previous ...
Read MoreTelematics - Definition, Tools, Applications and Examples
What is Telematics? Telematics is a combination of two technologies which include telecommunications and informatics. Telecommunications includes phone lines and cables while computer systems are included in informatics. The telematics technology is used in commercial fleet vehicles. The data is transmitted during the vehicle movement with the help of wireless telematics devices and black box technologies. The data that is transmitted include − Usage of the vehicle Maintenance Servicing Fleet management can also be performed with the help of telematics. The technology can be used to get the knowledge of vehicles in the entire fleet related to their ...
Read MoreJava regex to exclude a specific String constant
In this program, we will use a regular expression to check if a given string does not contain the substring "kk" using Java. The regular expression ^((?!kk).)*$ is designed to match strings that do not include the "kk" pattern anywhere in the string. The program will evaluate a sample string and print whether or not it contains "kk". Problem Statement Write a program in Java for checking whether a given string contains the substring "kk." If the string does not contain "kk" the program will return true otherwise it will return false. Input String s = "tutorials" Output true ...
Read MoreJava program to find longest common prefix using word by word matching
In this article, we will explore how to find the longest common prefix among a given set of strings using two different approaches in Java. We will first discuss an approach that compares all strings directly to find the longest prefix and then move to a word-by-word matching approach. Problem Statement We are given a set of strings and we have to find the common prefix among all of them. A prefix is a substring for a string that contains the zero index and could be of any length from 1 to a complete string. Input 1 string arr[] = ...
Read More