How and where to use ::ng-deep?
How and where can one use `::ng-deep` in Angular 4? Actually I want to overwrite some of the CSS properties of the child components from the parent components. Moreover is it supported on IE11?
- Modified
- 29 Dec at 03:7
Laravel Composer sees wrong PHP Version
I'm trying to install an older Laravel Project. When I run composer install I get the following error ``` This package requires php >=5.6.4 but your PHP version (5.5.35) does not satisfy that requir...
- Modified
- 17 Oct at 08:41
Should I add async/await to a single-line function or not?
Should I add async/await to a single-line function like: ``` public async Task<T> GetFoo() { return await HandleAsync<T>(....); } ``` Or is this unneeded overhead if the parameter does not need...
- Modified
- 17 Oct at 08:23
Migrated web service to .NET Core 2.0 and returning json
I have migrated my web service to .NET Core 2.0, it works fine but I have problem with getting response as json string. Method on api: ``` [HttpGet] [ProducesResponseType(typeof(string), 200)] ...
- Modified
- 17 Oct at 08:20
How to know which typescript version running on angular 4 project
So i did `ng -v` it shows me everything except typescript, so how can i check Typescript version of my angular 4 project.
- Modified
- 17 Oct at 06:38
Should the links on ServiceStack metadata page be encoded?
A scanner tool we use is reporting a security concern. It monitored the response from `GET /metadata` within `ServiceStack.Metadata.IndexOperationsControl.Render()` and reported a response without val...
- Modified
- 17 Oct at 01:12
How to display hidden files with Visual Studio Code
The "open file" dialog in [Visual Studio Code](https://en.wikipedia.org/wiki/Visual_Studio_Code) is not showing hidden files. For example, when looking at my home directory, none of the `.` files are ...
- Modified
- 31 Jul at 20:36
ASP.NET Core docker build error
I'm new to ASP.NET Core and docker. I've created a simple ASP.NET Core 2.0 app and try to use docker with it on Windows. However, I get this error: `Your Docker server host is configured for 'Linux'...
- Modified
- 16 Oct at 22:21
WCF much slower than WebAPI running same code
I currently have 2 exposed endpoints. The first is WebAPI (.NET 4.6). The second is WCF (.NET 3.5). They are both capable of performing the same calculation, however the WCF is on average 10 times slo...
- Modified
- 25 Oct at 21:49
DateTime formats used in InvariantCulture
I have to pre-validate in Javascript a string that will be a DateTime in c#. The DateTime parse uses InvariantCulture. Does anyone know the DateTime formats defined for InvariantCulture?
- Modified
- 16 Oct at 19:58
C# Fields Capitalization Convention
My textbook (Visual C# How to Program, 6/e) states that fields in C# should use camelCase. This corresponds with examples given in Microsoft C# Guide: [https://learn.microsoft.com/en-us/dotnet/csharp/...
- Modified
- 16 Oct at 19:14
Disable click outside of angular material dialog area to close the dialog (With Angular Version 4.0+)
I am currently working on password reset page of an Angular 4 project. We are using Angular Material to create the dialog, however, when the client clicks out of the dialog, it will close automaticall...
- Modified
- 29 Feb at 16:57
How pass objects from one page to another on ASP.Net Core with razor pages?
I'm developing a web application using Asp.net core 2.0 with razor pages. I'm creating an object with some data and want to send that object to another page. Actually I'm doing this: ``` var customO...
- Modified
- 16 Oct at 14:23
Angular: Cannot Get /
I am trying to open, build and run someone else's Angular 4 project but I am not able to view the project when I run it my way. I don't see what is going wrong or what I should do now. I already had e...
- Modified
- 7 Dec at 08:1
How to fake declared services in Startup.cs during testing?
I would like to write integration tests for my Asp .net core application, but I don't want my tests to use real implemetation of some services. ``` public class Startup { public void ConfigureSer...
- Modified
- 26 Oct at 12:19
Styling mat-select in Angular Material
How to style mat-select's panel component. From the docs I get that I need to provide panelClass so I make it like this: ``` <mat-form-field> <mat-select placeholder="Search for" [(ngModel)]="...
- Modified
- 15 Jul at 09:26
React-Redux: Actions must be plain objects. Use custom middleware for async actions
> Unhandled Rejection (Error): Actions must be plain objects. Use custom middleware for async actions. I wanted to add comments with every posts. So when fetch posts are run I want to call fetch comm...
- Modified
- 15 Sep at 14:29
Swagger - Web API - Optional query parameters
``` [HttpGet] [Route("students")] [SwaggerOperation(Tags = new[] { "Student" })] [SwaggerResponse(HttpStatusCode.OK, Type = typeof(ResponseModel<IList<Student>>))] [SwaggerResponseExample(HttpStatusCo...
- Modified
- 16 Oct at 07:13
Repeated Tasks using Timer Interval vs Task Delay
I'm implementing a scheduled job like methods and have narrowed down to approaches. One that implements a Timer Interval and the other based on Task Delay. I've also considered using Azure Timer tri...
- Modified
- 16 Oct at 05:58
InvalidOperationException: Cannot create a DbSet for 'Role' because this type is not included in the model for the context
The following solution works in .net core 1.1, but after upgrading from 1.1 to 2.0, I received the following error: > InvalidOperationException: Cannot create a DbSet for 'Role' because this type is ...
- Modified
- 25 Oct at 13:36
How to update an "array of objects" with Firestore?
I'm currently trying Firestore, and I'm stuck at something very simple: "updating an array (aka a subdocument)". My DB structure is super simple. For example: ``` proprietary: "John Doe", sharedWith...
- Modified
- 23 Sep at 05:49
Scanning images for finding rectangles
I'm trying to scan a constant size image and locate the drawn rectangles in it. The rectangles can come in any size, but only red colored. This is where the problem starts. I'm gonna use an already...
- Modified
- 4 Nov at 12:43
Servicestack request add param to every query
I want to modify the RequestURI in the request from a Servicestack 'JsonServiceClient', however, the request URI is readonly. The Restful API that i'm trying to use requires a 'apikey' be sent in the ...
- Modified
- 15 Oct at 14:8
Azure CDN + Asp.net MVC Cloud Service compression for bundles not working
I am using Azure CDN which is pointing to my Azure Cloud Service. I have enabled bundling for my JS and CSS files, and in BundleConfig I have set `bundles.UseCdn = true`. Everything is working fine,...
- Modified
- 15 Oct at 12:3
Model binding is not working on POST request in ASP.NET Core 2 WebAPI
This is my model. ``` public class Patient { public string Name { get; set; } public string Gender { get; set; } public double Age { get; set; } public DateTime DateOfBirth { get; set; } pu...
- Modified
- 15 Oct at 11:27