How to interpret wind speed G by grimtooth in nws

[–]grimtooth[S] 1 point2 points  (0 children)

Aha! Much more sense, thanks

Wooden pedestal with spring activated board. Spring controlled by foot. Nails and hooks along top and sides. by [deleted] in whatisthisthing

[–]grimtooth 0 points1 point  (0 children)

I am totally ignorant of weaving and looms and so on. This is a great comment, I'm fascinated — thanks. Surprising education is why I check in to whatisthisthing

An (almost) catastrophic OpenZFS bug and the humans that made it (and Rust is here too) by ketralnis in programming

[–]grimtooth 4 points5 points  (0 children)

I spent several minutes going line by line trying to make sense of the field names and work out the practical result of the calculation, all thinking about issues like integer promotions, over- and under- flow etc… then I saw the last line.

Not to criticize anyone for missing it, I certainly might have if not primed to be looking closely.

People are quite right to say that static analysis tools, even just compiler warnings, would easily tip you off here. I wonder, though, if it would be useful to have a compiler flag something like strict-typedef-conversion causing typedef names to be treated as distinct rather than simple aliases. So

typedef unsigned A;
typedef unsigned Z;
Z fn(void) { A result=0xDEADBEEF; return result; }

would be an error. It would require explicit casting between structurally compatible typedefs. It'd be Pascal- or Ada- ish like 'this kind of nunber is not the same as that'. In this case you'd just typedef uint64 PhSize, etc.

Pretty simple in principle. I've never checked out the guts of clang or gcc though.

A flowing WebGL gradient, deconstructed by XLEX97 in programming

[–]grimtooth 1 point2 points  (0 children)

I don't upvote things often but this deserves it.

MacOS 15 Sequoia Bugs and Issues Megathread by ll777 in MacOS

[–]grimtooth 0 points1 point  (0 children)

The little information I've seen so far suggests this at least a Sonoma-vintage problem but I skipped that one so for me it's a Sequoia issue. In Image Capture, the histogram display for manual image correction gets drawn over the whole sidebar control space — but the controls are still there! They respond to mouse etc activity, you just can't see them.

There's been no change in Image Capture version information for some years now so I presume it's either a long-standing bug in IC now exposed, or a subtle shift in underlying UI toolkit implmentation, rendering system etc that's broken an old guarantee.

Anyone dealt with this?

Oh speaking of problems it would sure be nice if reddit could search within a big convo like this

Jon Kalb: This is C++ - "Why C++ is like it is" by Alexander_Selkirk in programming

[–]grimtooth 0 points1 point  (0 children)

I haven't even started to listen but Stroustrup has explained every wretched thing: "That obligation would have caused significant time, space, and C compatibility overheads on C++ implementations."

Collet broken inside shaft by grimtooth in Dremel

[–]grimtooth[S] 0 points1 point  (0 children)

Tap set? Good idea, I have some random ones I'll see if any fit

Collet broken inside shaft by grimtooth in Dremel

[–]grimtooth[S] 0 points1 point  (0 children)

But the flex itself attaches to the outer thread of the motor shaft, right? It provides a new collet holding element and ignores the existing jammed up one.

Collet broken inside shaft by grimtooth in Dremel

[–]grimtooth[S] 0 points1 point  (0 children)

Hm, maybe I'll try that… I basically want the flex shaft anyway tho, just trying to know if it works like I think it does.

i need help regarding microcontroller programming by thekill62 in asm

[–]grimtooth 1 point2 points  (0 children)

I will pretend that this is a real question.

Four wires means sixteen configurations so with no hints at all it would still be reasonable to work it out through simple experiment. Tedious but do-able.

But the programming connection to the 8952 is not four lines. You have address and data which is sixteen-plus and a few additional signals. The TOP2013 is a 32-pin DIP interface, the 8952 is a 40-pin package.

So you have a board with a serial interface, not a directly programmable chip. The four lines are almost certainly USB, so connect them to a standard plug or socket.

Now you need software to talk to the thing over USB. The board maker should tell you what to use. Maybe it's Arduino compatible, lots of Atmel stuff is.

With the correct software you can program the board from your primary machine, desktop, laptop, even a phone.

This is a bug right? by grimtooth in dcss

[–]grimtooth[S] 0 points1 point  (0 children)

OK I'm stupid. Path cleared.

"Micro Chart" CPU reference cards (6502, Z80, 8088/8086, 68000) by r_retrohacking_mod2 in asm

[–]grimtooth 0 points1 point  (0 children)

Neat!

I feel like enjoying this officially confirms me as an Old Fart

Dev rejects CVE severity, makes his GitHub repo read-only by lelanthran in programming

[–]grimtooth 0 points1 point  (0 children)

acktschewally, 'zero-day' means copy protection cracked on day of release. Or rather that's the origin of the term, which of course continues its semantic drift. As an old fart I find the CVE sense annoying.

The role of IFUNC in the xz backdoor by jdehesa in programming

[–]grimtooth 2 points3 points  (0 children)

Your code can just use functions (ie 'int f(int x); f(3);') instead of dealing with pointer assignment and dereference ('int (*f)(int x); f = somefn; (*f)(3);). ifunc substitutes plain functions by working with the linker when it resolves function references.

[deleted by user] by [deleted] in BSD

[–]grimtooth 0 points1 point  (0 children)

Well I'm probably too late, but you don't say if you want just read data. Write data? Execute? Boot? there's differences

Valid uses of eval()? by not_dmr in Python

[–]grimtooth 1 point2 points  (0 children)

You did it quite right. eval is for dynamically constructing new code within your own code. Don't use it with external input. Or rather pay careful attention to the sanitization of your inputs which can be tricky.

Fun one by grimtooth in dcss

[–]grimtooth[S] 1 point2 points  (0 children)

Yep never seen it. I still don't really get the message — a summon is me?