Executive Summary of Bill Gates’ The Age of AI has begun
💡 This article summarizes Bill Gates’ article on “The Age of AI has begun” but focuses on the most important ideas for ease and speed of reading. I left the overall structure intact but reduced the text by approximately 70%. Time savings with average reading speed: 9 minutes. ⌛ 💡 In the article, Bill Gates … Read more
Python Integer to Hex — The Ultimate Guide
Working with different number systems and their representations is a common practice in the world of programming. One such conversion involves changing integer values into their corresponding hexadecimal representations. In Python, this transformation can be achieved with ease by utilizing built-in functions and string formatting techniques. Hexadecimal, also known as base-16, is a number system … Read more
50% Growth Rate Plus Time 📈 A Formula to Harness Exponential Growth
In today’s rapidly evolving world, embracing exponential growth can be the key to success. To harness this growth, two crucial elements must be considered: In this article, I’ll delve into exponential growth, 🚀 discuss how to identify promising opportunities and explore the role of time in achieving success. The Power of Exponential Growth Exponential growth … Read more
How I Scattered My Fat with Python – Scraping and Analyzing My Nutrition Data From Cronometer.com
From April 1st through August 14th, I tracked everything I ate on cronometer.com as part of a weight loss challenge. Overall I lost almost 25 pounds at a rate of 1.2 pounds per week. I always wondered what I could learn if I could scrape that data and get it into a Jupyter Notebook. In … Read more
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
Break Things and Be on the Right Side of Change in the Exponential World
Here’s the drumbeat they’ve been pounding in your ears 24/7: 🥁 AIs will take your job, your income, your livelihood, your purpose, and eventually your life. I assume you belong to either Group A or Group B: And I have to say, worrying about your future is understandable because you will either become irrelevant without … 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
[TryHackMe] Marketplace Walkthrough – How I Pulled Off a Cookie Heist to Become an Admin of the Target Website
CHALLENGE OVERVIEW BACKGROUND In this box, we are tasked with pen-testing an internal server to check for bugs before releasing it to the public. Judging by the tags on this box, we will execute some cross-site scripting and pull off a bit of SQL command injection. Let’s get started! ENUMERATION/RECON export myIP=10.10.129.195 export targetIP=10.10.163.156 💡 … 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
Easy Way to Update a Python Package with Pip Upgrade
If you’ve ever found yourself in a situation where you need to update or upgrade a package using Python’s pip, but just can’t figure out how, don’t worry! You’re not alone. 📦 The Correct Command to Upgrade a Package To upgrade a package with Python’s pip, you can use the install command along with the … Read more
How I Created a Text-to-HTML Converter App Using Django
How would you like your text or essay quickly converted to clean HTML? That will be amazing, right? 🧑💻 HTML, short for Hyper-Text Markup Language, is used to create web pages. Learning how to use HTML code is very important as far as web development is concerned. However, not everyone can understand and write using … Read more
Python Streamlit – I Made This Stock Price Prediction App
No doubt, we all want to know the future. For financial assets including a company stock traded on an exchange, we all want to know its future value. This is what we hope to accomplish in this tutorial. Predicting the price of company stock is a very difficult thing to do. This is because many … 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
7 Effective Prompting Tricks for ChatGPT
ChatGPT is a powerful AI conversation model that can assist you in generating various types of text content. But to get the best results, you need to give clear and specific prompts. Here are 7 prompting strategies that can help you get the most out of ChatGPT: Trick #1 – Define ChatGPT’s Role ChatGPT can … Read more
Free ChatGPT Prompting Cheat Sheet (PDF)
🧑💻 Prompting is the new programming! To help you get most out of prompting, I just created this PDF cheat sheet and shared it with my Finxter community of 130,000 coders (click to download PDF): If you want more cheat sheets and be on the right side of change, feel free to join my free … Read more
GPT-4 is Out! A New Language Model on Steroids
Hold onto your hats, folks! OpenAI has just introduced GPT-4, a colossal leap forward in deep learning. This large multimodal model is more than just a text-based smarty-pants; it can process both images and text, producing text outputs that are nothing short of impressive. ⚔️ Showdown: At the end of this article, I’ll let both … Read more
The Future of Work: Which Jobs are at Risk of Automation?
The rise of automation and artificial intelligence (AI) is changing the nature of work across industries and occupations. 🚀 With the rise of ChatGPT, many of us fear for our jobs. Can we get more insights on which types of jobs are more susceptible to disruption? This article attempts to answer this question based on … Read more
Finxter Experience by Lukas Batema: Learning Futuristic Technology
I had the pleasure of finding Finxter while searching for easy Python tutorials. From the moment I stumbled upon their cheat sheet, I knew that this was a company that truly cared about its customers and community. Despite being a big corporation, Finxter is anything but normal. They have exceptional customer service and a strong … Read more
How I Built an OpenAI-Powered Web Assistant with Django
Django is a backend web framework that makes it easy to build web pages quickly using Python. There is no better way to learn Django than by building projects. This tutorial shows you how I built an Artificial Intelligence-powered web assistant using Django. I’ll also add a GitHub link so you can copy&paste (see conclusion). … Read more
Python to .exe – How to Make a Python Script Executable?
I have a confession to make. I use Windows for coding Python. This means that I often need to run my practical coding projects as Windows .exe files, especially if I work with non-technical clients that don’t know how to run a Python file. In this tutorial, I’ll share my learnings on making a Python … Read more
PIP Install Django – A Helpful Illustrated Guide
As a Python developer, I love using Django for web development. Its built-in features and clear code structure make building scalable and robust web applications fast and efficient. In fact, I used Django to build my own web app for Python testing and training. Here’s how you can install Django: Alternatively, you may use any … Read more
PeerBrain – A Decentralized P2P Social Brain Network App
How I Created an URL Shortener App Using Django
Django is a Python framework used for building awesome web applications. In this tutorial, I’ll show you how I created a URL shortener application using Django. This is one of the best beginner projects to sharpen your skills as a Django developer. You can download the whole project at the end of this article. 👇 … Read more
I Created My First DALL·E Image in Python OpenAI Using Four Easy Steps
I have a problem. I’m addicted to OpenAI. Every day I find new exciting ways to use it. It’s like somebody gave me a magic stick and I use it for stupid things like cleaning the kitchen. But I cannot help it! So, how to create images with OpenAI in Python? Easy, follow these four … Read more
The PeerBrain Vision – A Decentralized P2P Social Brain Network
Dear Finxter community, Most of you will not know me, so I’ll give you a quick introduction. About Me My name is Tom, and for the last 6 months, I’ve been teaching myself programming. Primarily Python with some web frameworks (Flask, FastAPI, Streamlit) thrown in for good measure. I’ve found I love the way you … Read more
I Built a Kids’ Movie Ratings Database Using Beautiful Soup
Project Motivation My wife and I are pretty discerning about which movies we allow our two daughters (ages 4 and 5) to watch. Recently, we were in conversation with their teachers at school about assembling a good list of age-appropriate movies. To simplify the process, I decided to build a database of movie ratings that … Read more
Solidity Scoping – A Helpful Guide with Video
As promised in the previous article, we’ll get more closely familiar with the concept of scoping next. We’ll explain what scoping is, why it exists, and how it helps us in programming. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official Solidity documentation. … Read more
Solidity Declarations – A Helpful Guide with Video
In this article, we’ll learn more about variable declarations in Solidity and further explain some of their specific behavior. To keep the article more succinct, we’ll focus on the next subject, scoping, in the next article. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to … Read more
7 Best Ways to Check the OpenAI Package Version in Python
In this article, I’ll show you how to check the version of the openai library for Python. I needed this in my own project as OpenAI raised an error due to an old package version. These are the seven best ways to check the version of a Python module: Let’s dive into some examples for … Read more
Fix AttributeError: Module ‘OpenAI’ Has No Attribute ‘Audio’
I tried using the amazing speech recognition capabilities introduced with OpenAI’s new Whisper module yesterday. 👉 Recommended: OpenAI’s Speech-to-Text API: A Comprehensive Guide Here’s the sample code I used: But when using the simple code to test transcribing an audio file, Python gave me the AttributeError: module ‘openai’ has no attribute ‘Audio’. So, I wanted … Read more
My Journey to Help Build a P2P Social Network – Database Code Structure
Welcome to part 3 of this series, and thank you for sticking around! I’ve come to realize this might become a rather long series. The main reason for that is that it documents two things. This is the birth of an application and my personal journey in developing that application. I know parts 1 and … Read more
OpenAI’s Speech-to-Text API: A Comprehensive Guide
Here’s an obvious statement: audio and video recordings are an essential part of our daily lives. Recently, I consulted a young startup in the food AI space on how to convert video to text, and I recommended them Google’s speech recognition software. Yet, Google’s models are not great — only best in class at this … Read more
Cracking the Code to a Better Life: How Learning to Code Can Satisfy the 8 Life Forces
As human beings, we are driven by a number of basic needs and desires that motivate us to take action and pursue our goals. This includes things like survival, enjoyment of life, sexual companionship, comfortable living conditions, and more. I believe learning to code is a powerful way to satisfy many of these profound life … Read more
TryHackMe Retro Walkthrough – How I Gained “NT Authority” on a Windows Server
CHALLENGE OVERVIEW The goal of the challenge is to gain root access (Windows Server) to two text files, user.txt and root.txt, by manually invoking privilege escalation to root via RDP. There are two methods to achieve this. The first involves hijacking a 404.php page on a WordPress site to spawn a reverse meterpreter shell. The … Read more
TryHackMe DogCat Walkthrough [+ Easy Video]
CHALLENGE OVERVIEW BACKGROUND In this tutorial, we will walk a simple website showing pictures of dogs and cats. We’ll discover a directory traversal vulnerability that we can leverage to view sensitive files on the target machine. At the end of this challenge, we will break out of a docker container in order to capture the … Read more
5 Easy Ways to Edit a Text File From Command Line (Windows)
Problem Formulation Given is a text file, say my_file.txt. How to modify its content in your Windows command line working directory? I’ll start with the most direct method to solve this problem in 90% of cases and give a more “pure” in-terminal method afterward. Method 1: Using Notepad The easiest way to edit a text … Read more
Building a Q&A Bot with OpenAI: A Step-by-Step Guide to Scraping Websites and Answer Questions
Have you ever found yourself deep in the internet rabbit hole, searching for an answer to a question that just won’t quit? It can be frustrating to sift through all the online information and still come up empty-handed. But what if there was a way to get accurate and reliable answers in a snap? Enter … Read more
How I Built a Virtual Assistant like Siri using ChatGPT Prompting (No Code!)
Siri sucks. 😞 I am a Siri user, and Siri fails me more than it performs for me. It doesn’t understand the chain of commands. Project Idea: Recreate Siri Using ChatGPT This got me thinking, “What if I can repurpose ChatGPT to work like Siri?”. So before I tell you how the prompt looks like … Read more
How to Edit a Text File in Windows PowerShell?
Problem Formulation Given is a text file, say my_text_file.txt. How to modify its content in your Windows PowerShell working directory? I’ll start with the most direct method to solve this problem in 90% of cases and give a pure PowerShell method afterward. By the way, you can learn all about becoming a PowerShell developer in … Read more
A Simple Hack to Becoming the World’s Best Person in Something as an Average Guy
Millionaires are made at the top of the income distribution. For example, have a look at the following Pareto distribution exemplifying how only the top sports players make all the money: If you want to earn a million dollars quickly, you need to become one of the top people in the world at something the … Read more
How to Embed a Python Interpreter in Your Website?
Want to make your website more interactive? Embed a Python interpreter into your website! Why? Because an embedded Python interpreter not only increases the interactivity and usability of your website — and creates happy users for your web business. It also increases the average time spent on your website because people will try out things. … Read more
How to Install OpenAI in Python?
The OpenAI Python library is a mind-blowing 🤯 tool that lets you easily access the OpenAI API from your Python applications. It may easily be the single most powerful Python library. Period. One of the coolest things about it is that it comes with a pre-defined set of classes for API resources. These classes are … Read more
ModuleNotFoundError: No Module Named OpenAI
Quick Fix: Python raises the ImportError: No module named ‘openai’ when it cannot find the library openai. The most frequent source of this error is that you haven’t installed openai explicitly with pip install openai. Alternatively, you may have different Python versions on your computer, and openai is not installed for the particular version you’re … Read more
How I Created a Short Quiz App with Kivy
Building a quiz app is simple with Kivy. 💡 Kivy is a free, open-source library that made the development of the quiz app simple. The Kivy methods save us a ton of coding time. In this article, I created a short quiz app that helps you decide what to eat to demonstrate how Kivy works. … Read more
How to Install Pip? 5 Easy Steps
In this article, I’ll quickly guide you through the installation steps for Python’s package installer pip. But first things first: 👇 What Is Pip? ✅ pip is the package installer for Python used to install and manage software packages (also known as libraries or modules) written in Python. pip makes it easy to install, upgrade, … Read more
Python ModuleNotFoundError: No Module Named ‘torch’
Quick Fix: Python raises the ImportError: No module named ‘torch’ when it cannot find the library torch. The most frequent source of this error is that you haven’t installed torch explicitly with pip install torch. Alternatively, you may have different Python versions on your computer, and torch is not installed for the particular version you’re … Read more
TryHackMe Linux PrivEsc – Magical Linux Privilege Escalation (2/2)
CHALLENGE OVERVIEW BACKGROUND Welcome back to part II of this Linux privilege escalation series. You can find part 1 of this mini-series here: 👉 Recommended: TryHackMe Linux PrivEsc – Magical Linux Privilege Escalation (1/2) In this tutorial, we’ll try some additional “magical” methods of gaining root access in tasks 11-21. Buckle in, and let’s get … Read more
How I Created a Forecasting App Using Streamlit
In this tutorial, I will show you the steps I took to design a forecasting app and have it hosted on Streamlit Cloud. If you have been reading some of my tutorials you will notice that Streamlit has been my favorite web framework as far as data science is concerned. This is because it’s easy … Read more
How I Created a Code Translator Using GPT-3
Hey, Folks! I will show you how I created a code translator using OpenAI’s GPT-3 models. 👾 About Me: Before I do, I’d like to share a little about myself. My name is Kwame Asante, and I am a software engineer. I work for a financial institution during the day and teach others how to … Read more
BrainWaves P2P Social Network – How I Created a Basic Server
Welcome back to the Brainwaves P2P project, or at least my take on it :-). The previous article was a theoretical explanation of how I envision this project. It is now time to start laying the groundwork! I learn as I go… As some of you might have guessed already, I’m a completely self-taught coder. … Read more
Find the Median Index in Python
🐍 Question: How to find the index of the median element in a Python list? Something like argmedian()? In case you need a quick refresher, I have written this tutorial on finding the median itself (but not yet its index): 👉 Recommended: 6 Ways to Get the Median of a Python List Solution A multi-liner … Read more
Python Int to String with Leading Zeros
To convert an integer i to a string with leading zeros so that it consists of 5 characters, use the format string f'{i:05d}’. The d flag in this expression defines that the result is a decimal value. The str(i).zfill(5) accomplishes the same string conversion of an integer with leading zeros. Challenge: Given an integer number. … Read more
How To Extract Numbers From A String In Python?
The easiest way to extract numbers from a Python string s is to use the expression re.findall(‘\d+’, s). For example, re.findall(‘\d+’, ‘hi 100 alice 18 old 42’) yields the list of strings [‘100′, ’18’, ’42’] that you can then convert to numbers using int() or float(). There are some tricks and alternatives, so keep reading … Read more
I Created a ChatGPT-Powered Website Creator with ChatGPT – Here’s What I Learned
My goal with this project was to learn how to use the new Large Language Model AI GPT-3 created by OpenAI. I also wanted to know if it could be used in a practical web application. To learn it, I created a website that uses it in two ways. I also recorded this video that … Read more
IQ Just Got 10,000x Cheaper: Declining Cost Curves in AI Training
“I am not interested in hearing ridiculous Utopian rants.” said one reader of yesterday’s Finxter newsletter on my note on declining cost curves and the implied disruptions. I’ll include a screenshot of the email here: 💡 Info: Declining cost curves refer to the trend of production costs decreasing over time as technology and production processes … Read more
How to Count the Number of Words in a String in Python
Problem Formulation Given a string – sentence. How many words does the string sentence have within it? Examples: INPUT sentence = “Finxter helps you to master Python.” OUTPUT Number of words: 6 INPUT sentence = “””Lorem ipsum dolor sit amet. Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.””” OUTPUT … Read more