Skip to content

Tag: linux

Gnu-parallel resume when changing command

When resuming a parallel command with –resume, is the command allowed to change? In the docs on –resume, it states that It it important that the input of the completed jobs is unchanged but it doesn’t mention if the command itself can change as long as the input doesn’t change. For exa…

c++ close a open() file read with mmap

I am working with mmap() to fastly read big files, basing my script on this question answer (Fast textfile reading in c++). I am using the second version from sehe answer : and it works just great. But if I implement it over a loop of several files (I just change the main() function name to: and then get the

Building Poco with Custom OpenSSL

I need to build Poco using the OpenSSL that I built from source, rather than the one installed by Ubuntu’s apt. Let’s say my OpenSSL root is in /opt/openssl/1.0.2. Do I need to set environment variables, or pass parameters to the configure or make steps? I’m not finding any info in the docs,…

clangd on linux cannot find default headers

I’ve installed the newest LLVM toolchain from the official PPA, including clang, clang-tools-extra, lldb, lld, libc++ and libc++abi. I’m trying to use clangd with emacs + lsp. All works fine except clangd cannot find default headers like memory, vector and so on. My code is fine, it is normally co…