ServiceStack: how to use distributed RedisEvents?
There is very little documentation (that I found) on how the distributed RedisEvents work in ServiceStack. > One limitation the default MemoryServerEvents implementation has is being limited for us...
- Modified
- 10 Mar at 07:35
Authentication plugin 'caching_sha2_password' cannot be loaded
I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error: > Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_passw...
- Modified
- 4 Oct at 08:17
EF Core Backing fields - expose property as another type?
Assume I have an EF entity class Person, with a PhoneNumber on it. PhoneNumber is stored as a string type, but I want all accesses on the Person to go through Phone which has some nice accessor funct...
- Modified
- 16 May at 15:47
Is it possible for String.split() to return tuple?
I have `string` which I need to `split()` and assign it's value into two variables. Is it possible for `split()` to return `tuple` instead of `string[]` so I can do something like: ``` String myStrin...
- Modified
- 9 Mar at 09:53
UWP: how to start an exe file that is located in specific directory?
I am trying to start an exe that is located in C:/Program Files (x86)/App from UWP app. How can I do this. I can start exe file by using Windows Desktop extension for UWP, add Hide Copy Code ``` ...
- Modified
- 9 Mar at 08:18
How to show all columns' names on a large pandas dataframe?
I have a dataframe that consist of hundreds of columns, and I need to see all column names. What I did: ``` In[37]: data_all2.columns ``` The output is: ``` Out[37]: Index(['customer_id', 'incomi...
Why can't a C# structure return a reference to its member field?
``` struct Foo { int i; public ref int I => ref i; } ``` This code raises compile error CS8170, but if `Foo` is a class, it doesn't. Why can a structure not return a member as a reference?
- Modified
- 9 Mar at 18:14
ServiceStack alike request logger for WebForms
Is there a simple way of implementing something like this but in the old Web Forms app in order to track ALL incomming requests with all parameters as well. ``` Plugins.Add(new RequestLogsFeature ...
- Modified
- 9 Mar at 01:21
Preset files are not allowed to export objects
I have a carousel file in which I want to get `index.js` and build `block.build.js`, so my `webpack.config.js` is: ``` var config = { entry: './index.js', output: { path: __dirname, filen...
Customizing response serialization in ASP.NET Core MVC
Is it possible to customize the way types are serialized to the response in ASP.NET Core MVC? In my particular use case I've got a struct, `AccountId`, that simply wraps around a `Guid`: ``` public ...
- Modified
- 8 Mar at 22:49
UWP FolderPicker.PickSingleFolderAsync fails with COMException / E_FAIL
In my UWP app I have the following code: ``` private async void testButton_Click(object sender, RoutedEventArgs e) { var picker = new Windows.Storage.Pickers.FolderPicker(); StorageFolder folder ...
Flutter does not find android sdk
I just tried intalling flutter and since I already had android studio and the android sdk installed I just followed the installation of flutter. Here is my problem: When I run ``` flutter doctor ``` ...
- Modified
- 29 Jun at 03:52
Generate .dto.ts on build
As a part of a development process, we update .dto.ts often. But it turns out that sometimes api is changed and developer forgot to update .dto.ts before submitting pull request. Is it possible to upd...
- Modified
- 8 Mar at 11:33
The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a .NET SDK that supports .NET Core 2.1
have tried upgrading to the professional version of visual studio 2017 v 15.6.0 (Preview 7.0) and installed aspnetcore-runtime-2.1.0-preview1-final-win-x64 and .net core SDK 2.1.4. When I created a ...
How to mock UserManager in .Net Core testing?
I have following code. Im trying to running a test case for create user.Following is what i have tried so far. ``` public class CreateUserCommandHandlerTest { private Mock<UserManager<Applicatio...
- Modified
- 8 Mar at 14:15
Multiple versions of .NET on the same server
So I've always known it's okay to run multiple versions of the .NET framework on a single computer (client or server alike). [This question](https://stackoverflow.com/questions/407306/running-many-ver...
- Modified
- 8 Mar at 02:53
React : difference between <Route exact path="/" /> and <Route path="/" />
Can someone explain the difference between ``` <Route exact path="/" component={Home} /> ``` and ``` <Route path="/" component={Home} /> ``` I don't know the meaning of `exact`.
- Modified
- 9 Nov at 08:16
Function host is not running
I have a Function App in azure and when I hit the URL of the function app it says "Function host is not running." I am not sure where I have to check and what needs to be changed. I tried restart but ...
- Modified
- 7 Mar at 23:10
Set value of one Pandas column based on value in another column
I need to set the value of one column based on the value of another in a Pandas dataframe. This is the logic: ``` if df['c1'] == 'Value': df['c2'] = 10 else: df['c2'] = df['c3'] ``` I am unab...
- Modified
- 5 Dec at 17:33
Change C# language version to 7.2 in vs-code on Linux
I read that `.NET Core 2.0` SDK support `C# 7.2` by default but the features of `C# 7.1` and `7.2` are disabled and we have to enable them. I install both SDK and C# extension for vs-code, but when I ...
- Modified
- 7 Mar at 18:58
Connect to Oracle database in dotnet mvc application
Oracle released a beta version [driver ODP for dotnet core 2](http://www.oracle.com/technetwork/topics/dotnet/downloads/odpnetcorebeta-4077982.html)(Finally!). But I can't make it work. Does anybody d...
did you register the component correctly? For recursive components, make sure to provide the "name" option
I configured `'i-tab-pane': Tabpane` but report error,the code is bellow: ``` <template> <div class="page-common"> <i-tabs> <i-tab-pane label="wx"> content </i-tab-pane> ...
- Modified
- 3 Oct at 01:18
Setting column order for CSVHelper
I am using CSVMapper to output the objects within a dictionary: ``` using (TextWriter writer = new StreamWriter($"somefile.csv")) { var csvDP = new CsvWriter(writer); ...
Client certificate not getting added to the request (Certificate Verify)
I'm trying to do a simple `GET` request to an external production server with a client certificate. They have added our certificate to their server, and I have successfully made requests through Postm...
- Modified
- 8 Mar at 13:55
GenerateEmailConfirmationTokenAsync default expiration timespan
What is default expiration timespan of GenerateEmailConfirmationTokenAsync? and what kind of errors should I get from ConfirmEmailAsync? For ConfirmEmailAsync got Invalid token error. is there any ot...
- Modified
- 7 Mar at 11:44