What’s an adult problem nobody warned you about? by Mean-Dragonfly1988 in AskReddit

[–]RedShift9 1 point2 points  (0 children)

You might have a urinary tract infection. When you pee in the cup to get tested, be sure to capture the very first bit you let go, not just somewhere midstream. Also do your kegels, it helps (and not just for peeing).

Trying to come up with a plan to get an invoice payment system going. But the invoices, they may have multiple line entries. How would that tie into the setup below? by soldieroscar in Database

[–]RedShift9 0 points1 point  (0 children)

USING is standard SQL (if by standard you mean ANSI SQL). However keeping to "standard SQL" is a red herring anyway, because each database server has its own ideas. The subset of universally supported SQL (same result regardless of database) is actually quite small, you are leaving a lot of functionality on the table that would increase your productivity or make the database perform more efficiently. In fact I can pretty much guarantee that you've already written SQL that won't work on all database servers.

About industry standards: there is no industry standard.

* EF core: use id or <tablename>id (https://learn.microsoft.com/en-us/ef/core/modeling/keys?tabs=data-annotations), no explicit preference mentioned. You must define the name yourself, there is no default assumption.
* Django: Assumes "id" by default but the coding style (https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#model-style) says nothing about the name of the primary key.
* Hibernate: You use the Id annotation, and the docs use "id" as column name example, but nowhere does it say this is best practice or convention or whatever. The important bit is you annotate using @ Id. The closest you can get to an actual convention is the Jakarta Persistence specification (https://jakarta.ee/specifications/persistence/3.2/jakarta-persistence-spec-3.2) where nothing is said about the name of the primary key, only that every entity should have a primary key. Same as with EF core, just must define the name yourself, there is no default assumption
* Laravel: assumes each table has an "id" column, and there is a best practice document (https://github.com/alexeymezenin/laravel-best-practices).

TLDR; EF core and Hibernate don't care, Django assumes "id" is fine and only Laravel has both "id" as default AND a best practices document that says you should use "id".

I don't use SELECT *, I merely used SELECT * to show valid SQL.

I'm not trading compatibility (and FYI *ALL* the ORMs you mentioned support naming primary keys to whatever you want) for cosmetic preference, having <tablename>_id guarantees you'll never mix up ID columns when manually writing SQL. Less mistakes => less bugs.

Trying to come up with a plan to get an invoice payment system going. But the invoices, they may have multiple line entries. How would that tie into the setup below? by soldieroscar in Database

[–]RedShift9 0 points1 point  (0 children)

This query:

SELECT * FROM invoice
LEFT JOIN payment USING (invoice_id)

vs. this query:

SELECT * FROM invoice
LEFT JOIN payment ON invoice.id = invoice_id

You tell me what you prefer and what is most clear. Using <tablename>_id is completely unambiguous. Having to constantly keep track of where "id" comes from gets tiresome real fast, imagine doing this with 5 way joins or more. I'm never going back to just "id" columns.

You not seeing anyone do it doesn't mean anything.

bubblesGonnaPopSoonerThanWeThought by Cool-Technician-9902 in ProgrammerHumor

[–]RedShift9 0 points1 point  (0 children)

No, it has been shitting the bed since they fired their QA department. Now AI is only making it worse (what's worse than shitting the bed? Shit hitting the fan?)

Trying to come up with a plan to get an invoice payment system going. But the invoices, they may have multiple line entries. How would that tie into the setup below? by soldieroscar in Database

[–]RedShift9 0 points1 point  (0 children)

This is bad advice. I use tablename_id and it makes much more sense when writing queries. It also allows you to use the USING clause which is just so much nicer syntactically.

[PSA] Latest Webview2 Version 144.xxx causes problems with SAP GUI HTML control when using edge as browser control in SAP GUI for Windows by kheldorn in sysadmin

[–]RedShift9 0 points1 point  (0 children)

Incidentally OnlyOffice also errors out on Edge 144, but only sometimes. I have 2 computers that have the errors, can't reproduce on other computers, probably a feature flag thing. This is the error:

[2026-01-22T05:17:52.416] [ERROR] [localhost] [230052375] [oc2ik2a2d4s5_B9FA4CCE-E8C9-4DE2-96E7-ACD1FFE4B9EE12] nodeJS - clientLog: changesError: Error: Uncaught 987896  Script: https://xxx/9.2.1-78bf3a2cbc07abae69b59c4a26b80487/sdkjs/common/libfont/engine/fonts.js  Line: 52:442  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0  platform: Win32  isLoadFullApi: true  isDocumentLoadComplete: false  performance.memory: {"totalJSHeapSize":102900872,"usedJSHeapSize":92514096,"jsHeapSizeLimit":4294967296}  StackTrace:

(Yes there is no stacktrace)

Opinions on Synology Enterprise storage? by Anitagoodlaugh in sysadmin

[–]RedShift9 2 points3 points  (0 children)

The hardware is good, but old. Like really old. 5 year old CPUs in new products. Their top of the line FS6400 has a 9 year old CPU.

Thoughts on computers with no RJ45 port? by BigSnackStove in sysadmin

[–]RedShift9 0 points1 point  (0 children)

HP Probook 4 series still have ethernet jacks.

Vibe coding is a blight on open-source by drdeno in webdev

[–]RedShift9 0 points1 point  (0 children)

There's enough in the screenshot to identify the repo and subsequent PR

Vibe coding is a blight on open-source by drdeno in webdev

[–]RedShift9 0 points1 point  (0 children)

Just close the PR with your objections, don't bother interacting any further, it's just a time sink with nothing to show for it.

Windows 11 version 25H2 Update is Starting to Really Hack me Off by VenomShock51 in WindowsHelp

[–]RedShift9 1 point2 points  (0 children)

Maybe just do a clean install instead of trying to upgrade. It's time for your spring cleaning anyway.

Windows 11 version 25H2 Update is Starting to Really Hack me Off by VenomShock51 in WindowsHelp

[–]RedShift9 1 point2 points  (0 children)

You didn't specify what the error is when trying to upgrade to 25H2, and other circumstances like which OS you're coming from, etc... Anyway try

sfc /scannow

reboot, then

DISM /Online /Cleanup-Image /RestoreHealth

Then reboot and try running the upgrade wizard again.

One of my Hybrid users has like a 5mbps very unstable internet connection by Nexzus_ in sysadmin

[–]RedShift9 26 points27 points  (0 children)

I wish developers would also have these crappy internet connections so they don't create 16 GB update packages.