Clear git local cache

I have a Webstorm project that I was about to commit, but before pressing the commit button in the Git Windows GUI, I remembered that I don't want to commit my `.idea` folder content. So I used the ...

25 Jan at 23:35

ValueError: time data does not match format '%Y-%m-%d %H:%M:%S.%f'

I am facing one little problem. I am storing some date time data and the data is ``` # "datetime","numb","temperature" "1998-04-18 16:48:36.76",0,38 "1998-04-18 16:48:36.8",1,42 "1998-04-18 16:48:36...

25 Jan at 23:31

Python Pandas - Missing required dependencies ['numpy'] 1

Since yesterday I've had this error when I try to import packages on anaconda : `ImportError: Missing required dependencies ['numpy']` I have tried un-installing Anaconda and Python, switching to Py...

29 Feb at 12:23

ufunc 'add' did not contain loop with signature matching type dtype ('S32') ('S32') ('S32')

I'm trying to run someone's script for some simulations I've made to try plotting some histograms, but when I do I always get the error message mentioned above. I have no idea what's gone wrong. Here'...

7 Feb at 23:15

How do you get errors in the ModelState, for a particular property?

I'm encountering the following issue: [https://github.com/aspnet/Mvc/issues/4989](https://github.com/aspnet/Mvc/issues/4989), and based on 'rsheptolut' comment on Sep 12, 2016, he found this workaroun...

25 Jan at 18:43

loop through chrome tabs and close page depending on web address

I would like to be able to loop through all the tabs on a chrome page and close any tabs which are youtube pages. I have done some googling & found the code below. There are two (well probably more) ...

26 Jan at 15:43

How to check if session value is null or session key does not exist in asp.net mvc - 5

I have one ASP.Net MVC - 5 application and I want to check if the session value is null before accessing it. But I am not able to do so. ``` //Set System.Web.HttpContext.Current.Session["TenantSessio...

25 Jan at 15:32

ServiceStack ApiKeyAuthProvider fires 6 select statements on every request

I have a web service that's configured to use the `ApiKeyAuthProvider` like so: ``` container.Register<ICacheClient>(new MemoryCacheClient()); container.Register<IAuthRepository>(c => new OrmLiteAut...

25 Jan at 14:49

Remove all items from a FormArray in Angular

I have a form array inside a FormBuilder and I am dynamically changing forms, i.e. on click load data from application 1 etc. The issue I am having is that all the data loads in but the data in the Fo...

6 Jan at 19:30

Culture is suddenly not supported anymore on Azure web app

Out of the blue our Azure web app is spewing out errors regarding a Culture that is not supported. We load up a list of countries to show on the front page but this is suddenly giving errors. The same...

how to update spyder on anaconda

I have Anaconda installed (Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] on win32) and I am using Spyder 2.3.8 Would like to update Spyder to...

27 Nov at 22:41

Websockets using OWIN

All the examples using Microsoft WebSockets over a web-api that I've seen so far use IIS, the implementation is on the get method the HTTP connection is upgraded to a websocket and an instance of webs...

27 Jan at 07:52

Remove outlook meeting request

I'm creating an application in C#. In this i can create a meeting request that is sent to the user through code and appears in Outlook mail. The below code is what I am using to send the meeting invi...

22 Jun at 23:20

Download an image using Axios and convert it to base64

I need to download a .jpg image from a remote server and convert it into a base64 format. I'm using axios as my HTTP client. I've tried issuing a git request to the server and checking the `response.d...

25 Jan at 08:29

Get value from ModelState with key name

I am adding some error messages to my `ModelState` from controller so that I can display it in my view. My Code is like this ``` ModelState.AddModelError(key: "MyError", errorMessage: "This phone num...

25 Jan at 07:10

.NET Core UseCors() does not add headers

This would be a duplicate of [How does Access-Control-Allow-Origin header work?](https://stackoverflow.com/questions/10636611/how-does-access-control-allow-origin-header-work), but the method there al...

How to render HTML in string with Javascript?

I have the following javascript code: ``` var html = '<div class="col-lg-4 col-references" idreference="'+response+'"><span class="optionsRefer"><i class="glyphicon glyphicon-remove delRefer" style=...

25 Jan at 04:55

Inline variable declaration not compiling

I've been getting a message in Visual Studio 2017, specifically, `IDE0018 Variable declaration can be inlined.` So I try using an inline variable declaration the way it's mentioned in the visual stud...

How is it that can I execute method on int? set to null without NullReferenceException?

I have read on MSDN that: > The null keyword is a literal that represents a null reference, one that does not refer to any object. But I've seen the following code running without throwing any exc...

24 Jan at 20:5

Service Stack plugins not killing application after failure

It seems as though service stack is swallowing exceptions thrown by custom plugins. The only way I can determine that a plugin has failed is with exception breaker. Is there a way to throw an excepti...

24 Jan at 18:32

Only one usage of each socket address (protocol/network address/port) is normally permitted?

I've been looking for a serious solution on google and I only get "Registry solutions" kind of stuff which I don't think even relate to my problem. For some reason I get this Error, while I'm only sta...

Can the template/CSS of the Swagger plugin for ServiceStack be customized?

When using the Swagger plugin for ServiceStack, is it possible to customize the HTML/CSS template for the Swagger UI page?

24 Jan at 16:37

Hangfire dependency injection with .NET Core

How can I use .NET Core's default dependency injection in Hangfire? I am new to Hangfire and searching for an example which works with ASP.NET Core.

27 Aug at 08:20

Checkbox not visible on nodes of TreeView control when deployed in IIS

I am facing issue with regards to the `TreeView` control. I have checkbox enabled for nodes of `TreeView` control. It is working fine and showing properly. But when I deploy same to IIS, checkbox is n...

10 Mar at 22:45

how to apply mask to CompositionBrush

``` <Grid> <Image x:Name="BackgroundImage" Source="/Assets/background.png" /> <Rectangle x:Name="ClippingRect" Margin="50" Fill="#30f0" /> </Grid> ``` How do I apply alpha mask, or clipping ...

14 Feb at 14:44