Runtime errors when using multiple versions of ServiceStack assemblies in a same solution
Following is the exact scenario in my application. - - ServiceStack.Interfaces.dll (4.5.4), ServiceStack.Text.dll (4.5.4), ServiceStack.Common.dll (4.5.4) - ServiceStack.Interfaces.dll (3.9.48)...
- Modified
- 2 Apr at 13:13
EF Core / DbContext > Map custom type as primary key
Using EF Core I'm trying to build a model for the follow entity. ``` public class Account { public AccountId AccountId { get; } public string Name { get; set; } private Account() ...
- Modified
- 2 Apr at 07:50
CGRectMake. Is Unavailable In Swift
can someone help me here I am currently getting this error saying that CGRectMake is not available in Swift. I have looked at other answers on this and I am still getting a little confused. Could anyo...
Visual Studio 2017 fail to connect macOS virtual machine installed visual studio for mac and xcode
Below error I am getting when I am connecting the visual studio to my macOS. I am building an iphone app in Visual Studio on Win OS. When try to run the application it showing this error: see scre...
- Modified
- 4 Apr at 13:46
Is it possible to read File from same folder where Azure function exists
In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always". Now I am using this code to read the file ``` var dir = System.IO.Path.GetDirec...
- Modified
- 2 Apr at 02:28
ASP.NET Core 2 web application isn't loading user secrets when debugging IIS website
Note: this issue has now been resolved - see my below for the solution. I have an ASP.NET Core 2 web app which needs to connect to a SQL Server database. As per my below I'm debugging the app with ...
- Modified
- 1 Apr at 21:24
How to get value of a FormControl in Angular4
I have some experience in Angular4, but I just inherited a piece of code that uses FormControls, and I don't know how to work with them. I am setting up a comments textarea that is required if the va...
- Modified
- 16 Mar at 06:32
Entity Framework Core 2.0.1 Eager Loading on all nested related entities
I have a simple problem, but cant seem to find a way around it. I am using Entity Framework Core version 2.0.1 and want to eager load all my entities by default. Example: ``` public class Order { ...
- Modified
- 1 Apr at 11:22
How to create Autoincrement column in SQLite using EF core?
I am using Entity Framework Core 2.0 for Sqlite code first in my [UWP and .NET Standard](https://learn.microsoft.com/en-us/ef/core/get-started/uwp/getting-started) app. My model has an entity of type ...
- Modified
- 31 Mar at 20:49
Convert string to boolean in C#
I need help converting a string to a bool value: I've been trying to get the value (true or false) from the TopMost for my program and save it in my settings. ``` Settings1.Default["tm"] = ; Setting...
Should RestClient be singleton or new for every request
ASP.Net `HttpClient` is disposable, and a lot of articles say you should use the singleton pattern to use it because of the performance. But when I see the `RestClient` it can't be disposed, and in th...
How to precompile views in ASP.NET Core 2.0?
I set up my solution according to this [article](https://dzone.com/articles/self-contained-ui-running-one-aspnet-core-mvc-site). I left out some of the things because according to [this](https://learn...
- Modified
- 31 Mar at 09:10
Flutter: filter list as per some condition
I'm having a list of movies. That contains all animated and non-animated movies. To identify whether it's Animated or not there is one flag called `isAnimated`. I want to show only Animated movies. Ho...
How to create number input field in Flutter?
I'm unable to find a way to create an input field in Flutter that would open up a numeric keyboard and should take numeric input only. Is this possible with Flutter material widgets? Some GitHub discu...
ServiceStack - Customize Generated OpenAPI JSON using OpenApiFeature
Using the ServiceStack `OpenApiFeature`, the generated `operationId` in the openapi.json file follows this convention: `[RequestName][route path slice without first path*][http verb][digit if require...
- Modified
- 2 Apr at 16:24
Fill a new pandas column with row numbers
I have the following DataFrame `data` with random index values: ``` A B 100 0 7 203 5 4 5992 0 10 2003 9 8 20 10 5 12 6 2 ``` I would like to add a new column 'C' with row num...
How to open Android Device Monitor in latest Android Studio 3.1
Recently I updated my android studio, after the update, I am unable to find android device monitor option in the tools section. In the previous update it was there in . But now in the updated version,...
- Modified
- 30 Mar at 12:18
.NET Core dependency injection backwards compatibility with .NET Framework?
I want to rebuild a .NET Framework library to .NET Core, and then use this library in the .NET Framework app. The library needs a database connectionstring. In .NET Core I would use Dependency Inject...
- Modified
- 30 Mar at 11:53
Proper way to deal with database connectivity issue
I getting below error on trying to connect with the database : > A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or w...
- Modified
- 1 Mar at 19:48
How to fix ''UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 29815: character maps to <undefined>''?
At the moment, I am trying to get a Python 3 program to do some manipulations with a text file filled with information, through the Spyder IDE/GUI. However, when trying to read the file I get the foll...
Post Multiple Parameters Without DTO Class
I have an action on my web project which calls to an API ``` [HttpPost] public async Task<IActionResult> ExpireSurvey(int id) { var token = await HttpContext.GetTokenAsync("access_tok...
- Modified
- 25 Feb at 15:9
C# compiler chooses wrong extension method
Consider this code: ``` using System.Linq; namespace ExtensionMethodIssue { static class Program { static void Main(string[] args) { var a = new[] { 1 }; ...
Boxplot of Multiple Columns of a Pandas Dataframe on the Same Figure (seaborn)
I feel I am probably not thinking of something obvious. I want to put in the same figure, the box plot of every column of a dataframe, where on the x-axis I have the columns' names. In the `seaborn.bo...
How to combine multiple string list with separator
I have three string list, the purpose is combine these list to a single string with separator. ``` List<string> list1=new List<string>{"A","B","C"}; List<string> list2=new List<string>{"=","<", ">"};...
proper implementation of "windows" authentication in web api?
I've created a Web Api 2 app which will only be used on the corporate network. I've read about Windows authentication in Web API so it seems to be possible. But I need to figure out the proper impleme...
- Modified
- 30 Mar at 16:39