diff --git a/TPSI/costanzo_francesco/.gitignore b/TPSI/costanzo_francesco/.gitignore new file mode 100644 index 00000000..6d1767fc --- /dev/null +++ b/TPSI/costanzo_francesco/.gitignore @@ -0,0 +1 @@ +**/.idea/ diff --git a/TPSI/costanzo_francesco/.gitkeep b/TPSI/costanzo_francesco/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/TPSI/costanzo_francesco/css/esercizio_css_18/costanzo_esercizio_css_18.css b/TPSI/costanzo_francesco/css/esercizio_css_18/costanzo_esercizio_css_18.css new file mode 100644 index 00000000..113580b7 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_18/costanzo_esercizio_css_18.css @@ -0,0 +1,30 @@ +div { + background-color: lightblue; + color:navy; + border-top: 15px solid navy; + border-bottom: 15px solid navy; + } + + #div1 { + width: 100px; + padding: 25px; + border: 25px solid navy; + margin-bottom: 2rem; + } + + #div2 { + width: 250px; + padding-left: 15px; + padding-right: 10px; + border-left: 10px solid navy; + border-right: 15px solid navy; + margin-bottom: 2rem; + } + + #div3 { + width: 353px; + padding-left: 1px; + padding-right: 19px; + border-left: 14px solid navy; + border-right: 21px solid navy; + } \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_18/costanzo_esercizio_css_18.html b/TPSI/costanzo_francesco/css/esercizio_css_18/costanzo_esercizio_css_18.html new file mode 100644 index 00000000..9f6db7bf --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_18/costanzo_esercizio_css_18.html @@ -0,0 +1,13 @@ + + + + + + Esercizio 18 + + +
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_19/costanzo_esercizio_css_19.css b/TPSI/costanzo_francesco/css/esercizio_css_19/costanzo_esercizio_css_19.css new file mode 100644 index 00000000..d5f3ad3f --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_19/costanzo_esercizio_css_19.css @@ -0,0 +1,14 @@ +h1 { + border-bottom: solid 5px blue; + border-left: solid 2px green; +} + +h2{ + border-top: dashed 2px green; +} + +p{ + border-bottom: dashed 3px grey; + border-left: solid 1px green; + border-right: solid 1px green; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_19/costanzo_esercizio_css_19.html b/TPSI/costanzo_francesco/css/esercizio_css_19/costanzo_esercizio_css_19.html new file mode 100644 index 00000000..58c23359 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_19/costanzo_esercizio_css_19.html @@ -0,0 +1,188 @@ + + + + + + local host + + + + + +

Localhost

+

+ The local loopback mechanism may be used to run a network service on a + host without requiring a physical network interface, or without making the + service accessible from the networks the computer may be connected to. For + example, a locally installed website may be accessed from a Web browser by + the URL http://localhost to display its home page. The name localhost + normally resolves to the IPv4 loopback address 127.0.0.1, and to the + IPv6 + loopback address ::1.
+ + “I computer sono incredibilmente veloci, accurati e stupidi. Gli uomini sono incredibilmente lenti, + inaccurati e intelligenti. L'insieme dei due costituisce una forza incalcolabile.”
Albert Einstain +

+ +

Loopback

+

+ IPv4 + network + standards reserve the entire address block + 127.0.0.0/8 (more than 16 million addresses) for loopback purposes.[2] + That means any packet sent to any of those addresses is looped back. The + address 127.0.0.1 is the standard address for IPv4 + loopback + traffic; the rest are not supported by all operating systems. However, + they can be used to set up multiple server applications on the host, all + listening on the same port number. The IPv6 standard assigns only a single + address for loopback: ::1. The resolution of the name localhost to one or + more IP addresses is normally configured by the following lines in the + operating system's hosts file:IPv4 network standards reserve the entire + address block 127.0.0.0/8 (more than 16 million addresses) for loopback + purposes.[2] That means any packet sent + to any of those addresses is looped back. The address 127.0.0.1 is the + standard address for IPv4 loopback traffic; the rest are not supported by + all operating systems. However, they can be used to set up multiple server + applications on the host, all listening on the same port number. The IPv6 + standard assigns only a single address for loopback: ::1. The resolution + of the name localhost to one or more IP addresses is normally configured + by the following lines in the operating system's hosts file:
+ 127.0.0.1 localhost
+ ::1 localhost
+ 127.0.0.1 localhost
+ ::1 localhost +

+ immagine ipv6, esempio +
+ The name may also be resolved by Domain Name System (DNS) servers, but + queries for this name should be resolved locally, and should not be + forwarded to remote name servers.
+
+ In addition to the mapping of localhost to the loopback addresses + (127.0.0.1 and ::1), localhost may also be mapped to other IPv4 (loopback) + addresses and it is also possible to assign other, or additional, names to + any loopback address. The mapping of localhost to addresses other than the + designated loopback address range in the hosts file or in DNS is not + guaranteed to have the desired effect, as applications may map the name + internally. +

+ In the Domain Name + System, the name localhost is reserved as a top-level domain name, originally + set aside to avoid confusion with the hostname used for loopback + purposes.[3] IETF standards prohibit domain name registrars from assigning + the name localhost. +

+ +

IETF standards

+ immagine ietf + +

+ The name localhost is reserved for loopback purposes by RFC 6761 + (Special-Use Domain Names),[4] which achieved the Proposed Standard + maturity level in February 2013. The standard sets forth a number of + special considerations governing the use of the name in the Domain Name + System:
+
+ + + An IPv4 or IPv6 address query for the name localhost must always resolve + to the respective loopback address, which is specified in a separate + standard. Applications may resolve the name to a loopback address + themselves, or pass it to the local name resolver mechanisms. When a name + resolver receives an address (A or AAAA) query for localhost, it should + return the appropriate loopback addresses, and negative responses for any + other requested record types. Queries for localhost should not be sent to + caching name servers. To avoid burdening the Domain Name System root + servers with traffic, caching name servers should never request name + server records for localhost, or forward resolution to authoritative name + servers. DNS registrars are precluded from delegating domain names in the + top-level domain localhost. When + name servers receive queries for + 'localhost' in spite of the provisions mentioned resolve them + appropriately. The IPv4 loopback addresses are reserved within the IPv4 + address space by the IETF "Special Use IPv4 Addresses" standard (RFC + 5735).[5] The reservation can be traced back to the November 1986 + "Assigned Numbers" standard (RFC 990). +

+ “Chiunque consideri i metodi aritmetici metodi di produrre numeri casuali è, naturalmente, in uno stato di peccato.” +
+
+
+ In contrast, the + IETF + "IP Version 6 Addressing Architecture" standard (RFC 4291) reserves the + single IPv6 loopback address ::1 within the IPv6 address space. The + standard precludes the assignment of that address to any physical + interface, as well as its use as the source or destination address in any + packet sent to remote hosts. Any such packet that is erroneously + transmitted is not supposed to be routed, and should be dropped by all + routers or hosts that receive it. +

+ sudo pacman -S IETF +
Quest'ultimo è un comando inutile che non funziona
+ +

Packet processing

+ + schema packet processing + +

+ The processing of any packet sent to a loopback address, is implemented in + the link layer of the TCP/IP stack. Such packets are never passed to any + network interface controller (NIC) or hardware device driver and must not + appear outside of a computing system, or be routed by any router. This + permits software testing and local services in the absence of any hardware + network interfaces.

+ Looped-back packets are distinguished from any other packets traversing + the TCP/IP stack only by the special IP address they were addressed to. + Thus, the services that ultimately receive them respond according to the + specified destination. For example, an HTTP service could route packets + addressed to 127.0.0.99:80 and 127.0.0.100:80 to different Web servers, or + to a single server that returns different web pages. To simplify such + testing, the hosts file may be configured to provide appropriate names for + each address. +

+ Packets received on a non-loopback interface with a loopback source or + destination address must be dropped. Such packets are sometimes referred + to as Martian packets.[6] As with any other bogus packets, they may be + malicious and any problems they might cause can be avoided by applying + bogon filtering. +

+

Special cases

+ +

+ The releases of the + MySQL database + differentiate between the use of the hostname localhost and the use of the + addresses 127.0.0.1 and ::1.[7] When qusing localhost as the destination in + a client connector interface of an application, the MySQL application + programming interface connects to the database using a Unix domain socket, + while a TCP connection via the loopback interface requires the direct use + of the explicit address.

+ One notable exception to the use of the 127.0.0.0/8 addresses is their use + in Multiprotocol Label Switching (MPLS) traceroute error detection, in + which their property of not being routable provides a convenient means to + avoid delivery of faulty packets to end users. +

+ + diff --git a/TPSI/costanzo_francesco/css/esercizio_css_19/ietf.jpeg b/TPSI/costanzo_francesco/css/esercizio_css_19/ietf.jpeg new file mode 100644 index 00000000..b1169b09 Binary files /dev/null and b/TPSI/costanzo_francesco/css/esercizio_css_19/ietf.jpeg differ diff --git a/TPSI/costanzo_francesco/css/esercizio_css_20/costanzo_esercizio_css_20.css b/TPSI/costanzo_francesco/css/esercizio_css_20/costanzo_esercizio_css_20.css new file mode 100644 index 00000000..1072a6fe --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_20/costanzo_esercizio_css_20.css @@ -0,0 +1,23 @@ +h1{ + text-transform: uppercase; + color:blue; +} + +h2{ + text-transform: capitalize; + text-decoration: underline; + color:red; +} + +p{ + text-align: justify; + +} + +#p3{ + text-align: right; +} + +#obreggiatura{ + text-shadow: 2px 2px 5px red; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_20/costanzo_esercizio_css_20.html b/TPSI/costanzo_francesco/css/esercizio_css_20/costanzo_esercizio_css_20.html new file mode 100644 index 00000000..cf67c5ee --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_20/costanzo_esercizio_css_20.html @@ -0,0 +1,188 @@ + + + + + + local host + + + + + +

Localhost

+

+ The local loopback mechanism may be used to run a network service on a + host without requiring a physical network interface, or without making the + service accessible from the networks the computer may be connected to. For + example, a locally installed website may be accessed from a Web browser by + the URL http://localhost to display its home page. The name localhost + normally resolves to the IPv4 loopback address 127.0.0.1, and to the + IPv6 + loopback address ::1.
+ + “I computer sono incredibilmente veloci, accurati e stupidi. Gli uomini sono incredibilmente lenti, + inaccurati e intelligenti. L'insieme dei due costituisce una forza incalcolabile.”
Albert Einstain +

+ +

Loopback

+

+ IPv4 + network + standards reserve the entire address block + 127.0.0.0/8 (more than 16 million addresses) for loopback purposes.[2] + That means any packet sent to any of those addresses is looped back. The + address 127.0.0.1 is the standard address for IPv4 + loopback + traffic; the rest are not supported by all operating systems. However, + they can be used to set up multiple server applications on the host, all + listening on the same port number. The IPv6 standard assigns only a single + address for loopback: ::1. The resolution of the name localhost to one or + more IP addresses is normally configured by the following lines in the + operating system's hosts file:IPv4 network standards reserve the entire + address block 127.0.0.0/8 (more than 16 million addresses) for loopback + purposes.[2] That means any packet sent + to any of those addresses is looped back. The address 127.0.0.1 is the + standard address for IPv4 loopback traffic; the rest are not supported by + all operating systems. However, they can be used to set up multiple server + applications on the host, all listening on the same port number. The IPv6 + standard assigns only a single address for loopback: ::1. The resolution + of the name localhost to one or more IP addresses is normally configured + by the following lines in the operating system's hosts file:
+ 127.0.0.1 localhost
+ ::1 localhost
+ 127.0.0.1 localhost
+ ::1 localhost +

+ immagine ipv6, esempio +
+ The name may also be resolved by Domain Name System (DNS) servers, but + queries for this name should be resolved locally, and should not be + forwarded to remote name servers.
+
+ In addition to the mapping of localhost to the loopback addresses + (127.0.0.1 and ::1), localhost may also be mapped to other IPv4 (loopback) + addresses and it is also possible to assign other, or additional, names to + any loopback address. The mapping of localhost to addresses other than the + designated loopback address range in the hosts file or in DNS is not + guaranteed to have the desired effect, as applications may map the name + internally. +

+ In the Domain Name + System, the name localhost is reserved as a top-level domain name, originally + set aside to avoid confusion with the hostname used for loopback + purposes.[3] IETF standards prohibit domain name registrars from assigning + the name localhost. +

+ +

IETF standards

+ immagine ietf + +

+ The name localhost is reserved for loopback purposes by RFC 6761 + (Special-Use Domain Names),[4] which achieved the Proposed Standard + maturity level in February 2013. The standard sets forth a number of + special considerations governing the use of the name in the Domain Name + System:
+
+ + + An IPv4 or IPv6 address query for the name localhost must always resolve + to the respective loopback address, which is specified in a separate + standard. Applications may resolve the name to a loopback address + themselves, or pass it to the local name resolver mechanisms. When a name + resolver receives an address (A or AAAA) query for localhost, it should + return the appropriate loopback addresses, and negative responses for any + other requested record types. Queries for localhost should not be sent to + caching name servers. To avoid burdening the Domain Name System root + servers with traffic, caching name servers should never request name + server records for localhost, or forward resolution to authoritative name + servers. DNS registrars are precluded from delegating domain names in the + top-level domain localhost. When + name servers receive queries for + 'localhost' in spite of the provisions mentioned resolve them + appropriately. The IPv4 loopback addresses are reserved within the IPv4 + address space by the IETF "Special Use IPv4 Addresses" standard (RFC + 5735).[5] The reservation can be traced back to the November 1986 + "Assigned Numbers" standard (RFC 990). +

+ “Chiunque consideri i metodi aritmetici metodi di produrre numeri casuali è, naturalmente, in uno stato di peccato.” +
+
+
+ In contrast, the + IETF + "IP Version 6 Addressing Architecture" standard (RFC 4291) reserves the + single IPv6 loopback address ::1 within the IPv6 address space. The + standard precludes the assignment of that address to any physical + interface, as well as its use as the source or destination address in any + packet sent to remote hosts. Any such packet that is erroneously + transmitted is not supposed to be routed, and should be dropped by all + routers or hosts that receive it. +

+ sudo pacman -S IETF +
Quest'ultimo è un comando inutile che non funziona
+ +

Packet processing

+ + schema packet processing + +

+ The processing of any packet sent to a loopback address, is implemented in + the link layer of the TCP/IP stack. Such packets are never passed to any + network interface controller (NIC) or hardware device driver and must not + appear outside of a computing system, or be routed by any router. This + permits software testing and local services in the absence of any hardware + network interfaces.

+ Looped-back packets are distinguished from any other packets traversing + the TCP/IP stack only by the special IP address they were addressed to. + Thus, the services that ultimately receive them respond according to the + specified destination. For example, an HTTP service could route packets + addressed to 127.0.0.99:80 and 127.0.0.100:80 to different Web servers, or + to a single server that returns different web pages. To simplify such + testing, the hosts file may be configured to provide appropriate names for + each address. +

+ Packets received on a non-loopback interface with a loopback source or + destination address must be dropped. Such packets are sometimes referred + to as Martian packets.[6] As with any other bogus packets, they may be + malicious and any problems they might cause can be avoided by applying + bogon filtering. +

+

Special cases

+ +

+ The releases of the + MySQL database + differentiate between the use of the hostname localhost and the use of the + addresses 127.0.0.1 and ::1.[7] When qusing localhost as the destination in + a client connector interface of an application, the MySQL application + programming interface connects to the database using a Unix domain socket, + while a TCP connection via the loopback interface requires the direct use + of the explicit address.

+ One notable exception to the use of the 127.0.0.0/8 addresses is their use + in Multiprotocol Label Switching (MPLS) traceroute error detection, in + which their property of not being routable provides a convenient means to + avoid delivery of faulty packets to end users. +

+ + diff --git a/TPSI/costanzo_francesco/css/esercizio_css_20/ietf.jpeg b/TPSI/costanzo_francesco/css/esercizio_css_20/ietf.jpeg new file mode 100644 index 00000000..b1169b09 Binary files /dev/null and b/TPSI/costanzo_francesco/css/esercizio_css_20/ietf.jpeg differ diff --git a/TPSI/costanzo_francesco/css/esercizio_css_21/costanzo_esercizio_css_21.css b/TPSI/costanzo_francesco/css/esercizio_css_21/costanzo_esercizio_css_21.css new file mode 100644 index 00000000..0802af27 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_21/costanzo_esercizio_css_21.css @@ -0,0 +1,23 @@ +.primih1{ + font-family: Montserrat; +} + +ul.circle{ + list-style-type: circle; +} + +ol.roman{ + list-style-type: upper-roman; +} + +ul.bullet{ + list-style-type: none; +} + +ul.bullet > li:before{ + content: 'star'; + font-family: 'Material Symbols Outlined'; + color: red; + vertical-align: -10%; + padding-right: 10px; +} diff --git a/TPSI/costanzo_francesco/css/esercizio_css_21/costanzo_esercizio_css_21.html b/TPSI/costanzo_francesco/css/esercizio_css_21/costanzo_esercizio_css_21.html new file mode 100644 index 00000000..08d66bea --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_21/costanzo_esercizio_css_21.html @@ -0,0 +1,212 @@ + + + + + + local host + + + + + + + + + +

Localhost

+

+ The local loopback mechanism may be used to run a network service on a + host without requiring a physical network interface, or without making the + service accessible from the networks the computer may be connected to. For + example, a locally installed website may be accessed from a Web browser by + the URL http://localhost to display its home page. The name localhost + normally resolves to the IPv4 loopback address 127.0.0.1, and to the + IPv6 + loopback address ::1.
+ + “I computer sono incredibilmente veloci, accurati e stupidi. Gli uomini sono incredibilmente lenti, + inaccurati e intelligenti. L'insieme dei due costituisce una forza incalcolabile.”
Albert Einstain +

+ +

Loopback

+star + +

+ IPv4 + network + standards reserve the entire address block + 127.0.0.0/8 (more than 16 million addresses) for loopback purposes.[2] + That means any packet sent to any of those addresses is looped back. The + address 127.0.0.1 is the standard address for IPv4 + loopback + traffic; the rest are not supported by all operating systems. However, + they can be used to set up multiple server applications on the host, all + listening on the same port number. The IPv6 standard assigns only a single + address for loopback: ::1. The resolution of the name localhost to one or + more IP addresses is normally configured by the following lines in the + operating system's hosts file:IPv4 network standards reserve the entire + address block 127.0.0.0/8 (more than 16 million addresses) for loopback + purposes.[2] That means any packet sent + to any of those addresses is looped back. The address 127.0.0.1 is the + standard address for IPv4 loopback traffic; the rest are not supported by + all operating systems. However, they can be used to set up multiple server + applications on the host, all listening on the same port number. The IPv6 + standard assigns only a single address for loopback: ::1. The resolution + of the name localhost to one or more IP addresses is normally configured + by the following lines in the operating system's hosts file:
+ 127.0.0.1 localhost
+ ::1 localhost
+ 127.0.0.1 localhost
+ ::1 localhost +

+ immagine ipv6, esempio +
+ The name may also be resolved by Domain Name System (DNS) servers, but + queries for this name should be resolved locally, and should not be + forwarded to remote name servers.
+
+ In addition to the mapping of localhost to the loopback addresses + (127.0.0.1 and ::1), localhost may also be mapped to other IPv4 (loopback) + addresses and it is also possible to assign other, or additional, names to + any loopback address. The mapping of localhost to addresses other than the + designated loopback address range in the hosts file or in DNS is not + guaranteed to have the desired effect, as applications may map the name + internally. +

+ In the Domain Name + System, the name localhost is reserved as a top-level domain name, originally + set aside to avoid confusion with the hostname used for loopback + purposes.[3] IETF standards prohibit domain name registrars from assigning + the name localhost. +

+ +

IETF standards

+ immagine ietf + +

+ The name localhost is reserved for loopback purposes by RFC 6761 + (Special-Use Domain Names),[4] which achieved the Proposed Standard + maturity level in February 2013. The standard sets forth a number of + special considerations governing the use of the name in the Domain Name + System:
+
+ + + An IPv4 or IPv6 address query for the name localhost must always resolve + to the respective loopback address, which is specified in a separate + standard. Applications may resolve the name to a loopback address + themselves, or pass it to the local name resolver mechanisms. When a name + resolver receives an address (A or AAAA) query for localhost, it should + return the appropriate loopback addresses, and negative responses for any + other requested record types. Queries for localhost should not be sent to + caching name servers. To avoid burdening the Domain Name System root + servers with traffic, caching name servers should never request name + server records for localhost, or forward resolution to authoritative name + servers. DNS registrars are precluded from delegating domain names in the + top-level domain localhost. When + name servers receive queries for + 'localhost' in spite of the provisions mentioned resolve them + appropriately. The IPv4 loopback addresses are reserved within the IPv4 + address space by the IETF "Special Use IPv4 Addresses" standard (RFC + 5735).[5] The reservation can be traced back to the November 1986 + "Assigned Numbers" standard (RFC 990). +

+ “Chiunque consideri i metodi aritmetici metodi di produrre numeri casuali è, naturalmente, in uno stato di peccato.” +
+
+
+ In contrast, the + IETF + "IP Version 6 Addressing Architecture" standard (RFC 4291) reserves the + single IPv6 loopback address ::1 within the IPv6 address space. The + standard precludes the assignment of that address to any physical + interface, as well as its use as the source or destination address in any + packet sent to remote hosts. Any such packet that is erroneously + transmitted is not supposed to be routed, and should be dropped by all + routers or hosts that receive it. +

+ sudo pacman -S IETF +
Quest'ultimo è un comando inutile che non funziona
+ +

Packet processing

+ + schema packet processing + +

+ The processing of any packet sent to a loopback address, is implemented in + the link layer of the TCP/IP stack. Such packets are never passed to any + network interface controller (NIC) or hardware device driver and must not + appear outside of a computing system, or be routed by any router. This + permits software testing and local services in the absence of any hardware + network interfaces.

+ Looped-back packets are distinguished from any other packets traversing + the TCP/IP stack only by the special IP address they were addressed to. + Thus, the services that ultimately receive them respond according to the + specified destination. For example, an HTTP service could route packets + addressed to 127.0.0.99:80 and 127.0.0.100:80 to different Web servers, or + to a single server that returns different web pages. To simplify such + testing, the hosts file may be configured to provide appropriate names for + each address. +

+ Packets received on a non-loopback interface with a loopback source or + destination address must be dropped. Such packets are sometimes referred + to as Martian packets.[6] As with any other bogus packets, they may be + malicious and any problems they might cause can be avoided by applying + bogon filtering. +

+

Special cases

+ +

+ The releases of the + MySQL database + differentiate between the use of the hostname localhost and the use of the + addresses 127.0.0.1 and ::1.[7] When qusing localhost as the destination in + a client connector interface of an application, the MySQL application + programming interface connects to the database using a Unix domain socket, + while a TCP connection via the loopback interface requires the direct use + of the explicit address.

+ One notable exception to the use of the 127.0.0.0/8 addresses is their use + in Multiprotocol Label Switching (MPLS) traceroute error detection, in + which their property of not being routable provides a convenient means to + avoid delivery of faulty packets to end users. +

+ + + +
    +
  1. Numero
  2. +
  3. Romano
  4. +
  5. nella lista
  6. +
+ + + + + diff --git a/TPSI/costanzo_francesco/css/esercizio_css_21/ietf.jpeg b/TPSI/costanzo_francesco/css/esercizio_css_21/ietf.jpeg new file mode 100644 index 00000000..b1169b09 Binary files /dev/null and b/TPSI/costanzo_francesco/css/esercizio_css_21/ietf.jpeg differ diff --git a/TPSI/costanzo_francesco/css/esercizio_css_22/costanzo_esercizio_css_22.css b/TPSI/costanzo_francesco/css/esercizio_css_22/costanzo_esercizio_css_22.css new file mode 100644 index 00000000..5c1692aa --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_22/costanzo_esercizio_css_22.css @@ -0,0 +1,12 @@ +ul > li { + display: inline; + background-color:black; + color: white; + float:left; + padding:20px; + list-style-type: none; +} + +ul > li:hover{ + background-color: grey; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_22/costanzo_esercizio_css_22.html b/TPSI/costanzo_francesco/css/esercizio_css_22/costanzo_esercizio_css_22.html new file mode 100644 index 00000000..01369093 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_22/costanzo_esercizio_css_22.html @@ -0,0 +1,20 @@ + + + + + + Document + + + + + + + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_23/costanzo_esercizio_css_23.css b/TPSI/costanzo_francesco/css/esercizio_css_23/costanzo_esercizio_css_23.css new file mode 100644 index 00000000..231a60f8 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_23/costanzo_esercizio_css_23.css @@ -0,0 +1,12 @@ +div{ + display: inline; + background-color:black; + color: white; + float:left; + padding:20px; + list-style-type: none; +} + +div:hover{ + background-color: grey; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_23/costanzo_esercizio_css_23.html b/TPSI/costanzo_francesco/css/esercizio_css_23/costanzo_esercizio_css_23.html new file mode 100644 index 00000000..bd30bd3d --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_23/costanzo_esercizio_css_23.html @@ -0,0 +1,18 @@ + + + + + + Document + + + + +
Home
+
ATS
+
Servizi
+
Contatti
+
About
+ + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_24/costanzo_esercizio_css_24.css b/TPSI/costanzo_francesco/css/esercizio_css_24/costanzo_esercizio_css_24.css new file mode 100644 index 00000000..7ac4d2b4 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_24/costanzo_esercizio_css_24.css @@ -0,0 +1,26 @@ +div{ + margin: 0px; + text-align: center; + line-height: 10vh; + +} +body > div { + width:90vh; + height: 10vh; +} + +div > div{ + width:10vh; + height: 100%; + border: 1px solid black; + float:left; + background-color: brown; +} + +body > div:nth-child(odd) > div:nth-child(odd) { + background-color: burlywood; +} + +body > div:nth-child(even) > div:nth-child(even) { + background-color: burlywood; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_24/costanzo_esercizio_css_24.html b/TPSI/costanzo_francesco/css/esercizio_css_24/costanzo_esercizio_css_24.html new file mode 100644 index 00000000..61fd6696 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_24/costanzo_esercizio_css_24.html @@ -0,0 +1,91 @@ + + + + + + esercitazione 24 + + + +
+
0.0
+
0.1
+
0.2
+
0.3
+
0.4
+
0.5
+
0.6
+
0.7
+
+
+
1.0
+
1.1
+
1.2
+
1.3
+
1.4
+
1.5
+
1.6
+
1.7
+
+
+
2.0
+
2.1
+
2.2
+
2.3
+
2.4
+
2.5
+
2.6
+
2.7
+
+
+
3.0
+
3.1
+
3.2
+
3.3
+
3.4
+
3.5
+
3.6
+
3.7
+
+
+
4.0
+
4.1
+
4.2
+
4.3
+
4.4
+
4.5
+
4.6
+
4.7
+
+
+
5.0
+
5.1
+
5.2
+
5.3
+
5.4
+
5.5
+
5.6
+
5.6
+
+
+
6.0
+
6.1
+
6.2
+
6.3
+
6.4
+
6.5
+
6.6
+
6.7
+
+
+
7.0
+
7.1
+
7.2
+
7.3
+
7.4
+
7.5
+
7.6
+
7.7
+
+ + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_25/costanzo_esercizio_css_25.css b/TPSI/costanzo_francesco/css/esercizio_css_25/costanzo_esercizio_css_25.css new file mode 100644 index 00000000..45966908 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_25/costanzo_esercizio_css_25.css @@ -0,0 +1,14 @@ +div { + padding:5px; + width: 10vh; + height: 10vh; + float:left; +} +.scatolaViola{ + + background-color: purple; + color:white; + text-align: left; + border-radius: 15px; + display: inline; +} diff --git a/TPSI/costanzo_francesco/css/esercizio_css_25/costanzo_esercizio_css_25.html b/TPSI/costanzo_francesco/css/esercizio_css_25/costanzo_esercizio_css_25.html new file mode 100644 index 00000000..d8d2e1fc --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_25/costanzo_esercizio_css_25.html @@ -0,0 +1,22 @@ + + + + + + esercitazione 25 + + + + +
+

One

+
+
+

The two boxes should float to either side of this text

+
+
+

Two

+
+ + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_26/costanzo_esercizio_css_26.css b/TPSI/costanzo_francesco/css/esercizio_css_26/costanzo_esercizio_css_26.css new file mode 100644 index 00000000..c5123a48 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_26/costanzo_esercizio_css_26.css @@ -0,0 +1,26 @@ +div > div{ + display: inline; + +} +body > div{ + background-color: purple; + width:500px; + height: 100px; + color: white; + padding: 10px; +} + + + +div > div:last-child{ + width: 100px; + height: 90px; + background-color: aquamarine; + border-radius: 8px; + float:right; + padding-top: 10px; + padding-left: 10px; + +} + + diff --git a/TPSI/costanzo_francesco/css/esercizio_css_26/costanzo_esercizio_css_26.html b/TPSI/costanzo_francesco/css/esercizio_css_26/costanzo_esercizio_css_26.html new file mode 100644 index 00000000..a031d67c --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_26/costanzo_esercizio_css_26.html @@ -0,0 +1,21 @@ + + + + + + esercitazione 25 + + + + +
+
+ This sentence appears next to the float. +
+
+ Float +
+
+ + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_27/costanzo_esercizio_css_27.css b/TPSI/costanzo_francesco/css/esercizio_css_27/costanzo_esercizio_css_27.css new file mode 100644 index 00000000..e143853d --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_27/costanzo_esercizio_css_27.css @@ -0,0 +1,17 @@ +div > div { + display: inline; + padding: 5px; +} +div > div:first-child{ + background-color: purple; + color:white; + border-radius: 8px; + width: 100px; + height: 100px; + float: left; +} + +body > div:first-child{ + width: 400px; + height: 100px; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_27/costanzo_esercizio_css_27.html b/TPSI/costanzo_francesco/css/esercizio_css_27/costanzo_esercizio_css_27.html new file mode 100644 index 00000000..07840b01 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_27/costanzo_esercizio_css_27.html @@ -0,0 +1,18 @@ + + + + + + esercitazione 27 + + + +
+
Float
+
This sentence appears next to the float
+
+
+

Cause this sentence to appear below the float.

+
+ + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_28/costanzo_esercizio_css_28.css b/TPSI/costanzo_francesco/css/esercizio_css_28/costanzo_esercizio_css_28.css new file mode 100644 index 00000000..2487ce15 --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_28/costanzo_esercizio_css_28.css @@ -0,0 +1,28 @@ +table{ + border: 20px solid lightblue; + display:block; + margin-left:auto; + margin-right:auto; + width:calc(10px + 750px + 2px + 2px + 58px); /* oppure width:fit-content; */ +} + +td{ + margin: 5px; +} + +img{ + width: 150px; + border: 1px solid black; + margin:0px; +} + +p{ + font-weight: bold; + text-align: center; + line-height: 100%; + border-left: 1px solid black; + border-right:1px solid black; + border-bottom:1px solid black; + margin:0px; + padding:0px; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_28/costanzo_esercizio_css_28.html b/TPSI/costanzo_francesco/css/esercizio_css_28/costanzo_esercizio_css_28.html new file mode 100644 index 00000000..0e45d12f --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_28/costanzo_esercizio_css_28.html @@ -0,0 +1,39 @@ + + + + + + esercitazione 28 + + + + + + + + + + + + + + +
+ +

Tux 1

+
+ +

Tux 2

+
+ +

Tux 3

+
+ +

Tux 4

+
+ +

Tux 5

+
+ + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_28/tux.png b/TPSI/costanzo_francesco/css/esercizio_css_28/tux.png new file mode 100644 index 00000000..e62284db Binary files /dev/null and b/TPSI/costanzo_francesco/css/esercizio_css_28/tux.png differ diff --git a/TPSI/costanzo_francesco/css/esercizio_css_29/costanzo_esercizio_css_29.css b/TPSI/costanzo_francesco/css/esercizio_css_29/costanzo_esercizio_css_29.css new file mode 100644 index 00000000..00edd7cf --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_29/costanzo_esercizio_css_29.css @@ -0,0 +1,27 @@ +.wrapping{ + border: 20px solid lightblue; + overflow: hidden; /* contiene i float */ + width:fit-content; + margin-left: auto; + margin-right: auto; + +} + +.wrapping > div{ + float: left; + margin:5px; +} + +img{ + width: 150px; + border: 1px solid black; + display: block; +} + +p{ + font-weight: bold; + text-align: center; + border: 1px solid black; + border-top: none; + margin: 0; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_29/costanzo_esercizio_css_29.html b/TPSI/costanzo_francesco/css/esercizio_css_29/costanzo_esercizio_css_29.html new file mode 100644 index 00000000..be9c8aae --- /dev/null +++ b/TPSI/costanzo_francesco/css/esercizio_css_29/costanzo_esercizio_css_29.html @@ -0,0 +1,35 @@ + + + + + + esercitazione 28 + + + + +
+
+ tuxImmagine +

TUX 1

+
+
+ tuxImmagine +

TUX 2

+
+
+ tuxImmagine +

TUX 3

+
+
+ tuxImmagine +

TUX 4

+
+
+ tuxImmagine +

TUX 5

+
+
+ + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/css/esercizio_css_29/tux.png b/TPSI/costanzo_francesco/css/esercizio_css_29/tux.png new file mode 100644 index 00000000..e62284db Binary files /dev/null and b/TPSI/costanzo_francesco/css/esercizio_css_29/tux.png differ diff --git a/TPSI/costanzo_francesco/sito_portfolio/conoscienze.html b/TPSI/costanzo_francesco/sito_portfolio/conoscienze.html deleted file mode 100644 index 8441958d..00000000 --- a/TPSI/costanzo_francesco/sito_portfolio/conoscienze.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - - Francesco Costanzo Portfolio - - - - - -

Francesco Costanzo

- - - - - - diff --git a/TPSI/costanzo_francesco/sito_portfolio/immagini/ai.jpeg b/TPSI/costanzo_francesco/sito_portfolio/immagini/ai.jpeg deleted file mode 100644 index 7aa75ea1..00000000 Binary files a/TPSI/costanzo_francesco/sito_portfolio/immagini/ai.jpeg and /dev/null differ diff --git a/TPSI/costanzo_francesco/sito_portfolio/immagini/beatles.jpeg b/TPSI/costanzo_francesco/sito_portfolio/immagini/beatles.jpeg deleted file mode 100644 index a91911a1..00000000 Binary files a/TPSI/costanzo_francesco/sito_portfolio/immagini/beatles.jpeg and /dev/null differ diff --git a/TPSI/costanzo_francesco/sito_portfolio/immagini/chitarra.jpeg b/TPSI/costanzo_francesco/sito_portfolio/immagini/chitarra.jpeg deleted file mode 100644 index cbc8ae8a..00000000 Binary files a/TPSI/costanzo_francesco/sito_portfolio/immagini/chitarra.jpeg and /dev/null differ diff --git a/TPSI/costanzo_francesco/sito_portfolio/immagini/sfondo.png b/TPSI/costanzo_francesco/sito_portfolio/immagini/sfondo.png new file mode 100644 index 00000000..03d4cb96 Binary files /dev/null and b/TPSI/costanzo_francesco/sito_portfolio/immagini/sfondo.png differ diff --git a/TPSI/costanzo_francesco/sito_portfolio/immagini/teatro.jpeg b/TPSI/costanzo_francesco/sito_portfolio/immagini/teatro.jpeg deleted file mode 100644 index cba89ce7..00000000 Binary files a/TPSI/costanzo_francesco/sito_portfolio/immagini/teatro.jpeg and /dev/null differ diff --git a/TPSI/costanzo_francesco/sito_portfolio/index.html b/TPSI/costanzo_francesco/sito_portfolio/index.html index b6759df5..6eeb2c05 100644 --- a/TPSI/costanzo_francesco/sito_portfolio/index.html +++ b/TPSI/costanzo_francesco/sito_portfolio/index.html @@ -1,4 +1,4 @@ - + @@ -6,3 +6,22 @@ Francesco Costanzo Portfolio + + + + + + +

Francesco Costanzo

+ + + + +
+

Benvenuto!

+

Questo è il mio sito portfolio. Per ora solo in HTML e CSS sentiti libro di esplorarlo.

+ + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/sito_portfolio/pcto.html b/TPSI/costanzo_francesco/sito_portfolio/pcto.html deleted file mode 100644 index fcf376e3..00000000 --- a/TPSI/costanzo_francesco/sito_portfolio/pcto.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/TPSI/costanzo_francesco/sito_portfolio/progetti.html b/TPSI/costanzo_francesco/sito_portfolio/progetti.html index 51f75d07..a8a4b7c0 100644 --- a/TPSI/costanzo_francesco/sito_portfolio/progetti.html +++ b/TPSI/costanzo_francesco/sito_portfolio/progetti.html @@ -4,6 +4,122 @@ + + Francesco Costanzo Portfolio + + + + + +

Francesco Costanzo

+ + +
+ +

Progetti ed Educazione Civica

+

Progetti

+

Decypher

+

Antico algoritmo di cifratura, il Cifrario di Cesare, questo codice in C permette di decifrare e cifrare un messaggio.

+
+      Codice in C:
+      
+          #include <stdio.h>
+          #include <stdlib.h>
+          #include <string.h>
+
+          //costanti importanti
+          const int LETTEREALFABETO = 21;
+          const char ALFABETO[] = {'a','b','c','d','e','f','g','h','i',
+                                  'l','m','n','o','p','q','r','s','t',
+                                  'u','v','z'};
+          const int MAXCARATTERI = 20;
+
+          //main
+          int main(int argc, char **argv) {
+              
+              //"trasformazione" da string in int
+              int k = atoi(argv[1]);
+
+              char parola[MAXCARATTERI + 1];
+              strncpy(parola, argv[2], MAXCARATTERI);
+
+              //Stampa del "menu"
+              printf("Input:  %s\n", parola);
+              printf("Chiave: %d", k);
+
+              //cicli for per scorrere lettere e sostituire
+              for (int i = 0; parola[i] != '\0'; i++) {
+                  
+                  for (int j = 0; j < LETTEREALFABETO; j++) {
+                      if (parola[i] == ALFABETO[j]) {
+                          int nuova_pos = (j - k + LETTEREALFABETO) % LETTEREALFABETO;
+                      
+                          parola[i] = ALFABETO[nuova_pos];
+                          break;
+                      }
+                  }
+              
+              }
+              //stampa risulitato
+              printf("\nRisultato: %s\n", parola);
+              return 0;
+          }
+      
+    
+

Controllo di bit di parità e disparità

+

Algoritmo che consente di controllare se l'arrivo di bit in una stringa sono corretti o errati, in base al bit di parità o disparità posto al capolinea della stessa.

+
+      Codice in C:
+      
+            #include <stdio.h>
+            #include <string.h>
+            #include <stdlib.h>
+
+            bool controllo(int nCaratteri, char codice[]) {
+
+                int temp, somma = 0, cifraControllo;
+                cifraControllo = (int)codice[nCaratteri - 1] - 48;
+
+                for (int i = 0; i < nCaratteri; i++) {
+                    if (i != nCaratteri) {
+                        temp = (int)(codice[i] - 48);
+                        somma += temp;
+                    } 
+                }
+
+                return (somma % 2) == cifraControllo;
+            }
+
+            bool main (int argc, char *argv[]) {
+                
+                int nCaratteri = strlen(argv[1]);
+                char codice[nCaratteri + 1];
+                bool flag;
+                strcpy(codice, argv[1]);
+                if (*argv[2] == '0') {
+                    flag = controllo(nCaratteri, codice);
+                } else if(*argv[2] == '1') {
+                    flag = !controllo(nCaratteri, codice);
+                }
+
+                printf("\nIl flag è: %d", flag);
+
+                return flag;
+            }
+      
+    
+

Ed. Civica

+

Informatica

+

Sviluppo di calcolatore di codice fiscale.

+ + + + \ No newline at end of file diff --git a/TPSI/costanzo_francesco/sito_portfolio/style.css b/TPSI/costanzo_francesco/sito_portfolio/style.css index 69dfece7..f01dbbc5 100644 --- a/TPSI/costanzo_francesco/sito_portfolio/style.css +++ b/TPSI/costanzo_francesco/sito_portfolio/style.css @@ -1,38 +1,115 @@ -#hotbar{ - display:flex; - border:8px solid #606BFF; - justify-content: space-evenly; - align-items: space-evenly; - border-radius: 30px; - background-color: #e0e2ff; +:root{ + font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; + --coloreTitoli:#404DFF; + --coloreSottotitoli:#606BFF; + --OmbraTitoli:#404dffa4; + --ColoreSecondario:white; } -/* Ancore */ +/* Sfondo */ -.divAncora { - margin-top: 1%; - margin-bottom: 1%; +body { + margin: 0; + min-height: 100vh; + background-image: linear-gradient(to bottom right, #C0C4FF, #404DFF); + background-repeat: no-repeat; + background-position: center center; + background-attachment: fixed; + background-size: cover; + position: relative; } -.ancora:link, .ancora:visited{ - color: #2b00ff; - vertical-align: middle; - text-align: center; - width:auto; - border-radius: 10px; - vertical-align: middle; - text-align: center; - text-decoration: none; +/* immagine sopra con opacità */ +body::before { + content: ""; + position: fixed; + inset: 0; /* top:0; right:0; bottom:0; left:0 */ + + background-image: url("./immagini/sfondo.png"); + background-size: cover; + background-position: center; + + opacity: 0.04; + pointer-events: none; /* evita problemi con click */ } -.ancoraAdesso { - color: #2b00ff; - background-color: #FFFFFF; - vertical-align: middle; - text-align: center; - width:auto; - border-radius: 10px; +/* Navbar e ancore*/ +nav{ + display:flex; + flex-direction: row; vertical-align: middle; - text-align: center; + flex-direction: row; + justify-content: center; + gap:3%; +} + +nav a { text-decoration: none; + color:var(--ColoreSecondario); + padding: 8px; + border: dashed 3px var(--ColoreSecondario); + border-radius: 15px; +} + +nav a.active, nav a:hover, nav a:active{ + border-style: solid; +} + + +/* Testo */ + +body > h1:first-child{ + font-size: 300%; + margin:2%; +} +body > h1{ + color:var(--coloreTitoli); + text-shadow: 1px 1px 3px var(--OmbraTitoli); + margin-left:2%; + margin-bottom:0px; } + +body > p { + margin-left:calc(2% + 30px); + font-size: 20px; + +} + +hr{ + color:var(--ColoreSecondario); + width:calc(100% - 150px); +} + +body > h2{ + color:var(--coloreSottotitoli); + font-size: 25px; + margin-left:calc(2% + 20px); +} + +body > h3{ + margin-left:calc(2% + 30px); +} + +pre{ + margin-top:0px; + border: dotted 3px var(--ColoreSecondario); + overflow-x: auto; + max-width: 100%; + padding: 16px; + background: var(--ColoreSecondario); + border-radius: 8px; + margin-left:calc(2% + 3px); + margin-right:calc(2% + 3px); +} + +body > a > button{ + width:calc(100% - 4% + 6px); + margin-left: calc(2% + 3px); + margin-right: calc(2% + 3px); + margin-bottom:10vh; +} + +button > p{ + text-transform: capitalize; + font-size: 200%; +} \ No newline at end of file diff --git a/TPSI/costanzo_francesco/sito_portfolio/suDiMe.html b/TPSI/costanzo_francesco/sito_portfolio/suDiMe.html deleted file mode 100644 index f174c891..00000000 --- a/TPSI/costanzo_francesco/sito_portfolio/suDiMe.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - -