Intermittent fasting is a buzz word and it is making rounds on the internet. Let us understand the importance of fasting in our life style and little science behind it.
The practice of fasting is observed from ancient Indian history to till date as a religious ritual. Back then, Ancient Rishis (Saints) has experimented with fasting and passed on to generations as a religious ritual. Many religions has been practicing fasting as a part of their religious rituals.
Let us understand in detail what is Fasting and why it is called as a great medicine?
Fasting is the willful refraining…
I love statistics and probabilities and those subjects make my life more intriguing. Let us look into some of the things in our life from statistical and probabilistic perspective.
In this article, we will go through skills, chances and probabilities and I’ll tell you how important are those with some examples using basic statistics and probabilities.
What is a skill?
It is a learned ability to perform an action with determined results with good execution often within a given amount of time, energy, or both.
Let us take few example skills like
What is a chance…
In this article, we will go through blueprints in Flask. If you want some basics on how Flask application works, I recommend you to read my previous article on Flask — Micro web framework explained in 5 minutes.
In Flask, Blueprints allows us to break our application into modules and helps us to organize the modules in some fashion. These modules are de-coupled and also can be re-used.
For e.g.; Let us assume we have an E-commerce application, we can divide our application into different modules like inventory management, user-data management, order management, delivery management.
A blueprint will also have…
In this article, I will share my lessons from one year of trading in cryptocurrency and stock market.
Nationwide lockdown was announced back in the March 2020 due to Pandemic. I always wanted to learn new things, do research, take challenges and solve some problems. I wanted to do learn something new in lockdown and I was exploring options. One day When I was reading news, I came across news about plunge of all countries markets. That day, I have decided to enter into markets, learn about trading and then play the game.
When I started, I don’t know anything…
In this article, we will deep dive into python decorators. We will discuss on what is the logic behind decorators, how to create them and how to use them in detail.
In simple words, a decorator is used to modify or extend the existing functionality with out modifying the original function.
Before diving into decorators, we need to understand some basics of first-class objects. In Python, functions are first-class objects. We can assign functions to variables, store in data structures, pass functions as arguments and return function as an output.
Assigning function to a variable
In the above example…
In the post, We will go through Flask overview and write simple HTTP APIs in Flask.
Let us understand first what is Flask — Micro web framework?
Flask is a micro web framework that aims to keep the core (i.e.; building HTTP APIs) simple but at the same time extensible.
Flask enables you to get started quickly with the web development and as and when you grow your application use the extensions as per the requirements.
If you have not read my previous posts, Please read it.
We will be discussing few important points about Celery Workers, Pool and its concurrency configurations in this post.
Celery Worker is the one which is going to run the tasks.
celery -A tasks worker --pool=prefork --concurrency=1 --loglevel=info
Above is the command to start the worker.
We will explore those command line options.
-A, --app <app>
This expects our python module in which celery object is created.
is an option used to start the celery worker.
It is for logging.
DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL can be used.
In my previous post, I have introduced you to Celery and a little hands-on on it. If you have not read my previous post, please read.
In this post, We will discuss on Why, When and Where we have to use the Python Celery in different Software or Application systems.
Celery can be used if
a) You want to run some tasks in the background.
b) You want to offload some tasks(long running or time taking or CPU consuming) to Celery workers running on different machines to improve response of main Application Server.
c) You want to schedule the…
Hello, I have used Celery extensively in my projects at my company. In this series, I’ll demystify everything about Python Celery, it’s applications, my experiences and experiments with Celery in detail.
What is Celery? (Let’s get it’s definition from Official website first.)
Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a system.
It’s a task queue with focus on real-time processing, while also supporting task scheduling.
Above definition sounds so complicated right? Don’t worry. …
I was searching for open source Machine Learning data annotation platforms for annotating text and images for our business requirement at my company. I came across multiple opensource tools like LabelImg, ImageTagger and Dataturks. I’ve deep dived into above tools and figured out Dataturks tool is the best tool which fits our need.
Dataturks can used in two ways.
It’s free. User can sign up and, create datasets, upload text data/images/videos and start annotation. When we upload text documents/images/videos, it gets uploaded into their cloud.
2. On-Prem Version
I ♥️ to explain things as simple as possible. I ♥️ maths, stats, software development, philosophy & trading. I'm a software engineer💻, writer📝, trader📈 .