Monthly Archives: November 2010

Enable IIS to serve .woff and .svg files

I needed this functionality, too. Here’s how to do it. Amplify’d from sebduggan.com By default, the MIME types in IIS 6 are configured to deliver EOT (as used by IE) and TTF files. But WOFF (Firefox) and SVG (iPhone, iPad … Continue reading

Posted in Uncategorized | Tagged , , , , | Comments Off on Enable IIS to serve .woff and .svg files

Stop WordPress from outputting the canonical link tag

I had a page whose content varied depending on the query string parameters you gave it, so I definitely needed to remove the canonical tag. Amplify’d from pixelpunk.co.uk You can do this quite simply by adding the following to your … Continue reading

Posted in Development, Uncategorized | Tagged , , , , | Comments Off on Stop WordPress from outputting the canonical link tag

Turn on WP_DEBUG to have WordPress kick out error messages

I’m troubleshooting a White Screen of Death (WSOD) problem in my project’s plug-in right now, so this is especially relevant. Amplify’d from codex.wordpress.org Eliminate PHP errors in your plugin. Add define(‘WP_DEBUG’, true); to your wp-config.php file, try all of your … Continue reading

Posted in Development, Uncategorized | Tagged , | Comments Off on Turn on WP_DEBUG to have WordPress kick out error messages

By default, get_posts only returns posts of type ‘post’

The WordPress project I work on uses a custom post type of ‘Product’ because we use WordPress as an ecommerce solution. I was trying to get a list of those products, but get_posts refused to display them. After consulting the … Continue reading

Posted in Development, Uncategorized | Tagged , | Comments Off on By default, get_posts only returns posts of type ‘post’

Keep the feedback loop velocity high

After working at large companies for so long, it’s refreshing to be able to take ideas directly to the CEO. It’s important to remember that he’s still the CEO, though, so ideas need to be thought out. Amplify’d from lyndit.com … Continue reading

Posted in Uncategorized | Tagged , , , | Comments Off on Keep the feedback loop velocity high

Firefox Plugins I Use

Firebug Best. Web. Development. Tool. Ever. Just install it. Firecookie This add on to Firebug allows you to view, manipulate, and delete cookies. This really should just be in Firebug, anyway. Screen Capture Elite Very nice screen shot tool. It … Continue reading

Posted in Development, Uncategorized | Tagged | Comments Off on Firefox Plugins I Use

WordPress Plugins I Use

Google Analytics For WordPress SyntaxHighlighter Evolved – Handles syntax highlighting for code blocks Akismet – The definitive anti-comment-spam tool for WordPress

Posted in Development, Uncategorized | Tagged | Comments Off on WordPress Plugins I Use

Moq can’t mock internal methods

Today I was trying to mock a concrete class that had an internal method that I wanted to set the return value for. After much frustration, I discovered that (Google’s) Moq 4.0.10827.0 won’t intercept internal methods. Consider the code below, … Continue reading

Posted in Development, Uncategorized | Tagged | Comments Off on Moq can’t mock internal methods

How to get WP-Super-Cache working on WordPress MU

(I know it’s not called MU anymore, but lets just roll with it.) At the time of this article I was working with: WP-Super-Cache version: 0.9.9.6 WordPress version: 3.0.1 I fought for over an hour trying to get WP-Super-Cache working … Continue reading

Posted in Development, Uncategorized | Tagged , | Comments Off on How to get WP-Super-Cache working on WordPress MU

Learning PHP: ISSET() vs. IS_NULL()

I found this little gem while looking into how to determine is a variable is usable; in my case, if it’s been set: http://php.net/manual/en/function.is-null.php#90782 claude dot pache at gmail dot com 09-May-2009 04:38 A small but important difference between “is_null” … Continue reading

Posted in Uncategorized | Tagged | Comments Off on Learning PHP: ISSET() vs. IS_NULL()