Category Archives: Uncategorized

Zero carbon emission for one month

  My ride to office (and back home) captured in a phone camera. No parking fees, fines, fuel costs and 15 minutes exercise on the way to office. Advertisements

Posted in Uncategorized | Leave a comment

Access .NET MVC model property in javascript

This looks to me very useful as it converts and entire server object in to a javascript accessible object. var yourComplexObject = @Html.Raw(Json.Encode(Model.YourComplexObject)); Add this inside <script> tags when loading the view.

Posted in Uncategorized | Leave a comment

Display a user’s Full Name instead of User.Identity.Name – .NET MVC with AD

A simple article on how to get first Name and last name from Active Directory, Click here to view the article One thing is missing in this tutorial is to add the assembly to Web Config file. You have to … Continue reading

Posted in Uncategorized | Leave a comment

Call Java Class static methods from javascript.

This may be a useful tip if you want to call a Java class static methods from javascript. The syntax is , Packages.<package>.<class>.<method> Make sure jar files loaded and if there are any variables, pass it as javascript array. var … Continue reading

Posted in Uncategorized | Leave a comment

Wireless and Powerline adapter speed.

Yes, its noticeable. Compare the results below. WiFi With Tp-link powerline adapter If you have a NAS at home, and dont have an ethernet connection use powerline adapter. In my case 1 GB file was transferred with 2 min and … Continue reading

Posted in Uncategorized | Leave a comment

Integrate LDAP to ASP.NET Web Application

With VS 2017 its very simple, follow the steps. Create ASP.NET web app Select authentication with “Individual User Accounts” Change AccountController as below, [AllowAnonymous] [HttpGet] public ActionResult Login() { return View(); } [AllowAnonymous] [HttpPost] [ValidateAntiForgeryToken] public async Task<ActionResult> Login(LoginViewModel model, … Continue reading

Posted in Uncategorized | Leave a comment

Mirroring a Git repository

Cloning a repository locally and changing git remote didn’t work for me. Here is a clean way to achieve the same. git clone –bare https://bitbucket……/your-repo.git cd your-repo.git git push –mirror https://bitbucket……/mirror-repo.git cd ../ rm -rf  your-repo.git  

Posted in Uncategorized | Leave a comment