Workaday Reading

CSS flex box last space removed

“By setting the display of an item to flex I am finding the last space is removed from a text string so. Any text that is directly contained inside a block container element (not inside an inline element) must be treated as an anonymous inline element.”


read »

Workaday Reading

General sibling combinator

“The general sibling combinator (~) separates two selectors and matches the second element only if it follows the first element (though not necessarily immediately), and both are children of the same parent element.”


read »

Workaday Reading

When should you be using Web Workers?

“← Back to home When should you be using Web Workers? 2019-06-12 You should always use Web Workers. And in our current landscape of frameworks it’s virtually impossible. Did I get your attention with that? Good. Of course, as with any topic, there is nuance and I will lay that all out.”


read »

Workaday Reading

acf_register_block_type()

“Registers a custom block type in the Gutenberg editor. Blocks are the fundamental element of the Gutenberg editor. WordPress provides many default block types such as paragraph, heading and image. The acf_register_block_type() function can be used to add new block types via PHP.”


read »

Workaday Reading

ACF 5.8 – Introducing ACF Blocks for Gutenberg

“There has been a lot of excitement surrounding Gutenberg, the new block-based WordPress editing experience. One of its most compelling features is the ability for developers to create their own custom block types. This opens up an endless array of possibilities for customization.”


read »

Workaday Reading

Protect our Git Repos, Stop Foxtrots Now!

“Reading Time: 6 minutes Dancers gearing up to do the Foxtrot First, what is a foxtrot merge? A foxtrot merge is a specific sequence of git commits. A particularly nefarious sequence. Out in the open, in lush open grasslands, the sequence looks like this: But foxtrots are rarely seen in the open.”


read »

Workaday Reading

8 Useful JavaScript Tricks

“Each programming language has its own tricks up in its sleeve. Many of them are known to developers, and yet some of them are pretty hackish. In this article, I will show you a couple of tricks I find useful. Some of them I’ve used in practice and others are the new way of solving old problems.”


read »

Workaday Reading

vimeo autoplay=1 no longer working in Chrome

“I recently developed a website that has a streaming video as its full-screen background that autoplays & loops when the website loads. It was working in Chrome until very recently. Google changed their policy on autoplaying video in April, so I believe this may be the reason.”


read »

Workaday Reading

Build your own Command Line with ANSI escape codes

“Everyone is used to programs printing out output in a terminal that scrolls as new text appears, but that’s not all your can do: your program can color your text, move the cursor up, down, left or right, or clear portions of the screen if you are going to re-print them later.”


read »

Workaday Reading

Content negotiation

“In HTTP, content negotiation is the mechanism that is used for serving different representations of a resource at the same URI, so that the user agent can specify which is best suited for the user (for example, which language of a document, which image format, or which content encoding).”


read »