ASUS H270M-PLUS Motherboard requires specific network driver for Windows 10.

Windows 10 does not find network driver for ASUS H270M-PLUS motherboard automatically and the driver supplied with the motherboard does not install showing the message “The Realtech network controller was not found. If deep sleep mode is enabled please plug the cable”. But there is some specific Intel(R) Ethernet Connection (2) I219-V driver that works fine:

It is no more possible to mine Ethereum using 3GB graphic card

I mistakenly believed that 3GB of video memory is enough for mining, while EthDcrMiner64.exe does not work with 3GB and reports the following errors:

Setting DAG epoch #180 for GPU0
Create GPU buffer for GPU0
ETH: 04/08/18-06:19:23 – New job from
ETH – Total Speed: 0.000 Mh/s, Total Shares: 0, Rejected: 0, Time: 00:00
ETH: GPU0 0.000 Mh/s
CUDA error – cannot allocate big buffer for DAG. Check readme.txt for possible solutions.
ETH: 04/08/18-06:19:25 – New job from
ETH – Total Speed: 0.000 Mh/s, Total Shares: 0, Rejected: 0, Time: 00:00
ETH: GPU0 0.000 Mh/s
Setting DAG epoch #180 for GPU0
GPU 0, CUDA error 11 – cannot write buffer for DAG


Setting up Hyper-V Virtual Machine With Internet Connection

To set up my virtual machines with the internet connection I followed the steps described in Configure Hyper V Virtual Machine With Internet Connection article:

First I created the virtual switch by going to Hyper-V Manager->Virtual Switch Manager:


How to run WIX bootstrapper application UI with elevated privileges?

WIX bootstrapper application (BA) can easily determine if it runs as admin with the following code:

using System;
using System.Diagnostics;
using System.Security.Principal;

static bool IsAdmin()
    WindowsIdentity id = WindowsIdentity.GetCurrent();
    WindowsPrincipal principal = new WindowsPrincipal(id);
    return principal.IsInRole(WindowsBuiltInRole.Administrator);

and if it does not, run a new instance as admin and exit:

static void RunAsAdmin()
    ProcessStartInfo proc = new ProcessStartInfo
        UseShellExecute = true,
        WorkingDirectory = Environment.CurrentDirectory,
        FileName = Process.GetCurrentProcess().MainModule.FileName,
        Verb = "runas"



How to check .NET Framework version with WIX installer

WIX has NetFxExtension with NetFx4XXXX packages, so .NET Framework 4.6, for example, can be installed with the single line of code:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="" xmlns:bal="" xmlns:netfx="">
    <Bundle Name="My App">
        <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
            <Payload SourceFile="$(var.MySetupUI.TargetPath)"/>
            <Payload SourceFile="$(var.MySetupUI.TargetPath).config"/>
            <Payload SourceFile="$(var.MySetupUI.TargetDir)BootstrapperCore.dll"/>
            <Payload SourceFile="$(var.MySetupUI.TargetDir)BootstrapperCore.xml"/>
            <Payload SourceFile="BootstrapperCore.config"/>

            <Payload SourceFile="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.ServiceProcess.dll"/>
            <Payload SourceFile="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Configuration.Install.dll"/>
            <Payload SourceFile="C:\Program Files (x86)\WiX Toolset v3.11\SDK\Microsoft.Deployment.WindowsInstaller.dll"/>

            <PackageGroupRef Id='NetFx46Web'/>
            <MsiPackage SourceFile="$(var.MyAppSetup.TargetPath)" Id="InstallationPackageId" Cache="yes" Visible="no"/>


A simple WIX installer that runs custom actions on install and uninstall.

Below I provided the source code of WIX installer that shows the license, installation directory and runs custom actions on install and uninstall:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="">
    <Product Id="*" Name="My Game" Language="1033" Version="" Manufacturer="SharLines Corporation" UpgradeCode="...">

        <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" ></Property>
        <WixVariable Id="WixUILicenseRtf" Overridable="yes" Value="License.rtf"/>
        <UIRef Id="WixUI_InstallDir"/>

            <Custom Action="InstallService" After="InstallFiles">(NOT Installed) AND (NOT REMOVE)</Custom>
            <Custom Action="UninstallService" After="InstallInitialize">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
        <CustomAction Id="InstallService" Return="check" Impersonate="yes" Execute="deferred" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]$(var.MyService.TargetFileName) parameters..."/>
        <CustomAction Id="UninstallService" Return="check" Impersonate="yes" Execute="deferred" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]$(var.MyService.TargetFileName) parameters..."/>

MyService is project referenced by my wixproj in VS2015. If Impersonate=”yes” the command is run as the current user, if “no”, the command is run as “NT AUTHORITY\SYSTEM“. INSTALLFOLDER is defined as follows:


Setting up ASUS PRIME H270-PLUS motherboard for GPU mining

To make ASUS PRIME H270-PLUS motherboard work with 8 video cards the following BIOS options should be set:

  • Advanced\System Agent (SA) Configuration
    • Above 4G decoding [Disabled] -> [Enabled]
    • DMI/OPT Configuration\DMI Max Link Speed [Auto] -> [Gen1]
    • PEG Port Configuration\PCIEX16_1 Link Speed [Auto] -> [Gen1]
  • Advanced\PCH Configuration
    • PCI Express Configuration\PCIe Speed [Auto] -> [Gen1]
  • Advanced\APM Configuration
    • Restore AC Power Loss [Power Off]->[Last State]
  • Advanced\Onboard Devices Configuration
    • HD Audio Controller [Enabled]->[Disabled]
    • M.2_1 Configuration [Auto]->[PCIE]
    • M.2_2 Configuration [Auto]->[PCIE]

probably not all of these settings are strictly necessary, but at least I was able to connect 8 video cards GeoForce GTX 1060 with them:


How NSIS plugins work

NSIS plugins are regular DLLs that export functions with typical def-files like this:

    AddUser      PRIVATE    
    CreateHive   PRIVATE

They should be put to “C:\Program Files\NSIS\Plugins\x86-ansi” directory for NSIS v3.x. From nsi-script their functions can be called like this:

Function MyFunc


How to debug classic ASP with VS2015 and IIS Express

Change configuration/system.webServer/serverRuntime/asp section of $(SolutionDir).vs\config\applicationhost.config file to:

<asp scriptErrorSentToBrowser="true" enableParentPaths="true" bufferingOn="true" errorsToNTLog="true" appAllowClientDebug="true" appAllowDebugging="true">
    <cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
    <session allowSessionState="true" />
    <limits />

Open the website in a browser and then in VS2015 go to Debug->Attach To Process, change code type to Script and select iisexpress.exe. After that in browser navigate to a page you want to debug and Script Documents section will appear in Solution Explorer allowing you to set breakpoints on listed pages. Actually you do all the steps described in this post, except that you edit not the global IIS Express configuration, but local configuration located in VS2015 solution subdirectory .vs\config.


Setting up Squid proxy on Ubuntu 16.04 to browse blocked websites

Squid 3.5.12 can be installed and tested on Ubuntu 16.04 with the following commands:

sudo apt install squid
service squid start
sudo ufw allow 3128/tcp
wget -e use_proxy=yes -e http_proxy=http://localhost:3128

by default Squid listens on port 3128.

At first, Google Chrome started with Squid proxy from some external IP address:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --proxy-server=