Skip to content

Archive

Files

26 articles
Tech 02 Sep 2026 6 min read

How to Free Up Phone Storage Without Deleting the Wrong Things

A phone can run low on storage even when it does not seem to contain many obvious files. Photos, videos, app data, downloads, offline media, message attachments, cached files, and temporary data can all grow quietly over time. The safest way to recover space is not to start deleting at random. First identify what is using storage, then remove items whose purpose you understand. That reduces the chance of losing important photos, documents, conversations, or app data.

Go 01 Sep 2026 6 min read

Atomic File Writes in Go: Prevent Partial and Corrupted Files

Writing a file with os.WriteFile is simple, but it is not always the safest choice for configuration files, generated metadata, caches, state files, or other data that must never be left half-written. If a process crashes or the machine loses power while a file is being replaced, readers may observe incomplete content. A common way to reduce this risk is an atomic file write: write the new content to a temporary file first, then replace the destination with a rename.