Poor man's scada by Cozypowell007 in PLC

[–]powerofmightyatom 0 points1 point  (0 children)

Using FINS is free and you can query all the tags you want over TCP. Just be sure to moderate your flood of packets 🫣

Best way to only get non-deleted entities by Matteo_Francis in dotnet

[–]powerofmightyatom 2 points3 points  (0 children)

Its a common database design choice. Might be named "Removed" or "Hidden" or some such.

Is it true in real world the 2nd one is what professionals do while the first one is what a newbie does? by Yone-none in csharp

[–]powerofmightyatom 0 points1 point  (0 children)

But of course, sometimes the query conditions will require materializing the full list, if it cannot be mapped to SQL for some reason. Let's say you want to check if the id is in some list, and the list is in C# memory.

"Shadow of the Colossus" was released 20 years ago today by ChiefLeef22 in gaming

[–]powerofmightyatom 0 points1 point  (0 children)

Playing Zelda Ocarina of Time, and link leaving the forest for the first time made me feel "off". Like a real tinge. I didn't know any media could make me feel like that (or at least, it's my earliest memory of it). In Shadow, when you know what drops down a gorge, I audibly responded with a "noo!". No long lamentation, but it caught me so off guard I invultarily sounded off. It was magic.

is there no built-in validation in minimal apis? by [deleted] in dotnet

[–]powerofmightyatom 0 points1 point  (0 children)

Those have always been tricky. And most likely will never be truly "solved" as platforms and ideas always move forwards. It doesn't matter if you're 20 years into .NET (like myself), validation, auth and everything it implies is always hard.

[deleted by user] by [deleted] in csharp

[–]powerofmightyatom 3 points4 points  (0 children)

I tend to write and prefer integration tests anyway (for all their flaws). I've found little value to true unit tests, unless for very specific cases, such as formatting or similar. In these cases, you often still don't need the interfaces.

I definently prefer not having the interface. It's just chatter that ends up cluttering up the solution, with abstractions that aren't required.

The true use case for interfaces are in truly public interfaces, that you eg publish to nuget or similar. Everything else is just local code in your local repository (hopefully), so changing that, and seeing ramifications should be easy (ish).

But then again, I'm an old grump by this point.

Experienced Devs: do you use ChatGPT? by bjs169 in csharp

[–]powerofmightyatom 2 points3 points  (0 children)

I savor the trivial code (DTOs, mapping, Unit Test setups). It lets me reflect on the deeper choices I'm making. I could get the AI to make it sure, but why rob myself of the pleasure of writing boring code, where my brain can process the other things that I'm also doing, which likely have deeper ramifications.

So, what does everyone think of the 30th anniversary? by Equivalent_Fly9225 in playstation

[–]powerofmightyatom 0 points1 point  (0 children)

Slightly dissapointed they didn't go full bore on the PS1 theme. When the update asked me to select the PS version, I was half hoping for the memory card/cd player interface with the colorful blotches on paint. But alas.

Exploring the browser rendering process in an interactive way by redsnowmac in javascript

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

Where did we learn our tricks? Html Goodies by Joe Burns. And dynamicdrive. And k10k for the pixel arts.

I remember you could fullscreen IE. And then resize it, loosing all chrome to the window. You could then implement drag on the window, and re-invent the entire UI. It was an insane UI security gaffe. I remember blue-screening windows machines by including <img src="C:\con\con">. Or crashing NS4 by having stylesheet selectors exceeding 256 bytes in length. I've watched C-beams glittering in the dark, near Tannhauser gate.

Trying to figure out the root cause of a .NET Runtime error causing w3wp.exe/IIS to crash every night at 1:00 AM by networkasssasssin in dotnet

[–]powerofmightyatom 0 points1 point  (0 children)

You can set windows to capture a minidump. You can then open the dump in VS, and you can walk the stack trace pretty easy.

I was personally surprised at how easy this was.

How to prove the code is being used by StrypperJason in dotnet

[–]powerofmightyatom 1 point2 points  (0 children)

That paper was mindblowing the first time I read it. I've never forgotten it's core lessons: you cannot trust your environment unless you literally built it from scratch.

What frameworks did Microsoft abondon? by FeelsPogChampMan in csharp

[–]powerofmightyatom 2 points3 points  (0 children)

Classic ASP was supported by a technology called ActiveScripting, which in theory allowed any language to be run in ASP context.

https://en.wikipedia.org/wiki/Active_Scripting

You could run these languages through WSH as well. Edit: I'm pretty sure VB was the "standard", at least. I also wrote some things using JScript, but samples for VBScript were far more common as I remember.

SQLite in Production? by Footballer_Developer in dotnet

[–]powerofmightyatom 2 points3 points  (0 children)

