ytyng.com

Latest Articles

Page 1
2026-03-01 23:35 (14 days ago)

SvelteKit's adapter-node doesn't set Cache-Control headers for files in the static/ directory. This post explains how to use Node.js --import hooks to patch http.ServerResponse.prototype.writeHead and add cache headers to specific paths.

2026-02-22 03:38 (21 days ago)

Since sentry-cli lacks native multi-profile support, I created a zsh wrapper function that enables AWS CLI-style --profile switching. Also registered it as a Claude Code skill for seamless AI agent integration.

2026-02-18 03:00 (25 days ago)

How to use Raspberry Pi as a signage terminal, displaying web pages in fullscreen using Playwright (Python) and Chromium's --kiosk mode. Covers cookie persistence for auto-login, .desktop file autostart, and scp deployment.

2026-02-13 02:34 (30 days ago)

GitHub Actions ubuntu-latest runner updated to Docker 29, which defaults to containerd image store, causing docker push to ECR to fail with 403 Forbidden.

2026-02-10 23:29 (33 days ago)

How to create a Quick Action using macOS Automator that copies the full file path to the clipboard with a right-click in Finder.

2026-02-09 09:34 (34 days ago)

A guide to turning Orange Pi Zero 2W into a web signage display with auto-starting Chromium kiosk mode. Covers stable systemd boot configuration (getty conflict, D-Bus/GPU workarounds, unlimited retries) and interrupt-driven GPIO button control using gpiomon.

2026-02-08 08:40 (35 days ago)

A comparison of Suno AI's four features — Remix, Inspo, Mashup, and Sample — with a table and flowchart explaining their inputs, behaviors, and when to use each one.

2026-01-23 02:52 (51 days ago)

If Firefox on macOS enters the system’s standard fullscreen mode and you find it annoying that pressing the Esc key exits fullscreen, this article explains how to prevent that by changing `browser.fullscreen.exit_on_escape` to `false` in `about:config`. Exiting fullscreen via F11 or the menu remains available.

2026-01-09 03:03 (2 months ago)

Explains why Chromium’s remote debugging port (9222) cannot be exposed externally when running inside a Docker container—because from M113 onward, Chromium forces the bind address from `0.0.0.0` to `127.0.0.1`—and shows how to safely forward `9222` to `127.0.0.1:9223` using `socat` to enable Chrome DevTools Protocol (CDP) connections.

2026-01-09 03:02 (2 months ago)

If you want Git to ignore local changes to files that are already tracked, use `git update-index --skip-worktree` rather than `.gitignore`. This article explains how to set it up, how to undo it, how to list skipped files, the differences from `assume-unchanged`, and what to do when pulling.

2026-01-09 01:55 (2 months ago)

Explains how to extract only `.event.delta.text` in real time from Claude Code’s `--output-format=stream-json` (JSON Lines). It shows how to avoid newline issues caused by `jq -r`, and instead use `jq -j` to concatenate fragmented text while still rendering `\n` as actual line breaks.

2025-08-30 04:18 (6 months ago)

I researched Headless UI libraries that can be used with Svelte and summarized them.

2025-08-24 14:31 (6 months ago)

When trying to implement a shared store in Svelte 5’s Runes Mode, I couldn’t export $state, so I couldn’t write the code as intended and ended up creating a compromise solution.

AWS
2025-07-16 12:03 (8 months ago)

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 (9 months ago)

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 (9 months ago)

This article explains how to obtain an HttpOnly session cookie that is issued when logging into a web service using browser-use.

Python
2025-05-21 02:50 (9 months ago)

Here's an overview of the blog article translated into English: The article discusses how to avoid the `httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020)` error when making requests to a server using a self-signed certificate in Python 3.13. The error occurs because the certificate verification process fails due to the basic constraints of the CA certificate not being marked as critical. The article likely provides a step-by-step guide or workaround to bypass or resolve this SSL verification issue, ensuring successful communication with the server using the `httpx` library.

2025-04-19 08:59 (11 months ago)

If you are receiving an HTTP 429 response from OpenAI despite having sufficient credits, adding additional credits might resolve the issue.

Django
2025-03-13 09:25 (12 months ago)

When upgrading Django to version 5.1, you may encounter an issue in the admin site's Inline where a string like `{'name': 'id', 'label': 'ID', 'help_text': '', 'field': 'id', 'is_hidden': True}` is displayed in place of the primary key. This issue may occur only when using Grappelli.

2025-03-09 06:43 (12 months ago)

This article explains how to start K3s as a single node using Ingress Nginx as the ingress controller, and how to obtain the source IP address in the request header (x-real-ip, x-forwarded-for).