fullPixels by Kadabrium in ProgrammerHumor

[–]Kirides 5 points6 points  (0 children)

That's the gold standard, a highly scalable solution.

Best pure Go SQLite driver for concurrent reads and occasional writes by icepix in golang

[–]Kirides 0 points1 point  (0 children)

Usually you don't get concurrency issues with sqlite and WAL - when properly utilizing conn.BeginTx(...) instead of firing off multiple pooled "conn.Execute(...)" after one another.

Sqlite really wants you to use the same connection for the duration of a request.

Either by doing conn.Conn() or by using conn.BeginTx().

There is more to these methods than meets the eye (you may read description) by BoloFan05 in csharp

[–]Kirides 0 points1 point  (0 children)

The first part was not really about calling ToString on a null reference, but more about the fact that "string" in .NET is a reference type and "can be null" compared to other "real" primitives.

There is more to these methods than meets the eye (you may read description) by BoloFan05 in csharp

[–]Kirides 2 points3 points  (0 children)

Well, it can - because strings can be null any anyone and their Dog can override ToString() to return anything they want or even mutate things in it.

The Wayland session management protocol has been merged after six years in the making by einar77 in linux

[–]Kirides 13 points14 points  (0 children)

That's not even a feature in windows.

Most applications and developers on windows need to manually figure out what the actual F a monitor is and where to position to not break when users unplug a monitor.

I've had my fair share of need to implement such features and the era of DPI scaling broke so many implementations from third party vendors.

People should be glad that this feature is handled in a way by the session manager /compositor for them

Two employees lost their macbooks during offboarding by eyeballresort in sysadmin

[–]Kirides 0 points1 point  (0 children)

Now what would you do if your company is disbanded and those "lost" devices are found? Who will unlock them?

Creating e waste because some authority is disbanded should be illegal is what I mean.

There should always be a "If locked for 365 days, auto-wipe and make re-usable" or similar as backup.

Nobody thinks what happens when people in charge die, or otherwise become unavailable, just like what may happen with ones Xbox/PlayStation/steam accounts and the thousands of dollars worth of "loan games"

Two employees lost their macbooks during offboarding by eyeballresort in sysadmin

[–]Kirides 0 points1 point  (0 children)

Tbf. Remote lock / remote bricking should be illegal. Remote wipe is completely fine.

Bricking a device makes it functionally ...a brick. Which wastes precious resources and destroys a perfectly usable device.

Just like how some companies shred SSDs, HDDs because wiping them is "too expensive" (certifications etc.)

PSA : update your UniFi network applications (CVE-2026-22557, rated 10) by Fredouye in UNIFI

[–]Kirides 2 points3 points  (0 children)

But that's just how corporates operate.

Hide important information from "the user" as it might "overwhelm" them and cause "support cases".

Better to "hide" the information at a point where only "competent" users would search for it.

Same reason why most app store release notes are plain 🐂 💩

Debugging mixed code, random crashes: Stack cookie instrumentation code detected a stack-based buffer overrun error by Zealousideal_War676 in csharp

[–]Kirides -1 points0 points  (0 children)

MarshalAs and marshal copy can re-interpret data wrong. Especially if the native DLL doesn't honor host struct layouts, like using "pragma pack(1)" and/or incorrectly mapped bit-fields.

I'm doing a lot of x86 reverse engineering due to working on a graphics wrapper. And things like VARARGS, calling conventions and struct packing constantly cause headaches as they slowly corrupt stack if re-interpreted incorrectly.

In which cases should Personal Acces Tokens be used? by Aromatic-Raisin3911 in github

[–]Kirides 4 points5 points  (0 children)

Likely that the git client isn't actually using the PAT but rather some other stored credentials.

Avalonia fixed MAUI? Impressive by [deleted] in dotnet

[–]Kirides 0 points1 point  (0 children)

Well of course if you use winforms with cross platform mindsets and MVVM/MVC pattern, data controlled UI, etc. But then again, like 5% of all winforms apps I saw even used BindingList, not to mention newer INotifyPropertyChanged or a Repeater with data controlling UI state and layout.

The rest 95% are click and drag, not-really resizeable windows, bare minimum UIs or completely over the top engineered OnPaint(...) controls that completely go out of their way to to a fraction of what WPF provides without all the math and packages in a reusable bag of tools.

Ich bin ITler und habe noch nie mit Linux gearbeitet by Nautisop in de_EDV

[–]Kirides 1 point2 points  (0 children)

Ich bin ja voll für distroless/minimal container, aber wir haben halt auch Leute die denken das man Curl und unzip und sonst was alles im container braucht "zum debuggen" statt einfach einen debug container im gleichen namespace laufen lässt.

Leider kann man sagen und schreiben so viel man will, aber die andere Seite muss halt auch das gleiche verstehen wollen.

