Check Python Version: A Simple Illustrated Guide

The Best Way to Check Python Version (3 Easy Steps): To check your Python version, run python ‐V in your command line (Windows), shell (Mac), or terminal (Linux/Ubuntu). To check your Python version in your script, run import sys to get the module and use sys.version to find detailed version information in your code. In … Read more

The Art of Clean Code — 14 Unix Principles

“This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface. […] ” – McIlroy This book chapter draft is original material drawn from my book The Art of Clean Code (NoStarchPress, San Francisco). … Read more

5 Easy Ways to Save Terminal Output to File (Linux)

βœ… Problem Formulation: What are the various ways to save terminal output in Linux? For example, you might need to capture output for later review, document command results for reporting, or track error messages for debugging. Method 1: Redirection Operator Use the > operator to redirect output to a file. For example, ls > file.txt … Read more

Commands for Installing WinSound in Linux

The winsound module is specific to the Windows operating system and is used for playing sounds. It’s a part of the standard library in Python for Windows. Unfortunately, you cannot directly install or use winsound on Linux, as it is not compatible with Linux environments. For similar functionality on Linux, you would typically use other … Read more

4 Best Python WinSound Alternatives for Linux

winsound is a Python module specifically designed for Windows, and it is not available on Linux systems. This is because it relies on the Windows API for sound playback, which doesn’t exist on Linux. For Linux, you’ll need to use alternative libraries for playing sound. Here are a few options along with the commands to … Read more

Python to EXE Linux: A Concise Guide to Conversion

Developing Python applications is a popular choice among programmers due to the versatility and ease of use of the language. However, there comes a time when you might want to distribute your Python application as a standalone executable, especially if your target audience isn’t familiar with Python itself. This is where the process of converting … Read more

Check Ubuntu Python Version

Checking your Python version on Ubuntu is similar to other operating systems by running the command python –version or python -V. Check Ubuntu Python Version This section will guide you through the process of checking the Python version using the Terminal Command method. πŸ–₯️ Terminal Command To check the Python version in your Ubuntu system, … Read more

Keep SSH Session Alive

Problem Formulation I just tried to run AutoGPT on an EC2 instance using SSH from my local Windows machine. But here’s the annoying part: the connection always closes and AutoGPT can only work in small ~10 minute increments. When I return to my machine, I need to SSH into my instance and restart the program. … Read more

[Fixed] Warning: The file ‘AutoGpt.json’ does not exist. Local memory would not be saved to a file.

Say, you want to spawn your own AutoGPT and you get the error Warning: The file ‘AutoGpt.json’ does not exist. Local memory would not be saved to a file: πŸ˜‘πŸ‘‡ [ec2-user@ip-172-31-19-40 Auto-GPT]$ python3 -m autogpt Warning: The file ‘AutoGpt.json’ does not exist. Local memory would not be saved to a file. Welcome to Auto-GPT! Enter … Read more