Reentrancy Attack – Hacking Smart Contracts [Solidity]

You can check out the code for this article on our GitHub. Preamble This post is part 3 in continuation of our Smart Contract Security Series. This post is part of our Smart Contract Security Series: Ownership Exploit Private Variable Exploit Reentrancy Attack tx.origin Phishing Attack Denial of Service Attack Storage Collision Attack Randomness Attack … Read more

How to Apply a Function to Series Elements

Problem Formulation and Solution Overview As a Python Coder, situations arise where you will need to apply a function against elements of a Series. To make it more fun, we have the following running scenario: Rivers Clothing does business with six (6) different countries. The Tax Rates for the associated countries have increased by 2%. … Read more

How to Apply a Function to Column Elements

Problem Formulation and Solution Overview As a Python Coder, situations arise where you will need to apply a function against elements of a DataFrame Column. To make it more fun, we have the following running scenario: You have a DataFrame containing user information (including the column Recurring). This column is the Monthly Fee for a … Read more

Define A Method Outside Of The Class Definition

[toc] Problem Statement: How to define a method outside of class definition in Python? Example: Can we create foo() outside of the class definition or maybe even in another module? Introduction We all know Python is an object-oriented programming language, and in Python, everything is an object including properties and methods. In Python, the class … Read more

How to Delete an Object From a List in Python? 5 Ways

A Python list is a collection of objects that are indexed, ordered, and mutable. There are several different ways to delete a list item. Weโ€™ll first look at how we can delete single items from a list. And then finish with removing multiple objects. Method 1 – remove() Python list.remove() is a built-in list method … Read more

Docker Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Docker? Let’s have a look at the definition from the official Docker website: “Docker takes away repetitive, mundane configuration tasks and is used throughout the development lifecycle for fast, easy and portable application development โ€“ desktop and cloud. Dockerโ€™s … Read more

Yarn Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Yarn? Let’s have a look at the definition from the official Yarn website: “Yarn is a package manager that doubles down as project manager. Whether you work on one-shot projects or large monorepos, as a hobbyist or an enterprise … Read more

Deno Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Deno? Let’s have a look at the definition from the official Deno website: “Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.” Now that you know about what … Read more

Choose A File Starting With A Given String

Overview Problem: How to choose a file starting with a given string? Example: Consider that we have a directory with files as shown below. How will you select the files starting with “001_Jan“? Python Modules Cheat Sheet To Choose A File Starting With A Given String Choosing a file starting with a given string is … Read more

Puppet Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Puppet? Let’s have a look at the definition from this Puppet website (highlights be me): “Puppet is an open source software configuration management and deployment tool. It’s most commonly used on Linux and Windows to pull the strings on … Read more

Ansible Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Ansible? Let’s have a look at the definition from the official Ansible website: “Red Hatยฎ Ansibleยฎ Automation Platform is a foundation for building and operating automation across an organization. The platform includes all the tools needed to implement enterprise-wide … Read more