An error was raised by libgit Category =Ssh error: solved git for Visual Studio

Have you come across the error as shown in below image? You get the above shown error in Visual Studio while pulling changes from the git server. This error causes because you have local changes without the commit. In this scenario the visual Studio does not give very readable error message. Perhaps you may want…… Continue reading An error was raised by libgit Category =Ssh error: solved git for Visual Studio

Prototypical inheritance in JavaScript

Read full post on falafel blog Before we can understand prototypical inheritance, let us start with a problem statement. You have a student for whom you need to: Calculate their grade Print the grade In JavaScript this can be simply implemented as follows: There are some inherent problems in the above approach: Variables are defined…… Continue reading Prototypical inheritance in JavaScript

Check User exists in a Role in ASP.NET Identity 2.0

Read full post on Falafel blog ASP.NET MVC5 uses Identity 2.0 to manage the users and their roles. There may be scenario to check whether the currently logged in user or any user with the id exists in the given role or not, and checking can be done either in the controller class or in…… Continue reading Check User exists in a Role in ASP.NET Identity 2.0

Start-up code using WebActivator in MVC application

Read full post on Falafel blog WebActivator allows us to execute a code long before application start-up. There may be requirements when you need to load external assemblies or instantiate a particular object before the application start up. You need to make sure some codes execute before the codes inside the App_Start folder and the…… Continue reading Start-up code using WebActivator in MVC application