Uncaught (in promise): Error: StaticInjectorError(AppModule)[options]
I have a strange error. Usually (I did my googling), in this case of errors Angular specifies in square brackets which exactly module/service/provider/etc caused the problem. However here, it says onl...
javascript- Uncaught SyntaxError: Identifier * has already been declared
``` console.log(a) //output:ƒ a(){} var a = 1; function a(){}; var a = 10; console.log(a) //output:10 ``` ==================== ``` var a = 1; if(true){ function a(){}; var a = 10; } console.log...
- Modified
- 23 Oct at 11:18
How to get access token from HttpContext in .Net core 2.0
I'm trying to upgrade a project from .Net core 1.1 to .Net core 2.0 there's a lot of breaking changes. One of the things I'm currently having an issue with is that `HttpContext.Authentication` is now ...
- Modified
- 15 Jul at 10:55
Not able to install Python packages [SSL: TLSV1_ALERT_PROTOCOL_VERSION]
I am trying to install a Python library using `pip`, getting an SSL error: ``` ~/projects/base pre-master± pip install xdict Collecting xdict Could not fetch URL https://pypi.python.org/simple/...
- Modified
- 21 May at 10:40
C#/.NET - How to generate and increase package version automatically especially via CI?
I have a Visual Studio project which is built as a NuGet lib package. But every time I publish the package, I have to change the version number manually. That's a prone-to-error work. I'd like to gene...
- Modified
- 12 Apr at 15:34
Global suppression for entire solution (C#)
Does any one of you know a way I'd be able to suppress e.g. CA2000 for an entire solution? I'm thinking of something like a `GlobalSuppressions` class with the following line of code: ``` [assembly:...
- Modified
- 3 May at 14:56
Flutter.io Android License Status Unknown
``` >[!] Android toolchain - develop for Android devices (Android SDK 27.0.3) >>• Android SDK a ..\Android\sdk • Android NDK location not configured (optional; useful for native profiling supp...
- Modified
- 30 May at 10:33
Redact sensitive information when using ServiceStack.Text to serialize to log files
I am using `ServiceStack.Text` and `ServiceStack.Logging.NLog` to log the DTO requests sent to/from a web service from a .NET client application. While the machines are generally secure, I'd like to ...
- Modified
- 10 Apr at 15:39
How to use RegEx in Dart?
In a Flutter application, I need to check if a string matches a specific RegEx. However, the RegEx I copied from the JavaScript version of the app returns false in the Flutter app. I verified on [reg...
How do I convert 2018-04-10T04:00:00.000Z string to DateTime?
I get a date from a JSON API which looks like this "2018-04-10T04:00:00.000Z". I want to convert it in order to obtain a Date or String object and get something like "01-04-2018" that its "dd-MM-YYYY"...
- Modified
- 10 Apr at 11:11
How can I find the version of .NET run-time programmatically?
I need a solution to give me the run-time version of both the full framework as well as the . On a machine with the following versions: ``` Full: 4.7.2 Core: 2.1.104 ``` Running: ``` RuntimeInf...
ASP.NET Core: [FromQuery] usage and URL format
I am trying to use [FromQuery] in my web api and I am not sure how to use it. Here's the GetAllBooks() method in the controller: ``` [HttpGet] [Route("api/v1/ShelfID/{shelfID}/BookCollection")] pu...
- Modified
- 9 Apr at 21:24
Error/Stack Trace
ServiceStack version 5.0.2 I wondered if anyone could give me a pointer to a possible cause of the error shown in the stack trace below. (I am a junior developer, so I am very new to all this.) We h...
- Modified
- 9 Apr at 19:53
Could not load file or assembly 'Microsoft.SqlServer.Types, Version=10.0.0.0' or one of its dependencies
Recently I have started using SSMS 2017 (v17.5). In my MVC application, I am getting the following error. `Could not load file or assembly 'Microsoft.SqlServer.Types, Version=10.0.0.0, Culture=neutral...
- Modified
- 7 May at 05:49
DateTime formats between C# ServiceStack and Java
I am using ServiceStack 4.5.6 with Visual Studio 2015. In my current situation, I am using SS just as client. The REST server is written in Java by a third party company. I wrote the Model classes, DT...
- Modified
- 9 Apr at 15:52
What is the difference between new Object() and new Object{} in expressions in C#
I have the following code snippet: ``` Expression<Func<TSource, TDest>> expression = model => new TDest{}; // Result: {model => new TestModel(){}} ``` ReSharper refactors this snippet with `Redunda...
c# httpclient post force single packet
Using Microsoft Message Analyzer, I can see that post data using the HttpClient is being sent in two tcp packets. One for the header, then one for the post data. This data could easily fit into one pa...
- Modified
- 10 Apr at 06:38
Building a Docker image from a multi project dot net core solution
I am trying to build a docker image from a visual studio solution that consists of two projects: - - I can build and run in Visual Studio, which produces a Docker image that I am able to deploy to ...
- Modified
- 9 Apr at 08:40
Merge Two Interfaces
Seeking confirmation or clarification If I have two interfaces. What is the "proper" way to create a merge of those two interfaces? ``` IFoo { // some stuff } IBar { // some stuff } IFooBar ex...
- Modified
- 5 Mar at 05:42
Nuget package "Not available in this source"... but VS still knows about it?
I've come across a screen that I've never seen before, while playing with `Npgsql.EntityFrameworkCore.PostgreSQL` source code, looking for a bug that's blocking my app from running properly. As thing...
- Modified
- 8 Apr at 14:15
InvalidOperationException: The AuthorizationPolicy named: 'Bearer' was not found
I am currently trying to learn how to build a secure api using bearer token, I keep getting this error (InvalidOperationException: The AuthorizationPolicy named: 'Bearer' was not found.) and I am not ...
- Modified
- 8 Apr at 15:8
ServiceStack Serializing enum values to a string other than the name
I need to serialize an enum's values to a string other than the name. I tried doing this (see code below) but the attribute `[EnumMember(Value = "name")]` didn't change anything. When I do `.ToJson(...
- Modified
- 8 Apr at 07:3
how to add onchange event on dropdown in angular ?
could you please tell me how to add onchange event on dropdown in angular ? I made a simple demo in which initially I fetch `bank names` and show in `drop down` . Now I want to add `on change event` ...
- Modified
- 8 Apr at 06:47
How to use conditional statement within child attribute of a Flutter Widget (Center Widget)
So far whenever I needed to use a conditional statement within a Widget I have done the following (Using Center and Containers as simplified dummy examples): ``` new Center( child: condition == tr...
- Modified
- 23 Apr at 03:47
ServiceStack JsonServiceClient Response Header
I'm new to ServiceStack so please forgive my ignorance... How can I the `JsonServiceClient` to give my my `DataContract` response object and also allow me to get the response header with only a singl...
- Modified
- 7 Apr at 19:12