Change Language of Windows 10 Single Language

  1. Download lp***.cab package for desired language
  2. Run cmd as Administrator
  3. dism /Online /Add-Package /PackagePath:C:\lp.cab

  4. Learn old language package

    dism /Online /Get-Packages

  5. Remove old language package

    dism /Online /Remove-Package /PackageName:Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~ru-RU~10.0.10240.16384

Advertisements

Get MachineGUID using Delphi

var
  fReg:TRegistry;
  GUIDStr:String;
begin
  try
    fReg:= TRegistry.Create(KEY_WRITE OR KEY_WOW64_64KEY);
    fReg.RootKey:=HKEY_LOCAL_MACHINE;
    if fReg.OpenKeyReadOnly('\SOFTWARE\Microsoft\Cryptography') then
      begin
        GUIDStr:=freg.ReadString('MachineGuid');
        edit1.Text:=GUIDStr;
      end;
  finally
    fReg.Free;
  end;
end;

Delphi Reverse Tab

BLOCK INDENT AND UNINDENT: SHIFT-CTRL-I and SHIFT-CTRL-U

You can indent a whole block of code at once by selecting that block and pressing SHIFT-CTRL-I. The whole block will indent by the “Block Indent” value in Editor Properties. Perfect for if you want to add begin and end around a large block of code!

If you decide you have indented too far, SHIFT-CTRL-U has the opposite effect.

As a side note, you can edit how much these shortcut keys indent by selecting Tools -> Editor Properties and changing the “Block indent” value.

Raspberry Pi Auto Start Boot Time

sudo nano /etc/rc.local

Add commands below the comment, but leave the line exit 0

If your command runs continuously (perhaps runs an infinite loop) or is likely not to exit, you must be sure to fork the process by adding an ampersand to the end of the command, like so:

python /home/pi/myscript.py &

or

sh /home/pi/myscript.sh &

NOTE: Doesn’t work on cold restart (power down and up)!

Alternative Method:

sudo nano /etc/init.d/myscript
sudo chmod 755 /etc/init.d/myscript

Note: init.d Scripting is complex!

sudo update-rc.d myscript defaults