How to get a list of all folders in an container in Blob Storage?
I am using Azure Blob Storage to store some of my files away. I have them categorized in different folders. So far I can get a list of all blobs in the container using this: ``` public async Task<L...
- Modified
- 26 May at 17:15
Could not load type 'ServiceStack.Redis.RedisSentinel' from assembly 'ServiceStack.Redis, Version=3.9.48.0, Culture=neutral, PublicKeyToken=null
Currently in my application I am trying to implement application caching for which I have used RedisSentinel. We have a common assembly which is having all code and configurations implemented for Red...
- Modified
- 26 May at 13:25
Lost parameter value during SQL trace in EF Core
I have implemented an approach for tracing SQL queries from EF Core according to this article: [https://learn.microsoft.com/en-us/ef/core/miscellaneous/logging](https://learn.microsoft.com/en-us/ef/co...
- Modified
- 30 Jul at 22:13
Why are three properties in DbParameterCollection abstract in reference assemblies but virtual otherwise?
I'm moving a project from `project.json` to the new-style csproj format, and it includes a class derived from [DbParameterCollection](https://learn.microsoft.com/en-us/dotnet/api/system.data.common.db...
- Modified
- 18 Feb at 00:12
How to Bulk Update records in Entity Framework?
I am trying to bulk update records using Entity Framework. I have tried Entity Framework.Extensions `Update` method. The `Update` method is able to bulk update for a set of records with same set of u...
- Modified
- 20 Nov at 08:10
Correct way to check value tuples for equality in C#?
Given two variables of type `(int, int)`, how do I check if they represent equal values? For example: But fails with: > Error CS0019 Operator '==' cannot be applied to operands of type '(int, int)' an...
- Modified
- 6 May at 18:49
How to find MySQL process list and to kill those processes?
The MySQL database hangs, due to some queries. How can I find the processes and kill them?
- Modified
- 13 May at 12:12
Null(In C#) Vs Nothing(in vb.net)
How is C# NULL different from vb.net Nothing? ``` Console.WriteLine(Nothing = "") => True ``` vs ``` Console.WriteLine(null==""); => False ``` My understanding was that both `null` and `Nothing`...
Kotlin - How to correctly concatenate a String
A very basic question, what is the right way to concatenate a String in Kotlin? In Java you would use the `concat()` method, e.g. ``` String a = "Hello "; String b = a.concat("World"); // b = Hello ...
UICollectionView, full width cells, allow autolayout dynamic height?
For 2021! See @Ely answer regarding `UICollectionLayoutListConfiguration` !!!! --- In a vertical `UICollectionView` , Is it possible to have , but, allow the to be controlled by ? This strikes m...
- Modified
- 3 Jun at 12:30
NullReferenceException in System.Web calling ServiceStack service with GetAsync from async ServiceStack service
I have a ServiceStack service that uses async from top to bottom. Below is a simplified example with all layers collapsed down to the Service Definition. ``` public async Task<ReadItemResponse> Get(...
- Modified
- 31 May at 14:25
How to create GridView Layout in Flutter
I am trying to layout a 4x4 grid of tiles in flutter. I managed to do it with columns and rows. But now I found the `GridView` component. Could anyone provide an example on how to do it using it? I c...
- Modified
- 24 Jan at 03:28
Asp.Net Core API disable startup complete message
As part of my application I have a .Net Core API project. Unlike most cases where this project would run as its own process, I have the API run in a thread, among others, in a single process. Also for...
- Modified
- 25 May at 14:7
Dependency injection in ASP.NET Core 2 throws exception
I receive following exception when I try to use custom DbContext in `Configure` method in `Startup.cs` file. I use ASP.NET Core in version 2.0.0-preview1-005977 > Unhandled Exception: System.Exceptio...
- Modified
- 21 Aug at 01:22
Optionally redirect all requests in ServiceStack
I have a requirement where one self-hosted instance X optionally handles a request by redirecting it to another self-hosted instance Y on a different machine. Instance X is authenticated against insta...
- Modified
- 25 May at 12:34
How do I Set Background image in Flutter?
I am trying to set a background image for the home page. I am getting the image place from start of the screen and filling the width but not the height. Am I missing something in my code? Are there im...
- Modified
- 19 Jun at 11:26
ASP.NET Core JWT Bearer Token Custom Validation
After a lot of reading, I have found a way to implement a custom JWT bearer token validator as below. `Starup.cs`: ``` public void Configure(IApplicationBuilder app, IHostingEnvironment env, ...
- Modified
- 24 Dec at 01:51
dotnet pack project references
I quite like separating functionality across a few assemblies, for example a facade to a data provider, contracts for the data provider and the data provider implementation itself... to my mind, it ma...
- Modified
- 26 May at 13:5
Copying From and To Clipboard loses image transparency
I've been trying to copy a transparent PNG image to clipboard and to paste it into a specific program that supports it. I tried many solutions already but the background always ended up gray in one ...
- Modified
- 27 Mar at 08:33
RestClientException: Could not extract response. no suitable HttpMessageConverter found
Using the curl command: ``` curl -u 591bf65f50057469f10b5fd9:0cf17f9b03d056ds0e11e48497e506a2 https://backend.tdk.com/api/devicetypes/59147fd79e93s12e61499ffe/messages ``` I am getting a JSON respo...
- Modified
- 22 Jan at 13:2
How to use 'refresh_token' in IdentityServer 4?
I'm using .net core with IdentityServer 4. I have a Web api, and an MVC app which accesses secure endpoints on the api. It's very similar in setup to the IdentityServer quickstart: [https://github.c...
- Modified
- 25 May at 07:47
Spark dataframe: collect () vs select ()
Calling `collect()` on an RDD will return the entire dataset to the driver which can cause out of memory and we should avoid that. Will `collect()` behave the same way if called on a dataframe? What ...
- Modified
- 1 May at 17:7
Operator '?' cannot be applied to operand of type 'T' (2)
I came across a weird behavior of C# compiler (VS 2015). In the code bellow, compiler is happy with Value2, but complains about Value1: Operator '?' cannot be applied to operand of type 'T' Why? ```...
- Modified
- 25 May at 11:29
Dependency Injection - How to resolve a dependency based on the value and not type?
I have one interface and two classes (implemented from that interface) in my application as below: ``` public interface ISMSServiceProvider { NotificationSentResponse Send(SMSMessage sms); } pub...
- Modified
- 25 May at 05:30
Home does not contain an export named Home
I was working with `create-react-app` and came across this issue where I get an error: > Home does not contain an export named Home. Here's how I set up my `App.js` file: ``` import React, { Component...
- Modified
- 10 Aug at 11:20