Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dezgeg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
271.
▲
by
dezgeg
5y ago
One trick to temporarily 'modify' read-only filesystems is to bind-mount something over it: sudo mount --bind /bin/false /usr/bin/pkexec This will be gone over reboot, however.
272.
▲
by
dezgeg
5y ago
At least you are lucky enough to be able try changes yourself. I am in the "fun" situation where team of 50+ SW engineers don't have single piece of test equipment needed for operating the hardware, and everything has to be m
273.
▲
by
dezgeg
5y ago
How much time does reverse engineering this kind of chip take?
274.
▲
by
dezgeg
5y ago
Hmm, I don't think that one would help with OOM killer termination either.
275.
▲
Lib/string: Bring optimized memcmp from glibc
(lore.kernel.org)
2 points
by
dezgeg
5y ago
|
0 comments
276.
▲
by
dezgeg
5y ago
"Fortunately" there will be bigger problems than Rust on 128-bit machines - lots of UAPI structures in the Linux kernel have pointer size hardcoded to 64 bits.
277.
▲
by
dezgeg
5y ago
It doesn't. They are in the end just typedefs to the basic types like int, long, etc.
278.
▲
by
dezgeg
5y ago
Couldn't there be another register that controls whether access to the problematic register in EL0 is allowed, though?
279.
▲
by
dezgeg
5y ago
In gdb you can put commands to be executed on a breakpoint; you can put necessary prints + continue statement there.
280.
▲
by
dezgeg
6y ago
She is, but in the graphic it is written that the number being dialed is in the Pennsylvania.
281.
▲
by
dezgeg
6y ago
Yes, VIRTUAL memory. Most operating systems (Windows, Linux) leave 2 or 3 GB for the user process and reserve the of the address space for themselves. That way userspace-to-kernel switch does not require changing active page table (and also
282.
▲
by
dezgeg
6y ago
If your target audience is C, packing 3 values into one might even be the easiest to reason about, you get a single value that you can compare with the usual < and > etc. operators.
283.
▲
by
dezgeg
6y ago
Yes, 3d era GTAs all have physics tied to the frame rate. The default setting on PC is to lock the frame rate to 30 or 25 fps (depends on which game) and you get problems if you disable that. This video shows some examples: https:/&#x
284.
▲
by
dezgeg
6y ago
> unless the coding style also requires you to replace all (leading) sequences of N spaces with with a <TAB>, which is, IMO, quite brain-dead It is brain-dead, but that is exactly what is required in many styles.
285.
▲
by
dezgeg
6y ago
In practice you get problems, because of the line length rule. I.e. if your editor is configured with four-space tabs and a line with one leading tab shows up in your editor having 79 characters, it will show up as 83 characters for others
286.
▲
by
dezgeg
7y ago
Few weeks ago there were local reports of increased sales of teleconf gear (like webcams) thus companies and probably individuals have invested money in remote working gear. So I am hopeful that companies/people will want to get their
287.
▲
by
dezgeg
7y ago
BCD (Binary-coded decimal) comes to mind; which can store values 0-99 in one byte and with native support in older CPUs.
288.
▲
by
dezgeg
7y ago
Holding chips in reset is not the only thing that matters. Complex chips may have power-sequencing restrictions; for example 1.8V power rail might need to be up before 3.3V, otherwise the chip gets damaged.
289.
▲
by
dezgeg
7y ago
The correction is not uniform, he passes the blob image to the shader as a texture.
290.
▲
by
dezgeg
7y ago
By that same logic, puts("Hello, world!"); is also vulnerable to DoS attack and information leak since someone could have removed the NUL terminator at the end of the string and have puts() read uninitialized/unmapped memory.
291.
▲
by
dezgeg
7y ago
File descriptors are held in type int in most APIs, which is only 32 bits wide even in 64-bit systems.
292.
▲
by
dezgeg
7y ago
Yes, strncpy() not NUL-terminating it's output is nasty and well-known. But the comment I was responding to was claiming strlcpy() being unsafe.
293.
▲
by
dezgeg
7y ago
If your buffer isn't a NUL-terminated, then don't call a function that is only defined for NUL-terminated buffers. It's as simple as that. I'm baffled by how some people claim strlcpy() is 'broken' or 'not
294.
▲
by
dezgeg
8y ago
I would have previously thought so too, but recently there was a cheating incident in the GTA speedrunning where already a top runner started cheating: https://old.reddit.com/r/speedrun/comments/98utvr/gr
295.
▲
by
dezgeg
8y ago
The PIC18 instruction set has this property. Most instructions take up a single 16-bit instruction word, but the few ones that take up 2 words all have the 0b1111 in the high bits of the second word, which would execute as a NOP if branched
296.
▲
by
dezgeg
8y ago
The internals of the test framework are pretty heavily tied to Nix and NixOS, so a release independent of Nix(OS) isn't probably going to happen. With that said, the test infrastructure itself is exposed as library functions that any N
297.
▲
by
dezgeg
8y ago
It might compile, but with modern compilers doing increasingly aggressive optimizations (especially on undefined behaviour), it becomes more of a gamble whether the old source with a modern compiler produces the same results as the old code
298.
▲
by
dezgeg
9y ago
Do you think this sort of feeling is unique to Google and just not any large-ish company?
299.
▲
by
dezgeg
9y ago
Besides a vulnerability, this bug is in fact a regression compared to previous macOS versions. In an API described by POSIX, no less.
300.
▲
by
dezgeg
9y ago
To be clear, this bug was found running Nix on macOS, not iOS (just in case someone else besides me interpreted the two comments here as such). Additional fun fact - the issue in question was not found during new development, but by just ru
More ›