What is Microsoft.DependencyValidation.Analyser and why does Visual Studio 2017 force install the package?
I just installed Visual Studio 2017 (on a fresh Windows 10 VM) in preparation for an upgrade path form 2015. Our existing project uses .Net 4.5.2. (ASP.NET classic/not Core) VS 2017 seems to insist u...
- Modified
- 6 Apr at 01:42
How to access Team Drive using service account with Google Drive .NET API v3
Does anyone know which configurations should be done to grant Google service account an access to a Team Drive which is already created? The idea is to use a service account in a .NET backend applica...
- Modified
- 6 Apr at 06:37
Complex JOIN with ServiceStack OrmLite
How can I express the query below (from [this question](https://stackoverflow.com/questions/2111384/sql-join-selecting-the-last-records-in-a-one-to-many-relationship)): ``` SELECT c.*, p1.* FROM cust...
- Modified
- 23 May at 11:46
'Found the synthetic property @panelState. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.'
I upgraded an Angular 4 project using angular-seed and now get the error > Found the synthetic property @panelState. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your ...
- Modified
- 11 Jan at 11:56
.NET Framework 3.5 and TLS 1.2
I currently have a web application that uses the .NET 3.5 framework and I am wondering if it will be compatible with TLS 1.2. No where in our code are we dictating TLS version. This is a legacy applic...
Async provider in .NET Core DI
I'm just wondering if it's possible to have `async/await` during DI. Doing the following, the DI fails to resolve my service. ``` services.AddScoped(async provider => { var client = new MyClient...
- Modified
- 22 Jun at 19:49
Why doesn't Console.WriteLine work in Visual Studio Code?
I have scriptcs and coderunner installed on Visual Studio Code. When I run a simple program that includes `Console.WriteLine("Test")` I don't see any output. The program seems to run successfully and ...
- Modified
- 16 May at 19:36
What is the role of "Flatten" in Keras?
I am trying to understand the role of the `Flatten` function in Keras. Below is my code, which is a simple two-layer network. It takes in 2-dimensional data of shape (3, 2), and outputs 1-dimensional ...
- Modified
- 15 Oct at 16:54
How to specify a base url or host port for Jetbrains Rider asp.net project
I have a C# Asp.net web project made in Visual Studio. The project runs on a certain port (57243) and I made other programs that were testing the web service etc to use "localhost:57243". Recently I ...
C# 7 Pattern Matching
Suppose I have the following exception filter ``` try { ... } catch (Exception e) when (e is AggregateException ae && ae.InnerException is ValueException<int> ve || e is ValueException<int> ve) {...
- Modified
- 5 Apr at 15:0
Convert opencv image format to PIL image format?
I want to convert an image loaded ``` TestPicture = cv2.imread("flowers.jpg") ``` I would like to run a [PIL filter](http://pillow.readthedocs.io/en/4.0.x/reference/ImageFilter.html) like on the [exa...
- Modified
- 17 Sep at 10:1
How to deal with net::ERR_SSL_PROTOCOL_ERROR?
I am including a JS library into my website ``` <script type="text/javascript" src="http://www.turnjs.com/lib/turn.min.js "></script> ``` that is designed, maintained and hosted by a webdesign comp...
- Modified
- 5 Apr at 13:29
get min and max from a specific column scala spark dataframe
I would like to access to the min and max of a specific column from my dataframe but I don't have the header of the column, just its number, so I should I do using scala ? maybe something like this :...
- Modified
- 5 Apr at 13:15
What are the options for returning a custom DTO with a specific status code using ServiceStack?
We're using ServiceStack to build a web API. I have a situation where I want to be able to return a response of 400 (BadRequest) from an API endpoint some additional data indicating the specific caus...
- Modified
- 5 Apr at 12:37
Unit test controller model validation on AspNetCore
In an ASPNET Core project I am trying to create some unit tests that would verify my data validation logic works fine. My controller is very simple: ``` [HttpPost] [Route("Track")] public void Track...
- Modified
- 13 Apr at 12:58
How can I center an image in Bootstrap?
I am struggling to center an image using only Bootstrap's CSS-classes. I already tried several things. One was adding Bootstrap CSS-class `mx-auto` to the `img` element, but it does nothing. Help is ...
- Modified
- 21 May at 00:45
How to add ASP.Net identity to Asp.Net Core when webApi template is selected?
I have created a .NET Core project with WebApi template selected includes no authentication. I want to add ASP.NET identity in it for role based authorization. How can I achieve this?
- Modified
- 16 Mar at 14:52
Building ServiceStack.Core for open-source project
We are developing an Open-Source aPaaS product. The project is in its very early stage. We use .NETCore, for Web Services, we want to use ServiceStack. For now, we are using NuGet packages. But, the...
- Modified
- 11 Jun at 03:47
Assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found
I Have a problem. I'm not able to add a Migration to my ASP.NET WebAPI 2 Project. I get error: > "Spatial types and functions are not available for this provider because the assembly 'Microsoft.Sq...
- Modified
- 23 May at 11:55
OAuth2 authorization implementation in ServiceStack
I am researching on OAuth2 authorization service implementation for our website. We have WebServices implementation in ServiceStack with customAuthentication along with FB, LinkedIn AuthProviders ena...
- Modified
- 5 Apr at 02:45
Tracking Down a .NET Windows Service Memory Leak
Before installing my windows service in production, I was looking for reliable tests that I can perform to make sure my code doesn't contain memory leaks. However, All what I can find on the net was u...
- Modified
- 25 Apr at 18:45
Laravel - htmlspecialchars() expects parameter 1 to be string, object given
I go this error: ``` htmlspecialchars() expects parameter 1 to be string, object given ``` I'm using in controller: ``` $data = '{"pr":{"code":"1"},"ac":[[{"icon":"web","action":"link","url":"asd...
ServiceStack OrmLite: Table field type when create table form c#
I need create table field when type "Text". ``` public class PropsTable { public string PropKey { get; set; } public string PropValue { get; set; } } .... db.CreateTableIfNotExists<Pro...
- Modified
- 4 Apr at 21:10
String to character array returning different result in Visual Studio and Android Studio
The string that I want to convert into character array is ষ্টোর it is in Unicode and a Bengali word. The problem is when I am converting it in then it is returning but when I am converting it in t...
- Modified
- 5 Apr at 08:14
Moving file using cmd?
I have a file that I have downloaded from Google (it is inside the download folder) and I want to move it to the autorun folder ( The folder where files run when the computer turns on). I need to mov...
- Modified
- 5 Apr at 08:59