EPPlus Changing Border Color of cells
I'm trying to change the cell border color on a selected range. Couldn't find any other styles for cell borders other than for the weights of the borders as follows: ``` range.Style.Border.Top.Style ...
C# Regex Performance very slow
I am very new in regex topic. I want to parse log files with following regex: ``` (?<time>(.*?))[|](?<placeholder4>(.*?))[|](?<source>(.*?))[|](?<level>[1-3])[|](?<message>(.*?))[|][|][|](?<placehold...
How to control a Bluetooth LE connection on Windows 10?
I need to develop an application which communicates with a device via bluetooth low energy. Once the application is connected to the device via bluetooth it receives and sends data by using a gatt ser...
Lowered operations in roslyn
When operations were introduced in Roslyn one of the goals was to provide lowered operations (I think it was in design review meeting video) which as far as I understand should provide explicit operat...
How can I parse JSON string from HttpClient?
I am getting a JSON result by calling an external API. ``` HttpClient client = new HttpClient(); client.BaseAddress = new Uri(url); client.DefaultRequestHeaders.Accept.Add(new MediaTyp...
- Modified
- 19 Jul at 16:30
How to self register a service with Consul
I'm trying to [self][1] register my ASP.NET Core application to Consul registry on startup and deregister it on shutdown. From [here][2] I can gather that calling the http api [`put /v1/agent/service/...
- Modified
- 6 May at 01:0
Where to store Bearer Token in MVC from Web API
I have an ASP.NET Web API that uses the OAuth Password Flow to provide Bearer Tokens to gain access to its resources. I'm now in the process of making an MVC app that will need to use this API. Th...
- Modified
- 26 Jun at 09:15
NSCameraUsageDescription in iOS 10.0 runtime crash?
Using `iOS 10.0` last beta. I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error. > This app has crashed because it attempted to access privacy-sensitive data...
- Modified
- 17 May at 11:35
How to store Emoji Character in MySQL Database
I have a MySQL database configured with the default collation `utf8mb4_general_ci`. When I try to insert a row containing an emoji character in the text using the following query ``` insert into table...
- Modified
- 14 Jul at 06:15
Map over an object and change one properties value using native JS
I want to be able to return a result set of data and just change the formatting of the date field to something more readable leaving all the other data intact. I would prefer to do this without a thi...
- Modified
- 13 Sep at 05:28
how to run python files in windows command prompt?
I want to run a python file in my command prompt but it does nothing. These are the screen shots of my program i am testing with and the output the command prompt gives me. [](https://i.stack.imgur.co...
- Modified
- 13 Sep at 05:19
Unity Add Default Namespace to Script Template?
I just found Unity's script template for C# scripts. To get the script name you write `#SCRIPTNAME#` so it looks like this: ``` using UnityEngine; using System.Collections; public class #SCRIPTNAME# ...
How to use C# 7 with Visual Studio 2015?
Visual Studio 2017 (15.x) supports C# 7, but what about Visual Studio (14.x)? How can I use C# 7 with it?
- Modified
- 25 Feb at 11:49
Unable to edit db entries using EFCore, EntityState.Modified: "Database operation expected to affect 1 row(s) but actually affected 0 row(s)."
I'm using Identity Core 1.0 with ASP.NET MVC Core 1.0 and Entity Framework Core 1.0 to create a simple user registration system with [this article](http://www.dotnetfunda.com/articles/show/2898/workin...
- Modified
- 13 Sep at 06:45
Remove a modified file from pull request
I have 3 modified files (no new files) in a pull request at the moment. I would like to remove one of those files from the pull request, so that the pull request only contains changes to two files a...
- Modified
- 4 Jun at 13:59
ASP.NET CORE, Web API: No route matches the supplied values
Original Question: --- i have some problems with the routing in asp.net core (web api). I have this Controller (simplified): ``` [ApiVersion("1.0")] [Route("api/v{version:apiVersion}/[Control...
- Modified
- 11 May at 21:20
Using List/Tuple/etc. from typing vs directly referring type as list/tuple/etc
What's the difference of using `List`, `Tuple`, etc. from `typing` module: ``` from typing import Tuple def f(points: Tuple): return map(do_stuff, points) ``` As opposed to referring to Python...
- Modified
- 6 Oct at 13:55
kubectl logs - continuously
``` kubectl logs <pod-id> ``` gets latest logs from my deployment - I am working on a bug and interested to know the logs at runtime - How can I get continuous stream of logs ? edit: corrected ques...
- Modified
- 12 Sep at 16:57
The term 'scaffold-dbcontext' is not recognized as the name of a cmdlet, function, script file, or operable program
When trying to scaffold with asp.net core this command ``` scaffold-dbcontext "Data Source=(local);Initial Catalog=MyDb;Integrated Security=True;" Microsoft.EntityFrameworkCore.sqlserver -outputdir Mo...
- Modified
- 23 Dec at 10:59
ASP.NET Core with EF Core - DTO Collection mapping
I am trying to use (POST/PUT) a DTO object with a collection of child objects from JavaScript to an ASP.NET Core (Web API) with an EF Core context as my data source. The main DTO class is something ...
- Modified
- 29 Apr at 21:30
Why does interpolating a const string result in a compiler error?
Why does string interpolation in c# does not work with const strings? For example: ``` private const string WEB_API_ROOT = "/private/WebApi/"; private const string WEB_API_PROJECT = $"{WEB_API_ROOT}p...
- Modified
- 25 Nov at 17:40
Async library best practice: ConfigureAwait(false) vs. setting the synchronization context
It's well-known that in a general-purpose library, `ConfigureAwait(false)` should be used on every await call to avoid continuing on the current SynchronizationContext. As an alternative to peppering...
- Modified
- 12 Sep at 09:48
405 - HTTP verb used to access this page is not allowed. [IIS 8.5] [Windows Server 2012 R2]
I have got a new iis server and from a while i am finding solution for error : > 405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because a...
Determine List.IndexOf ignoring case
Is there a way to get the index of a item within a List with case insensitive search? ``` List<string> sl = new List<string>() { "a","b","c"}; int result = sl.IndexOf("B"); // should be 1 instead of ...
Create a new user in Azure Active Directory (B2C) with Graph API, using http post request
I have previously been adding users programmatically using Active Directory Authentication Library (ADAL), but now I need to define "signInNames" (= users email), and that doesn't seem to be possible ...
- Modified
- 7 May at 03:58