The C Preprocessor is a tool that is used to perform the pre-processing part before the actual compilation begins. Since the C compiler itself uses the C preprocessor to transform the source code before compiling,…
Homomorphic Encryption
In very simple words, Homomorphic Encryption (HE) is an encryption scheme that lets us compute on encrypted data/cipher text.Generally Encryption Schemes have 3 methods/functions -: 1. Key Generation2. Encryption3. DecryptionBut, Homomorphic Encryption comes with an…
Django : Pagination
Looking for something that could let you split your data across multiple pages in your Django application ? Want only specified number of results on every page and thus, have a list of pages to…
Django : The User Model
When I started working on my Django application, the first thing I wanted to do was to implement the Registration and Login functionality. In other words, what I wanted to implement was User Authentication. In…
Beautifying Alerts
It was when I was tired of searching methods to beautify the alerts in my new Django based Question Answer Forum Application without much headache, that I found an awesome thing called ‘Sweet Alert’. Yeah…
Bresenham's Line Algorithm For Slope > 1
Previously, I discussed the basic idea of Bresenham’s Line Algorithm. As it had been discussed in the previous post that when slope of line > 1, the shadow of line falls more on y-axis and…
The Bresenham's Line Drawing Algorithm
The basic ”line drawing” algorithm used in computer graphics is Bresenham’s Algorithm. This algorithm was developed to draw lines on digital plotters, but has found wide-spread usage in computer graphics. The algorithm is fast –…
LaTeX : The TikZ package
Tikz is probably the most complex and powerful tool to create graphic elements in LaTeX. The TikZ package allows you to draw high quality shapes and diagrams. To start using it, include the tikz package…
Git : Undoing Changes
Since Git has so many components, “undoing” can take on many different meanings. For example, you can: Undo changes in the working directory Undo changes in the staging area Undo an entire commit Unmodifying a…
Git : Ignoring Files
Did you ever accidentally push the compiled files( like .pyc files), log files or the executable files(.exe files) or files( such as settings.py ) that you never intend to ? If yes, then here’s the…