Software Engineering in WordPress, PHP, and Backend Development

Category: Notes (Page 42 of 49)

Notes on programming-related problems that I’ve encountered while working on various projects.

Meeting Matt Mullenweg

For the past couple of years, I’ve done quite a bit of development on the WordPress Platform. Specifically, I…

This past weekend, my team and I had a chance to hang out at WordCamp Atlanta. Overall, we had a great time – the meetup was especially fun as it was great to chat with a number of different bloggers, developers, designers, and teams that are all active in the WordPress Community. Continue reading

Filtering Custom Controller Actions and Responses in Rails

I’ve been finishing up an application that has a number of custom controller actions. All except one action – the approved action – require user authorization before retrieving any information from the database.

Specifically, I wanted to authentication the administrator for all actions except the approved action for both JSON and XML responses (but not HTML responses).

Here’s how to do it in Rails 3:

Continue reading

Reroute Chrome’s alert() Dialog to the Console

I spend the majority of my time working in Chrome. Whenever I’m working with a lot of JavaScript, I tend to print information to the console for review.

The thing is, typing alert() is much faster than typing console.log() but alert() is exceptionally more annoying. For those of you that want to save a few keystrokes, copy this simple script into a file and include it before any other JavaScript on your site:

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