How to remove terribly annoying English/Russian keyboard layout

(more…)

Investigating cobalt::generator

Standard C++ generator

The code below demonstrates how standard C++23 synchronous generator works:

#include <boost/cobalt.hpp>
#include <iostream>
#include <generator>

namespace cobalt = boost::cobalt;

std::generator<int> numbers()
{
    for (int i = 1; i <= 5; ++i)
    {
        co_yield i;
    }
}
(more…)

Building boost::cobalt with MSVC 2022

cd C:\dev\repos\boost_1_89_0

set OPENSSL_ROOT_DIR=C:/dev/libs/OpenSSL
set OPENSSL_USE_STATIC_LIBS=ON
 
bootstrap.bat

b2 cxxstd=20 install --with-system --with-thread --with-cobalt --prefix=C:/dev/libs/boost_1_89_0 --toolset=msvc-14.3 -s _WIN32_WINNT=0x0A00 link=static runtime-link=static variant=release address-model=64
b2 cxxstd=20 install --with-system --with-thread --with-cobalt --prefix=C:/dev/libs/boost_1_89_0 --toolset=msvc-14.3 -s _WIN32_WINNT=0x0A00 link=static runtime-link=static variant=debug address-model=64
(more…)

Nginx TCP proxy with SSL Termination

Obtaining the certificates

Obtain private and public keys from exported pfx file:

openssl pkcs12 -in ldaps.pfx -nocerts -nodes -out ldap.key
openssl pkcs12 -in ldaps.pfx -clcerts -nokeys -out ldap.crt
(more…)

Enabling LDAP over SSL

Add Certificate Manager role

Enable probably something like Certificate Manager role on DC:

(more…)

Fixing my routing table to make Hyper-V visible from the host machine

Get-NetIPAddress -AddressFamily IPv4 | Format-Table InterfaceIndex, InterfaceAlias, IPAddress, PrefixLength
InterfaceIndex InterfaceAlias                      IPAddress       PrefixLength
-------------- --------------                      ---------       ------------
             8 vEthernet (External Virtual Switch) 169.254.119.152           16
            55 vEthernet (WSL (Hyper-V firewall))  172.29.208.1              20
            42 vEthernet (Default Switch)          172.28.176.1              20
             9 Local Area Connection* 2            169.254.188.32            16
            23 Local Area Connection* 1            169.254.77.99             16
            16 Ethernet                            192.168.0.145             24
            21 Wi-Fi                               192.168.0.170             24
             1 Loopback Pseudo-Interface 1         127.0.0.1                  8
(more…)

I lost the connection to my Windows 11 laptop

RDP disconnected and “Internet Protocol Version 4 (TCP/IPv4)” became disabled:

(more…)

Increasing MaxConcurrentApi Kerboros parameter on a Domain Controller

I increased MaxConcurrentApi value of type DWORD in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters:

(more…)

Installing Debian 13.1 on Hyper-V

Right after installing Debian I got the following:

Error: The repository 'cdrom://[Debian GNU/Linux 13.1.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20250906-10:24] trixie Release' does not have a Release file.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.

I fixed this by updating /etc/apt/sources.list as follows:

# deb cdrom:[Debian GNU/Linux 13.1.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware ...] /
deb http://deb.debian.org/debian trixie main contrib non-free-firmware non-free
deb http://deb.debian.org/debian-security trixie-security main contrib non-free-firmware non-free
deb http://deb.debian.org/debian trixie-updates main contrib non-free-firmware non-free
sudo apt update
(more…)

An error occurred when accepting connection in the local socket. Code: 24

Tried the following

sysctl net.core.somaxconn
net.core.somaxconn = 4096
sudo sysctl -w net.core.somaxconn=8192

but without a success.

(more…)