Author: Cody Snider

Stop Calling it AI

The term AI is getting bounced around a lot alongside terms like machine learning. It may feel like it’s a new, insidious entity that is taking over your digital life. It’s creeping into your social media, cameras and mobile devices. Well, I’m here to tell you that a machine that thinks like you and I

Continue Reading →

Registry Pattern Hinting with PHPStorm

You probably use the registry pattern. Having a common place to store components you’ll need throughout your application is a must. The most frustrating part about this pattern is your IDE probably doesn’t know what you are putting in or getting back out. Our most common case is the Doctrine EntityManager, but this easily applies

Continue Reading →

Cannot declare class, PHP?!?

One of the most annoying errors to debug when working with a litany of autoloaders using required instead of include_once in PHP: PHP Fatal error: Cannot declare class SomeClass, because the name is already in use in /somewhere/SomeClass.php on line 1234 What makes it annoying is the lack of a trace. You know it was only

Continue Reading →

Get Video Duration with FFMPEG and Python

For this to work, you’ll need FFMPEG and Python on your machine or server already. Configuration of this is beyond the scope of this post, but installation through yum or apt-get should be sufficient (or equivalent on a Windows or Mac). To pull the duration of a video from any machine with FFMPEG and Python

Continue Reading →