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

Author: Ivan Revelli

Digital solution partner

Configure a NFS share in your LAN with Ubuntu 20.04

Configuring NFS Server: Installing NFS services on your ubuntu system sudo nano /etc/fstab sudo apt install nfs-kernel-server sudo apt-get install nfs-kernel-server portmap nfs-common sudo showmount -a configure mount folders and define sub nets can access to sudo nano /etc/exports /etc/export sample: # /etc/exports: the access control list for filesystems which may be exported # to…
Read more

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