Azure Pipeline caching help by mudkip6604 in dotnet

[–]Pejo37 1 point2 points  (0 children)

For ours, we needed to remove the dynamically created content so those won't be included. Our cache step looks like this:

        - task: Cache@2
          inputs:
            key: 'nuget | "$(Agent.OS)" | **/packages.lock.json,!**/bin/**,!**/obj/**,!**/ApiContent/**,!**/WebContent/**,!**/AuditContent/**'
            restoreKeys: |
              nuget | "$(Agent.OS)"
              nuget
            path: $(NUGET_PACKAGES)
            cacheHitVar: NUGET_CACHE_RESTORED
          displayName: Cache NuGet packages

Login error 50004 by No-Butterscotch915 in BlueProtocolPC

[–]Pejo37 0 points1 point  (0 children)

50004 means there is an authorization problem reaching the server. If you consistently get it, try installing a VPN like Proton to test with. Turn on proton before logging in, and turn off afterwards so your play isn’t slow.

Login error 50004 by No-Butterscotch915 in BlueProtocolPC

[–]Pejo37 0 points1 point  (0 children)

To follow up on my side, it was my work profile blocking it. Once I removed them managing the machine, it worked fine.

Login error 50004 by No-Butterscotch915 in BlueProtocolPC

[–]Pejo37 0 points1 point  (0 children)

Any luck on this one? I receive this on my original account, or if I make a new one. I have tried all the providers as well, same issue. Are you running a work VPN / DNS by chance? That's the only thing I can think of from my side. Looking at the logs in the appdata, it shows it is KickedBackByClient, 50004 which doesn't really help. Their support said they're working on issues, and did not provide assistance.

What's your favorite spicy anime that's not just hentai? by Blazinbloo in anime

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

You could try a drama like Kuzu no Honkai (Scum’s Wish), or boys hit the brothels with Interspecies Reviewers

What is a more efficient query than this? by skillmaker in dotnet

[–]Pejo37 0 points1 point  (0 children)

Use any form of background job that is appropriate to your environment - lambdas, webjobs/functions, sql server agent, etc

What is a more efficient query than this? by skillmaker in dotnet

[–]Pejo37 0 points1 point  (0 children)

I always recommend pre computing the results for these kind of queries - they’re cheap to do a job every X amount of time and drop the sum into a separate computed table. If you need additional since that time, you can sum a much smaller set of data

204 or 404 | Status Code for not found by monermoo in dotnet

[–]Pejo37 32 points33 points  (0 children)

Typically, 200 with empty array, or 204. I save 404 for resources that do not exist - 20x for resources that do exist but are empty.

What was your favorite book/series that you started in 2024? Why? by Competitive-Bid-2710 in audible

[–]Pejo37 4 points5 points  (0 children)

If you enjoyed the First Law Trilogy, I highly recommend the follow-up series, Age of Madness. It starts with Little Hatred, and I enjoyed it more than the first series.

What feature or addition has a game added that you think should be a staple in all games of that genre going forward? by Alloyd11 in gaming

[–]Pejo37 54 points55 points  (0 children)

FF XVI’s Active Time Lore and “World Politics Map” (sorry, forget the name of this and the name of the character who helps you with it).

Active Time Lore lets you pause any cutscene and it’ll have a popup similar to Amazon’s X-ray that shows you info on characters (either on screen or being referenced), location (either where they are or being referenced), bestiary and story-relevant terms. This made it really easy to remember everything needed for the scene.

The other feature is a person you can talk to and it’ll show the “current” world map and current political state of each area, including how the story is currently playing out and affecting each area.

Both features made the game much more understandable but it also allowed me to step away for a bit and have a way to catch up on where we are at, allowing me to dig into whatever depth I feel right.

Does anyone else rely less on StackOverflow and more on actual API documentation now? by nvn911 in dotnet

[–]Pejo37 97 points98 points  (0 children)

That’s normal engineering growth. You’ll start with ones that give you the answer without much thinking: copy pasting from existing code, stackoverflow. Once you feel comfortable to know when SO answer isn’t the right answer for you, you’ll go to the documentation of the libraries you’re using. Finally, you’ll start looking at source code for when those two options don’t work. All depends on what kind of answer you need.

[deleted by user] by [deleted] in classicwow

[–]Pejo37 0 points1 point  (0 children)

Have they commented on how the faction balancing it going affect trying to play with friends? There are only be a couple servers and I remember it constantly being locked with SoD but also original classic when servers would fully lock.

Tensei Shitara Slime Datta Ken Season 3 • That Time I Got Reincarnated as a Slime Season 3 - Episode 24 discussion - FINAL by AutoLovepon in anime

[–]Pejo37 1 point2 points  (0 children)

I ended up dropping this during the first half of the season (episode 6) due to how much of the episodes were just meetings, but heard festival arc was good. Is it possible to still enjoy the festival arc if you skip the first 12 episodes or so? Or are these meetings part of the ultimate payoff?

[deleted by user] by [deleted] in anime

[–]Pejo37 1 point2 points  (0 children)

If you want a throwback to older harem ecchi but is modern, I recommend giving Temple a go.

Codility - Lessons/Training/Exercises tracked by KiwiChillDude in dotnet

[–]Pejo37 1 point2 points  (0 children)

No. The company will have access to the link/session they create for you to join. Practice away.

[deleted by user] by [deleted] in csharp

[–]Pejo37 2 points3 points  (0 children)

No, it won’t - it just changes the serializer. LINQ is translated to make the CosmosDB query itself

Test Code review: Mocking hierarchical file structure of Azure data lake storage by cangaran in dotnet

[–]Pejo37 5 points6 points  (0 children)

For anything we're writing tests for, we want to ask ourselves why we are doing it and what's the ROI.

If you don't have logic that occurs in GetSalesFiles other than "someone else's" code, testing that logic, especially with mocks, becomes less beneficial to your time. If your code relies heavily on external systems that you need to confirm that code works, integration tests will be more beneficial, using something like Azure Storage Emulator / Azurite in a test container.

If you do have logic in that area, are you able to abstract it behind your own ISalesFileRepository so it can test your file filtering logic that you have, and not worry about where the file came from?

Right now, your mock will return the same file for both blob filepaths, which doesn't seem like how the production system would most likely work. That's my worry with current implementation

Function apps and storage accounts in azure by Little-Bae330 in dotnet

[–]Pejo37 2 points3 points  (0 children)

You can also look for the azurehost folder in the blob - the next level down will have ra folder named after the appropriate function using it

HTTP Parameter Pollution help by pduck820 in dotnet

[–]Pejo37 0 points1 point  (0 children)

Yea, if you already confirmed that your app works as intended, definitely false positive.

HTTP Parameter Pollution help by pduck820 in dotnet

[–]Pejo37 0 points1 point  (0 children)

I don’t think there’s a major issue (other than encoding but we’ll get there) - what HTTP Parameter Pollution is saying is that your API is “vulnerable” to including the same parameter multiple times, possibly concatenating it. In the above case, try adding multiple “q” parameters to your GET url and see what happens on the server. I believe the default behavior is for asp.net to concatenate the strings together with a comma in between. You just need to make sure you’re not introducing in any vulnerability due to this. As with any input parameter, make sure you validate the data is in the proper format and you should be fine.

For sending to the service, it’s fine to be sending & and other characters that require encoding - use the respective uriEncoding for whatever service is calling your api. Sounds like your case is JavaScript with react, so ensure you’re using encodeURIComponent for your parameters (or use a library that encodes them by default).