The Battle Between Centralization and Decentralization in Tech

Once upon a time, I was a distributed systems researcher specializing in graph partitioning algorithms. Those were thrilling days, though I must admit I didn’t enjoy the daily commute and the time away from my family. During that period, I delved deep into classic distributed systems conundrums like the Byzantine Generals Problem. When I discovered … Read more

Python Strings Made Easy

Python is a versatile programming language with a wide range of applications. One of the essential aspects of Python is its ability to manipulate strings. πŸ’‘ Strings in Python are sequences of characters, such as text or numbers, enclosed in single or double quotes. As Python does not have a dedicated character data type, a … Read more

Coinbase API: Getting Historical Price for Multiple Days Made Easy

Coinbase API v2 is a powerful tool for developers to access real-time and historical cryptocurrency data. One of the most common use cases for the API is to retrieve historical price data for multiple days, which can be used for analysis, modeling, and forecasting. However, getting historical price data for multiple days using Coinbase API … Read more

How to Access the First, Second, or N-th Child Div Element in BeautifulSoup?

To access the first, second, or N-th child div element in BeautifulSoup, use the .contents or .find_all() methods on a parent div element. The .contents method returns a list of children, including tags and strings, while .find_all() returns a list of matching tags only. Simply select the desired index to obtain the child div element … Read more

Python Generate HTML – 3 Easy Ways

πŸ’¬ Problem Statement: How to generate HTML documents in Python? One of the advantages of opting for Python as your programming language is that it is one of the most versatile languages, as it emphasizes code readability with extensive use of white space. It supports a large collection of libraries that serves various purposes, which … Read more

How Bitcoin Solves the Byzantine Generals Problem

Overview 🏰 Picture a mighty city, surrounded by a bunch of Byzantine generals πŸ’‚β€β™‚οΈ, trying to unite and plan an epic attack! But oh no! 😱 Some of these generals might be traitors πŸ•΅οΈ, who’ll backstab the others and ruin the plan. They need a foolproof way to agree on a battle strategy while handling … Read more

How I Designed an AI Blog Writing Tool with Streamlit

Barely four months since OpenAI unleashed ChatGPT, a human-behavior-mimicking chatbot that took the community by storm, they recently announced its successor, GPT-4. This development will continue to disrupt the global market and, unfortunately, take the jobs of millions of people. While it’s a welcome development for ChatGPT users looking to explore the capabilities of AI … Read more

1 Billion Coders – Prompting Is The New Programming

Introduction πŸ§‘β€πŸ’» Prompting and GPT-4πŸ’‘ Main argument: Prompting is programming for the masses The recent release of GPT-4 has taken the tech world by storm, providing powerful AI-driven solutions that transform how we work and interact with technology. πŸ’‘ Recommended: GPT-4 is Out! A New Language Model on Steroids One such groundbreaking innovation is “Prompting”, … Read more