Santhosh Balasa

Santhosh Balasa @sbalasa

About: Passionate Principal Software Developer around 13+ yrs of IT experience.

Location:
India
Joined:
Jun 21, 2020

Santhosh Balasa
articles - 25 total

List of free Quantum Toolkits

Here is a list of free Quantum Toolkits you can use for Quantum Computing: Penny Lane:...

Learn More 1 0Dec 10 '24

List of free AI Models

Here is a list of free AI models you can use for programming: Chat GPT:...

Learn More 423 11May 11 '24

ClickHouse ReplacingMergeTree Engine: The Airport & Flights Metaphor

Introduction To comprehend the inner workings of ClickHouse’s ReplacingMergeTree engine, let’s...

Learn More 5 0Oct 7 '23

Custom Middleware for FastAPI

This article describes a custom middleware designed for FastAPI applications. The middleware serves...

Learn More 10 0Aug 17 '23

ExpiringLRUCache and The CLOCK Algorithm: A Fun Dive into Python Caching

Introduction Caching is a common technique that programs use to speed up access to slow...

Learn More 7 0Jul 24 '23

Decorators in Rust

Code: // Define the macro. macro_rules! log_function { ($f:ident($($arg:expr),*)) => {{ ...

Learn More 12 0Jun 21 '23

Rust: Embrace the Pythonic Flair with F-String Style!

In Rust, there is no built-in macro that directly replicates the exact functionality of Python's...

Learn More 7 3Jun 21 '23

Top C++20/23 Features

1) Coroutines: Coroutines simplify asynchronous and concurrent programming by allowing functions to...

Learn More 17 2Apr 30 '23

Merge Command

Have you come across a situation where you have a very huge table Eg: 100 million rows and you need...

Learn More 2 0Oct 25 '22

Inverting a Binary Tree

Binary Tree: (4) / \ / \ (2) (7) / \ ...

Learn More 5 0Dec 23 '21

Tree Traversal in Python

Let's say we have the following tree: tree = { 5: [3, 7], 3: [2, 1], 7: [8], 2:...

Learn More 3 0Aug 27 '21

Finding shortest social connection path

Human connections are like networks, I know someone, and they know someone else and so on, It could...

Learn More 6 0Jun 25 '21

Interactive Algorithm Problem Solving

Top 13 links to interactively learn algorithm problem solving: -> Hacker Rank ...

Learn More 7 1Jun 10 '21

Knapsack Algorithm

There are three ways to implement a Knapsack Algorithm: Knapsack Recursive (Basic) Knapsack...

Learn More 9 0Jun 3 '21

Knapsack Variation

An investor has saved some money and wants to invest in the stock market. There are a number of...

Learn More 16 0Jun 1 '21

Using Ansible

-> Command to validate Ansible playbook syntax: ansible-playbook <playbook.yml>...

Learn More 5 1May 31 '21

Using Redis in iPython

In [1]: import redis In [2]: r = redis.Redis(host='localhost', port=6379, db=0) In [3]: re = [...

Learn More 6 0May 31 '21

Sample Dtrace in Linux

#!/usr/sbin/dtrace -s #pragma D option quiet BEGIN {         printf("Starting vxdisk resize analysi...

Learn More 5 0May 31 '21

Confluent Kafka Python Client

-> Download kafka and untar: wget http://mirrors.estointernet.in/apache/kafka/2.1.0/kafka_2.11-...

Learn More 6 0May 31 '21

SqlAlchemy Python ORM

-> Display the list of databases available from sqlalchemy import create_engine from pprint imp...

Learn More 6 0May 31 '21

Connect to MySQL

Get the db credentials from /etc/mysql/debian.cnf Run mysql -u debian-sys-maint -p mysql> show da...

Learn More 6 0May 31 '21

CI / CD using .gitlab-ci

stages: - lint - test - build-package - build-package-development - build-docker-image -...

Learn More 8 0May 31 '21

How to Dockerize an App ?

-> Create a Dockerfile if there is an argument need to be passed to your app FROM python:3.7 AD...

Learn More 10 0May 31 '21

Mounting a new disk in Linux

-> How to mount a new disk in Linux ? #Create a partition sudo fdisk /dev/sdb #Verify using ls...

Learn More 6 0May 31 '21

Jamespath in Ansible Playbooks

Have you ever heard of JSON query language ? Well, if not take a look at this: https://jmespath.org/e...

Learn More 5 0Jun 22 '20