Skip to content

WebCheatSheet

The easy way to know

  • PHP
  • HTML
  • JavaScript
  • SQL
  • ASP
  • MS Access Functions
  • SaaS
  • Email

Month: September 2026

SaaS Architecture

Tenant-Aware Caching Without Data Leaks

Sergey KornilovSeptember 26, 2026

Design multi-tenant cache keys, invalidation, authorization boundaries, and per-tenant limits so cached data cannot leak between SaaS customers.

SaaS Architecture

Soft Delete Strategy for Multi-Tenant SaaS

Sergey KornilovSeptember 26, 2026

Design tenant-scoped soft deletes with deleted timestamps, filtered queries, uniqueness rules, restoration, retention, and permanent purge jobs.

JavaScript

Download Generated Text as a File with JavaScript

Sergey KornilovSeptember 26, 2026

Create a client-side text or CSV download with Blob, an object URL, the download attribute, UTF-8 handling, and timely URL cleanup.

JavaScript

Resize an Image Before Upload with JavaScript

Sergey KornilovSeptember 26, 2026

Resize a selected browser image with createImageBitmap and canvas, preserve aspect ratio, export a Blob, and upload the smaller file.

JavaScript

Prevent Duplicate Form Submission in JavaScript

Sergey KornilovSeptember 26, 2026

Disable a form’s submit controls after a valid submission, show progress, handle failed asynchronous requests, and still enforce idempotency on the server.

JavaScript

Validate Image Dimensions Before Upload with JavaScript

Sergey KornilovSeptember 26, 2026

Check an image file’s intrinsic width and height before upload using createImageBitmap, while keeping server-side validation as the security boundary.

HTML

Detect and Repair Double-Encoded UTF-8 Text

Sergey KornilovSeptember 26, 2026

Recognize common double-encoded UTF-8 patterns, reverse a known Windows-1252 mis-decoding in PHP, and avoid corrupting already-correct rows.

HTML

Unicode Normalization: NFC vs NFD

Sergey KornilovSeptember 26, 2026

Understand why visually identical Unicode strings can compare differently and when to normalize text to NFC or NFD in JavaScript and databases.

HTML

Fix Invalid UTF-8 Errors in JSON

Sergey KornilovSeptember 26, 2026

Find and repair malformed UTF-8 before JSON encoding in PHP, preserve error visibility, and avoid silently discarding corrupted input.

HTML

Fix Mojibake After a MySQL Migration

Sergey KornilovSeptember 26, 2026

Diagnose and repair garbled text after a MySQL migration by separating stored bytes, column metadata, connection character sets, and application output.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Validate Database Image BLOBs before Decoding with PHP GD
  • Fix PHP Extension undefined symbol Errors after a Runtime Change
  • Keep JavaScript Module Scope Separate from iframe Documents
  • Verify the TLS Version Used by a SQL Server Connection
  • Enforce Unique Email Addresses Safely with PHP and MySQL

Recent Comments

  1. Fix PHP Extension undefined symbol Errors after a Runtime Change - WebCheatSheet on Connect PHP to SQL Server with PDO_SQLSRV
  2. Keep JavaScript Module Scope Separate from iframe Documents - WebCheatSheet on HTML Link Targets and Iframes
  3. Enforce Unique Email Addresses Safely with PHP and MySQL - WebCheatSheet on Hash and Verify Passwords Securely in PHP
  4. Explain Why PolarDB Storage Exceeds MySQL Table Size - WebCheatSheet on Get the Size of Every MySQL Database and Table
  5. Install SQLSRV for PHP 8.1 with a Compatible Driver Version - WebCheatSheet on Install and Configure PHP on Windows

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • October 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • ASP
  • Email
  • HTML
  • JavaScript
  • MS Access Functions
  • PHP
  • SaaS Architecture
  • SQL
  • Uncategorized
Copyright © 2026 WebCheatSheetFresh News by Ascendoor | Powered by WordPress.