Projects load failed in Visual Studio 2015
When I am opening a .sln in Visual Studio 2010, projects are loading properly. But when I open the same solution with Visual Studio 2015 (Professional with Update 1), projects are not getting loaded w...
- Modified
- 15 Feb at 15:27
How to implement debounce in Vue2?
I have a simple input box in a Vue template and I would like to use debounce more or less like this: ``` <input type="text" v-model="filterKey" debounce="500"> ``` However the `debounce` property has...
- Modified
- 31 Mar at 14:18
Enable OPTIONS header for CORS on .NET Core Web API
I solved this problem after not finding the solution on Stackoverflow, so I am sharing my problem here and the solution in an answer. After enabling a cross domain policy in my .NET Core Web Api appl...
- Modified
- 11 Feb at 13:23
Quartz.Net Dependency Injection .Net Core
In my project I have to use Quartz but I don't know what i do wrong. JobFactory: ``` public class IoCJobFactory : IJobFactory { private readonly IServiceProvider _factory; public IoCJobFact...
- Modified
- 13 Feb at 08:25
Use attributes for value tuples
In C# 7.0, .NET introduces a new return value tuple types (functional programming), so instead of: ``` [NotNull] WrapperUser Lookup(int id) ``` I'd like to use value tuples: ``` (User, Info) Looku...
- Modified
- 13 Feb at 07:56
ServiceStack ORM Lite custom sql LIKE statement wildcard
How do we use a LIKE with wildcards in a custom sql with servicestack ORMLite? Following code does not seem to work: ``` var sql="SELECT TOP 10 Id,Value FROM SomeTable WHERE Value Like '%@term%'" va...
- Modified
- 13 Feb at 03:19
Xamarin Forms image size mismatch
I'm implementing a cross-platform app using Xamarin Forms and I'm struggling with a strange bug: I'm trying to create a button with a text upon it. To achieve it, I'm using `AbsoluteLayout`. I've add...
- Modified
- 5 Mar at 18:49
Event_Handler of the Done button of a picker
I have a xamarin picker with a list of items and I want to remove the picker when the "done" button is pressed on iPhone and "Oke" button on android. I have the code to remove the picker. But i do...
- Modified
- 3 May at 18:33
How to reset ReactJS file input
I have file upload input: ``` <input onChange={this.getFile} id="fileUpload" type="file" className="upload"/> ``` And I handle upload this way: ``` getFile(e) { e.preventDefault(); let rea...
- Modified
- 14 May at 07:9
scikit-learn random state in splitting dataset
Can anyone tell me why we set random state to zero in splitting train and test set. ``` X_train, X_test, y_train, y_test = \ train_test_split(X, y, test_size=0.30, random_state=0) ``` I have seen...
- Modified
- 6 Nov at 05:3
How to Specify Entity Framework Core Table Mapping?
I've made a simple Entity Framework ASP Core Application that works but I do not know why: I've made a context like this: ``` public class AstootContext : DbContext { public AstootContext(DbContex...
- Modified
- 1 Jun at 09:59
How to add custom roles to ASP.NET Core
I've found [this answer](https://stackoverflow.com/a/36807669/831138) but it doesn't seem to fit in my ASP Net Core project. Things I am trying to understand: - `aspnetroles``Id``ConcurrencyStamp`- ...
- Modified
- 23 May at 11:54
How to open a "-" dashed filename using terminal?
[I tried gedit, nano, vi, leafpad and other text editors , it won't open, I tried cat and other file looking commands, and I ensure you it's a file not a directory!](https://i.stack.imgur.com/K3ldv.pn...
Optimize LINQ query that runs fast in Sql server?
I want to calculate the rows of a related table: ``` MainTable tbl = tblInfo(id); var count = tbl.Related_Huge_Table_Data.Count(); ``` The problem is: this takes too long (about 20 seconds) to exec...
- Modified
- 14 Feb at 09:37
unzip password protected zip in unix
I need to create a shell script wherein I will unzip a password protected zip file. I know the password, and need to automate the unzip process. How can I achieve this using Unix shell scripting?
How to implement a Navbar Dropdown Hover in Bootstrap v4?
I am a bit confused on the new bootstrap version since they changed dropdown menus to divs: ``` <nav class="navbar navbar-toggleable-md navbar-light bg-faded"> <button class="navbar-toggler navbar-...
- Modified
- 19 Nov at 19:4
What is the difference between various MSBuild version properties, such as Version, VersionPrefix, and VersionSuffix?
Building projects with MSBuild 15 and Microsoft.NET.Sdk allows users to specify half a dozen version properties. What is the difference between each of these and what is the right way to use them? - ...
Is it possible to use dotenv in a react project?
I am trying to set some environment variables (for making API calls to dev/prod endpoints, keys depending on dev/prod, etc.) and I'm wondering if using dotenv will work. I've installed dotenv, and I ...
- Modified
- 11 Feb at 23:44
Built-in dependency injection with conventions
How to inject services without registering them? I mean in the past some DI frameworks automatically registered `Service` for `IService`. I'm in a situation where I have a dozen of services and basic...
- Modified
- 11 Feb at 20:23
How to disable a input in angular2
In ts `is_edit = true` to disable... ``` <input [disabled]="is_edit=='false' ? true : null" id="name" type="text" [(ngModel)]="model.name" formControlName="name" class="form-control" minlength="2"> `...
- Modified
- 29 Nov at 05:12
How to download a nupkg package from nuget programmatically in .NET Core?
In past with .NET Framework I used this example for working with nuget programmatically [Play with Packages, programmatically!](http://blog.nuget.org/20130520/Play-with-packages.html) Is there any ...
React router, pass data when navigating programmatically?
We could navigate to different path using `this.props.router.push('/some/path')` Is there a way to send params (object) along when navigating? There are other options I can think of, but wonder i...
- Modified
- 21 Jan at 11:45
Package requires NuGet client version '2.12'
I am trying to install 'WindowsAzure.Storage 8.0.1' in visual studio 2012, but getting the error > package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318....
- Modified
- 11 Feb at 07:57
Python Matplotlib Histogram Color
I hope you are well. I am plotting a histogram using Matplotlib. I would like the color of the histogram to be "sky blue". But the data overlaps, and produces a histogram which is nearly black in col...
- Modified
- 13 Feb at 08:30
Get current number of partitions of a DataFrame
Is there any way to get the current number of partitions of a DataFrame? I checked the DataFrame javadoc (spark 1.6) and didn't found a method for that, or am I just missed it? (In case of JavaRDD th...
- Modified
- 14 Oct at 16:28