Find long printable strings with strings -n 8
Pull readable text out of a binary with strings -n 8 to skip short noise, a first look for keys, URLs and debug messages in a file you did not build.
Short posts that solve one thing: the code, the output we got, and why it works.
Pull readable text out of a binary with strings -n 8 to skip short noise, a first look for keys, URLs and debug messages in a file you did not build.
ioctl(kvm, KVM_CREATE_VM, 0) returns a new file descriptor for an empty VM. Pass 0 as the machine type on x86, which has no other values.
Print a line whenever any watched signal changes with $monitor, set up once, and learn why a second call silently replaces the first.
Test for a power of two with one subtraction and one AND on an unsigned value, and keep the leading x check so that zero is not reported as one.
Queue an asynchronous file read with io_uring_prep_read in liburing 2.5 on Linux 6.8, submit it, and read the byte count from cqe->res.
Start OpenOCD 0.12 with an adapter script and a target script, as -f interface/stlink.cfg -f target/stm32f4x.cfg, and read what its startup log tells you.
Hand data from one thread to another with a release store and an acquire load on a std::atomic flag, the pairing that creates happens-before.
Pick the main video or audio stream with av_find_best_stream, which returns an index and can hand back the decoder, instead of looping over streams yourself.
Make Google Benchmark print items per second by calling state.SetItemsProcessed after the loop, so results compare across input sizes.
Add kernel options to a Yocto kernel with a .cfg fragment listed in SRC_URI of a linux-yocto bbappend on Scarthgap, without replacing the defconfig.
Read the running core with xPortGetCoreID in an ESP-IDF 5 task pinned with xTaskCreatePinnedToCore, instead of assuming core 0.
Mark a function __global__ in CUDA 12 so the host launches it and the device runs it, returning void, and see which qualifiers may call which.
We send one email when a new post is published. No spam.