×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
preconnect
or dns-prefetch
resource hints to establish early connections to important third-party origins.
For example to pre-connect google analytics: https://www.google-analytics.com
we should include rel
attribute with preconnect
value:<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
in head
tagaria-label="Twitter"
attribute on a
tag<a href="<?=$hostname?>" aria-label="Sibrdzne" class="bg-logo"></a>
jquery-1.7.2.min.js
was replaced by jquery-3.5.1.min.js
lighthouse
)
Advice: Add rel="noopener"
or rel="noreferrer"
to any external links to improve performance and prevent security vulnerabilities<a class="a_" rel="noreferrer" href="http://orthodoxy.ge" target="_blank" title="მართლმადიდებლური საიტი orthodoxy.ge">orthodoxy.ge</a>
Links that the noreferrer
was used:
orthodoxy.ge
teodore.ge
qadageba.ge
function age($dob) {
// Seconds in a year
$seconds = 31556926;
// Calc. age based on the provided date_of_birth val
$age = floor((time() - strtotime($dob)) / $seconds);
return $age;
}
many to many
relationship user_id
inside user_roles
table must be exactly the same as the id
field inside users
table
Example: if users->id
is bigint(20) unsigned
then user_role->user_id
must be exactly bigint(20) unsigned
php artisan make:model Asset -m -c -r
Long version of the above command would be:php artisan make:model Asset --migration --controller --resource
$Datetime_object = DateTime::createFromFormat('Y-m-d', "2020-12-23");
<?
instead of <?php
then we must configure short_open_tag
setting in php.ini
to on
<?
echo '"short_open_tag" should be ON if we want to use short tags ' ;
?>
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
The type of encoding used on the dataContent-Encoding: gzip
The MIME type of this contentContent-Type: text/html; charset=UTF-8
A name for the serverServer: nginx
The date and time that the message was sentDate: Fri, 30 Oct 2020 14:42:53 GMT
Gives the date/time after which the response is considered staleExpires: Thu, 01 Dec 1994 16:00:00 GMT