ytyng.com

Latest Articles

Page 5
2023-02-11 12:21 (3 years ago)
Displaying Serial Console Output (Viewing Standard Output When Installing CircuitPython on Raspberry Pi Pico)

Here's an overview of a blog post detailing how to view the standard output of a serial console connected to a Mac. This method is useful when you need to monitor the output from CircuitPython, among other uses.

Docker
2023-01-30 06:54 (3 years ago)
Order of Arguments in docker-compose run (Incorrect Order Prevents Launch and Makes Errors Hard to Identify)

Here's an example to illustrate how docker-compose commands can fail and produce confusing error messages if the arguments are not provided in the correct order.

Shellscript(Bash/Zsh)
2023-01-25 00:13 (3 years ago)
When Setting the Path for mysql-client Installed via Homebrew on macOS, It Automatically Follows Version Changes

Glossary of real-time pub/sub protocols (MQTT/STOMP/Redis Pub-Sub) and a comparison of Python clients to connect to each.

Raspberry-Pi
2023-01-22 02:26 (3 years ago)
Obtaining Terminal ID with Raspberry PI Pico

Workaround for `copy: input/output error` writing files to a Raspberry Pi Pico (RP2040) from macOS Sonoma.

Python
2023-01-03 02:21 (3 years ago)
Output and Clear Text in Terminal with Python

Flash CircuitPython onto an ESP32 dev board (HW-394 / WROOM-32) and drive I/O in Python — bootloader mode and REPL connection.

Shellscript(Bash/Zsh)
2022-12-27 12:16 (3 years ago)
Create URL Links in the Terminal

With applications like iTerm2, you can make a link text open a different URL by Command + clicking, similar to how the a tag works in HTML.

Django
2022-12-27 10:15 (3 years ago)
View the Contents of Redis Directly from the Terminal in Django

This article explains how to directly view the contents of Django Redis using the Django shell.

Python
2022-12-02 09:02 (3 years ago)
When Using Libraries Like Fabric and Paramiko, "Authentication (publickey) failed." Error Occurs During Server Login

When connecting to an SSH server using Python libraries like Fabric or Paramiko, if the versions are outdated, you may encounter the error "Authentication (publickey) failed."

2022-11-27 15:03 (3 years ago)
Shell Script to Rotate Backup Files Every Few Days

I recently realized that I can rotate backup files (by deleting old files) every few days by sharding the sequential day numbers, which increase by one each day, using modulo 10. Here's the method I've been using lately.

nuxt
2022-11-20 03:29 (3 years ago)
How to Set Up API Proxy to Other Services in Nuxt3

Set up an HTTP proxy to another service's API in Nuxt 3 (Nitro) — the simple `routeRules.proxy` pattern.

Django
2022-11-18 10:16 (3 years ago)
Reading DB Settings from Django Configuration and Copying Data from Production to Staging with mysqldump

I usually write data copy scripts in bash, but I tried writing one in Python this time and decided to document it.

2022-11-16 00:19 (3 years ago)
Exclude Users with is_active = False in Django Admin (Replacing the User Admin)

Python script to copy AWS RDS MySQL data from production to a dev environment fast — table-level `mysqldump` + `mysql` piping.

2022-11-04 08:25 (3 years ago)
Obtaining N Months Ago in Python's datetime Without Using dateutil

Here's an overview of the blog post in English: --- This blog post introduces a function to obtain a datetime N months ago, without using the `dateutil` library. The function was created because `dateutil` was not available in the Python Data Source for Re:dash. ---

Django
2022-11-02 12:34 (3 years ago)
Code to Display the Number of URLs in Django

During an IT audit, it was necessary to represent the scale of the application. To achieve this, I decided to consider the total number of URLs in Django as an indicator of the application's scale.

Python
2022-10-31 12:43 (3 years ago)
A Python Script to Automatically Update ChromeDriver

I wrote a script to download the version of chromedriver that matches the currently installed version of Chrome.

2022-10-25 00:04 (3 years ago)
Retrieve Google Spreadsheet Content as a List of Dictionaries using GAS

Shell script to launch Chrome on macOS with a fixed window size from the command line — combine `--window-size` and `--window-position`.

Django
2022-10-17 11:24 (3 years ago)
Manually Creating a Password Reset URL in Django AllAuth

Build a macOS Service (Quick Action) that sends `find` results to the clipboard via `pbcopy` — works back to Big Sur.

2022-10-10 01:47 (3 years ago)
Template Code for Starting an App with Python Bottle (and Combining with Vue CDN)

Here is a template code for creating a simple HTML application using Bottle.

Python
2022-10-09 02:16 (3 years ago)
Code for Creating a Logger When Making Python Command Line Tools

Build an OpenVPN server that routes all clients in a segment through the VPN — from CA cert issuance to distributing `client.ovpn`.

2022-09-30 00:50 (3 years ago)
Opening Slack Channel Links with Command Line, Raycast, and Alfred

Convert a Slack web URL into the slack:// scheme to open a specific channel directly from the command line, Raycast Quicklink, or Alfred.