What is Forward Error Correction?Forward Error Correction (FEC) is a way of getting error control in data transmission in which the source (transmitter) provides redundant data and the destination (receiver) recognizes only the portion of the data that is error-free. FEC can broadcast data to several destinations simultaneously from a single source because it does not require handshaking between the source and the destination.Each character is conveyed twice in the simplest form of FEC.The receiver verifies that both instances of each character follow the protocol in use.If both conformance cases occur, the character is accepted.If one instance of conformance occurs ... Read More
DjVu is a computer file format created to hold scanned documents, particularly ones that include text, line drawings, indexed color pictures, and photographs. It uses various methods such as image layer separation of text and background/pictures, progressive loading, arithmetic coding, and lossy compression for bitonal (monochrome) images to compress the files.People who want to distribute high-resolution documents in the public domain need a lossy compression technique to deliver a high compression rate. These documents are usually read in a web browser. The compression technique employed should have a rapid decoding rate to allow displaying such a high-resolution document in a ... Read More
WiFi networks are getting more and more common. WiFi has applications in interior and outdoor localization, home automation, and physical analytics and provides network connectivity.SSID is short for Service Set Identifier, which is the name for a WiFi network in layman's terms. SSID is a name for the network that is used to identify a wireless network. But don't get confused. SSID is not the name that we assign to a wireless router though it may be the name shown to users. Instead, SSID is a different 32-Octet string that distinguishes any other nearby network name.SSID acts as a street ... Read More
Djoser is a simple authentication library for Django. It is used to generate tokens for authentication; this generated token is generated by taking three fields: username, email and password. It only works on POST request, but you can add its frontend.ExampleCreate a Django project and an app. I named them "DjoserExample" and "myapp".Install two packages −pip install djoser pip install djangorestframeworkIn settings.py, add the following lines −INSTALLED_APPS = [ #below every other apps 'myapp', 'rest_framework', 'rest_framework.authtoken', 'djoser' ] # Below template variable REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.TokenAuthentication', ), ... Read More
We get to see Social Share buttons on most of the websites. They play an important role in ecommerce or any blogging or affiliate sites. As a web developer, you surely want people to like your website and want them to tell about your site to others on social media.In this article, we will see how to make an automated website share social button.ExampleFirst of all, create a project and an app.Install the django-social-share package −pip install django-social-shareIn settings.py, add django_social_share as an app in project.INSTALLED_APPS += ['django_social_share']In project's urls.py −from django.contrib import admin from django.urls import path, include ... Read More
In this article, we are going to make a Django profiling. It will show a great deal of information like the total number of GET requests, database queries and many other reports for your website on a URL endpoint. It is great in production because you need to keep a check on many things when your site is in production.It is a great resource if you have to deploy a real-world project.ExampleFirst of all, create a project and an app. Do some basic settings and set up the urls.Now, install the djnago-silk package −pip install django-silkIn settings.py, add the following ... Read More
In this article, we will see how to make a table in Django which will render model data. We are not going to use the tag of html. We will use a simple Django table library which provides features to directly show Django model data in a table with pagination feature.ExampleFirst of all, create a project and an app and set up the urls.Install the django_tables2 package −pip install django_tables2In settings.py −INSTALLED_APPS+=["django_tables2"]In models.py, create a simple model for testing −from django.db import models # Create your models here. class Data(models.Model): Name=models.CharField(max_length=100) salary = models.CharField(max_length=20)In urls.py, add ... Read More
We sometimes need to generate the QR code of an URL in our website. QR codes are scanned for verification, website login, opening websites and many things like that. In this article, we will see how to implement that. We are going to create a qrgenerator website in Django.ExampleCreate a Django project and an app. Create a media folder at the same level of project and app.Go to settings.py in the project folder and add the app name in INSTALLED_APPS and add this at the bottom −MEDIA_ROOT = os.path.join(BASE_DIR, 'media/') MEDIA_URL = '/media/'Here we set up our media folder where ... Read More
Model history tracking is a feature which tracks the changes in model object, it tracks things like what change you made in it and when you deleted it. It also helps in the recovery of deleted object of model. In this article, we will take an example to see how to track a model object's history in Django.ExampleFirst of all, set up your project, apps, urls and a model.Install the django-simple-history library −pip install django-simple-historyIn settings.py −INSTALLED_APPS+=[" simple_history"] MIDDLEWARE = [ #other middle ware 'simple_history.middleware.HistoryRequestMiddleware', ]Here we added the "simple_history" module as app and a middleware.Here we don't ... Read More
Many online exam taking websites use text editors for text entries. image uploading, etc. Quill text editor is very popular and it also provides a model field to directly store in database. So, you don't need to configure anything extra to save its data in database.In this article, we will see how to make a text editor field in Django.First of all, create a Django project and an app. Do some basic settings like including urls of app. Create a media folder at the same level of project and app.In settings.py, add −INSTALLED_APPS = [ 'myapp.apps.MyappConfig', #django app ' django_quill' ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP