Readit News logoReadit News
dmitris commented on Results of the Grand C++ Error Explosion Competition (2014)   tgceec.tumblr.com/post/74... · Posted by u/st_goliath
usefulcat · a year ago
> just piping the compiler output to less or head also doesn't work, because the errors go to stderr

|& is your friend:

g++ foo.cc |& less

dmitris · a year ago
I like to do `g++ foo.cc |& tee /tmp/out` then you can `less /tmp/out`, grep the file, open it in an editor etc.
dmitris commented on Print off a QR code for guests to join your WiFi network   practicalbetterments.com/... · Posted by u/DitheringIdiot
westmeal · 2 years ago
use qr-encode on the command line like this: qr-encode -t utf8 "wifipassword"
dmitris · 2 years ago
on a Mac, one can 'brew install qrencode' (from https://fukuchi.org/works/qrencode/index.html.en)
dmitris commented on A Lufthansa A350's frustrating Oakland diversion   onemileatatime.com/news/l... · Posted by u/ghgr
quickthrower2 · 2 years ago
Being too polite crashed a plane that got diverted many times and run out of fuel (was on the cloudberg site). I think it may have been coming from Colombia IIRC. But that is super rare.

They kept asking for “Priority” but never said “Emergency” or “Mayday” or “Pan Pan”

dmitris · 2 years ago
Avianca Flight 052 https://en.wikipedia.org/wiki/Avianca_Flight_052 (mentioned above in the comments)
dmitris commented on Advice for Prospective PhD Students   gonzales.science/resource... · Posted by u/lairv
the_snooze · 2 years ago
Principal investigator. i.e., the person in contractually in charge of a research effort, often used as a shorthand for a supervising professor who heads up a lab and advises PhD students.
dmitris commented on The Rust Implementation of GNU Coreutils Is Becoming Remarkably Robust   phoronix.com/news/Rust-Co... · Posted by u/sdht0
rlpb · 3 years ago
That's the inverse of my question. If Rust is going to replace things written in C, other stuff is going to want to dynamically link to it.

A statically compiled Rust based replacement for an entire distribution isn't a realistic proposition, unless you fancy downloading a gig or two every time there's a security update and everything has to be rebuilt.

dmitris · 3 years ago
It is possible to use Rust shared objects in C (and other languages) with the "cdylib" or "staticlib" crate types and when the Rust functions are marked with 'extern "C"'. See https://docs.rust-embedded.org/book/interoperability/rust-wi... and https://doc.rust-lang.org/reference/linkage.html. The YouTube video https://www.youtube.com/watch?v=5zmaLhSAkNE has an example/demo and Jon Gjengset has the "Reverse FFI" section in his "Crust of Rust: Build Scripts and Foreign-Function Interfaces (FFI)" video at 2:02:57 https://www.youtube.com/watch?v=pePqWoTnSmQ&t=7378s. Finally, https://prog.world/building-and-using-dynamic-link-libraries... is yes another article on "Building and using dynamic link libraries in Rust".
dmitris commented on Tetragon: eBPF-Based Security Observability and Runtime Enforcement   github.com/cilium/tetrago... · Posted by u/ABS
ABS · 3 years ago
there is also a post announcing it https://isovalent.com/blog/post/2022-05-16-tetragon
dmitris · 3 years ago
and also a whitepaper / report from Isovalent on the same topic https://isovalent.com/blog/post/2022-04-oreilly-security can be downloaded for free (after filling the form), or if you have access to O'Reilly's Safari library, it is https://learning.oreilly.com/library/view/security-observabi... there.
dmitris commented on Israel passes law denying naturalization to Palestinian spouses   reuters.com/world/middle-... · Posted by u/croes
Danidada · 3 years ago
they can marry whoever they want, they just won't be naturalized ie if a Palestinian marries an Israeli, the Palestinian won't get Israeli citizenship
dmitris · 3 years ago
what about their children?
dmitris commented on Podman 4.0   podman.io/releases/2022/0... · Posted by u/d4a
eatonphil · 4 years ago
`dnf install podman` probably? I can't remember.
dmitris · 4 years ago
alternatively `sudo dnf module install -y container-tools` https://podman.io/getting-started/installation
dmitris commented on I think I know why you can't hire engineers right now   cushychicken.github.io/wh... · Posted by u/cushychicken
clement_b · 4 years ago
Can you define PIP, please?
dmitris commented on We Switched from bcc-tools to libbpf-tools for BPF Performance Analysis   pingcap.com/case-studies/... · Posted by u/Bella-Xiang
dmitris · 5 years ago
the link is wrong - should be https://pingcap.com/blog/why-we-switched-from-bcc-tools-to-l... (the current one points to a WeBank's case study about TiDB)

u/dmitris

KarmaCake day9December 13, 2011View Original