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 =>...
by admin | Feb 8, 2017 | Administration, Linux
[:en]If you have, for whatever reason, destroyed your local /etc/apt/sources.list file which Ubuntu uses for packages updates, here is a useful site which can regenerate it: https://repogen.simplylinux.ch/ My recommendation is to enter country release (get it with...
by admin | Feb 6, 2017 | Administration, Entertainment
[:en]OpenELEC/LibreELEC with Kodi offers various ways for remote management. SSH (command line) Samba / CIFS Web interface Important files \\[ip]\Userdata\advancedsettings.xml Use it e.g. for centralized settings, like a central DB or substitute paths...
by admin | Feb 6, 2017 | C# .Net
[:en]Be careful with the usage of Bower in those VS versions in ASP.NET Core MVC web applications. It is a useful tool, but seems not to be fully reliable at the moment. Examples: Bootstrap v3.3.7 suddenly asks for tether (tether.io). When you look at the Bootstrap JS...
by admin | Jan 30, 2017 | Administration
[:en]Raspberry Pi combined with Raspbian Jessie Lite is often useful for networking tools (bridges, VPNs, GPIO, …) where you do not need local user input or output devices. Unfortunately, SSH is not enabled by default so you cannot access the RPi via Putty...
by admin | Jan 20, 2017 | Administration
[:en]Before Windows 10, I was using a simple batch script on my main domain controller which used w32tm (w32time service) to get the correct time from an external source. The clients in the domain got the time from the domain controllers without having set anything...