Facebook Like functionality using C# SDK
I want to display to know when the facebook like button is clicked and upon verify button click, I want to post the like to the fan page. I want to use Facebook C# SDK. Here is my code: ``` <html> ...
- Modified
- 25 Sep at 10:27
What is the point of configuring DefaultScheme and DefaultChallengeScheme on ASP.NET Core?
I am learning how security works on ASP.NET Core 2.0 and IdentityServer4. I set up the projects with IdentityServer, API and ASP.NET Core MVC Client App. `ConfigureService` method on Client App as in...
- Modified
- 16 Mar at 18:14
How to create symbols for multi-project Nuget package?
So I'm really struggling to figure this out. I have a solution with a few projects, say, A, B, and C. A references and uses B and C (both project references). I wanted to create a Nuget package from ...
- Modified
- 25 Sep at 09:44
How to get div 'text' value in Cypress test using jquery
Using Jquery in Cypress.io test, how to get the div 'text' value called 'Wildness' from the below html tag. I have tried below in my Cypress test, but it is throwing undefined in console. ``` const ...
- Modified
- 25 Sep at 05:39
How to change status bar color in Flutter?
I am trying to change the status bar color to white. I found [this](https://pub.dartlang.org/packages/flutter_statusbarcolor) pub on flutter. I tried to use the example code on my dart files.
- Modified
- 10 Sep at 08:34
SendAsync and CopyToAsync not working when downloading a large file
I have a small app that receives a request from a browser, copy the header received and the post data (or GET path) and send it to another endpoint. It then waits for the result and sends it back to...
- Modified
- 25 Sep at 14:56
Cannot resolve scoped service 'Microsoft.AspNetCore.Identity.UserManager`1[IdentityServerSample.Models.ApplicationUser]' from root provider
i am extending the identity server to use custom identity server implementation ``` public static void UseMongoDbForIdentityServer(this IApplicationBuilder app) { //Resolve Repository wi...
- Modified
- 24 Sep at 22:6
Validate phone number with Yup?
I'm trying to validate a phone number with Yup: ``` phone: Yup.number() .typeError("That doesn't look like a phone number") .positive("A phone number can't start with a minus") .integer("A phon...
- Modified
- 8 Nov at 14:51
ServiceStack In Memory Client Memory Limits
Does your In Memory Client support memory limits as a percentage of total memory available of the application? .NET 4.0 supported memory limits in the web.config. .NET Core doesnt support limits on to...
- Modified
- 24 Sep at 14:35
How can I get a Span<T> from a List<T> while avoiding needless copies?
I have a `List<T>` containing some data. I would like to pass it to a function which accepts `ReadOnlySpan<T>`. ``` List<T> items = GetListOfItems(); // ... void Consume<T>(ReadOnlySpan<T> buffer) //...
How to invalidate tokens after password change
I am working on an API that uses JWT token auth. I've created some logic behind it to change user password with a verification code & such. Everything works, passwords get changed. But here's the c...
- Modified
- 2 May at 14:12
ServiceStack: is it open source? or does it require a license?
I'm looking into ServiceStack, I see it referenced as open source some places but other places it looks like you need a license to use it. Is it open source like things like Spring, Hibernate, JBoss,...
- Modified
- 24 Sep at 02:51
IntelliJ can't recognize JavaFX 11 with OpenJDK 11
I'm having trouble getting IntellJ to recognize JavaFX packages. With a new JavaFX project, with OpenJDK 11, when trying to build the project, IntelliJ can't recognize the JavaFX packages. I've impor...
- Modified
- 5 Jan at 02:12
Where is index.g.cshtml
I am trying to work through this tutorial, [ASP.Net Core Razor Pages](https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-2.1&tabs=visual-studio), but (often) when I build t...
- Modified
- 14 Sep at 00:13
.Net Core cookie will not be set
I'm trying to set a simple cookie in the easiest way in my controller-action but can not get it to be persistent and show up in the browser. ``` public IActionResult IndexPost() { var option = n...
- Modified
- 9 Sep at 19:15
ServiceStack - SAML2
Is there some out of the box plugin for SAML2 auth or I would have to build mine from scratch? If there's none, which library would you suggest, earlier I tried Kentor and I like how it's done, too b...
- Modified
- 22 Sep at 11:12
ServiceStack: How to enable and view built-in profiler in self-hosted?
When I read the docs on ServiceStacks built-in [profiling](http://docs.servicestack.net/built-in-profiling), I am not sure how to enable it in a self-hosted solution: > Then starting it in your Globa...
- Modified
- 27 Jun at 10:24
googletrans stopped working with error 'NoneType' object has no attribute 'group'
I was trying `googletrans` and it was working quite well. Since this morning I started getting below error. I went through multiple posts from stackoverflow and other sites and found probably my ip is...
- Modified
- 10 Dec at 18:36
Net Core Error The name 'Ok' does not exist in the current context
I am receiving the following error: The name 'Ok' does not exist in the current context. How would I resolve this issue in my Controller API? Return Ok is already embedded in the controller. ``` usi...
- Modified
- 21 Sep at 22:12
Round a decimal number to the first decimal position that is not zero
I want to shorten a number to the first significant digit that is not 0. The digits behind should be rounded. Examples: ``` 0.001 -> 0.001 0.00367 -> 0.004 0.00337 -> 0.003 0.000000564 -> 0.0000006 ...
DBContext disposing doesn't change the number of opened connections
In highload legacy application I've found tons of code which just creates new DBContext, then makes request and doesn't dispose the DBContext at all. Monitoring shows 200 connections opened all the t...
- Modified
- 21 Sep at 03:27
What are the differences between Microsoft.NET.Sdk and Microsoft.NET.Sdk.Web
I have a solution with two host projects (one is a [Web Host](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-2.1) and the other is a [Generic Host](https://le...
Difference between OpenJDK and Adoptium/AdoptOpenJDK
Due to recent [Oracle Java SE Support Roadmap](https://www.oracle.com/technetwork/java/javase/eol-135779.html) policy update (end of $free release updates from Oracle after March 2019 in particular), ...
- Modified
- 18 Dec at 19:28
Objects are not valid as a React child. If you meant to render a collection of children, use an array instead
I am setting up a React app with a Rails backend. I am getting the error "Objects are not valid as a React child (found: object with keys {id, name, info, created_at, updated_at}). If you meant to ren...
- Modified
- 20 Sep at 15:49
Repeat a RDLC ReportViewer subreport
I'm really new to RDLC so please forgive me if I'm missing something obvious. I have some data that needs to get repeated, based on a 1:Many dataset that's linked to the main report. It's not someth...
- Modified
- 24 Sep at 12:54