What 100% free WordPress theme, is specifically designed for posting code? [i.e. code highlighting, HTML char escaping etc.]?

Is there a .org theme specifically for CODE?

There are NO free themes DESIGNED for posting code in the .org repo. I think “any theme will do” isn’t the best answer. It’s not an answer to the question, but as others here mentioned, there are several plugins available. To which I would add embedding gists from github, which is the best answer I have.

I can’t believe there isn’t a theme in the repo for blogging about code! Anyone want to make one?

Read John Dee's answer to What 100% free WordPress theme, is specifically designed for posting code? [i.e. code highlighting, HTML char escaping etc.]? on Quora

WordPress plugin: Randomize Main Loop Order

This is a plugin I made in response to a Quora post.

I made a plugin for this, in response to this Quora question.

Randomize Main Loop Order

Plugin on Github: JohnDeeBDD/WP-Random-Order-Main-Loop

Just download the .zip from github, then upload it to your site. Let me know if there are any issues.

Read John Dee's answer to Is there a WordPress plugin that will re-arrange my website posts constantly? on Quora

Code on github.com
Code on github.com

Web Scraper

I made a web crawler for Craigslist, that uses Selenium / Codeception to defeat their JS CACHPAs. It’s super useful for a FEW people, there isn’t a commercial application here. I’m using it to get freelance work. Ask me an I’ll give you a password to check it out.


I’m selling access to this software. Try it for free. Tell me how to monetize it somehow.

  • You can use it if you pay me cash. I will only allow 5 people/companies to use it.
  • If you’re a DESIGNER, and want to use it, you may use it if you also get me freelance programming work. In other words any tech person who’s skills don’t overlap mine can use it.
  • You can use it if you can get me freelance work. I am an expert BDD / WordPress / PHP developer
  • You can have the source if you hire me full time. $100k/year, $5000 signing if you want me to move.
  • You can have the source code for $1000

Contact me!
(702)748-5491

Business Stakeholders: How to Describe a Software FEATURE

A feature from the biz perspective

What is a feature?
A feature is an aspect of software that is useful. Anything you can express, that is possible, and that you can afford, can be a feature. A bug is an aspect of software that isn’t useful.

Since we’re talking about development, we’re discussing software features that don’t exist yet. These are features that we would like to build, or existing features that we would like to make better. Describe a feature with should statements:

  • It should email all the clients once a month.
  • The client should have a setting page in the admin area.
  • The plugin should have a custom post type called GPS coordinates for each subscriber.
  • The div should show a timeline of Civil War battles in the footer area.

The next statement you should create is the reason for the feature you are requesting. What is the business value of this feature? Describe the reason by using a “Because”, or “So that”  or “In or that”

  • So that the clients are routinely updated.
  • In order that the user can change the settings.
  • Because we need to store the GPS data.

Alternatively, you can use Gherkin syntax for feature development.

Vanishing Checkbox in WordPress Comment Form

This is the tale of the incredible vanishing checkbox, on WordPress versions 4.9.6 and 4.9.8.

WordPress uses cookies by default to log in users and track who is making a comment. Cookies are small snippets of data kept on a user’s browser. WordPress is trying to deal with the new GDPR regulations. It seems from following Trac, that it’s a giant cluster fuck.

This annoying checkbox was forced onto every WordPress site in the world as of 4.9.6:

As soon as I saw this monster I started making a plugin to roll it back. It was obvious to me that most sites wouldn’t want this, and that it served absolutely no purpose. It comes from a misunderstanding of the law, and a desire to be clever.

 

 

 

 

There is no requirement in GDPR for websites to display a check box for cookie use. None, totally false.

Then comes out 4.9.8 which removed the check-box that was just installed!

However! This revert also breaks functionality. Users who aren’t logged in have no way now of knowing that their comment was submitted.

So the situation as of 4.9.8 is that the comment cookie check box came and went, and now everybody’s site is broken.

You can solve the problem by re-activating the comment check box in the admin SETTINGS >> DISCUSSION, but then you’ll still have the checkbox. Or use this plugin to restore functionality to the way it was.

WordPress Plugin: Change Admin Email

General Chicken publishes a plugin in the .org repo: Change Admin Email Setting Without Outbound Email

As of WordPress 4.9, the administrator cannot change the site admin email without outgoing email setup on the server, and recipient email credentials. This plugin restores the admin’s ability to change this setting without sending a confirmation email.

Plugin in the .org repo
Plugin on Github


Bonus BDD!
As a bonus, for developers I’m distributing some BDD Codeception tests with this plugin. The tests are designed to run via the WordPress module from Codeception. To run them, you’ll need composer, selenium, and chrome. To pull the framework, use the instructions here.

I use this as an example of running tests in multiple environments.

When building this, I used TDD / BDD by creating an acceptance test that worked on v3.9 so that I could run the same test against v4.9. This is overkill, but I wanted to show how to run tests against different environments.