
Octal Explained and Where You Still See It in Unix Permissions
Learn what octal is, how three bits map to one octal digit, and why chmod 755 and the C leading zero still use base 8 on Unix systems today.
Tag
445 posts

Learn what octal is, how three bits map to one octal digit, and why chmod 755 and the C leading zero still use base 8 on Unix systems today.

Choose between MP4, MKV and WebM by use case: web playback, archiving, editing and streaming, with what each allows and the FFmpeg commands to convert.

Share mutable state across threads in Rust 1.85 with Arc and Mutex, see why Rc and a bare Mutex fail to compile, and how to keep lock guards short.

Use GDB's print, display, ptype and info locals to read scalars, arrays, structs and pointers, and change output with format letters, @ slices and set print.

Work out how many tracks and cylinders a z/OS dataset needs from record count, LRECL and block size on 3390 DASD, with a worked example and the SPACE parameter.

Sample a program with perf record, rank functions with perf report, and read the Overhead, Command and Symbol columns to find the code that burns your CPU time.

After bitbake core-image-minimal finishes, runqemu boots it in QEMU with no board. Here are the options for graphics, networking and getting out again.

Write, assemble and link a complete x86-64 program with NASM on Linux. It prints a line, exits with a status code, and uses no C library at all.

Build an RTEMS 6 toolchain with the RTEMS Source Builder, then compile the kernel and a BSP with Waf, using the SPARC erc32 simulator target as the example.

Use waitpid in C on Linux to wait for a child, poll with WNOHANG, and decode the exit status with WIFEXITED, WEXITSTATUS and WTERMSIG.

Blink the LD2 LED on a NUCLEO-F446RE by writing the GPIO registers yourself: MODER, OTYPER, OSPEEDR, PUPDR and ODR, with a SysTick delay and a register decoder.

Create a VkInstance in C++ with the Khronos validation layer, check that the layer and extensions exist first, and read the result with a working error path.