ytyng.com

Latest Articles

Page 3
AWS
2025-07-16 12:03 (16 months ago)
Resolving the BODY_SIZE_LIMIT for File Uploads on AWS Amplify Hosting with SvelteKit SSR

I resolved an issue in an app deployed to AWS Amplify using SvelteKit + amplify-adapter that was causing the upload error: "SvelteKitError: Content-length of 605227 exceeds limit of 524288 bytes."

Python
2025-05-27 08:55 (17 months ago)
[Outdated] Using Selenium Remote (Selenium Grid) with browser_use

This is sample code for using Selenium Remote Grid in headful mode with `browser_use`. The sample also includes specifying the browser window’s viewport size.

Python
2025-05-21 03:10 (18 months ago)
Obtain HttpOnly=True Session Cookies from Services Logged in via Browser-Use

Pitfalls when passing `--headless` or `-profile` to Selenium Firefox, and the right way to use `selenium.webdriver.FirefoxOptions`.

Python
2025-05-21 02:50 (18 months ago)
Fix: Python 3.13 SSL error 'Basic Constraints of CA cert not marked critical' (VERIFY_X509_STRICT)

Python 3.13 enabled VERIFY_X509_STRICT by default, triggering "SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed: Basic Constraints of CA cert not marked critical" against self-signed CA certs. Workaround: disable VERIFY_X509_STRICT in SSLContext.

2025-04-19 08:59 (19 months ago)
When 429 Occurs Despite Sufficient Credits with OpenAI API

Fix `symbol not found in flat namespace` on macOS Homebrew Python 3 — check library links and reinstall the affected package.

Django
2025-03-13 09:25 (20 months ago)
How to Fix Display Issues in Django Admin Inlines After Upgrading to 5.1

Hide a specific `ModelForm` field in a Django 5 Admin Inline while still passing initial values as a dict — combine `formfield_overrides` with `get_initial`.

2025-03-09 06:43 (20 months ago)
Install Ingress Nginx as an Ingress Controller in K3s and Retrieve the Source IP Address as a Request Header

When AWS SDK throws `Could not load credentials` against Cloudflare R2 / S3-compatible storage, review endpoint and credentials provider configuration.

AWSLinux
2025-01-15 12:02 (22 months ago)
How to Install AWS CLI V1 on Ubuntu Using Snap

The blog post provides a method to forcefully specify and install AWS CLI version 1 when attempting to install using the command `sudo snap aws-cli`, which by default installs version 2.

AWS
2024-12-21 08:00 (23 months ago)
Fix: CredentialsProviderError: Could not load credentials from any providers (Node.js)

AWS SDK for Node.js throws CredentialsProviderError, even with a local DynamoDB, when ~/.aws/credentials has no default profile. Set AWS_PROFILE to fix it.

Django
2024-12-14 04:46 (23 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 (2 years 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.