Zum Inhalt springen

Archiv für die Kategorie "Gebastel"

WordPress Kommentare DSGVO konformer machen

Seit kurzem werden die IP-Adressen, die (m)eine WordPress-Installation standardmässig bei einem Kommentar abspeichert, vorher anonymisiert:

/* ---------------------------------------------------------------------
* IP Adressen anonymisieren in den Kommentaren
* --------------------------------------------------------------------- */
function wbr_anonymize_commentip( $comment_author_ip ) {
// ipv4: 123.234.111.222 => 123.234.xxx.xxx
// ipv6: ?
$out = preg_replace('/^(\d+\.\d+)\.\d+\.\d+$/i','$1.xxx.xxx',$comment_author_ip);
return $out;
}
add_filter( 'pre_comment_user_ip', 'wbr_anonymize_commentip' );

Das ist noch Work In Progress. Wenn man die IP komplett weg haben will, geht auch ein

/* ---------------------------------------------------------------------
* IP Adressen löschen in den Kommentaren
* --------------------------------------------------------------------- */
function wbr_delete_commentip( $comment_author_ip ) {
return '';
}
add_filter( 'pre_comment_user_ip', 'wbr_delete_commentip' );

Zwar habe ich noch ein Plugin am Start, welches die IPs nach einigen Tagen aus der DB löscht, aber ...

DWNTLETSIEB* revisited

No, websites do not need to look exactly the same in every browser, but while styling a details/summary element recently, I thought I had found smart way to make the default "open/closed" markers behave visually a bit nicer without resorting to re-invent several wheels and hacking my way with "::before" contents:

.acc-trigger {
list-style-type: none;
}
.acc-trigger .section__heading {
color: #900;
cursor: pointer;
display: inherit;
list-style-type: disclosure-closed;
list-style-position: inside;
}
.acc-item[open] .section__heading {
list-style-type: disclosure-open;
}
.acc-item .content {
margin-left: 1.25em;
}

Problem is: even without looking at another platform, Firefox, Safari and Chrome on my Mac can't find a common ground on how this should be rendered.

Firefox is spot on to my intentions:
A ...

Tick, Trick und Scheisstrack

Jetzt also #deletefacebook?

Hm.

Ich finde es ja einerseits gut, dass endlich (endlich?) mal die Diskussion darüber aufkommt, was Facebook (hier stellvertretend für alle Datenmolkereien genannt) so eigentlich als Geschäftsmodell entwickelt hat.
Andererseits geht mir die Kritik an der massiven Profilisierung noch nicht weit genug; immerhin ist Facebook in der Lage, über jeden Besucher einer Webseite, die entweder Facebook Trackingpixel enthält, oder den Facebookcode für Likebuttons oder "Facepiles" einbindet, Informationen einzusammeln und als "Schattenprofile" anzulegen, inklusive der Historie der so besuchten Seiten. Zusammen mit Erwähnungen aus Beiträgen angemeldeter User, E-Mailadressen aus deren Adressbücher, IP-Adressen und Browserfingerprints lassen sich ...

Syndicate some Blogposts from WordPress to Kirby with the REST API

New year, old problems, new Website -- this was my reasoning during the christmas holidays, and so I decided to completly wipe my "About me" website, making it a simple hub of my diverse activities and interests instead of the old "hey, look how cool experienced I am, come work with me and give me all your money" thing.
I decided to build the site with Kirby, a lovely file based CMS which I have used in the past (for example to drive our Frankfurt Open Device Lab website). Kirby is very flexible, has a stellar documentation, a nice API, and makes zero assumptions on how you want to build your site, and besides being file based, it offers a very customizable backend, if need be.

Now, one of the things I wanted on the new site was a way to display the latest posts from here, my blog, but only those relating to the topics of Design, Webdevelopment and the like.

With a little bit of diving into the WordPress REST API, this turned out to be a fairly simple task for my Kirby-site. Basically this REST API allows me to "get" the infos needed on various objects of my WordPress site, by calling the API's entry points and telling it what I want.

WordPress 4.9 - Tipton

This release features Customizer improvements, including the ability to save customization changes as drafts, schedule them to go live at a certain time, and letting other people preview the changes easier. To improve code editing in the admin we've introduced syntax highlighting and error checking to make things more robust and harder to break.
wordpress.org

Nonfunctional

Ein lustiges Detail aus der google Streetview der ISS International Space Station.

Fuck it, ship it. :-)

WordPress 4.8 "Evans"

Eine neue Version des populären CMS ist erschienen, und kann über den Adminbereich oder manuell per Download installiert werden.

Version 4.8 of WordPress, named “Evans” in honor of jazz pianist and composer William John “Bill” Evans, is available for download or update in your WordPress dashboard. New features in 4.8 add more ways for you to express yourself and represent your brand.
wordpress.org

Ascii Map. Zoomable World Map in your console

Wie geil ist das denn bitte?!

MapSCII - The Whole World In Your Console.
A node.js based Vector Tile to Braille and ASCII renderer for xterm-compatible terminals.
Try it yourself! Open your Terminal and enter => telnet mapscii.me < = (on OSX and Linux, use putty on Windows) github.com/rastapasta/mapscii

via Nerdcore

Sliding underline

In a current project, the designer asked if we could add a little gimmick to the horizontal navigation, which consists of just a few one-level items. Of course the idea is visual-, desktop-, and mouse-input-device-centric, and a discussion about other devices and the resulting state of the navigation ensued, and we agreed to treat this as a nice to have if everything else is cared for.
Nevertheless I was intrigued; would it be possible to animate a border to 'slide' from one menu item to the next on (mouse)over? So if you 'leave' the currently hovered item, the line should ...