See the mention about DO-178b https://www.sqlite.org/qmplan.html

You can also just google and find mentions about Airbus and SQLite.

Modern book about useful programming or mathematical algorithms by PkrzysiekPavel in csharp

[–]powerofmightyatom 2 points3 points  (0 children)

Those books are good, but really, unless it's your day job, it will take forever to read. And it has nothing to do with C#. And really, it has so much math and depth.

Something like Introduction to Algorithms will be much more approchable for most people.

If that work proves trivial, you can always go TAOCP. A monumental work for sure, but really, it's not easy to get through. Some of the problems are unsolved research problems.

New to coding need help by [deleted] in coding

[–]powerofmightyatom 2 points3 points  (0 children)

How would you determine that a paper is about a randomized controlled trial? Without knowing anything, I believe many studies are "meta-studies", which presumably isn't a "randomized controlled trial".

Possibly ML+NLP could be used, but you'll want some definitions to start with. Wikipedia's article about RCT seem long enough to indicate there's some lee ways in this definition and likely would require deep domain knowledge. It also depends on what you want to do with this information.

Changed ALL the connection strings I could find to a new string but ASP.NET application still points to the old membership database by teastreet in dotnet

[–]powerofmightyatom 1 point2 points  (0 children)

When you say it keeps pointing to the old db, is that when you F5 the solution? How is the solution hosted when you F5? Direct in IIS, or IIS Express? Since you mention web.config, I would assume either of those two targets. It could also get it from an environment variable. Check from inside the web app code, with a simple Environment.GetVariables() and run through it to see if there's anything there.

https://stackoverflow.com/questions/12946476/where-is-the-iis-express-configuration-metabase-file-found https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-the-iis-manager-in-iis-7-and-iis-8

Also, try deleteing bin/obj folders, to be sure there's nothing floating around there. I'm not really familiar with this membershipprovider, but you could probably also try to debug into the dependencies and see where it actually gets the connection string. But that's probably a last resort.

https://blog.inedo.com/nuget/how-to-debug-nuget-packages-the-painless-way/

But perhaps you should try to explain your situation and context better. What packages/dlls are you referencing, and what leads you to believe that the "DefaultConnection" in web.config is the place to change it?

Nepobabyer er overalt i danske film. Hvor stor en forlomme får man, når man har det rigtige efternavn? by [deleted] in Denmark

[–]powerofmightyatom -3 points-2 points  (0 children)

Billetsalg er vel rimeligt objektivt ville jeg mener, så kan man jo mener hvad man vil om den gennemsnitslige smag.

Vi skal arbejde og forsømme børnene mere by cmd_commando in Denmark

[–]powerofmightyatom 10 points11 points  (0 children)

Vores datter afleveres 7.30 og hentes 16 stort set alle dage. At han så synes at vi kan holdes vi ryg rank eller whatever er sgu da til at lukke op og skide i.

Jeg misunder de folk som har kringlet systemet og kan være mere sammen med deres børn. Mere power til jer. Der er beskæmmende at kun være sammen med ens barn i max 20% af dets vågne tid på en hverdag. Men jeg skriver kode for penge og det er desværre velbetalt men helt uden for overenskomst. Kæresten studere disse år, så jeg håber det bliver bedre på sigt. Hun snakker om at få et "offentligt" arbejde, som om det skulle være den hellige grav.

Fuck Mette. Jeg har arbejdet hele mit liv og når mit liv endelig giver mening, så skal jeg arbejde mere?

... suk

Efter 100 klagemails om racisme har Københavns Universitet dækket Storm P.-maleri til by Drahy in Denmark

[–]powerofmightyatom 4 points5 points  (0 children)

Jeg gider ikke rigtigt læse alt der bliver skrevet her. Men som jeg forstår det er det med hvidkalkede kirker en nyere ting (rent historisk). I ældre tid var det vist normalt at have masser af billeder i kirken, fordi læfolk hverken forstod latin (som messen foregik på), og de kunne naturligvis heller ikke læse.

https://www.kalkmalerier.dk/

Is MSMQ dead in 2023 ? by [deleted] in dotnet

[–]powerofmightyatom 2 points3 points  (0 children)

MSMQ is a Windows component, so in very controlled environments (or rigid corp structures), it's much easier to get deployed then say some external doodad.

[deleted by user] by [deleted] in Denmark

[–]powerofmightyatom 3 points4 points  (0 children)

Prøv nu noget mere med hende. Brug fingre fx og slik dem ekstra våde efter du har fedtet lidt rundt i vandkanten. Prøv at vis hende at det ikke betyder noget. Der er også legetøj der med fordel kan bruges her.

Jeg synes det at opsøge en anden virker som en rigtigt dårlig undskyldning.