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.
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.
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.
Recap # We have already seen how to enable HTTPS on a domain if you have a VPS and you are using Nginx. In one other post we have also talked about getting started with Ansible in which I wrote about basic concepts in Ansible such as inventory, module, playbook. We have also talked about Ansible Roles which are about directory structures.
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.
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.
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. 😅
Introduction # If you are following this series from start, you know that we can already create user from our API. But we have our tests failing right now, which is kind of smelly. In this post, we takle with the problem in our hand and discuss some methods we can do it with. One of them is dependency injection.
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.
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.
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.
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.
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.