Quantcast
Channel: User Dov - Stack Overflow
Browsing all 42 articles
Browse latest View live

Comment by Dov on Java enum confusion with creating a bitmask and checking...

Both blog links are broken now (but the documentation link still works).

View Article



Comment by Dov on How do I combine Dependency Injection with Configuration...

I followed the link you gave, and HostBuilder looks interesting, but I don't see how it works any differently for the case I'm asking about than implementing ConfigureServices() in my Program.cs

View Article

Comment by Dov on Why is IOptionsMonitor.OnChange not being called?

@Nkosi that part is working correctly, though. The config instance is populated correctly when it's injected (using CurrentValue). Doesn't Bind fill the instance's properties?

View Article

Comment by Dov on Expect tool not matching line breaks without using wildcards

Please take a look at my update at the bottom of my question. After trying double quotes, except still times out, but its debug output suggests that the strings actually do match.

View Article

Comment by Dov on Select shadow div text from page

I think you misunderstood - the inner div is shadow content, not in the regular DOM. I've updated my code snippet so it's clearer.

View Article


Comment by Dov on Select shadow div text from page

Hi, and thanks for trying to help me figure this out. I tried the .closest('shadowRoot') approach, which didn't return anything. I've added a URL and screenshot of the element I'm working with if you'd...

View Article

Comment by Dov on Select shadow div text from page

@codesanbox I've added a URL and screenshot of the element I'm working with if you'd like to take a look. As mentioned, it's not a page I own.

View Article

Comment by Dov on StringLength validation always returns true

Thanks, that argument is helpful as a workaround (it gets me the desired behavior), but my real property actually has the [Required] attribute, so it seems like the documentation is inconsistent. I've...

View Article


Comment by Dov on Generating client code from OpenAPI spec fails

Where did you find that error message? It's not working for me, but I don't see any error messages.

View Article


Comment by Dov on Binding MAUI ControlTemplate to ContentPage view model

Thanks for your response! For the record, the short answer to my question (as I already showed I was doing a lot of what you suggested) is to place the properties on MyPage.cs directly - it doesn't...

View Article

Comment by Dov on How do you customize FIX message rejection with QuickFIX/n?

Thanks, that's perfect! I missed those config settings

View Article

Comment by Dov on Where are the Properties.Settings.Default stored?

That's where the default values are stored. The OP is asking about where updated values are stored. FWIW, I also would NOT recommend storing a password in user settings, since it's stored in clear text.

View Article

Comment by Dov on Add scopes to AuthenticationTicket?

Even better, there's a constant for http://schemas.microsoft.com/identity/claims/scope in the Microsoft.Identity.Web package's ClaimConstants class named Scope: learn.microsoft.com/en-us/dotnet/api/…

View Article


How do I combine Dependency Injection with Configuration Binding in .Net Core?

I haven't really used dependency injection much before, but it seems like a good fit for the .Net Core project I'm building now. It's a containerized non-ASP service (so essentially a console app),...

View Article

Answer by Dov for MS Graph Java SDK throwing authentication exceptions

This turned out to be a missing dependency, responsible for decoding the JSON responses. The NoClassDefFound error wasn't getting propagated. The underlying error was that no scopes were specified,...

View Article


MS Graph Java SDK throwing authentication exceptions

I'm trying to use Username/Password authentication for a Microsoft Graph files request (in conjunction with an AD account created for this purpose, since we want to limit access to only specific...

View Article

How to determine whether an NSURL has security scope info?

In earlier versions of macOS, NSURL instances constructed from a security-scoped bookmark would have an ?applesecurityscope=... query string tagged onto the end of them. I was checking for this in a...

View Article


NSURL bookmarks failing in unit tests on Xcode Server

In the unit tests for my app, I create an document-scoped NSURL bookmark. These tests have always worked correctly on my machine (and still do), but are now failing when run on an Xcode Server bot. I...

View Article

Answer by Dov for NSURL bookmarks failing in unit tests on Xcode Server

Here is what I learned (so far) from my discussion with a DTS team member.Security-scoped bookmarks aren't meant to work with non-sandboxed (and non-codesigned) apps. My unit tests are not signed or...

View Article

Answer by Dov for Expect tool not matching line breaks without using wildcards

I needed to make two changes to get it to match:As @pynexj suggested, I needed to surround my expression with "" instead of {}I also needed to pass the -ex argument to the expect command or else it...

View Article
Browsing all 42 articles
Browse latest View live




Latest Images