What is the idiomatic naming convention for local functions in C# 7
Normal class methods, whether instance or static, have an idiomatic naming convention with regards to their casing. It's not clear that there is a convention for [local functions](https://learn.micros...
- Modified
- 22 Apr at 18:6
Return empty array instead of null
I created `Settings` class which I use to edit my application by `.ini` file. My `Settings.ini` file looks like this: ``` [ACCOUNT] login=xyz password=xyz locations=1,2,5,8 ``` Now I am getting the...
- Modified
- 4 May at 11:40
System.Uri and encoded colon (:)
Before .Net 4.5, it seems that System.Uri would unencode encoded slashes, but this has since been fixed. Reference: [https://stackoverflow.com/a/20733619/188740](https://stackoverflow.com/a/20733619/1...
How to force Flutter to rebuild / redraw all widgets?
Is there a way to force Flutter to redraw all widgets (e.g. after locale change)?
Azure Storage 403 Forbidden exception a 32-bit issue?
We've spent quite some time to locate the reason for the following exception: ``` The remote server returned an error: (403) Forbidden. ``` Stacktrace: ``` at Microsoft.WindowsAzure.Storage.Core.E...
- Modified
- 4 May at 09:27
How to print a specific row of a pandas DataFrame?
I have a massive DataFrame, and I'm getting the error: ``` TypeError: ("Empty 'DataFrame': no numeric data to plot", 'occurred at index 159220') ``` I've already dropped nulls, and checked dtypes for...
- Modified
- 23 Jan at 06:6
adding rows programmatically to grid in WPF window
I have a window with a button and a Grid in this window with rows and columns setup. I'm trying to create a button that when clicked will add another row to the Grid and then assign a user control to ...
How to set php executable path php.validate.executablePath in vscode when php is set inside docker container?
I have a development environment based in docker. Everytime that I open VSCode I get this message: > Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' t...
- Modified
- 21 Sep at 18:18
Entity Framework Core Using multiple DbContexts
I'm having a problem that when I try to access a field in my PartsDbContext I get the following error: > System.Data.SqlClient.SqlException: 'Invalid object name 'fieldName'' It seems that this is ...
- Modified
- 4 May at 08:27
Global Request Filter Async Order of Operations
Where do async global request filters fit in the order of operations as described [here](http://docs.servicestack.net/order-of-operations)? We recently added a global async filter and a request filte...
- Modified
- 3 May at 18:12
Handle null in LINQ sum expression
I am using a LINQ query to find sum of a column and there is a slight chance that the value might be null in few cases The query I am using now is ``` int score = dbContext.domainmaps.Where(p => p...
- Modified
- 5 May at 05:21
c# join string comma delimited, but double quote all values inside
I have a string list ``` new List<string> { "One", "Two", "Three", "Four", "Five", "Six" } ``` And I want to have a string with exact this content (including double quotes) ``` "One", "Two", "Thre...
- Modified
- 3 May at 16:56
Selenium RemoteWebDriver c# - System.InvalidOperationException
I have a sample UI test project using v3.4.0 of Selenium.WebDriver. Everything works fine when I run the tests against a local driver but I want to get things working using Selenium Grid 2. As soon ...
- Modified
- 4 May at 08:42
How to remove file from Git history?
Some time ago I added info(files) that must be private. Removing from the project is not problem, but I also need to remove it from `git` history. I use Git and Github (private account). Note: On [thi...
Pandas rename column by position?
I was just wondering if I can rename column names by their positions. I know how to rename them by their actual names using: `df.rename(columns = {})` How do I do it if I do not know the column nam...
Replacing values greater than a number in pandas dataframe
I have a large dataframe which looks as: ``` df1['A'].ix[1:3] 2017-01-01 02:00:00 [33, 34, 39] 2017-01-01 03:00:00 [3, 43, 9] ``` I want to replace each element greater than 9 with 11. So, t...
How to add a variable to Python plt.title?
I am trying to plot lots of diagrams, and for each diagram, I want to use a variable to label them. How can I add a variable to `plt.title?` For example: ``` import numpy as np import matplotlib.pypl...
- Modified
- 8 Jan at 17:31
how to get value from appsettings.json
``` public class Bar { public static readonly string Foo = ConfigurationManager.AppSettings["Foo"]; } ``` In the .NET Framework 4.x, I can use the `ConfigurationManager.AppSettings ["Foo"]` to g...
- Modified
- 3 May at 10:35
Null propagation feature and Razor views
Hello I have a strange issue. I use the null propagation feature in my razor pages like this ``` @(Model.ligneDossierLie?.dossier_id) ``` my project is based on 4.6.1 Framework and I use the last ...
- Modified
- 3 May at 10:44
Format date within View in ASP.NET Core MVC
I have problem in regarding with converting the datetime to date using a model. ``` public partial class LoanContract { [DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")] public DateTime ...
- Modified
- 3 May at 10:56
super(type, obj): obj must be an instance or subtype of type
Why do I get the following error, and how do I resolve it? > TypeError: super(type, obj): obj must be an instance or subtype of type
- Modified
- 17 Apr at 12:33
.net Core X Forwarded Proto not working
I am working to get my .net core 1.1 application working behind a load balancer and enforcing https. I have the following setup in my Startup.cs ``` public void Configure(IApplicationBuilder app, IHos...
- Modified
- 1 Mar at 14:55
Golang - DTOs, Entities and Mapping
I am new to Go having come from a C# background, and I am just plain confused about structure a Go application. Say I am building a REST API that will sit on top of a database. Also, say that, even af...
COPY with docker but with exclusion
In a Dockerfile, I have ``` COPY . . ``` I want to exclude an entire directory, in my case, node_modules directory. Something like this: ``` COPY [all but **/node_modules/**] . ``` Is this poss...
- Modified
- 2 May at 21:48
How to parse huge JSON file as stream in Json.NET?
I have a very, very large JSON file (1000+ MB) of identical JSON objects. For example: ``` [ { "id": 1, "value": "hello", "another_value": "world", "value_obj": { ...