Thema: Tech

  • WordPress Debugging

    Debug Bar Debug Bar Taxonomies Debug Bar Post Types Debug Bar Shortcodes Kint Debugger

  • You might not need JavaScript

    http://youmightnotneedjs.com/

  • Quoted of the Web: „PHPs badness is its advantage“

    I love Python, I think JavaScript is sort of OK and I did a lot of serious programming in ActionScript 2&3, both of which are quite simular to JS. I was basically forced into doing PHP by the market. I never really liked PHP but I really never hated it either. The thing about PHP…

  • WordPress Path to actual active theme / Pfad zum eigentlich aktiven Theme

    preg_replace(„/\/\w*?\.css/“, „/“, get_stylesheet_uri()); Gibt den Pfad des aktiven Themes zurück, auch wenn dies ein Child-Theme ist. Vorrausgesetzt, das Child Stylesheet ist mit WordPress Bordmitteln im Theme eingebunden und aktiviert. Returns the path of the actual active theme, even if this is a child theme. This only works if the child themes stylesheet is included with…

  • Clear Scrollback History in iTerm2

    printf ‚\e]50;ClearScrollback\a‘

  • jQuery Spreadsheets Overview / Tabellenwidgets Übersicht

    http://jspreadsheets.com/

  • Show Active Web VHosts on Linux

    List all active apache web vhosts on Ubuntu/Debian Linux / Liste alle aktiven Apache Web VHosts auf einem Ubuntu/Linux Server auf: ls /etc/apache2/sites-enabled | sed ’s,\s,\n,g‘ | sed ’s,^,/etc/apache2/sites-enabled/,g‘ | xargs cat | grep -v „#“ | grep ServerName | sed ’s,ServerName,,g‘ | sed ’s,\s,,g‘

  • Adding a user to a group on Mac OS X

    Auf Mac OX X einen User einer Gruppe hinzufügen: sudo dseditgroup -o edit -a [UserNameToAdd] -t user [Groupname]

  • World Map

    jVectorMap

  • WordPress Updates ohne/without FTP

    Disable FTP requirement for Pluing Installations and Updates / FTP Anforderung für Plugin und Updateinstallation deaktivieren: //add to wp-config.php define(‚FS_METHOD‘,’direct‘);

  • WordPress – Does Author have Posts or not? / Hat der User Posts oder nicht?

    <?php     if (count(query_posts(‚author=‘.get_current_user_id().’&posts_per_page=5′)) > 0)     {         //User hat posts / User has posts     } else {         //User hat KEINE posts / User has NO posts     } ?>

  • Freakin‘ Cool JavaScript ’n‘ jQuery Stuff

    Gridstack.js Midnight.js Animisition Material Design Preloader Youtube Background Video jPanel Menu Countable.js Simple DropDown List Effects Scrollpath Questionmark.js ifvisible.js Offline.js Pace.js Pongstragr.am

  • WordPress Plugin Pfad/Path

    Pfad zum Plugin in WordPress / Path to plugin in WordPress plugins_url().“/[PluginDirectoryName]“

  • URLs in WordPress

    site_url(); bloginfo(„wpurl“); //check this! Returns Root Domain URL without trailing slash. home_url(); Returns URL of the WordPress Home target without trailing slash. Usually is the same as the root domain, but needn’t be! admin_url(); Returns the URL leading to the WP Admin directory including trailing slash.

  • Letztes URL Element mit Inhalt / Last URL Segment with content

    array_pop(array_filter(explode(„/“, $_SERVER[‚REQUEST_URI‘]), function ($val){return (strlen($val) > 0);})); (Das ist PHP / This is PHP) is_int($thisValue = array_pop(array_filter(explode(„/“, $_SERVER[‚REQUEST_URI‘]), function ($val){return (strlen($val) > 0);}))) ? $thisValue : false; This command only returns a value if the snippet retrieved is an Integer (better for grabbing IDs) – otherwise it returns false / Dieser Befehl gibt den Wert…

  • WordPress Template Hierarchy Diagram

    WordPress Template Hierarchy Diagram

  • Sprachupdates in WordPress deaktivieren / Disable WordPress language updates

    Das hier in die functions.php des aktiven Themes eintragen / Add this to the active themes functions.php: add_filter( ‚auto_update_translation‘, ‚__return_false‘ );

  • PHP

    PHP

    PHP ist die Standardprogrammiersprache für serverseitige Webprogrammierung. Seit 1993 ist sie tägliches Werkzeug von Websoftwareentwicklern weltweit. Die wichtigsten und größten Websoftwareprodukte werden in PHP entwickelt, unter anderem auch so namhafte Websites wie Facebook. PHP ist die einzige populäre Programmiersprache, die wirklich domänenspezifisch ist – PHP wird ausschließlich zur serverseitigen Webprogrammierung eingesetzt.

  • JavaScript

    JavaScript

    JavaScript ist die clientseitige Programmiersprache des Web und hat in den letzten Jahren auch auf dem Server wieder eine Renaissance erfahren. Keine Sprache wächst zur Zeit so schnell wie JavaScript und mit den immer wichtiger werdenden Webtechnologien wächst auch die technologische Bedeutung von JavaScript. JavaScript enthält aus Marketinggründen den Namen und eine ähnliche Syntax wie…

  • HTML 5

    HTML 5

    HTML 5 ist die Dokumentbeschreibungssprache des Web, das Fundament auf dem alle heutigen Webapplikationen und Websites ruhen. Moderne HTML Dokumente ist plattformunabhängig und bieten trotzdem zahlreiche Eigenschaften, die die Grenze zu normalen Programmen immer stärker verschwimmen lassen. Passend dazu die Entwicklung der mobilen Endgeräte wie Smartphones und Tablets, die die Grenze zwischen Computer, Buch und…

  • CSS 3

    CSS 3

    CSS – Cascading Style Sheets – ist die Gestaltungssprache des Web. Das Schriftbild, das Verhalten von Bildmaterial, die Reaktionsfähigkeit von Websites auf mobile Endgeräte und das allgemeine typografische und interaktive Verhalten einer Website oder einer Webapplikation werden mit CSS gesteuert. CSS ist eine Dokumentsprache, die speziell für Gestaltung ausgelegt ist und wird mittlerweile in der…