we can write custom validations for serializer fields in Django Rest Framework. Validators are used to validate the data whether it is semantically valid or not. Validation simplifies the data processing. Validation avoids the data redundancy .
Understand self and __init__ method in python Class?
Before understanding the "self" and "__init__" methods in python class, it's very helpful if we have the idea of what is a class and object.
object is one of instances of the class. which can perform the functionalities which are defined in the class.
self represents the instance of the class. By using the "self" keyword we can access the attributes and methods of the class in python.
Amazon Simple Queue Service (Amazon SQS) is a distributed messaging queue service.
Queued items in SQS are called messages which are variable in size but can be no larger than 256KB. SQS doesn’t guarantee delivery order or that a message will be delivered only once. Using Visibility Timeout we can ensures once a message has been retrieved it will not be resent for a given period of time.
HTTP Authentication is used to allow access limit to a site or particular directories by validating the username and password. HTTP basic authentication can also be combined with other access restriction methods, for example, restricting access by IP address or by geographical location.
React provides some specific methods which are executed when specific condition triggered in component. basically these methods are divided into 3 parts mounting component, updating component data and un-mounting component.
MACVLAN creates multiple virtual network interfaces with different MAC addresses. This way if your system has multiple IP addresses with MAC addresses then we can create multiple virtual network interfaces each having their own IP address and MAC address.
ReactJs is populer JS script library for building User Interface. It's components are reusable and efficiently manages the data that changes over time. In this blog post i am going to discuss component, state, props in ReactJS.
In this blog post, we will learn how to setup and use gitlab container registry to implement, test build and deploy your code automatically with Docker.
We are going to use a simple application called Gordan to prevent creating a lambda function and triggering actions which involves time taking and repetitive steps.
python class special methods or magic methods. magic methods allow us to override or add the default functionality of python objects. One of the biggest advantages of using Python's magic methods is that they provide a simple way to make objects behave like built-in types. That means you can avoid ugly, counter-intuitive, and nonstandard ways of performing basic operators.