UnsatisfiedDependencyException: Error creating bean with name

For several days I'm trying to create Spring CRUD application. I'm confused. I can't solve this errors. > org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with na...

4 Mar at 12:9

ServiceStack communications with Windows Service

I have an multi layered application that I have developed. I communicate with the windows service using http with ServiceStack (AppHostHttpListenerBase). While this works fine in clean environments,...

6 Jan at 17:30

Custom deserializer only for some fields with json.NET

I'm trying to deserialize some JSON: ``` { "a":1, "b":25, "c":"1-7", "obj1":{ "a1":10, "b1":45, "c1":60 }, "obj2":[ { "a2":100, "b2":15...

29 Jul at 06:41

Edit XML on Server via Service

Currently, I have a web based C# application (ServiceStack) that has an XML file it relies on to generate things client side. I no longer want to store this file on the client side. I need a way to us...

6 Jan at 16:38

Mapping static file directories in ServiceStack

I'm building a self-host application in C# using Service Stack. I'd like the application to share content based on some configuration data. During I'd like to read-in a configuration file and recurs...

6 Jan at 16:28

Memory Cache in dotnet core

I am trying to write a class to handle Memory cache in a .net core class library. If I use not the core then I could write ``` using System.Runtime.Caching; using System.Collections.Concurrent; nam...

10 Dec at 14:36

Variant and open generics IReadOnlyList

I'm trying to understand why a specific behavior regarding variant and generics in c# does not compile. ``` class Matrix<TLine> where TLine : ILine { TLine[] _lines; IReadOnlyList<ILine> Lin...

6 Jan at 10:41

Serialize List<KeyValuePair<string, string>> as JSON

I'm very new with JSON, please help! I am trying to serialise a `List<KeyValuePair<string, string>>` as JSON Currently: ``` [{"Key":"MyKey 1","Value":"MyValue 1"},{"Key":"MyKey 2","Value":"MyValue ...

23 May at 10:31

'Access-Control-Allow-Origin' issue when API call made from React (Isomorphic app)

I'm running into an issue with my isomorphic JavaScript app using React and Express. I am trying to make an HTTP request with axios.get when my component mounts ``` componentDidMount() { const u...

26 May at 20:6

How to reference a WSDL file using Visual Studio Code?

[generating a proxy to WSDL](https://stackoverflow.com/questions/4304281/create-web-service-proxy-in-visual-studio-from-a-wsdl-file)[creating a reference in VS Code](https://stackoverflow.com/question...

What is causing Azure Event Hubs ReceiverDisconnectedException/LeaseLostException?

I'm receiving events from an EventHub using EventProcessorHost and an IEventProcessor class (call it: MyEventProcessor). I scale this out to two servers by running my EPH on both servers, and having ...

Use custom build output folder when using create-react-app

Facebook provides a `create-react-app` [command](https://github.com/facebookincubator/create-react-app) to build react apps. When we run `npm run build`, we see output in `/build` folder. > npm run ...

5 Jan at 22:13

How to enumerate a hashtable for foreach in c#

I'm trying to enumerate a hashtable which is defined as: ``` private Hashtable keyPairs = new Hashtable(); foreach(SectionPair s in keyPairs) { if(s.Section == incomingSectionNameVariable) { ...

5 Jan at 21:45

ServiceStack Redis erros: "Unexpected reply: *", "Protocol error: expected '$', got 'C'", lost connection and etc

Do I get lots of errors when working with radishes. It`s my config: ``` container.Register<IRedisClientsManager>(c => new PooledRedisClientManager("localhost:6379")); container.Register(c => c.Resol...

7 Jan at 09:13

Pandas dataframe groupby plot

I have a dataframe which is structured as: ``` Date ticker adj_close 0 2016-11-21 AAPL 111.730 1 2016-11-22 AAPL 111.800 2 2016-11-23 AAPL 111.230 3 2016...

Web Api How to add a Header parameter for all API in Swagger

I searched for possible ways to add a request header parameter that would be added automatically to every method in my `web-api` but i couldn't find a clear one. While searching i found that the met...

How to get ODATA to serialize NotMapped property

I have a WebAPI backend that provides inventory information, etc. to various clients, using ODATA v3 (I cannot use v4 due to a restriction in a component that we use). The inventory database is quite...

What does 'index 0 is out of bounds for axis 0 with size 0' mean?

I am new to both python and numpy. I ran a code that I wrote and I am getting this message: 'index 0 is out of bounds for axis 0 with size 0' Without the context, I just want to figure out what this m...

How can I delete the current Git branch?

I have a branch called `Test_Branch`. When I try to delete it using the recommend method, I get the following error: > Cannot delete branch 'Test_Branch' checked out at '[directory location]'. I get n...

21 Feb at 19:7

Detect swipe gesture direction

That is my code to try and simulate a swipe gesture so when I build to mobile I know it will work. Nothing is being logged and I am confused on why it seems to not work. I want it to print out in the ...

5 Jan at 22:48

.NET Core Web api call ERR_CONNECTION_RESET only on IIS - other calls working

I'm now at a complete loss... I have a .NET Core web app, and running locally everything is working. There's a number of WebAPI end points, again all working as intended with `GET` and returning JSON...

How to disable button in React.js

I have this component: ``` import React from 'react'; export default class AddItem extends React.Component { add() { this.props.onButtonClick(this.input.value); this.input.value = ''; } r...

5 Jan at 15:27

WebAPi - unify error messages format from ApiController and OAuthAuthorizationServerProvider

In my WebAPI project I'm using `Owin.Security.OAuth` to add JWT authentication. Inside `GrantResourceOwnerCredentials` of my OAuthProvider I'm setting errors using below line: ``` context.SetError("i...

How to add custom error message with “required” htmlattribute to mvc 5 razor view text input editor

I am naive to Asp.Net MVC. I have a partial view(ASP.Net MVC) in which I have some required fields I want to show custom error message if any of the required field in not provided. Below is the compl...

6 Jan at 07:26

Java 8 optional: ifPresent return object orElseThrow exception

I'm trying to make something like this: ``` private String getStringIfObjectIsPresent(Optional<Object> object){ object.ifPresent(() ->{ String result = "result"; //som...

5 Jan at 12:57