Hello,I am writing this article to show you how to create and assign user role. Create a new asp.net web application project with MVC template along with individual authentication. You have noticed that AspNetRoles, AspNetUsers etc tables are already available in our project . So, we can make use of these tables to fulfill our need . Find and open the Startup.cs file from the solution explorer .You can add here function to create...
I've recently been trying to contribute to the developer community, in more ways than I previously have. One of the areas I decided to delve into, is spending more time on tech forums and resources like StackOverflow. Well not for asking questions or checking for answers, but more for answering as many questions as I possibly can. The aim is to provide answers primarily to questions budding developers are asking. so Let's hope I do a lot of that as time goes on. Hey, I might...
Debian 8 (Jessie) doesn't contain RoundCube in it's repositories. Why, I don't know :) .
In ISPConfig3, Perfect Server, Debian 8, you get SquirrelMail, but I don't like how it looks.
With some trouble setting it up, I managed to configure RoundCube on Debian 8 and make it wokring with ISPConfig3. Used many sources to make it work and decided to create this manual that you’re reading.I presume that you have configured your server with Perfect Server Debian 8 (Apache, BIND, Dovecot, ISPConfig 3) configuraton...
How to initiate git through sshlogin using shh~~~git
$ ssh [email protected]
~~~creating a folder
$ mkdir folder_name
~~~changing to that newly created folder~~~git
$ cd folder_name
~~~initiating as a master branch~~~git
$ git init --bare
~~~changing the windows pack~~~git
$ git config pack.window 0
~~~##step 5 : clone to local machine usingcloning the newly created folder to local~~~git
$ git clone [email protected]
~~~adding the all files which are created
This article will show how to calculate the distance beween two addresses using Google Maps API. Blog.I was looking to an easy way to calculate the distance between two addresses using SQL and Google Maps Distance Matrix API and I found this post from stackoverflow very useful.Here is how I use the Google Maps Distance Matrix API:CREATE PROCEDURE [dbo].[CalculateDistance] (
@ToAddress NVARCHAR(100) = '',
@FromAddress NVARCHAR(100) = '',
@DistanceistanceInKm FLOAT OUTPUT )
A progress resource is usually a temporary resource that is created automatically by the server to provide status on some long running process that has been initiated by a client. It is used to provide feedback to an end user and point to the results of an operation once it has completed.HTTP is a client/server request and response protocol. It does not provide for server initiated communications. If a client makes a request to a server that is likely to take a long time, e.g. 5 seconds or longer,...
A factory resource is one that is used to create other resources.Sometimes it is difficult to create a complete resource representation on the client without some involvement from the server. It may be that the server is responsible for creating a unique identifier for the new resource, so a PUT request is not possible. Or other attributes of the resource may be dependent on existing server state. For example, creating a order resource where the order quantity may be adjusted based on in-stock quantity.
A resource designed to accept a request body containing complex query parameters and redirect to a new location to enable the results of complex and expensive queries to be cached.There are practical limitations to the length of a URL on the Web. In order to send complex queries it is sometimes necessary to use a POST method and use the request body to describe the query parameters. However, a POST method cannot return a cached response. If the complex queries take a non-trivial amount of time...
This type of resource is used to provide a client with the information it needs to be able to access other resources. This removes the need for a client to hardcode resource URLs which include information such as the protocol scheme, host, path and query string.The primary problem addressed by a discovery resource is allowing API developers to change various elements of their API without having to notify client developers of the change and potentially force those customers to redeploy their application.
As a freelance software developer I get thrown into many different kinds of projects. They include a variety of different technologies (although I favour the Microsoft stack) and they are on a wide spectrum of “project approachability”. But that I mean they vary widely in terms of how well maintained they are, how well the code is written (which is another completely different discussion for another time), how well it is documented and how easily you can jump in as an outsider and start contributing.