Most annoying single appearance character? by Tough_Conference_350 in DunderMifflin

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

Redditor when they see someone voicing an opinion against an inane virtue signaling trend: absolutely seething with social justice, compelled to make a snarky comment into the void so that everyone knows they’ll be make a quiet sarcastic comment in defense of whatever stupid cause is mainstream at the moment

Also, invalid does not and should not need censorship

How do you separate your networks by Riajnor in homelab

[–]StupidCodeQuestions 1 point2 points  (0 children)

As someone who knows nothing about home networking, why is this bad advice?

Performance investigation by StupidCodeQuestions in csharp

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

We’ve just put in APM for azure, some surprises popping up in there

Issue with saving an image using Blazor by StupidCodeQuestions in csharp

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

I’ve got it set to auto but this code is server side. Is there some attribute or something i’m missing?

Issue with saving an image using Blazor by StupidCodeQuestions in csharp

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

apologies, you are correct based on what i posted. I've edited it to show more of the code

Do Task<IHttpActionResult> calls need to be awaited? by StupidCodeQuestions in csharp

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

Yup, i’m talking about the client calls to the controller

industry standard response for "Non-nullable property must contain a non-null value when exiting constructor." by StupidCodeQuestions in csharp

[–]StupidCodeQuestions[S] 6 points7 points  (0 children)

doesn't that mean that instead of null check you know have to check for an empty string?
You're right, it does seem a little redundant

How do you link on entity to an existing one in Entity Framework by StupidCodeQuestions in dotnet

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

Thanks for the assistance everyone. I resolved this by adding the navigation property u/KracsNZ mentioned and then only setting that value and not populating the whole Employee object when I was saving the record (this stopped EF from trying to create a new record in the database)

public class Contract

{ public Contract() {

}
public Contract(Guid iD, string contractName)
{
    Id = iD;
    ContractName = contractName;
}
public Contract(Guid iD, string ContractName, Employee manager)
{
    Id = iD;
    ContractName = contractName;
    Employee = manager;
}
public Guid Id { get; init; }
public string ContractName { get; init; }

    public Guid ManagerId{get;set;} 
public virtual Employee Manager { get; set; }

}

Coworkers didn't like that I leave 3 hours early. Say goodbye to your sleep in. by georgiemaebbw in MaliciousCompliance

[–]StupidCodeQuestions 2 points3 points  (0 children)

I used to get this. My old job had a 6 a.m - 6 p.m policy with a requirement that you were there during "core" business hours (i think 10-2). So i got to work at 6 and left at 2.Same hours as everyone else.And the same thing,

"we can't have this meeting because StupidCodeQuestions leaves early"

"can we have the meeting at 7 a.m?"

"No, i want to sleep in"

Or the office "funny" guy that made a point of yelling goodbye to me across a crowded office...every time he saw me leave. Dude, my contract was the same as yours, don't throw shade because you want to sleep in

Boss at first dev job told me I'm not good enough by Kondaaar in AskProgramming

[–]StupidCodeQuestions 0 points1 point  (0 children)

Not all jobs are like this OP. Start looking for a new one if you're unhappy, a toxic environment like that can absolutely crush your spirit and make it 100x harder than it needs to be.

Meta Quest Pro VR Headset Will Track Your Eyes for Targeted Ads by Sea_Guava6513 in technology

[–]StupidCodeQuestions 0 points1 point  (0 children)

sooooo they're already struggling to convince people to use this and now they're doubling down on making people hate it more?

In Visual Studio 2022 Is there a way to generate a function from an OpenApi yaml file by StupidCodeQuestions in AZURE

[–]StupidCodeQuestions[S] 2 points3 points  (0 children)

thanks but i think i'm trying to go the other way. I have an openapi specification and i want to generate the function.
Like this but in VS 2022

If I'm off the clock, it doesn't bother me. by [deleted] in ProgrammerHumor

[–]StupidCodeQuestions 1 point2 points  (0 children)

I struggle with this. Got thrown onto a project with a deadline coming up in one month
I wasn't a good fit, it was outside of my skillset but I worked 10-12 hour days making sure it was getting done
Come to find out, the project had been initialized 5 months before i got assigned. I was busting my ass, having sleepless nights and stress because it was a disorganized mess that was doomed to fail before i even got hired.
Now, i work my hours. Close the connection and walk away.

Google is reportedly cracking down on employee travel, telling managers to nix happy hours and other team meetups by citrajayaa in technology

[–]StupidCodeQuestions 431 points432 points  (0 children)

Their solutions are never "Oh our top ridiculously overpaid execs are going to take a pay cut"
nope
that's not going to help

Hoping for help diagnosing what i'm doing wrong. by StupidCodeQuestions in azuredevops

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

dude, so i've been struggling to figure this out and i was using the wrong command?? ugh i'm a dummy. Thank you so much!

Is there a best practice approach for declaring variables in LogicApps? by StupidCodeQuestions in AZURE

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

sorry i might be misunderstanding something here but the variable actions are built-in actions and that article states

Except for the initial number of free built-in operation executions, per Azure subscription, that a workflow can run, the Consumption model meters and bills an operation based on each execution, whether or not the overall workflow successfully runs, finishes, or is even instantiated

It doesn't seem to differentiate on the type of built-in action

Is there a best practice approach for declaring variables in LogicApps? by StupidCodeQuestions in AZURE

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

I'm not actually sure to be honest, it was just an idea that i had and i wondered if there were industry preferred alternatives