title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
QlikView - IntervalMatch
QlikView IntervalMatch is a powerful function used to match distinct numeric values to numeric intervals. It is useful in analyzing how the events actually happened versus the planned events. The example of a scenario where it is used is in the assembly lines of the production houses where the belts are planned to run ...
[ { "code": null, "e": 3372, "s": 2920, "text": "QlikView IntervalMatch is a powerful function used to match distinct numeric values to numeric intervals. It is useful in analyzing how the events actually happened versus the planned events. The example of a scenario where it is used is in the assembly...
Python - Filter Strings within ASCII range - GeeksforGeeks
12 Nov, 2020 Given ASCII or alphabetical range, filter strings found in particular range. Input : test_list = [“gfg”, “is”, “best”, “for”, “geeks”], strt_asc, end_asc = 105, 115 Output : [‘is’] Explanation : i has 105, and s has 115, which is in range ASCII values.Input : test_list = [“gfg”, “is”, “best”, “for”, “geeks...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n12 Nov, 2020" }, { "code": null, "e": 24369, "s": 24292, "text": "Given ASCII or alphabetical range, filter strings found in particular range." }, { "code": null, "e": 24727, "s": 24369, "text": "Input : test_...
Python PostgreSQL - Where Clause
While performing SELECT, UPDATE or, DELETE operations, you can specify condition to filter the records using the WHERE clause. The operation will be performed on the records which satisfies the given condition. Following is the syntax of the WHERE clause in PostgreSQL − SELECT column1, column2, columnN FROM table_name ...
[ { "code": null, "e": 3416, "s": 3205, "text": "While performing SELECT, UPDATE or, DELETE operations, you can specify condition to filter the records using the WHERE clause. The operation will be performed on the records which satisfies the given condition." }, { "code": null, "e": 3476,...
ReactJS - Stateless Component
React component with internal state is called Stateful component and React component without any internal state management is called Stateless component. React recommends to create and use as many stateless component as possible and create stateful component only when it is absolutely necessary. Also, React does not sh...
[ { "code": null, "e": 2468, "s": 2033, "text": "React component with internal state is called Stateful component and React component without any internal state management is called Stateless component. React recommends to create and use as many stateless component as possible and create stateful comp...
How can I create an android service that dalvik will not kill?
Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroy. This example demonstrate about How can I create an android service that dalvik will not kill. Step 1 − Create a new project in Android S...
[ { "code": null, "e": 1246, "s": 1062, "text": "Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroy." }, { "code": null, "e": 1340, "s": 1246, "text":...
Operations on struct variables in C - GeeksforGeeks
16 Jan, 2019 In C, the only operation that can be applied to struct variables is assignment. Any other operation (e.g. equality check) is not allowed on struct variables.For example, program 1 works without any error and program 2 fails in compilation. Program 1 #include <stdio.h> struct Point { int x; int y;}; int...
[ { "code": null, "e": 24396, "s": 24368, "text": "\n16 Jan, 2019" }, { "code": null, "e": 24636, "s": 24396, "text": "In C, the only operation that can be applied to struct variables is assignment. Any other operation (e.g. equality check) is not allowed on struct variables.For ex...
Python – List Comprehension
13 May, 2022 Python is renowned for encouraging developers and programmers to write efficient, easy-to-understand, and almost as simple-to-read code. One of the most distinctive aspects of the language is the python list and the list compression feature, which one can use within a single line of code to construct power...
[ { "code": null, "e": 52, "s": 24, "text": "\n13 May, 2022" }, { "code": null, "e": 378, "s": 52, "text": "Python is renowned for encouraging developers and programmers to write efficient, easy-to-understand, and almost as simple-to-read code. One of the most distinctive aspects o...
Go - Strings
Strings, which are widely used in Go programming, are a readonly slice of bytes. In the Go programming language, strings are slices. The Go platform provides various libraries to manipulate strings. unicode regexp strings The most direct way to create a string is to write − var greeting = "Hello world!" Whenever it en...
[ { "code": null, "e": 2136, "s": 1937, "text": "Strings, which are widely used in Go programming, are a readonly slice of bytes. In the Go programming language, strings are slices. The Go platform provides various libraries to manipulate strings." }, { "code": null, "e": 2144, "s": 21...
What is the difference between HTML tags <div> and <span>?
Both <div> and <span> is used to define parts of a web page. The <span> element shows the inline portion of a document. The <div> elements show a block-level portion of a document. A div is a block-level element and a span is an inline element. The div should be used to wrap sections of a document, while use spans to w...
[ { "code": null, "e": 1243, "s": 1062, "text": "Both <div> and <span> is used to define parts of a web page. The <span> element shows the inline portion of a document. The <div> elements show a block-level portion of a document." }, { "code": null, "e": 1307, "s": 1243, "text": "A...
Generate Subtitles for any video file using Mozilla DeepSpeech | by Abhiroop Talasila | Towards Data Science
In the age of OTT platforms, there are still some who prefer to download movies/videos from YouTube/Facebook/Torrents (shush 🤫) over streaming. I am one of them and on one such occasion, I couldn’t find the subtitle file for a particular movie I had downloaded. Then, the idea for AutoSub struck me and since I had work...
[ { "code": null, "e": 578, "s": 172, "text": "In the age of OTT platforms, there are still some who prefer to download movies/videos from YouTube/Facebook/Torrents (shush 🤫) over streaming. I am one of them and on one such occasion, I couldn’t find the subtitle file for a particular movie I had down...
C/C++ Program to the Count Inversions in an array using Merge Sort?
The Count of inversions that take place to Sort the given array is known as inversion count. the inversion problem is a classical problem that can be solved using the merge sort Algorithm. in this problem v we will count all elements more than it to its left and add the count to output. ThisLogic is done inside merge f...
[ { "code": null, "e": 1405, "s": 1062, "text": "The Count of inversions that take place to Sort the given array is known as inversion count. the inversion problem is a classical problem that can be solved using the merge sort Algorithm. in this problem v we will count all elements more than it to its...
Print all permutations of a string in Java - GeeksforGeeks
07 Mar, 2022 Given a string str, the task is to print all the permutations of str. A permutation is an arrangement of all or part of a set of objects, with regard to the order of the arrangement. For instance, the words ‘bat’ and ‘tab’ represents two distinct permutation (or arrangements) of a similar three letter word...
[ { "code": null, "e": 24507, "s": 24479, "text": "\n07 Mar, 2022" }, { "code": null, "e": 24827, "s": 24507, "text": "Given a string str, the task is to print all the permutations of str. A permutation is an arrangement of all or part of a set of objects, with regard to the order ...
Block Lambda Expressions in Java - GeeksforGeeks
17 Jun, 2021 Lambda expression is an unnamed method that is not executed on its own. These expressions cause anonymous class. These lambda expressions are called closures. Lambda’s body consists of a block of code. If it has only a single expression they are called “Expression Bodies“. Lambdas which contain expressio...
[ { "code": null, "e": 23868, "s": 23840, "text": "\n17 Jun, 2021" }, { "code": null, "e": 24279, "s": 23868, "text": "Lambda expression is an unnamed method that is not executed on its own. These expressions cause anonymous class. These lambda expressions are called closures. Lam...
Swing Examples - Show Warning message Dialog
Following example showcase how to show a warning message alert in swing based application. We are using the following APIs. JOptionPane − To create a standard dialog box. JOptionPane − To create a standard dialog box. JOptionPane.showMessageDialog() − To show the message alert. JOptionPane.showMessageDialog() − To show...
[ { "code": null, "e": 2130, "s": 2039, "text": "Following example showcase how to show a warning message alert in swing based application." }, { "code": null, "e": 2163, "s": 2130, "text": "We are using the following APIs." }, { "code": null, "e": 2210, "s": 2163, ...
Catching that flight: Visualizing social network with Networkx and Basemap | by Tuan Nguyen Doan | Towards Data Science
“If you graph these numbers, patterns emerge. There are patterns everywhere in nature.” Max Cohen (played by Sean Gullette, in Pi, a film by Darren Aronofsky) Today, I will introduce very powerful tools to visualize network — Networkx and Basemap. Many interesting problems naturally arrive from or inspire some form of ...
[ { "code": null, "e": 260, "s": 172, "text": "“If you graph these numbers, patterns emerge. There are patterns everywhere in nature.”" }, { "code": null, "e": 331, "s": 260, "text": "Max Cohen (played by Sean Gullette, in Pi, a film by Darren Aronofsky)" }, { "code": null,...
State the difference between structure and union with suitable example in C language
The differences between structures and unions in C language are explained below − struct tagname{ datatype member1; datatype member2; ---- ---- ---- }; union tagname{ datatype member1; datatype member2; ---- ---- ---- }; struct sample{ int a; float b; char c; }; union sample{ i...
[ { "code": null, "e": 1144, "s": 1062, "text": "The differences between structures and unions in C language are explained below −" }, { "code": null, "e": 1229, "s": 1144, "text": "struct tagname{\n datatype member1;\n datatype member2;\n ----\n ----\n ----\n};" }, {...
Longest Increasing Subsequence
Longest Increasing Subsequence is a subsequence where one item is greater than its previous item. Here we will try to find Longest Increasing Subsequence length, from a set of integers. Input: A set of integers. {0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15} Output: The length of longest increasing subsequence....
[ { "code": null, "e": 1248, "s": 1062, "text": "Longest Increasing Subsequence is a subsequence where one item is greater than its previous item. Here we will try to find Longest Increasing Subsequence length, from a set of integers." }, { "code": null, "e": 1436, "s": 1248, "text...
How to get the creation date of a MySQL table?
To get the creation date of a MySQL table, use create_time from information_schema.tables. The syntax is as follows − SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'yourDatabaseName' AND table_name = 'yourTableName'; My table name is 'skiplasttenrecords' and database is ‘test’. Implement the ab...
[ { "code": null, "e": 1180, "s": 1062, "text": "To get the creation date of a MySQL table, use create_time from information_schema.tables. The syntax is as follows −" }, { "code": null, "e": 1304, "s": 1180, "text": "SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_sc...
Difference between Procedural and Declarative Knowledge
Procedural or imperative knowledge clarifies how to perform a certain task. It lays down the steps to perform. For example, - how to copy an array using javascript in a procedural way. var a=[1, 2, 3, 4, 5]; var b=[]; for(var i=0;i < a.length;i++) { b.push(a[i]); } console.log(b); [1, 2, 3, 4, 5] Declarative or func...
[ { "code": null, "e": 1247, "s": 1062, "text": "Procedural or imperative knowledge clarifies how to perform a certain task. It lays down the steps to perform. For example, - how to copy an array using javascript in a procedural way." }, { "code": null, "e": 1347, "s": 1247, "text"...
SettingWithCopyWarning in pandas. What it is, why it crops up, and how to... | by Tan Nian Wei | Towards Data Science
(tl;dr: jump straight to Getting rid of SettingWithCopyWarnings if you’re here for answers) If you are a pandas user, chances are you’ve seen the SettingWithCopyWarning crop up when you’re assigning values to a pd.DataFrame or pd.Series. In [1]: import pandas as pd ...: ...: df = pd.DataFrame({ ...: “A”...
[ { "code": null, "e": 257, "s": 165, "text": "(tl;dr: jump straight to Getting rid of SettingWithCopyWarnings if you’re here for answers)" }, { "code": null, "e": 403, "s": 257, "text": "If you are a pandas user, chances are you’ve seen the SettingWithCopyWarning crop up when you’...
How to update the date format in MySQL?
Let us first create a table − mysql> create table DemoTable630 (ArrivalDate varchar(100)); Query OK, 0 rows affected (0.55 sec) Insert some records in the table using insert command − mysql> insert into DemoTable630 values('2015-21-01'); Query OK, 1 row affected (0.09 sec) mysql> insert into DemoTable630 values('2018-2...
[ { "code": null, "e": 1092, "s": 1062, "text": "Let us first create a table −" }, { "code": null, "e": 1190, "s": 1092, "text": "mysql> create table DemoTable630 (ArrivalDate varchar(100));\nQuery OK, 0 rows affected (0.55 sec)" }, { "code": null, "e": 1246, "s": 1...
Count triplets with sum smaller than a given value - GeeksforGeeks
14 Jun, 2021 Given an array of distinct integers and a sum value. Find count of triplets with sum smaller than given sum value. The expected Time Complexity is O(n2).Examples: Input : arr[] = {-2, 0, 1, 3} sum = 2. Output : 2 Explanation : Below are triplets with sum less than 2 (-2, 0, 1) and...
[ { "code": null, "e": 25049, "s": 25021, "text": "\n14 Jun, 2021" }, { "code": null, "e": 25214, "s": 25049, "text": "Given an array of distinct integers and a sum value. Find count of triplets with sum smaller than given sum value. The expected Time Complexity is O(n2).Examples: ...
Calculate the average value in a MongoDB document grouping by null?
You can use $group operator with _id: null. Following is the syntax − db.yourCollectionName.aggregate([{$group: {_id:null, "anyFieldName": {$avg:"$yourFieldName"} } }]); Let us first create a collection with documents − > db.caculateTheAverageValueDemo.insertOne({"Population":100}); { "acknowledged" : true, "inse...
[ { "code": null, "e": 1132, "s": 1062, "text": "You can use $group operator with _id: null. Following is the syntax −" }, { "code": null, "e": 1232, "s": 1132, "text": "db.yourCollectionName.aggregate([{$group: {_id:null, \"anyFieldName\": {$avg:\"$yourFieldName\"} } }]);" }, ...
What is a final method in Java?
The final modifier for finalizing the implementations of classes, methods, and variables. We can declare a method as final, once you declare a method final it cannot be overridden. So, you cannot modify a final method from a sub class. The main intention of making a method final would be that the content of the method ...
[ { "code": null, "e": 1152, "s": 1062, "text": "The final modifier for finalizing the implementations of classes, methods, and variables." }, { "code": null, "e": 1298, "s": 1152, "text": "We can declare a method as final, once you declare a method final it cannot be overridden. S...
Python - RemoveAccents Module - GeeksforGeeks
16 Jul, 2020 removeaccents module is that library of python which helps you to remove all the accents from a given string. The most common accents are the acute (é), grave (è), circumflex (â, î or ô), umlaut and dieresis (ü or ï ). Accent marks usually appear above a character.It can be widely used in Natural la...
[ { "code": null, "e": 23901, "s": 23873, "text": "\n16 Jul, 2020" }, { "code": null, "e": 24300, "s": 23901, "text": "removeaccents module is that library of python which helps you to remove all the accents from a given string. The most common accents are the acute (é), grave (è...
Paginated Report visual in Power BI — everything you need to know! | by Nikola Ilic | Towards Data Science
One of the most anticipated Power BI features is finally there! No, it’s not new fancy Small multiples improvements, or another fresh AI thing...It’s not even DirectQuery support for Dataflows, neither dataset discoverability (which are both, by the way, very cool additions). Guess what — Paginated Report visual has ju...
[ { "code": null, "e": 599, "s": 171, "text": "One of the most anticipated Power BI features is finally there! No, it’s not new fancy Small multiples improvements, or another fresh AI thing...It’s not even DirectQuery support for Dataflows, neither dataset discoverability (which are both, by the way, ...
Balancing and Augmenting Structured Data | by Bruce H. Cottman, Ph.D. | Towards Data Science
When data augmentation is discussed, it is almost always about increasing the image data set by rotation, flipping, or in some way, changing the existing images to create more images. You may even come across methods for augmented unstructured data, such as words in documents. Structured Data Augmentation is rarely dis...
[ { "code": null, "e": 450, "s": 172, "text": "When data augmentation is discussed, it is almost always about increasing the image data set by rotation, flipping, or in some way, changing the existing images to create more images. You may even come across methods for augmented unstructured data, such ...
Comprehensive LightGBM Tutorial (2021) | Towards Data Science
Learn how to crush XGBoost in this comprehensive LightGBM tutorial. I am confused. So many people are drawn to XGBoost like a moth to a flame. Yes, it has seen some glorious days in prestigious competitions, and it’s still the most widely-used ML library. But, it has been 4 years since XGBoost lost its top spot in term...
[ { "code": null, "e": 239, "s": 171, "text": "Learn how to crush XGBoost in this comprehensive LightGBM tutorial." }, { "code": null, "e": 254, "s": 239, "text": "I am confused." }, { "code": null, "e": 427, "s": 254, "text": "So many people are drawn to XGBoos...
Machine Learning Prediction in Real Time Using Docker and Python REST APIs with Flask | by Xavier Vasques | Towards Data Science
A quick example of a Docker container and REST APIs to perform online inference The idea of this article is to do a quick and easy build of a Docker container to perform online inference with trained machine learning models using Python APIs with Flask. Before reading this article, do not hesitate to read Why use Docke...
[ { "code": null, "e": 251, "s": 171, "text": "A quick example of a Docker container and REST APIs to perform online inference" }, { "code": null, "e": 706, "s": 251, "text": "The idea of this article is to do a quick and easy build of a Docker container to perform online inference...
Erlang - write
This method is used to write the contents to a file. write(FileHandler,text) FileHandler − This is the handle to a file. This handle is the one that would be returned when the file:openoperation is used. FileHandler − This is the handle to a file. This handle is the one that would be returned when the file:openoperati...
[ { "code": null, "e": 2354, "s": 2301, "text": "This method is used to write the contents to a file." }, { "code": null, "e": 2379, "s": 2354, "text": "write(FileHandler,text)\n" }, { "code": null, "e": 2506, "s": 2379, "text": "FileHandler − This is the handle...
How to set the font size of a Tkinter Canvas text item?
Canvas is one of the flexible widgets in tkinter which controls the widgets with its power of functions, methods, and attributes. However, tkinter canvas can be used to create text using the create_text(options) constructor. We can define the text along with other properties in the constructor. After defining the text,...
[ { "code": null, "e": 1489, "s": 1062, "text": "Canvas is one of the flexible widgets in tkinter which controls the widgets with its power of functions, methods, and attributes. However, tkinter canvas can be used to create text using the create_text(options) constructor. We can define the text along...
Publish Python Project Documentation on Confluence/HTML using Sphinx | by Shravankumar Hiregoudar | Towards Data Science
The code documentation is essential in every project. Code documentation can be split into multiple parts. The first one is comment blocks, most helpful for programmers; These will be found through every file explaining classes, methods, parameters, possible errors. Then comes the file documentations. These are usually...
[ { "code": null, "e": 783, "s": 172, "text": "The code documentation is essential in every project. Code documentation can be split into multiple parts. The first one is comment blocks, most helpful for programmers; These will be found through every file explaining classes, methods, parameters, possi...
How to operate callback-based fs.readFile() method with promises in Node.js ?
18 Jul, 2020 The fs.readFile() method is defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of the user’s computer. The readFile() method is used to asynchronously read the entire contents of a file and returns the buffer form of the data. The fs.readFile() ...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Jul, 2020" }, { "code": null, "e": 317, "s": 28, "text": "The fs.readFile() method is defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of the user’s computer. The readFi...
Sums of ASCII values of each word in a sentence
22 Jun, 2022 We are given a sentence of English language(can also contain digits), we need to compute and print the sum of ASCII values of characters of each word in that sentence.Examples: Input : GeeksforGeeks, a computer science portal for geeks Output : Sentence representation as sum of ASCII each character in a...
[ { "code": null, "e": 28, "s": 0, "text": "\n22 Jun, 2022" }, { "code": null, "e": 207, "s": 28, "text": "We are given a sentence of English language(can also contain digits), we need to compute and print the sum of ASCII values of characters of each word in that sentence.Examples...
Types of Three-address codes
10 Sep, 2021 Three-address code is a sequence of statements of the general form A := B op C, where A, B, C are either programmer defined names, constants or compiler-generated temporary names; op stands for an operation which is applied on A, B.In simple words, a code having at most three addresses in a line is called ...
[ { "code": null, "e": 52, "s": 24, "text": "\n10 Sep, 2021" }, { "code": null, "e": 381, "s": 52, "text": "Three-address code is a sequence of statements of the general form A := B op C, where A, B, C are either programmer defined names, constants or compiler-generated temporary n...
Python – Length of shortest string in string list
17 Dec, 2019 Sometimes, while working with a lot of data, we can have a problem in which we need to extract the minimum length string of all the strings in list. This kind of problem can have application in many domains. Let’s discuss certain ways in which this task can be performed. Method #1 : Using min() + generator...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Dec, 2019" }, { "code": null, "e": 300, "s": 28, "text": "Sometimes, while working with a lot of data, we can have a problem in which we need to extract the minimum length string of all the strings in list. This kind of problem can h...
Python | Working with Pandas and XlsxWriter | Set – 1
26 Dec, 2018 Python Pandas is a data analysis library. It can read, filter and re-arrange small and large datasets and output them in a range of formats including Excel. Pandas writes Excel files using the XlsxWriter modules. XlsxWriter is a Python module for writing files in the XLSX file format. It can be used to wri...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Dec, 2018" }, { "code": null, "e": 211, "s": 54, "text": "Python Pandas is a data analysis library. It can read, filter and re-arrange small and large datasets and output them in a range of formats including Excel." }, { "co...
Check if a given number is a Perfect square using Binary Search
09 Apr, 2021 Check if a given number N is a perfect square or not. If yes then return the number of which it is a perfect square, Else print -1. Examples: Input: N = 4900 Output 70 Explanation: 4900 is a perfect square number of 70 because 70 * 70 = 4900 Input: N = 81 Output: 9 Explanation: 81 is a perfect square numb...
[ { "code": null, "e": 52, "s": 24, "text": "\n09 Apr, 2021" }, { "code": null, "e": 184, "s": 52, "text": "Check if a given number N is a perfect square or not. If yes then return the number of which it is a perfect square, Else print -1." }, { "code": null, "e": 195, ...
Results of comparison operations in C and C++
28 May, 2017 In C, data type of result of comparison operations is int. For example, see the following program. #include<stdio.h>int main(){ int x = 10, y = 10; printf("%d \n", sizeof(x == y)); printf("%d \n", sizeof(x < y)); return 0;} Output: 4 4 Whereas in C++, type of results of comparison operations is...
[ { "code": null, "e": 54, "s": 26, "text": "\n28 May, 2017" }, { "code": null, "e": 153, "s": 54, "text": "In C, data type of result of comparison operations is int. For example, see the following program." }, { "code": "#include<stdio.h>int main(){ int x = 10, y = 10; ...
Python Program to replace list elements within a range with a given number
24 Jan, 2021 Given a range, the task here is to write a python program that can update the list elements falling under a given index range with a specified number. Input : test_list = [4, 6, 8, 1, 2, 9, 0, 10, 12, 3, 9, 1], i, j = 4, 8, K = 9 Output : [4, 6, 8, 1, 9, 9, 9, 9, 12, 3, 9, 1] Explanation : List is updated...
[ { "code": null, "e": 28, "s": 0, "text": "\n24 Jan, 2021" }, { "code": null, "e": 180, "s": 28, "text": "Given a range, the task here is to write a python program that can update the list elements falling under a given index range with a specified number." }, { "code": n...
Python | shutil.move() method
20 Jun, 2019 Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module helps in automating the process of copying and removal of files and directories.shutil.move() method Recursively moves a file or director...
[ { "code": null, "e": 53, "s": 25, "text": "\n20 Jun, 2019" }, { "code": null, "e": 639, "s": 53, "text": "Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module help...
Python end parameter in print()
24 Jun, 2022 By default python’s print() function ends with a newline. A programmer with C/C++ background may wonder how to print without newline. Python’s print() function comes with a parameter called ‘end’. By default, the value of this parameter is ‘\n’, i.e. the new line character. You can end a print statement wi...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Jun, 2022" }, { "code": null, "e": 407, "s": 53, "text": "By default python’s print() function ends with a newline. A programmer with C/C++ background may wonder how to print without newline. Python’s print() function comes with a p...
How can we write a multiline lambda expression in Java?
Lambda expression is an anonymous method that has used to provide an implementation of a method defined by a functional interface. In Java 8, it is also possible for the body of a lambda expression to be a complex expression or statement, which means a lambda expression consisting of more than one line. In that case, t...
[ { "code": null, "e": 1620, "s": 1187, "text": "Lambda expression is an anonymous method that has used to provide an implementation of a method defined by a functional interface. In Java 8, it is also possible for the body of a lambda expression to be a complex expression or statement, which means a ...
HTTP - Parameters
This chapter is going to list down few of the important HTTP Protocol Parameters and their syntax the way they are used in the communication. For example, format for date, format of URL, etc. This will help you in constructing your request and response messages while writing HTTP client or server programs. You will see...
[ { "code": null, "e": 2366, "s": 1913, "text": "This chapter is going to list down few of the important HTTP Protocol Parameters and their syntax the way they are used in the communication. For example, format for date, format of URL, etc. This will help you in constructing your request and response ...
Python program to mask a list using values from another list
05 Apr, 2021 Given two lists, the task is to write a python program that marks 1 for elements present in the other list else mark 0. Input : test_list = [5, 2, 1, 9, 8, 0, 4], search_list = [1, 10, 8, 3, 9] Output : [0, 0, 1, 1, 1, 0, 0] Explanation : 1, 9, 8 are present in test_list at position 2, 3, 4 and are masked ...
[ { "code": null, "e": 28, "s": 0, "text": "\n05 Apr, 2021" }, { "code": null, "e": 148, "s": 28, "text": "Given two lists, the task is to write a python program that marks 1 for elements present in the other list else mark 0." }, { "code": null, "e": 222, "s": 148,...
Josh Technology Group Interview Experience for SD (On-Campus)
15 Oct, 2020 Online Selection Test: This comprised of two phases. Both of which were on the same day. Phase 1 (Online Objective round): Set of 50 simple MCQs on C++, aptitude, and logical. Only those who cleared the objective round were allowed to sit for the subjective round. Phase 2 (Online Subjective round): In thi...
[ { "code": null, "e": 54, "s": 26, "text": "\n15 Oct, 2020" }, { "code": null, "e": 144, "s": 54, "text": "Online Selection Test: This comprised of two phases. Both of which were on the same day. " }, { "code": null, "e": 320, "s": 144, "text": "Phase 1 (Online...
JavaScript | Generator.prototype.next() Method
16 Apr, 2020 The Generator.prototype.next() method is an inbuilt method in JavaScript which is used to return an object with two properties done and value. Syntax: gen.next( value ); Parameters: This function accepts single parameter as mentioned above and described below: value: This parameter holds the value to be se...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Apr, 2020" }, { "code": null, "e": 171, "s": 28, "text": "The Generator.prototype.next() method is an inbuilt method in JavaScript which is used to return an object with two properties done and value." }, { "code": null, ...
Converting HTML to Text with BeautifulSoup
16 Apr, 2021 Many times while working with web automation we need to convert HTML code into Text. This can be done using the BeautifulSoup. This module provides get_text() function that takes HTML as input and returns text as output. Example 1: Python3 # importing the libraryfrom bs4 import BeautifulSoup # Initializing...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Apr, 2021" }, { "code": null, "e": 249, "s": 28, "text": "Many times while working with web automation we need to convert HTML code into Text. This can be done using the BeautifulSoup. This module provides get_text() function that ta...
How to put the caption below the table using CSS ?
25 Mar, 2021 To put the caption below the table we can use the CSS caption-side property. This property is used to specify the position where the table caption is placed. It is used in HTML Tables. This property can be used with any element whose display property set to caption-side. There are several parameters for t...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Mar, 2021" }, { "code": null, "e": 214, "s": 28, "text": "To put the caption below the table we can use the CSS caption-side property. This property is used to specify the position where the table caption is placed. It is used in HTM...
How to remove the axis tick marks on a Seaborn heatmap?
To remove the axis tick marks on a Seaborn heatmap, we can take the following steps Set the figure size and adjust the padding between and around the subplots. Set the figure size and adjust the padding between and around the subplots. Create random data points with 4×4 dimension. Create random data points with 4×4 dim...
[ { "code": null, "e": 1271, "s": 1187, "text": "To remove the axis tick marks on a Seaborn heatmap, we can take the following steps" }, { "code": null, "e": 1347, "s": 1271, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": ...
C Program to print environment variables
20 May, 2017 The C standard says following about main function in C. The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters: int main(void) { /* ... */ } or with two parameters (refer...
[ { "code": null, "e": 52, "s": 24, "text": "\n20 May, 2017" }, { "code": null, "e": 108, "s": 52, "text": "The C standard says following about main function in C." }, { "code": null, "e": 603, "s": 108, "text": "The function called at program startup is named m...
Create Toolbar in KivyMD
17 Jun, 2021 In this article, we will see how to add the toolbar in mobile applications using KivyMD in Python. KivyMD provide two type of toolbar – Top Toolbar Bottom Toolbar Let’s see how to create each type of toolbar and how to add certain attributes like title, left menu, right menu, etc. Some commonly used attrib...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Jun, 2021" }, { "code": null, "e": 164, "s": 28, "text": "In this article, we will see how to add the toolbar in mobile applications using KivyMD in Python. KivyMD provide two type of toolbar –" }, { "code": null, "e": 17...
How to use rainbow colors in linux terminal
This article is for those who believe that Linux command line is boring and there is not much fun. To create an interesting colorful setting lolcat utility can be used, which produces rainbow colors in Linux terminal. Lolcat utility works for Linux, BSD and OSX which concatenates like similar to cat command. Lolcat uti...
[ { "code": null, "e": 1372, "s": 1062, "text": "This article is for those who believe that Linux command line is boring and there is not much fun. To create an interesting colorful setting lolcat\nutility can be used, which produces rainbow colors in Linux terminal. Lolcat utility works for Linux, BS...
Find maximum pairwise sum in Linked List that are equidistant from front and back - GeeksforGeeks
17 Feb, 2022 Given a linked list lis of length N, where N is even. The task is to maximize the sum of two equidistant nodes from the front and back ends of the given linked list. Note: Two nodes (i and j) are equidistant from both ends if the distance of ith node from front is same as distance of jth node from back. Ex...
[ { "code": null, "e": 26248, "s": 26220, "text": "\n17 Feb, 2022" }, { "code": null, "e": 26414, "s": 26248, "text": "Given a linked list lis of length N, where N is even. The task is to maximize the sum of two equidistant nodes from the front and back ends of the given linked lis...
DB2 - Bufferpools
This chapter introduces you to Bufferpools in the database. The bufferpool is portion of a main memory space which is allocated by the database manager. The purpose of bufferpools is to cache table and index data from disk. All databases have their own bufferpools. A default bufferpool is created at the time of creatio...
[ { "code": null, "e": 1988, "s": 1928, "text": "This chapter introduces you to Bufferpools in the database." }, { "code": null, "e": 2805, "s": 1988, "text": "The bufferpool is portion of a main memory space which is allocated by the database manager. The purpose of bufferpools is...
Clojure - Case Statement
Clojure offers the ‘case’ statement which is similar to the ‘switch’ statement available in the Java programming language. Following is the general form of the case statement. case expression value1 statement #1 value2 statement #2 valueN statement #N statement #Default The general working of this statement is as foll...
[ { "code": null, "e": 2550, "s": 2374, "text": "Clojure offers the ‘case’ statement which is similar to the ‘switch’ statement available in the Java programming language. Following is the general form of the case statement." }, { "code": null, "e": 2646, "s": 2550, "text": "case e...
How to read JSON file in Python
JSON stands for JavaScript Object Notation. It is commonly used for transmitting data in web applications( such as sending data from server to client to display on the web pages). Example 1: { "fruit": "Apple", "size": "Large", "color": "Red" } Example 2: { 'name': 'Karan', 'languages': ['English', 'Fren...
[ { "code": null, "e": 1242, "s": 1062, "text": "JSON stands for JavaScript Object Notation. It is commonly used for transmitting data in web applications( such as sending data from server to client to display on the web pages)." }, { "code": null, "e": 1316, "s": 1242, "text": "Ex...
How to pass an object as a parameter in JavaScript function?
To pass an object as a parameter in JavaScript, use this and prototype. You can try to run the following code to learn how to pass an object − <html> <head> <script> var func = function(param1) { this.param1 = param1; }; func.prototype.display = function() { r...
[ { "code": null, "e": 1205, "s": 1062, "text": "To pass an object as a parameter in JavaScript, use this and prototype. You can try to run the following code to learn how to pass an object −" }, { "code": null, "e": 1602, "s": 1205, "text": "<html>\n <head>\n <script>\n ...
LMNs- Algorithms - GeeksforGeeks
28 Jun, 2021 Analyze an algorithm 1) Worst Case Analysis (Usually Done):In the worst case analysis, we calculate upper bound on running time of an algorithm by considering worst case (a situation where algorithm takes maximum time)2) Average Case Analysis (Sometimes done) :In average case analysis, we take all possibl...
[ { "code": null, "e": 29577, "s": 29549, "text": "\n28 Jun, 2021" }, { "code": null, "e": 29598, "s": 29577, "text": "Analyze an algorithm" }, { "code": null, "e": 30060, "s": 29598, "text": "1) Worst Case Analysis (Usually Done):In the worst case analysis, we ...
How to run Java RMI Application
02 Nov, 2018 Prerequisite: RMI RMI (Remote Method Invocation) is used for distributed object references system. A distributed object is an object which publishes its interface on other machines. A Remote Object is a distributed object whose state is encapsulated. Stub and Skeleton are two objects used to communicate wi...
[ { "code": null, "e": 52, "s": 24, "text": "\n02 Nov, 2018" }, { "code": null, "e": 70, "s": 52, "text": "Prerequisite: RMI" }, { "code": null, "e": 381, "s": 70, "text": "RMI (Remote Method Invocation) is used for distributed object references system. A distri...
How to create an outline button in Bootstrap 4 ?
12 Dec, 2021 Before performing with outline classes of bootstrap just know about a little bit of button outline. An outline on buttons means to give an outline around the buttons. This ‘.btn-outline’ class removes all background colors or styles from the button for giving the Effective, lighter, and highlighter look to...
[ { "code": null, "e": 52, "s": 24, "text": "\n12 Dec, 2021" }, { "code": null, "e": 475, "s": 52, "text": "Before performing with outline classes of bootstrap just know about a little bit of button outline. An outline on buttons means to give an outline around the buttons. This ‘....
Stack and Queue in C#
Stack class represents a last-in, first out collection of object. It is used when you need a last-in, first-out access of items. The following is the property of Stack class − Count− Gets the number of elements in the stack. Count− Gets the number of elements in the stack. The following are the methods of Stack class −...
[ { "code": null, "e": 1191, "s": 1062, "text": "Stack class represents a last-in, first out collection of object. It is used when you need a last-in, first-out access of items." }, { "code": null, "e": 1238, "s": 1191, "text": "The following is the property of Stack class −" }, ...
How to Link Multiple Container in Docker ? - GeeksforGeeks
17 Jan, 2021 Docker is a free software created by Docker Inc. and it enables clients to create free and confined environments where the users can deploy their applications. A container is a standard unit of software that packages up code and all its dependencies from one computing environment and runs it quickly and r...
[ { "code": null, "e": 24561, "s": 24533, "text": "\n17 Jan, 2021" }, { "code": null, "e": 24722, "s": 24561, "text": "Docker is a free software created by Docker Inc. and it enables clients to create free and confined environments where the users can deploy their applications. " ...
Android | AdMob Interstitial Ads for Android Studio - GeeksforGeeks
05 Nov, 2019 Interstitial ads are full-screen ads that cover the whole UI of the app. This article shows you how to integrate Interstitial ads from AdMob into an Android app. Example – First Create a new Project in Android Studio and add the following codes to import the google Mobile Ads SDK. In the project-level buil...
[ { "code": null, "e": 24177, "s": 24149, "text": "\n05 Nov, 2019" }, { "code": null, "e": 24339, "s": 24177, "text": "Interstitial ads are full-screen ads that cover the whole UI of the app. This article shows you how to integrate Interstitial ads from AdMob into an Android app." ...
Advanced Excel Financial - XIRR Function
The XIRR function returns the internal rate of return for a schedule of cash flows that is not necessarily periodic. To calculate the internal rate of return for a series of periodic cash flows, use the IRR function. XIRR (values, dates, [guess]) A series of cash flows that corresponds to a schedule of payments in dat...
[ { "code": null, "e": 2071, "s": 1854, "text": "The XIRR function returns the internal rate of return for a schedule of cash flows that is not necessarily periodic. To calculate the internal rate of return for a series of periodic cash flows, use the IRR function." }, { "code": null, "e":...
Tryit Editor v3.7
Tryit: The transition property
[]
Objective-C Structures
Objective-C arrays allow you to define type of variables that can hold several data items of the same kind but structure is another user-defined data type available in Objective-C programming which allows you to combine data items of different kinds. Structures are used to represent a record, Suppose you want to keep t...
[ { "code": null, "e": 2811, "s": 2560, "text": "Objective-C arrays allow you to define type of variables that can hold several data items of the same kind but structure is another user-defined data type available in Objective-C programming which allows you to combine data items of different kinds." ...
All About Python List Comprehension | by Baijayanta Roy | Towards Data Science
Python is a language of expressiveness in concise code, which is very elegant and easy to comprehend. List Comprehension provides a concise way to create lists. List Comprehension is the proper “pythonic” way of building an accessible, concise, and fast way to build lists. It allows one to perform complex operations on...
[ { "code": null, "e": 520, "s": 172, "text": "Python is a language of expressiveness in concise code, which is very elegant and easy to comprehend. List Comprehension provides a concise way to create lists. List Comprehension is the proper “pythonic” way of building an accessible, concise, and fast w...
How to Web Scrape with Python in 4 Minutes | by Julia Kho | Towards Data Science
Web scraping is a technique to automatically access and extract large amounts of information from a website, which can save a huge amount of time and effort. In this article, we will go through an easy example of how to automate downloading hundreds of files from the New York MTA. This is a great exercise for web scrap...
[ { "code": null, "e": 675, "s": 172, "text": "Web scraping is a technique to automatically access and extract large amounts of information from a website, which can save a huge amount of time and effort. In this article, we will go through an easy example of how to automate downloading hundreds of fi...
Sort list of dictionaries by values in C#
Firstly, let us create a dictionary − var d = new Dictionary<string, int>(5); Now add the key and value − // add key and value d.Add("car", 25); d.Add("bus", 28); d.Add("motorbike", 17); Use orderby to order by values − var val = from ele in d orderby ele.Value ascending select ele; We have set ascending above to sort ...
[ { "code": null, "e": 1100, "s": 1062, "text": "Firstly, let us create a dictionary −" }, { "code": null, "e": 1140, "s": 1100, "text": "var d = new Dictionary<string, int>(5);" }, { "code": null, "e": 1168, "s": 1140, "text": "Now add the key and value −" },...
Delete one row and reorder the others with the correct ID in MySQL?
To understand the concept, let us first create a table. The query to create a table is as follows mysql> create table ReorderSortDemo -> ( -> UserId int -> ); Query OK, 0 rows affected (0.57 sec) Insert some records in the table using insert command. The query is as follows − mysql> insert into ReorderSortDemo...
[ { "code": null, "e": 1160, "s": 1062, "text": "To understand the concept, let us first create a table. The query to create a table is as follows" }, { "code": null, "e": 1267, "s": 1160, "text": "mysql> create table ReorderSortDemo\n -> (\n -> UserId int\n -> );\nQuery OK, ...
Preorder Traversal | Practice | GeeksforGeeks
Given a binary tree, find its preorder traversal. Example 1: Input: 1 / 4 / \ 4 2 Output: 1 4 4 2 Example 2: Input: 6 / \ 3 2 \ / 1 2 Output: 6 3 1 2 2 Your Task: You just have to complete the function preorder() which takes th...
[ { "code": null, "e": 328, "s": 278, "text": "Given a binary tree, find its preorder traversal." }, { "code": null, "e": 339, "s": 328, "text": "Example 1:" }, { "code": null, "e": 430, "s": 339, "text": "Input:\n 1 \n / \n 4 \n ...
How to check if a string is alphanumeric in Python?
Python String class has a method called isalnum() which can be called on a string and tells us if the string consists only of alphanumerics or not. You can call it in the following way: >>> '123abc'.isalnum() True >>> '123#$%abc'.isalnum() False You can also use regexes for the same result. For matching alpha numerics,...
[ { "code": null, "e": 1248, "s": 1062, "text": "Python String class has a method called isalnum() which can be called on a string and tells us if the string consists only of alphanumerics or not. You can call it in the following way:" }, { "code": null, "e": 1308, "s": 1248, "text...
Enhance Your Plotly Express Scatter Plot With Marginal Plots | by Andy McDonald | Towards Data Science
Scatter plots are a commonly used data visualisation tool within data science. They allow us to plot two numerical variables, as points, on a two dimensional graph. From these plots, we can understand if there is a relationship between the two variables, and what the strength of that relationship is. Within this short ...
[ { "code": null, "e": 474, "s": 172, "text": "Scatter plots are a commonly used data visualisation tool within data science. They allow us to plot two numerical variables, as points, on a two dimensional graph. From these plots, we can understand if there is a relationship between the two variables, ...
How to Serve Static Content using Node.js ? - GeeksforGeeks
27 Apr, 2020 Accessing static files are very useful when you want to put your static content accessible to the server for usage. To serve static files such as images, CSS files, and JavaScript files, etc we use the built-in middleware in node.js i.e. express.static. Setting up static middleware: You need to create a fo...
[ { "code": null, "e": 25255, "s": 25227, "text": "\n27 Apr, 2020" }, { "code": null, "e": 25509, "s": 25255, "text": "Accessing static files are very useful when you want to put your static content accessible to the server for usage. To serve static files such as images, CSS files...
PyTorch – How to resize an image to a given size?
The Resize() transform resizes the input image to a given size. It's one of the transforms provided by the torchvision.transforms module. Resize() accepts both PIL and tensor images. A tensor image is a torch tensor with shape [C, H, W], where C is the number of channels, H is the image height, and W is the image width...
[ { "code": null, "e": 1384, "s": 1062, "text": "The Resize() transform resizes the input image to a given size. It's one of the transforms provided by the torchvision.transforms module. Resize() accepts both PIL and tensor images. A tensor image is a torch tensor with shape [C, H, W], where C is the ...
C++ Variables
Variables are containers for storing data values. In C++, there are different types of variables (defined with different keywords), for example: int - stores integers (whole numbers), without decimals, such as 123 or -123 double - stores floating point numbers, with decimals, such as 19.99 or -19.99 char - stores sing...
[ { "code": null, "e": 51, "s": 0, "text": "Variables are containers for storing data values. " }, { "code": null, "e": 146, "s": 51, "text": "In C++, there are different types of variables (defined with different keywords), for example:" }, { "code": null, "e": 223, ...
Unsupervised Learning For Anomaly Detection | by Vardaan Bajaj | Towards Data Science
In this post, we’ll be going through: The Need for Anomaly DetectionBaseline Algorithm for Anomaly Detection with underlying MathematicsEvaluating an Anomaly Detection AlgorithmExtending Baseline Algorithm for a Multivariate Gaussian Distribution and the use of Mahalanobis DistanceDetection of Fraudulent Transactions o...
[ { "code": null, "e": 209, "s": 171, "text": "In this post, we’ll be going through:" }, { "code": null, "e": 535, "s": 209, "text": "The Need for Anomaly DetectionBaseline Algorithm for Anomaly Detection with underlying MathematicsEvaluating an Anomaly Detection AlgorithmExtending...
Java Program to format date with System.out.format
System.out.format is used in Java to format output. Firstly, create a Calendar object − Calendar calendar = Calendar.getInstance(); Now, use theDate-Time conversion characters to get the date, month and year − System.out.format("%te %tB, %tY%n", calendar, calendar, calendar); The following is the complete example − Li...
[ { "code": null, "e": 1114, "s": 1062, "text": "System.out.format is used in Java to format output." }, { "code": null, "e": 1150, "s": 1114, "text": "Firstly, create a Calendar object −" }, { "code": null, "e": 1194, "s": 1150, "text": "Calendar calendar = Cal...
Checking HTTP Status Code in Selenium.
We can check HTTP status code in Selenium. As we run tests, we can verify the status code of a response from a resource. Some of the various HTTP status codes are − 5XX – Error in server. 5XX – Error in server. 4XX – Resource not detected. 4XX – Resource not detected. 3XX - Redirected. 3XX - Redirected. 2XX – Ok. 2XX –...
[ { "code": null, "e": 1227, "s": 1062, "text": "We can check HTTP status code in Selenium. As we run tests, we can verify the status code of a response from a resource. Some of the various HTTP status codes are −" }, { "code": null, "e": 1250, "s": 1227, "text": "5XX – Error in se...
Use ColumnTransformer in SciKit instead of LabelEncoding and OneHotEncoding for data preprocessing in Machine Learning | by Sunny Srinidhi | Towards Data Science
In a very old post — Label Encoder vs. One Hot Encoder in Machine Learning — I had demonstrated how to use label encoding and one hot encoding to separate out categorical text data into numbers and different columns. But the SciKit library has come a long way since I wrote that post, and it has made life a lot more eas...
[ { "code": null, "e": 497, "s": 172, "text": "In a very old post — Label Encoder vs. One Hot Encoder in Machine Learning — I had demonstrated how to use label encoding and one hot encoding to separate out categorical text data into numbers and different columns. But the SciKit library has come a long...
Betrothed numbers - GeeksforGeeks
16 Apr, 2021 Betrothed numbers are two positive numbers such that the sum of the proper divisors of either number is one more than (or one plus) the value of the other number. Our task is to find these pairs efficiently. Example : (48, 75) is an example of Betrothed numbers Divisors of 48 : 1, 2, 3, 4, 6, 8, 12, ...
[ { "code": null, "e": 25963, "s": 25935, "text": "\n16 Apr, 2021" }, { "code": null, "e": 26183, "s": 25963, "text": "Betrothed numbers are two positive numbers such that the sum of the proper divisors of either number is one more than (or one plus) the value of the other number. ...
Link Prediction - Predict edges in a network using Networkx - GeeksforGeeks
08 May, 2020 Link Prediction is used to predict future possible links in a network. Link Prediction is the algorithm based on which Facebook recommends People you May Know, Amazon predicts items you’re likely going to be interested in and Zomato recommends food you’re likely going to order. For this article, we would c...
[ { "code": null, "e": 25563, "s": 25535, "text": "\n08 May, 2020" }, { "code": null, "e": 25842, "s": 25563, "text": "Link Prediction is used to predict future possible links in a network. Link Prediction is the algorithm based on which Facebook recommends People you May Know, Ama...
Getting Saved Wifi Passwords using Python - GeeksforGeeks
20 Sep, 2021 Usually while connecting with the wifi we have to enter some password to access the network, but we are not directly able to see the password we have entered earlier i.e password of saved network. In this article, we will see how we can get all the saved WiFi name and passwords using Python, in order to do...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n20 Sep, 2021" }, { "code": null, "e": 26368, "s": 25537, "text": "Usually while connecting with the wifi we have to enter some password to access the network, but we are not directly able to see the password we have entered earli...
Python | Using PIL ImageGrab and PyTesseract - GeeksforGeeks
13 Oct, 2019 ImageGrab is a Python module that helps to capture the contents of the screen. PyTesseract is an Optical Character Recognition(OCR) tool for Python. Together they can be used to read the contents of a section of the screen. Installation – Pillow (a newer version of PIL) pip install Pillow PyTesseract pip i...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n13 Oct, 2019" }, { "code": null, "e": 25786, "s": 25562, "text": "ImageGrab is a Python module that helps to capture the contents of the screen. PyTesseract is an Optical Character Recognition(OCR) tool for Python. Together they ...
POWER() Function in SQL Server - GeeksforGeeks
30 Dec, 2020 POWER() function :This function in SQL Server is used to return a results after raising a specified exponent number to a specified base number. For example if the base is 5 and exponent is 2, this will return a result of 25. Features : This function is used to find a results after raising a specified expon...
[ { "code": null, "e": 25195, "s": 25167, "text": "\n30 Dec, 2020" }, { "code": null, "e": 25420, "s": 25195, "text": "POWER() function :This function in SQL Server is used to return a results after raising a specified exponent number to a specified base number. For example if the ...
Minimize difference between any multiple of given three numbers with K - GeeksforGeeks
24 Dec, 2021 Given 4 integers A, B, C, and K the task is to find the minimum difference between any multiple of A, B, and C with K Examples: Input: A = 5, B = 4, C = 8, K = 9output: 1Explanation: Closest multiple of A, B and C greater than 9 is 10. Therefore, minimum difference is 10-9 = 1 Input: A = 6, B = 10, C = 9...
[ { "code": null, "e": 25937, "s": 25909, "text": "\n24 Dec, 2021" }, { "code": null, "e": 26055, "s": 25937, "text": "Given 4 integers A, B, C, and K the task is to find the minimum difference between any multiple of A, B, and C with K" }, { "code": null, "e": 26065, ...
std::move in Utility in C++ | Move Semantics, Move Constructors and Move Assignment Operators - GeeksforGeeks
11 Feb, 2022 Prerequisites: lvalue referencervalue referenceCopy Semantics (Copy Constructor) lvalue reference rvalue reference Copy Semantics (Copy Constructor) References: In C++ there are two types of references- lvalue reference:An lvalue is an expression that will appear on the left-hand side or on the right-hand ...
[ { "code": null, "e": 26097, "s": 26069, "text": "\n11 Feb, 2022" }, { "code": null, "e": 26112, "s": 26097, "text": "Prerequisites:" }, { "code": null, "e": 26178, "s": 26112, "text": "lvalue referencervalue referenceCopy Semantics (Copy Constructor)" }, {...
How to set the title and fonts of your Seaborn Chart? - GeeksforGeeks
25 Feb, 2021 In this article, we are going to see how to set the title and fonts in seaborn chart. Data Visualization is the presentation of data in pictorial format. It is extremely important for Data Analysis, primarily because of the fantastic ecosystem of data-centric Python packages and seaborn is an amazing visua...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n25 Feb, 2021" }, { "code": null, "e": 25907, "s": 25537, "text": "In this article, we are going to see how to set the title and fonts in seaborn chart. Data Visualization is the presentation of data in pictorial format. It is ext...
How to search special character in an angular smart table? - GeeksforGeeks
15 Sep, 2020 Introduction on Smart table: It is an Angularjs module used for display purpose as a table format with a set of features like filtering, sorting, etc., This is very much helpful during report preparation, filtering and searching of data in a quicker manner in angular js. It is lightweight, developer-friend...
[ { "code": null, "e": 26354, "s": 26326, "text": "\n15 Sep, 2020" }, { "code": null, "e": 26383, "s": 26354, "text": "Introduction on Smart table:" }, { "code": null, "e": 26697, "s": 26383, "text": "It is an Angularjs module used for display purpose as a table...
GATE | GATE-CS-2005 | Question 43 - GeeksforGeeks
28 Jun, 2021 Let f: B → C and g: A → B be two functions and let h = f o g. Given that h is an onto function. Which one of the following is TRUE?(A) f and g should both be onto functions.(B) f should be onto but g need not be onto(C) g should be onto but f need not be onto(D) both f and g need not be ontoAnswer: (B)Expl...
[ { "code": null, "e": 25783, "s": 25755, "text": "\n28 Jun, 2021" }, { "code": null, "e": 26200, "s": 25783, "text": "Let f: B → C and g: A → B be two functions and let h = f o g. Given that h is an onto function. Which one of the following is TRUE?(A) f and g should both be onto ...
numpy.reshape() in Python - GeeksforGeeks
09 Mar, 2022 The numpy.reshape() function shapes an array without changing the data of the array. Syntax: numpy.reshape(array, shape, order = 'C') Parameters : array : [array_like]Input array shape : [int or tuples of int] e.g. if we are aranging an array with 10 elements then shaping it like numpy.reshape(4, ...
[ { "code": null, "e": 25379, "s": 25351, "text": "\n09 Mar, 2022" }, { "code": null, "e": 25464, "s": 25379, "text": "The numpy.reshape() function shapes an array without changing the data of the array." }, { "code": null, "e": 25513, "s": 25464, "text": "Synta...
Python Tkinter | Moving objects using Canvas.move() method - GeeksforGeeks
18 Nov, 2021 The Canvas class of Tkinter supports functions that are used to move objects from one position to another in any canvas or Tkinter top-level. Syntax: Canvas.move(canvas_object, x, y)Parameters: canvas_object is any valid image or drawing created with the help of Canvas class. To know how to create object u...
[ { "code": null, "e": 25833, "s": 25805, "text": "\n18 Nov, 2021" }, { "code": null, "e": 25975, "s": 25833, "text": "The Canvas class of Tkinter supports functions that are used to move objects from one position to another in any canvas or Tkinter top-level." }, { "code":...
NZEC error in Python - GeeksforGeeks
19 Oct, 2021 While coding in various competitive sites, many people must have encountered NZEC errors. NZEC (non zero exit code) as the name suggests occurs when your code is failed to return 0. When a code returns 0 it means it is successfully executed otherwise it will return some other number depending on the type o...
[ { "code": null, "e": 42677, "s": 42649, "text": "\n19 Oct, 2021" }, { "code": null, "e": 43171, "s": 42677, "text": "While coding in various competitive sites, many people must have encountered NZEC errors. NZEC (non zero exit code) as the name suggests occurs when your code is f...
BinaryField - Django Models - GeeksforGeeks
05 Aug, 2021 BinaryField is a special field to store raw binary data. It can be assigned bytes, bytearray, or memoryview. By default, BinaryField sets editable to False, that is it can’t be included in a ModelForm. Since BinaryField stores raw data or in other terms a python object, it can not be manually entered and n...
[ { "code": null, "e": 25580, "s": 25552, "text": "\n05 Aug, 2021" }, { "code": null, "e": 26022, "s": 25580, "text": "BinaryField is a special field to store raw binary data. It can be assigned bytes, bytearray, or memoryview. By default, BinaryField sets editable to False, that i...
matplotlib.pyplot.axhline() in Python - GeeksforGeeks
12 Apr, 2020 Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. The axhline() function in pyplot module of matplotlib library is used to add a horizontal line across the axis. ...
[ { "code": null, "e": 25839, "s": 25811, "text": "\n12 Apr, 2020" }, { "code": null, "e": 26034, "s": 25839, "text": "Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which pr...
JDBC Using Model Object and Singleton Class - GeeksforGeeks
28 Jul, 2021 This article explains how to perform JDBC operation using a Model object and a Singleton connection class from a MySQL database. JDBC is an Application Programming Interface for Java which connects a Java application with a database to perform CRUD operations. Pre requisite: JDK 7+ (Click here to download)...
[ { "code": null, "e": 25549, "s": 25521, "text": "\n28 Jul, 2021" }, { "code": null, "e": 25678, "s": 25549, "text": "This article explains how to perform JDBC operation using a Model object and a Singleton connection class from a MySQL database." }, { "code": null, "e...
Python - Convert Flat dictionaries to Nested dictionary - GeeksforGeeks
14 May, 2020 Sometimes, while working with records, we can have problem in which we need to perform the task of conversion of multiple flat dictionaries to a single nested dictionary. This can have application in many domains in which data is used extensively. Lets discuss certain ways in which this task can be perform...
[ { "code": null, "e": 25795, "s": 25767, "text": "\n14 May, 2020" }, { "code": null, "e": 26106, "s": 25795, "text": "Sometimes, while working with records, we can have problem in which we need to perform the task of conversion of multiple flat dictionaries to a single nested dict...
Java Program to find the Last Index of a Particular Word in a String - GeeksforGeeks
05 Nov, 2020 To find out the last occurrence of a character or string from a given string across which the substring or character is been searched over and returning the index value of the character or substring is found. Real-life Example: Consider an example of a book. The book contains pages where pages contain word...
[ { "code": null, "e": 25237, "s": 25209, "text": "\n05 Nov, 2020" }, { "code": null, "e": 25446, "s": 25237, "text": "To find out the last occurrence of a character or string from a given string across which the substring or character is been searched over and returning the index ...
Find next greater number with same set of digits in C++
In this problem, we are given an element N. We need to find the next greater number with the same set of digits. We need to find the smallest number with the same digit which is greater than N. Let’s take an example to understand the problem, N = "92534" 92543 A simple solution to the problem to find the next greater e...
[ { "code": null, "e": 1256, "s": 1062, "text": "In this problem, we are given an element N. We need to find the next greater\nnumber with the same set of digits. We need to find the smallest number with the same digit which is greater than N." }, { "code": null, "e": 1305, "s": 1256, ...