Software Engineering in Web Development, Backend Services, and More

Category: Notes (Page 42 of 50)

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

PEAR Command Not Found

Over the weekend, I updated my MAMP PRO installation to 2.1.0. After doing so, I needed to reinstall PHPUnit via Pear but I hit a snag: I kept receive the “pear command not found” console message.

Pear Command Not Found

Luckily, it’s a relatively easy fix but it does come with a caveat:

Continue reading

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

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