Bootstrap align navbar items to the right
How do I align a navbar item to right? I want to have the login and register to the right. But everything I try does not seem to work. [](https://i.stack.imgur.com/G2o6H.png) ## This is what I hav...
- Modified
- 14 Jul at 18:58
Get the full route to current action
I have a simple API with basic routing. It was setup using the default Visual Studio 2015 ASP.NET Core API template. I have this controller and action: ``` [Route("api/[controller]")] public class D...
- Modified
- 17 Mar at 10:35
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...
- Modified
- 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,...
- Modified
- 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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 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...
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 ...
- Modified
- 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...
- Modified
- 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...
- Modified
- 23 May at 11:52
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 ...
- Modified
- 28 Mar at 06:54
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 ...
- Modified
- 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) { ...
- Modified
- 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...
- Modified
- 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...
- Modified
- 24 Jun at 06:15
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...
- Modified
- 5 Jan at 19:28
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...
- Modified
- 9 Jan at 03:45
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...
- Modified
- 8 Feb at 22:17
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...
- Modified
- 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 ...
.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...
- Modified
- 5 Jan at 16:13
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...
- Modified
- 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...
- Modified
- 23 May at 12:26