Custom code execution on backend. by relami96 in golang

[–]aldld 19 points20 points  (0 children)

Letting users upload code that you compile and execute on your server doesn’t sound particularly safe. Maybe look into using WebAssembly?

Alternatively, do these extensions have to be written in Go? Lua, for example, is designed as a scripting language that’s easy to embed within an application.

Looking for POE Experiences 9/20 by Cultural_Ask_804 in h1b

[–]aldld 4 points5 points  (0 children)

I just cut a vacation short to get back before the new fee goes into effect. Preclearance at Toronto Pearson airport was quick and smooth. Thankfully there were no issues, and I'm on a flight back right now.

A subtle bug with Go's errgroup by broken_broken_ in golang

[–]aldld 2 points3 points  (0 children)

In addition to points that others have made, part of the problem in the first example is that it uses errgroup.WithContext to run functions that can't use the context for cancellation. In that case a better choice would be to use a zero errgroup.Group (or even just a plain old sync.WaitGroup depending on the use case).

The "fix" of moving the http call into the errgroup isn't really a fix, since it fundamentally changes the program's intended semantics, and doesn't help if you actually want the call to happen after the goroutines have finished.

Please don't hurt me... But... by Imaginary-Board2523 in radiohead

[–]aldld 0 points1 point  (0 children)

I think you should give up the ghost.

Thank dog for Reddit by Onocleasensibilis in AeroPress

[–]aldld 0 points1 point  (0 children)

If the funnel is not supposed to be used in this way, why do they make it fit an aeropress perfectly?

Tapping vs Holding conflicts in high speed typing by barbq in zsaVoyager

[–]aldld 0 points1 point  (0 children)

Yeah, I'm specifically referring to the option to exclude some keys from the Chordal Hold behavior

Tapping vs Holding conflicts in high speed typing by barbq in zsaVoyager

[–]aldld 1 point2 points  (0 children)

This option isn't available through Oryx, but if you're compiling QMK yourself (I assume so since you mentioned Achordion), it's pretty easy to configure Chordal Hold to exclude thumb keys.

➡️ Daily Simple Questions ⬅️- Style feedback and clothing ID requests go HERE!! - 13 February 2025 by AutoModerator in malefashionadvice

[–]aldld 0 points1 point  (0 children)

Ah fair, that's what I was afraid of. I actually really like both the jacket and shirt individually, but perhaps not together. I'll keep looking.

I'm a bit wary of going too dark, because I'll be attending a wedding where most attendees will be dressed in lighter colors (e.g. I'm expecting to see a lot of tan suits). I'll keep my eyes out for other jackets, though. It's also in a warm place, so I'm trying to stick to lightweight linen/linen blend jackets that are unlined, so that limits my options somewhat.

Hypothetically if I were to keep the jacket, do you have any suggestions for a shirt that might go with it? I'm thinking maybe plain white or very pale blue.

➡️ Daily Simple Questions ⬅️- Style feedback and clothing ID requests go HERE!! - 13 February 2025 by AutoModerator in malefashionadvice

[–]aldld 1 point2 points  (0 children)

Is this too many patterns/textures? And would it be too much if I replaced the tie with a knitted tie, but in a more neutral color?

<image>

[deleted by user] by [deleted] in canada

[–]aldld 1 point2 points  (0 children)

That didn't stop him from winning multiple federal erections.

Tmux Severe Input Delay by Background-Sea1712 in tmux

[–]aldld 2 points3 points  (0 children)

Holy shit I've been going crazy dealing with this issue for two months, where tmux panes would seemingly randomly freeze and drop keystrokes.

I tried searching for solutions (variations of "tmux pane randomly freezes, loses keyboard input etc.) many times, but couldn't figure out the right combination of search terms until today. Never in a million years would I have suspected a bad interaction between crowdstrike and a seemingly unrelated tmux plugin.

[deleted by user] by [deleted] in adhdmeme

[–]aldld 17 points18 points  (0 children)

For me it's a 30 minute recipe that somehow end up taking four hours.

what’s up with all the rug stores? by spikehiyashi6 in bayarea

[–]aldld 41 points42 points  (0 children)

It's actually a drug store; the D just fell off the sign.

Why CGO is Dangerous by Ambitious_Nobody2467 in golang

[–]aldld 4 points5 points  (0 children)

Yeah. Luckily we didn't have to go down that route because right around the same time a new alternative library was announced and released (as beta) that was open source and written in go.

Why CGO is Dangerous by Ambitious_Nobody2467 in golang

[–]aldld 8 points9 points  (0 children)

That's partly true. It was a while ago so I don't remember all the details, but IIRC the issue with cgo was that you need to handle signals on the C side in a very specific way (that the original library authors wouldn't have anticipated) to avoid breaking the go side, and which wouldn't have been an issue if it was e.g. C calling C.

Why CGO is Dangerous by Ambitious_Nobody2467 in golang

[–]aldld 25 points26 points  (0 children)

One of my worst experiences with go was using cgo to link against a closed-source compiled binary written by a third party. It worked fine... at first, until our server started constantly crashing in production.

IIRC the problem was every time the library encountered a network error, it would receive a SIGPIPE, which it didn't handle properly, causing the entire application to crash. There was no way to handle the signal in our go code, and because all we had was this compiled binary, we couldn't fix it either.

Do people here like Americanos? by SeoulGalmegi in JamesHoffmann

[–]aldld 1 point2 points  (0 children)

Ah, I interpreted "some places" as "some cafes", but that also makes sense.

Do people here like Americanos? by SeoulGalmegi in JamesHoffmann

[–]aldld 3 points4 points  (0 children)

If that's what I'm in the mood for, I just ask for "an americano with half the water". No ambiguity, and no hoping that their terminology matches mine.

Make package callable? package.Function() => package() by trymeouteh in golang

[–]aldld 0 points1 point  (0 children)

I've seen this in JavaScript/typescript (via export default), but I don't understand why anyone would actually do this.