Delphi is truly a cool development environment, with the right libraries it becomes unbeatable. Now with version 11 and all the IDE in HDPI it is a pleasure to work with. fmxLinux is the library that comes with Delphi to allow you to create visual applications on Linux with Firemonkey and it works great. TMS…
Read more
Some older MS-Windows version doesn’t support newest TLS protocol for winhttp library, so there is an official patch for this at this link: http://download.microsoft.com/download/0/6/5/0658B1A7-6D2E-474F-BC2C-D69E5B9E9A68/MicrosoftEasyFix51044.msi The error occurred was: “Error sending data: (12175) A security error occurred.” Otherwise to test your server protocols, a vary usefull service is: https://www.ssllabs.com/ssltest/analyze.html
If you want to know the name of a font you really like but don’t know how to find the information, you can use the free online tool WhatTheFont. Insert the image of the font you want to be recognized, the program will load a complete list of fonts similar to the one you were…
Read more
To force quit an application by application name in MS-Windows you can use “taskkill” command. To kill an application by app name using taskkill you can write:
1 |
taskkill /f /t /im julius.exe |
In this example we kill our application “JuliuS” .
To detect device orientation change, you can use the following example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
uses System.Messaging, FMX.Platform; var FId: Integer; // Subscribe to TOrientationChangedMessage FId := TMessageManager.DefaultManager.SubscribeToMessage(TOrientationChangedMessage, DoOrientationChanged); // Write orientation change handler: procedure TMyForm.DoOrientationChanged(const Sender: TObject; const M: TMessage); var s: IFMXScreenService; begin if TPlatformServices.Current.SupportsPlatformService(IFMXScreenService, s) then begin case s.GetScreenOrientation of TScreenOrientation.Portrait: ; TScreenOrientation.Landscape: ; TScreenOrientation.InvertedPortrait: ; TScreenOrientation.InvertedLandscape: ; end; end; end; // Unsubscribe the TOrientationChangedMessage TMessageManager.DefaultManager.Unsubscribe(TOrientationChangedMessage, FId); |
The evolution of KVM and qemu is constant. To increase the size of a qcow2 disk just follow the steps below: Shut down the virtual machine Resize the image with
1 2 |
qemu-img resize image.qcow2 +SIZE |
where SIZE is the size (e.g. 30G for 30 gibibytes). Boot into an external live OS and resize the partition. So if you wanto to extend…
Read more