Entries from 2025-02-01 to 1 month

Get the Absolute Path of the Default Working Directory in GitHub Actions

This is a note on how to get the absolute path of the default working directory in GitHub Actions. Introduction Getting the Absolute Path of the Default Working Directory Cannot Retrieve Using ${{ env.GITHUB_WORKSPACE }} Can Be Retrieved U…

Fix Error: "Object of type datetime is not JSON serializable" in Python

This article summarizes how to fix the following error that occurs when using Python's json module for JSON conversion: "Object of type datetime is not JSON serializable" Introduction Background Solutions Preliminary: The default Parameter…

How to Fix pip/pip3 Installation Errors on Ubuntu

When using Ubuntu, I found that Python's pip and pip3 were not pre-installed. I unexpectedly ran into trouble during the installation, so here's the record of how to solve it. Introduction Installing pip/pip3 on Ubuntu Premise: pip vs pip3…

Running "Tierra": Tom Ray's Artificial Life Simulation

This article provides a step-by-step guide to running Tom Ray's artificial life simulation, Tierra. Introduction Environment Step-By-Step Guide Running Tierra Explanation of Commands Running the Front-End (Beagle) Exploring Tierra Conclusi…

Counting JSON Records with jq Command

This article summarizes how to count the number of records in JSON using the jq command, depending on the JSON format. Introduction Environment Counting JSON Records JSON Documents with Array Wrapping JSON Documents with Object Wrapping JS…

"aws s3 cp" vs "aws s3 sync": Key Differences

This post explains the differences between the AWS CLI commands s3 cp and s3 sync. Introduction Key Differences Between cp and sync Comparing Descriptions Comparing Command Options Comparing Command Behaviors Simple S3 copy Copy updated S3…

How to Handle Errors in boto3 | AWS SDK for Python

This article summarizes how to handle errors in boto3, AWS SDK for Python. Introduction Handling Errors in boto3 Using client.exceptions Using botocore.exceptions Example Code Handling BucketAlreadyExists error in S3 create_bucket Handling…

boto3 vs boto: Differences and History

This post summarizes the differences between boto3 and boto, the origins of "boto" itself, and the history of the AWS SDK for Python. Introduction The History of AWS SDK for Python Differences Between boto3 and boto What Happened to boto2?…

How to Use the Ternary Operator in Terraform

This article summarizes how to use the ternary operator in Terraform, along with practical examples. Introduction Ternary Operator in Terraform How to Use Practical Examples Simple Example Combining Conditions Example of Type Casting Error…

How to Disable the Dark Theme in Draw.io for VSCode

This is a quick memo on how to disable the dark theme in Draw.io when using it in VSCode. The Dark Theme in Draw.io Is Hard to Use How to Disable the Dark Theme Conclusion The Dark Theme in Draw.io Is Hard to Use The "Draw.io Integration" …

S3 Bucket Policies and IAM Policies: How They Work Together

This post provides an overview of how S3 bucket policies and IAM policies interact for both same-account and cross-account access scenarios. Introduction S3 Bucket Policies and IAM Policies: How They Work Together Conclusion First Preparat…

How to Install Nmap on Windows

This post summarizes the steps to install Nmap on Windows. Introduction Installing Nmap on Windows Installing via Chocolatey 1. Run Command Prompt as Administrator 2. Install Nmap 3. Verify the Installation Installing via the Nmap Installe…

What Does "NITS" Stand for in Code Reviews

This post explains the meaning of NIT / NITS in code reviews and explores its origins. Introduction Meaning of NIT / NITS Origin of NIT / NITS Conclusion References Introduction In code reviews, you might come across the term "NIT" or "NIT…

What is SKU in Azure?

Understanding The meaning of SKU in Azure. Introduction What is SKU in Azure? What does SKU stand for? What does SKU mean in Azure? Conclusion References Introduction I've been using AWS for a long time, but recently I started learning Azu…

How to Fix the RST (ASR, A5T) Error on a Flexispot Standing Desk

This post explains how to fix a Flexispot standing desk when an "RST" error appears and it stops working. Introduction How to Fix the RST (ASR, A5R) Error on a Flexispot Desk What Does This Error Mean? How to Fix It Conclusion References I…

Raspberry Pi GPIO Pin Layout: How to Check It

This post summarizes how to check the Raspberry Pi’s GPIO pins layout. Introduction Environment Checking the Raspberry Pi GPIO Pin Layout Checking with the pinout Command Checking the Documentation Conclusion References Introduction The GP…