Thema: Tech

  • PHP Snippet: Slugify a string

    PHP Snippet: Slugify a string

    This one has some extra stuff for German characters in it. Probably not needed because it’s covered by iconv, but whatever: function slugify($str) { $returnMe = strtotime(trim(@iconv(‚UTF-8‘, ‚ASCII//TRANSLIT‘, $str))); foreach ([ “ “ => „_“, „/“ => „-„, „“ => „“, „.“ => „-„, „ü“ => „ue“, „ö“ => „oe“, „ä“ => „ae“, „ß“ =>…

  • HyperHTML Talk

    HyperHTML Talk

    Yesterday I gave a short talk on HyperHTML at the Web Worker NRW Meetup, this time at sipgate. Nice talks, lot’s of nice people, had a great time. Here are the slides.

  • PHP Snippet: Check if code is running on a production environment

    PHP Snippet: Check if code is running on a production environment

    function isLive($liveTld = „.de“) { $homeUrl = (isset($_SERVER[‚HTTPS‘]) && $_SERVER[‚HTTPS‘] === ‚on‘ ? „https“ : „http“).“://$_SERVER[HTTP_HOST]“; $returnMe = false; if ( (!(strpos($homeUrl, „.local“) !== false)) && (!(strpos($homeUrl, „.intra“) !== false)) && (!(strpos($homeUrl, „stage“) !== false)) && (!(strpos($homeUrl, „staging“) !== false)) && (strpos($homeUrl, $liveTld) !== false) ) { $returnMe = true; } return $returnMe; }

  • PWA – Progressive Web Application

    PWA – Progressive Web Application

    A blurb and linkselection on PWAs is at least 2 years overdue, but better late than never. So here’s an overview, by no means covering every aspect: PWAs – Welcome to the mobile revolution PWA – Das App Model der Zukunft How to build a PWA (CreativeBloq) Wikipedia Artikel (deutsch) PWA Google Talk PWA Rocks

  • Material Design Theming for Angular

    Material Design Theming for Angular

    The complete guide to Angular Material Themes Angular Material (official)

  • The WordPress Gutenberg Editor

    The WordPress Gutenberg Editor

    The new Gutenberg Editor, due for the WordPress release 5.0, will hugely up the game for content editing and control over content layout, visuals and constrolled visual design options. Look forward to it. Here are some links: WPBlocks – A Blog on the Gutenberg Editor (Yepp, there is such a thing.) The official Gutenberg Documentation…

  • WordPress Gear

    WordPress Gear

    WordPress Gear

  • List all usergroups on a Linux system

    List all usergroups on a Linux system

    All groups configured on the local system (usually is all you need to know): cut -d: -f1 /etc/group | sort Really all groups including LDAP and other potential remotely controlled group assignments: getent group | cut -d: -f1 | sort

  • Minimalist CSS Toolkits

    Minimalist CSS Toolkits

    Pavilion MiniCSS VitalCSS Furtive Bijou Milligram PureCSS Spark TypeBase Hoisin CuteGrids Schema CSS Emerald Siimple CoreCSS Bulma OutboxCraft PowerToCss Vanilla Framework InviCSS Look CSS Muffin CSS Materialize

  • PHP Snippet: isValidEmail­Address($email)

    PHP Snippet: isValidEmail­Address($email)

  • Practical HTML UTF8 Characters

    Practical HTML UTF8 Characters

    Zero width space: ​ Bullet: ● ● Fisheye Bullet: ◉ ◉ Hollow arrow right: ⇒ ⇒

  • Yii Framework

    Yii Framework

    Yii is one of the lesser known PHP Frameworks, but it has been around for quite some time and is notably popular with professional developers who hate faffing about when building web applications. It’s a sort-of secret tip and go-to toolkit for those who hate the shoddy and sub-par data- and application models of WordPress,…

  • Laravel Content Management Systems

    Laravel Content Management Systems

    October, Asgard, Lavalite, Coaster, Photon, Pyro

  • MySQL – Change Table Collation

    alter table TABLENAME convert to character set utf8mb4 collate utf8mb4_unicode_520_ci;

  • CSS BEM & OOCSS

    CSS BEM & OOCSS

    BEM OOCSS

  • Rasmus Lerdorf, creator of PHP on PHP in 2018

    Rasmus Lerdorf, creator of PHP on PHP in 2018

    „PHP runs crappy code really, really well.“ – Rasmus Lerdorf Rasmus Lerdof PHP Talk on PHP https://www.youtube.com/watch?v=rKXFgWP-2xQ

  • OWASP – Open Web Application Security Project

    OWASP – Open Web Application Security Project

    OWASP

  • Get the clients IP address

    Get the clients IP address

    $clientIpAdress = isset($_SERVER[‚HTTP_CLIENT_IP‘]) ? $_SERVER[‚HTTP_CLIENT_IP‘]:isset($_SERVER[‚HTTP_X_FORWARDED_FOR‘]) ? $_SERVER[‚HTTP_X_FORWARDED_FOR‘] : $_SERVER[‚REMOTE_ADDR‘]; Do *not* use this on it’s own for security purposes!

  • HTML & CSS Web Security

    HTML & CSS Web Security

    Mächtiges CSS und mächtiges HTML eröffnen neue Möglichkeiten – auch für Angreifer. Hier eine Liste an Sicherheitstchecklisten und HTML Security Ratgebern: The HTML & CSS Security Checklist HTML5Sec CSS ID Security Flaw Disallow IDs in selectors (csslint Feature)

  • Platzverbrauch ermitteln

    Platzverbrauch ermitteln

    du -cksh [Verzeichnis] du steht für „disk usage“, die Parameter für c -> Gesamtsumme anzeigen, k -> 1000 Byte Blöcke (statt 1024 Byte), s -> Summe, h -> human readable (menschenlesbar)

  • WordPress + Laravel

    WordPress + Laravel

    WordPress & Laravel Laravel WP Backend Corcel