Avatar 💻

recca0120 Tech Notes

Software Developer / Tech Notes

  1. Home
  2. Archives
  3. Categories
  4. Tags
  5. Search
  6. About
    1. Dark Mode

Archives

2026 77
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Testing DevOps Frontend AI Database Tools Python DevTools

Tags

Testing Laravel Php Claude Code Typescript Ai-Agent JavaScript Python PHPUnit Sqlite Composer Ai Linux Prompt-Caching Vitest AWS Blade Cloudflare Developer-Tools Devops
Featured image of post reptyr: Move a Running Process Into tmux After Forgetting to Start It
Tools

reptyr: Move a Running Process Into tmux After Forgetting to Start It

reptyr uses ptrace to re-attach a running process to a new terminal. Started a long job over SSH without tmux? reptyr moves the process into tmux so you can disconnect safely.

2026 年 3 月 25 日
正體中文
Reptyr Linux Terminal Tmux Ssh Process Rescue
Featured image of post Two SQL NULL Traps: Missing JOIN Rows and UNIQUE Constraints That Do Nothing
Database

Two SQL NULL Traps: Missing JOIN Rows and UNIQUE Constraints That Do Nothing

NULL behavior varies across databases and causes two common problems: JOIN on NULL columns returns no rows, and UNIQUE constraints allow multiple NULLs. Covers MySQL, PostgreSQL, SQLite, SQL Server with solutions for each.

2026 年 3 月 24 日
正體中文
Sql MySQL Postgresql Sqlite Database
Featured image of post ky + p-limit: Concurrency Control With Built-in Retry for Batch Requests
Frontend

ky + p-limit: Concurrency Control With Built-in Retry for Batch Requests

ky handles per-request retry, timeout, and auth hooks. p-limit caps simultaneous requests. Two tools, two responsibilities — batch-fetching 100 endpoints without hitting 429 or losing data to network hiccups.

2026 年 3 月 23 日
正體中文
Ky Typescript JavaScript Concurrency P-Limit Api Rate-Limiting
Featured image of post Fetch Concurrency Control: Limit Simultaneous Requests with p-limit
Frontend

Fetch Concurrency Control: Limit Simultaneous Requests with p-limit

Promise.all with 100 requests fires them all at once — servers respond with 429 or fall over. Use p-limit with fetch to cap the number of simultaneous requests. One line of setup, no custom semaphore required.

2026 年 3 月 22 日
正體中文
Fetch JavaScript Typescript Concurrency P-Limit Api Rate-Limiting
Featured image of post auto-venv: Fish Shell Auto-Activates Python Virtualenvs on cd
Python Tools

auto-venv: Fish Shell Auto-Activates Python Virtualenvs on cd

auto-venv is a Fish shell plugin that automatically activates and deactivates Python venvs on directory change. Supports .venv, venv, .env, env naming, uses git root for scope, and works with z, zoxide, and any other navigation tool.

2026 年 3 月 21 日
正體中文
Fish Python Venv Automation Shell Virtualenv
Featured image of post Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2
PHP Tools

Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2

Use fish shell aliases and functions to make php, composer, and phpunit automatically follow Laravel Valet PHP versions. Handles legacy projects requiring Composer v1 with smart composer.phar detection.

2026 年 3 月 20 日
正體中文
Fish Laravel Valet Php Composer Shell Version-Manager
Featured image of post Python Mock Pitfall: Patch Where It Is Used, Not Where It Is Defined
Python Testing

Python Mock Pitfall: Patch Where It Is Used, Not Where It Is Defined

The most common Python mock mistake: patching utils.sum when the test still runs the real function. When you do `from utils import sum`, the importing module gets its own binding. Patch the importing module's namespace, not the original definition.

2026 年 3 月 19 日
正體中文
Python Testing Mock Unittest Patch Pytest
Featured image of post PHP goto Isn't Evil: One Less Nesting Level for Retry Logic
PHP

PHP goto Isn't Evil: One Less Nesting Level for Retry Logic

PHP goto makes retry logic more readable than while loops: one less nesting level, flatter structure, clearer intent. Only jumps back when explicitly retrying — success returns directly, exhausted retries throw.

2026 年 3 月 18 日
正體中文
Php Goto Retry Pattern
Featured image of post Generate Root Domain URLs Inside Laravel Subdomain Routes: clone UrlGenerator
Laravel PHP

Generate Root Domain URLs Inside Laravel Subdomain Routes: clone UrlGenerator

Inside a Laravel subdomain route, url() and route() produce URLs with the subdomain. Clone app(UrlGenerator::class) and call useOrigin() to generate root domain URLs without affecting global state.

2026 年 3 月 17 日
正體中文
Laravel Php Testing Routing
Featured image of post CLI-Anything: The Universal Bridge for AI Agents to Control Any Software
AI

CLI-Anything: The Universal Bridge for AI Agents to Control Any Software

No screenshots, no clicking — one command makes Claude Code generate a complete CLI for any software, letting AI agents directly call GIMP, Blender, and LibreOffice

2026 年 3 月 15 日
正體中文
Claude Code Ai-Agent Cli Automation
1 2 3 4 5 6 7 8 9 10 12
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy