How can we know the number of days between two given dates using MySQL?
DATEDIFF function is use for finding the number of days between two given dates using MySQL DATEDIFF(‘2018-03-07′,’2017-01-01’)
Shutdown a window system through RUN or Command Prompt
SHUTDOWN | A CLI command for Windows It's really cool to shutdown your computer through Run command or command prompt. Actually shutdown is a CLI (command line interface) command or function which is use to …
Python program for bubble sort
Python | Bubble sort program Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are not in the right order. This is an example for bubble sort …
Factorial program in python
Python | Program to find factorial of a number This is an example of how to find the factorial of a number in python. The factorial of a number is a product of all the positive …
Initialize a local Git repository
Git init | Initialize a local Git repository The git init command creates a new Git repository in local. This is usually the first command you will run before working on a new project. git …
What is the difference between JavaScript and JQuery
JQuery | Difference between JavaScript and JQuery Javascript is a client-side scripting language whereas jQuery is a library (or framework) built with JavaScript. Javascript JQuery javascript is a dynamic and interpreted client-side scripting language …
What is HTML Elements
HTML | What is HTML Elements HTML elements help to create a webpage. It consists of a start tag, some content, and an end tag. Everything from the start tag to the end tag …
Factorial program in python using recursion
Python | Program to find factorial of a number using recursive function This is an example of how to find the factorial of a number in python using a recursive function. The factorial of a …
What is tag in HTML?
HTML | Basic tags A tag is a string in the language enclosed in angle brackets. An opening tag does not begin with a slash (/). An ending or closing tag is a string that …
Fibonacci series in python
Python | Fibonacci series This is an example of how to print the Fibonacci series. It takes an input number from the user to print the Fibonacci series. The Fibonacci series is a sequence of …
Give an example of Transaction with commit and rollback?
PHP-MySQL | Transaction with commit and rollback try { // First of all, let's begin a transaction $db->beginTransaction(); // A set of queries; if one fails, an exception should be thrown which we are handling at …
Why is Django called a loosely coupled framework?
Django | Loosely Coupled Framework Django is called a loosely coupled framework because of its MVT architecture, which is a variant of the MVC architecture. It helps in separating the server code from the client-related code. Django’s …
Python check the memory usage of an object
Python | Check the memory usage of an object >>> import sys >>> x = 100 >>> print(sys.getsizeof(x)) 28
Explain Django's code reusability.
Compared to other frameworks, Django offers more code reusability. As Django is a combination of apps, copying those apps from one directory to another with some tweaks to the settings.py file won't need much time …