ytyng.com

Latest Articles

Page 4
Python
2023-03-29 05:31 (2 years ago)

Here's the English translation of the summary of the Japanese blog article: "When trying to install 'npm install fibers (node-fibers)' and encountering the error 'ValueError: invalid mode: 'rU' while trying to load binding.gyp', you can resolve this issue by editing the 'node-gyp/gyp/pylib/gyp/input.py' file and removing the 'U' from the mode."

2023-03-11 05:47 (3 years ago)

## Creating an OpenAI Account

2023-03-11 01:01 (3 years ago)

This article explains how to create a ConfigMap from a local file in Kubernetes and mount it to a Pod.

Python
2023-03-06 07:01 (3 years ago)

This is Python code to delete 4-byte characters from a string.

2023-02-11 12:21 (3 years ago)

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)

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 installing mysql-client with Homebrew, you typically add the `bin` directory to your PATH in your `.zprofile` or `.zshrc` file. This blog post will explain how to make your PATH automatically follow changes in the version number.

Raspberry-Pi
2023-01-22 02:26 (3 years ago)

Here is how to obtain the terminal ID on a Raspberry Pi Pico. You can achieve this by using the function machine.unique_id().

Python
2023-01-03 02:21 (3 years ago)

With the backspace sequence `\b`, you can erase printed characters.

Shellscript(Bash/Zsh)
2022-12-27 12:16 (3 years ago)

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)

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 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)

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)

This document provides guidelines for easily setting up a development environment when you are using a different web framework for your server-side API, instead of utilizing the built-in server-side API feature of Nuxt3, which allows the creation of server-side APIs by simply creating a file like server/api/xxx.ts.

Django
2022-11-18 10:16 (3 years ago)

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)

Define a unique attribute for user Admin and ensure that only users with is_active = True are displayed.

2022-11-04 08:25 (3 years ago)

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)

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)

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)

Here is the code to retrieve the contents of a spreadsheet as a list of dictionaries when aggregating data in Google Apps Script (GAS).