Questions

Using repository pattern when using async / await methods ASP .NET MVC EF

Can you explane me how to implement repository patterns when using async / await methods, here is example without async: Model: Interface: Repository: Controller: How can I do this with async / await ...

Have the ServiceStack v3 libraries been removed from Nuget?

Does anyone know how I can get the V3 version of `ServiceStack.Client` off Nuget? This wiki page appears to suggest that they should be there: [https://github.com/ServiceStackV3/ServiceStackV3](https:...

9 Jun at 10:45

How to get clientId and clientsecret for Azure (ARM) deployment template

I want to automate my Azure resource management, and I'm using the ARM templates to do so. If I want to connect to Azure from my C# code (the DeploymentHelper.cs that is generated when downloading a...

Redis info doesn't update after client was previously disposed

I am using `ServiceStack.Redis` version `4.0.56` to read and display Redis server information as shown in the class below: ``` using ServiceStack.Redis class Test { private IRedisClientManager c...

9 Jun at 10:43

What are passive event listeners?

While working around to boost performance for progressive web apps, I came across a new feature `Passive Event Listeners` and I find it hard to understand the concept. What are `Passive Event Listene...

Usage of $broadcast(), $emit() And $on() in AngularJS

I understand that `$Broadcast()`, `$Emit()` And `$On()` are used to raise an event in one controller and handling in another controller. If possible, can someone just give me some real time example o...

23 Feb at 23:3

How to enable server side SSL for gRPC?

New to gRPC and couldn't really find any example on how to enable SSL on the server side. I generated a key pair using openssl but it complains that the private key is invalid. ``` D0608 16:18:31.39...

10 Jun at 05:33

CefSharp - Get Value of HTML Element

How can I get the value of an HTML element with CefSharp? I know how to do with this default WebBrowser Control: But I didn't find anything similar for CefSharp. The main reason I am using CefSharp is...

6 May at 10:42

matplotlib 3d axes ticks, labels, and LaTeX

I am running [this](http://matplotlib.org/examples/mplot3d/lines3d_demo.html) sample script, with the following modifications: ``` import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D imp...

30 Nov at 04:28

ServiceStack.Text with Xamarin Forms

Trying to install ServiceStack.Client and VS complains about ServiceStack.Text with the following message > Could not install package 'ServiceStack.Text 4.0.56'. You are trying to install this pack...

8 Jun at 18:20

Bearer Token Authentication in ASP.NET Core

Trying to use bearer token based authentification in simple .Net Core Web API project. Here is my `Startup.cs` ``` app.UseMvc(); //--- const string secretKey = "mysupersecret_secretkey!123"; Symmetri...

8 Jun at 16:40

How to register all implementations of Generic interface in autofac?

I have created generic interface that suppose to map entities to view models and backwards. I have to make around 80 registrations in autofac configuration. Is it possible to register them as batch? H...

8 Jun at 19:38

Is it possible to use visual studio performance profiling with service fabric?

Hopefully this is simple... I want to performance profile my service fabric cluster. So far I: - Go to Start Diagnostics tools without debugging. - Go through the wizard selecting my service fabri...

Automatically add all files from folder as embedded resource

1. We wrote small app in C#. It is "installer" that copy files - embedded resources - to some location. 2. We created one batch file which copies latest versions of these files and build the solution...

8 Jun at 11:35

Getting Windows OS version programmatically

I am trying to fetch Windows version with C# on my Windows 10 machine. I always get those values (with C#\C++): > Major: 6 Minor: 2 Which is Windows 8 OS, [accordingly to MSDN](https://msdn.microso...

Iterating over Typescript Map

I'm trying to iterate over a typescript map but I keep getting errors and I could not find any solution yet for such a trivial problem. My code is: ``` myMap : Map<string, boolean>; for(let key of m...

18 Jan at 01:29

"Are you missing a using directive or an assembly reference" in visual studio 2013

Good Day everyone. I'm developing a Cross Platform Application in Xamarin.Forms when I encounter this error "Are you missing a using directive or an assembly reference". My project is working fine bef...

NEST Conditional filter query with multiple terms

I would like to do a ElasticSearch query like this: ``` { "query" : { "bool" : { "filter" : [ { "terms" : {...

8 Jun at 09:0

how to merge two data frames based on particular column in pandas python?

I have to merge two dataframes: df1 ``` company,standard tata,A1 cts,A2 dell,A3 ``` df2 ``` company,return tata,71 dell,78 cts,27 hcl,23 ``` I have to unify both dataframes to one dataframe. I ...

30 Jun at 13:7

ServiceStack Indie License Validity For LifeTime or for 1 Year?

I bought indie license and do not know if it will be end completely after 1 year or only support and updates will be end and I can use for it lifetime?

8 Jun at 07:18

Connecting to Postgresql in a docker container from outside

I have Postgresql on a server in a docker container. How can I connect to it from the outside, that is, from my local computer? What setting should I apply to allow that?

8 Jun at 06:39

The type or namespace name 'Linq' does not exist in the namespace 'System'

When I want to use button to write code in C# it doesn't go to the ".cs" file to write C# code. When I check the project source, I found this error: ``` using System; using System.Collections.Generic;...

"StandardOut has not been redirected or the process hasn't started yet" when reading console command output in C#

Thanks to @user2526830 for the code. Based on that code I added few lines to my program since I want to read the output of the SSH command. Below is my code which gives an error at line `while` > St...

8 Jun at 06:38

How to return a specific status code and no contents from Controller?

I want the example controller below to return a status code 418 with no contents. Setting the status code is easy enough but then it seems like there is something that needs to be done to signal the e...

Creating an Array from a Range in VBA

I'm having a seemingly basic problem but can't find any resources addressing it. Simply put, I just want to load the contents of a Range of cells (all one column) into an Array. I am able to accompl...

7 Jun at 21:40