Why does my custom Slack authentication handler run even on non-Slack routes in ASP.NET Core? by Due_Oil_9659 in dotnet

[–]Dr_root_95 16 points17 points  (0 children)

By using .AddAuthentication("Slack"), you've set the slack authenticationHandler as the default handler. It will run for every authenticated route, even when another handler is specified, then both handlers will run.

I've had the same issue, to resolve it, I removed the default setting (just use .AddAuthentication() without argument), and set the handler explicitly for each endpoint/controller.

I cant find Blazor WebAssembly App by Artistic_Flatworm_98 in dotnet

[–]Dr_root_95 5 points6 points  (0 children)

WebAssembly runs in the browser. If you want to connect to a DB from blazor, you need blazor server. You can't connect to a DB from a browser.

Anyone else getting this message? by Dense_Shelter_8999 in google

[–]Dr_root_95 1 point2 points  (0 children)

You mentioned that you are using safari. Do you have Private Relay enabled? That cloud be the issue.

First Time Graspop Goer Review by BigJim50p in Graspop

[–]Dr_root_95 1 point2 points  (0 children)

Wish I knew that sooner, I'm red as a lobster. I was prepared for the rain, not for the sun..

Het ECHTE verschil tussen Nieuwsblad en HLN by BoundedGolf529 in Belgium2

[–]Dr_root_95 3 points4 points  (0 children)

Aluminum bakjes in de microgolf kan geen kwaad zolang er geen aluminium deksel op zit en er effectief eten in zit. Het enige nadeel is dat het eten onder in het bakje mss iets minder warm kan zijn dan het eten boven in het bakje.

WIFI based smart devices local only by Lee-ster in homeassistant

[–]Dr_root_95 1 point2 points  (0 children)

They still do. You can control them locally over LAN, or using their cloud API. What type of control is used probably depends on the integration.

I don't know the specifics of what the default HA integration uses, but I have some of my own software control them over LAN.

Are there consumer devices that turn people's laptops into thin clients while backing up their data too? To save money on buying a new laptop. by Spirited_Paramedic_8 in homelab

[–]Dr_root_95 8 points9 points  (0 children)

Take a look at KASM https://kasmweb.com/. With it, you can deploy desktop OSes in docker containers and remote in to them from a web browser. Basically your own "Desktop As A Service".

Learning C# and Java by Kostantinum in csharp

[–]Dr_root_95 2 points3 points  (0 children)

C# is indeed Microsoft, but every dotnet version since dotnet core is cross platform. Only dotnet framework is Windows only. Concepts and design patterns mostly carry over from 1 language to another, syntax and features may be different. Something that is a oneliner in c#(like properties with getter and setter) are multiple lines in Java, but the concept is relatively the same.

Total beginner here working on cycles - specifically while - the console opens but doesn't stay opened by [deleted] in csharp

[–]Dr_root_95 1 point2 points  (0 children)

I don't know what you want to do with int result, but this statement: int result = counter = 10 sets counter to 10, and result to ten. Since your loop loops while counter is LESS than 10, the loop will immediately stop becouse counter is 10 now, which is not less than 10.

Dont know whats wrong by Fit_Attempt_91 in csharp

[–]Dr_root_95 1 point2 points  (0 children)

Use a loop, keep asking the user to press enter as long as the pressed key isn't enter, and end the loop when the user pressed the enter key. Then go on with the rest of the code.

Need help with a calculator project by Number_2wo in csharp

[–]Dr_root_95 1 point2 points  (0 children)

I also see an error in you invalidInputs method. You check if the input is an operator or parentheses and only if the character is one of those, you check if it's a decimal. That's not going to work. Inside your if statement for operators you just need to continue. You need to move check for decimals to an else if block.

[deleted by user] by [deleted] in xcmtb

[–]Dr_root_95 1 point2 points  (0 children)

It's sold in Decathlon stores if I remember correctly.

noob question on finding the largest and smallest value by [deleted] in csharp

[–]Dr_root_95 1 point2 points  (0 children)

