Workaday Reading

Player



"An instance of the Player class is created when any of the Video.js setup methods are used to initialize a video. In the following example, the data-setup attribute tells the Video.js library to create a player instance when the library is ready."

read »

Workaday Reading

components



"The architecture of the Video.js player is centered around components. The Player class and all classes representing player controls and other UI elements inherit from the Component class. This architecture makes it easy to construct the user interface of the Video."

read »

Workaday Reading

Git Catastrophes and Tips to Avoid Them



"In this post, I'd like to highlight some git features that might be less used/known, but can end up saving your @$$ when things go south in the codebase. Fortunately, it is really hard to irrevocably mess something up with git, as long as you have the .git hidden folder in your project intact!"

read »

Updating MAMP (ramblings whilst trying to update mamp)

Updating MAMP (ramblings whilst trying to update mamp)

I am a MAMP user. I’ve used it since March of 2014. I have lot’s of projects in my MAMP’s htdoc directory. I could probably clean them out/archive them, more often then I do but I don’t (I have it all on Github so there’s really no reason why). In any case, I quickly learned … Continued

Workaday Reading

How To Enable SFTP Without Shell Access on Ubuntu 16.04



"SFTP stands for SSH File Transfer Protocol. As its name suggests, it's a secure way of transferring files to a server using an encrypted SSH connection. Despite the name, it's a completely different protocol than FTP (File Transfer Protocol), though it's widely supported by modern FTP clients."

read »

Moving a site from Drupal to WordPress

Moving a site from Drupal to WordPress

Exporting from Drupal Use Views Data Export module and these instructions. When exporting tags there’s a couple options. 1. You can have all the added tags in one field value. 2. You can export each taxonomy individually. Depending on how you want the tags within the WP site you may prefer one way or another. … Continued

Alfred Mac OS X Dark Mode Workflow

Alfred is great, I’m absolutely reliant on it. Everyone has their workflow lists and maybe I’ll do mine sometime, but here’s a quick one: alfred-dark-mode

Programmatically Flush WordPress Permalink Rewrite Rules

When adding rewrite rules with add_rewrite_rule add this to the file you are editing and avoid clicking save on the permalink settings page. // do not use on live/production servers add_action( 'init','maybe_rewrite_rules' ); function maybe_rewrite_rules() { $ver = filemtime( __FILE__ ); // Get the file time for this file as the version number $defaults = … Continued

WordPress Admin Taxonomy Sidebar Resize

I’m currently setting up an admin for a clients redesign. There’s going to be a hefty amount of categories and I wanted to make the selector in the sidebar resizable for at least a little bit easier viewing. The simple if not completely cross browser friendly (chrome, ff, safari) way to do this is css’s resize.
/* #talent-categoriesdiv is the .postbox the parent box */
.wp-admin #talent-categoriesdiv .inside{
    /*set an initial height, otherwise it will expand to show all rows*/
    height: 300px;
    resize: vertical;
    overflow: scroll;
}

.wp-admin #talent-categoriesdiv .categorydiv{
    height: 100%
}

.wp-admin #talent-categoriesdiv .tabs-panel{
    height: calc( 100% - 78px );
    max-height: unset;
}

[wp_videojs mp4="https://thisbailiwick.com/wordpress/wp-content/uploads/2018/10/taxonomy-resize.mp4"]

Workaday Reading

Global space



"Without any namespace definition, all class and function definitions are placed into the global space - as it was in PHP before namespaces were supported. Prefixing a name with \ will specify that the name is required from the global space even in the context of the namespace."

read »

Workaday Reading

HTTP 2 Server Push



"A year ago, I posted an article explaining the general concept of HTTP 2.0. Today we can finally use it for building websites as it is now supported by major browsers. This article will focus on HTTP 2.0 - Server Push, from what it is, the problems it solves, how to implement it (using commons."

read »