Scrum Master (PSM-I) Certified
The Scrum.org Professional Scrum Master I assessment is a 60 minute time boxed test where you answer 80 multiple choice type questions. The passing score is 85%. Last time, for my PSD I certification,...
View ArticleWrite Unit Tests For Your WordPress Plugin Using PhpStorm Code Completion
Git clone the WordPress develop repository somewhere on your hard drive: git clone git@github.com:WordPress/wordpress-develop.git Comment out the class_alias() functions in phpunit6-compat.php because...
View ArticleWordPress REST API Quickstart
The WordPress REST API has been available since 4.7. It’s robust, consistent, and nifty to work with. Why? Backend and mobile developers can use other frameworks while still keeping WordPress around...
View ArticleYour Password Hashing Algorithm Is Bad And You Should Feel Bad
No $pw = md5('password'); $pw = md5('salt' . 'password'); $pw = md5('complicated_salt' . 'password'); $pw = md5('complicated_salt' . strrev('password')); // Don't be clever. Where md5() = sha1(),...
View ArticleSwitchers Guide To Windows 10 (For Web Developers)
I’m an OS X user from 2003 until 2011 and a Ubuntu user from 2012 until Windows 10. The freedom to make irrational decisions. Bash Here are two (of many) options: Install Git for Windows. Git for...
View ArticleInstall Phalcon PHP On Windows 10
A common misconception is that you need a web server like IIS, Apache, or Nginx to get started with PHP7 development. In fact, PHP7 has its own built in web server that you can invoke at the command...
View ArticleI just want a phone. Is that too much to ask?
Subtitle: How to disable Google Now Cards (that keep annoying you) when you swipe left (right? up? argh, fuck this shit!) I own an Android phone. In an effort to get rid of a feature that came with...
View ArticleMoving Half a Million Database Tables to AWS Aurora
And I helped. Part One Part Two (spoiler: it worked)
View ArticleNamespaces and Objects
Markdown editing for WordPress. Parsedown Party is a new WordPress Plugin I wrote with PHP namespaces, Composer support, 90% code coverage, and Travis-CI for automatic testing and releases. While...
View ArticleThe Need For Speed On My Dell Inspiron 7000
I got a Dell Inspiron 7000 preloaded with Windows 10 for Christmas. The defaults were terrible. Here’s how I tweaked it. A picture is worth a weekend of my life, wasted: Disable Encryption Encryption...
View ArticleGmail For Business aka GSuite Promo Codes
I use GSuite at Pressbooks. They used GSuite when I worked at SSENSE. They used GSuite when I worked at Frank And Oak. Honestly, does anyone not use GSuite? Then these promo codes are for you. Step 1:...
View ArticlePHP7 Learning Resources
PHP made a lot of mistakes. Many are still in the language today. However PHP is 23 years old now. PHP7, released December 2015 is a huge improvement over older versions. PHP7 outperforms Ruby, Python,...
View ArticleWrite Unit Tests For Your WordPress Plugin Using PhpStorm Code Completion
Git clone the WordPress develop repository somewhere on your hard drive: git clone git@github.com:WordPress/wordpress-develop.git Comment out the class_alias() functions in phpunit6-compat.php because...
View ArticlePhpdbg Is Much Faster Than Xdebug For Code Coverage
I work on a project that uses Travis CI to test and build against three jobs. (PHP 7.0, 7.1, 7.2) I recently ran into a roadblock where Travis would fail with “No output has been received” on the job...
View ArticleHowto Fix Headset, Headphones with a Microphone, on a Dell Laptop
This was annoyingly unobvious, but when you plug your headset into your audio jack and the MaxxAudioPro popup appears: One of these rows is not like the other. Click the word “Headset” (because it’s a...
View ArticleRefactor Your Slow Form Using PHP Generators and Event Streams
Your form will still be slow but the user experience will be better. They will see a progress bar and see status updates in real time. The idea is to refactor something like this: /** * A task that...
View ArticlePcov Is Better than Phpdbg and Xdebug for Code Coverage
Since the last time, I changed from phpdbg to pcov. Results? pcov is faster, uses less memory, is more accurate than phdbg. Phpdbg Time: 4.09 minutes, Memory: 3.32 GB Pcov Time: 3.48 minutes, Memory:...
View ArticleMachine Learning and AI using PHP
Montrealer’s who won’t let PHP go (pun intended), get in on that sweet venture capital? Here are two fantastic PHP options for doing machine learning (ML), artificial intelligence (AI), and...
View ArticleGet Your Type On
A nice article about type safety in PHP 7+ on performance enhancing drugs when using Psalm (whoops, I mean Psalm): https://psalm.dev/articles/php-or-type-safety-pick-any-two If you don’t want to...
View ArticleGit Squash at the Command Line with a Bash Script
Useful if the commits on your branch are sloppy, and you want to clean them up, and you don’t mind that your new commits will be file based instead of time based. What does that mean exactly? Let’s say...
View Article