In Synaptica la sostenibilità e il basso impatto ambientale sono dei valori fondamentali condivisi naturalmente da tutti noi. La passione per la natura, gli animali e l’ambiente ci hanno indotto sempre a mantenere un occhio di riguardo nei confronti dell’impatto ambientale causato dalle ns attività. Questa visione ci ha portato anche a fare scelte inizialmente…
Leggi tutto
1 2 3 4 5 6 7 8 9 |
TMiaStruttura = record case integer of 0 : (content : array[0..19] of char); 1 : ( primidue : array[0..1] of char; dalduealquattro : array[0..1] of char; cognome : array[0..15] of char; ) end; |
1 2 3 4 5 6 7 8 9 10 11 12 |
procedure TForm7.Button1Click(Sender: TObject); begin a.content := '0123456789ABCDEFGHIL'; ShowMessage(a.dalduealquattro); a.dalduealquattro := 'BB'; ShowMessage(a.content); end; |
thank’s to my self obviusly
Manage a System.string as buffer to copy content of string into a generic TStream:
1 |
Stream.Write(Str[1], StrLen * SizeOf(Str[1])); |
Unlike some multi-user environments most Ubuntu desktop users have the Operating System and drivers on their hard disks, SSDs or Live Boot USBs. There is a glitch where some users wait an extremely long time for network to come up during boot. In this case the recommendations is to set the maximum wait time to…
Leggi tutto
Elenco codici paese Locale Languagecode LCIDstring LCIDDecimal LCIDHexadecimal Codepage Afrikaans af af 1078 436 1252 Albanian sq sq 1052 1250 Amharic am am 1118 Arabic – Algeria ar ar-dz 5121 1401 1256 Arabic – Bahrain ar ar-bh 15361 1256 Arabic – Egypt ar ar-eg 3073 1256 Arabic – Iraq ar ar-iq 2049 801 1256 Arabic…
Leggi tutto
edit or create the rc.local file:
1 |
sudo nano /etc/rc.local |
1 2 3 4 5 |
#!/bin/bash <your_program>.sh exit 0 |
make rc.local executable:
1 |
sudo chmod +x /etc/rc.local |
edit /etc/systemd/system/rc-local.service:
1 |
sudo nano /etc/systemd/system/rc-local.service |
add this content to rc.local.service:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # This unit gets pulled automatically into multi-user.target by # systemd-rc-local-generator if /etc/rc.local is executable. [Unit] Description=/etc/rc.local Compatibility Documentation=man:systemd-rc-local-generator(8) ConditionFileIsExecutable=/etc/rc.local After=network.target [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 RemainAfterExit=yes GuessMainPID=no [Install] WantedBy=multi-user.target |
enable rc.local by service:
1 |
sudo systemctl enable rc-local.service |
start rc.local by service:
1 |
sudo systemctl start rc-local.service |
check the rc.local status:
1 |
sudo systemctl status rc-local.service |
create file rc.local :