title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
How to parse command line arguments in node.js ? - GeeksforGeeks | 10 Dec, 2020
Command-line arguments are strings of text used to pass additional information to a program when an application is run through the command-line interface (CLI) of an operating system. In Node.js, all command-line arguments received by the shell are given to the process in an array called argv(arguments-val... | [
{
"code": null,
"e": 26491,
"s": 26463,
"text": "\n10 Dec, 2020"
},
{
"code": null,
"e": 26804,
"s": 26491,
"text": "Command-line arguments are strings of text used to pass additional information to a program when an application is run through the command-line interface (CLI) of ... |
Cassandra - Delete Data | You can delete data from a table using the command DELETE. Its syntax is as follows −
DELETE FROM <identifier> WHERE <condition>;
Let us assume there is a table in Cassandra called emp having the following data −
The following statement deletes the emp_sal column of last row −
cqlsh:tutorialspoint> DELETE emp_sal FROM... | [
{
"code": null,
"e": 2373,
"s": 2287,
"text": "You can delete data from a table using the command DELETE. Its syntax is as follows −"
},
{
"code": null,
"e": 2418,
"s": 2373,
"text": "DELETE FROM <identifier> WHERE <condition>;\n"
},
{
"code": null,
"e": 2501,
"s"... |
ReactJS - Using Flux | In this chapter, we will learn how to implement flux pattern in React applications. We will use Redux framework. The goal of this chapter is to present the simplest example of every piece needed for connecting Redux and React.
We will install Redux via the command prompt window.
C:\Users\username\Desktop\reactApp>npm i... | [
{
"code": null,
"e": 2260,
"s": 2033,
"text": "In this chapter, we will learn how to implement flux pattern in React applications. We will use Redux framework. The goal of this chapter is to present the simplest example of every piece needed for connecting Redux and React."
},
{
"code": null... |
Function Overloading and float in C++ - GeeksforGeeks | 03 Sep, 2018
Although polymorphism is a widely useful phenomena in C++ yet it can be quite complicated at times. For instance consider the following code snippet:
#include<iostream>using namespace std;void test(float s,float t){ cout << "Function with float called ";}void test(int s, int t){ cout << "Function wit... | [
{
"code": null,
"e": 25034,
"s": 25006,
"text": "\n03 Sep, 2018"
},
{
"code": null,
"e": 25184,
"s": 25034,
"text": "Although polymorphism is a widely useful phenomena in C++ yet it can be quite complicated at times. For instance consider the following code snippet:"
},
{
... |
What is JSON.parse() and and explain its use in javascript? | When the data is received from web server, the data is always a string .So to change it to the object, JSON.parse() method is used.
Live Demo
<html>
<body>
<script>
var obj = '{"name":"Jon", "age":20, "city":"Columbia"}';
var res = JSON.parse(obj);
document.write(res);
console.log(res);
</script>
</body>
... | [
{
"code": null,
"e": 1195,
"s": 1062,
"text": "When the data is received from web server, the data is always a string .So to change it to the object, JSON.parse() method is used. "
},
{
"code": null,
"e": 1206,
"s": 1195,
"text": " Live Demo"
},
{
"code": null,
"e": 1... |
Bayer’s Approach to Modelling and Loading Data at Scale | by Daniel Crowe | Towards Data Science | Back in April we hosted an online conference for our community, Orbit 2021, and in listening to Henning Kuich, Dan Plischke, and Joren Retel from Bayer Pharmaceuticals, the community got a glimpse into how a team within Bayer Pharmaceuticals uses TypeDB to accelerate their drug discovery pipelines.
The team at Bayer fu... | [
{
"code": null,
"e": 472,
"s": 172,
"text": "Back in April we hosted an online conference for our community, Orbit 2021, and in listening to Henning Kuich, Dan Plischke, and Joren Retel from Bayer Pharmaceuticals, the community got a glimpse into how a team within Bayer Pharmaceuticals uses TypeDB t... |
Circular Queue | Set 2 (Circular Linked List Implementation) - GeeksforGeeks | 30 Sep, 2020
Prerequisite – Circular Singly Linked List
We have discussed basics and how to implement circular queue using array in set 1.Circular Queue | Set 1 (Introduction and Array Implementation)
In this post another method of circular queue implementation is discussed, using Circular Singly Linked List.
Operation... | [
{
"code": null,
"e": 31010,
"s": 30982,
"text": "\n30 Sep, 2020"
},
{
"code": null,
"e": 31053,
"s": 31010,
"text": "Prerequisite – Circular Singly Linked List"
},
{
"code": null,
"e": 31198,
"s": 31053,
"text": "We have discussed basics and how to implement c... |
C - perror function | C - Programming HOME
C - Basic Introduction
C - Program Structure
C - Reserved Keywords
C - Basic Datatypes
C - Variable Types
C - Storage Classes
C - Using Constants
C - Operator Types
C - Control Statements
C - Input and Output
C - Pointing to Data
C - Using Functions
C - Play with Strings
C - Structured Datatypes
C ... | [
{
"code": null,
"e": 1475,
"s": 1454,
"text": "C - Programming HOME"
},
{
"code": null,
"e": 1498,
"s": 1475,
"text": "C - Basic Introduction"
},
{
"code": null,
"e": 1520,
"s": 1498,
"text": "C - Program Structure"
},
{
"code": null,
"e": 1542,
... |
Java Program for Binary Insertion Sort | Binary insertion sort uses the binary search to find the right position to insert an element at a specific index at every iteration. First, the location where the element needs to be inserted is found. Then, the elements are shifted to the next right location. Now, the specific element is placed in the position.
Follow... | [
{
"code": null,
"e": 1376,
"s": 1062,
"text": "Binary insertion sort uses the binary search to find the right position to insert an element at a specific index at every iteration. First, the location where the element needs to be inserted is found. Then, the elements are shifted to the next right lo... |
Print leading zeros with C++ output operator | Here we will see how to print leading zeros as output in C++. We know that if we directly put some zeros before some numeric values, then all zeros are discarded, and only exact numbers are printed.
In C, we can solve this problem by using some options of format specifier. In C++ we can manipulate the output sequence u... | [
{
"code": null,
"e": 1261,
"s": 1062,
"text": "Here we will see how to print leading zeros as output in C++. We know that if we directly put some zeros before some numeric values, then all zeros are discarded, and only exact numbers are printed."
},
{
"code": null,
"e": 1586,
"s": 12... |
Git Ignore and .gitignore | When sharing your code with others, there are often files or parts of your project, you do not want to share.
Examples
log files
temporary files
hidden files
personal files
etc.
Git can specify which files or parts of your project should be
ignored by Git using a .gitignore file.
Git will not track files and folders s... | [
{
"code": null,
"e": 110,
"s": 0,
"text": "When sharing your code with others, there are often files or parts of your project, you do not want to share."
},
{
"code": null,
"e": 119,
"s": 110,
"text": "Examples"
},
{
"code": null,
"e": 129,
"s": 119,
"text": "... |
Pandas for Data Science: A Beginner’s Guide, Part I | by Christine Egan | Towards Data Science | Pandas is a data analysis library that is built on top of Python. This flexible library is useful for manipulating and analyzing data in a variety of structures, however it is especially useful for tabular data, like SQL tables and Excel spreadsheets. In this tutorial, I will focus on the most essential functions for w... | [
{
"code": null,
"e": 544,
"s": 171,
"text": "Pandas is a data analysis library that is built on top of Python. This flexible library is useful for manipulating and analyzing data in a variety of structures, however it is especially useful for tabular data, like SQL tables and Excel spreadsheets. In ... |
GATE | GATE CS 2008 | Question 45 - GeeksforGeeks | 28 Jun, 2021
Dijkstra’s single source shortest path algorithm when run from vertex a in the below graph, computes the correct shortest path distance to
(A) only vertex a(B) only vertices a, e, f, g, h(C) only vertices a, b, c, d(D) all the verticesAnswer: (D)Explanation: Dijkstra’s single source shortest path is not gu... | [
{
"code": null,
"e": 24414,
"s": 24386,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 24553,
"s": 24414,
"text": "Dijkstra’s single source shortest path algorithm when run from vertex a in the below graph, computes the correct shortest path distance to"
},
{
"code": nu... |
Changing the Mouse Cursor - Tkinter - GeeksforGeeks | 24 Jan, 2021
Prerequisite: Python GUI – tkinter
Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python.
In this article, we will learn, how to change... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 24327,
"s": 24292,
"text": "Prerequisite: Python GUI – tkinter"
},
{
"code": null,
"e": 24554,
"s": 24327,
"text": "Python offers multiple options for developing a GUI (Gr... |
Playfair Cipher Decryption | by Ruthu S Sanketh | Towards Data Science | If you haven’t read this article on Playfair Encryption, go take a look first! It has a brief on the Playfair cipher as well as the logic behind most of the code.
The Playfair CipherRules for DecryptionC ImplementationOutputs for Some CiphertextsFurther Reading
The Playfair Cipher
Rules for Decryption
C Implementation
... | [
{
"code": null,
"e": 335,
"s": 172,
"text": "If you haven’t read this article on Playfair Encryption, go take a look first! It has a brief on the Playfair cipher as well as the logic behind most of the code."
},
{
"code": null,
"e": 434,
"s": 335,
"text": "The Playfair CipherRule... |
Basic Operators in Relational Algebra | Relational Algebra is a procedural query language, it is used to provide a single table / relation as output of performing operations on more than one relations. Some of the basic relations will be discussed here.
In our course of learning, we will use three relations (table) −
On this relations, we will perform some o... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "Relational Algebra is a procedural query language, it is used to provide a single table / relation as output of performing operations on more than one relations. Some of the basic relations will be discussed here."
},
{
"code": null,
"e": 13... |
Dropout Neural Network Layer In Keras Explained | by Cory Maklin | Towards Data Science | Machine learning is ultimately used to predict outcomes given a set of features. Therefore, anything we can do to generalize the performance of our model is seen as a net gain. Dropout is a technique used to prevent a model from overfitting. Dropout works by randomly setting the outgoing edges of hidden units (neurons ... | [
{
"code": null,
"e": 749,
"s": 171,
"text": "Machine learning is ultimately used to predict outcomes given a set of features. Therefore, anything we can do to generalize the performance of our model is seen as a net gain. Dropout is a technique used to prevent a model from overfitting. Dropout works... |
ISRO | ISRO CS 2009 | Question 42 - GeeksforGeeks | 06 Jun, 2018
Substitution of values for names (whose values are constants) is done in(A) Local optimization(B) Loop optimization(C) Constant folding(D) Strength reductionAnswer: (C)Explanation: Constant folding is the process of recognizing and evaluating constant expressions at compile time rather than computing them ... | [
{
"code": null,
"e": 25655,
"s": 25627,
"text": "\n06 Jun, 2018"
},
{
"code": null,
"e": 25974,
"s": 25655,
"text": "Substitution of values for names (whose values are constants) is done in(A) Local optimization(B) Loop optimization(C) Constant folding(D) Strength reductionAnswer... |
Embedding Interfaces in Golang - GeeksforGeeks | 07 Aug, 2019
In Go language, the interface is a collection of method signatures and it is also a type means you can create a variable of an interface type. As we know that the Go language does not support inheritance, but the Go interface fully supports embedding. In embedding, an interface can embed other interfaces o... | [
{
"code": null,
"e": 25557,
"s": 25529,
"text": "\n07 Aug, 2019"
},
{
"code": null,
"e": 26250,
"s": 25557,
"text": "In Go language, the interface is a collection of method signatures and it is also a type means you can create a variable of an interface type. As we know that the ... |
Python program to reverse a stack - GeeksforGeeks | 09 May, 2022
The stack is a linear data structure which works on the LIFO concept. LIFO stands for last in first out. In the stack, the insertion and deletion are possible at one end the end is called the top of the stack.
In this article, we will see how to reverse a stack using Python.
Algorithm:
Define some basi... | [
{
"code": null,
"e": 25641,
"s": 25613,
"text": "\n09 May, 2022"
},
{
"code": null,
"e": 25851,
"s": 25641,
"text": "The stack is a linear data structure which works on the LIFO concept. LIFO stands for last in first out. In the stack, the insertion and deletion are possible at o... |
Identification of Web Application Firewall using WAFW00F in Kali Linux - GeeksforGeeks | 30 Jun, 2021
A firewall is a security device that monitors incoming and outgoing traffic just like IPS and IDS. A firewall can be hardware and it can also be software. The firewall is a security mechanism that monitors and filters incoming traffic and also blocks outsiders from gaining unauthorized access to the intern... | [
{
"code": null,
"e": 25651,
"s": 25623,
"text": "\n30 Jun, 2021"
},
{
"code": null,
"e": 26557,
"s": 25651,
"text": "A firewall is a security device that monitors incoming and outgoing traffic just like IPS and IDS. A firewall can be hardware and it can also be software. The fire... |
Python | Test list element similarity - GeeksforGeeks | 27 Jun, 2019
Given a list, your task is to determine the list is K percent same i.e has element that is populated more than K % times.Given below are few methods to solve the task.Method #1 Using collections.Counter
# Python3 code to demonstrate# to check whether the list# K percent same or notfrom collections import C... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n27 Jun, 2019"
},
{
"code": null,
"e": 25740,
"s": 25537,
"text": "Given a list, your task is to determine the list is K percent same i.e has element that is populated more than K % times.Given below are few methods to solve the t... |
How do you run JavaScript script through the Terminal? - GeeksforGeeks | 29 Mar, 2022
You can Run your JavaScript File from your Terminal only if you have installed NodeJs runtime. If you have Installed it then Simply open the terminal and type “node FileName.js”. If you don’t have NodeJs runtime environment then go to NodeJs Runtime Environment Download and Download it. Example 1: Create a... | [
{
"code": null,
"e": 26017,
"s": 25989,
"text": "\n29 Mar, 2022"
},
{
"code": null,
"e": 26368,
"s": 26017,
"text": "You can Run your JavaScript File from your Terminal only if you have installed NodeJs runtime. If you have Installed it then Simply open the terminal and type “nod... |
Use of blockquote, q and cite tags in HTML - GeeksforGeeks | 25 May, 2020
HTML | blockquote Tag: The <blockquote> tag in HTML is used to display the long quotations (a section that is quoted from another source). It changes the alignment to make it unique from others. It contains both opening and closing tags.
Syntax:
<blockquote>
<p>The quote is input here.</p>
</blockq... | [
{
"code": null,
"e": 25709,
"s": 25681,
"text": "\n25 May, 2020"
},
{
"code": null,
"e": 25947,
"s": 25709,
"text": "HTML | blockquote Tag: The <blockquote> tag in HTML is used to display the long quotations (a section that is quoted from another source). It changes the alignment... |
Treemap using Plotly in Python - GeeksforGeeks | 28 Jun, 2021
Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library.
Treem... | [
{
"code": null,
"e": 24951,
"s": 24923,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 25253,
"s": 24951,
"text": "Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, sp... |
Reverse string in Python (5 different ways) - GeeksforGeeks | 21 Oct, 2017
Python string library does’nt support the in-built “reverse()” as done by other python containers like list, hence knowing other methods to reverse string can prove to be useful. This article discusses several ways to achieve it.
# Python code to reverse a string # using loop def reverse(s): str = "" fo... | [
{
"code": null,
"e": 25947,
"s": 25919,
"text": "\n21 Oct, 2017"
},
{
"code": null,
"e": 26177,
"s": 25947,
"text": "Python string library does’nt support the in-built “reverse()” as done by other python containers like list, hence knowing other methods to reverse string can prov... |
Program to check whether the given number is Buzz Number or not - GeeksforGeeks | 31 Jan, 2022
A number is said to be Buzz Number if it ends with 7 OR is divisible by 7. The task is to check whether the given number is buzz number or not.Examples:
Input : 63
Output : Buzz Number
Explanation: 63 is divisible by 7, one
of the condition is satisfied.
Input : 72
Output : Not a Buzz Number
Explanation... | [
{
"code": null,
"e": 25439,
"s": 25411,
"text": "\n31 Jan, 2022"
},
{
"code": null,
"e": 25594,
"s": 25439,
"text": "A number is said to be Buzz Number if it ends with 7 OR is divisible by 7. The task is to check whether the given number is buzz number or not.Examples: "
},
... |
Automate backup with Python Script - GeeksforGeeks | 31 Aug, 2021
In this article, we are going to see how to automate backup with a Python script.
File backups are essential for preserving your data in local storage. We will use the shutil, os, and sys modules. In this case, the shutil module is used to copy data from one file to another, while the os and sys modules ar... | [
{
"code": null,
"e": 25537,
"s": 25509,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 25619,
"s": 25537,
"text": "In this article, we are going to see how to automate backup with a Python script."
},
{
"code": null,
"e": 25891,
"s": 25619,
"text": "File bac... |
Fix "Unable to locate adb within SDK" in Android Studio - GeeksforGeeks | 11 Jun, 2021
The following error occurs when the adb file is not found within the SDK system folder. A software development kit (SDK) provides the software required to build your applications for a target platform.
To resolve this, firstly you need to check if the adb is even present in the SDK folder. For this, open C... | [
{
"code": null,
"e": 25973,
"s": 25945,
"text": "\n11 Jun, 2021"
},
{
"code": null,
"e": 26175,
"s": 25973,
"text": "The following error occurs when the adb file is not found within the SDK system folder. A software development kit (SDK) provides the software required to build yo... |
Snake and Ladder Problem - GeeksforGeeks | 23 Jul, 2021
Given a snake and ladder board, find the minimum number of dice throws required to reach the destination or last cell from source or 1st cell. Basically, the player has total control over outcome of dice throw and wants to find out minimum number of throws required to reach last cell.If the player reaches ... | [
{
"code": null,
"e": 26231,
"s": 26203,
"text": "\n23 Jul, 2021"
},
{
"code": null,
"e": 26715,
"s": 26231,
"text": "Given a snake and ladder board, find the minimum number of dice throws required to reach the destination or last cell from source or 1st cell. Basically, the playe... |
Print all palindromic partitions of a string - GeeksforGeeks | 24 Mar, 2020
Given a string s, partition s such that every string of the partition is a palindrome. Return all possible palindrome partitioning of s.
Example :
Input : s = "bcc"
Output : [["b", "c", "c"], ["b", "cc"]]
Input : s = "geeks"
Output : [["g", "e", "e", "k", "s"],
["g", "ee", "k", "s"]]
We have... | [
{
"code": null,
"e": 26227,
"s": 26199,
"text": "\n24 Mar, 2020"
},
{
"code": null,
"e": 26364,
"s": 26227,
"text": "Given a string s, partition s such that every string of the partition is a palindrome. Return all possible palindrome partitioning of s."
},
{
"code": null... |
How to Print Fast Output in Competitive Programming using Java? - GeeksforGeeks | 16 Aug, 2021
In Competitive programming, most of the students use C++ as their primary language as it is faster than the other languages(e.g Java, Python) but for a student/professional who use Java as his/her primary language taking Input from input streams and printing fast output is the main difficulty faced during ... | [
{
"code": null,
"e": 26281,
"s": 26253,
"text": "\n16 Aug, 2021"
},
{
"code": null,
"e": 26660,
"s": 26281,
"text": "In Competitive programming, most of the students use C++ as their primary language as it is faster than the other languages(e.g Java, Python) but for a student/pro... |
Packages in Java - GeeksQuiz | 07 Mar, 2018
1) Every class is part of some package.
2) All classes in a file are part of the same package.
3) If no package is specified, the classes in the file
go into a special unnamed package
4) If no package is specified, a new package is created with
folder name of class and the class is put in this p... | [
{
"code": null,
"e": 28855,
"s": 28827,
"text": "\n07 Mar, 2018"
},
{
"code": null,
"e": 29171,
"s": 28855,
"text": "1) Every class is part of some package. \n2) All classes in a file are part of the same package. \n3) If no package is specified, the classes in the file \n go i... |
Python | Ways to concatenate tuples - GeeksforGeeks | 29 Oct, 2019
Many times, while working with records, we can have a problem in which we need to add two records and store them together. This requires concatenation. As tuples are immutable, this task becomes little complex. Let’s discuss certain ways in which this task can be performed.
Method #1 : Using + operatorThis... | [
{
"code": null,
"e": 25681,
"s": 25653,
"text": "\n29 Oct, 2019"
},
{
"code": null,
"e": 25956,
"s": 25681,
"text": "Many times, while working with records, we can have a problem in which we need to add two records and store them together. This requires concatenation. As tuples a... |
How to Calculate the P-Value of a T-Score in R? - GeeksforGeeks | 17 Dec, 2021
In order to accept or reject a sample that is given to you by your company or someone or basically simply just to examine data, p-value is calculated. After calculating the p-value we compare the p-value with the level of significance(α) i.e. either 0.05 or 0.01 according to the company. And if the calcula... | [
{
"code": null,
"e": 26597,
"s": 26569,
"text": "\n17 Dec, 2021"
},
{
"code": null,
"e": 27016,
"s": 26597,
"text": "In order to accept or reject a sample that is given to you by your company or someone or basically simply just to examine data, p-value is calculated. After calcul... |
BeautifulSoup - Scraping Link from HTML - GeeksforGeeks | 24 Jan, 2021
Prerequisite: Implementing Web Scraping in Python with BeautifulSoup
In this article, we will understand how we can extract all the links from a URL or an HTML document using Python.
bs4 (BeautifulSoup): It is a library in python which makes it easy to scrape information from web pages, and helps in extrac... | [
{
"code": null,
"e": 25555,
"s": 25527,
"text": "\n24 Jan, 2021"
},
{
"code": null,
"e": 25624,
"s": 25555,
"text": "Prerequisite: Implementing Web Scraping in Python with BeautifulSoup"
},
{
"code": null,
"e": 25738,
"s": 25624,
"text": "In this article, we w... |
How to Access Interface Fields in Golang? - GeeksforGeeks | 31 Aug, 2021
Go language interfaces are different from other languages. In Go language, the interface is a custom type that is used to specify a set of one or more method signatures and the interface is abstract, so you are not allowed to create an instance of the interface. But you are allowed to create a variable of ... | [
{
"code": null,
"e": 25539,
"s": 25511,
"text": "\n31 Aug, 2021"
},
{
"code": null,
"e": 26141,
"s": 25539,
"text": "Go language interfaces are different from other languages. In Go language, the interface is a custom type that is used to specify a set of one or more method signa... |
How to create a button that submits a form and downloads a pdf simultaneously ? - GeeksforGeeks | 17 Feb, 2022
There is no direct method to download and submit the form simultaneously, but we can perform this task if we control the form submission and on clicking the submit form button we first trigger the downloading of the PDF and then submit the form. So, the approaches which we can follow to achieve this are di... | [
{
"code": null,
"e": 25499,
"s": 25471,
"text": "\n17 Feb, 2022"
},
{
"code": null,
"e": 25821,
"s": 25499,
"text": "There is no direct method to download and submit the form simultaneously, but we can perform this task if we control the form submission and on clicking the submit... |
Remove loop in Linked List | Practice | GeeksforGeeks | Given a linked list of N nodes such that it may contain a loop.
A loop here means that the last node of the link list is connected to the node at position X. If the link list does not have any loop, X=0.
Remove the loop from the linked list, if it is present.
Example 1:
Input:
N = 3
value[] = {1,3,4}
X = 2
Output: ... | [
{
"code": null,
"e": 303,
"s": 238,
"text": "Given a linked list of N nodes such that it may contain a loop. "
},
{
"code": null,
"e": 443,
"s": 303,
"text": "A loop here means that the last node of the link list is connected to the node at position X. If the link list does not h... |
Send SMS using a GSM module connected to Arduino | In this article, we will see how to interface Arduino with a GSM Module, and send SMS using the module. You will need the following −
Arduino board
Arduino board
A GSM Module (SIM800C, SIM900A, are popular examples, but you can have any other module as well)
A GSM Module (SIM800C, SIM900A, are popular examples, but you... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "In this article, we will see how to interface Arduino with a GSM Module, and send SMS using the module. You will need the following −"
},
{
"code": null,
"e": 1210,
"s": 1196,
"text": "Arduino board"
},
{
"code": null,
"e... |
SUM() Function in SQL Server - GeeksforGeeks | 21 Jan, 2021
SUM() :
This function in SQL Server is used to compute the sum of the specified group of values.
Features :
This function is used to compute the sum of the specified group of values.
This function comes under Numeric Functions.
This function accepts only one parameter namely expression.
This function ignor... | [
{
"code": null,
"e": 25623,
"s": 25595,
"text": "\n21 Jan, 2021"
},
{
"code": null,
"e": 25631,
"s": 25623,
"text": "SUM() :"
},
{
"code": null,
"e": 25720,
"s": 25631,
"text": "This function in SQL Server is used to compute the sum of the specified group of v... |
C program to calculate the value of nPr - GeeksforGeeks | 02 Nov, 2021
nPr represents n permutation r and value of nPr is (n!) / (n-r)!.
C
#include<stdio.h> int fact(int n){ if (n <= 1) return 1; return n*fact(n-1);} int nPr(int n, int r){ return fact(n)/fact(n-r);} int main(){ int n, r; printf("Enter n: "); scanf("%d", &n); printf("Enter r: "); ... | [
{
"code": null,
"e": 26090,
"s": 26062,
"text": "\n02 Nov, 2021"
},
{
"code": null,
"e": 26157,
"s": 26090,
"text": "nPr represents n permutation r and value of nPr is (n!) / (n-r)!. "
},
{
"code": null,
"e": 26159,
"s": 26157,
"text": "C"
},
{
"code":... |
Role of Log Odds in Logistic Regression - GeeksforGeeks | 22 Oct, 2021
Prerequisite : Log Odds, Logistic Regression
NOTE: It is advised to go through the prerequisite topics to have a clear understanding of this article.
Log odds play an important role in logistic regression as it converts the LR model from probability based to a likelihood based model. Both probability and... | [
{
"code": null,
"e": 25613,
"s": 25585,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 25659,
"s": 25613,
"text": "Prerequisite : Log Odds, Logistic Regression "
},
{
"code": null,
"e": 25765,
"s": 25659,
"text": "NOTE: It is advised to go through the prereq... |
Create a Hoverable Side Navigation with HTML, CSS and JavaScript - GeeksforGeeks | 18 Aug, 2021
To create hoverable side navigation with icon on any website there is a need for two things HTML and CSS. If you want to attach the icons on the navigation bar then you need a font-awesome CDN link. These features make the website looks cool than a normal website where the nav-bar is old-school design. In ... | [
{
"code": null,
"e": 26645,
"s": 26617,
"text": "\n18 Aug, 2021"
},
{
"code": null,
"e": 27375,
"s": 26645,
"text": "To create hoverable side navigation with icon on any website there is a need for two things HTML and CSS. If you want to attach the icons on the navigation bar the... |
Java Program to Find the Perimeter of a Circle - GeeksforGeeks | 07 Jan, 2021
A circle is a simple shape consisting of all the points in the plane that are equidistant from a point known as the center of the circle. In this article, we will learn how to find the area of the circle.
Terminology:
Perimeter: A quantity of measurement or boundary of the circle. It is basically the dista... | [
{
"code": null,
"e": 25250,
"s": 25222,
"text": "\n07 Jan, 2021"
},
{
"code": null,
"e": 25455,
"s": 25250,
"text": "A circle is a simple shape consisting of all the points in the plane that are equidistant from a point known as the center of the circle. In this article, we will ... |
How to create module with Routing in Angular 9 ? - GeeksforGeeks | 06 Aug, 2021
Angular applications are modular, and NgModules is Angular’s own modular architecture. NgModules are containers for closely integrated application domains, workflows, or feature sets that comprise cohesive code blocks. Their scope is governed by the NgModule they include, and they can contain components, s... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n06 Aug, 2021"
},
{
"code": null,
"e": 26802,
"s": 26354,
"text": "Angular applications are modular, and NgModules is Angular’s own modular architecture. NgModules are containers for closely integrated application domains, workflo... |
is_pointer Template in C++ - GeeksforGeeks | 19 Nov, 2018
The std::is_pointer template of C++ STL is used to check whether the given type is pointer or not. It returns a boolean value showing the same.
Syntax:
template <class T > struct is_pointer;
Parameter: This template accepts a single parameter T (Trait class) to check whether T is a pointer or not.
Return V... | [
{
"code": null,
"e": 25629,
"s": 25601,
"text": "\n19 Nov, 2018"
},
{
"code": null,
"e": 25773,
"s": 25629,
"text": "The std::is_pointer template of C++ STL is used to check whether the given type is pointer or not. It returns a boolean value showing the same."
},
{
"code... |
Python - Remove Key from Dictionary List - GeeksforGeeks | 11 Jan, 2022
Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove a specific key from a dictionary list. This kind of problem is very common and has application in almost all domains including day-day programming and web development domain. Let’s discuss certain ways in wh... | [
{
"code": null,
"e": 25559,
"s": 25531,
"text": "\n11 Jan, 2022"
},
{
"code": null,
"e": 25898,
"s": 25559,
"text": "Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove a specific key from a dictionary list. This kind of problem is ... |
How to Create Floating Box Effect using HTML and CSS ? - GeeksforGeeks | 14 Sep, 2021
The floating box effect is a classical example of a custom box-shadow technique. In this technique, we create realistic-looking shadows without using the box-shadow property that is provided by the CSS.
Approach: The approach is to use after selector to use create shadow using the blur function.
HTML Code:... | [
{
"code": null,
"e": 26621,
"s": 26593,
"text": "\n14 Sep, 2021"
},
{
"code": null,
"e": 26824,
"s": 26621,
"text": "The floating box effect is a classical example of a custom box-shadow technique. In this technique, we create realistic-looking shadows without using the box-shado... |
Go Pointer to Pointer (Double Pointer) - GeeksforGeeks | 30 Sep, 2019
Prerequisite: Pointers in Go
Pointers in Go programming language or Golang is a variable which is used to store the memory address of another variable. A pointer is a special variable so it can point to a variable of any type even to a pointer. Basically, this looks like a chain of pointers. When we define... | [
{
"code": null,
"e": 26151,
"s": 26123,
"text": "\n30 Sep, 2019"
},
{
"code": null,
"e": 26180,
"s": 26151,
"text": "Prerequisite: Pointers in Go"
},
{
"code": null,
"e": 26608,
"s": 26180,
"text": "Pointers in Go programming language or Golang is a variable w... |
How to Install Eclipse For PHP on Linux? - GeeksforGeeks | 10 Feb, 2022
Eclipse is a free open source platform, Integrated Development Environment (IDE) with the help of which applications are made using the Java programming languages and other programming languages are also used such as C/C++, PERL, Python, Ruby, etc. It is composed of many plug-ins and is designed to be exte... | [
{
"code": null,
"e": 26197,
"s": 26169,
"text": "\n10 Feb, 2022"
},
{
"code": null,
"e": 26538,
"s": 26197,
"text": "Eclipse is a free open source platform, Integrated Development Environment (IDE) with the help of which applications are made using the Java programming languages ... |
C program to simulate Nondeterministic Finite Automata (NFA) - GeeksforGeeks | 23 Dec, 2020
Background
An NFA is typically described using a directed graph. Each edge and vertex is labeled either 0 or 1 representing possible transitions. Vertices represent the states of the NFA. Those labeled 0 are non accepting states, and those labeled 1 are accepting states.
It takes an input string of finite... | [
{
"code": null,
"e": 25477,
"s": 25449,
"text": "\n23 Dec, 2020"
},
{
"code": null,
"e": 25488,
"s": 25477,
"text": "Background"
},
{
"code": null,
"e": 25750,
"s": 25488,
"text": "An NFA is typically described using a directed graph. Each edge and vertex is l... |
What is the difference between "char a" and "char a[1]"? - GeeksforGeeks | 08 May, 2017
Question Source: Aricent Interview
Although both expressions can be used to create a variable to store one character, there are following differences.
1) “char a” represents a character variable and “char a[1]” represents a char array of size 1.
2) If we print value of char a, we get ASCII value of the cha... | [
{
"code": null,
"e": 25478,
"s": 25450,
"text": "\n08 May, 2017"
},
{
"code": null,
"e": 25513,
"s": 25478,
"text": "Question Source: Aricent Interview"
},
{
"code": null,
"e": 25629,
"s": 25513,
"text": "Although both expressions can be used to create a varia... |
Angular PrimeNG InputMask Component - GeeksforGeeks | 03 Aug, 2021
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the InputMask component in angular primeNG.
InputMask component al... | [
{
"code": null,
"e": 26354,
"s": 26326,
"text": "\n03 Aug, 2021"
},
{
"code": null,
"e": 26639,
"s": 26354,
"text": "Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make resp... |
C++ Functions | A function is a block of code which only runs when it is called.
You can pass data, known as parameters, into a function.
Functions are used to perform certain actions, and they are
important for reusing code: Define the code once, and use it many times.
C++ provides some pre-defined
functions, such as main(), which ... | [
{
"code": null,
"e": 65,
"s": 0,
"text": "A function is a block of code which only runs when it is called."
},
{
"code": null,
"e": 122,
"s": 65,
"text": "You can pass data, known as parameters, into a function."
},
{
"code": null,
"e": 256,
"s": 122,
"text": ... |
Character class: Negation - Java regular expressions | The character classes in Java regular expression is defined using the square brackets "[ ]", this subexpression matches a single character from the specified or, set of possible characters.
For example the regular expression [abc] matches a single character a or, b or, c. Similarly, "[a-z]" matches a single character f... | [
{
"code": null,
"e": 1252,
"s": 1062,
"text": "The character classes in Java regular expression is defined using the square brackets \"[ ]\", this subexpression matches a single character from the specified or, set of possible characters."
},
{
"code": null,
"e": 1394,
"s": 1252,
... |
Git Revert | revert is the command we use when we want to take a previous commit and add it as a new commit, keeping the log intact.
Step 1: Find the previous commit:
Step 2: Use it to make a new commit:
Let's make a new commit, where we have "accidentally" deleted a file:
git commit -m "Just a regular update, definitely no acciden... | [
{
"code": null,
"e": 120,
"s": 0,
"text": "revert is the command we use when we want to take a previous commit and add it as a new commit, keeping the log intact."
},
{
"code": null,
"e": 154,
"s": 120,
"text": "Step 1: Find the previous commit:"
},
{
"code": null,
"e... |
Logistic Regression in Python - Building Classifier | It is not required that you have to build the classifier from scratch. Building classifiers is complex and requires knowledge of several areas such as Statistics, probability theories, optimization techniques, and so on. There are several pre-built libraries available in the market which have a fully-tested and very ef... | [
{
"code": null,
"e": 2153,
"s": 1733,
"text": "It is not required that you have to build the classifier from scratch. Building classifiers is complex and requires knowledge of several areas such as Statistics, probability theories, optimization techniques, and so on. There are several pre-built libr... |
How to create a shallow copy of ArrayList in C# - GeeksforGeeks | 07 Feb, 2019
ArrayList.Clone() Method is used to create a shallow copy of the specified ArrayList. A shallow copy of a collection copies only the elements of the collection irrespective of reference types or value types. But it does not copy the objects that the references refer to. The references in the new collection... | [
{
"code": null,
"e": 25629,
"s": 25601,
"text": "\n07 Feb, 2019"
},
{
"code": null,
"e": 26020,
"s": 25629,
"text": "ArrayList.Clone() Method is used to create a shallow copy of the specified ArrayList. A shallow copy of a collection copies only the elements of the collection irr... |
Nested if in Java | 07 Oct, 2021
Generally, if condition works like yes or no type. If the condition satisfies, it executes some block of code. Otherwise, it doesn’t execute the code. Let us see the syntax of the simple if condition.
Syntax :
if( condition ){
statements ;
}
Nested means within. Nested if condition means i... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n07 Oct, 2021"
},
{
"code": null,
"e": 229,
"s": 28,
"text": "Generally, if condition works like yes or no type. If the condition satisfies, it executes some block of code. Otherwise, it doesn’t execute the code. Let us see the syntax of... |
Express.js | res.clearCookie() Function | 18 Jun, 2020
The res.clearCookie() function is used to clear the cookie specified by name. This function is called for clearing the cookies which as already been set. For example if a user cookie is set, then it can be cleared using this function.
Syntax:
res.clearCookie(name, [ options ])
Parameters:
Name: It is the n... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n18 Jun, 2020"
},
{
"code": null,
"e": 263,
"s": 28,
"text": "The res.clearCookie() function is used to clear the cookie specified by name. This function is called for clearing the cookies which as already been set. For example if a user... |
Print Anagrams Together | Practice | GeeksforGeeks | Given an array of strings, return all groups of strings that are anagrams. The groups must be created in order of their appearance in the original array. Look at the sample case for clarification.
Note: The final output will be in lexicographic order.
Example 1:
Input:
N = 5
words[] = {act,god,cat,dog,tac}
Output:
act... | [
{
"code": null,
"e": 435,
"s": 238,
"text": "Given an array of strings, return all groups of strings that are anagrams. The groups must be created in order of their appearance in the original array. Look at the sample case for clarification."
},
{
"code": null,
"e": 490,
"s": 435,
... |
PHP | isset() Function | 27 Apr, 2020
The isset() function is an inbuilt function in PHP which is used to determine if the variable is declared and its value is not equal to NULL.
Syntax:
bool isset( mixed $var [, mixed $... ] )
Parameters: This function accept one or more parameter as mentioned above and described below:
$var: It contains the... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n27 Apr, 2020"
},
{
"code": null,
"e": 170,
"s": 28,
"text": "The isset() function is an inbuilt function in PHP which is used to determine if the variable is declared and its value is not equal to NULL."
},
{
"code": null,
"... |
Flutter – DropDownButton Widget | 01 Jun, 2022
In this article, we will learn how to use a DropDownButton and learn various properties of it in flutter. We will use the Flutter DropDownButton widget to display a dropdown list in our application. So first let’s see what is DropDownButton.
DropDownButton: In Flutter, A DropDownButton is a material design... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n01 Jun, 2022"
},
{
"code": null,
"e": 270,
"s": 28,
"text": "In this article, we will learn how to use a DropDownButton and learn various properties of it in flutter. We will use the Flutter DropDownButton widget to display a dropdown l... |
Explain dynamic memory allocation in C with an example | Find the sum of n numbers entered by user using dynamically allocated memory using C programming.
The Dynamic memory allocation enables the C programmers to allocate memory at runtime.
The different functions that we used to allocate memory dynamically at run time are −
malloc () − allocates a block of memory in bytes ... | [
{
"code": null,
"e": 1160,
"s": 1062,
"text": "Find the sum of n numbers entered by user using dynamically allocated memory using C programming."
},
{
"code": null,
"e": 1247,
"s": 1160,
"text": "The Dynamic memory allocation enables the C programmers to allocate memory at runtim... |
Print a 2D Array or Matrix in Java | In this post we will try to print an array or matrix of numbers at console in same manner as we generally write on paper.
For this the logic is to access each element of array one by one and make them print separated by a space and when row get to emd in matrix then we will also change the row.
Live Demo
public class ... | [
{
"code": null,
"e": 1184,
"s": 1062,
"text": "In this post we will try to print an array or matrix of numbers at console in same manner as we generally write on paper."
},
{
"code": null,
"e": 1358,
"s": 1184,
"text": "For this the logic is to access each element of array one by... |
Makefile - Macros | The make program allows you to use macros, which are similar to variables. Macros are defined in a Makefile as = pairs. An example has been shown below −
MACROS = -me
PSROFF = groff -Tps
DITROFF = groff -Tdvi
CFLAGS = -O -systype bsd43
LIBS = "-lncurses -lm -lsdl"
MYFACE = ":*)"
Before issuing any command in a ... | [
{
"code": null,
"e": 1938,
"s": 1784,
"text": "The make program allows you to use macros, which are similar to variables. Macros are defined in a Makefile as = pairs. An example has been shown below −"
},
{
"code": null,
"e": 2072,
"s": 1938,
"text": "MACROS = -me\nPSROFF = gro... |
What does the 'tearoff' attribute do in a Tkinter Menu? - GeeksforGeeks | 11 Dec, 2020
Prerequisite:
Python GUI – tkinter
Menus
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter is the fastest and ea... | [
{
"code": null,
"e": 24444,
"s": 24416,
"text": "\n11 Dec, 2020"
},
{
"code": null,
"e": 24458,
"s": 24444,
"text": "Prerequisite:"
},
{
"code": null,
"e": 24479,
"s": 24458,
"text": "Python GUI – tkinter"
},
{
"code": null,
"e": 24485,
"s": 24... |
How to Count Word Occurrences in a Text File using Shell Script? | Linux shell scripting has many powerful tools to process the data in files. One such feature is to find patterns and count the number of occurrences of matched patterns. One such example is to count the number of occurrences of a specific word in a given file. This is achieved by combination of commands for pattern sea... | [
{
"code": null,
"e": 1458,
"s": 1062,
"text": "Linux shell scripting has many powerful tools to process the data in files. One such feature is to find patterns and count the number of occurrences of matched patterns. One such example is to count the number of occurrences of a specific word in a give... |
Tcl - Nested If Statement | It is always legal in Tcl to nest if-else statements, which means you can use one if or else if statement inside another if or else if statement(s).
The syntax for a nested if statement is as follows −
if { boolean_expression 1 } {
# Executes when the boolean expression 1 is true
if {boolean_expression 2} {
... | [
{
"code": null,
"e": 2350,
"s": 2201,
"text": "It is always legal in Tcl to nest if-else statements, which means you can use one if or else if statement inside another if or else if statement(s)."
},
{
"code": null,
"e": 2403,
"s": 2350,
"text": "The syntax for a nested if statem... |
Write a dictionary to a file in Python - GeeksforGeeks | 29 Dec, 2020
Dictionary is used to store data values in the form of key:value pairs. In this article we will see how to write dictionary into a file. Actually we can only write a string to a file. If we want to write a dictionary object, we either need to convert it into string using json or serialize it.
Method:1 Sto... | [
{
"code": null,
"e": 24392,
"s": 24361,
"text": " \n29 Dec, 2020\n"
},
{
"code": null,
"e": 24686,
"s": 24392,
"text": "Dictionary is used to store data values in the form of key:value pairs. In this article we will see how to write dictionary into a file. Actually we can only wr... |
Java Booleans | Very often, in programming, you will need a data type that can only have one of two values, like:
YES / NO
ON / OFF
TRUE / FALSE
For this, Java has a boolean data type, which can take the values true or false.
A boolean type is declared with the boolean keyword and can only take the values true or false:
boolean isJava... | [
{
"code": null,
"e": 98,
"s": 0,
"text": "Very often, in programming, you will need a data type that can only have one of two values, like:"
},
{
"code": null,
"e": 107,
"s": 98,
"text": "YES / NO"
},
{
"code": null,
"e": 116,
"s": 107,
"text": "ON / OFF"
},... |
GREATEST() function in MySQL - GeeksforGeeks | 01 Oct, 2020
GREATEST() function in MySQL is used to find greatest values from given arguments respectively. If any given value is NULL, it returns NULLs. Otherwise, it returns the greatest value.
Syntax :
GREATEST(X1, X2, X3, ...)
Parameter : This method accepts N parameters in the syntax, as mentioned above and descr... | [
{
"code": null,
"e": 23877,
"s": 23849,
"text": "\n01 Oct, 2020"
},
{
"code": null,
"e": 24061,
"s": 23877,
"text": "GREATEST() function in MySQL is used to find greatest values from given arguments respectively. If any given value is NULL, it returns NULLs. Otherwise, it returns... |
How to find percentile rank for groups in an R data frame? | The word percentile means the percentage that falls below or above the percentile value. For example, if we have a value that lies at 50th percentile then we would say 50 percent of the values lies below or above that value. The value 50 here is called the percentile rank. To find the percentile rank for groups in an R... | [
{
"code": null,
"e": 1440,
"s": 1062,
"text": "The word percentile means the percentage that falls below or above the percentile value. For example, if we have a value that lies at 50th percentile then we would say 50 percent of the values lies below or above that value. The value 50 here is called ... |
JSF - Composite Components | JSF provides the developers with a powerful capability to define their own custom components, which can be used to render custom contents.
Defining a custom component in JSF is a two-step process.
Create a resources folder.
Create a xhtml file in resources folder with a composite namespace.
Use composite tags composite... | [
{
"code": null,
"e": 2091,
"s": 1952,
"text": "JSF provides the developers with a powerful capability to define their own custom components, which can be used to render custom contents."
},
{
"code": null,
"e": 2149,
"s": 2091,
"text": "Defining a custom component in JSF is a two... |
Generate a Vector of specified length with each element as a unique color on RGB scale in R Language - topo.colors() Function - GeeksforGeeks | 01 Jul, 2020
topo.colors() function in R Language is used to generate a Vector of specified length with each element as a unique color on RGB scale. This function also returns the hexadecimal code of the colours available. This hexadecimal code is of eight digits. This is because the last two digits specify the level o... | [
{
"code": null,
"e": 24851,
"s": 24823,
"text": "\n01 Jul, 2020"
},
{
"code": null,
"e": 25217,
"s": 24851,
"text": "topo.colors() function in R Language is used to generate a Vector of specified length with each element as a unique color on RGB scale. This function also returns ... |
Count levels in a Binary Tree consisting of nodes valued 1 grouped together - GeeksforGeeks | 18 Jun, 2021
Given a Binary Tree consisting of 0s and 1s only, the task is to print the count of levels in the Binary Tree in which all the 1s are placed consecutively in a single group.
Examples:
Input: 0
/ \
1 0
/ \ / \
1 0 1 0... | [
{
"code": null,
"e": 25102,
"s": 25074,
"text": "\n18 Jun, 2021"
},
{
"code": null,
"e": 25276,
"s": 25102,
"text": "Given a Binary Tree consisting of 0s and 1s only, the task is to print the count of levels in the Binary Tree in which all the 1s are placed consecutively in a sin... |
Minimize the sum of product | Practice | GeeksforGeeks | You are given two arrays, A and B, of equal size N. The task is to find the minimum value of A[0] * B[0] + A[1] * B[1] +...+ A[N-1] * B[N-1], where shuffling of elements of arrays A and B is allowed.
Example 1:
Input:
N = 3
A[] = {3, 1, 1}
B[] = {6, 5, 4}
Output:
23
Explanation:
1*6+1*5+3*4 = 6+5+12
= 23 is the min... | [
{
"code": null,
"e": 451,
"s": 238,
"text": "You are given two arrays, A and B, of equal size N. The task is to find the minimum value of A[0] * B[0] + A[1] * B[1] +...+ A[N-1] * B[N-1], where shuffling of elements of arrays A and B is allowed.\n\n\nExample 1:"
},
{
"code": null,
"e": 56... |
Kubernetes - App Deployment | Deployment is a method of converting images to containers and then allocating those images to pods in the Kubernetes cluster. This also helps in setting up the application cluster which includes deployment of service, pod, replication controller and replica set. The cluster can be set up in such a way that the applicat... | [
{
"code": null,
"e": 2573,
"s": 2195,
"text": "Deployment is a method of converting images to containers and then allocating those images to pods in the Kubernetes cluster. This also helps in setting up the application cluster which includes deployment of service, pod, replication controller and rep... |
Programs to print Interesting Patterns - GeeksforGeeks | 06 Jul, 2021
Program to print following pattern:
Examples :
Input : 5
Output:
* * * * * * * * * *
* * * * * * * *
* * * * * *
* * * *
* *
* *
* * * *
* * * * * *
* * * * * * * *
* * * * * * * * * *
This program is divided into ... | [
{
"code": null,
"e": 24417,
"s": 24389,
"text": "\n06 Jul, 2021"
},
{
"code": null,
"e": 24454,
"s": 24417,
"text": "Program to print following pattern: "
},
{
"code": null,
"e": 24466,
"s": 24454,
"text": "Examples : "
},
{
"code": null,
"e": 2469... |
SQL Tryit Editor v1.6 | SELECT CustomerName, ContactName, Address
FROM Customers
WHERE Address IS NOT NULL;
Edit the SQL Statement, and click "Run SQL" to see the result.
This SQL-Statement is not supported in the WebSQL Database.
The example still works, because it uses a modified version of SQL.
Your browser does not support WebSQL.
Your ... | [
{
"code": null,
"e": 42,
"s": 0,
"text": "SELECT CustomerName, ContactName, Address"
},
{
"code": null,
"e": 57,
"s": 42,
"text": "FROM Customers"
},
{
"code": null,
"e": 84,
"s": 57,
"text": "WHERE Address IS NOT NULL;"
},
{
"code": null,
"e": 86,... |
How to add action listeners to ContextMenu in JavaFX? | A context menu is a popup menu that appears on interacting with the UI elements in the application. You can create a context menu by instantiating the javafx.scene.control.ContextMenu class.
Just like a menu, after creating a context menu, you need to add MenuItems to it. You can set ContextMenu to any object of the ja... | [
{
"code": null,
"e": 1253,
"s": 1062,
"text": "A context menu is a popup menu that appears on interacting with the UI elements in the application. You can create a context menu by instantiating the javafx.scene.control.ContextMenu class."
},
{
"code": null,
"e": 1443,
"s": 1253,
... |
How to convert C# DateTime to “YYYYMMDDHHMMSS” format? | Convert the dateTime to toString that results in converting the DateTime to “YYYYMMDDHHMMSS” format
There are also other formats that the dateTime can be converted
MM/dd/yyyy 08/22/2020
dddd, dd MMMM yyyy Tuesday, 22 August 2020
dddd, dd MMMM yyyy HH:mm Tuesday, 22 August 2020 06:30
dddd, dd MMMM yyyy hh:mm tt Tuesday,... | [
{
"code": null,
"e": 1162,
"s": 1062,
"text": "Convert the dateTime to toString that results in converting the DateTime to “YYYYMMDDHHMMSS” format"
},
{
"code": null,
"e": 1226,
"s": 1162,
"text": "There are also other formats that the dateTime can be converted"
},
{
"cod... |
How to bind a key to a button in Tkinter? | Tkinter provides a way to bind the widget to perform certain operations. These operations are defined in a function that can be called by a particular widget. The bind(<button>, function()) method is used to bind the keyboard key to handle such operations. We can also bind a particular key to handle certain events for ... | [
{
"code": null,
"e": 1401,
"s": 1062,
"text": "Tkinter provides a way to bind the widget to perform certain operations. These operations are defined in a function that can be called by a particular widget. The bind(<button>, function()) method is used to bind the keyboard key to handle such operatio... |
java.time.LocalDate.plusDays() Method Example | The java.time.LocalDate.plusDays(long daysToAdd) method returns a copy of this date with the specified days added.
Following is the declaration for java.time.LocalDate.plusDays(long daysToAdd) method.
public LocalDate plusDays(long daysToAdd)
daysToAdd − the days to add, may be negative.
a LocalDate based on this date... | [
{
"code": null,
"e": 2030,
"s": 1915,
"text": "The java.time.LocalDate.plusDays(long daysToAdd) method returns a copy of this date with the specified days added."
},
{
"code": null,
"e": 2116,
"s": 2030,
"text": "Following is the declaration for java.time.LocalDate.plusDays(long ... |
Excel Macros - UserForms | At times, you might have to collect information repeatedly from others. Excel VBA provides you with an easy way of handling this task- UserForm. As any other form that you fill up, UserForm makes it simple to understand, what information is to be provided. UserForm is user friendly in the way that the controls provided... | [
{
"code": null,
"e": 2442,
"s": 2043,
"text": "At times, you might have to collect information repeatedly from others. Excel VBA provides you with an easy way of handling this task- UserForm. As any other form that you fill up, UserForm makes it simple to understand, what information is to be provid... |
Z-score for anomaly detection. Small-bites data science | by Mahbubul Alam | Towards Data Science | Most of the time I write longer articles on data science topics but recently I’ve been thinking about writing small, bite-sized pieces around specific concepts, algorithms and applications. This is my first attempt in that direction, hoping people will like these pieces.
In today’s “small-bite” I’m writing about Z-scor... | [
{
"code": null,
"e": 443,
"s": 171,
"text": "Most of the time I write longer articles on data science topics but recently I’ve been thinking about writing small, bite-sized pieces around specific concepts, algorithms and applications. This is my first attempt in that direction, hoping people will li... |
Maximum number of squares that can fit in a right angle isosceles triangle in C++ | Given the task is to find the maximum number of squares having side ‘a’ that can fit inside a give
right angle isosceles triangle with base of ‘s’(An isosceles triangle has at least 2 equal sides).
Let’s now understand what we have to do using an example:
s=5, a=1
10
Explanation − The number of squares in the base can ... | [
{
"code": null,
"e": 1260,
"s": 1062,
"text": "Given the task is to find the maximum number of squares having side ‘a’ that can fit inside a give\nright angle isosceles triangle with base of ‘s’(An isosceles triangle has at least 2 equal sides)."
},
{
"code": null,
"e": 1318,
"s": 12... |
Logistic Regression in Machine Learning using Python | Towards Data Science | In statistics logistic regression is used to model the probability of a certain class or event. I will be focusing more on the basics and implementation of the model, and not go too deep into the math part in this post.
This is a written version of this video. Watch the video if you prefer that.
Logistic regression is ... | [
{
"code": null,
"e": 392,
"s": 172,
"text": "In statistics logistic regression is used to model the probability of a certain class or event. I will be focusing more on the basics and implementation of the model, and not go too deep into the math part in this post."
},
{
"code": null,
"e"... |
Wine Embeddings and a Wine Recommender | by Roald Schuring | Towards Data Science | One of the cornerstones of previous chapters of the RoboSomm series has been to extract descriptors from professional wine reviews, and to convert these into quantitative features. In this article, we will explore a way of extracting features from wine reviews that combines the best of the existing RoboSomm series and ... | [
{
"code": null,
"e": 607,
"s": 172,
"text": "One of the cornerstones of previous chapters of the RoboSomm series has been to extract descriptors from professional wine reviews, and to convert these into quantitative features. In this article, we will explore a way of extracting features from wine re... |
foreach Loop in C# | The foreach loop executes a statement or a block of statements for each element in an instance of the type that implements the System.Collections.IEnumerable or System.Collections.Generic.IEnumerable<T> interface.
Let us see an example of foreach loop −
Live Demo
using System;
using System.Collections.Generic;
public ... | [
{
"code": null,
"e": 1276,
"s": 1062,
"text": "The foreach loop executes a statement or a block of statements for each element in an instance of the type that implements the System.Collections.IEnumerable or System.Collections.Generic.IEnumerable<T> interface."
},
{
"code": null,
"e": 13... |
How to instantiate Struct using new keyword in Golang? - GeeksforGeeks | 17 May, 2020
A struct is mainly a holder for all other data types. By using a pointer to a struct we can easily manipulate/access the data assigned to a struct. We can instantiate Struct using the new keyword as well as using Pointer Address Operator in Golang as shown in the below example:
Example: Here, you can see w... | [
{
"code": null,
"e": 25813,
"s": 25785,
"text": "\n17 May, 2020"
},
{
"code": null,
"e": 26092,
"s": 25813,
"text": "A struct is mainly a holder for all other data types. By using a pointer to a struct we can easily manipulate/access the data assigned to a struct. We can instanti... |
Design Pattern - Singleton Pattern | Singleton pattern is one of the simplest design patterns in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.
This pattern involves a single class which is responsible to create an object while making sure that only single object gets cre... | [
{
"code": null,
"e": 2943,
"s": 2751,
"text": "Singleton pattern is one of the simplest design patterns in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object."
},
{
"code": null,
"e": 3213,
"s": 2943,
... |
A R Shiny Product Recommender with Improved Collaborative Filtering | by Diego Usai | Towards Data Science | Recently I wanted to learn something new and challenged myself to carry out an end-to-end Market Basket Analysis. To continue to challenge myself, I’ve decided to put the results of my efforts before the eyes of the data science community.
This is the third and final post:
Part 1: (which can be found here) explore and ... | [
{
"code": null,
"e": 412,
"s": 172,
"text": "Recently I wanted to learn something new and challenged myself to carry out an end-to-end Market Basket Analysis. To continue to challenge myself, I’ve decided to put the results of my efforts before the eyes of the data science community."
},
{
"... |
Assertions in Java | An assertion is a statement in Java which ensures the correctness of any assumptions which have been done in the program. When an assertion is executed, it is assumed to be true. If the assertion is false, the JVM will throw an Assertion error. It finds it application primarily in the testing purposes. Assertion statem... | [
{
"code": null,
"e": 1428,
"s": 1062,
"text": "An assertion is a statement in Java which ensures the correctness of any assumptions which have been done in the program. When an assertion is executed, it is assumed to be true. If the assertion is false, the JVM will throw an Assertion error. It finds... |
Named-Entity Recognition using Keras Bi-LSTM | Towards Data Science | Named-entity recognition (NER) (also known as entity identification, entity chunking and entity extraction) is a subtask of information extraction that seeks to locate and classify named entities mentioned in unstructured text into pre-defined categories such as person names, organizations, locations, medical codes, ti... | [
{
"code": null,
"e": 555,
"s": 172,
"text": "Named-entity recognition (NER) (also known as entity identification, entity chunking and entity extraction) is a subtask of information extraction that seeks to locate and classify named entities mentioned in unstructured text into pre-defined categories ... |
Convert time from 24 hour clock to 12 hour clock format in C++ | In this tutorial, we will be discussing a program to convert time from 24 hour clock to 12 hour clock format.
For this we will be provided with certain time in 24 hour format. Our task is to convert it into 12 hour format with the extension of “AM” or “PM”.
Live Demo
#include <bits/stdc++.h>
using namespace std;
//con... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "In this tutorial, we will be discussing a program to convert time from 24 hour clock to 12 hour clock format."
},
{
"code": null,
"e": 1320,
"s": 1172,
"text": "For this we will be provided with certain time in 24 hour format. Our ta... |
How to read all contacts in android? | This example demonstrate about How to read all contacts in android
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": 1129,
"s": 1062,
"text": "This example demonstrate about How to read all contacts in android"
},
{
"code": null,
"e": 1258,
"s": 1129,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a... |
Java - The Properties Class | Properties is a subclass of Hashtable. It is used to maintain lists of values in which the key is a String and the value is also a String.
The Properties class is used by many other Java classes. For example, it is the type of object returned by System.getProperties( ) when obtaining environmental values.
Properties de... | [
{
"code": null,
"e": 2516,
"s": 2377,
"text": "Properties is a subclass of Hashtable. It is used to maintain lists of values in which the key is a String and the value is also a String."
},
{
"code": null,
"e": 2684,
"s": 2516,
"text": "The Properties class is used by many other ... |
Hacking Monoalphabetic Cipher | In this chapter, you will learn about monoalphabetic cipher and its hacking using Python.
A Monoalphabetic cipher uses a fixed substitution for encrypting the entire message. A monoalphabetic cipher using a Python dictionary with JSON objects is shown here −
monoalpha_cipher = {
'a': 'm',
'b': 'n',
'c': 'b',
... | [
{
"code": null,
"e": 2382,
"s": 2292,
"text": "In this chapter, you will learn about monoalphabetic cipher and its hacking using Python."
},
{
"code": null,
"e": 2551,
"s": 2382,
"text": "A Monoalphabetic cipher uses a fixed substitution for encrypting the entire message. A monoa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.