Opisać w zeszycie usługę serwerową RRAS:
Routing and Remote Access Service (RRAS)

Konserwacja urządzeń sieciowych

https://ti.dxe.pl/files/2tpi/konserwacj … iowych.pdf

Napisz skrypt który pyta się o kolor (prompt)
i następnie  zmienia tło strony na podany
kolor, gdy nie poda się koloru to tło strony
robi się na żółte.

229

(0 odpowiedzi, napisanych 4Ti-Tworzenie aplikacji internetowych)

<span id="test">1</span>
<span id="test2">2</span>

<script>
  var s = document.getElementById("test");
  var s2 = document.getElementById("test2");
  //
  s.innerHTML="klfsdlkfj";
  s2.innerHTML="klfsdlkfj2";
  s2.style.color="red";
  s2.style.backgroundColor="yellow";
  s2.style.fontSize = "x-large";
</script>




<h1 id="imie"></h1>
<script>
  var s = document.getElementById("imie");
  var p = prompt("Podaj imię: ");
  if (p) s.innerHTML = p;
</script>

https://ubuntix.pl/jak-skonfigurowa-sie … -na-ubuntu

https://pic.ubuntix.pl/3/2795.png

$ sudo ip link set enp0s3 down
$ sudo ip link set enp0s3 up

Opisać w zeszycie usługę serwerową RRAS:
Routing and Remote Access Service (RRAS)

Opisać w zeszycie role Windows Serwer 2016:

Active Directory Certificate Services
Active Directory Domain Services
Active Directory Federation Services
Active Directory Lightweight Directory Services
Active Directory Rights Management Services
Device Health Attestation
DHCP Server
DNS Server
File and Storage Services
Host Guardian Service
Hyper-V
Print and Document Services
Remote Access
Remote Desktop Services
Volume Activation Services
Web Server IIS
Windows Server Essentials Experience
Windows Server Update Services

Utwórz tablicę o nazwie tab1, zawierającą następujące liczby całkowite: 7, 3, 1, 6, 9, 5, 4, 10, 2, 2.
Wypisz zawartość 5 komórki tablicy na ekran. Zmień zawartość 7 komórki tablicy, wprowadzając do niej wartość 12.
Utwórz drugą tablicę o nazwie tab2, o tej samej wielkości co tab1. Przepisz zawartość tab1 do tab2.
Znajdź najmniejszy i największy element w tablicy.
Oblicz średnią wartość elementów tablicy.

234

(1 odpowiedzi, napisanych 4Ti-Tworzenie aplikacji internetowych)

<script>
  var t = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
  //
  var ile0 = 0;
  var ile1 = 0;
  for (i=0; i<t.length; i++)
  {
    if (i%2==1)
    t[i] = 1;
    else
    t[i] = 0;
    document.write(t[i]+"<br>");
    if (t[i] == 0) ile0++;
    if (t[i] == 1) ile1++;
  }
  document.write("ile 0: "+ile0+"<br>");
  document.write("ile 1: "+ile1+"<br>");
</script>
<script>
  var t = ['Marcin', 'Ania', 'Agnieszka', 'Piotrek', 'Grześ', 'Magda'];
  //
  t[4] = "Mateusz";
  delete t[4];
  t.push("Łukasz"); // dodaje element tablicy
  t.push("Kamil"); // dodaje element tablicy
  //t.sort(); // sort tablicy
  t.reverse(); // odbicie lustrzane
  for (i=0; i<t.length; i++)
    {
      document.write(t[i]+"<br>");
    }
</script>

sudo useradd -m -d "/home/test1" -s "/bin/bash" test1

sudo useradd -m -d "/home/test1" -s "/bin/bash" -p "saEZ6MlWYV9nQ" test1
(hasło: 123)

sudo userdel -rf test1

-----------------------------------------------
Wygeneruj hasło za pomocą crypt: perl -e 'print crypt("123", "salt"),"\n"'

<script>
var a = prompt("Podaj kolor: ", "blue");
   
document.write("<body bgcolor="+a+">")
document.write("Wybrany kolor: <font color=#fff><h1>"+a+"</h1></font>");

</script>

<script>
var a = parseInt(prompt("Podaj pierwsza liczbę: "));
var b = parseInt(prompt("Podaj drugą liczbę: "));
   
alert("Wynik dodawania: "+(a+b));
   
</script>

Okna dialogowe – rodzaje

1) alert("treść komunikatu");
2) if (confirm("Czy jesteś pewien, że chcesz kontynuować?")) alert("No to kontynuuj...");
3) const name = prompt("Podaj swoje imię:"); if (name) alert(name);

Opisać w zeszycie role Windows Serwer 2016:

Active Directory Certificate Services
Active Directory Domain Services
Active Directory Federation Services
Active Directory Lightweight Directory Services
Active Directory Rights Management Services
Device Health Attestation
DHCP Server
DNS Server
File and Storage Services
Host Guardian Service
Hyper-V
Print and Document Services
Remote Access
Remote Desktop Services
Volume Activation Services
Web Server IIS
Windows Server Essentials Experience
Windows Server Update Services