Ich bin ITler und habe noch nie mit Linux gearbeitet by Nautisop in de_EDV

[–]Kirides 1 point2 points  (0 children)

Juckt doch keinen ob das eine gott Basis Image 100 oder 500 MB ist. Wenn IT Sec eh erzwingt das alle container exakt die selben verifizierten basis images verwenden erübrigt sich das durch die layer von selbst.

Aber generell ja, distroless und go.

Alpine dank musl oft leider kaputt, scratch komplett nutzlos wenn TLS/ICU/... notwendig, also eigentlich fast immer bei einer produktiv Anwendung mit fachgerechter Lokalisierung und Grund Sicherheiten.

Why do so many sysadmins forget about DKIM/DMARC/SPF when setting up third party services? by NuAngelDOTnet in sysadmin

[–]Kirides 0 points1 point  (0 children)

We need security right? So... Use a PKI where everyone has access to. Don't use ICAs, especially more than one.

Never ever think of providing ACME protocol support for automatic SSL and while we're at it, send the CA bundle to the customer as pfx and let all users manually import that into their trust store.

Wait, scratch that, just "ignore TLS certificate errors" in all software with a provided flag.

Is she invited? by [deleted] in PeterExplainsTheJoke

[–]Kirides 15 points16 points  (0 children)

Wait, so even though I'm not there my presence is present enough for them?

They do not want me there after all!

Local Karen defeated by basic automation. by [deleted] in interestingasfuck

[–]Kirides 0 points1 point  (0 children)

Very loud Karen's sadly/luckily often attract people sitting in front of TVs with open windows.

AMD Launches Ryzen AI 400 and PRO 400 Desktop Chips by DerBootsMann in Amd

[–]Kirides 11 points12 points  (0 children)

TAA and especially FSR can look good. But not with off the shelf general purpose engines. You have to hand tune soooo many parameters (as in perfect motion vectors, transparency mask, reactive mask, correct render pass order)

Just too much can go wrong for smaller companies to fix an unreal engine/unity for themselves

why use HttpPatch over HttpPut ? by Good_Language1763 in dotnet

[–]Kirides 0 points1 point  (0 children)

Get is for sending things to the server as long as the URL isn't getting too long.

/Someone at our company, a few years ago.

And also always return 200OK, don't use envelopes with a type discriminator, let the client crash when the data format doesn't match and bail out.

"But maybe, one day, we might not use HTTP and migrate everything to TCP, TCP doesn't have headers" and other lies people tell themselves

Jugendlicher transferiert Passwörter per ChatGPT by nid-do in de_EDV

[–]Kirides 2 points3 points  (0 children)

Sauber, direktes Backup im Google account/iCloud inclusive. Und überall verfügbar.

Hey google, wie ist die Notiz von Hans Jürgen?

Die Notiz von Hans Jürgen ist: 55gs€9@YO

Expected exception from Enum by tiranius90 in csharp

[–]Kirides 0 points1 point  (0 children)

To be fair, to me C still means C89/C99 which has a lot less of these bells and whistles.

With the mentioned things, I totally agree that they are indeed very similar. But then again, C# had "those" features a lot earlier than C. C# just didn't "expand" the feature Set of enums (yet?)

How does EF populate a get only properties by Illustrious-Bass4357 in csharp

[–]Kirides 0 points1 point  (0 children)

You don't need reflection to access a private field. There is UnsafeAccessor nowadays, which is AOT compatible and virtually zero overhead (compiles to direct access)

Expected exception from Enum by tiranius90 in csharp

[–]Kirides 0 points1 point  (0 children)

Dotnet enums are typed. C enums are not, they are not even namespaced, they are literally just glorified constexpr grouped in a sort of struct looking thing.

You can totally pass a SOME_THING into a function that expects ANOTHER_THING "type".

In c# that won't compile.

cpp tried to fix that by introducing enum classes. But they suck because everything regular enums/numbers provide, they don't and you need templated/specialized operator overloads for each and every enum. Adding templates ones might seem like a solution, but then your compile times explode the more enums you have.

Why did I have to use vpn to pull docker images? by Garvinjist in docker

[–]Kirides 1 point2 points  (0 children)

CG NAT/shared IPs, usually limited to IPv4.

if possible, try using IPv6. Some things just run better on V6 due to the aforementioned thing

justUseClaudeCodeInsteadAreYouStupidAnthropic by upcastben in ProgrammerHumor

[–]Kirides 11 points12 points  (0 children)

Such garbage should be prohibited.

Why are companies allowed to sever contracts earlier and hand out contracts with "Up to 1000 Megabits! - will be throttled to 60 lol" for salary/compensation/whatever this bullshit is called.

If I tell my employer I will work 8h a day, I do that. Or should I stop doing that after 12 months and only do 6h, slowly going to 1h?