Geek Logbook

Tech sea log book

Parsing Complex Data from HTML Tables with Python

When working with web scraping, you often encounter scenarios where HTML content is nested or contains encoded data within JavaScript attributes. This post walks through parsing player statistics from a complex HTML table, utilizing Python and the BeautifulSoup library to streamline the extraction of JSON data hidden in JavaScript functions. Project Overview We have an

Comparative Investment Analysis of Invesco and Blackstone Using Python

Introduction In this post, we’ll explore how to use Python programming to compare the performance of two investment firms, Invesco and Blackstone. Invesco is known for its focus on public asset management, while Blackstone specializes in private equity, actively acquiring and managing companies. We’ll examine some key performance and risk metrics to understand how these

Understanding Stateful vs. Stateless Firewalls in AWS

When working with network security, it’s crucial to understand the difference between stateful and stateless firewalls. In AWS, this understanding is particularly important when configuring security groups and network access control lists (ACLs). Stateless Firewalls A stateless firewall handles each packet independently, without remembering any information about previous packets. This means that you must explicitly

Creating a Custom Column with SWITCH in Power BI

In Power BI, creating custom columns based on multiple conditions is a powerful way to enhance the analysis and presentation of your data. One of the most versatile functions for this purpose is SWITCH, which allows you to apply different transformations or categorizations based on specific values in another column. In this blog post, we

Handling Deletion of Bootcamps in a Node.js API with Mongoose

In this post, I’ll walk through the process of handling the deletion of bootcamps in a Node.js API using Mongoose. Recently, while working on a project, I encountered a TypeError when attempting to delete a bootcamp, and I’ll explain how I resolved it. The Error I had the following function for deleting bootcamps: When attempting

Built-in Functions vs. Object-Oriented Methods

Python strives to be simple and clear, so some operations are implemented as built-in functions, while others are object-specific methods. This distinction arises from the way Python handles different types of objects. Built-in Functions len() is a built-in function that works with many different types, including strings, lists, tuples, dictionaries, and more. This allows for