Difference between window.onload and $(document).ready()

Do you think $(document).ready() and window.onload are the same thing? Do you use one for the other? Do you use them interchangeably? If you do so, you are wrong. $(document).ready() and window.onload are not the same thing. What did you

Read More Difference between window.onload and $(document).ready()

What is a Java Bean? Is it Just Any Java Class?

javabeans

What is a Java Bean? Is it just any java class? The answer is no! Many people think when they say “Java Bean” they are talking about just any java class, but this is not the case. A Bean is

Read More What is a Java Bean? Is it Just Any Java Class?

Difference Between URI, URL and URN

What is a URI? URI (Uniform Resource Identifier) is a series of characters to identify a resource. It has the following format: scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment] Here the “scheme” is mistaken for protocols. Schemes are not protocols. Many schemes have been designed to

Read More Difference Between URI, URL and URN

How Kerberos Works

how kerberos works

Kerberos is a computer network authentication protocol that was developed by MIT. An open source, free implementation is available from MIT as well as commercial implementations from other vendors. Kerberos is the native authentication protocol in Active Directory. Here is how

Read More How Kerberos Works

What is “related_name” used for in Django

django related_name

related_name is an attribute you use while defining relations like many-to-one, many-to-many, one-to-one etc. The value of this attribute is used as the name of the reverse relation between models. Example:

Here we define a many-to-one relation using a

Read More What is “related_name” used for in Django

Python – Difference between “.append()” and “+= []”

In my new Django project, I was trying to append a list of tuples (which contained more than 1 tuple in it) into another list of tuples. Then I got this error: ValueError: too many values to unpack (expected 2) I

Read More Python – Difference between “.append()” and “+= []”

Difference between a Framework and a Library

difference-library-framework

Recently, I heard 2 of my friends talking about the difference between a framework and a library, and I thought some may need a clear explanation to see the difference. Check out the simple diagram below. Library A library is essentially

Read More Difference between a Framework and a Library