How to install Active Directory && Connect to AD using C#

  using System; using System.DirectoryServices.AccountManagement; namespace AD1 { class Program { static void Main(string[] args) { ActiveDirectory ac = new ActiveDirectory(); Console.WriteLine(“Login : ” + ac.Login(“[email protected]”, “x”)); Console.WriteLine(“Search For eramax : ” + ac.Search(“eramax”)); Console.WriteLine(“Search For [email protected] : ” + ac.SearchByEmail(“[email protected]”)); Console.WriteLine(“Print All Users in AD” ); ac.GetAllUsers(); Console.ReadLine(); } } public class ActiveDirectory { private static string […]

The Unstated React Service Pattern

This guide demonstrates a React Pattern for sharing global state, without requiring any of the following: 😒 Prop-Drilling 🔥 Redux 💲 MobX 🏀 Apollo Link State (The above emojis were auto-selected by Emoj) The Context API Recently I found myself at an Advanced React Training with Michael Jackson(no… not the King of Pop, the King of React Router 😉). We spent a good deal of the […]

You Might Not Need Redux

People often choose Redux before they need it. “What if our app doesn’t scale without it?” Later, developers frown at the indirection Redux introduced to their code. “Why do I have to touch three files to get a simple feature working?” Why indeed! People blame Redux, React, functional programming, immutability, and many other things for their woes, and I […]

LINQ for JavaScript library: mini-linq-js

mini-linq.js LINQ for JavaScript library, which allows to work with arrays in a more easy way and focus on business logic. Installation bower install mini-linq-js –save npm install mini-linq-js –save Usage Just link mini-linq.js or mini-linq.min.js in your html. <script type=“text/javascript“ src=“mini-linq.min.js“></script> You can also attach and use mini-linq with knockout observableArray. Just link mini-linq.knockout.js. Also you may use postponed lazy-execution for arrays by linking mini-linq.lazy.js. You also may […]

ASP.NET MVC 5: Using a Simple Repository Pattern for Performing Database Operations

Abstract: The Repository pattern decouples your ASP.NET MVC application and shields it from changes by creating a boundary between your data access code and the other parts of your application. Recently a client of mine asked for a solution to isolate the direct dependency of the Data Access Layer with the rest of the layers of the application. In […]