Angular 2: How to call a function after get a response from subscribe http.post
I need to call a method after get the data from the http post request ``` get_categories(number){ this.http.post( url, body, {headers: headers, withCredentials:true}) .subscribe( respo...
- Modified
- 3 Dec at 15:48
ASP.NET web.config transformation related on publish profile name
I have three publish profile on my ASP.NET MVC project. [![enter image description here][1]][1] I need to add transformations for all of them. For doing that, I picked "Add Config Transform" on web.co...
- Modified
- 23 May at 12:29
SyntaxError: import declarations may only appear at top level of a module
I am trying to use a plugin called "Simplebar" found on GitHub, [GitHub SimpleBar](https://github.com/Grsmto/simplebar) but after downloading the scripts and looking at the simple.js script, it looks ...
- Modified
- 11 Dec at 15:5
Handling backpressure in Rx.NET without onBackpressureLatest
I need to implement the following algorithm in Rx.NET: 1. Take latest item from stream, or wait for a new item without blocking, if there are no new items. Only the latest item matters, others can b...
- Modified
- 14 Feb at 23:11
Injecting DI service on a extension method
I'm trying to get the `IStringLocalizer` service instance inside a extension method, is it possible? Any suggestions on how should I inject it? My goal here is to translate a type using its name as c...
- Modified
- 15 Feb at 08:9
HttpClient - This instance has already started
I'm getting this exception using http client in my api. > An unhandled exception has occurred while executing the request. System.InvalidOperationException: This instance has already started one or...
- Modified
- 16 Feb at 14:11
.NET Core - Web API - How to do File Upload?
I am not able to figure out, how to write a .NET Core Web API to support File Upload. Please note I am not using ASP.NET Core MVC form for file upload but via a Servlet/JSP container. Here is how my ...
- Modified
- 8 Oct at 14:34
Unit testing internal methods in VS2017 .NET Standard library
I am currently playing around with the latest Visual Studio 2017 Release Candidate by creating a .NET Standard 1.6 library. I am using xUnit to unit test my code and was wondering if you can still tes...
- Modified
- 19 Apr at 02:38
Angular 2: Iterate over reactive form controls
I would like to `markAsDirty` all the controls inside of a `FormGroup`.
- Modified
- 14 Feb at 20:1
Kotlin - Idiomatic way to check array contains value
What's an idiomatic way to check if an array of strings contains a value in Kotlin? Just like ruby's `#include?`. I thought about: ``` array.filter { it == "value" }.any() ``` Is there a better way? ...
Class Diagrams in VS 2017
I have been using VS 2015 and like the Class Diagram item. I recently upgraded to 2017 and can't seem to find the Class Diagram item. Anyone know how I get to it?
- Modified
- 25 Mar at 12:4
Getting a Cannot await void, on a method that I have want to await on
I'm on a team writing a WPF app. We have to make it so that when a user hides/shows different columns that it will reflect that in a ReportViewer control on one of the views. In testing we've found th...
- Modified
- 5 May at 14:15
How can I rename a conda environment?
I have a conda environment named `old_name`, how can I change its name to `new_name` without breaking references?
How to access Properties of a class from a Generic Method - C#
I have a three class which is having following properties ``` Class A { public int CustID { get; set; } public string Name{ get; set; } } Class B { public int CustID { get; set; } pu...
Asyncio.gather vs asyncio.wait
[asyncio.gather](https://docs.python.org/3/library/asyncio-task.html#asyncio.gather) and [asyncio.wait](https://docs.python.org/3/library/asyncio-task.html#asyncio.wait) seem to have similar uses: I h...
- Modified
- 1 Aug at 15:48
Single Sign On using ASP.NET Identity between 2 ASP.NET MVC projects
I have 2 web applications that both share the same main level domain as mentioned below so I can share cookies. Web.conifg in both the projects have same machine key and validation key. Since, I want ...
- Modified
- 23 May at 12:30
How to Send SMS on Xamarin.Forms
I am developing project, iOS, Android and Windows Phone. My app ask the user to enter text Message and Phone number then on submit, I need to send SMS to the phone number. I prefer to have a single...
- Modified
- 24 Feb at 09:41
How to plot an array in python?
I follow this links [How to append many numpy files into one numpy file in python](https://stackoverflow.com/questions/42204368/how-to-append-many-numpy-files-into-one-numpy-file-in-python/42209244?no...
- Modified
- 23 May at 11:46
Plt.Scatter: How to add title and xlabel and ylabel
Is there a way to add title (and xlabel and ylabel) to plt.scatter(x,y,...) or plt.plot(x,y,...) directly without writing additional lines? It is easy to add it when we use Series_name.plot in which...
- Modified
- 14 Feb at 11:42
How to get an instance of IServiceProvider in .NET Core?
`IServiceProvider` is an interface with single method: ``` object GetService(Type serviceType); ``` It's used to create instances of types registered in .NET Core native DI container. An instance ...
- Modified
- 4 Jan at 14:12
Can I use Task.Delay as a timer?
I want to execute some code on each second. The code I am using now is: > Task.Run((Action)ExecuteSomething); And `ExecuteSomething()` is defined as below: ``` private void ExecuteSomething() ...
- Modified
- 23 May at 12:8
Installation failed with message Invalid File
> Installation failed with message Invalid File: K:\project\app\build\intermediates\split-apk\with_ImageProcessor\debug\slices\slice_0.apk. It is possible that this issue is resolved by uninstalli...
- Modified
- 14 Feb at 06:59
Dockerfile CMD instruction will exit the container just after running it
I want to setup some configuration when my container starts, for this I am using shell scripts. But my container will exits as soon as my scripts ends, I have tried with -d flag / detached mode but It...
- Modified
- 21 Jun at 07:59
Chrome violation : [Violation] Handler took 83ms of runtime
I'm trying to implement the Facebook's logout functionality in my project. Login works just fine. But I'm facing the getting the following message in JavaScript console with the logout code. > [Viola...
- Modified
- 11 Apr at 11:32
Tomcat: java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
I am getting below stack trace when I am deploying my application in a multi-server Apache Tomcat 8 environment. I am getting this error frequently, and it seems it is blocking the tomcat thread: ``` ...
- Modified
- 14 Oct at 09:11