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 …

Last updated 5 years, 4 months ago | 2167 views

Tags:- JQuery JavaScript

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 …

Last updated 8 years, 1 month ago | 2161 views

Tags:- PHP PHP-MySQL

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 …

Last updated 5 years, 6 months ago | 2130 views

Tags:- Python

Python | Global, Protected, and Private Global, Protected, and Private access modifiers in Python. Python does not use these keywords to control access modifications instead single and double underscore  ‘_’ symbols are used to specify Protected and  Private to determine the access control. …

Last updated 4 years, 4 months ago | 2128 views

Tags:- Python

Primitive data types are Integers, Float, Strings, and Boolean. Non-primitive data types are Array, List, Tuples, Dictionary, Sets, and Files.    

Last updated 4 years, 4 months ago | 2123 views

Tags:- Python

Python | Send an email To send an email, Python provides smtplib and email modules. Import these modules into the created mail script and send mail by authenticating a user. It has a method SMTP(smtp-server, port). …

Last updated 4 years, 4 months ago | 2063 views

Tags:- Python

Python | Lambda function A lambda function is a small anonymous function. This function can have any number of parameters but, can have just one statement.     Syntex:  lambda arguments : expression   a = lambda x,y : …

Last updated 4 years, 4 months ago | 2030 views

Tags:- Python

Python | Exception Handling Python has many built-in exceptions that are raised when your program encounters an error. Try and Except Statement – Catching Exceptions: Try and except statements are used to catch and handle …

Last updated 4 years, 4 months ago | 2027 views

Tags:- Python

Django | Meta Class A Meta class is simply an inner class that provides metadata about the outer class in Django. It defines such things as available permissions, associated database table name, singular and plural versions …

Last updated 4 years, 4 months ago | 2024 views

Tags:- Django

Django | Request/Response Cycle Whenever a request is received by the Django server. The Request is processed by various middlewares and is passed to the URL Router. Then, the server looks for a matching URL in the urlpatterns …

Last updated 4 years, 4 months ago | 2004 views

Tags:- Django

Python | lists, and tuples Lists and Tuples both are sequence data types that can store a collection of objects in Python. They are both heterogeneous data types means that you can store any kind of …

Last updated 4 years, 4 months ago | 2001 views

Tags:- Python

Python | Monkey Patching In Python, the term monkey patch only refers to dynamic modifications of a class or module at run-time.   # m.py class A: def func(self): print("Hi") import m def monkey(self): print …

Last updated 4 years, 4 months ago | 1999 views

Tags:- Python

Python | Delete a file Using command  os.remove(file_name)   Use the os module to delete a file, we need to first import it, and then use the remove() function provided by the module to delete the file. It …

Last updated 4 years, 4 months ago | 1979 views

Tags:- Python

A few common security issues that can be avoided by using Django are: Clickjacking Cross-site scripting and SQL injection

Last updated 4 years, 2 months ago | 1974 views

Tags:- Python