Month: February 2016

A regex to match Domino FQDN

​A simple regex that can match a Domino FQDN:

([ A-Za-z0-9._%+-]+)(\/\b[A-Za-z0-9._%+-]+)+

First matching group​ ([ A-Za-z0-9._%+-]+) captures names with only first, first + last or first + middle + last names.

The second matching group (\/\b[A-Za-z0-9._%+-]+)+ captures a space-free “/Org” pattern multiple times.

Non-persistent keyboard layouts

I found out that my keyboard layouts were not staying in VDI after I log off. So I had to automate this and not lose my time with adding my layouts every day.

So you simply create a .cmd file with the following content:

control intl.cpl,, /f:”DRIVE:\FULL\PATH\TO\FILE.XML”​

Then you create a FILE.XML in that location, containing the folowing XML:

<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
        <gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/></gs:UserList>
        <gs:InputLanguageID Action="add" ID="0402:00040402"/>

​The 00040402​ is the hex code identifier of the keyboard layout you need (in this case 0x00040402 – Bulgarian (phonetic traditional).

This article has all the keyboard hexadecimal identifiers that one might need:​

Then you just open the windows scheduler and add this .cmd to execute on Log On and on Work station Unlock and add to Window Startup folder and there you go!