JWT web token encryption - SecurityAlgoritms.HmacSha256 vs SecurityAlgoritms.HmacSha256Signature
For token based authentication `Microsoft.IdentityModel.Tokens` provides a list of security algorithms that can be used to create `SigningCredentials`: ``` string secretKey = "MySuperSecretKey"; by...
- Modified
- 17 Mar at 19:25
Unable to start postgresql.service?
I'm using arch linux (4.8.13-1-ARCH). I'm trying to set up PostgreSQL as instructed [here](https://wiki.archlinux.org/index.php/PostgreSQL). After performing ``` [postgres@BitBox ~]$ initdb --locale...
- Modified
- 8 Feb at 22:44
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 ...
- Modified
- 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...
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...
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'...
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...
- Modified
- 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) ...
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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 25 Jan at 12:25
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...
- Modified
- 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...
- Modified
- 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...
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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 23 May at 12:9
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=...
- Modified
- 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...
- Modified
- 27 Apr at 08:57
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...
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...
- Modified
- 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...
- Modified
- 8 Feb at 15:4
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?
- Modified
- 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.
- Modified
- 27 Aug at 08:20