Tag: c

58 votes
12 answers
2.3K views
ASP.NET Core Web API exception handling

I am using ASP.NET Core for my new REST API project after using regular ASP.NET Web API for many years. I don&

avatar
Clarice
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
2.3K views
How to determine if .NET Core is installed

I know that for older versions of .NET, you can determine if a given version is installed by following https

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
2.1K views
How to register multiple implementations of the same interface in Asp.Net Core?

I have services that are derived from the same interface. public interface IService { } public class ServiceA

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
56 votes
20 answers
2.4K views
Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

After fresh installation of Visual Studio 2017 I tried to run .NET Core Web project and when trying to run it

avatar
Wilber
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.4K views
Resolving instances with ASP.NET Core DI from within ConfigureServices

How do I manually resolve a type using the ASP.NET Core MVC built-in dependency injection framework? Setting

avatar
Shanita
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
2.9K views
How do you create a custom AuthorizeAttribute in ASP.NET Core?

I'm trying to make a custom authorization attribute in ASP.NET Core. In previous versions it was possibl

avatar
Louetta
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
2.8K views
AddTransient, AddScoped and AddSingleton Services Differences

I want to implement dependency injection (DI) in ASP.NET Core. So after adding this code to ConfigureServices

avatar
Vi
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
1K views
How to implement band-pass Butterworth filter with Scipy.signal.butter

UPDATE: I found a Scipy Recipe based in this question! So, for anyone interested, go straight to: Contents ยป

avatar
Rufus
0 1 0 9
asked 07 September, 2021
47 votes
4 answers
2.3K views
shuffle vs permute numpy

What is the difference between numpy.random.shuffle(x) and numpy.random.permutation(x)? I have read the doc p

avatar
Scot
0 1 0 9
asked 07 September, 2021
56 votes
4 answers
1.2K views
MatPlotLib: Multiple datasets on the same scatter plot

I want to plot multiple data sets on the same scatter plot: cases = scatter(x[:4], y[:4], s=10, c='b&apo

avatar
Lynette
0 1 0 9
asked 07 September, 2021
63 votes
9 answers
545 views
ImportError: cannot import name NUMPY_MKL

I am trying to run the following simple code import scipy scipy.test() But I am getting the following erro

avatar
Emilia
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
2.3K views
Quantile-Quantile Plot using SciPy

How would you create a qq-plot using Python? Assuming that you have a large set of measurements and are using

avatar
Dario
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
2.7K views
Two-sample Kolmogorov-Smirnov Test in Python Scipy

I can't figure out how to do a Two-sample KS test in Scipy. After reading the documentation scipy kstest

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
58 votes
4 answers
2.7K views
How to transform numpy.matrix or array to scipy sparse matrix

For SciPy sparse matrix, one can use todense() or toarray() to transform to NumPy matrix or array. What are th

avatar
Patsy
0 1 0 9
asked 07 September, 2021
62 votes
13 answers
1.2K views
ImportError: No module named scipy

I am using Python 2.7 and trying to get PyBrain to work. But I get this error even though scipy is installed

avatar
Eddie
0 1 0 9
asked 07 September, 2021
69 votes
12 answers
2.1K views
scipy: savefig without frames, axes, only content

In numpy/scipy I have an image stored in an array. I can display it, I want to save it using savefig without a

avatar
Robyn
0 1 0 9
asked 07 September, 2021
63 votes
9 answers
655 views
How to calculate probability in a normal distribution given mean & standard deviation?

How to calculate probability in normal distribution given mean, std in Python? I can always explicitly code my

avatar
Forrest
0 1 0 9
asked 07 September, 2021
52 votes
7 answers
680 views
Plotting a fast Fourier transform in Python

I have access to NumPy and SciPy and want to create a simple FFT of a data set. I have two lists, one that is

avatar
Deedee
0 1 0 9
asked 07 September, 2021
65 votes
11 answers
1.5K views
Principal component analysis in Python

I'd like to use principal component analysis (PCA) for dimensionality reduction. Does numpy or scipy alr

avatar
Wei
0 1 0 9
asked 07 September, 2021
48 votes
7 answers
1K views
Histogram Matplotlib

So I have a little problem. I have a data set in scipy that is already in the histogram format, so I have the

avatar
Renaldo
0 1 0 9
asked 07 September, 2021