Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Author: Ivan Revelli

Digital solution partner

Add OpenStreetMap to your site with OpenLayer

OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles, vector data and markers loaded from any source. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known…
Read more

Evaluating TMS FNC Core and TMS UI on FmxLinux

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

MS Windows https / tls security Error solution:Error sending data: (12175) A security error occurred.

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

Windows kill application programmatically

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: taskkill /f /t /im julius.exe In this example we kill our application “JuliuS” .

Detect device orientation change Delphi Firemonkey

To detect device orientation change, you can use the following example: 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: ;…
Read more

Resizing kvm qcow2 disk part 2

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 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…
Read more