
USB Descriptors, Endpoints and Enumeration Explained
Understand what a USB device tells the host when plugged in: device, configuration, interface and endpoint descriptors and the enumeration steps.
Tag
445 posts

Understand what a USB device tells the host when plugged in: device, configuration, interface and endpoint descriptors and the enumeration steps.

Build a complete CHIP-8 interpreter in C11: memory, registers, the font, all 35 opcodes, timers, a 64x32 display buffer and a text-mode renderer to test it.

Set up cargo-fuzz 0.13 on a Rust nightly toolchain, fuzz a parser that uses unsafe code, read the crash report and replay, minimize and keep the failing input.

Learn the IEEE 754 layout of float and double, with the sign bit, biased exponent and fraction, decode real values by hand and check them with a C program.

Use FFmpeg 7.1 with h264_videotoolbox and hevc_videotoolbox on Apple silicon: quality and bitrate options, the hvc1 tag for QuickTime, and hardware decoding.

Read raw frames with an AF_PACKET socket and parse Ethernet, IPv4 and TCP headers in C using the Linux header structs, with length checks at every layer.

Build and run OpenMP C programs with GCC 14 and Clang 19 on Linux, set the thread count, check that the pragma took effect, and fix the common link errors.

Install Clang on Linux, macOS or Windows, point Make, CMake or Meson at it, and fix the handful of warnings and flags that differ from GCC.

Point GDB at a debuginfod server with DEBUGINFOD_URLS and it downloads matching debug symbols and source for any shared library on demand, keyed by build ID.

Learn what the JOB, EXEC and DD statements do in z/OS JCL, with a working copy job, a field-by-field walk through, the job log and the common mistakes.

A timing loop around a function can report zero, the wrong function or noise. Learn seven mistakes that make native benchmarks lie, with fixes.

A custom image is a recipe that inherits core-image, sets IMAGE_FEATURES and IMAGE_INSTALL, and names the output formats. Here is a complete my-image recipe.