Category: Development
-
Working with React joinClasses
Note: joinClasses is now deprecated and you should use classnames. There is an explanation of how to use classnames at the end of the article. React has slowly been coming together for me over the past few weeks as I have slowly moved from “how do I get this thing to work?” to “how can I…
-
Dynamically Add Classes with React classSet
Note: React.addons.classSet is now deprecated and you should use classnames. There is an explanation of how to use classnames at the end of the article. Earlier today, I needed to add some classes to a link. One class was passed in through a prop, but the other class would be added based on a boolean condition.…
-
Increase GoDaddy max_execution_time
I recently moved a couple of my sites from Dreamhost to GoDaddy’s managed WordPress hosting. While one of the websites migrated perfectly fine, the other website had issues with the WordPress importer failing. :/ My best guess of what was happening is that the GoDaddy max_execution_time was set quite low, which was causing the importer…
-
So, You Want to Learn to Program?
An old friend of mine got in touch with me today and asked: Hey man… Best idea for beginning to learn programming? I was actually very excited when my friend reached out because, in my opinion, learning to program is something that can only enhance one’s possibility of advancement in many careers. But, Before You…
-
Users Do the Damnedest Things
QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv. — Bill Sempf (@sempf) September 23, 2014 I had a good laugh over this tweet yesterday when I read -1 beers. After all, who the hell orders negative beers? But as…
-
Print PHP Stack Trace
I was having a bit of trouble tracking down exactly where a method was getting called from today. Usually a search in my project directory will turn up the result very quickly, but I wasn’t having luck with PHPStorm for some reason. So, the next best thing was to get a stack trace so that…
-
Dogfood Your Products
Of all of the greatness at the Automattic grand meetup this year in Utah, one of the most impactful moments was Andrew Spittle’s call to do a better job of dogfooding our apps. For those who don’t know, dogfooding is the practice of using your own products. This goes a bit beyond simply testing products.…
-
Creating JavaScript Keyboard Shortcuts with jQuery
I recently added a keyboard shortcut to a project I was working on. And while I have used the jQuery Hotkeys plugin for adding keyboard shortcuts recently, I didn’t use a plugin for this project since I only needed a single keyboard shortcut. Taking a large bit of inspiration from Krasimir Tsonev, who also documented…