Skip to content

Christopher James Willcock

Enjoy Kaizen

Issues

Issue is a special kind of article post that is a reply to typically some source code, though potentially anything at a source control repository.

https://cjwillcock.ca/2018/08/14/314/

I installed and activated the plugin from my WP Dashboard. After, I found my /feed/mf2/ urls are 404s. I flushed the rewrite rules (Dashboard -> Settings -> Permalinks -> Save Changes).

Works now.

PhpCss

One more little contribution to the useful PhpCss selector parser by Thomas Weinert. In this case, the regular expressions were greedily including combinators in pseudo-class literals, instead of seeing the end of the token.

Before: it saw a:hover>span and errored, saying “there is no such pseudo-class as :hover>span.”

After: it sees a:hover>span and putters along happily with element a, pseudo-class :hover, child combinator >, and element span.

GNU/Linux – more than a name

Students of programming should learn their history. At the very least, not be given an alternative, misrepresentation of history. As important as where you are going, is where you have been. Standing on the shoulders of giants and all that.

Open Source Contribution

I have found the PhpCss library from Thomas Weinert very useful. I used it so much, I found a bug and fixed it. It’s nice that this library has unit tests so I could quickly create a new pattern and expected output, then make my little correction.

Typical programming mistake, a missing plus (+)!