Script

Filter
2021-12-24

Installera gammal HP-skrivare som krånglar i Windows 10

Windows
Problemet kan vara att gamla drivrutiner som inte fungerar ligger kvar och blockerar.
3
1. Please remove any existing copy of your printer by selecting Remove Device, then reboot your computer.
2. Next, right-click the Start icon and select Run, paste the following and press OK: printui /s /t2
3. Remove any listed HP printer, be sure to select Remove driver and driver package, press OK and confirm any prompt.
4. Plug in the printer (usb) and let windows find the driver.
2021-07-22

Local Apache sites

Php
Script som visar länkar till alla virtuella hosts i en WAMP-installation
2
<?php
echo "<!DOCTYPE html>
<html>
<title>Local Sites</title>
<body>";
$lines = file("c:/wamp64/bin/apache/apache2.4.37/conf/extra/httpd-vhosts.conf");
foreach ($lines as $line) {
    $words = preg_split("/[\s]+/", trim($line)); // " ", \r, \t, \n, \f
    if ($words[0] == "ServerName") {
        echo "<a href=\"http://{$words[1]}\">{$words[1]}</a><br />";
    }
}
echo "</body>
</html>";
?> 
2021-05-04

Tonad bakgrund

Css
Tonad bakgrund, här med animation
1
body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* alt: radial-gradient(position, shape or size, colorstops) */

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
} 
2021-05-04

Google tips

Tips & tricks
10 tips för effektivare sökningar
1. Citat för "exakt match"
2. Både AND och
3. (Antingen OR eller) något
4. Detta, men inte -detta
5. "Flera olika *"
6. site:webman.se på en webbplats
7. filetype:pdf filtyp
8. Nummer mellan 2003..2010
9. Före år before:2010
10. Efter år after:2015
2020-07-23

Screen resolutions

Grafik
Some standrad screen resolutions and sizes with the same ratios
2
720p = 1280 x 720 (HD), ratio: 16/9
1080p = 1920 x 1080 (2K, FHD, Full HD), ratio: 16/9
1440p = 2560 x 1440 (QHD, Quad HD, 4 x HD), ratio: 16/9
2160p = 3840 x 2160 (4K, UHD or Ultra HD, 4 x FHD), ratio: 16/9
4320p = 7680 x 4320 (8K, 16 x FHD), ratio: 16/9

Some sizes with same ratio (16/9):
1600 x 900
1200 x 675
1040 x 585
800 x 450
640 x 360
320 x 180
256 x 144
128 x 72
80 x 45
64 x 36
48 x 27

Some sizes with older standard ratio (4/3):
1600 x 1200
1280 x 960 (sxga)
1200 x 900
1024 x 768 (xga)
800 x 600 (svga)
640 x 480 (vga)
320 x 240 (qvga)
160 x 120
120 x 90
80 x 64
48 x 36
32 x 24

Se även "Resolution calculator" under "Tools" i WebMan för andra storlekar
🙂