Johannes KalmaLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Vrijdag leek de https van een van mijn domeinen niet meer valid te zijn. Google chrome geeft dan melding dat ‘something is interfering with your secure connection’. Het vernieuwen van certificaten is een automatisch proces. Maar toch maar ff gechekt.
Op onze mailserver draait spamassassin om spamberichten te filteren. Dat gaat best aardig. Ik zal in deze post wat stats gaan bijhouden. Per maand de hits: door spamassassin geflagged als spam en missed: spamassassin had deze gemist en zijn handmatig naar het leerfilter van spamassassin gecopieerd.
Today had to write a line in a ksh script that would create an empty file of empty the file if it already existed. My shell script knowledge had become a bit rusty hear. In my head I thought the command touch would help me here. But touch does no more than create a file if not exists, but if the file exists then leave the content untouched, just set the modification and the access time. So no use.
Ik had weer behoefte om wat te gaan pielen. Ik was op internet wat roterende ‘dingetjes’ als overlay van een foto tegengekomen. Dus dat moest ik ook even uitproberen. Gewoon 2 eenvoudige svg objecten. Een roterend vierkant en driehoekje met als achtergrond een foto van mezelf.
Allereerst heb ik in inkscape 2 svg objecten gemaakt. Gewoon wat lijnen tekenen, kleurtje geven en opslaan…
Het standaard bestandsformaat van Inkscape is al svg en zou direct als plaatje op het web gebruikt kunnen worden. Probleem is dat dan de hele pagina met heel veel witruimte omheen zit wordt opgeslagen. Daarom moet de paginagrootte eerst ‘even’ aan het object worden aangepast. Selecteer daarvoor het object en kies in het menu: Edit > Resize Page to Selection. De standaard svg waarmee inkscape alles saved bevat veel overhead. Daarom heb ik voor het opslaan van dit plaatje voor gebruik op internet gekozen voor Save as ‘Optimized SVG’. Dan blijft de hoogst noodzakelijke info over in het bestand. En een SVG is ‘gewoon’ een xml formaat. De paarse driehoek in SVG formaat:
Waar vroeger flash of andere plugins voor beweging nodig was, volstaat nu wat eenvoudige css.
@keyframes kf-spin-driehoek {
from {transform:rotate(0deg);}
to {transform:rotate(360deg);}
}
.spin-driehoek {
animation-name: kf-spin-driehoek;
animation-duration: 15000ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
Ik heb vervolgens de inhoud uit het svg-bestand gecopieerd en als html in deze pagina geplakt. Samen met nog een vierkant, wat css codes als @keyframes rotate, animation en styling om de boel op zijn plek te houden, levert dit resultaat.
Last weekend I did an upgrade of my Laptop from Ubuntu 18.10 to 19.04. And today I noticed that all my desktop shortcuts where rendered in just .desktop shortcuts. Clicking opened them just as tekstfiles in the Gnome-editor.
That’s very not convenient. It looks like that some functionality in the latest Nautilus (the gnome filemanager) incarnation where moved to extensions or soever. Leaving me with a bunch of unusable chrome-ejrwhekr.desktop files.