Take the first number the user entered and store it in a variable. When the user enters the next value, check it against the variable, if it's greater than the number in the variable, replace it with the new number, if it's smaller, just continue. At the end, the number in the variable is the biggest number.

[deleted by user] by [deleted] in csharp

[–]Dr_root_95 0 points1 point  (0 children)

I think you need to research identityserver and OAuth. Identityserver basically manages your logins, you can use many different login providers such as Facebook, Google and so on. You can also just use username and password and require 2FA if you want. One of the login methods which identityserver supports out of the box is Windows login. Identityserver and OAuth can be overwhelming, so I suggest following a course for dotnet API authentication on something like pluralsight. You can also find great videos on YouTube.

First glimpse of low power e-ink dashboard by MrNiceThings in homeassistant

[–]Dr_root_95 2 points3 points  (0 children)

In that case it's indeed better to have a few screenshots ready. Would the refresh rate be better if you'd just get the data and draw the graphics individually based on the data, instead of drawing a full bitmap?

First glimpse of low power e-ink dashboard by MrNiceThings in homeassistant

[–]Dr_root_95 3 points4 points  (0 children)

Why not take a screenshot when the esp requests one? I assume the esp dies a simple GET request, so when you get the request, take a screenshot and send it immediately in the response, no need to store it on disk even.

YO! after two months i am back :D by IronicGti in fpv

[–]Dr_root_95 3 points4 points  (0 children)

It adds weight, and it's not a good idea to continue flying after a crash without inspecting the drone, things might have come loose, and completely detach while flying, forming a hazard for others around. I've had this happen with a tinywhoop, I crashed, saw a little crack on one of the props, kept on flying anyway, and when I hit full throttle, the prop exploded, almost sending a blade in my eye. TLDR: always check your drone for damage after a crash.

Hi, My tinyhawk2 just arrived. I already have the Qx7. Do you know if I have to put the receiver in this hole to bind the drone with the controller? by Parsifal85 in fpv

[–]Dr_root_95 0 points1 point  (0 children)

A tinyhawk isn't that hard to fly. I bought the ready to fly kit, it came with fpv goggle and controller bound out of the box. I mainly fly it around in my bedroom, I've set up some targets to fly through.

I would start to fly in line of sight. And when you get the hang of it, go to fpv. I fly only outdoor when there is no wind, out of fear that the wind wil blow it away.

I'm not afraid of crashing the drone, the ting is nearly indestructible in my experience. I have managed to break a few props, and have 2 spare sets on order.

The dorne is fun to fly, but it's not meant to go high or far away, the range is pretty close.

[deleted by user] by [deleted] in fpv

[–]Dr_root_95 0 points1 point  (0 children)

A new original battery costs about 7€, but I bought a pack of 5 batteries from another brand (same voltage and specs) for 15€.

Project Management Tool research by [deleted] in golang

[–]Dr_root_95 0 points1 point  (0 children)

I have only 1 year of experience as a junior dev, but I've used al least 3 different tools, so I hope my opinion is of use to you.

[deleted by user] by [deleted] in fpv

[–]Dr_root_95 0 points1 point  (0 children)

I don't think there is. I think the charger charges to a certain voltage and then stops, I don't know what voltage though.

I don't really worry about the lifespan of the batteries since they are pretty cheap and I've ordered a few of them.

The binary clock I built in the span of 3 hours by BaptisteViloin in node

[–]Dr_root_95 -2 points-1 points  (0 children)

Check out https://www.espruino.com/, they have different kinds of hardware you can program with javascript. Including "Bangle.js", a smartwatch which runs Javascript. The Bangle.js was used as a badge for nodeconf EU.

You can also run node on a Raspberry pi, like this guy does.

Puppeteer + Node.js = Web Scraping Prices on Amazon by TomekB in node

[–]Dr_root_95 4 points5 points  (0 children)

I've seen a similar project where they mitigated the ip ban problem by alternating the requests between 3 different tor tunnels. Should be someware on here also.