How to Generate ASP.NET Password using PHP
I have existing ap.net c# website is working with mysql database. now i am planning to create mobile app for that website for that API needs to be ready. I am creating an API into PHP Laravel Framewor...
Find the smallest positive integer that does not occur in a given sequence
I was trying to solve this problem: > Write a function:``` class Solution { public int solution(int[] A); } ``` that, given an array A of N integers, returns the smallest positive integer (greater tha...
- Modified
- 12 May at 15:12
ServiceStack.OrmLite: Inserting or updating columns that are not represented in the POCO?
I looked through the docs and I didn't find anything on this subject, but I thought I'd ask, to be sure: Is there a way for OrmLites INSERT and UPDATE APIs to make it possible in one query, to insert...
- Modified
- 31 Aug at 22:34
HttpRequest describable to string
I'm using asp.net core v2.1 with C# and made a small website. This website has `ExceptionsTracker` that catching all the unhandeled exceptions. ``` internal class ExceptionTracker : ExceptionFilterA...
- Modified
- 7 Aug at 06:53
Remove double-quotes from generated query from ServiceStack.Ormlite
Our DBA don't want us to use double quoted fields and tables in our queries (don't ask me the reason)... the problem is that ServiceStack.OrmLite double quote them all, and I don't have any idea on ho...
- Modified
- 6 Aug at 22:35
Can't add script component because the script class cannot be found?
Yesterday I updated unity from unity5 to 2018.2.2f1. Unity scripts are not loading after Update 2018.2.2f1. Once I try to play the Scene the scripts are not loaded and I can't add the script again it...
FFmpeg skips rendering frames
While I extract frames from a video I noticed that `ffmpeg` wont finish rendering certain images. The problem ended up being byte "padding" between two `jpeg` images. If my buffer size is `4096` and i...
C# "Failed to parse method 'InitializeComponent'. The parser reported the following error 'Invalid symbol kind: NamedType'"
I have a project written by someone else with .NET framework 4 I have a problem with one of the forms (others opening correctly). When I try to open Form1 in "Design mode" Visual Studio 2017 shows th...
IdentityServer4 custom AuthorizeInteractionResponseGenerator
Sadly documentation on the implementation of a custom `AuthorizeInteractionResponseGenerator` in IdentityServer4 is sorely lacking. I'm trying to implement my own `AuthorizeInteractionResponseGenerat...
- Modified
- 6 Nov at 08:19
How to instantiate an instance of FormFile in C# without Moq?
I want to test a function that attaches files to documents in a RavenDB database with an integration test. For this, I need an instance of `IFormFile`. Obviously, I can't instantiate from an interfac...
Missing required argument '<PROVIDER>'. Scafffold Dbcontext in asp.net core 2.1.MAC
Trying to do Scaffold with the existing database in mac os visual studio using terminal. Here is the command for the scaffold ``` dotnet ef dbcontext Scaffold "Server=<servername>;Initial Catalog=...
- Modified
- 5 Aug at 11:3
No mapping to a relational type can be found for the CLR type 'Int32[]'
When I execute a SQL Server stored procedure from Entity Framework Core (v2.0) in my ASP.NET Core project, I get this exception: > InvalidOperationException: no mapping to a relational type can be fo...
- Modified
- 6 Aug at 09:15
Validation of ASP.NET Core options during startup
Core2 has a hook for validating options read from `appsettings.json`: ``` services.PostConfigure<MyConfig>(options => { // do some validation // maybe throw exception if appsettings.json has inva...
- Modified
- 5 Mar at 17:57
CUDA runtime error (59) : device-side assert triggered
``` THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1524584710464/work/aten/src/THC/generated/../generic/THCTensorMathPointwise.cu line=265 error=59 : device-side assert triggered Traceback (most r...
Select Specific Columns from Spark DataFrame
I have loaded CSV data into a Spark DataFrame. I need to slice this dataframe into two different dataframes, where each one contains a set of columns from the original dataframe. How do I select a s...
- Modified
- 1 Mar at 01:10
How to access Lambda environment variable?
When running a .net core 2.1 AWS Lambda function, it is simple to fetch an environment variable from the AWS Lambda Console in c# using: ``` var envVariable = Environment.GetEnvironmentVariable("myV...
- Modified
- 26 Jul at 12:10
Keep wifi active in foreground service after phone goes to sleep
I want to receive packets from wifi when my phone is locked. The problem is that when I lock my screen, my foreground service stops receiving packets. I'm using Foreground Service like this: ``` publ...
- Modified
- 16 Aug at 12:48
Angular: How to download a file from HttpClient?
I need download an excel from my backend, its returned a file. When I do the request I get the error: > TypeError: You provided 'undefined' where a stream was expected. You can provide an Observab...
- Modified
- 4 Sep at 18:1
Waiting for another flutter command to release the startup lock
When I run my flutter application it show > Waiting for another flutter command to release the startup lock this messages and not proceed further.
String.Substring() seems to bottleneck this code
I have this favorite algorithm that I've made quite some time ago which I'm always writing and re-writing in new programming languages, platforms etc. as some sort of benchmark. Although my main pro...
- Modified
- 12 Aug at 00:59
How to combine FromBody and FromForm BindingSource in ASP.NET Core?
I've created a fresh ASP.NET Core 2.1 API project, with a `Data` dto class and this controller action: ```csharp [HttpPost] public ActionResult Post([FromForm][FromBody] Data data) { return...
- Modified
- 3 May at 07:40
WPF WindowChrome causing flickering on resize
I'm using WindowChrome to restyle my window in an easy fast way but the problem is there is flickering when resizing the window, especially when resizing from left to right. ``` <Window x:Class="Vie...
- Modified
- 3 Aug at 09:35
Why does Json.Net call the Equals method on my objects when serializing?
I just ran into an error when I was using the Newtonsoft.Json `SerializeObject` method. It has been asked before [here](https://stackoverflow.com/questions/26552077/jsonconvert-serializeobject-passes-...
- Modified
- 3 Dec at 17:18
How do i call an async method from a winforms button click event?
I have an I/O bound method that I want to run asynchronously. In [the help docs](https://learn.microsoft.com/en-us/dotnet/csharp/async) it mentions that I should use async and await without Task.Run ...
- Modified
- 3 Aug at 07:39