title stringlengths 3 221 | text stringlengths 17 477k | parsed listlengths 0 3.17k |
|---|---|---|
FileField - Django Models - GeeksforGeeks | 12 Feb, 2020
FileField is a file-upload field. Before uploading files, one needs to specify a lot of settings so that file is securely saved and can be retrieved in a convenient manner. The default form widget for this field is a ClearableFileInput.
Syntax
field_name = models.FileField(upload_to=None, max_length=254, *... | [
{
"code": null,
"e": 24362,
"s": 24334,
"text": "\n12 Feb, 2020"
},
{
"code": null,
"e": 24599,
"s": 24362,
"text": "FileField is a file-upload field. Before uploading files, one needs to specify a lot of settings so that file is securely saved and can be retrieved in a convenien... |
MySQL - SHOW TABLE STATUS Statement | The CREATE TABLE statement is used to create tables in MYSQL database. Here, you need to specify the name of the table and, definition (name and datatype) of each column.
The SHOW TABLE STATUS Statement of MySQL provides information about the non-TEMPORARY tables in a database.
Following is the syntax of the SHOW TABLE... | [
{
"code": null,
"e": 2504,
"s": 2333,
"text": "The CREATE TABLE statement is used to create tables in MYSQL database. Here, you need to specify the name of the table and, definition (name and datatype) of each column."
},
{
"code": null,
"e": 2612,
"s": 2504,
"text": "The SHOW TA... |
How to add two numbers in console using Node.js ? - GeeksforGeeks | 26 Oct, 2021
In this article, we will see how to add two numbers in the console using NodeJS. For this purpose, we need to know about a node package called prompt. It helps to take user input from the console. We would use its method prompt.get() to take user input.
Create NodeJS Application: Initialize the NodeJS appl... | [
{
"code": null,
"e": 25028,
"s": 25000,
"text": "\n26 Oct, 2021"
},
{
"code": null,
"e": 25282,
"s": 25028,
"text": "In this article, we will see how to add two numbers in the console using NodeJS. For this purpose, we need to know about a node package called prompt. It helps to ... |
Java Program to Find the Most Repeated Word in a Text File - GeeksforGeeks | 07 Feb, 2022
Map and Map.Entry interface will be used as the Map interface maps unique keys to values. A key is an object that is used to retrieve a value at a later date. The Map.Entry interface enables you to work with a map entry. Also, we will use the HashMap class to store items in “key/value” pairs and access the... | [
{
"code": null,
"e": 23557,
"s": 23529,
"text": "\n07 Feb, 2022"
},
{
"code": null,
"e": 23895,
"s": 23557,
"text": "Map and Map.Entry interface will be used as the Map interface maps unique keys to values. A key is an object that is used to retrieve a value at a later date. The ... |
MySQL - Database Info | There are three types of information, which you would like to have from MySQL.
Information about the result of queries − This includes the number of records affected by any SELECT, UPDATE or DELETE statement.
Information about the result of queries − This includes the number of records affected by any SELECT, UPDATE or... | [
{
"code": null,
"e": 2412,
"s": 2333,
"text": "There are three types of information, which you would like to have from MySQL."
},
{
"code": null,
"e": 2542,
"s": 2412,
"text": "Information about the result of queries − This includes the number of records affected by any SELECT, U... |
Neo4j - Return Clause | The RETURN clause is used return nodes, relationships, and properties in Neo4j. In this chapter, we are going to learn how to −
Return nodes
Return multiple nodes
Return relationships
Return properties
Return all elements
Return a variable with column alias
You can return a node using the RETURN clause.
Following is a ... | [
{
"code": null,
"e": 2467,
"s": 2339,
"text": "The RETURN clause is used return nodes, relationships, and properties in Neo4j. In this chapter, we are going to learn how to −"
},
{
"code": null,
"e": 2480,
"s": 2467,
"text": "Return nodes"
},
{
"code": null,
"e": 2502... |
DFA in LEX code which accepts strings ending with 11 - GeeksforGeeks | 22 May, 2019
Prerequisite: Designing Finite AutomataProblem: Design a LEX code to construct a DFA which accepts the language: all the strings ending with “11” over inputs ‘0’ and ‘1’.
Examples:
Input: 100011
Output: Accepted
Input: 100101
Output: Not Accepted
Input: asdf
Output: Invalid
Approach:LEX provides us wit... | [
{
"code": null,
"e": 24029,
"s": 24001,
"text": "\n22 May, 2019"
},
{
"code": null,
"e": 24200,
"s": 24029,
"text": "Prerequisite: Designing Finite AutomataProblem: Design a LEX code to construct a DFA which accepts the language: all the strings ending with “11” over inputs ‘0’ a... |
Validate IP Address in C++ | This article is serving the purpose of validating the correct IP (internet protocol) address by virtue of C++ code programming. The IP address is a 32-bit dot-decimal-notation, broken into four decimal numbers segments ranging from 0 to 255. Furthermore, these numbers are separated by
dots consecutively. The IP address... | [
{
"code": null,
"e": 1513,
"s": 1062,
"text": "This article is serving the purpose of validating the correct IP (internet protocol) address by virtue of C++ code programming. The IP address is a 32-bit dot-decimal-notation, broken into four decimal numbers segments ranging from 0 to 255. Furthermore... |
Looping Techniques in Python - GeeksforGeeks | 29 Mar, 2022
Python supports various looping techniques by certain inbuilt functions, in various sequential containers. These methods are primarily very useful in competitive programming and also in various projects which require a specific technique with loops maintaining the overall structure of code. A lot of time ... | [
{
"code": null,
"e": 41161,
"s": 41133,
"text": "\n29 Mar, 2022"
},
{
"code": null,
"e": 41605,
"s": 41161,
"text": "Python supports various looping techniques by certain inbuilt functions, in various sequential containers. These methods are primarily very useful in competitive p... |
Angular 4 - Event Binding | In this chapter, we will discuss how Event Binding works in Angular 4. When a user interacts with an application in the form of a keyboard movement, a mouse click, or a mouseover, it generates an event. These events need to be handled to perform some kind of action. This is where event binding comes into picture.
Let u... | [
{
"code": null,
"e": 2307,
"s": 1992,
"text": "In this chapter, we will discuss how Event Binding works in Angular 4. When a user interacts with an application in the form of a keyboard movement, a mouse click, or a mouseover, it generates an event. These events need to be handled to perform some ki... |
Difference between Recursion and Iteration - GeeksforGeeks | 31 Jan, 2022
A program is called recursive when an entity calls itself. A program is call iterative when there is a loop (or repetition).Example: Program to find the factorial of a number
C++
Java
Python3
C#
PHP
Javascript
// C++ program to find factorial of given number#include<bits/stdc++.h>using namespace std; // ... | [
{
"code": null,
"e": 24810,
"s": 24782,
"text": "\n31 Jan, 2022"
},
{
"code": null,
"e": 24987,
"s": 24810,
"text": "A program is called recursive when an entity calls itself. A program is call iterative when there is a loop (or repetition).Example: Program to find the factorial ... |
Get last n records of a Pandas DataFrame - GeeksforGeeks | 26 Jul, 2020
Let’s discuss how to get last n records of a Pandas DAtaframe. There can be various methods to get the last n records of a Pandas DataFrame. Lets first make a dataframe:Example:
Python3
# Import Required Librariesimport pandas as pdimport numpy as np # Create a dictionary for the dataframedict = {'Name': ... | [
{
"code": null,
"e": 24292,
"s": 24264,
"text": "\n26 Jul, 2020"
},
{
"code": null,
"e": 24470,
"s": 24292,
"text": "Let’s discuss how to get last n records of a Pandas DAtaframe. There can be various methods to get the last n records of a Pandas DataFrame. Lets first make a data... |
Machine Learning on Azure with automated predictions | by Saurabh Maheshwari | Towards Data Science | I had a recent opportunity to work as a Data Science Intern at a company that used Microsoft Azure as their AI platform. For one of my projects, I had to recommend an optimal strategy (set-points) to run multiple steam boilers in parallel at a manufacturing plant. For example, given certain conditions, run boiler1 at 1... | [
{
"code": null,
"e": 618,
"s": 171,
"text": "I had a recent opportunity to work as a Data Science Intern at a company that used Microsoft Azure as their AI platform. For one of my projects, I had to recommend an optimal strategy (set-points) to run multiple steam boilers in parallel at a manufacturi... |
Check if any value in an R vector is greater than or less than a certain value. | To check if any value in an R vector is greater than or less than a certain value, we can
use any function.
For Example, if we have a vector called V and we want to check if any value in V is
greater than 100 then we can use the command given below −
any(V>100)
Similarly, we can check if any value is less than 100 by u... | [
{
"code": null,
"e": 1170,
"s": 1062,
"text": "To check if any value in an R vector is greater than or less than a certain value, we can\nuse any function."
},
{
"code": null,
"e": 1313,
"s": 1170,
"text": "For Example, if we have a vector called V and we want to check if any val... |
How to use x-grid-data-generator Module in ReactJS ? - GeeksforGeeks | 26 Apr, 2021
Whenever we want to generate some data and build demos for the grid Component, we can use the x-grid-data-generator module. It has a large variety of data set to play around. DataGrid Component helps in displaying the information in a grid-like format of rows and columns. We can use the following approach ... | [
{
"code": null,
"e": 24826,
"s": 24798,
"text": "\n26 Apr, 2021"
},
{
"code": null,
"e": 25185,
"s": 24826,
"text": "Whenever we want to generate some data and build demos for the grid Component, we can use the x-grid-data-generator module. It has a large variety of data set to p... |
5 Examples to Learn Date and Time Manipulation with Python Pandas | by Soner Yıldırım | Towards Data Science | We often deal with dates and times in data science. If you are working with time-series data, they are always a part of your work.
Pandas is highly efficient and practical with regard to manipulating dates and times. In this article, we will go over 5 examples for solving some of the common date and time manipulation o... | [
{
"code": null,
"e": 303,
"s": 172,
"text": "We often deal with dates and times in data science. If you are working with time-series data, they are always a part of your work."
},
{
"code": null,
"e": 503,
"s": 303,
"text": "Pandas is highly efficient and practical with regard to... |
Find Nth term of the series 5, 13, 25, 41, 61... - GeeksforGeeks | 15 Mar, 2021
Given a number N. The task is to write a program to find the Nth term in the below series:
5, 13, 25, 41, 61...
Examples:
Input : 3
Output : 25
For N = 3
Nth term = 3*3 + (3+1)*(3+1)
= 25
Input : 5
Output : 61
On observing carefully, the Nth term of the given series can be generalised as:
... | [
{
"code": null,
"e": 24552,
"s": 24524,
"text": "\n15 Mar, 2021"
},
{
"code": null,
"e": 24645,
"s": 24552,
"text": "Given a number N. The task is to write a program to find the Nth term in the below series: "
},
{
"code": null,
"e": 24666,
"s": 24645,
"text"... |
Dynamic subplot layout in Seaborn | by Daniel Deutsch | Towards Data Science | Seaborn is one of the most used visualization libraries and I enjoy working with it. In my latest projects, I wanted to visualize multiple subplots in a dynamic way. To my surprise I didn’t find a straight forward solution anywhere online, so I want to share my way of doing it. It can be quite useful in any data analys... | [
{
"code": null,
"e": 505,
"s": 172,
"text": "Seaborn is one of the most used visualization libraries and I enjoy working with it. In my latest projects, I wanted to visualize multiple subplots in a dynamic way. To my surprise I didn’t find a straight forward solution anywhere online, so I want to sh... |
Difference between HTTP GET and POST Methods - GeeksforGeeks | 22 Oct, 2021
HTTP GET: The Hypertext Transfer Protocol(HTTP) Get method is mainly used at the client (Browser) side to send a request to a specified server to get certain data or resources. Using this method the server should only let us receive the data and not change its state. Hence it is only used to view something... | [
{
"code": null,
"e": 24701,
"s": 24673,
"text": "\n22 Oct, 2021"
},
{
"code": null,
"e": 25280,
"s": 24701,
"text": "HTTP GET: The Hypertext Transfer Protocol(HTTP) Get method is mainly used at the client (Browser) side to send a request to a specified server to get certain data ... |
OBIEE â Repositories | OBIEE repository contains all metadata of the BI Server and is managed through the administration tool. It is used to store information about the application environment such as −
Data Modeling
Aggregate Navigation
Caching
Security
Connectivity Information
SQL Information
The BI Server can access multiple repositories.... | [
{
"code": null,
"e": 2256,
"s": 2076,
"text": "OBIEE repository contains all metadata of the BI Server and is managed through the administration tool. It is used to store information about the application environment such as −"
},
{
"code": null,
"e": 2270,
"s": 2256,
"text": "Da... |
Encode and Decode Strings in C++ | Suppose we have a list of strings. We have to design an algorithm that can encode the list of strings to a string. We also have to make one decoder that will decode back to the original list of strings. Suppose we have the encoder and decoder installed on these machines, and there are two different functions as follows... | [
{
"code": null,
"e": 1385,
"s": 1062,
"text": "Suppose we have a list of strings. We have to design an algorithm that can encode the list of strings to a string. We also have to make one decoder that will decode back to the original list of strings. Suppose we have the encoder and decoder installed ... |
Medical Report Generation Using Deep Learning | by Vysakh Nair | Towards Data Science | Introduction — Understanding the problemPrerequisitesDataObtaining Structured DataPrepare Text Data — Natural Language ProcessingObtaining Image Features — Transfer LearningInput Pipeline — Data GeneratorsEncoder-Decoder Model — Training, Greedy Search, Beam Search, BLEUAttention Mechanism — Training, Greedy Search, Be... | [
{
"code": null,
"e": 536,
"s": 172,
"text": "Introduction — Understanding the problemPrerequisitesDataObtaining Structured DataPrepare Text Data — Natural Language ProcessingObtaining Image Features — Transfer LearningInput Pipeline — Data GeneratorsEncoder-Decoder Model — Training, Greedy Search, B... |
How can I get android device screen height, width? | This example demonstrates how do I get android device screen height, width.
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"?>
<LinearLayo... | [
{
"code": null,
"e": 1138,
"s": 1062,
"text": "This example demonstrates how do I get android device screen height, width."
},
{
"code": null,
"e": 1267,
"s": 1138,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to... |
Java program to print Pascal's triangle | Pascal's triangle is one of the classic example taught to engineering students. It has many interpretations. One of the famous one is its use with binomial equations.
All values outside the triangle are considered zero (0). The first row is 0 1 0 whereas only 1 acquire a space in Pascal’s triangle, 0s are invisible. Se... | [
{
"code": null,
"e": 1229,
"s": 1062,
"text": "Pascal's triangle is one of the classic example taught to engineering students. It has many interpretations. One of the famous one is its use with binomial equations."
},
{
"code": null,
"e": 1534,
"s": 1229,
"text": "All values outs... |
Event Driven Architecture Pattern | by Anuradha Wickramarachchi | Towards Data Science | This is the most common distributed asynchronous architecture used to develop highly scalable system. The architecture consists of single-purpose event processing components that listen on events and process them asynchronously.
There are two main topologies in the event-driven architecture.
Mediator TopologyBroker Top... | [
{
"code": null,
"e": 401,
"s": 172,
"text": "This is the most common distributed asynchronous architecture used to develop highly scalable system. The architecture consists of single-purpose event processing components that listen on events and process them asynchronously."
},
{
"code": null... |
Flattening a Linked List | Practice | GeeksforGeeks | Given a Linked List of size N, where every node represents a sub-linked-list and contains two pointers:
(i) a next pointer to the next node,
(ii) a bottom pointer to a linked list where this node is head.
Each of the sub-linked-list is in sorted order.
Flatten the Link List such that all the nodes appear in a single le... | [
{
"code": null,
"e": 690,
"s": 238,
"text": "Given a Linked List of size N, where every node represents a sub-linked-list and contains two pointers:\n(i) a next pointer to the next node,\n(ii) a bottom pointer to a linked list where this node is head.\nEach of the sub-linked-list is in sorted order.... |
Convert list to array in R - GeeksforGeeks | 01 Sep, 2021
A list can be converted to array in R by calling unlist( ) function with created list as parameter. Now pass the unlist() function into array() function as parameter, and use dim attribute for specifying number of rows, columns and matrices. unlist() converts list to vector.
Syntax :
array( unlist( list_... | [
{
"code": null,
"e": 25242,
"s": 25214,
"text": "\n01 Sep, 2021"
},
{
"code": null,
"e": 25518,
"s": 25242,
"text": "A list can be converted to array in R by calling unlist( ) function with created list as parameter. Now pass the unlist() function into array() function as paramet... |
How to Add Legends to charts in Python? | The main purpose of charts is to make understand data easily. "A picture is worth a thousand words" means complex ideas that cannot be expressed in words can be conveyed by a single image/chart.
When drawing graphs with lot of information, a legend may be pleasing to display relevant information to improve the understa... | [
{
"code": null,
"e": 1257,
"s": 1062,
"text": "The main purpose of charts is to make understand data easily. \"A picture is worth a thousand words\" means complex ideas that cannot be expressed in words can be conveyed by a single image/chart."
},
{
"code": null,
"e": 1411,
"s": 1257... |
Java - Assignment Operators Example | The following program is a simple example that demonstrates the assignment operators. Copy and paste the following Java program in Test.java file. Compile and run this program −
public class Test {
public static void main(String args[]) {
int a = 10;
int b = 20;
int c = 0;
c = a + b;
... | [
{
"code": null,
"e": 2555,
"s": 2377,
"text": "The following program is a simple example that demonstrates the assignment operators. Copy and paste the following Java program in Test.java file. Compile and run this program −"
},
{
"code": null,
"e": 3474,
"s": 2555,
"text": "publ... |
Count the characters | Practice | GeeksforGeeks | Given a string S. Count the characters that have ‘N’ number of occurrences. If a character appears consecutively it is counted as 1 occurrence.
Example 1:
Input:
S = "abc", N = 1
Output: 3
Explanation: 'a', 'b' and 'c' all have
1 occurrence.
​Example 2:
Input:
S = "geeksforgeeks", N = 2
Output: 4
Explanation: 'g... | [
{
"code": null,
"e": 370,
"s": 226,
"text": "Given a string S. Count the characters that have ‘N’ number of occurrences. If a character appears consecutively it is counted as 1 occurrence."
},
{
"code": null,
"e": 381,
"s": 370,
"text": "Example 1:"
},
{
"code": null,
... |
How to extract a string that lies between two strings in R? | If we have a long string then we might want to extract a part of string that lies between two strings. For example, if we have a string “E-learning changing the education system in the world” and we want to extract the string “the education system” brave then we must be very careful about passing the strings in string ... | [
{
"code": null,
"e": 1585,
"s": 1062,
"text": "If we have a long string then we might want to extract a part of string that lies between two strings. For example, if we have a string “E-learning changing the education system in the world” and we want to extract the string “the education system” brav... |
Dive into Queue Module in Python — It’s more than FIFO | by Xiaoxu Gao | Towards Data Science | Queue is a very practical data structure. It’s normally compared with stack, array, linked list, and other linear data structures. What makes a linear structure differs from another is where additions and removals occur.
Queue data structure has three types: FIFO, LIFO, and Priority Queue. The queue module in Python im... | [
{
"code": null,
"e": 393,
"s": 172,
"text": "Queue is a very practical data structure. It’s normally compared with stack, array, linked list, and other linear data structures. What makes a linear structure differs from another is where additions and removals occur."
},
{
"code": null,
"e... |
Count words in a given string - GeeksforGeeks | 15 Jun, 2021
Given a string, count number of words in it. The words are separated by following characters: space (‘ ‘) or new line (‘\n’) or tab (‘\t’) or a combination of these.
There can be many solutions to this problem. Following is a simple and interesting solution. The idea is to maintain two states: IN and OUT.... | [
{
"code": null,
"e": 25026,
"s": 24998,
"text": "\n15 Jun, 2021"
},
{
"code": null,
"e": 25193,
"s": 25026,
"text": "Given a string, count number of words in it. The words are separated by following characters: space (‘ ‘) or new line (‘\\n’) or tab (‘\\t’) or a combination of th... |
YAML - Flow Styles | Flow styles in YAML can be thought of as a natural extension of JSON to cover the folding content lines for better readable feature which uses anchors and aliases to create the object instances. In this chapter, we will focus on flow representation of the following concepts −
Alias Nodes
Empty Nodes
Flow Scalar styles
... | [
{
"code": null,
"e": 2325,
"s": 2048,
"text": "Flow styles in YAML can be thought of as a natural extension of JSON to cover the folding content lines for better readable feature which uses anchors and aliases to create the object instances. In this chapter, we will focus on flow representation of t... |
Explaining Scikit-learn models with SHAP | by Zolzaya Luvsandorj | Towards Data Science | Explainable AI (XAI) helps build trust and confidence in machine learning models by making them more transparent. XAI is a set of tools and frameworks that can be used to understand and interpret how a machine learning model makes decisions. One useful XAI tool is the SHAP library in Python. This tool allows us to quan... | [
{
"code": null,
"e": 820,
"s": 171,
"text": "Explainable AI (XAI) helps build trust and confidence in machine learning models by making them more transparent. XAI is a set of tools and frameworks that can be used to understand and interpret how a machine learning model makes decisions. One useful XA... |
Computer Organization and Architecture | Pipelining | Set 1 (Execution, Stages and Throughput) - GeeksforGeeks | 28 Jun, 2021
To improve the performance of a CPU we have two options:1) Improve the hardware by introducing faster circuits.2) Arrange the hardware such that more than one operation can be performed at the same time.
Since, there is a limit on the speed of hardware and the cost of faster circuits is quite high, we have... | [
{
"code": null,
"e": 27462,
"s": 27434,
"text": "\n28 Jun, 2021"
},
{
"code": null,
"e": 27666,
"s": 27462,
"text": "To improve the performance of a CPU we have two options:1) Improve the hardware by introducing faster circuits.2) Arrange the hardware such that more than one oper... |
C++ STL | Set 5 (queue) | Practice | GeeksforGeeks | Implement different operations on a queue q .
Input:
The first line of input contains an integer T denoting the no of test cases . Then T test cases follow. The first line of input contains an integer Q denoting the no of queries . Then in the next line are Q space separated queries .
A query can be of four types
1. ... | [
{
"code": null,
"e": 1048,
"s": 238,
"text": "Implement different operations on a queue q .\n\nInput:\nThe first line of input contains an integer T denoting the no of test cases . Then T test cases follow. The first line of input contains an integer Q denoting the no of queries . Then in the next l... |
Bootstrap class to emphasize text | HTML's default emphasis tags such as <small> sets text at 85% the size of the parent, <strong> emphasizes a text with heavier font-weight, and <em> emphasizes a text in italics.
You can try to run the following code to an emphasis on text −
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap emphasis tag... | [
{
"code": null,
"e": 1240,
"s": 1062,
"text": "HTML's default emphasis tags such as <small> sets text at 85% the size of the parent, <strong> emphasizes a text with heavier font-weight, and <em> emphasizes a text in italics."
},
{
"code": null,
"e": 1303,
"s": 1240,
"text": "You ... |
Algorithms for Text Classification — Part 1 | by Hailey Huong Nguyen | Towards Data Science | When you check news about Natural Language Processing (NLP) these days, you will see a lot of hype surrounding language models, transfer learning, OpenAI, ULMFit, etc. Catching up with the current state-of-art in NLP is great, though I still believe that one shall be strong in understanding the classic algorithms, such... | [
{
"code": null,
"e": 1035,
"s": 171,
"text": "When you check news about Natural Language Processing (NLP) these days, you will see a lot of hype surrounding language models, transfer learning, OpenAI, ULMFit, etc. Catching up with the current state-of-art in NLP is great, though I still believe that... |
Maximum possible number with the given operation - GeeksforGeeks | 19 Mar, 2022
Given a positive integer N, the task is to convert this integer to the maximum possible integer without leading zeroes by changing the digits. A digit X can only be changed into a digit Y if X + Y = 9.Examples:
Input: N = 42 Output: 57 Change 4 -> 5 and 2 -> 7.Input: N = 1 Output: 8
Approach: Only th... | [
{
"code": null,
"e": 24994,
"s": 24966,
"text": "\n19 Mar, 2022"
},
{
"code": null,
"e": 25207,
"s": 24994,
"text": "Given a positive integer N, the task is to convert this integer to the maximum possible integer without leading zeroes by changing the digits. A digit X can only b... |
Base64 Encoding and Decoding | Base64 encoding converts the binary data into text format, which is passed through communication channel where a user can handle text safely. Base64 is also called as Privacy enhanced Electronic mail (PEM) and is primarily used in email encryption process.
Python includes a module called BASE64 which includes two prima... | [
{
"code": null,
"e": 2549,
"s": 2292,
"text": "Base64 encoding converts the binary data into text format, which is passed through communication channel where a user can handle text safely. Base64 is also called as Privacy enhanced Electronic mail (PEM) and is primarily used in email encryption proce... |
End-to-End Data Science Example: Predicting Diabetes with Logistic Regression | by Keshav Dhandhania | Towards Data Science | As the title suggests, this tutorial is an end-to-end example of solving a real-world problem using Data Science. We’ll be using Machine Learning to predict whether a person has diabetes or not, based on information about the patient such as blood pressure, body mass index (BMI), age, etc. The tutorial walks through th... | [
{
"code": null,
"e": 594,
"s": 172,
"text": "As the title suggests, this tutorial is an end-to-end example of solving a real-world problem using Data Science. We’ll be using Machine Learning to predict whether a person has diabetes or not, based on information about the patient such as blood pressur... |
jQuery - Element Name Selector | The element selector selects all the elements that have a tag name of T.
Here is the simple syntax to use this selector −
$('tagname')
Here is the description of all the parameters used by this selector −
tagname − Any standard HTML tag name like div, p, em, img, li etc.
tagname − Any standard HTML tag name like div, ... | [
{
"code": null,
"e": 2395,
"s": 2322,
"text": "The element selector selects all the elements that have a tag name of T."
},
{
"code": null,
"e": 2444,
"s": 2395,
"text": "Here is the simple syntax to use this selector −"
},
{
"code": null,
"e": 2458,
"s": 2444,
... |
What are the types of arrays in Java? | There are two types of arrays in Java they are −
Single dimensional array − A single dimensional array of Java is a normal array where, the array contains sequential elements (of same type) −
int[] myArray = {10, 20, 30, 40}
Live Demo
public class TestArray {
public static void main(String[] args) {
double[... | [
{
"code": null,
"e": 1112,
"s": 1062,
"text": "There are two types of arrays in Java they are −"
},
{
"code": null,
"e": 1255,
"s": 1112,
"text": "Single dimensional array − A single dimensional array of Java is a normal array where, the array contains sequential elements (of sa... |
p5.js | round() function - GeeksforGeeks | 09 Apr, 2019
The round() function in p5.js is used to calculate the round value of a number. It calculates the integer closest to the number.
Syntax
round(number)
Parameters: The function accepts only one parameter as mentioned above and described below:
number : This parameter stores the number to compute.Below progr... | [
{
"code": null,
"e": 24896,
"s": 24868,
"text": "\n09 Apr, 2019"
},
{
"code": null,
"e": 25025,
"s": 24896,
"text": "The round() function in p5.js is used to calculate the round value of a number. It calculates the integer closest to the number."
},
{
"code": null,
"e... |
Image Scraping with Python. A code-along guide to learn how to... | by Fabian Bosler | Towards Data Science | To train a model, you need images. You can most certainly download them by hand, possibly even somewhere in batch, but I think there is a much more enjoyable way. Let’s use Python and some web scraping techniques to download images.
Update 2 (Feb 25, 2020): One of the problems with scraping webpages is that the target ... | [
{
"code": null,
"e": 405,
"s": 172,
"text": "To train a model, you need images. You can most certainly download them by hand, possibly even somewhere in batch, but I think there is a much more enjoyable way. Let’s use Python and some web scraping techniques to download images."
},
{
"code": ... |
CSS | transition-property Property - GeeksforGeeks | 09 Aug, 2019
The transition effect is used to display the change in the property of an element over a specified duration. The transition-property property is used to specify the name of the CSS property for which the transition effect will occur.
Syntax:
transition-property: none | all | property | initial | inherit;
... | [
{
"code": null,
"e": 23780,
"s": 23752,
"text": "\n09 Aug, 2019"
},
{
"code": null,
"e": 24014,
"s": 23780,
"text": "The transition effect is used to display the change in the property of an element over a specified duration. The transition-property property is used to specify th... |
How to copy only updated or newer files with PowerShell? | To copy only updated or newer files with PowerShell, we can use Copy-Item with some logic in the script that to check if the files exist on the destination folder if not then copy that file and if yes then compare the timestamp and copy the latest file. This would be tricky because we need to write several lines of cod... | [
{
"code": null,
"e": 1392,
"s": 1062,
"text": "To copy only updated or newer files with PowerShell, we can use Copy-Item with some logic in the script that to check if the files exist on the destination folder if not then copy that file and if yes then compare the timestamp and copy the latest file.... |
How to get the specific process(es) information using PowerShell? | To find the specific process using Get-Process cmdlet, you need to use the –Name parameter. You can use single and multiple process names.
Get-Process -Name AcroRd32, audiodg
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
506 27 9888 19216 2.22 6320 1 AcroRd32
63... | [
{
"code": null,
"e": 1201,
"s": 1062,
"text": "To find the specific process using Get-Process cmdlet, you need to use the –Name parameter. You can use single and multiple process names."
},
{
"code": null,
"e": 1237,
"s": 1201,
"text": "Get-Process -Name AcroRd32, audiodg"
},
... |
PL/SQL - Exceptions | In this chapter, we will discuss Exceptions in PL/SQL. An exception is an error condition during a program execution. PL/SQL supports programmers to catch such conditions using EXCEPTION block in the program and an appropriate action is taken against the error condition. There are two types of exceptions −
System-defin... | [
{
"code": null,
"e": 2373,
"s": 2065,
"text": "In this chapter, we will discuss Exceptions in PL/SQL. An exception is an error condition during a program execution. PL/SQL supports programmers to catch such conditions using EXCEPTION block in the program and an appropriate action is taken against th... |
Alternative of Malloc in C - GeeksforGeeks | 28 Jan, 2022
An array in C or C++ is a collection of items stored at contiguous memory locations and elements can be accessed randomly using indices of an array. They are used for storing similar types of elements as the data type must be the same for all elements. They can be used to store the collection of primitive ... | [
{
"code": null,
"e": 24208,
"s": 24180,
"text": "\n28 Jan, 2022"
},
{
"code": null,
"e": 24750,
"s": 24208,
"text": "An array in C or C++ is a collection of items stored at contiguous memory locations and elements can be accessed randomly using indices of an array. They are used ... |
Setup your home JupyterHub on a Raspberry Pi | by Gerold Busch | Towards Data Science | As a data scientist, I use Jupyter notebooks on a daily basis. Sometimes locally on my notebook, sometimes on a server through JupyterHub. But why not combine both and run a JupyterHub on a Raspberry Pi? This way everyone in the household can start a notebook from every device with a browser. The data always stays home... | [
{
"code": null,
"e": 588,
"s": 171,
"text": "As a data scientist, I use Jupyter notebooks on a daily basis. Sometimes locally on my notebook, sometimes on a server through JupyterHub. But why not combine both and run a JupyterHub on a Raspberry Pi? This way everyone in the household can start a note... |
read() - Unix, Linux System Call | Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix -... | [
{
"code": null,
"e": 1466,
"s": 1454,
"text": "Unix - Home"
},
{
"code": null,
"e": 1489,
"s": 1466,
"text": "Unix - Getting Started"
},
{
"code": null,
"e": 1512,
"s": 1489,
"text": "Unix - File Management"
},
{
"code": null,
"e": 1531,
"s": 1... |
crypto.pbkdf2() Method in Node.js | The crypto.pbkdf2(), also known as Password-Based Key Derivation function, provides an asynchronous implementation of the derivative function. A key is derived by using the Hmac digest of a specified algorithm from password, salt and iterations
crypto.createHmac(algorithm, key, [options])
The above parameters are descr... | [
{
"code": null,
"e": 1307,
"s": 1062,
"text": "The crypto.pbkdf2(), also known as Password-Based Key Derivation function, provides an asynchronous implementation of the derivative function. A key is derived by using the Hmac digest of a specified algorithm from password, salt and iterations"
},
... |
Third largest element | Practice | GeeksforGeeks | Given an array of distinct elements. Find the third largest element in it.
Suppose you have A[] = {1, 2, 3, 4, 5, 6, 7}, its output will be 5 because it is the 3 largest element in the array A.
Example 1:
Input:
N = 5
A[] = {2,4,1,3,5}
Output: 3
Example 2:
Input:
N = 2
A[] = {10,2}
Output: -1
Your Task:
Complete the ... | [
{
"code": null,
"e": 366,
"s": 290,
"text": "Given an array of distinct elements. Find the third largest element in it. "
},
{
"code": null,
"e": 485,
"s": 366,
"text": "Suppose you have A[] = {1, 2, 3, 4, 5, 6, 7}, its output will be 5 because it is the 3 largest element in the ... |
Reduce every element of the array to it's half retaining the sum zero - GeeksforGeeks | 02 Sep, 2021
Given an array arr[] of N integers with total element sum equal to zero. The task is to reduce every element to it’s half such that the total sum remain zero. For every odd element X in the array, it could be reduced to either(X + 1) / 2 or (X – 1) / 2.Examples:
Input: arr[] = {-7, 14, -7} Output: -4 7 -... | [
{
"code": null,
"e": 26423,
"s": 26395,
"text": "\n02 Sep, 2021"
},
{
"code": null,
"e": 26688,
"s": 26423,
"text": "Given an array arr[] of N integers with total element sum equal to zero. The task is to reduce every element to it’s half such that the total sum remain zero. For ... |
Transaction Management in JDBC Example | JDBC Transactions | JDBC | PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
JAVAEXCEPTIONSCOLLECTIONSSWINGJDBC
EXCEPTIONS
COLLECTIONS
SWING
JDBC
JAVA 8
SPRING
SPRING BOOT
HIBERNATE
PYTHON
PHP
JQUERY
PROGRAMMINGJava ExamplesC Examples
Java Examples
C Examples
C Tutorials
aws
In this tutorials, we are going to learn abut... | [
{
"code": null,
"e": 158,
"s": 123,
"text": "PROGRAMMINGJava ExamplesC Examples"
},
{
"code": null,
"e": 172,
"s": 158,
"text": "Java Examples"
},
{
"code": null,
"e": 183,
"s": 172,
"text": "C Examples"
},
{
"code": null,
"e": 195,
"s": 183,
... |
IPC using Message Queues - GeeksforGeeks | 25 Nov, 2020
Prerequisite : Inter Process Communication A message queue is a linked list of messages stored within the kernel and identified by a message queue identifier. A new queue is created or an existing queue opened by msgget(). New messages are added to the end of a queue by msgsnd(). Every message has a positi... | [
{
"code": null,
"e": 24518,
"s": 24490,
"text": "\n25 Nov, 2020"
},
{
"code": null,
"e": 25589,
"s": 24518,
"text": "Prerequisite : Inter Process Communication A message queue is a linked list of messages stored within the kernel and identified by a message queue identifier. A ne... |
Tailwind CSS Whitespace - GeeksforGeeks | 23 Mar, 2022
This class accepts more than one value in tailwind CSS. All the properties are covered in class form. It is the alternative to the CSS white-space property. This class is used to control the text wrapping and white-spacing. There are several types of values in this property to use.
Whitespace classes:
whit... | [
{
"code": null,
"e": 37495,
"s": 37467,
"text": "\n23 Mar, 2022"
},
{
"code": null,
"e": 37778,
"s": 37495,
"text": "This class accepts more than one value in tailwind CSS. All the properties are covered in class form. It is the alternative to the CSS white-space property. This c... |
Creating and Training Custom Layers in TensorFlow 2 | by Arjun Sarkar | Towards Data Science | Previously we’ve seen how to create custom loss functions — Creating custom Loss functions using TensorFlow 2Next, I wrote about creating custom Activation Functions using Lambda layers — Creating Custom Activation Functions with Lambda Layers in TensorFlow 2
Previously we’ve seen how to create custom loss functions — ... | [
{
"code": null,
"e": 432,
"s": 172,
"text": "Previously we’ve seen how to create custom loss functions — Creating custom Loss functions using TensorFlow 2Next, I wrote about creating custom Activation Functions using Lambda layers — Creating Custom Activation Functions with Lambda Layers in TensorFl... |
arecord command in Linux with examples - GeeksforGeeks | 07 Apr, 2022
arecord is a command-line sound recorder for ALSA(Advanced Linux Sound Architecture) sound card drivers. It supports several file formats and multiple soundcards with multiple devices. It is basically used to record audio using the command-line interface. Syntax:
arecord [flags] [filename]
If the filename ... | [
{
"code": null,
"e": 25599,
"s": 25571,
"text": "\n07 Apr, 2022"
},
{
"code": null,
"e": 25863,
"s": 25599,
"text": "arecord is a command-line sound recorder for ALSA(Advanced Linux Sound Architecture) sound card drivers. It supports several file formats and multiple soundcards w... |
C | Arrays | Question 7 - GeeksforGeeks | 03 Aug, 2018
Consider the following declaration of a ‘two-dimensional array in C:
char a[100][100];
Assuming that the main memory is byte-addressable and that the array is stored starting from memory address 0, the address of a[40][50] is (GATE CS 2002)
(A) 4040(B) 4050(C) 5040(D) 5050Answer: (B)Explanation:
Address o... | [
{
"code": null,
"e": 24172,
"s": 24144,
"text": "\n03 Aug, 2018"
},
{
"code": null,
"e": 24241,
"s": 24172,
"text": "Consider the following declaration of a ‘two-dimensional array in C:"
},
{
"code": "char a[100][100]; ",
"e": 24260,
"s": 24241,
"text": null
... |
C++ Program to print current Day, Date and Time - GeeksforGeeks | 31 Jul, 2017
In order to facilitate finding the current local day, date and time, C++ has defined several functions in the header file , so functions which will help us in achieving our objective of finding local day, date and time are:
time():
It is used to find the current calendar time.
Its return type is time_t, wh... | [
{
"code": null,
"e": 24624,
"s": 24596,
"text": "\n31 Jul, 2017"
},
{
"code": null,
"e": 24848,
"s": 24624,
"text": "In order to facilitate finding the current local day, date and time, C++ has defined several functions in the header file , so functions which will help us in achi... |
Sorted insert for circular linked list | 28 Jun, 2022
Difficulty Level: Rookie Write a C function to insert a new value in a sorted Circular Linked List (CLL). For example, if the input CLL is following.
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
captions off, selected
English
This is a modal window.
Beginning of dia... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n28 Jun, 2022"
},
{
"code": null,
"e": 202,
"s": 52,
"text": "Difficulty Level: Rookie Write a C function to insert a new value in a sorted Circular Linked List (CLL). For example, if the input CLL is following."
},
{
"code": nu... |
Sublist Search (Search a linked list in another list) | 06 Jul, 2022
Given two linked lists, the task is to check whether the first list is present in 2nd list or not.
Examples:
Input : list1 = 10->20
list2 = 5->10->20
Output : LIST FOUND
Input : list1 = 1->2->3->4
list2 = 1->2->1->2->3->4
Output : LIST FOUND
Input : list1 = 1->2->3->4
... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n06 Jul, 2022"
},
{
"code": null,
"e": 152,
"s": 52,
"text": "Given two linked lists, the task is to check whether the first list is present in 2nd list or not. "
},
{
"code": null,
"e": 162,
"s": 152,
"text": "Examp... |
Equivalent Serial Schedule of Conflict Serializable Schedule in DBMS | 30 Sep, 2021
Prerequisite: Conflict Serializability, Precedence Graph
Conflict Serializable Schedule: A schedule is called conflict serializable if it can be transformed into a serial schedule by swapping non-conflicting operations. The serial schedule of the Conflict Serializable Schedule can be found by applying topo... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 109,
"s": 52,
"text": "Prerequisite: Conflict Serializability, Precedence Graph"
},
{
"code": null,
"e": 438,
"s": 109,
"text": "Conflict Serializable Schedule: A schedule is ca... |
What does main() return in C and C++? | 19 Sep, 2019
C
According to coding standards, a good return program must exit the main function with 0. Although we are using void main() in C, In which we have not suppose to write any kind of return statement but that doesn’t mean that C code doesn’t require 0 as exit code. Let’s see one example to clear our thinking... | [
{
"code": null,
"e": 53,
"s": 25,
"text": "\n19 Sep, 2019"
},
{
"code": null,
"e": 55,
"s": 53,
"text": "C"
},
{
"code": null,
"e": 407,
"s": 55,
"text": "According to coding standards, a good return program must exit the main function with 0. Although we are ... |
Find missing elements from an Array | 19 Jun, 2022
Given a list of integers from the range [1, N] with some of the elements missing. The task is to find the missing elements. Note that there can be duplicates in the list.Examples:
Input: arr[] = {1, 3, 3, 3, 5}
Output: 2 4
Input: arr[] = {1, 2, 3, 4, 4, 7, 7}
Output: 5 6
Approach1: In the given range [1... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n19 Jun, 2022"
},
{
"code": null,
"e": 235,
"s": 54,
"text": "Given a list of integers from the range [1, N] with some of the elements missing. The task is to find the missing elements. Note that there can be duplicates in the list.Exam... |
Java Program for Left Rotation and Right Rotation of a String | 27 May, 2022
Given a string of size n, write functions to perform the following operations on a string-
Left (Or anticlockwise) rotate the given string by d elements (where d <= n)Right (Or clockwise) rotate the given string by d elements (where d <= n).
Left (Or anticlockwise) rotate the given string by d elements (wh... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n27 May, 2022"
},
{
"code": null,
"e": 143,
"s": 52,
"text": "Given a string of size n, write functions to perform the following operations on a string-"
},
{
"code": null,
"e": 294,
"s": 143,
"text": "Left (Or antic... |
std::iter_swap in C++ | 06 Sep, 2019
std::swap is used for swapping of elements between two containers. One of the other way of doing this same thing is facilitated by std::iter_swap, which as the name suggests is used for swapping the elements with the help of an iterator.
It simply exchanges the values of the elements pointed to by the iter... | [
{
"code": null,
"e": 54,
"s": 26,
"text": "\n06 Sep, 2019"
},
{
"code": null,
"e": 292,
"s": 54,
"text": "std::swap is used for swapping of elements between two containers. One of the other way of doing this same thing is facilitated by std::iter_swap, which as the name suggests ... |
Draw Ellipse Using Turtle in Python | 29 Sep, 2021
Prerequisite: Turtle Programming Basics
Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc.
Approach:
The following... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n29 Sep, 2021"
},
{
"code": null,
"e": 68,
"s": 28,
"text": "Prerequisite: Turtle Programming Basics"
},
{
"code": null,
"e": 312,
"s": 68,
"text": "Turtle is an inbuilt module in Python. It provides drawing using a s... |
numpy.append() in Python | 04 Dec, 2020
The numpy.append() appends values along the mentioned axis at the end of the arraySyntax :
numpy.append(array, values, axis = None)
Parameters :
array : [array_like]Input array.
values : [array_like]values to be added in the arr. Values should be
shaped so that arr[...,obj,...] = values. If the a... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n04 Dec, 2020"
},
{
"code": null,
"e": 119,
"s": 28,
"text": "The numpy.append() appends values along the mentioned axis at the end of the arraySyntax :"
},
{
"code": null,
"e": 160,
"s": 119,
"text": "numpy.append(ar... |
Insertion and Deletion in STL Set C++ | 23 Aug, 2019
Set is a container implemented in C++ language in STL and has a concept similar to how set is defined in mathematics. The facts that separates set from the other containers is that is it contains only the distinct elements and elements can be traversed in sorted order. Having the strong hold on sets is use... | [
{
"code": null,
"e": 52,
"s": 24,
"text": "\n23 Aug, 2019"
},
{
"code": null,
"e": 494,
"s": 52,
"text": "Set is a container implemented in C++ language in STL and has a concept similar to how set is defined in mathematics. The facts that separates set from the other containers i... |
How to Use try – catch as an Expression in Kotlin? | 13 Jan, 2022
The try statement consists of a try-block, which contains one or more statements. { } must always be used, even for single statements. A catch-block, a finally-block, or both must be present. This gives us three forms for the try statement:
try...catch
try...finally
try...catch...finally
A catch-block cont... | [
{
"code": null,
"e": 28,
"s": 0,
"text": "\n13 Jan, 2022"
},
{
"code": null,
"e": 269,
"s": 28,
"text": "The try statement consists of a try-block, which contains one or more statements. { } must always be used, even for single statements. A catch-block, a finally-block, or both ... |
Centralized Clock Synchronization - GeeksforGeeks | 31 Jul, 2020
Centralized Clock Synchronization is an internal clock synchronization approach where clocks of system are synchronized with one of clock of system.
Clock synchronization is carried out to make all clocks in network agree on the same value. In centralized clock synchronization, one of clocks is appointed a... | [
{
"code": null,
"e": 24492,
"s": 24464,
"text": "\n31 Jul, 2020"
},
{
"code": null,
"e": 24641,
"s": 24492,
"text": "Centralized Clock Synchronization is an internal clock synchronization approach where clocks of system are synchronized with one of clock of system."
},
{
... |
JavaFX | CustomMenuItem - GeeksforGeeks | 19 Apr, 2021
CustomMenuItem is a part of the JavaFX library. CustomMenuItem allows different types of nodes as its menu item. One of the useful property of the customMenuItem is hideOnClick. This property states whether the menu should be hidden when the user clicks the menuitem or not.Constructors of CustomMenuItem: ... | [
{
"code": null,
"e": 25237,
"s": 25209,
"text": "\n19 Apr, 2021"
},
{
"code": null,
"e": 25545,
"s": 25237,
"text": "CustomMenuItem is a part of the JavaFX library. CustomMenuItem allows different types of nodes as its menu item. One of the useful property of the customMenuItem i... |
Node.js URL.port API - GeeksforGeeks | 14 Oct, 2021
The url.port is an inbuilt application programming interface of class URL within url module which is used to get and set the port portion of the URL.the port value may be a number or a string containing a number in the range 0 to 65535 (inclusive). Setting the value to the default port of the URL objects g... | [
{
"code": null,
"e": 37354,
"s": 37326,
"text": "\n14 Oct, 2021"
},
{
"code": null,
"e": 37829,
"s": 37354,
"text": "The url.port is an inbuilt application programming interface of class URL within url module which is used to get and set the port portion of the URL.the port value... |
Area of a leaf inside a square - GeeksforGeeks | 06 Jun, 2021
Given an integer a as the side of the square ABCD. The task is to find the area of the leaf AECFA inside the square as shown below:
Examples:
Input: a = 7 Output: 28
Input: a = 21 Output: 252
Approach: To calculate the area of the leaf, first find the area of the half leaf AECA, which can be given as:
... | [
{
"code": null,
"e": 26345,
"s": 26317,
"text": "\n06 Jun, 2021"
},
{
"code": null,
"e": 26477,
"s": 26345,
"text": "Given an integer a as the side of the square ABCD. The task is to find the area of the leaf AECFA inside the square as shown below:"
},
{
"code": null,
... |
Space Science with Python — The Solar System centre | by Thomas Albin | Towards Data Science | This is the 3rd part of my Python tutorial series “Space Science with Python”. All codes that are shown here are uploaded on GitHub. Enjoy!
... we computed and visualised the movement of the Solar System Barycentre (SSB) with respect to the Sun. A 2-dimensional projection on the Ecliptic plane revealed an impressive be... | [
{
"code": null,
"e": 312,
"s": 172,
"text": "This is the 3rd part of my Python tutorial series “Space Science with Python”. All codes that are shown here are uploaded on GitHub. Enjoy!"
},
{
"code": null,
"e": 950,
"s": 312,
"text": "... we computed and visualised the movement of... |
Penalty Shooters | Practice | GeeksforGeeks | Geek and Nerd are strikers playing football with their friend the Goalie. Their energies are denoted by X,Y and Z respectively.
Strikers can only score a goal if the Goalie's energy is a factor of their energy. For every goal scored the energy of the respective player is decreased by 1. Each save decreses the Goalie's... | [
{
"code": null,
"e": 806,
"s": 226,
"text": "Geek and Nerd are strikers playing football with their friend the Goalie. Their energies are denoted by X,Y and Z respectively. \nStrikers can only score a goal if the Goalie's energy is a factor of their energy. For every goal scored the energy of the re... |
How to switch between different activities in android? | This example demonstrates how do I switch between different activities 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.
<RelativeLayout xmlns:android="http://schem... | [
{
"code": null,
"e": 1145,
"s": 1062,
"text": "This example demonstrates how do I switch between different activities in android."
},
{
"code": null,
"e": 1274,
"s": 1145,
"text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required det... |
How to Find Closed and Maximal Frequent Itemsets from FP-Growth | by Andrewngai | Towards Data Science | Python Optimization on finding Closed and Maximal Frequent Itemsets
In the last article, I have discussed in detail what is FP-growth, and how does it work to find frequent itemsets. Also, I demonstrated the python implementation from scratch. In this article, I would like to introduce two important concepts in Associa... | [
{
"code": null,
"e": 239,
"s": 171,
"text": "Python Optimization on finding Closed and Maximal Frequent Itemsets"
},
{
"code": null,
"e": 713,
"s": 239,
"text": "In the last article, I have discussed in detail what is FP-growth, and how does it work to find frequent itemsets. Als... |
How to convert columns of an R data frame into rows? | If the row values are incorrectly recorded into columns then we might want to convert the columns into rows. Thus, to convert columns of an R data frame into rows we can use transpose function t. For example, if we have a data frame df with five columns and five rows then we can convert the columns of the df into rows ... | [
{
"code": null,
"e": 1413,
"s": 1062,
"text": "If the row values are incorrectly recorded into columns then we might want to convert the columns into rows. Thus, to convert columns of an R data frame into rows we can use transpose function t. For example, if we have a data frame df with five columns... |
What is strncmp() Function in C language? | The C library function int strncmp(const char *str1, const char *str2, size_t n) compares at most the first n bytes of str1 and str2.
An array of characters is called a string.
The syntax for declaring an array is as follows −
char stringname [size];
For example − char string[50]; string of length 50 characters
Using s... | [
{
"code": null,
"e": 1196,
"s": 1062,
"text": "The C library function int strncmp(const char *str1, const char *str2, size_t n) compares at most the first n bytes of str1 and str2."
},
{
"code": null,
"e": 1239,
"s": 1196,
"text": "An array of characters is called a string."
},... |
Upgrading a Docker Installation of MySQL | Before upgrading the docker installation of MySQL, ensure that the below mentioned steps have been followed −
Download a MySQL server docker image.
Download a MySQL server docker image.
Start a MySQL server instance.
Start a MySQL server instance.
Connect to MySQL server instance from within the container.
Connect to M... | [
{
"code": null,
"e": 1172,
"s": 1062,
"text": "Before upgrading the docker installation of MySQL, ensure that the below mentioned steps have been followed −"
},
{
"code": null,
"e": 1210,
"s": 1172,
"text": "Download a MySQL server docker image."
},
{
"code": null,
"e... |
- Unix, Linux Command | If the -key option is not used it will generate a new RSA private
key using information specified in the configuration file.
/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe
If -multi-rdn is not used then the UID value is 123456+CN=John Doe.
More precisely the Attributes in a PKCS#10 certificate request
are ... | [
{
"code": null,
"e": 10705,
"s": 10577,
"text": "\n\nIf the -key option is not used it will generate a new RSA private\nkey using information specified in the configuration file.\n"
},
{
"code": null,
"e": 10759,
"s": 10705,
"text": "\n\n/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=... |
Are you still using Pandas for big data? | by Roman Orac | Towards Data Science | Pandas is one of the best tools when it comes to Exploratory Data Analysis. But this doesn't mean that it is the best tool available for every task — like big data processing. I’ve spent so much time waiting for pandas to read a bunch of files or to aggregate them and calculate features.
Recently, I took the time and f... | [
{
"code": null,
"e": 461,
"s": 172,
"text": "Pandas is one of the best tools when it comes to Exploratory Data Analysis. But this doesn't mean that it is the best tool available for every task — like big data processing. I’ve spent so much time waiting for pandas to read a bunch of files or to aggre... |
What is Default access level in Java? | The default access level is available when no access level is specified. All the classes, data members, methods etc. which have the default access level can only be accessed inside the same package.
A program that demonstrates the default access level in Java is given as follows:
Live Demo
class Employee {
int empn... | [
{
"code": null,
"e": 1261,
"s": 1062,
"text": "The default access level is available when no access level is specified. All the classes, data members, methods etc. which have the default access level can only be accessed inside the same package."
},
{
"code": null,
"e": 1343,
"s": 12... |
EasyUI React Droppable Component - GeeksforGeeks | 30 Sep, 2021
In this article, we will learn how to design a draggable widget using jQuery EasyUI. EasyUI is an HTML5 framework for using user interface components based on jQuery, React, Angular, and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for dev... | [
{
"code": null,
"e": 24708,
"s": 24680,
"text": "\n30 Sep, 2021"
},
{
"code": null,
"e": 25133,
"s": 24708,
"text": "In this article, we will learn how to design a draggable widget using jQuery EasyUI. EasyUI is an HTML5 framework for using user interface components based on jQue... |
An Overview of Python’s Datatable package | by Parul Pandey | Towards Data Science | “There were 5 Exabytes of information created between the dawn of civilization through 2003, but that much information is now created every 2 days”:Eric Schmidt
If you are an R user, chances are that you have already been using the data.table package. Data.table is an extension of the data.frame package in R. It’s also... | [
{
"code": null,
"e": 332,
"s": 171,
"text": "“There were 5 Exabytes of information created between the dawn of civilization through 2003, but that much information is now created every 2 days”:Eric Schmidt"
},
{
"code": null,
"e": 600,
"s": 332,
"text": "If you are an R user, cha... |
React Native - TouchableOpacity | In this chapter we will show you button example using TouchableOpacity component.
First we need to create src/components/home/TouchableOpacity.js file.
This is just a simple container component with no additional functionality.
src/components/home/HomeContainer.js
import React, { Component } from 'react'
import Touchab... | [
{
"code": null,
"e": 2426,
"s": 2344,
"text": "In this chapter we will show you button example using TouchableOpacity component."
},
{
"code": null,
"e": 2496,
"s": 2426,
"text": "First we need to create src/components/home/TouchableOpacity.js file."
},
{
"code": null,
... |
Check if original Array is retained after performing XOR with M exactly K times - GeeksforGeeks | 24 Nov, 2021
Given an array A and two integers M and K, the task is to check and print “Yes“, if the original array can be retained by performing exactly ‘K‘ number of bitwise XOR operations of the array elements with ‘M‘. Else print “No“.Note: XOR operation can be performed, on any element of the array, for 0 or more ... | [
{
"code": null,
"e": 24405,
"s": 24377,
"text": "\n24 Nov, 2021"
},
{
"code": null,
"e": 24731,
"s": 24405,
"text": "Given an array A and two integers M and K, the task is to check and print “Yes“, if the original array can be retained by performing exactly ‘K‘ number of bitwise ... |
CLOSINGBALANCEYEAR function | Evaluates the expression at the last date of the year in the current context.
CLOSINGBALANCEYEAR (<expression>, <dates>, [<filter>], [<year_end_date>])
expression
An expression that returns a scalar value.
dates
A column that contains dates.
filter
Optional.
An expression that specifies a filter to apply to the curren... | [
{
"code": null,
"e": 2079,
"s": 2001,
"text": "Evaluates the expression at the last date of the year in the current context."
},
{
"code": null,
"e": 2154,
"s": 2079,
"text": "CLOSINGBALANCEYEAR (<expression>, <dates>, [<filter>], [<year_end_date>])\n"
},
{
"code": null,
... |
Basic Blocks in Compiler Design - GeeksforGeeks | 16 Feb, 2022
Basic Block is a straight line code sequence that has no branches in and out branches except to the entry and at the end respectively. Basic Block is a set of statements that always executes one after other, in a sequence.
The first task is to partition a sequence of three-address code into basic blocks. ... | [
{
"code": null,
"e": 24444,
"s": 24416,
"text": "\n16 Feb, 2022"
},
{
"code": null,
"e": 24668,
"s": 24444,
"text": "Basic Block is a straight line code sequence that has no branches in and out branches except to the entry and at the end respectively. Basic Block is a set of stat... |
Java Swing | Internal Frame with examples - GeeksforGeeks | 14 Apr, 2021
JInternalFrame is a part of Java Swing . JInternalFrame is a container that provides many features of a frame which includes displaying title, opening, closing, resizing, support for menu bar, etc. Constructors for JInternalFrame
JInternalFrame() : creates a new non- closable, non- resizable, non- iconif... | [
{
"code": null,
"e": 23948,
"s": 23920,
"text": "\n14 Apr, 2021"
},
{
"code": null,
"e": 24180,
"s": 23948,
"text": "JInternalFrame is a part of Java Swing . JInternalFrame is a container that provides many features of a frame which includes displaying title, opening, closing, re... |
Lua - Nested if statements | It is always legal in Lua programming 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)
then
--[ Executes when the boolean expression 1 is true --]
if(boolean_exp... | [
{
"code": null,
"e": 2264,
"s": 2103,
"text": "It is always legal in Lua programming 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": 2317,
"s": 2264,
"text": "The syntax for a nest... |
Python - Replace multiple words with K - GeeksforGeeks | 22 Apr, 2020
Sometimes, while working with Python strings, we can have a problem in which we need to perform a replace of multiple words with a single word. This can have application in many domains including day-day programming and school programming. Lets discuss certain ways in which this task can be performed.
Meth... | [
{
"code": null,
"e": 23925,
"s": 23897,
"text": "\n22 Apr, 2020"
},
{
"code": null,
"e": 24228,
"s": 23925,
"text": "Sometimes, while working with Python strings, we can have a problem in which we need to perform a replace of multiple words with a single word. This can have appli... |
Thread Interference and Memory Consistency Errors in Java - GeeksforGeeks | 29 Mar, 2019
Java allows multithreading which involves concurrent execution of two or more parts of the program. It enhances CPU utilization by performing multiple tasks simultaneously. The threads communicate with each other by sharing object references and member variables.When Two threads access the same shared memo... | [
{
"code": null,
"e": 23583,
"s": 23555,
"text": "\n29 Mar, 2019"
},
{
"code": null,
"e": 23893,
"s": 23583,
"text": "Java allows multithreading which involves concurrent execution of two or more parts of the program. It enhances CPU utilization by performing multiple tasks simult... |
What is Bitwise OR Operator (|) in JavaScript? | It performs a Boolean OR operation on each bit of its integer arguments.
You can try to run the following code to learn how to work with Bitwise OR Operator (|) −
<html>
<body>
<script>
var a = 2; // Bit presentation 10
var b = 3; // Bit presentation 11
document.write("(a | b) => ")... | [
{
"code": null,
"e": 1135,
"s": 1062,
"text": "It performs a Boolean OR operation on each bit of its integer arguments."
},
{
"code": null,
"e": 1225,
"s": 1135,
"text": "You can try to run the following code to learn how to work with Bitwise OR Operator (|) −"
},
{
"code... |
Creating Alternative Truths with Sine Activation Function in Neural Networks | by Tekin Evrim Ozmermer | Towards Data Science | Hello! Today, I am going to talk about using sine function as activation in neural networks. I will try to answer the questions “What is it?”,“How can it change the future of neural networks?”, “What are the weak sides of this approach?” I will also demonstrate one example at the end.
As you may have heard before from ... | [
{
"code": null,
"e": 458,
"s": 172,
"text": "Hello! Today, I am going to talk about using sine function as activation in neural networks. I will try to answer the questions “What is it?”,“How can it change the future of neural networks?”, “What are the weak sides of this approach?” I will also demon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.