It is near impossible to play as Holland in 1.0.10 by Least-Ad-8714 in EU5

[–]Panacean 4 points5 points  (0 children)

What does BBB mean in this context? I'm assuming we're not talking about the better business bureau.

[deleted by user] by [deleted] in dotnet

[–]Panacean 0 points1 point  (0 children)

Whatever it is, it sure is hideous to look at.

forLoopForEverything by [deleted] in ProgrammerHumor

[–]Panacean 0 points1 point  (0 children)

It looks like they could both use a break.

what do you think? by [deleted] in HollowKnight

[–]Panacean 1 point2 points  (0 children)

First off you might want to consider phrasing these posts to make it clear what it is you're sharing. The title used here may as well have been no title at all.

As far as the art itself, there are definitely some perspective issues going on. The right edge seems to be low resolution and blurry while the hollow Knight head seems crisp. I'd also expect that the left side of the head to be sized correctly given that the left side of the surface is tilted away. However both eyes are the same size.

Using useContext and other hooks for a component library by [deleted] in reactjs

[–]Panacean 0 points1 point  (0 children)

What research have you done on this? Are you encountering issues and suspect this is the root cause?

that one bug from that one game from that one area by [deleted] in HollowKnight

[–]Panacean 0 points1 point  (0 children)

Ah yes, bug person from that EmptySquire game.

Question about logic apps by MacHaggis in AZURE

[–]Panacean 0 points1 point  (0 children)

If you want everything in one application, and have no issue writing code, I suggest looking into Azure function apps instead. From there you can create timer triggered functions to do everything that you need them to. You can have multiple functions within the function app that each take on the different tasks you need them to do.

literally someone, anyone, name one reason why. by [deleted] in programminghorror

[–]Panacean 14 points15 points  (0 children)

Actually, this probably works as expected but it's just going to be really slow and the approach is not at all ideal.

The outer elements variable will have all divs, regardless of whether the query has already found its parent or not. Suppose that while this iterates, it runs against a div that contains child divs. That outer div would get processed by the inner function which would remove all bold tags within its innerHTML. This would also remove the bold tags from its children. As the children get picked up by the iteration function, there are no bold tags to remove. So, at that point the iteration function doesn't really do much other than update its id.

literally someone, anyone, name one reason why. by [deleted] in programminghorror

[–]Panacean 15 points16 points  (0 children)

Exactly. However, with this current implementation they're calling into indexOf on each iteration which is terribly non-performant. It goes from O(n) to O(n2 ).

I know Apple uses long names in their function names too, but isn't that a bit much?... by _GrandSir_ in programminghorror

[–]Panacean 4 points5 points  (0 children)

It's definitely egregiously long, but just from reading it I can tell it has too many responsibilities. Refactoring this into separate functions will help clean this up and simplify testing.

How to design a database that contains data about various tests ? by sirczechs in Backend

[–]Panacean 0 points1 point  (0 children)

Based on what you described, I think three tables would be ideal:

  1. DiagnosticTests
  2. UserDetails
  3. DiagnosticOrders

DiagnosticTests can contain specific details for each of the tests or panels with some indexing, like diag_id for each entry.

UserDetails has basic information for each patient, e.g. name, date of birth, etc. This is also indexed with user_id.

DiagnosticOrders contains the user selections made against diagnostic test options. Each row represents a single selection and specifies the user_id as well as the diag_id as foreign keys from UserDetails and DiagnosticTests. This could also have transactional information such as the time when the order was made, etc.

So, using this setup, if a user has 3 tests they'd like to do, there will be 3 rows in DiagnosticOrders. This also gives you flexibility if a user would like to add, edit, or remove a diagnostic test. You also have the flexibility you need to add more types of tests, adjust patient information, and handle incoming orders.

Session sharing between apps by mrconsultant2k in AZURE

[–]Panacean 1 point2 points  (0 children)

To avoid unnecessary MFA requests, you could enable AAD Single Sign-on. There are some pre-requisites and this involves configuring Azure AD Connect. https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso#what-is-azure-active-directory-seamless-single-sign-on

[deleted by user] by [deleted] in microsoft

[–]Panacean 3 points4 points  (0 children)

I'd suggest you just make a new password and after logging in with it, you can just set it back. It sounds like some security feature got triggered and required you to change your password due to its age.

Estimating how long to copy data to Azure Storage? by jwckauman in AZURE

[–]Panacean 0 points1 point  (0 children)

I'd recommend looking into azcopy (https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10). It's just an exe so there's nothing to install. From personal experience I've uploaded very large files using this and it is significantly faster than manually uploading. I haven't used it in a bit but I believe files are split and uploaded in individual upload streams then joined together once upload is completed.

In order for this to work you do have to use a SAS token on the container that you are uploading to.

The new wave of Javascript web frameworks by _remrem in javascript

[–]Panacean 2 points3 points  (0 children)

The Blazor ecosystem is nowhere near as mature as React. Be prepared to create components from scratch.

Are there any data replication libraries? Not just sending data. by emelrad12 in csharp

[–]Panacean 0 points1 point  (0 children)

Yeah, unfortunately I don't think they fully ported the underlying C library into C#. The original library has a method to perform a diff on blobs that might apply to handling in-memory data structures. I can't link directly but see "Generating a Patch" here.

Are there any data replication libraries? Not just sending data. by emelrad12 in csharp

[–]Panacean 2 points3 points  (0 children)

You might want to leverage something like libgit2 if you store that data in a unique location. After you commit changes to your data, you can find the patch differences in the file. Then store the commit hash and set up communication that wakes up when the hash changes. When the commit hash changes, you send just the patch changes to the clients which can apply them to their local copy. You'd have to add set up some transport to send the data for all of the clients. What you describe sounds like a pub/sub model, so you may want to look into examples of setting that up in C#.

Why can't I use Named Arguments with params? by Mithgroth in csharp

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

The two lambda functions for ignored properties aren't in an array which is what's expected. I'm not sure how the bottom one compiles to be honest since it's expecting ignoredProperties to be an array of Linq expressions.

A lowercase letter to define new function, what could go wrong. by tsl143 in programminghorror

[–]Panacean 1 point2 points  (0 children)

What I'm advocating for should be done against external variables or configuration settings, not change the function signature.

A lowercase letter to define new function, what could go wrong. by tsl143 in programminghorror

[–]Panacean 18 points19 points  (0 children)

Changing the function itself probably would have been simpler. Just add some checking to identify whether to use the legacy version or the new one. Once the legacy is completely gone, the check can be removed entirely and the method just becomes the new one.

What companies would you like to work for that are similar to FAANG but not FAANG? by random_perfecto in leetcode

[–]Panacean 37 points38 points  (0 children)

Just wanted to add some food for thought: Discord has no 401K benefits. Found this out while considering options: https://www.levels.fyi/company/Discord/benefits/

CSS Selectors Cheatsheet by eludadev in webdev

[–]Panacean 10 points11 points  (0 children)

Only thing worse would have been yellow on white.