ytyng.com

Latest Articles

Page 3
Django
2024-12-14 04:46 (20 months ago)
Return Login and Redirect Views by Hardcoding Social Account Provider in django-allauth (When Using AWS Cognito, etc.)

How to Create a Login View in Django Allauth Without Specifying the Social Account Backend in the URL

Raspberry-Pi
2024-09-19 03:24 (23 months ago)
VNC on Raspberry Pi OS Bookworm (Debian 12) Cannot Connect from Mac, and Cursor Behavior Rotates when Screen is Rotated

This is a memo detailing the findings from installing Raspberry Pi OS Bookworm (Debian 12) on a Raspberry Pi and using VNC.

MySQL
2024-07-24 11:30 (2 years ago)
Here's the English translation of your blog title:"A Story About Trying to JOIN Fields with Different Collations in MySQL and Getting 'Range checked for each record'"

Set up PHP remote debugging with XDebug and an IDE — `xdebug.remote_host` / `remote_port` plus an SSH tunnel pattern.

AWS
2024-07-20 10:55 (2 years ago)
How to Deploy a Project with Private Git Submodules to AWS Amplify

I am writing a blog post about how to deploy an application that uses a private Git repository as a submodule to AWS Amplify.

Python
2024-07-03 00:23 (2 years ago)
Template Code for Thread Parallelism and Process Parallelism in Python

Expose the Selenium Chromium / ChromeDriver `--remote-debugging-port` (CDP port) outside the container for external clients to connect.

2024-06-16 09:28 (2 years ago)
Adding Dynamic Functionality to Submitted Raw HTML Templates with SSR in Next.js

This tutorial addresses the requirements for dynamically modifying certain parts of client-submitted HTML on the server side using Next.js.

2024-06-15 11:03 (2 years ago)
Creating a Docker Image for SSR with Svelte

Using SvelteKit, I will create a program that retrieves data from other API servers on the server-side, renders the HTML, and returns it. Additionally, I will package this program into a Docker image.

Linux
2024-06-13 03:09 (2 years ago)
Installing Google Chrome For Testing and Chromedriver on Ubuntu Linux

In a Bash loop where you `sleep` between iterations, skip the sleep on the very first iteration — a small `first` flag pattern.

2024-05-26 15:38 (2 years ago)
How to Deploy a Project with Private Git Submodules to Vercel

During the build process on Vercel, it is not possible to retrieve submodules that are in a private repository. It is necessary to use a fine-grained personal access token to retrieve them via HTTP.

2024-05-20 11:20 (2 years ago)
Manifest to Redirect Non-www Requests to www When Using ALB with AWS EKS Ingress

This is an Ingress manifest that responds to requests without "www" by redirecting them to a URL with "www".

Django
2024-04-15 08:35 (2 years ago)
After Upgrading to Django 5 and Updating Dependencies, SSL: CERTIFICATE_VERIFY_FAILED Error Occurs When Sending Emails

I updated Django to version 5.0 and also updated other libraries. When I executed the code for sending an email, an ssl.SSLCertVerificationError occurred.

DjangoPython
2024-03-28 00:41 (2 years ago)
The "first" and "second" Arguments of assertEqual in Django's Unit Tests are Actually "expected" and "actual"

When looking at the assertEqual method in Django's unit tests, the first argument is named 'first' and the second argument is named 'second'. It appears that there is no difference in the usage of these variables.

DjangoPython
2024-03-24 04:53 (2 years ago)
Fix: pipenv install fails with AttributeError: module 'pkgutil' has no attribute 'ImpImporter' (Python 3.12)

pipenv install throws "AttributeError: module 'pkgutil' has no attribute 'ImpImporter'" on Python 3.12. Run `python3 -m ensurepip --upgrade` in both the global and virtualenv, or rebuild the pipenv environment.

kubernetes
2024-02-23 03:38 (2 years ago)
Return Custom Response Headers with Kubernetes Ingress

How to Return Custom Response Headers with Nginx Ingress in Kubernetes This method is useful when you have multiple Ingresses and want to confirm which one is responding.

2024-01-01 04:50 (2 years ago)
Rewrite Paths with Kubernetes Ingress

The element matched by the regular expression in `rules.http.paths.path` within an Ingress configuration is placed into `metadata.annotations.nginx.ingress.kubernetes.io/rewrite-target`.

2023-12-31 06:02 (2 years ago)
Settings to Revert Single Click to Open Files in Folder Tree (Project View) to Double Click in PyCharm (and Other JetBrains Editors)

To revert the behavior of opening files with a single click in the folder tree (Project View) to double-click in PyCharm (and other JetBrains editors), navigate to Preferences → Editor → General → Editor Tabs → Opening policy → Enable preview tabs.

PythonMicrocontrollers
2023-12-24 09:20 (2 years ago)
Using CircuitPython on the HW-394 ESP-WROOM-32 (ESP32) Development Board

A memo about purchasing a development board featuring the ESP-WROOM-32 module, which appears when searching for "ESP32" on AliExpress, and has "HW-394" written on the board.

mac
2023-12-12 00:22 (2 years ago)
How to Open a Specific URL with Chrome in a Specified Window Size from the Command Line on Mac

Here is how to open Chrome with a specified window size from the command line on a Mac.

PythonRaspberry-Pi
2023-11-21 02:51 (2 years ago)
When Copying Files to Raspberry PI Pico or RP2040 on Mac OS Sonoma Results in Input/Output Error

Here is the solution for resolving Input/output errors or Error code -36 that may occur when trying to copy files to an RP2040 microcontroller board or Raspberry Pi Pico while developing on Mac OS Sonoma.

DjangoPython
2023-11-09 03:39 (2 years ago)
対応方法 When using MySQLdb with Python and encountering "symbol not found in flat namespace '_mysql_affected_rows'"

Fix `symbol not found in flat namespace '_mysql_affected_rows'` when importing MySQLdb in Python — rebuild mysqlclient against the right MySQL client library.