No. 804 / One repo, one love
I am really so serious about this right now.
I am really so serious about this right now.
I’m writing this because I just saved 8 – 10 lines of code by using printf(). I know it’s pretty easy to rely on concatenation to print strings, but liberal use of printf() and sprintf() can add clarity to your code and cut complexity. Take the following, for example: No big deal. Now,…
Read more →
I recently created a Mediatemple (dv) hosting account, and am moving all of my sites over to it. I’ve still got some databases to move, and some WordPress installations to relocate, but I have successfully moved all of my most important Subversion repositories over. I rely on heavily on svn, and wanted to…
Read more →
Excuse the title, please. It’s a reference to an old Shaq song (yes, a Shaq song) and I couldn’t pass up the opportunity to use it. As a staunch supporter of the wonderful WordPress platform, I often find myself touting the wonders of WordPress and badmouthing other popular and similar PHP-based solutions — most notably Drupal, note the…
Read more →
Excuse me while I work out the kinks. Hope you find the new theme to be interesting.
My buddy John C. Bland II mentioned some debugging functions I wrote up a while back while we worked together on some code for Elevate (an amazing company, by the way). I’d first seen something very similar to his dump() function at a previous job (although it was named debug() there), so I felt…
Read more →
Really quick, here’s a function and corresponding hook that will loop through the links in your menu, figure out which ones don’t begin with a “/” or “http” and prepend them with your site’s URL and a “/”: