by admin | Mar 13, 2017 | Administration
[:en]Scenario 2x WAN, both having a static public IP (called WAN_p1 and WAN_p3 in this example) 1x LAN You want to use WAN_p1 by default and the backup connection only if the main one fails. In both cases, the current IP should be updated to an external DDNS service,...
by admin | Mar 8, 2017 | ASP.Net
[:en]Using Microsoft.AspNetCore.Identity, you might miss a method like GetUserId() which was available for previous .NET frameworks by default. As a workaround, use this extension method: using System.Security.Claims; namespace myproject.Common { public static class...
by admin | Mar 2, 2017 | Administration, Entertainment, Home Automation, Linux
[:en]Amazon’s Echo Dot is a great way to control your smart home via voice. If you are already using a visualization tool like OpenHAB for your smart home, it’s quite easy to get it running. Because every smart home installation is configured very...
by admin | Feb 21, 2017 | HTML, JavaScript
[:en]If you use jQuery to fetch the current value of a field like var myvar = $(‘#myfield’).val(); you might encounter issues, even if this syntax is correct. E.g. if a number is entered, it works. If a special char is entered, you might get an empty...
by admin | Feb 11, 2017 | ASP.Net
[:en]ASP.NET offers a good way to keep your code clean of redundant data, e.g. Bootstrap classes you would have to assign to every visible HTML element again and again. As a .NET Core MVC sample for single elements, you would write code like @Html.TextBoxFor(m =>...