title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Build Shiny Dashboard with Elasticsearch | by Andy Kwan | Towards Data Science
In enterprise, presumably multiple data sources are required to be handled because of the possession of vast amount of data. When attempting to build a dashboard to showcase business ideas, typically one needs to integrate data from NoSQL database, relational database and search engine. Thus dashboards like Kibana or G...
[ { "code": null, "e": 954, "s": 172, "text": "In enterprise, presumably multiple data sources are required to be handled because of the possession of vast amount of data. When attempting to build a dashboard to showcase business ideas, typically one needs to integrate data from NoSQL database, relati...
Boolean booleanValue() method in Java with examples - GeeksforGeeks
01 Oct, 2018 The booleanValue() method of Boolean Class is a built in method in java which is used to return the primitive boolean value of instance which is used to call the method booleanValue(). Syntax BooleanObject.booleanValue() Return Value: It returns a primitive boolean value. Below are the examples to illustra...
[ { "code": null, "e": 24512, "s": 24484, "text": "\n01 Oct, 2018" }, { "code": null, "e": 24697, "s": 24512, "text": "The booleanValue() method of Boolean Class is a built in method in java which is used to return the primitive boolean value of instance which is used to call the m...
VBA - Split Function
A Split Function returns an array that contains a specific number of values split based on a delimiter. Split(expression[,delimiter[,count[,compare]]]) Expression − A required parameter. The string expression that can contain strings with delimiters. Expression − A required parameter. The string expression that can c...
[ { "code": null, "e": 2039, "s": 1935, "text": "A Split Function returns an array that contains a specific number of values split based on a delimiter." }, { "code": null, "e": 2089, "s": 2039, "text": "Split(expression[,delimiter[,count[,compare]]]) \n" }, { "code": null,...
Minimum in an array which is first decreasing then increasing - GeeksforGeeks
16 Mar, 2021 Given an array of N integers where array elements form a strictly decreasing and increasing sequence. The task is to find the smallest number in such an array. Constraints: N >= 3 Examples: Input: a[] = {2, 1, 2, 3, 4} Output: 1 Input: a[] = {8, 5, 4, 3, 4, 10} Output: 3 A naive approach is to linear...
[ { "code": null, "e": 26469, "s": 26441, "text": "\n16 Mar, 2021" }, { "code": null, "e": 26661, "s": 26469, "text": "Given an array of N integers where array elements form a strictly decreasing and increasing sequence. The task is to find the smallest number in such an array. Con...
How to submit a form or a part of a form without a page refresh using jQuery ? - GeeksforGeeks
31 Oct, 2021 In this article, we will learn how to submit a form or a part of a form without a page refresh using JQuery, & will understand its implementation through the example. How to prevent an HTML form to submit? Generally, when we submit a form then we should click a submit button then our page will navigate to ...
[ { "code": null, "e": 27064, "s": 27036, "text": "\n31 Oct, 2021" }, { "code": null, "e": 27231, "s": 27064, "text": "In this article, we will learn how to submit a form or a part of a form without a page refresh using JQuery, & will understand its implementation through the examp...
FLAIR - A Framework for NLP - GeeksforGeeks
26 Nov, 2020 What is FLAIR? It is a simple framework for state-of-the-art NLP. It is a very powerful library which is developed by Zalando Research. The Flair framework is built on top of PyTorch. What are the Features available in Flair? Flair supports a number of word embeddings used to perform NLP tasks such as Fast...
[ { "code": null, "e": 25699, "s": 25671, "text": "\n26 Nov, 2020" }, { "code": null, "e": 25714, "s": 25699, "text": "What is FLAIR?" }, { "code": null, "e": 25883, "s": 25714, "text": "It is a simple framework for state-of-the-art NLP. It is a very powerful li...
Conditional rendering in React.js
Using conditional statements specific components can be rendered and removed . Conditional handling works similarly in JavaScript and React.js function DisplayUserMessage( props ){ const user = props.user.type; if(type==’Player’){ return <h1>Player </player>; } If( type==’Admin’){ Return <h1>Adm...
[ { "code": null, "e": 1205, "s": 1062, "text": "Using conditional statements specific components can be rendered and removed . Conditional handling works similarly in JavaScript and React.js" }, { "code": null, "e": 1399, "s": 1205, "text": "function DisplayUserMessage( props ){\n...
Replace an element from a Java List using ListIterator
Let us first create a Java List and add elements − ArrayList < String > list = new ArrayList < String > (); list.add("Katie"); list.add("Tom"); list.add("Jack"); list.add("Amy"); list.add("Andre"); list.add("Brad"); list.add("Peter"); list.add("Bradley"); Now, use ListIterator and return the next element in the List wi...
[ { "code": null, "e": 1113, "s": 1062, "text": "Let us first create a Java List and add elements −" }, { "code": null, "e": 1318, "s": 1113, "text": "ArrayList < String > list = new ArrayList < String > ();\nlist.add(\"Katie\");\nlist.add(\"Tom\");\nlist.add(\"Jack\");\nlist.add(\...
Apache Pig - COUNT()
The COUNT() function of Pig Latin is used to get the number of elements in a bag. While counting the number of tuples in a bag, the COUNT() function ignores (will not count) the tuples having a NULL value in the FIRST FIELD. Note − To get the global count value (total number of tuples in a bag), we need to perform a Gr...
[ { "code": null, "e": 2909, "s": 2684, "text": "The COUNT() function of Pig Latin is used to get the number of elements in a bag. While counting the number of tuples in a bag, the COUNT() function ignores (will not count) the tuples having a NULL value in the FIRST FIELD." }, { "code": null, ...
Deep learning with containers. Part 1 | by Alexander Visheratin | Towards Data Science
Containers are lightweight software packages that run in isolation on the host computing environment. Using containerized environments for the research is helpful because they are easy to use, reproducible, and keep your primary system clean. You can easily set up a fully functioning multi-container application using D...
[ { "code": null, "e": 557, "s": 172, "text": "Containers are lightweight software packages that run in isolation on the host computing environment. Using containerized environments for the research is helpful because they are easy to use, reproducible, and keep your primary system clean. You can easi...
How to execute a static block without main method in Java?
VM first looks for the main method (at least the latest versions) and then, starts executing the program including static block. Therefore, you cannot execute a static block without main method. public class Sample { static { System.out.println("Hello how are you"); } } Since the above program doesn’t have ...
[ { "code": null, "e": 1257, "s": 1062, "text": "VM first looks for the main method (at least the latest versions) and then, starts executing the program including static block. Therefore, you cannot execute a static block without main method." }, { "code": null, "e": 1345, "s": 1257, ...
Redis - String Setex Command
Redis SETEX command is used to set some string value with a specified timeout in Redis key. Simple string reply. OK, if the value is set in key. Null, if the value is not set. Following is the basic syntax of Redis SETEX command. redis 127.0.0.1:6379> SETEX KEY_NAME TIMEOUT VALUE redis 127.0.0.1:6379> SETEX mykey 60 r...
[ { "code": null, "e": 2137, "s": 2045, "text": "Redis SETEX command is used to set some string value with a specified timeout in Redis key." }, { "code": null, "e": 2221, "s": 2137, "text": "Simple string reply. OK, if the value is set in key. Null, if the value is not set." }, ...
Beginner’s Guide to K-Nearest Neighbors in R: from Zero to Hero | by Leihua Ye, PhD | Towards Data Science
Updated on Jan-10–2021 1 2 3 4 5 6 7 8 9 10 Powered by Play.ht Create audio with Play.ht Powered by Play.ht “If you live 5 minutes away from Bill Gates, I bet you are rich.” In the realm of Machine Learning, K-Nearest Neighbors, KNN, makes the most intuitive sense and thus easily accessible to Data Science enthusiasts ...
[ { "code": null, "e": 195, "s": 172, "text": "Updated on Jan-10–2021" }, { "code": null, "e": 197, "s": 195, "text": "1" }, { "code": null, "e": 199, "s": 197, "text": "2" }, { "code": null, "e": 201, "s": 199, "text": "3" }, { "code...
D3.js rollup() method - GeeksforGeeks
14 Sep, 2020 With the help of d3.rollup() method, we can get the reduced map from iterable data structure having key and values. Syntax: d3.rollup(iterable, reduce, ...keys) Return value: It will return the reduced map from iterables. Note: To execute the below examples you have to install the d3 library by using the ...
[ { "code": null, "e": 25169, "s": 25141, "text": "\n14 Sep, 2020" }, { "code": null, "e": 25285, "s": 25169, "text": "With the help of d3.rollup() method, we can get the reduced map from iterable data structure having key and values." }, { "code": null, "e": 25293, ...
Python 3 - Strings
Strings are amongst the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to a variable. For example − var1 = 'Hello World!' var2 = "Python Programming" Python does not supp...
[ { "code": null, "e": 2590, "s": 2340, "text": "Strings are amongst the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to a variable. For example −" ...
Variable number of arguments in Lua Programming
There are functions in Lua that accept a variable number of arguments. These are very helpful in cases where we want to run the same function with many different arguments that might vary in length. So, instead of creating a different function, we pass them in a variable arguments fashion. function add(...) -- funct...
[ { "code": null, "e": 1353, "s": 1062, "text": "There are functions in Lua that accept a variable number of arguments. These are very helpful in cases where we want to run the same function with many different arguments that might vary in length. So, instead of creating a different function, we pass ...
Deploy a Node.js Application With the App Engine in 10 Minutes! | by Andrew Didinchuk | Towards Data Science
Google Cloud’s App Engine allows you to deploy scalable web applications on a platform fully managed by Google. These applications can range from back-end services and API layers to front-end applications running on Angular and React frameworks. Google provides 28 daily hours of run time with this service for free so y...
[ { "code": null, "e": 532, "s": 172, "text": "Google Cloud’s App Engine allows you to deploy scalable web applications on a platform fully managed by Google. These applications can range from back-end services and API layers to front-end applications running on Angular and React frameworks. Google pr...
Classification Using Neural Networks | by Oliver Knocklein | Towards Data Science
Neural networks are one of those cool words that are often used to lend credence to research. But what exactly are they? After reading this article you should have a rough understanding of the internal mechanics of neural nets, and convolution neural networks, and be able to code your own simple neural network model in...
[ { "code": null, "e": 500, "s": 171, "text": "Neural networks are one of those cool words that are often used to lend credence to research. But what exactly are they? After reading this article you should have a rough understanding of the internal mechanics of neural nets, and convolution neural netw...
Get all occurrences of the string between any two specific characters in SAP ABAP
I usually use REGEX in all such cases as it is faster and easily readable and would recommend the same to you. You can use something similar as the snippet to get your job done. DATA: lv_para TYPE string. lv_para = ' You &are like& kite &flying& in a &hurricane&'. REPLACE ALL OCCURRENCES OF REGEX '&[^&]+&' IN lv_para W...
[ { "code": null, "e": 1173, "s": 1062, "text": "I usually use REGEX in all such cases as it is faster and easily readable and would recommend the same to you." }, { "code": null, "e": 1240, "s": 1173, "text": "You can use something similar as the snippet to get your job done." }...
How to get the build/version number of an iOS App?
In this post we will learn how to fetch and show the iOS build and version number Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “ShowBuildAndVersion” Step 2 − Open Main.storyboard and add two labels as shown below. Step 3 − Attach @IBOutLets for the two labels @IBOutlet weak var buildLabel...
[ { "code": null, "e": 1144, "s": 1062, "text": "In this post we will learn how to fetch and show the iOS build and version number" }, { "code": null, "e": 1242, "s": 1144, "text": "Step 1 − Open Xcode → New Project → Single View Application → Let’s name it “ShowBuildAndVersion”" ...
Importance of Thread.onSpinWait() method in Java 9?
Thread.onSpinWait() method has been introduced in Java 9. It is a static method of Thread class and can be optionally called in busy-waiting loops. It allows the JVM to issue processor instructions on some system architectures to improve reaction time in such spin-wait loops, and also reduce the power consumed by the c...
[ { "code": null, "e": 1559, "s": 1062, "text": "Thread.onSpinWait() method has been introduced in Java 9. It is a static method of Thread class and can be optionally called in busy-waiting loops. It allows the JVM to issue processor instructions on some system architectures to improve reaction time i...
Creating an Animated Bar Chart Race with Tableau | by Ewe Zi Yi | Towards Data Science
A while ago I posted an animated bar chart on /r/dataisbeautiful on Reddit showing the changes in the number of international students by their country of origin in Australia. Such animated bar charts are perfect for showing the evolution of numerical data corresponding to different categories over a period of time in ...
[ { "code": null, "e": 541, "s": 172, "text": "A while ago I posted an animated bar chart on /r/dataisbeautiful on Reddit showing the changes in the number of international students by their country of origin in Australia. Such animated bar charts are perfect for showing the evolution of numerical dat...
numpy.compress() in Python - GeeksforGeeks
22 Oct, 2020 The numpy.compress() function returns selected slices of an array along mentioned axis, that satisfies an axis. Syntax: numpy.compress(condition, array, axis = None, out = None) Parameters : condition : [array_like]Condition on the basis of which user extract elements. Applying condition on input_ar...
[ { "code": null, "e": 24292, "s": 24264, "text": "\n22 Oct, 2020" }, { "code": null, "e": 24404, "s": 24292, "text": "The numpy.compress() function returns selected slices of an array along mentioned axis, that satisfies an axis." }, { "code": null, "e": 24470, "s"...
HashSet add() Method in Java
26 Nov, 2018 The Java.util.HashSet.add() method in Java HashSet is used to add a specific element into a HashSet. This method will add the element only if the specified element is not present in the HashSet else the function will return False if the element is already present in the HashSet. Syntax: Hash_Set.add(Object...
[ { "code": null, "e": 54, "s": 26, "text": "\n26 Nov, 2018" }, { "code": null, "e": 334, "s": 54, "text": "The Java.util.HashSet.add() method in Java HashSet is used to add a specific element into a HashSet. This method will add the element only if the specified element is not pre...
Function based Views – Django Rest Framework
16 Feb, 2021 Django REST Framework allows us to work with regular Django views. It facilitates processing the HTTP requests and providing appropriate HTTP responses. In this section, you will understand how to implement Django views for the Restful Web service. We also make use of the @api_view decorator. Before workin...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Feb, 2021" }, { "code": null, "e": 322, "s": 28, "text": "Django REST Framework allows us to work with regular Django views. It facilitates processing the HTTP requests and providing appropriate HTTP responses. In this section, you w...
<mat-radio-button> in Angular Material - GeeksforGeeks
06 Oct, 2021 Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to install it, we need to have angular installed in our project, once you have it you can enter the below command and can download it. <mat-radio-but...
[ { "code": null, "e": 26464, "s": 26436, "text": "\n06 Oct, 2021" }, { "code": null, "e": 26836, "s": 26464, "text": "Angular Material is a UI component library that is developed by the Angular team to build design components for desktop and mobile web applications. In order to in...
Ten awesome R Markdown tricks. R Markdown is more versatile than you... | by Keith McNulty | Towards Data Science
Though I code in both R and Python, R Markdown is my only route for writing reports, blogs or books. It is incredibly flexible, has many beautiful design options and supports many output formats really nicely. If you have never worked in R Markdown, I highly recommend it. If you have worked in it before, here are ten l...
[ { "code": null, "e": 382, "s": 172, "text": "Though I code in both R and Python, R Markdown is my only route for writing reports, blogs or books. It is incredibly flexible, has many beautiful design options and supports many output formats really nicely." }, { "code": null, "e": 606, ...
Dealing with Apply functions in R | by vikashraj luhaniwal | Towards Data Science
Iterative control structures (loops like for, while, repeat, etc.) allow repetition of instructions for several numbers of times. However, at large scale data processing usage of these loops can consume more time and space. R language has a more efficient and quick approach to perform iterations with the help of Apply ...
[ { "code": null, "e": 503, "s": 172, "text": "Iterative control structures (loops like for, while, repeat, etc.) allow repetition of instructions for several numbers of times. However, at large scale data processing usage of these loops can consume more time and space. R language has a more efficient...
8085 program to determine if the number is prime or not - GeeksforGeeks
13 Jun, 2018 Problem – Write an assembly language program for determining if a given number is prime or not using 8085 microprocessor. If the number is prime, store 01H at the memory location which stores the result, else 00H. Examples: Input : 03H Output : 01H The number 3 only has two divisors, 1 and 3. Hence, it is...
[ { "code": null, "e": 26135, "s": 26107, "text": "\n13 Jun, 2018" }, { "code": null, "e": 26257, "s": 26135, "text": "Problem – Write an assembly language program for determining if a given number is prime or not using 8085 microprocessor." }, { "code": null, "e": 2634...
Disable the underlying window when a popup is created in Python TKinter
We are familiar with popup and used it in many applications. Popup in a tkinter application can be created by creating an instance of Toplevel(root) window. For a particular application, we can trigger the popup on a button object. Let us create a Python script to close the underlying or the main window after displayin...
[ { "code": null, "e": 1294, "s": 1062, "text": "We are familiar with popup and used it in many applications. Popup in a tkinter application can be created by creating an instance of Toplevel(root) window. For a particular application, we can trigger the popup on a button object." }, { "code":...
How to Draw a Curved Edge Hexagon using CSS ? - GeeksforGeeks
16 Apr, 2020 We can make a curved edge hexagon by using the pseudo-element property of CSS. Use a div element to create a rectangle and also add border-radius to it. Now create a pseudo-element after using CSS and rotate it by using 60deg. Also create another pseudo-element before by using CSS and rotate it by -60deg. ...
[ { "code": null, "e": 25615, "s": 25587, "text": "\n16 Apr, 2020" }, { "code": null, "e": 25694, "s": 25615, "text": "We can make a curved edge hexagon by using the pseudo-element property of CSS." }, { "code": null, "e": 25768, "s": 25694, "text": "Use a div e...
Android Motion Layout in Kotlin - GeeksforGeeks
07 Aug, 2020 MotionLayout is a special version of ConstraintLayout. It is a layout that helps to manage motion and widget animations in the app. Since it is a special version of ConstraintLayout, it is made as a sub-class of ConstraintLayout. It provides touch control motion to the app by describing how to transition b...
[ { "code": null, "e": 25763, "s": 25735, "text": "\n07 Aug, 2020" }, { "code": null, "e": 26219, "s": 25763, "text": "MotionLayout is a special version of ConstraintLayout. It is a layout that helps to manage motion and widget animations in the app. Since it is a special version o...
How to get return text from PHP file with ajax ? - GeeksforGeeks
06 Dec, 2021 In this article, we will see how to get return the text from the PHP file with ajax. Ajax is an acronym for Asynchronous JavaScript and XML is a series of web development techniques that build asynchronous web applications using many web technologies on the client-side. Without reloading the web page, AJAX...
[ { "code": null, "e": 26373, "s": 26345, "text": "\n06 Dec, 2021" }, { "code": null, "e": 26741, "s": 26373, "text": "In this article, we will see how to get return the text from the PHP file with ajax. Ajax is an acronym for Asynchronous JavaScript and XML is a series of web deve...
Modify given string such that odd and even indices is lexicographically largest and smallest - GeeksforGeeks
29 Sep, 2021 Given a string S consisting of N lowercase alphabets, the task is to modify the given string by replacing all the characters with characters other than the current character such that the suffix string formed from odd and even indices is lexicographically largest and smallest respectively among all possibl...
[ { "code": null, "e": 26537, "s": 26509, "text": "\n29 Sep, 2021" }, { "code": null, "e": 26877, "s": 26537, "text": "Given a string S consisting of N lowercase alphabets, the task is to modify the given string by replacing all the characters with characters other than the current...
Python | Numpy matrix.reshape() - GeeksforGeeks
18 Apr, 2019 With the help of Numpy matrix.reshape() method, we are able to reshape the shape of the given matrix. Remember all elements should be covered after reshaping the given matrix. Syntax : matrix.reshape(shape) Return: new reshapped matrix Example #1 :In the given example we are able to reshape the given matri...
[ { "code": null, "e": 26153, "s": 26125, "text": "\n18 Apr, 2019" }, { "code": null, "e": 26329, "s": 26153, "text": "With the help of Numpy matrix.reshape() method, we are able to reshape the shape of the given matrix. Remember all elements should be covered after reshaping the g...
Python Slicing | Reverse an array in groups of given size - GeeksforGeeks
11 May, 2020 Given an array, reverse every sub-array formed by consecutive k elements. Examples: Input: arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] k = 3 Output: [3, 2, 1, 6, 5, 4, 9, 8, 7] Input: arr = [1, 2, 3, 4, 5, 6, 7, 8] k = 5 Output: [5, 4, 3, 2, 1, 8, 7, 6] Input: arr = [1, 2, 3, 4, 5, 6] k = 1 Output: [1, 2,...
[ { "code": null, "e": 25511, "s": 25483, "text": "\n11 May, 2020" }, { "code": null, "e": 25585, "s": 25511, "text": "Given an array, reverse every sub-array formed by consecutive k elements." }, { "code": null, "e": 25595, "s": 25585, "text": "Examples:" }, ...
How to zoom in on a point using scale and translate ? - GeeksforGeeks
27 Feb, 2020 You are given a zoom in to particular image by using scale and translate method. In this zooming process, an image should be zoom in from the center of the image. That image has some width and height in case of rectangular shape and has proper dimensions according to the shape of the image. In zoom in proc...
[ { "code": null, "e": 26695, "s": 26667, "text": "\n27 Feb, 2020" }, { "code": null, "e": 27177, "s": 26695, "text": "You are given a zoom in to particular image by using scale and translate method. In this zooming process, an image should be zoom in from the center of the image. ...
What are the features of ReactJS ? - GeeksforGeeks
22 Oct, 2021 React is a JavaScript Library created by Facebook for creating dynamic and interactive applications and building better UI/UX design for web and mobile applications. React is an open-source and component-based front-end library. React is responsible for the UI design. React makes code easier to debug by d...
[ { "code": null, "e": 25967, "s": 25939, "text": "\n22 Oct, 2021" }, { "code": null, "e": 26305, "s": 25967, "text": " React is a JavaScript Library created by Facebook for creating dynamic and interactive applications and building better UI/UX design for web and mobile applicatio...
Vulscan - Vulnerability Scanning with Nmap in Kali Linux - GeeksforGeeks
07 Oct, 2021 Vulscan is a free and open-source tool available on GitHub. Vulscan uses nmap as the main scanner to scan the IP addresses and domains, the easiest and useful tool for reconnaissance of network. Vulscan interface is very similar to Metasploit 1 and Metasploit 2 which makes it easy to use. This tool provide...
[ { "code": null, "e": 25651, "s": 25623, "text": "\n07 Oct, 2021" }, { "code": null, "e": 26870, "s": 25651, "text": "Vulscan is a free and open-source tool available on GitHub. Vulscan uses nmap as the main scanner to scan the IP addresses and domains, the easiest and useful tool...
GATE | GATE CS 2011 | Question 65 - GeeksforGeeks
30 Sep, 2021 Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure: What is the approximate speed...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n30 Sep, 2021" }, { "code": null, "e": 25925, "s": 25647, "text": "Consider an instruction pipeline with four stages (S1, S2, S3 and S4) each with combinational circuit only. The pipeline registers are required between each stage ...
Controlled Access Protocols in Computer Network - GeeksforGeeks
19 Oct, 2021 In controlled access, the stations seek information from one another to find which station has the right to send. It allows only one node to send at a time, to avoid collision of messages on shared medium.The three controlled-access methods are: ReservationPollingToken Passing Reservation Polling Token Pas...
[ { "code": null, "e": 37837, "s": 37809, "text": "\n19 Oct, 2021" }, { "code": null, "e": 38083, "s": 37837, "text": "In controlled access, the stations seek information from one another to find which station has the right to send. It allows only one node to send at a time, to avo...
numpy.random.shuffle() in python - GeeksforGeeks
18 Aug, 2020 With the help of numpy.random.shuffle() method, we can get the random positioning of different integer values in the numpy array or we can say that all the values in an array will be shuffled randomly. Syntax : numpy.random.shuffle(x) Return : Return the reshuffled numpy array. Example #1 : In this example...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n18 Aug, 2020" }, { "code": null, "e": 25739, "s": 25537, "text": "With the help of numpy.random.shuffle() method, we can get the random positioning of different integer values in the numpy array or we can say that all the values ...
How to install NumPy package in Julia? - GeeksforGeeks
17 May, 2020 Julia is a very new and fast high-level programming language and has the power to compete with python. Like python, Julia is also compatible to do machine learning and data analysis part. In this tutorial, we will learn about how to install NumPy and use it in our Julia environment. Before we begin with th...
[ { "code": null, "e": 26159, "s": 26131, "text": "\n17 May, 2020" }, { "code": null, "e": 26443, "s": 26159, "text": "Julia is a very new and fast high-level programming language and has the power to compete with python. Like python, Julia is also compatible to do machine learning...
stack emplace() in C++ STL - GeeksforGeeks
27 May, 2021 Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at one end and (top) an element is removed from that end only. This function is used to insert a new element into the stack container, the new element is added on top of the stack. Syntax : ...
[ { "code": null, "e": 25367, "s": 25339, "text": "\n27 May, 2021" }, { "code": null, "e": 25546, "s": 25367, "text": "Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at one end and (top) an element is removed from ...
Dart – Loops
01 Feb, 2021 Looping statement in Dart or any other programming language is used to repeat a certain set of commands until certain conditions are not completed. There are different ways to do so. They are: for loop for... in loop for each loop while loop do-while loop For loop in Dart is similar to that in Java and a...
[ { "code": null, "e": 28, "s": 0, "text": "\n01 Feb, 2021" }, { "code": null, "e": 223, "s": 28, "text": "Looping statement in Dart or any other programming language is used to repeat a certain set of commands until certain conditions are not completed. There are different ways to...
How to convert IEnumerable to List and List back to IEnumerable in C#?
IEnumerable is an interface defining a single method GetEnumerator() that returns an IEnumerator interface. It is the base interface for all non-generic collections that can be enumerated. This works for read-only access to a collection that implements that IEnumerable can be used with a foreach statement. List class r...
[ { "code": null, "e": 1376, "s": 1187, "text": "IEnumerable is an interface defining a single method GetEnumerator() that returns an IEnumerator interface. It is the base interface for all non-generic collections that can be enumerated." }, { "code": null, "e": 1495, "s": 1376, "t...
MySQL | Grant / Revoke Privileges
03 Mar, 2018 Granting Privileges We have already learned about how to create user in MySQL using MySQL | create user statement. But using the Create User Statement only creates a new user but does not grant any privileges to the user account.Therefore to grant privileges to a user account, the GRANT statement is used. ...
[ { "code": null, "e": 54, "s": 26, "text": "\n03 Mar, 2018" }, { "code": null, "e": 74, "s": 54, "text": "Granting Privileges" }, { "code": null, "e": 361, "s": 74, "text": "We have already learned about how to create user in MySQL using MySQL | create user sta...
Render a HTML Template as Response – Django Views
11 Nov, 2019 A view function, or view for short, is simply a Python function that takes a Web request and returns a Web response. This article revolves around how to render an HTML page from Django using views. Django has always been known for its app structure and ability to manage applications easily. Let’s dive in t...
[ { "code": null, "e": 53, "s": 25, "text": "\n11 Nov, 2019" }, { "code": null, "e": 419, "s": 53, "text": "A view function, or view for short, is simply a Python function that takes a Web request and returns a Web response. This article revolves around how to render an HTML page f...
Machine Learning - GeeksforGeeks
02 Jun, 2022 Machine Learning is the field of study that gives computers the capability to learn without being explicitly programmed. ML is one of the most exciting technologies that one would have ever come across. As it is evident from the name, it gives the computer that makes it more similar to humans: The ability...
[ { "code": null, "e": 29498, "s": 29470, "text": "\n02 Jun, 2022" }, { "code": null, "e": 29914, "s": 29498, "text": " Machine Learning is the field of study that gives computers the capability to learn without being explicitly programmed. ML is one of the most exciting technologi...
Python | Pandas DatetimeIndex.day_name()
29 Dec, 2018 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.day_name() function return the day names of the DateTimeIndex with speci...
[ { "code": null, "e": 28, "s": 0, "text": "\n29 Dec, 2018" }, { "code": null, "e": 242, "s": 28, "text": "Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes imp...
Java Program to Find Common Elements Between Two Arrays
08 Mar, 2021 Given two arrays and our task is to find their common elements. Examples: Input: Array1 = ["Article", "for", "Geeks", "for", "Geeks"], Array2 = ["Article", "Geeks", "Geeks"] Output: [Article,Geeks] Input: Array1 = ["a", "b", "c", "d", "e", "f"], Array2 = ["b", "d", "e", "h", "g", "c"] ...
[ { "code": null, "e": 28, "s": 0, "text": "\n08 Mar, 2021" }, { "code": null, "e": 102, "s": 28, "text": "Given two arrays and our task is to find their common elements. Examples:" }, { "code": null, "e": 356, "s": 102, "text": "Input: Array1 = [\"Article\", \...
Scope of Variables in C#
19 Jan, 2019 The part of the program where a particular variable is accessible is termed as the Scope of that variable. A variable can be defined in a class, method, loop etc. In C/C++, all identifiers are lexically (or statically) scoped, i.e.scope of a variable can be determined at compile time and independent of the...
[ { "code": null, "e": 52, "s": 24, "text": "\n19 Jan, 2019" }, { "code": null, "e": 439, "s": 52, "text": "The part of the program where a particular variable is accessible is termed as the Scope of that variable. A variable can be defined in a class, method, loop etc. In C/C++, a...
Inverse Fourier transform in MATLAB
30 May, 2021 Inverse Fourier Transform helps to return from Frequency domain function X(ω) to Time Domain x(t). In this article, we will see how to find Inverse Fourier Transform in MATLAB. The mathematical expression for Inverse Fourier transform is: In MATLAB, ifourier command returns the Inverse Fourier transform ...
[ { "code": null, "e": 54, "s": 26, "text": "\n30 May, 2021" }, { "code": null, "e": 231, "s": 54, "text": "Inverse Fourier Transform helps to return from Frequency domain function X(ω) to Time Domain x(t). In this article, we will see how to find Inverse Fourier Transform in MATLA...
Modulus function in C++ STL
14 Sep, 2018 Modulus function is used to return the value of the modulus between its two arguments. It works same as modulus operator works. template struct modulus : binary_function { T operator() (const T& x, const T& y) const { return x%y; } }; Member types: Type of first argument Type of second argume...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2018" }, { "code": null, "e": 156, "s": 28, "text": "Modulus function is used to return the value of the modulus between its two arguments. It works same as modulus operator works." }, { "code": null, "e": 277, "...
Service Locator Pattern
06 Mar, 2018 The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. This pattern uses a central registry known as the “service locator” which on request returns the information necessary to perform a cert...
[ { "code": null, "e": 54, "s": 26, "text": "\n06 Mar, 2018" }, { "code": null, "e": 517, "s": 54, "text": "The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. Thi...
Python: Call Parent class method
23 Jan, 2020 A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Example: # Python program to demonstrate# classes class...
[ { "code": null, "e": 53, "s": 25, "text": "\n23 Jan, 2020" }, { "code": null, "e": 302, "s": 53, "text": "A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together. Creating a new class cre...
Short-circuit evaluation in Programming
22 Jun, 2021 Short-Circuit Evaluation: Short-circuiting is a programming concept by which the compiler skips the execution or evaluation of some sub-expressions in a logical expression. The compiler stops evaluating the further sub-expressions as soon as the value of the expression is determined. Below is an example of...
[ { "code": null, "e": 52, "s": 24, "text": "\n22 Jun, 2021" }, { "code": null, "e": 370, "s": 52, "text": "Short-Circuit Evaluation: Short-circuiting is a programming concept by which the compiler skips the execution or evaluation of some sub-expressions in a logical expression. T...
numpy.ceil() in Python
04 Dec, 2020 The numpy.ceil() is a mathematical function that returns the ceil of the elements of array. The ceil of the scalar x is the smallest integer i, such that i >= x Syntax : numpy.ceil(x[, out]) = ufunc ‘ceil’)Parameters :a : [array_like] Input array Return : The ceil of each element with float data-type. Cod...
[ { "code": null, "e": 53, "s": 25, "text": "\n04 Dec, 2020" }, { "code": null, "e": 214, "s": 53, "text": "The numpy.ceil() is a mathematical function that returns the ceil of the elements of array. The ceil of the scalar x is the smallest integer i, such that i >= x" }, { ...
DATEDIFF() Function in MySQL
25 Nov, 2020 DATEDIFF() function in MySQL is used to return the number of days between two specified date values. Syntax: DATEDIFF(date1, date2) Parameter: This function accepts two parameters as given below: date1: First specified date date2: Second specified date Returns : It returns the number of days between two...
[ { "code": null, "e": 28, "s": 0, "text": "\n25 Nov, 2020" }, { "code": null, "e": 130, "s": 28, "text": "DATEDIFF() function in MySQL is used to return the number of days between two specified date values. " }, { "code": null, "e": 138, "s": 130, "text": "Synt...
Find first set bit | Practice | GeeksforGeeks
Given an integer an N. The task is to return the position of first set bit found from the right side in the binary representation of the number. Note: If there is no set bit in the integer N, then return 0 from the function. Example 1: Input: N = 18 Output: 2 Explanation: Binary representation of 18 is 010010,the fi...
[ { "code": null, "e": 465, "s": 238, "text": "Given an integer an N. The task is to return the position of first set bit found from the right side in the binary representation of the number.\nNote: If there is no set bit in the integer N, then return 0 from the function. " }, { "code": null,...
Python | Replace negative value with zero in numpy array
17 Oct, 2019 Given numpy array, the task is to replace negative value with zero in numpy array. Let’s see a few examples of this problem. Method #1: Naive Method # Python code to demonstrate# to replace negative value with 0import numpy as np ini_array1 = np.array([1, 2, -3, 4, -5, -6]) # printing initial arraysprint...
[ { "code": null, "e": 28, "s": 0, "text": "\n17 Oct, 2019" }, { "code": null, "e": 153, "s": 28, "text": "Given numpy array, the task is to replace negative value with zero in numpy array. Let’s see a few examples of this problem." }, { "code": null, "e": 177, "s":...
Overview of Packages in Oracle
Packages are SQL procedures, functions, variables, statements etc. that are grouped into a single unit. Many different applications can share the contents of a package, as it is stored in the database. The following are the parts of a package in Oracle − The package specifications contains information about all the pro...
[ { "code": null, "e": 1389, "s": 1187, "text": "Packages are SQL procedures, functions, variables, statements etc. that are grouped into a single unit. Many different applications can share the contents of a package, as it is stored in the database." }, { "code": null, "e": 1442, "s":...
Count maximum non-overlapping subarrays with given sum
24 May, 2021 Given an array arr[] consisting of N integers and an integer target, the task is to find the maximum number of non-empty non-overlapping subarrays such that the sum of array elements in each subarray is equal to the target. Examples: Input: arr[] = {2, -1, 4, 3, 6, 4, 5, 1}, target = 6Output: 3Explanation:...
[ { "code": null, "e": 52, "s": 24, "text": "\n24 May, 2021" }, { "code": null, "e": 276, "s": 52, "text": "Given an array arr[] consisting of N integers and an integer target, the task is to find the maximum number of non-empty non-overlapping subarrays such that the sum of array ...
Dart – Break Statement
15 Jul, 2020 The break statement in Dart inside any loop gives you a way to break or terminate the execution of the loop containing it, and hence transfers the execution to the next statement following the loop. It is always used with the if-else construct. Syntax: break; Example 1: Dart // Dart program in Dart to // ...
[ { "code": null, "e": 28, "s": 0, "text": "\n15 Jul, 2020" }, { "code": null, "e": 273, "s": 28, "text": "The break statement in Dart inside any loop gives you a way to break or terminate the execution of the loop containing it, and hence transfers the execution to the next statem...
Distance of closest zero to every element - GeeksforGeeks
22 Feb, 2022 Given an array of n integers, for each element, print the distance to the closest zero. Array has a minimum of 1 zero in it.Examples: Input: 5 6 0 1 -2 3 4 Output: 2 1 0 1 2 3 4 Explanation : The nearest 0(indexed 2) to 5(indexed 0) is at a distance of 2, so we print 2. Same is done for the rest of el...
[ { "code": null, "e": 24822, "s": 24794, "text": "\n22 Feb, 2022" }, { "code": null, "e": 24958, "s": 24822, "text": "Given an array of n integers, for each element, print the distance to the closest zero. Array has a minimum of 1 zero in it.Examples: " }, { "code": null,...
Count triples with Bitwise AND equal to Zero - GeeksforGeeks
31 May, 2021 Given an array of integers A[] consisting of N integers, find the number of triples of indices (i, j, k) such that A[i] & A[j] & A[k] is 0(<0 ≤ i, j, k ≤ N and & denotes Bitwise AND operator. Examples: Input: A[]={2, 1, 3}Output: 12Explanation: The following i, j, k triples can be chosen whose bitwise AND ...
[ { "code": null, "e": 25168, "s": 25140, "text": "\n31 May, 2021" }, { "code": null, "e": 25360, "s": 25168, "text": "Given an array of integers A[] consisting of N integers, find the number of triples of indices (i, j, k) such that A[i] & A[j] & A[k] is 0(<0 ≤ i, j, k ≤ N and & d...
Logistic Regression Explained. [ — Logistic Regression explained... | by z_ai | Towards Data Science
In this post, I will explain Logistic Regression in simple terms. It could be considered a Logistic Regression for dummies post, however, I’ve never really liked that expression. Before we start, here you have some additional resources to skyrocket your Machine Learning career: Awesome Machine Learning Resources:- For ...
[ { "code": null, "e": 350, "s": 171, "text": "In this post, I will explain Logistic Regression in simple terms. It could be considered a Logistic Regression for dummies post, however, I’ve never really liked that expression." }, { "code": null, "e": 450, "s": 350, "text": "Before ...
Through the proxy — conda, git and pip | by Thomas Bury | Towards Data Science
Have you ever been tempted to burn your company down to ashes, up to the last server and leave to start a hermit life in the Siberian tundra because of the company’s proxy? If yes, don’t buy yet your survival kit. Here is an effortless way to automate the proxy settings for Conda, GIT and pip in a single step. When wor...
[ { "code": null, "e": 345, "s": 172, "text": "Have you ever been tempted to burn your company down to ashes, up to the last server and leave to start a hermit life in the Siberian tundra because of the company’s proxy?" }, { "code": null, "e": 484, "s": 345, "text": "If yes, don’t...
Nodejs | Web Crawling using Cheerio - GeeksforGeeks
10 Nov, 2021 By sending HTTP request to a particular URL and then by extracting HTML of that web page for getting useful information is known as crawling or web scraping. Modules to be used for crawling in Nodejs: request: For sending HTTP request to the URLcheerio: For parsing DOM and extracting HTML of web pagefs: Fo...
[ { "code": null, "e": 24948, "s": 24920, "text": "\n10 Nov, 2021" }, { "code": null, "e": 25106, "s": 24948, "text": "By sending HTTP request to a particular URL and then by extracting HTML of that web page for getting useful information is known as crawling or web scraping." },...
Five R Markdown tricks that you may not know about | by Keith McNulty | Towards Data Science
Many of you who regularly read my articles will know how much of a fan of R Markdown I am. It is hands down the best data science publishing software, and as well as being completely free it is also constantly being developed to be better and more flexible. As I go along, I keep picking up new tricks to make my life ea...
[ { "code": null, "e": 430, "s": 172, "text": "Many of you who regularly read my articles will know how much of a fan of R Markdown I am. It is hands down the best data science publishing software, and as well as being completely free it is also constantly being developed to be better and more flexibl...
Understanding HTML Form Encoding: URL Encoded and Multipart Forms - GeeksforGeeks
08 Mar, 2021 HTML forms contain two encodings, the URL Encoded Forms and the multipart Forms. The encoding in an HTML form is determined by an attribute named ‘enctype‘. This attribute can have three values: application/x-www-form-urlencoded: This value represents a URL (Uniform Resource Locator) encoded form. By defau...
[ { "code": null, "e": 24503, "s": 24475, "text": "\n08 Mar, 2021" }, { "code": null, "e": 24698, "s": 24503, "text": "HTML forms contain two encodings, the URL Encoded Forms and the multipart Forms. The encoding in an HTML form is determined by an attribute named ‘enctype‘. This a...
R Squared Interpretation | R Squared Linear Regression | by Cory Maklin | Towards Data Science
Machine learning involves a lot of statistics. In the proceeding article, we’ll take a look at the concept of R-Squared which is useful in feature selection. Correlation (otherwise known as “R”) is a number between 1 and -1 where a value of +1 implies that an increase in x results in some increase in y, -1 implies that...
[ { "code": null, "e": 330, "s": 172, "text": "Machine learning involves a lot of statistics. In the proceeding article, we’ll take a look at the concept of R-Squared which is useful in feature selection." }, { "code": null, "e": 834, "s": 330, "text": "Correlation (otherwise known...
C# Enum TryParse() Method
The TryParse() method converts the string representation of one or more enumerated constants to an equivalent enumerated object. Firstly, set an enum. enum Vehicle { Bus = 2, Truck = 4, Car = 10 }; Now, let us declare a string array and set some values. string[] VehicleList = { "2", "3", "4", "bus", "Truck", "CAR" }; N...
[ { "code": null, "e": 1191, "s": 1062, "text": "The TryParse() method converts the string representation of one or more enumerated constants to an equivalent enumerated object." }, { "code": null, "e": 1213, "s": 1191, "text": "Firstly, set an enum." }, { "code": null, ...
Convex Hull Example in Data Structures
Here we will see one example on convex hull. Suppose we have a set of points. We have to make a polygon by taking less amount of points, that will cover all given points. In this section we will see the Jarvis March algorithm to get the convex hull. Jarvis March algorithm is used to detect the corner points of a convex...
[ { "code": null, "e": 1312, "s": 1062, "text": "Here we will see one example on convex hull. Suppose we have a set of points. We have to make a polygon by taking less amount of points, that will cover all given points. In this section we will see the Jarvis March algorithm to get the convex hull." ...
How to Extract Relevant Keywords with KeyBERT | by Ahmed Besbes | Towards Data Science
There are many powerful techniques that perform keywords extraction (e.g. Rake, YAKE!, TF-IDF). However, they are mainly based on the statistical properties of the text and don’t necessarily take into account the semantic aspects of the full document. KeyBERT is a minimal and easy-to-use keyword extraction technique th...
[ { "code": null, "e": 424, "s": 172, "text": "There are many powerful techniques that perform keywords extraction (e.g. Rake, YAKE!, TF-IDF). However, they are mainly based on the statistical properties of the text and don’t necessarily take into account the semantic aspects of the full document." ...
C++ Program to Implement Multiset in STL
A multiset is a type of associative container in which has multiple elements can have same values. Functions are used here: ms.size() = Returns the size of multiset. ms.insert) = It is used to insert elements to the multiset. ms.erase() = Removes the value from the multiset. ms.find() = Returns an iterator ...
[ { "code": null, "e": 1161, "s": 1062, "text": "A multiset is a type of associative container in which has multiple elements can have same values." }, { "code": null, "e": 1682, "s": 1161, "text": "Functions are used here:\n ms.size() = Returns the size of multiset.\n ms.inser...
How to declare, define and call a method in Java?
Following is the syntax to declare a method in Java. modifier return_type method_name(parameters_list){ //method body } Where, modifier − It defines the access type of the method and it is optional to use. modifier − It defines the access type of the method and it is optional to use. return_type − Method may return...
[ { "code": null, "e": 1115, "s": 1062, "text": "Following is the syntax to declare a method in Java." }, { "code": null, "e": 1186, "s": 1115, "text": "modifier return_type method_name(parameters_list){\n //method body\n}\n" }, { "code": null, "e": 1193, "s": 118...
Image Clustering Using k-Means. Using transfer learning model for... | by Shubham Gupta | Towards Data Science
In an image classification problem we have to classify a given set of images into a given number of categories. Training data is available in classification problem but what to do when there is no training data available, to solve this problem we can use clustering to group similar images together. Clustering is an uns...
[ { "code": null, "e": 472, "s": 172, "text": "In an image classification problem we have to classify a given set of images into a given number of categories. Training data is available in classification problem but what to do when there is no training data available, to solve this problem we can use ...
What is the difference between ng-if and data-ng-if directives ? - GeeksforGeeks
23 Jul, 2019 The ng-if is a directive in AngularJS which is used to remove the HTML element if the value of the expression or variable is false, unlike ng-hide which just hides the HTML element from the DOM. Syntax: <element angular_directive=expression> Contents... </element> There are few other options which behave l...
[ { "code": null, "e": 24718, "s": 24690, "text": "\n23 Jul, 2019" }, { "code": null, "e": 24913, "s": 24718, "text": "The ng-if is a directive in AngularJS which is used to remove the HTML element if the value of the expression or variable is false, unlike ng-hide which just hides...
GATE | GATE CS 2019 | Question 6 - GeeksforGeeks
13 Feb, 2019 Ten friends planned to share equally the cost of buying a gifts for their teacher. When two of them decided not to contribute, each of the other friends had to pay Rs. 150 more. The cost of the gift was Rs. _________ .(A) 666(B) 3000(C) 6000(D) 12000Answer: (C)Explanation: Let share of each student = x Sin...
[ { "code": null, "e": 24368, "s": 24340, "text": "\n13 Feb, 2019" }, { "code": null, "e": 24672, "s": 24368, "text": "Ten friends planned to share equally the cost of buying a gifts for their teacher. When two of them decided not to contribute, each of the other friends had to pay...
Check whether two strings are equivalent or not according to given condition in Python
Suppose we have two strings s and t of same size. We have to check whether s and t are equivalent or not. There are few conditions to check: They both are equal. Or, If we divide the s into two contiguous substrings of same size and the substrings are s1 and s2 and also divide t same like, s into t1 and t2, then one of...
[ { "code": null, "e": 1203, "s": 1062, "text": "Suppose we have two strings s and t of same size. We have to check whether s and t are equivalent or not. There are few conditions to check:" }, { "code": null, "e": 1228, "s": 1203, "text": "They both are equal. Or," }, { "c...
Building Your Own Deep Learning Computer And Saving Money on Cloud Services | by Chris Fotache | Towards Data Science
After struggling with Microsoft Azure’s GPU VM’s for a few years, and hearing that Amazon’s AWS is not much better, I decided it’s time to have my own local deep learning machine. One of my main reasons was that the cloud VM doesn’t have a display, therefore you can’t do anything visually. No big deal if you just train...
[ { "code": null, "e": 352, "s": 172, "text": "After struggling with Microsoft Azure’s GPU VM’s for a few years, and hearing that Amazon’s AWS is not much better, I decided it’s time to have my own local deep learning machine." }, { "code": null, "e": 654, "s": 352, "text": "One of...
ps command in Linux with Examples - GeeksforGeeks
10 Jan, 2022 As we all know Linux is a multitasking and multi-user systems. So, it allows multiple processes to operate simultaneously without interfering with each other. Process is one of the important fundamental concept of the Linux OS. A process is an executing instance of a program and carry out different tasks ...
[ { "code": null, "e": 24550, "s": 24519, "text": " \n10 Jan, 2022\n" }, { "code": null, "e": 24886, "s": 24550, "text": "As we all know Linux is a multitasking and multi-user systems. So, it allows multiple processes to operate simultaneously without interfering with each other. P...
How to set margin of ImageView using code in Android?
This example demonstrates how do I set margin of ImageView using code in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encoding="utf-8"?> <Rela...
[ { "code": null, "e": 1144, "s": 1062, "text": "This example demonstrates how do I set margin of ImageView using code in android." }, { "code": null, "e": 1273, "s": 1144, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required deta...
Differentiate the modulo and division by using C Programming language?
Modulo − Represents as % operator. And gives the value of the remainder of an integer division. Division − represents as / operator. And gives the value of the quotient of a division. #include<stdio.h> int main(){ int a,b,c; printf("enter a,b,c values:"); scanf("%d%d%d,&a,&b,&c); printf("a/b=%d a%b=%d\n",...
[ { "code": null, "e": 1097, "s": 1062, "text": "Modulo − Represents as % operator." }, { "code": null, "e": 1159, "s": 1097, "text": " And gives the value of the remainder of an integer division." }, { "code": null, "e": 1196, "s": 1159, "text": "Division − rep...
Date Class in C#
To set dates in C#, use DateTime class. The DateTime value is between 12:00:00 midnight, January 1, 0001 to 11:59:59 P.M., December 31, 9999 A.D. Let’s create a DateTime object. Live Demo using System; class Test { static void Main() { DateTime dt = new DateTime(2018, 7, 24); Console.WriteLine (dt.ToStr...
[ { "code": null, "e": 1208, "s": 1062, "text": "To set dates in C#, use DateTime class. The DateTime value is between 12:00:00 midnight, January 1, 0001 to 11:59:59 P.M., December 31, 9999 A.D." }, { "code": null, "e": 1240, "s": 1208, "text": "Let’s create a DateTime object." }...
How to use #if..#elif...#else...#endif directives in C#?
All preprocessor directives begin with #, and only white-space characters may appear before a preprocessor directive on a line. Preprocessor directives are not statements, so they do not end with a semicolon (;). The #if directive allows testing a symbol or symbols to see if they evaluate to true. It allows to create a...
[ { "code": null, "e": 1275, "s": 1062, "text": "All preprocessor directives begin with #, and only white-space characters may appear before a preprocessor directive on a line. Preprocessor directives are not statements, so they do not end with a semicolon (;)." }, { "code": null, "e": 136...
C++ Vector Library - size() Function
The C++ function std::vector::size() returns the number of elements present in the vector. Following is the declaration for std::vector::size() function form std::vector header. size_type size() const; size_type size() const noexcept; None Returns the actual objects present in vector, which may be differ than storage...
[ { "code": null, "e": 2694, "s": 2603, "text": "The C++ function std::vector::size() returns the number of elements present in the vector." }, { "code": null, "e": 2781, "s": 2694, "text": "Following is the declaration for std::vector::size() function form std::vector header." }...
C++ Fstream Library - rdbuf Function
It returns a pointer to the internal filebuf object. Following is the declaration for fstream::rduf. filebuf* rdbuf() const; It returns a pointer to the internal filebuf object. Strong guarantee − if an exception is thrown, there are no changes in the stream buffer. It accesses the stream object. It accesses the stream...
[ { "code": null, "e": 2656, "s": 2603, "text": "It returns a pointer to the internal filebuf object." }, { "code": null, "e": 2704, "s": 2656, "text": "Following is the declaration for fstream::rduf." }, { "code": null, "e": 2728, "s": 2704, "text": "filebuf* r...
Keyword arguments in Python
Keyword arguments are related to the function calls. When you use keyword arguments in a function call, the caller identifies the arguments by the parameter name. This allows you to skip arguments or place them out of order because the Python interpreter is able to use the keywords provided to match the values with par...
[ { "code": null, "e": 1225, "s": 1062, "text": "Keyword arguments are related to the function calls. When you use keyword arguments in a function call, the caller identifies the arguments by the parameter name." }, { "code": null, "e": 1473, "s": 1225, "text": "This allows you to ...
Solving Travelling Salesperson Problems with Python | by Genevieve Hayes | Towards Data Science
mlrose provides functionality for implementing some of the most popular randomization and search algorithms, and applying them to a range of different optimization problem domains. In this tutorial, we will discuss what is meant by the travelling salesperson problem and step through an example of how mlrose can be used...
[ { "code": null, "e": 353, "s": 172, "text": "mlrose provides functionality for implementing some of the most popular randomization and search algorithms, and applying them to a range of different optimization problem domains." }, { "code": null, "e": 506, "s": 353, "text": "In th...
Job Sequencing with Deadline
In job sequencing problem, the objective is to find a sequence of jobs, which is completed within their deadlines and gives maximum profit. Let us consider, a set of n given jobs which are associated with deadlines and profit is earned, if a job is completed by its deadline. These jobs need to be ordered in such a way ...
[ { "code": null, "e": 2739, "s": 2599, "text": "In job sequencing problem, the objective is to find a sequence of jobs, which is completed within their deadlines and gives maximum profit." }, { "code": null, "e": 2949, "s": 2739, "text": "Let us consider, a set of n given jobs whi...
GitLab - Referencing Issues
GitLab can be able to refer the specific issue from the commit message to solve a specific problem. In this chapter, we will discuss about how to reference a issue in the GitLab − Step 1 − To reference a issue, you need to have an issue number of a created issue. To create an issue, refer the creating issue chapter. St...
[ { "code": null, "e": 2504, "s": 2324, "text": "GitLab can be able to refer the specific issue from the commit message to solve a specific problem. In this chapter, we will discuss about how to reference a issue in the GitLab −" }, { "code": null, "e": 2642, "s": 2504, "text": "St...
5 Awesome Things To Love About The Julia Language | by Emmett Boudreau | Towards Data Science
I have been using (and praising) the Julia programming language for years now. As of today, I have written 346 articles here on Medium, and those articles started from one source article, which was about the Julia language. In that article, I touched on the things a Data Scientist might want to know before picking up t...
[ { "code": null, "e": 600, "s": 172, "text": "I have been using (and praising) the Julia programming language for years now. As of today, I have written 346 articles here on Medium, and those articles started from one source article, which was about the Julia language. In that article, I touched on t...
How to set icon to a window in PyQt5 ?
26 Mar, 2020 When we design a PyQt5 application we see an icon on the top left corner, by default it looks like this : In this tutorial, we will see how to change the icon according to the user need, in order to do this we use setWindowIcon() method and to load the icon QIcon will be used which belongs to QtGui class. ...
[ { "code": null, "e": 53, "s": 25, "text": "\n26 Mar, 2020" }, { "code": null, "e": 159, "s": 53, "text": "When we design a PyQt5 application we see an icon on the top left corner, by default it looks like this :" }, { "code": null, "e": 360, "s": 159, "text": ...
Java Program to Merge Two Arrays
15 Oct, 2020 Given two arrays, the task is to merge or concatenate them and store the result into another array. Examples: Input: arr1[] = { 1, 3, 4, 5}, arr2[] = {2, 4, 6, 8}Output: arr3[] = {1, 3, 4, 5, 2, 4, 6, 8} Input: arr1[] = { 5, 8, 9}, arr2[] = {4, 7, 8}Output: arr3[] = {5, 8, 9, 4, 7, 8} Method 1: Using Prede...
[ { "code": null, "e": 53, "s": 25, "text": "\n15 Oct, 2020" }, { "code": null, "e": 153, "s": 53, "text": "Given two arrays, the task is to merge or concatenate them and store the result into another array." }, { "code": null, "e": 163, "s": 153, "text": "Examp...
Move last element to front of a given Linked List
24 Jun, 2022 Write a function that moves the last element to the front in a given Singly Linked List. For example, if the given Linked List is 1->2->3->4->5, then the function should change the list to 5->1->2->3->4. Algorithm: Traverse the list till last node. Use two pointers: one to store the address of last node an...
[ { "code": null, "e": 53, "s": 25, "text": "\n24 Jun, 2022" }, { "code": null, "e": 257, "s": 53, "text": "Write a function that moves the last element to the front in a given Singly Linked List. For example, if the given Linked List is 1->2->3->4->5, then the function should chan...
C Program to Multiply two Floating Point Numbers
22 Apr, 2022 Given two floating numbers A and B. The task is to write a program to find the product of these two numbers. Examples: Input: A = 2.12, B = 3.88 Output: 8.225600 Input: A = 3.78, B = 6.32 Output: 23.889601 In the below program to multiply two floating point numbers, the user is first asked to enter two fl...
[ { "code": null, "e": 53, "s": 25, "text": "\n22 Apr, 2022" }, { "code": null, "e": 173, "s": 53, "text": "Given two floating numbers A and B. The task is to write a program to find the product of these two numbers. Examples:" }, { "code": null, "e": 260, "s": 173...
SAP UI5 - Data binding
In SAP UI5, data binding concept is used to update the data automatically by binding the data with the controls that holds the application data. Using data binding, you can bind simple controls like text field, simple button to application data, and data is automatically updated when there is a new value. Using two-way...
[ { "code": null, "e": 2482, "s": 2175, "text": "In SAP UI5, data binding concept is used to update the data automatically by binding the data with the controls that holds the application data. Using data binding, you can bind simple controls like text field, simple button to application data, and dat...
Transparent Scatterplot Points in Base R and ggplot2
14 Sep, 2021 In this article, we are going to see how to make transparent scatterplot points in the R programming language. Here we will use alpha parameter inside the plot. It is used to modify color transparency, alpha value=1 is by default and if we make the alpha value nearer to zero it will be making the object mo...
[ { "code": null, "e": 28, "s": 0, "text": "\n14 Sep, 2021" }, { "code": null, "e": 139, "s": 28, "text": "In this article, we are going to see how to make transparent scatterplot points in the R programming language." }, { "code": null, "e": 441, "s": 139, "tex...