title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
How to measure time taken by a function to execute using JavaScript? - GeeksforGeeks
20 May, 2019 Method 1: Using the performance.now() method: The now() method of the performance interface returns a high-resolution timestamp whenever it is called during the program. The time can be measured by getting the starting time before the function and ending time after the function and then subtracting both of...
[ { "code": null, "e": 26543, "s": 26515, "text": "\n20 May, 2019" }, { "code": null, "e": 26903, "s": 26543, "text": "Method 1: Using the performance.now() method: The now() method of the performance interface returns a high-resolution timestamp whenever it is called during the pr...
Move all zeros to start and ones to end in an Array of random integers - GeeksforGeeks
04 Sep, 2021 Given an array arr[] of random integers, the task is to push all the zero’s in the array to the start and all the one’s to the end of the array. Note that the order of all the other elements should be the same.Example: Input: arr[] = {1, 2, 0, 4, 3, 0, 5, 0} Output: 0 0 0 2 4 3 5 1 Input: arr[] = {1, 2, ...
[ { "code": null, "e": 26065, "s": 26037, "text": "\n04 Sep, 2021" }, { "code": null, "e": 26286, "s": 26065, "text": "Given an array arr[] of random integers, the task is to push all the zero’s in the array to the start and all the one’s to the end of the array. Note that the orde...
Drop rows containing specific value in PySpark dataframe - GeeksforGeeks
30 Jun, 2021 In this article, we are going to drop the rows with a specific value in pyspark dataframe. Creating dataframe for demonstration: Python3 # importing moduleimport pyspark # importing sparksession from pyspark.sql modulefrom pyspark.sql import SparkSession # creating sparksession and giving an app namespar...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n30 Jun, 2021" }, { "code": null, "e": 25628, "s": 25537, "text": "In this article, we are going to drop the rows with a specific value in pyspark dataframe." }, { "code": null, "e": 25666, "s": 25628, "text": ...
Introduction to Docker - GeeksforGeeks
30 Jul, 2020 Docker is a set of platforms as a service (PaaS) products that use the Operating system level visualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other thr...
[ { "code": null, "e": 25654, "s": 25626, "text": "\n30 Jul, 2020" }, { "code": null, "e": 26106, "s": 25654, "text": "Docker is a set of platforms as a service (PaaS) products that use the Operating system level visualization to deliver software in packages called containers. Cont...
Python | os.getegid() and os.setegid() method - GeeksforGeeks
31 Oct, 2019 OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. All functions in os module raise OSError in the case of invalid or inaccessible file nam...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n31 Oct, 2019" }, { "code": null, "e": 25756, "s": 25537, "text": "OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable...
How to change default font in Tkinter? - GeeksforGeeks
24 Jan, 2021 Prerequisites: Tkinter Tkinter provides a variety of fonts for different things i.e Heading, Caption, Text, Menu, etc. But the good thing is we can override these fonts using tkinter.font module. Some fonts provided by the Tkinter are: TkDefaultFont TkMenuFont TkFixedFont TkSmallCaptionFont and so on. In t...
[ { "code": null, "e": 25631, "s": 25603, "text": "\n24 Jan, 2021" }, { "code": null, "e": 25654, "s": 25631, "text": "Prerequisites: Tkinter" }, { "code": null, "e": 25827, "s": 25654, "text": "Tkinter provides a variety of fonts for different things i.e Headin...
What are the best input sanitizing functions in PHP ? - GeeksforGeeks
08 Aug, 2020 Sanitizing data means removing any illegal character from the data. Sanitizing user input is one of the most common tasks in a web application. To make this task easier PHP provides native filter extension that you can use to sanitize the data such as e-mail addresses, URLs, IP addresses, etc.The PHP Filte...
[ { "code": null, "e": 25739, "s": 25711, "text": "\n08 Aug, 2020" }, { "code": null, "e": 26548, "s": 25739, "text": "Sanitizing data means removing any illegal character from the data. Sanitizing user input is one of the most common tasks in a web application. To make this task e...
ListView - Class Based Views Django - GeeksforGeeks
11 Jan, 2022 List View refers to a view (logic) to display multiple instances of a table in the database. We have already discussed the basics of List View in List View – Function based Views Django. Class-based views provide an alternative way to implement views as Python objects instead of functions. They do not repl...
[ { "code": null, "e": 25575, "s": 25547, "text": "\n11 Jan, 2022" }, { "code": null, "e": 25992, "s": 25575, "text": "List View refers to a view (logic) to display multiple instances of a table in the database. We have already discussed the basics of List View in List View – Funct...
How to disable spell checking from Input Box and Textarea in HTML forms? - GeeksforGeeks
06 Sep, 2021 Basically the concept of spell check feature is used when we enter the grammatically incorrect words inside <input> or <textarea> fields in HTML form you will see the red underline below the incorrect words. It is used to detect grammatical or spelling mistakes in the text fields. To disable spellcheck in ...
[ { "code": null, "e": 26139, "s": 26111, "text": "\n06 Sep, 2021" }, { "code": null, "e": 26421, "s": 26139, "text": "Basically the concept of spell check feature is used when we enter the grammatically incorrect words inside <input> or <textarea> fields in HTML form you will see ...
Catch and Throw Exception In Ruby - GeeksforGeeks
11 Oct, 2019 An exception is an object of class Exception or a child of that class. Exceptions occurs when the program reaches a state in its execution that’s not defined. Now the program does not know what to do so it raises an exception. This can be done automatically by Ruby or manually. Catch and Throw is similar r...
[ { "code": null, "e": 24955, "s": 24927, "text": "\n11 Oct, 2019" }, { "code": null, "e": 25469, "s": 24955, "text": "An exception is an object of class Exception or a child of that class. Exceptions occurs when the program reaches a state in its execution that’s not defined. Now ...
Recursive Functions - GeeksforGeeks
26 May, 2021 Recursion:In programming terms, a recursive function can be defined as a routine that calls itself directly or indirectly.Using the recursive algorithm, certain problems can be solved quite easily. Towers of Hanoi (TOH) is one such programming exercise. Try to write an iterative algorithm for TOH. Moreover...
[ { "code": null, "e": 25705, "s": 25677, "text": "\n26 May, 2021" }, { "code": null, "e": 26320, "s": 25705, "text": "Recursion:In programming terms, a recursive function can be defined as a routine that calls itself directly or indirectly.Using the recursive algorithm, certain pr...
Selenium Base Mini Project Using Python - GeeksforGeeks
04 Jan, 2021 Project Description:-Here, we’re going to study a simple SMS bomber trick (for amusing and educational purpose). Selenium is a free tool for automated trying out across exceptional browsers. In this tutorial, we will learn how to ship mechanically range of unsolicited mail SMS for given variety of frequenc...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n04 Jan, 2021" }, { "code": null, "e": 25885, "s": 25562, "text": "Project Description:-Here, we’re going to study a simple SMS bomber trick (for amusing and educational purpose). Selenium is a free tool for automated trying out a...
Print Strings without Quotes in R Programming - noquote() Function - GeeksforGeeks
01 Jun, 2020 noquote() function in R Language is used to prints strings without quotes. Syntax: noquote(x) Parameters:x: character vector Example 1: # R program to illustrate# noquote function # Getting letters without the help# of noquote() functionletters # Getting letters with the help# of noquote() functionnoquot...
[ { "code": null, "e": 26741, "s": 26713, "text": "\n01 Jun, 2020" }, { "code": null, "e": 26816, "s": 26741, "text": "noquote() function in R Language is used to prints strings without quotes." }, { "code": null, "e": 26835, "s": 26816, "text": "Syntax: noquote...
How to delete text from file using preg_replace() function in PHP ? - GeeksforGeeks
14 Feb, 2020 Given a file containing some elements and the task is to delete the content of the file using preg_replace() function. The preg_replace() function is searches the string pattern in the file and if string pattern found then it replace with the required string. In simple words it can modify the contents of a...
[ { "code": null, "e": 26217, "s": 26189, "text": "\n14 Feb, 2020" }, { "code": null, "e": 26531, "s": 26217, "text": "Given a file containing some elements and the task is to delete the content of the file using preg_replace() function. The preg_replace() function is searches the ...
How to use SQLMAP to test a website for SQL Injection vulnerability - GeeksforGeeks
28 Jun, 2021 This article explains how to test whether a website is safe from SQL injection using the SQLMAP penetration testing tool. What is SQL Injection? SQL Injection is a code injection technique where an attacker executes malicious SQL queries that control a web application’s database. With the right set of qu...
[ { "code": null, "e": 26044, "s": 26016, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26168, "s": 26044, "text": "This article explains how to test whether a website is safe from SQL injection using the SQLMAP penetration testing tool. " }, { "code": null, "e": 26...
SQL Query to Count the Number of Rows in a Table - GeeksforGeeks
13 Apr, 2021 In this article, we are going to write an SQL query to count the number of rows in a table. For is we will be making use of the count() function of SQL. For this article, we will be making use of the Microsoft SQL Server as our database. Let’s do the same by building a table inside the database and count...
[ { "code": null, "e": 25513, "s": 25485, "text": "\n13 Apr, 2021" }, { "code": null, "e": 25753, "s": 25513, "text": "In this article, we are going to write an SQL query to count the number of rows in a table. For is we will be making use of the count() function of SQL. For this...
Check if elements of Linked List are present in pair - GeeksforGeeks
29 Jun, 2021 Given a singly linked list of integers. The task is to check if each element in the linked list is present in a pair i.e. all elements occur even no. of times.Examples: Input: 1 -> 2 -> 3 -> 3 -> 1 -> 2 Output: Yes Input: 10 -> 20 -> 30 -> 20 Output: No Approach: Initialize a temp node pointing to h...
[ { "code": null, "e": 26277, "s": 26249, "text": "\n29 Jun, 2021" }, { "code": null, "e": 26448, "s": 26277, "text": "Given a singly linked list of integers. The task is to check if each element in the linked list is present in a pair i.e. all elements occur even no. of times.Exam...
MATLAB - Ideal Lowpass Filter in Image Processing - GeeksforGeeks
22 Apr, 2020 In the field of Image Processing, Ideal Lowpass Filter (ILPF) is used for image smoothing in the frequency domain. It removes high-frequency noise from a digital image and preserves low-frequency components. It can be specified by the function- Where, is a positive constant. ILPF passes all the frequencie...
[ { "code": null, "e": 26019, "s": 25991, "text": "\n22 Apr, 2020" }, { "code": null, "e": 26227, "s": 26019, "text": "In the field of Image Processing, Ideal Lowpass Filter (ILPF) is used for image smoothing in the frequency domain. It removes high-frequency noise from a digital i...
Maximum value of signed char in C++ - GeeksforGeeks
06 Jan, 2021 In this article, we will discuss the signed char data type in C++. Some properties of the signed char data type are: It is generally used to store 8-bit characters. Being a signed data type, it can store positive values as well as negative values. Size of 8 bits is occupied where 1 bit is used to store the...
[ { "code": null, "e": 25343, "s": 25315, "text": "\n06 Jan, 2021" }, { "code": null, "e": 25410, "s": 25343, "text": "In this article, we will discuss the signed char data type in C++." }, { "code": null, "e": 25460, "s": 25410, "text": "Some properties of the ...
C# Program to Create a Directory - GeeksforGeeks
30 Nov, 2021 A directory is a file system that stores file. Now our task is to create a directory in C#. We can create a directory by using the CreateDirectory() method of the Directory class. This method is used to create directories and subdirectories in a specified path. If the specified directory exists or the give...
[ { "code": null, "e": 25547, "s": 25519, "text": "\n30 Nov, 2021" }, { "code": null, "e": 26008, "s": 25547, "text": "A directory is a file system that stores file. Now our task is to create a directory in C#. We can create a directory by using the CreateDirectory() method of the ...
Print the first shortest root to leaf path in a Binary Tree - GeeksforGeeks
06 Aug, 2021 Given a Binary Tree with distinct values, the task is to print the first smallest root to leaf path. We basically need to print the leftmost root to leaf path that has the minimum number of nodes. Input: 1 / \ 2 3 / / \ 4 5 7 / \ \ 10 11 ...
[ { "code": null, "e": 26685, "s": 26657, "text": "\n06 Aug, 2021" }, { "code": null, "e": 26882, "s": 26685, "text": "Given a Binary Tree with distinct values, the task is to print the first smallest root to leaf path. We basically need to print the leftmost root to leaf path that...
Mindtree Interview Experience for Software Engineer C1 | Off-Campus 2021 - GeeksforGeeks
16 Dec, 2021 I had applied for Mindtree Software Engineer C1 (Off-Campus) in the first week of November. The entire process was conducted on WeCP platform, in which one can write as well as compile codes which will be visible to the interviewer. The hiring process comprised of 3 rounds. Round 1: I had my online assessm...
[ { "code": null, "e": 26379, "s": 26351, "text": "\n16 Dec, 2021" }, { "code": null, "e": 26654, "s": 26379, "text": "I had applied for Mindtree Software Engineer C1 (Off-Campus) in the first week of November. The entire process was conducted on WeCP platform, in which one can wri...
jQWidgets jqxGrid getselectedrowindexes() Method - GeeksforGeeks
27 Oct, 2021 jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxGrid is used to illustrate a jQuery widget that shows data in tabular form. Moreover, it renders full support for c...
[ { "code": null, "e": 26954, "s": 26926, "text": "\n27 Oct, 2021" }, { "code": null, "e": 27343, "s": 26954, "text": "jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely...
Analysis of different sorting techniques - GeeksforGeeks
28 Jun, 2021 In this article, we will discuss important properties of different sorting techniques including their complexity, stability and memory constraints. Before understanding this article, you should understand basics of different sorting techniques (See : Sorting Techniques). Time complexity Analysis – We have...
[ { "code": null, "e": 26207, "s": 26179, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26480, "s": 26207, "text": "In this article, we will discuss important properties of different sorting techniques including their complexity, stability and memory constraints. Before understa...
disabled - Django Form Field Validation - GeeksforGeeks
13 Feb, 2020 Built-in Form Field Validations in Django Forms are the default validations that come predefined to all fields. Every field comes in with some built-in validations from Django validators. Each Field class constructor takes some fixed arguments. The disabled boolean argument, when set to True, disables a fo...
[ { "code": null, "e": 25875, "s": 25847, "text": "\n13 Feb, 2020" }, { "code": null, "e": 26120, "s": 25875, "text": "Built-in Form Field Validations in Django Forms are the default validations that come predefined to all fields. Every field comes in with some built-in validations...
Divide every element of one array by other array elements - GeeksforGeeks
26 Feb, 2021 Given two arrays and the operation to be performed is that the every element of a[] should be divided by all the element of b[] and their floor value has to be calculated.Examples : Input : a[] = {5, 100, 8}, b[] = {2, 3} Output : 0 16 1 Explanation : Size of a[] is 3. Size of b[] is 2. Now 5 has to be d...
[ { "code": null, "e": 25913, "s": 25885, "text": "\n26 Feb, 2021" }, { "code": null, "e": 26097, "s": 25913, "text": "Given two arrays and the operation to be performed is that the every element of a[] should be divided by all the element of b[] and their floor value has to be cal...
Lexicographically n-th permutation of a string
07 Jul, 2022 Given a string of length m containing lowercase alphabets only. You have to find the n-th permutation of string lexicographically. Examples: Input : str[] = "abc", n = 3 Output : Result = "bac" Explanation : All possible permutation in sorted order: abc, acb, bac, bca, cab, cba Input : str[] = "aba", n = ...
[ { "code": null, "e": 52, "s": 24, "text": "\n07 Jul, 2022" }, { "code": null, "e": 193, "s": 52, "text": "Given a string of length m containing lowercase alphabets only. You have to find the n-th permutation of string lexicographically. Examples:" }, { "code": null, "...
Best approach for “Keep Me Logged In” using PHP
10 May, 2020 We all have noticed the “Keep Me Logged In” checkbox in most of the websites we log in to. There are different ways and approaches to achieve this through code. The best approach among those is saving the User information in the user browser as cookies. Basically, we have to store both the Username and the...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 May, 2020" }, { "code": null, "e": 189, "s": 28, "text": "We all have noticed the “Keep Me Logged In” checkbox in most of the websites we log in to. There are different ways and approaches to achieve this through code." }, { ...
Types of Interfaces in Java
19 Dec, 2021 In Java, an interface is a reference type similar to a class that can contain only constants, the method signatures, default methods, and static methods, and ts Nested types. In interfaces, method bodies exist only for default methods and static methods. Writing an interface is similar to writing to a stan...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Dec, 2021" }, { "code": null, "e": 667, "s": 54, "text": "In Java, an interface is a reference type similar to a class that can contain only constants, the method signatures, default methods, and static methods, and ts Nested types....
Java 8 Stream Tutorial
16 Dec, 2021 Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result. Before proceeding further let us discuss out the difference between Collection and Streams in order to unders...
[ { "code": null, "e": 52, "s": 24, "text": "\n16 Dec, 2021" }, { "code": null, "e": 397, "s": 52, "text": "Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods which can be pipelined to prod...
How to Create Wave Background using CSS ?
07 Jul, 2021 The wave background can be easily generated by using before selector. We will use a wave image of .png file format which you can create on your own or can download from here.HTML Code: In this section, we will design the basic structure of the code. html <!DOCTYPE html><html lang="en"> <head> <meta ch...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Jul, 2021" }, { "code": null, "e": 280, "s": 28, "text": "The wave background can be easily generated by using before selector. We will use a wave image of .png file format which you can create on your own or can download from here.H...
How to Draw a Trapezium using HTML and CSS ?
21 Jun, 2021 A Trapezium is a Quadrilateral which has two parallel and two non-parallel sides. In this article we will create a Trapezium shape using simple HTML and CSS. HTML Code: In this section, we will create a simple element using the HTML div tag. HTML <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"...
[ { "code": null, "e": 28, "s": 0, "text": "\n21 Jun, 2021" }, { "code": null, "e": 186, "s": 28, "text": "A Trapezium is a Quadrilateral which has two parallel and two non-parallel sides. In this article we will create a Trapezium shape using simple HTML and CSS." }, { "co...
Difference Between Multithreading vs Multiprocessing in Python
10 May, 2020 In this article, we will learn the what, why, and how of multithreading and multiprocessing in Python. Before we dive into the code, let us understand what these terms mean. A program is an executable file which consists of a set of instructions to perform some task and is usually stored on the disk of you...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 May, 2020" }, { "code": null, "e": 228, "s": 54, "text": "In this article, we will learn the what, why, and how of multithreading and multiprocessing in Python. Before we dive into the code, let us understand what these terms mean."...
Looping Statements | Shell Script
11 Mar, 2022 Looping Statements in Shell Scripting: There are total 3 looping statements which can be used in bash programming while statementfor statementuntil statement while statement for statement until statement To alter the flow of loop statements, two commands are used they are, breakcontinue break continue ...
[ { "code": null, "e": 54, "s": 26, "text": "\n11 Mar, 2022" }, { "code": null, "e": 170, "s": 54, "text": "Looping Statements in Shell Scripting: There are total 3 looping statements which can be used in bash programming " }, { "code": null, "e": 214, "s": 170, ...
Tuples in Python
17 Jan, 2022 A Tuple is a collection of Python objects separated by commas. In someways a tuple is similar to a list in terms of indexing, nested objects and repetition but a tuple is immutable unlike lists which are mutable. Creating Tuples # An empty tupleempty_tuple = ()print (empty_tuple) Output: () # Creating non...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Jan, 2022" }, { "code": null, "e": 265, "s": 52, "text": "A Tuple is a collection of Python objects separated by commas. In someways a tuple is similar to a list in terms of indexing, nested objects and repetition but a tuple is imm...
Java Program to Get the File Extension
22 Oct, 2021 The extension of a file is the last part of its name after the period (.). For example, the Java source file extension is “java”, and you will notice that the file name always ends with “.java”. Getting the file extension in Java is done using the File class of Java, i.e., probeContentType() method. The Fi...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Oct, 2021" }, { "code": null, "e": 655, "s": 53, "text": "The extension of a file is the last part of its name after the period (.). For example, the Java source file extension is “java”, and you will notice that the file name alway...
PostgreSQL – Timestamp Data Type
24 Jan, 2022 In PostgreSQL 2 temporal data types namely timestamp and timestamptz where one is without timezone and the later is with timezone respectively, are supported to store Time and Date to a column. Both timestamp and timestamptz uses 8 bytes for storing timestamp values. Syntax: TIMESTAMP; or TIMESTAMPTZ; N...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jan, 2022" }, { "code": null, "e": 297, "s": 28, "text": "In PostgreSQL 2 temporal data types namely timestamp and timestamptz where one is without timezone and the later is with timezone respectively, are supported to store Time and...
Prototype - toArray() Method
This method splits the string character-by-character and returns an array with the result. string.toArray() ; Returns an array of characters. <html> <head> <title>Prototype examples</title> <script type = "text/javascript" src = "/javascript/prototype.js"> </script> <script> functi...
[ { "code": null, "e": 2152, "s": 2061, "text": "This method splits the string character-by-character and returns an array with the result." }, { "code": null, "e": 2172, "s": 2152, "text": "string.toArray() ;\n" }, { "code": null, "e": 2204, "s": 2172, "text": ...
How to use trim () in Android textview?
This example demonstrate about How to use trim () in Android textview. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xm...
[ { "code": null, "e": 1133, "s": 1062, "text": "This example demonstrate about How to use trim () in Android textview." }, { "code": null, "e": 1262, "s": 1133, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to crea...
How to refresh a webpage using Python Selenium Webdriver?
We can refresh a webpage using Selenium webdriver in Python. This can be done with the help of the refresh method. First of all, we have to launch the application with the get method. Once a web page is loaded completely, we can then refresh the page with the help of the refresh method. This way the existing page gets ...
[ { "code": null, "e": 1246, "s": 1062, "text": "We can refresh a webpage using Selenium webdriver in Python. This can be done with the help of the refresh method. First of all, we have to launch the application with the get method." }, { "code": null, "e": 1454, "s": 1246, "text":...
PHP - session_reset() Function
Sessions or session handling is a way to make the data available across various pages of a web application. The session_reset() function re-initializes the variables of a session with original values. session_reset(); This function does not accept any parameters. This function returns a boolean value which is TRUE if ...
[ { "code": null, "e": 2958, "s": 2757, "text": "Sessions or session handling is a way to make the data available across various pages of a web application. The session_reset() function re-initializes the variables of a session with original values." }, { "code": null, "e": 2976, "s": ...
eval - Unix, Linux Command
eval - Eval is a built in linux or unix command. eval [arg ..] eval is a built in linux or unix command. The eval command is used to execute the arguments as a shell command on unix or linux system. Eval command comes in handy when you have a unix or linux command stored in a variable and you want to execute that comma...
[ { "code": null, "e": 10626, "s": 10577, "text": "eval - Eval is a built in linux or unix command." }, { "code": null, "e": 10640, "s": 10626, "text": "eval [arg ..]" }, { "code": null, "e": 11018, "s": 10640, "text": "eval is a built in linux or unix command. ...
Transfer Learning in Action: From ImageNet to Tiny-ImageNet | by Thushan Ganegedara | Towards Data Science
Transfer learning is an important topic. As a civilization, we have been passing on the knowledge from one generation to the other, enabling the technological advancement that we enjoy today. It’s the edifice that supports most of the state-of-the-art models that are blowing steam, empowering many services that we take...
[ { "code": null, "e": 506, "s": 172, "text": "Transfer learning is an important topic. As a civilization, we have been passing on the knowledge from one generation to the other, enabling the technological advancement that we enjoy today. It’s the edifice that supports most of the state-of-the-art mod...
C Program for product of array
Given an array arr[n] of n number of elements, the task is to find the product of all the elements of that array. Like we have an array arr[7] of 7 elements so its product will be like Input: arr[] = { 10, 20, 3, 4, 8 } Output: 19200 Explanation: 10 x 20 x 3 x 4 x 8 = 19200 Input: arr[] = { 1, 2, 3, 4, 3, 2, 1 } Output...
[ { "code": null, "e": 1176, "s": 1062, "text": "Given an array arr[n] of n number of elements, the task is to find the product of all the elements of that array." }, { "code": null, "e": 1247, "s": 1176, "text": "Like we have an array arr[7] of 7 elements so its product will be li...
Toggle all even bits of a number - GeeksforGeeks
07 Sep, 2021 Given a number, the task is to Toggle all even bit of a numberExamples: Input : 10 Output : 0 binary representation 1 0 1 0 after toggle 0 0 0 0 Input : 20 Output : 30 binary representation 1 0 1 0 0 after toggle 1 1 1 1 0 1. First generate a number that contains even position bits...
[ { "code": null, "e": 26001, "s": 25973, "text": "\n07 Sep, 2021" }, { "code": null, "e": 26075, "s": 26001, "text": "Given a number, the task is to Toggle all even bit of a numberExamples: " }, { "code": null, "e": 26247, "s": 26075, "text": "Input : 10\nOutp...
Maximum number of threads that can be created within a process in C - GeeksforGeeks
26 Sep, 2017 Thread of execution is the smallest sequence of programmed instructions that can be managed independently by scheduler. Thread is a component of process and so multiple threads can be associated in a process. Linux doesn’t have a separate threads per process limit, but has a limit on the total number of pr...
[ { "code": null, "e": 24232, "s": 24204, "text": "\n26 Sep, 2017" }, { "code": null, "e": 24627, "s": 24232, "text": "Thread of execution is the smallest sequence of programmed instructions that can be managed independently by scheduler. Thread is a component of process and so mul...
Image Augmentation for Deep Learning using Keras and Histogram Equalization | by Ryan Allred | Towards Data Science
In this post we’ll go over: Image Augmentation: What is it? Why is it important? Keras: How to use it for basic Image Augmentation. Histogram Equalization: What is it? How is it useful? Implementing Histogram Equalization Techniques: one way to modify the keras.preprocessing image.py file. Deep Neural Networks, particu...
[ { "code": null, "e": 200, "s": 172, "text": "In this post we’ll go over:" }, { "code": null, "e": 253, "s": 200, "text": "Image Augmentation: What is it? Why is it important?" }, { "code": null, "e": 304, "s": 253, "text": "Keras: How to use it for basic Image...
How to uninstall the PowerShell Module?
To uninstall the PowerShell module, we can directly use the Uninstall-Module command but the module should not be in use, otherwise, it will throw an error. When we use the Uninstall-Module command, it can uninstall the module from the current user profile or from the all users profile. Uninstall-Module 7Zip4PowerShell...
[ { "code": null, "e": 1219, "s": 1062, "text": "To uninstall the PowerShell module, we can directly use the Uninstall-Module command but the module should not be in use, otherwise, it will throw an error." }, { "code": null, "e": 1350, "s": 1219, "text": "When we use the Uninstall...
Python | Pandas DataFrame.dropna()
05 Jul, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Sometimes csv file has null values, which are later displayed as NaN in Data Frame. Pandas dr...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Jul, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
External Sorting - GeeksforGeeks
17 Sep, 2021 External sorting is a term for a class of sorting algorithms that can handle massive amounts of data. External sorting is required when the data being sorted do not fit into the main memory of a computing device (usually RAM) and instead, they must reside in the slower external memory (usually a hard drive...
[ { "code": null, "e": 24076, "s": 24048, "text": "\n17 Sep, 2021" }, { "code": null, "e": 25080, "s": 24076, "text": "External sorting is a term for a class of sorting algorithms that can handle massive amounts of data. External sorting is required when the data being sorted do no...
How do I view the auto_increment value for a table in MySQL?
In order to view the auto_increment value for a table, you can use SHOW TABLE command. The syntax is as follows SHOW TABLE STATUS LIKE 'yourTableName'\G The syntax is as follows SELECT `AUTO_INCREMENT` FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA` = ‘yourDatabaseName’ AND `TABLE_NAME` =’yourTableName...
[ { "code": null, "e": 1149, "s": 1062, "text": "In order to view the auto_increment value for a table, you can use SHOW TABLE command." }, { "code": null, "e": 1174, "s": 1149, "text": "The syntax is as follows" }, { "code": null, "e": 1215, "s": 1174, "text": ...
Compare only day and month with date field in MySQL?
You can compare only day and month with date field in MySQL with the help of DATE_FORMAT(). The syntax is as follows select *from yourTableName WHERE DATE_FORMAT(yourColumnName, '%m-%d') = DATE_FORMAT('yourValue', '%m-%d') and yourCondition; To understand the above syntax, let us create a table. The query to create a t...
[ { "code": null, "e": 1154, "s": 1062, "text": "You can compare only day and month with date field in MySQL with the help of DATE_FORMAT()." }, { "code": null, "e": 1179, "s": 1154, "text": "The syntax is as follows" }, { "code": null, "e": 1304, "s": 1179, "te...
Two Pointers Approach — Python Code | by Amit Singh Rathore | Towards Data Science
Two are better than one if they act as one. Two pointer algorithm is one of the most commonly asked questions in any programming interview. This approach optimizes the runtime by utilizing some order (not necessarily sorting) of the data. It is generally applied on lists (arrays) and linked lists. This is generally use...
[ { "code": null, "e": 216, "s": 172, "text": "Two are better than one if they act as one." }, { "code": null, "e": 568, "s": 216, "text": "Two pointer algorithm is one of the most commonly asked questions in any programming interview. This approach optimizes the runtime by utilizi...
Write a program in Python to split the date column into day, month, year in multiple columns of a given dataframe
Assume, you have a dataframe and the result for a date, month, year column is, date day month year 0 17/05/2002 17 05 2002 1 16/02/1990 16 02 1990 2 25/09/1980 25 09 1980 3 11/05/2000 11 05 2000 4 17/09/1986 17 09 1986 To solve this, we will follow the steps given below − Create a list...
[ { "code": null, "e": 1141, "s": 1062, "text": "Assume, you have a dataframe and the result for a date, month, year column is," }, { "code": null, "e": 1315, "s": 1141, "text": " date day month year\n0 17/05/2002 17 05 2002\n1 16/02/1990 16 02 1990\n2 25/09/1980 ...
Hashtable Implementation with equals and hashcode Method in Java - GeeksforGeeks
20 Sep, 2021 To implement a hash table, we should use the hash table class, which will map keys to the values. The key or values of the hash table should be a non-null object. In order to store and retrieve data from the hash table, the non-null objects, that are used as keys must implement the hashCode() method and th...
[ { "code": null, "e": 23948, "s": 23920, "text": "\n20 Sep, 2021" }, { "code": null, "e": 24332, "s": 23948, "text": "To implement a hash table, we should use the hash table class, which will map keys to the values. The key or values of the hash table should be a non-null object. ...
JqueryUI - Tooltip
Tooltip widget of jQueryUI replaces the native tooltips. This widget adds new themes and allows for customization. First let us understand what tooltips are? Tooltips can be attached to any element. To display tooltips, just add title attribute to input elements and title attribute value will be used as tooltip. When y...
[ { "code": null, "e": 2692, "s": 2264, "text": "Tooltip widget of jQueryUI replaces the native tooltips. This widget adds new themes and allows for customization. First let us understand what tooltips are? Tooltips can be attached to any element. To display tooltips, just add title attribute to input...
Powershell - Scripting
Windows PowerShell is a command-line shell and scripting language designed especially for system administration. Its analogue in Linux is called as Bash Scripting. Built on the .NET Framework, Windows PowerShell helps IT professionals to control and automate the administration of the Windows operating system and applic...
[ { "code": null, "e": 2401, "s": 2034, "text": "Windows PowerShell is a command-line shell and scripting language designed especially for system administration. Its analogue in Linux is called as Bash Scripting. Built on the .NET Framework, Windows PowerShell helps IT professionals to control and aut...
How to create a responsive zig zag (alternating) layout with CSS?
To create responsive zig zag layout with CSS, the code is as follows − Live Demo <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { box-sizing:border-box; } body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-se...
[ { "code": null, "e": 1133, "s": 1062, "text": "To create responsive zig zag layout with CSS, the code is as follows −" }, { "code": null, "e": 1144, "s": 1133, "text": " Live Demo" }, { "code": null, "e": 3608, "s": 1144, "text": "<!DOCTYPE html>\n<html>\n<hea...
How to draw shapes using SVG in HTML5?
SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG. You can draw shapes like circle, rectangle, line, etc using SVG in ...
[ { "code": null, "e": 1315, "s": 1062, "text": "SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG."...
Java Concurrency - AtomicInteger Class
A java.util.concurrent.atomic.AtomicInteger class provides operations on underlying int value that can be read and written atomically, and also contains advanced atomic operations. AtomicInteger supports atomic operations on underlying int variable. It have get and set methods that work like reads and writes on volatil...
[ { "code": null, "e": 3161, "s": 2657, "text": "A java.util.concurrent.atomic.AtomicInteger class provides operations on underlying int value that can be read and written atomically, and also contains advanced atomic operations. AtomicInteger supports atomic operations on underlying int variable. It ...
Convert dataframe rows and columns to vector in R - GeeksforGeeks
05 Apr, 2021 In this article, we are going to convert a dataframe column to a vector and a dataframe row to a vector in the R Programming Language. We are taking a column in the data frame and passing it into another variable by using the selection method. The selection method can be defined as choosing a column from a...
[ { "code": null, "e": 24938, "s": 24910, "text": "\n05 Apr, 2021" }, { "code": null, "e": 25073, "s": 24938, "text": "In this article, we are going to convert a dataframe column to a vector and a dataframe row to a vector in the R Programming Language." }, { "code": null, ...
How to use metric learning: embedding is all you need | by Ivan Panshin | Towards Data Science
One of the most simplest and common tasks in machine learning is classification. For instance, in computer vision you want to be able to fine-tune the last layers of common convolutional neural networks (CNN) to correctly classify samples into some categories (classes). However, there are several fundamentally differen...
[ { "code": null, "e": 390, "s": 46, "text": "One of the most simplest and common tasks in machine learning is classification. For instance, in computer vision you want to be able to fine-tune the last layers of common convolutional neural networks (CNN) to correctly classify samples into some categor...
Find geometric sum of the series using recursion
09 Aug, 2021 Given an integer N, we need to find the geometric sum of the following series using recursion. 1 + 1/3 + 1/9 + 1/27 + ... + 1/(3^n) Examples: Input N = 5 Output: 1.49794 Input: N = 7 Output: 1.49977 Approach:In the above-mentioned problem, we are asked to use recursion. We will calculate the last...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Aug, 2021" }, { "code": null, "e": 149, "s": 52, "text": "Given an integer N, we need to find the geometric sum of the following series using recursion. " }, { "code": null, "e": 188, "s": 149, "text": "1 + 1/3 ...
exec command in Linux with examples
15 May, 2019 exec command in Linux is used to execute a command from the bash itself. This command does not create a new process it just replaces the bash with the command to be executed. If the exec command is successful, it does not return to the calling process. Syntax: exec [-cl] [-a name] [command [arguments]] [re...
[ { "code": null, "e": 53, "s": 25, "text": "\n15 May, 2019" }, { "code": null, "e": 306, "s": 53, "text": "exec command in Linux is used to execute a command from the bash itself. This command does not create a new process it just replaces the bash with the command to be executed....
Perl | Special Character Classes in Regular Expressions
27 Sep, 2019 There are many different character classes implemented in Perl and some of them used so frequently that a special sequence is created for them. The aim of creating a special sequence is to make the code more readable and shorter. The Special Character Classes in Perl are as follows: Digit \d[0-9]: The \d i...
[ { "code": null, "e": 28, "s": 0, "text": "\n27 Sep, 2019" }, { "code": null, "e": 312, "s": 28, "text": "There are many different character classes implemented in Perl and some of them used so frequently that a special sequence is created for them. The aim of creating a special s...
Plotting multiple time series on the same plot using ggplot in R
24 Jun, 2021 Time series data is hierarchical data. It is a series of data associated with a timestamp. An example of a time series is gold prices over a period or temperature range or precipitation during yearly storms. To visualize this data, R provides a handy library called ggplot. Using ggplot, we can see all sor...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jun, 2021" }, { "code": null, "e": 481, "s": 28, "text": "Time series data is hierarchical data. It is a series of data associated with a timestamp. An example of a time series is gold prices over a period or temperature range or pr...
Reflection in Golang
07 Sep, 2021 Reflection is the ability of a program to introspect and analyze its structure during run-time. In Go language, reflection is primarily carried out with types. The reflect package offers all the required APIs/Methods for this purpose. Reflection is often termed as a method of metaprogramming. To understand...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Sep, 2021" }, { "code": null, "e": 401, "s": 28, "text": "Reflection is the ability of a program to introspect and analyze its structure during run-time. In Go language, reflection is primarily carried out with types. The reflect pac...
Minimum operations required to make each row and column of matrix equals
20 Apr, 2022 Given a square matrix of size . Find minimum number of operation are required such that sum of elements on each row and column becomes equals. In one operation, increment any value of cell of matrix by 1. In first line print minimum operation required and in next ‘n’ lines print ‘n’ integers representing t...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 Apr, 2022" }, { "code": null, "e": 403, "s": 52, "text": "Given a square matrix of size . Find minimum number of operation are required such that sum of elements on each row and column becomes equals. In one operation, increment any...
Preprocessor Directives in C#
29 Mar, 2019 Preprocessor Directives in C# tell the compiler to process the given information before actual compilation of the program starts. It begins with a hashtag symbol (#) and since these preprocessors are not statements so no semi-colon is appended at the end. The C# compiler does not have a separate preprocess...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Mar, 2019" }, { "code": null, "e": 472, "s": 28, "text": "Preprocessor Directives in C# tell the compiler to process the given information before actual compilation of the program starts. It begins with a hashtag symbol (#) and since...
Python PostgreSQL – Update Table
07 Dec, 2021 In this article, we will see how to Update data in PostgreSQL using python and Psycopg2. The update command is used to modify the existing record in the table. By default whole records of the specific attribute are modified, but to modify some particular row, we need to use the where clause along with the ...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Dec, 2021" }, { "code": null, "e": 350, "s": 28, "text": "In this article, we will see how to Update data in PostgreSQL using python and Psycopg2. The update command is used to modify the existing record in the table. By default whol...
How to Generate Database Dump of MySQL Database in Linux?
30 Jun, 2021 We will learn how to Backup and Restore your MySQL Database with Mysqldump query in LINUX. We had always a need that if the production database is corrupted somehow, we should be able to recover it, for recovering we should always keep a backup of the database at particular instances. So, data rollback ca...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Jun, 2021" }, { "code": null, "e": 346, "s": 28, "text": "We will learn how to Backup and Restore your MySQL Database with Mysqldump query in LINUX. We had always a need that if the production database is corrupted somehow, we shoul...
PLSQL | CONCAT Function
18 Sep, 2019 The string in PL/SQL is actually a sequence of characters with an optional size specification.The characters could be numeric, letters, blank, special characters or a combination of all.The CONCAT function allows you to concatenate two strings together. To CONCAT more than two values, we can nest multiple ...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Sep, 2019" }, { "code": null, "e": 358, "s": 28, "text": "The string in PL/SQL is actually a sequence of characters with an optional size specification.The characters could be numeric, letters, blank, special characters or a combinat...
INET_ATON() function in MySQL
14 Dec, 2020 INET_ATON() : This function in MySQL takes the dotted-quad representation of an IPv4 address as a string and returns the numeric value of the given IP address in form of an integer. If the input address is not a valid IPv4 address this function returns NULL. The return address is calculated by the followin...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Dec, 2020" }, { "code": null, "e": 42, "s": 28, "text": "INET_ATON() :" }, { "code": null, "e": 347, "s": 42, "text": "This function in MySQL takes the dotted-quad representation of an IPv4 address as a string and...
How to wrap text inside and outside box using CSS ?
24 Jun, 2021 In this article, we are going to cover how one can wrap the text inside and outside the box using the CSS properties. Approach: We will be using the “overflow-wrap” property. This property comes into the picture when the length of the content exceeds the parent component length. The “overflow-wrap” propert...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jun, 2021" }, { "code": null, "e": 146, "s": 28, "text": "In this article, we are going to cover how one can wrap the text inside and outside the box using the CSS properties." }, { "code": null, "e": 366, "s": 146, ...
Remote Method Invocation in Java
22 Mar, 2022 Remote Method Invocation (RMI) is an API that allows an object to invoke a method on an object that exists in another address space, which could be on the same machine or on a remote machine. Through RMI, an object running in a JVM present on a computer (Client-side) can invoke methods on an object present...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Mar, 2022" }, { "code": null, "e": 533, "s": 52, "text": "Remote Method Invocation (RMI) is an API that allows an object to invoke a method on an object that exists in another address space, which could be on the same machine or on ...
Visualize Graphs in Python
17 May, 2022 Prerequisites: Graph Data Structure And Algorithms A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. In this tutorial we are going to visualize undirected Graphs...
[ { "code": null, "e": 54, "s": 26, "text": "\n17 May, 2022" }, { "code": null, "e": 105, "s": 54, "text": "Prerequisites: Graph Data Structure And Algorithms" }, { "code": null, "e": 301, "s": 105, "text": "A Graph is a non-linear data structure consisting of n...
Simplification and Approximation - GeeksforGeeks
13 May, 2016 10152 = (1000+15)2 = 10002 + 152 +2 x 1000 x 15 =1000000 + 225 + 30000 =1030225 10152 = (1000+15)2 = 10002 + 152 +2 x 1000 x 15 =1000000 + 225 + 30000 =1030225 103 x 103 + 97 x 97 = (100+3)2 + (100-3)2 = 2 (1002 + 32 ) [ (X +Y)2 + ( X – Y)2 = 2 ( X2 + Y2 ) ] = 2 (10000 + 9 ) = 2 x 10009 = 20018 9848 x 12...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n13 May, 2016" }, { "code": null, "e": 29657, "s": 29577, "text": "10152 = (1000+15)2\n= 10002 + 152 +2 x 1000 x 15\n=1000000 + 225 + 30000\n=1030225" }, { "code": null, "e": 29676, "s": 29657, "text": "10152 =...
Java Swing | JSeparator with examples
22 Jul, 2021 JSeparator is a part of Java Swing framework. It is used to create a dividing line between two components. More specifically, it is mainly used to create dividing lines between menu items in a JMenu. In JMenu or JPopupMenu addSeparartor function can also be used to create a separator. Constructor of the cl...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jul, 2021" }, { "code": null, "e": 314, "s": 28, "text": "JSeparator is a part of Java Swing framework. It is used to create a dividing line between two components. More specifically, it is mainly used to create dividing lines betwee...
GATE | GATE CS 2019 | Question 19
14 Feb, 2019 Let G be an undirected complete graph on n vertices, where n > 2. Then, the number of different Hamiltonian cycles in G is equal to (A) n!(B) n – 1!(C) 1(D) (n-1)! / 2Answer: (D)Explanation: A simple circuit in a graph G that passes through every vertex exactly once is called a Hamiltonian circuit. In an u...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Feb, 2019" }, { "code": null, "e": 160, "s": 28, "text": "Let G be an undirected complete graph on n vertices, where n > 2. Then, the number of different Hamiltonian cycles in G is equal to" }, { "code": null, "e": 328, ...
How to Remove Firebase Authentication in Android Studio?
29 Dec, 2021 Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains’ IntelliJ IDEA software. Android Studio provides many excellent features that enhance productivity when building Android apps, such as: A blended environment where one can develo...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2021" }, { "code": null, "e": 293, "s": 28, "text": "Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains’ IntelliJ IDEA software. Android Studio provid...
Why Java Collections Cannot Directly Store Primitives Types?
02 Jun, 2021 Primitive types are the most basic data types available within the Java language. Such types serve only one purpose — containing pure, simple values of a kind. Since java is a Statically typed language where each variable and expression type is already known at compile-time, thus you can not define a new o...
[ { "code": null, "e": 28, "s": 0, "text": "\n02 Jun, 2021" }, { "code": null, "e": 370, "s": 28, "text": "Primitive types are the most basic data types available within the Java language. Such types serve only one purpose — containing pure, simple values of a kind. Since java is a...
C# | How to get the HashCode of the tuple?
30 Apr, 2019 A tuple is a data structure which gives you the easiest way to represent a data set. You can also get the hash code of the tuple by using the GetHashCode Method. This method will return the hash code of the given tuple object. Syntax: public override int GetHashCode (); Return Type: The return type of this...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 Apr, 2019" }, { "code": null, "e": 255, "s": 28, "text": "A tuple is a data structure which gives you the easiest way to represent a data set. You can also get the hash code of the tuple by using the GetHashCode Method. This method w...
How to remove an added list items using JavaScript ?
06 Jul, 2021 In the following article, we dynamically add and remove list items using JavaScript. We are using JavaScript to add and/or remove list items dynamically which means that if we run our webpage it will show the option of adding and removing items using buttons. Approach: In the webpage, one input text box ...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 Jul, 2021" }, { "code": null, "e": 289, "s": 28, "text": "In the following article, we dynamically add and remove list items using JavaScript. We are using JavaScript to add and/or remove list items dynamically which means that if w...
Python | Pandas DataFrame.reset_index()
17 Sep, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas reset_index() is a method to reset index of a Data Frame. reset_index() method sets a ...
[ { "code": null, "e": 52, "s": 24, "text": "\n17 Sep, 2018" }, { "code": null, "e": 266, "s": 52, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes im...
Python | Merge two text files
19 Jul, 2019 Given two text files, the task is to merge the data and store in a new text file. Let’s see how can we do this task using Python. To merge two files in Python, we are asking user to enter the name of the primary and second file and make a new file to put the unified content of the two data into this freshl...
[ { "code": null, "e": 28, "s": 0, "text": "\n19 Jul, 2019" }, { "code": null, "e": 158, "s": 28, "text": "Given two text files, the task is to merge the data and store in a new text file. Let’s see how can we do this task using Python." }, { "code": null, "e": 351, ...
Python - Get the Index of first element greater than K
The values of items in a python list are not necessarily in any sorted order. More over there may be situation when we are interested only in certain values greater than a specific value. In this article we will see how we can get the Using enumeration we get both the index and value of the elements in the list. Then w...
[ { "code": null, "e": 1422, "s": 1187, "text": "The values of items in a python list are not necessarily in any sorted order. More over there may be situation when we are interested only in certain values greater than a specific value. In this article we will see how we can get the" }, { "cod...
Output of Java Programs | Set 37 (If-else)
25 Sep, 2017 Prerequisite: if else, for loops 1. What will be the output for the following program? publicclass Test {public static void main(String[] args) { for (;;) System.out.println("GEEKS"); }} Options:1.GEEKS2.Compile time error3.Run time Exception4.GEEKS (Infinitely) The answer is opt...
[ { "code": null, "e": 52, "s": 24, "text": "\n25 Sep, 2017" }, { "code": null, "e": 85, "s": 52, "text": "Prerequisite: if else, for loops" }, { "code": null, "e": 139, "s": 85, "text": "1. What will be the output for the following program?" }, { "code"...
Storage Management
19 Jun, 2019 Storage Management is defined as it refers to the management of the data storage equipment’s that are used to store the user/computer generated data. Hence it is a tool or set of processes used by an administrator to keep your data and storage equipment’s safe. Storage management is a process for users to ...
[ { "code": null, "e": 54, "s": 26, "text": "\n19 Jun, 2019" }, { "code": null, "e": 316, "s": 54, "text": "Storage Management is defined as it refers to the management of the data storage equipment’s that are used to store the user/computer generated data. Hence it is a tool or se...
Java Program to Convert Binary to Hexadecimal
20 May, 2021 The Hexadecimal number system as the name suggests comprises 16 entities. These 16 entities consist of 10 digits, 0-9 representing the first 10 numbers of the hexadecimal system as well. For the remaining 6 numbers, we use English alphabets ranging from A through F to represent the numbers 10 to 15. It sho...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 May, 2021" }, { "code": null, "e": 609, "s": 53, "text": "The Hexadecimal number system as the name suggests comprises 16 entities. These 16 entities consist of 10 digits, 0-9 representing the first 10 numbers of the hexadecimal sys...
Minimum number of deletions to make a string palindrome
01 Jun, 2022 Given a string of size ‘n’. The task is to remove or delete the minimum number of characters from the string so that the resultant string is a palindrome. Note: The order of characters should be maintained. Examples : Input : aebcbda Output : 2 Remove characters 'e' and 'd' Resultant string will be 'abc...
[ { "code": null, "e": 54, "s": 26, "text": "\n01 Jun, 2022" }, { "code": null, "e": 210, "s": 54, "text": "Given a string of size ‘n’. The task is to remove or delete the minimum number of characters from the string so that the resultant string is a palindrome. " }, { "cod...
Dart – Collections
22 Sep, 2021 Collections are groups of objects that represent a particular element. The dart::collection library is used to implement the collection in dart. There are a variety of collections available in dart. Some of the classes of Dart Collection are – List<E>: A List is an ordered group of objects. Set<E>: Collect...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Sep, 2021" }, { "code": null, "e": 252, "s": 53, "text": "Collections are groups of objects that represent a particular element. The dart::collection library is used to implement the collection in dart. There are a variety of collec...
Number of Positions to partition the string such that atleast m characters with same frequency are present in each substring
10 Jun, 2022 Given a string str of lowercase English alphabets and an integer m. The task is to count how many positions are there in the string such that if you partition the string into two non-empty sub-strings, there are at least m characters with the same frequency in both the sub-strings. The characters need to b...
[ { "code": null, "e": 54, "s": 26, "text": "\n10 Jun, 2022" }, { "code": null, "e": 401, "s": 54, "text": "Given a string str of lowercase English alphabets and an integer m. The task is to count how many positions are there in the string such that if you partition the string into...
Set Aspect Ratio of Scatter Plot and Bar Plot in R Programming - Using asp in plot() Function - GeeksforGeeks
30 Jun, 2020 asp is a parameter of the plot() function in R Language is used to set aspect ratio of plots (Scatterplot and Barplot). Aspect ratio is defined as proportional relationship between width and height of the plot axes. Syntax: plot(x, y, asp ) Parameters:x, y: Coordinates of x and y axisasp: Aspect ratio Exam...
[ { "code": null, "e": 26487, "s": 26459, "text": "\n30 Jun, 2020" }, { "code": null, "e": 26703, "s": 26487, "text": "asp is a parameter of the plot() function in R Language is used to set aspect ratio of plots (Scatterplot and Barplot). Aspect ratio is defined as proportional rel...
exp() function C++ - GeeksforGeeks
12 May, 2022 The exp() function in C++ returns the exponential (Euler’s number) e (or 2.71828) raised to the given argument. Syntax for returning exponential e: result=exp() Parameter: The function can take any value i.e, positive, negative or zero in its parameter and returns result in int, double or float or long dou...
[ { "code": null, "e": 25826, "s": 25798, "text": "\n12 May, 2022" }, { "code": null, "e": 25938, "s": 25826, "text": "The exp() function in C++ returns the exponential (Euler’s number) e (or 2.71828) raised to the given argument." }, { "code": null, "e": 25987, "s"...
Sink Odd nodes in Binary Tree - GeeksforGeeks
02 Mar, 2022 Given a Binary Tree having odd and even elements, sink all its odd valued nodes such that no node with odd value could be parent of node with even value. There can be multiple outputs for a given tree, we need to print one of them. It is always possible to convert a tree (Note that a node with even nodes a...
[ { "code": null, "e": 26613, "s": 26585, "text": "\n02 Mar, 2022" }, { "code": null, "e": 26956, "s": 26613, "text": "Given a Binary Tree having odd and even elements, sink all its odd valued nodes such that no node with odd value could be parent of node with even value. There can...
Area of Reuleaux Triangle - GeeksforGeeks
17 Mar, 2021 Given an integer h which is the side of an equilateral triangle formed by the same vertices as the Reuleaux triangle, the task is to find and print the area of the Reuleaux triangle. Examples: Input: h = 6 Output: 25.3717Input: h = 9 Output: 57.0864 Approach: The shape made by the intersection of t...
[ { "code": null, "e": 25851, "s": 25823, "text": "\n17 Mar, 2021" }, { "code": null, "e": 26036, "s": 25851, "text": "Given an integer h which is the side of an equilateral triangle formed by the same vertices as the Reuleaux triangle, the task is to find and print the area of the...
CSS | ::first-line Selector - GeeksforGeeks
04 Jan, 2019 The ::first-line selector in CSS is used to apply style to the first line of a block-level element. The length of the first line depends on many factors, including the width of the element, the width of the document, font-size of the text, etc. Syntax: ::first-line { //CSS Property } Example: <!DOCTYP...
[ { "code": null, "e": 24885, "s": 24857, "text": "\n04 Jan, 2019" }, { "code": null, "e": 25130, "s": 24885, "text": "The ::first-line selector in CSS is used to apply style to the first line of a block-level element. The length of the first line depends on many factors, including...
Program to accept a Strings which contains all the Vowels - GeeksforGeeks
21 May, 2021 Given a string S, the task is to check and accept the given string if it contains all vowels i.e. ‘a’, ‘e’, ‘i’.’o’, ‘u’ or ‘A’, ‘E’, ‘I’, ‘O’, ‘U’.Examples: Input: S = “GeeksforGeeks” Output: Not Accepted Since S does not contain vowels a, i and uInput: S = “ABeeIghiObhkUul” Output: Accepted Since S con...
[ { "code": null, "e": 26323, "s": 26295, "text": "\n21 May, 2021" }, { "code": null, "e": 26483, "s": 26323, "text": "Given a string S, the task is to check and accept the given string if it contains all vowels i.e. ‘a’, ‘e’, ‘i’.’o’, ‘u’ or ‘A’, ‘E’, ‘I’, ‘O’, ‘U’.Examples: " ...
MySQL | DATABASE() and CURRENT_USER() Functions - GeeksforGeeks
21 Jun, 2021 DATABASE() Function The DATABASE() Function in MySQL returns the name of the default or current database. The string or name returned by DATABASE() function uses the utf8 character set. If there is no default database,the Database function returns NULL. In the older versions than MySQL 4.1.1,The Database f...
[ { "code": null, "e": 25513, "s": 25485, "text": "\n21 Jun, 2021" }, { "code": null, "e": 25533, "s": 25513, "text": "DATABASE() Function" }, { "code": null, "e": 25894, "s": 25533, "text": "The DATABASE() Function in MySQL returns the name of the default or cu...
Non-generic Vs Generic Collection in Java
Errors appear at compile time than at run time. Code reusability: Generics help in reusing the code already written, thereby making it usable for other types (for a method, or class, or an interface). If a data structure is generic, say a list, it would only take specific type of objects and return the same specific ty...
[ { "code": null, "e": 1110, "s": 1062, "text": "Errors appear at compile time than at run time." }, { "code": null, "e": 1263, "s": 1110, "text": "Code reusability: Generics help in reusing the code already written, thereby making it usable for other types (for a method, or class,...