tear – tore – torn

Irregular Verb

tear (V1)

tore (V2)

torn (V3)

Advertisements

Oz = Australia

The word Australia when referred to informally with its first three letters becomes Aus. When Aus or Aussie, the short form for an Australian, is pronounced for fun with a hissing sound at the end, it sounds as though the word being pronounced has the spelling Oz. Hence Australia in informal language is referred to as Oz. The noun Oz is also used to refer to an unreal, magical place, and this usage had its origins in the fantasy novel The wonderful world of Oz written in 1900 by L Frank Baum.

BeginUpdate and EndUpdate in Delphi

If you use a Delphi component like a ListBox, Memo, TreeList, ListView,… and you add or modify a lot of items (lines, nodes,…), the component’s performance becomes very slow. This is due to the fact that after each change, it is redrawn on the screen. Solution:

 

 ListBox1.Items.BeginUpdate;
 for i := 1 to 10000 do
 ListBox1.Items.Add('abcd');
 ListBox1.Items.EndUpdate;

Export Registry Key in Delphi

var
 R: TRegistry;
 ErrorCode: Integer;
begin
 NTSetPrivilege('SeBackupPrivilege', true);
 R:= TRegistry.Create;
 try
 R.RootKey := HKEY_LOCAL_MACHINE;
 if R.OpenKeyReadOnly('\Software\My Key') then
 begin
 ErrorCode := RegSaveKey(R.CurrentKey, 'export.reg'), nil);
 R.CloseKey;
 if ErrorCode <> ERROR_SUCCESS then
 raise Exception.CreateFmt('Error Code: %u', [ErrorCode]);
 end
 else
 raise Exception.Create('Key does not exist');
 finally
 R.Free;
 end;
end;

OpenVZ vs KVM

When to Use OpenVZ Virtualization?
Use OpenVZ if you want the lowest price for a VPS. OpenVZ is a good entry level into VPS hosting. Via our Breeze Control Panel, you can easily install the OS of your choice.
OpenVZ uses a common shared kernel. Because of the shared kernel, overhead is lower and so is RAM consumption per VPS. A disadvantage to OpenVZ would be that a kernel failure could cause a failure across all VPS instances running on the same server. The shared kernel limits the operating systems you can run and keep in mind, the latest OSes with newer kernels may not work under OpenVZ.

When to Use KVM Virtualization?
Use KVM if you are as business or your project is for a business. KVM is capable of full encryption of stored data. KVM has independent kernels for each VPS. With an independent kernel you can a wider selection of operating systems, including the latest Linux releases, BSD and Microsoft Windows.
Since KVM is true virtualization, reliability and uptime on average should be greater under KVM.