150 karma · joined Jan 9, 2016 (10y ago) · 74 submissions
comment 1y ago · link · parent
https://news.ycombinator.com/item?id=42524537
It's too bad I don't use vscode. I think it would be cool to have something that can jump between terminal emulators, something that isn't shackled to a text editor.EDIT: I seem to vaguely remember something similar to this concept from some anime I watched that depicted a "hacker". It might have been serial experiments lain, or cowboy bebop..
comment 1y ago · link · parent
comment 1y ago · link · parent
https://github.com/archlinuxarm/PKGBUILDs/pull/1580
Edit: It's been a while since I did this, but I had to manually build the kernel, overwrite a dtb file maybe (and Linux_for_Tegra/bootloader/l4t_initrd.img) and run something like this (for xavier)
sudo ./flash.sh -N 128.30.84.100:/srv/arch -K /home/aeden/out/Image -d /home/aeden/out/tegra194-p2972-0000.dtb jetson-xavier eth0comment 1y ago · link · parent
#include <boost/scope/defer.hpp>
BOOST_SCOPE_DEFER [&] {
close(fd);
};Implementation here: https://github.com/boostorg/scope/blob/develop/include/boost...
comment 1y ago · link · parent
I take it that it is implicitly assumed that code running on the server (which I cannot spot the source for) doesn't need to be available, to be trusted? (That there's no way you could come up with an attack through cryptanalysis, involving what the server does, since the security of the data coming from the client is all that matters?)
comment 1y ago · link · parent
If they managed to do it, they should open-source the code. If they made a research breakthrough, they should publish. Doing either of those things would give me the peace of mind that I need.
comment 1y ago · link · parent
Anyways, I eventually learned this was about a terminal emulator (which is awesome), but the ghost on the front page really inspired my imagination. I think it would be a good thing to have some kind of companion like that, when it's me, by myself, constantly surrounded by terminals all day. Is the choice of having the ghost be rendered in a text-mode terminal important? I think it is for me.
comment 1y ago · link · parent
Still though, I want to see MyMapType::value_type in compiler errors rather than... Well, you know. It's going to contain the type of the key, the type of the value, the type of the allocator, just when all you want to really know is that it's a pair<key, value>, which I think most people know of as My map type::value_type.
comment 1y ago · link · parent
comment 2y ago · link · parent
My number theory professor was a brilliant mind, someone who had spent lots of time at the Institute for Advanced Study, and he absolutely sucked at adding/subtracting/multiplying numbers. And that was something he freely admitted. It wasn't important to his work, and it isn't important to mine.
comment 2y ago · link · parent
One day, I went back to my high school and spoke to my computer science mentor back then [1]. I passionately asked him why we were never exposed to group theory. The answer, he said, was the SAT. None of that stuff is on the SAT, so it can't be justified teaching.
[1] The great Andrew Merrill
comment 2y ago · link · parent
But my post was primarily focusing on the experience of building / modifying packages. To elaborate just a bit more as an example, the Debian docs claim one can use this environment variable to control certain things when building a package.
DEB_BUILD_OPTIONS='nostrip noopt debug'
What they don't mention, is that these environment variable values are only enabled on a case-by-case basis for every package. Which means, you can't just expect to be able to easily rebuild an arbitrary package without cleaning first, i.e. doing an incremental build. You have to look at debian/rules, which is highly unstructured (unlike PKGBUILD), uses tons of DEB_ makefile variables which I have no understanding of.
comment 2y ago · link · parent
comment 2y ago · link · parent
Also, the gp register- don't know of any other arch where you need to set something like that up to access global variables. It's another layer of indirection which makes the assembly code harder to read (especially PIC code that works off of the value of the t9 register)
comment 3y ago · link · parent
GLIBC_TUNABLES=glibc.cpu.hwcaps=
-AVX
-AVX2
-AVX_Usable
-AVX2_Usable
-AVX512F_Usable
-SSE4_1
-SSE4_2
-SSSE3
-Fast_Unaligned_Load
-ERMS
-AVX_Fast_Unaligned_Loadcomment 3y ago · link · parent
https://qpdf.readthedocs.io/en/stable/overview.html
It turns a PDF (typically everything in it is compressed binary blobs) into a mixed binary/ASCII file (which itself is a PDF) that can be edited with vim.
comment 3y ago · link · parent
comment 3y ago · link · parent
see https://github.com/bminor/glibc/blob/glibc-2.31/sysdeps/x86_...