Skip to main content

Posts

2022

__init__ vs __new__ and When to Use Them

·5 mins
Introduction # I recently got asked to me what did __init__ dunder method did in Python. And I was like, “it is used to initialize variables inside a class”. And just after that, the follow-up question was, “then what is __new__ used for. And I was completely blank and was not able to answer that. I was not able to answer that question because there are not many tutorials out there that talk about __new__. I didn’t want to happen this with you. And that is why I came up with this blog post for you.

How to Setup a Jenkins to DockerHub Pipeline with Multi-Arch Images

·14 mins
Introduction # We have previously seen how to set up a GitHub to Jenkins pipeline with webhooks, this time we are going to continue on that lesson and learn how to configure Jenkins to build docker images and push Docker images to DockerHub. We’ll also see how to create images for both arm64 as well as amd64 architectures machines. Keep on reading.

How to Setup a GitHub to Jenkins Pipeline with WebHooks

·11 mins
Introduction # In a typical CI/CD pipeline, what happens is when you push your code to a code repository (remote) like GitHub/GitLab/BitBucket, an event is triggered by the git host provider. This trigger is known as WebHook. This webhook can be used by some third-party service to provide an array of integrations. Do you want to tweet on every git push? You can do that.

I Tried Open edX and it's Awesome

·7 mins
Introduction # Ed-tech industry in India was valued at US$750 million in 2020, and is projected to be $1.04 billion by 2021. (source) I am documenting the process of edx installation on local system for evaluating. I’m not doing a comparision with any similar product here. Also, I’m writing this post from a develper’s perspective of course, because I’m a software developer. Don’t expect any business related expertise from here.

This is how OOPs and Mocking are related to Dependency Injection

·12 mins
Introduction # There are a few words, like unit testing, integration testing, mocking, dependency injection, object oriented proramming. These are all friends, and areall related to each other. In this post I’m going to talk how, and then it will start to make sense to you. This post is divided into these subsections: Preamble The Testing part The OOPs part The dependency injection part A real life problem I’ll start with how I started with unit testing.

2021 in Review: Flowtime, Cloud Native, InfoSec, DevOps, Jenkins and more

·9 mins
Introduction # When 2021 started, we were already in the middle of pandemic. Working from home was a new experience. Companies in multimedia industry don’t provide work from home to their employees due to their tight compliance. But this pandemic redefined that workflow and gave us this opportunity. That too for all of us. The Retrospective Starfish Model by Visual Thinkery I had mixed experience with work from home. Yes, we don’t get to see our collegues face to face. We have to be in front of webcam for that. I really wished virtual reality was so common that companies has made it default for meeting. 😅

2021

TDD Approach to Create an Authentication System With FastAPI Part 2

·15 mins
Introduction # In the last post in the series we did the project setup and seen some FastAPI basics along with red-green-refactor mantra of TDD. We know that FastAPI comes with inbuilt integration of SwaggerUI. We also know that FastAPI makes use of non-blocking code to make who thing lightning fast. With that said, let’s jump into our second part of the series which is about database setup and user registration.

Create Thumbnail Worker With S3 and Lambda: Make the Thumbnail

·9 mins
Introduction # This is second and final post in the series of creating a S3 thumbnail system with Lambda. You must already be aware of the prerequisites from the last section. To follow this post, familarity with Python would benifit. This is second part of the 2 section tutorial: Test the Trigger Make the Thumbnail (you are here) We are doing Make the Thumbnail.

Wildcard Domain Certificate Using Route53 and Let's Encrypt

Introduction # I have already posted about how we can automate installation of Jenkins & Nginx with Ansible. I have also done a post where I talk about how to enable HTTPS on a non-wildcard basis i.e. only for the root domain and not on subdomain. Today I’ll go through how go get and configure a HTTPS certificate from Let’s Encrypt for all the subdomain. I’ll automate all these using Ansible.

A TDD Approach to Creating an Authentication System with FastAPI, Part 1

·8 mins
Introduction # I have been tinkering with this new framework and have a little bit of experience with FastAPI as of now. What I’ve though of is to do a post about authentication and authorization. I’m sure going to do a registration and login system and nothing fancy this time. I am going to use JWT as authorization mechanism. This is mostly a walkthrough of new features in Python.

General Lifestyle Tips and Tricks for Programmers

·4 mins
Introduction # In teenage days, I got misled by some movie that we should live life free style. Perhaps that was not the main message of the movie, but I started chilling in life. But as everybody knows, life has to change its direction… Importance of following a Routine # But now in life I have started to encounter that routine is important. It helps keep things easy and in manner.