Play To Your Strengths (The Leader’s Serenity Prayer)

Originally published on forbes.com. The role of stretching is often overlooked in the process of growth. When you’re strength training and you lift weights, it stresses your muscles, which triggers the growth process. But if you neglect to stretch afterward, your muscles shorten and become tight, which leads to them becoming weaker, not stronger, and causes damage to your joints and muscles. When leading, it is inevitable that your teams will be stressed at one point or another.

Continue reading...

[Video] It’s broke: how do I fix it? Debugging your code in WordPress

Back in April I gave a talk at WPNYC about debugging. Enjoy!

Continue reading...

A React + Redux WordPress Theme — Version 2.0

It’s that time of year again. I’ve updated this theme, which runs off my open theme + a few minor style tweaks. What’s new in v2.0? It’s all completely under the hood. So you’ll see nothing different here… But I’ll know. First, since I build the theme, react-router hit version 4 and changed everything. There are a whole lot of changes in this theme due to that. One huge benefit to this update is that now it is much easier to integrate state into your redux flow.

Continue reading...

Open Source: To Use Or Not To Use (And How To Choose)

Originally published on forbes.com. You’d like to use open source software, but you’re not sure what criteria you should use when deciding whether to rely on it for a specific project or not. I have a long, complicated history with open source software. I use open source libraries every day in my work, and I’ve developed several criteria for evaluating projects. I got my professional start in tech as the technical co-founder of a news startup.

Continue reading...

On Assholes and Leaders

“If you run into an asshole in the morning, you ran into an asshole. If you run into assholes all day, you’re the asshole.” ― Raylan Givens, Justified The asshole doesn’t see that he is one — that is the true nature of being an asshole. Ultimately being one is truly just a manifestation of selfishness. If you don’t care how your actions affect the people around you, the people around you will see you as an asshole.

Continue reading...

How to set up a local WordPress Vagrant development environment

Setting up a Vagrant box can be painstaking. Here is the process: Install a basic box. SSH into said box. Run a command. If it works, add the command to a provision file. Destroy your box. Run the box again and see if the command works via a provisioning file too. Whether it works, or doesn’t work, back to step 2 and try a new command or try the same command another way – depending of if it worked or not.

Continue reading...

It’s broke: how do I fix it? Debugging your code in WordPress

I had the great honor of speaking at WPNYC this past week. I promised to publish my slides. I also wrote a post about the Tools of the Trade slides.

Continue reading...

Debugging your code in WordPress: Tools of the Trade

As this is going live I am currently giving a talk at @WPNYC the WordPress New York Meetup group. There are two slides I skimmed over due to lack of time, but they are an essential part of the talk. In order to fulfill my promise to provide the complete story I am publishing this post with the full story. Warning, this blogpost is a bit of a braindump. It is intended as notes to use to explore further.

Continue reading...

How to see if a class was added to an element using JavaScript

If you need to see if a class has been added to an element the easiest way is to trigger a new event when you add the class. $(this).addClass(‘someClass’); $(mySelector).trigger(‘cssClassChanged’); The problem with this solution is what happens if you do not have control over the function where this happens. Like if it happens in the WordPress core, and you know that you should never ever change code in the core.

Continue reading...

A Weekly Book Project

I’ve taken a step back from following all the podcasts I’d been listening to, for obvious reasons. I have the 3 I listen to, to keep up with the news… And that’s it. At a certain point, reading more news stories will only make me less effective. In 2015 I set out to read a book a week, and ended up reading 83 books. In order to keep my sanity, I plan to attempt this project again this year.

Continue reading...