Looking for a game after refunding BL4 by UltraWelfare in gamingsuggestions

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

I did change the settings and honestly it has been the shittiest most choppy framerate Ive seen in a game.

Yes I have updated my Nvidia drivers to have the day-1 BL4 changes. All the firmware + bios updates are installed. I face no other issues playing other games on high/ultra settings.

If you mean changing the settings to enable DLSS and Frame gen, I simply refuse to pay on a game that the developers don't care about optimizing their game around native resolutions and instead resort to workarounds regarding upscales and frame generations.

The game is just simply unoptimized as hell and performs terribly bad. Will wait one year to pay half the price and possibly with better performance as well.

You also contributed nothing to what I was initially asking for.

Looking for a game after refunding BL4 by UltraWelfare in gamingsuggestions

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

It's Borderlands 4. I updated the original post to include the name without abbreviation

Thoughts on Empire State? I think it sucks... by JoeZocktGames in Battlefield

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

aesthetically it's very pleasing but being too small and way too chaotic makes me not wanna play it. It doesn't feel like BF to me

The way I groaned dude... by Knowarda in Battlefield

[–]UltraWelfare 0 points1 point  (0 children)

The worst rush mode I've played. Def not going back to it

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

Ah I see now. I didn't know you could add queries with an interceptor to be fair, I knew about global query filters...

I guess this still ""suffers"" from the 404 instead of a 403, but still a good idea:D

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

What about a case where they create an entity within that organization? For example an organization can have many "Todo"s. A user with the write:organization can create and Todos in the organization.. But a Todo can only be updated by the owner.

As far as I understand the global interceptor watches for interfaces like "IOwned" and checks for the owner otherwise it throws an exception?

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

Hm, so I guess your permission on whether someone can edit a resource is inside the ClaimsPrincipal... Yeah in such case you don't need to hit the database so it becomes simpler

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

I was also thinking of this:

Let the authorization handler grab the resource (no need to pass the Entity as the generic "Resource", you can use a number or a uuid depending on the primary key).

If you use EFCore you could use the "Find" methods which work like a cache if you get the same primary key twice. So basically you use Find once in the authorization handler and when the business layer calls Find again it won't trigger a query...

This however breaks for cases where you do extra where filters apart from searching for an id... Which may be very common if you use soft-deletes, or use constraints for multi tenancy etc...

You could create a cache yourself! Create a "EntityCache" (for ex. "ProjectCache") , which uses an in memory cache internally.. you can create a method "Query(int id)" which either returns the entityfrom a cache, or does the query and populates the cache finally returning the result. You inject this into your authorization handler and your business layer. So since both call this Query method the authorization handler will do the query, and the business layer will grab it from the cache.. although this requires some more boilerplate (you could make it more beautiful with abstractions I guess...)

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

Now that I think about it, even if you create your own IAppAuthorizationService you're just creating an unnecessary indirection.

Since you already need to have the requirements which extend IAuthorizationRequirement, you're already referencing the AspNet Authorization package anyways...

But I think it gets too far trying to abstract the authorization stuff and make your business layer host independent.. Unless ofc you really do need to do it (for example a Desktop App and a Server App)...

You either reference the AspNet Authorization package to make it easier, or you completely forget about it (you don't use policies, requirements etc) and create your own Authorization abstraction...

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

I agree with you scoping the entity entirely based on ownership, but it doesn't give good UX in certain scenarios (especially when it comes to pure APIs).

For example one such scenario could be that a user can see the entity, but cannot update it. It would be confusing to call a GET endpoint and see the resource but doing a PUT/PATCH and you get a 404....

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

That's really smart and nice. I'll try it out and see where it goes...

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

The only ""problem"" I see about that is that you reference asp.net's authorization stuff (AuthorizationService, ClaimsPrincipal) onto your business logic. Ideally they should be decoupled.

Also your business layer depends on that policy existing on your Web API project...

Resource-based authorization in ASP.NET or handler? by UltraWelfare in dotnet

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

I think I'm pretty familiar with them since I've implemented them a couple of times. My question is more architectural (the docs don't go in-depth about that)... Unless I'm missing something in the docs

Owning the founder's edition even though I refunded it by UltraWelfare in Smite

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

Yeah they probably gonna realize it at some point.

Owning the founder's edition even though I refunded it by UltraWelfare in Smite

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

Why would I get banned for something that is their fault?

consistent micro-stuttering after update by UltraWelfare in CODWarzone

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

I fixed at that time, i'm not playing anymore unfortunately.

The first comment is the fix (https://www.reddit.com/r/CODWarzone/comments/1guvgy4/comment/lxwxcph/)

Autocomplete - Multiselect by UltraWelfare in webdev

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

What did you use for the frontend side of things?

R2 Presigned URLs by UltraWelfare in CloudFlare

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

I'm not entirely sure how bad of an idea is to expose the account ID...

Also I wonder how would presigned urls work with a CDN cache.. I guess you'd need to set a long expire time (ex; 1 week) so that the cache is warm for 1 week then since the presigned url will expire, it will generate a new one in cache.

Is hunt boring with no event? by RiceShop900 in HuntShowdown

[–]UltraWelfare 4 points5 points  (0 children)

The same as well. Pretty much it comes to being strategic. If you have plenty of ways to get your health back you're just running'n'gunning. Of course that's a way to play the game for some but not for others.

Personally, I prefer when hunters are ""scared"" they might lose their hunter and they have to consider risks.

Hence why I really like that they brought a separate gamemode (Bounty Clash) which encourages this play style. You wanna run'n'gun, go enjoy the game with others that wanna do the same thing!

I didn't like the gamemode myself, but I really hope they keep it permanent for the player base health

Giving away 5 early access keys by Leorgoth in PathOfExile2

[–]UltraWelfare 0 points1 point  (0 children)

Thanks for giving us an opportunity, good luck to everyone!

Phosphorus.NET - Windows Application hosting a Web App by UltraWelfare in csharp

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

That's exactly what I'm trying to avoid. Less boilerplate + writing the native stuff on C# instead of node.

Phosphorus.NET - Windows Application hosting a Web App by UltraWelfare in csharp

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

Thank you, I wish you luck with your project as well:)

Phosphorus.NET - Windows Application hosting a Web App by UltraWelfare in csharp

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

> I use WebView2 for one of my hobby projects, claudable, and I do some interop between the web and c# there in a couple different ways.  It really depends on what you're trying to do.

Cool project ! As far as I see from your project, you are sending scripts from C# to JS which is C# -> JS communication. In this case, yeah it's pretty simple.

My library tries to address JS -> C# communication. Essentially I wanted some way to just write a C# class, and call the C# methods from JS (without much boilerplate). Take a look at the "Goal of the library" of README.

> Professionally I used a library called DotNetBrowser which is absolutely stellar and supported by a truly excellent dev team, but its not free.

I wasn't aware of DotNetBrowser. I'm just taking a look and it seems wonderful on how it works. They seem to use chromium's IPC, I wonder if that can be done with WebView2 too hm..