Category Archives: Development

I want you all to feel empowered on this project

Amplify’d from dilbert.com See more at dilbert.com   See this Amp at http://amplify.com/u/ivu4

Posted in Development, Uncategorized | Tagged | Comments Off on I want you all to feel empowered on this project

Reseed the identity on a SQL Server table

I’d rather just take the identity off the table I had to use this on, but this is an excellent solution if you over incremented the identity and need to bring it back. Amplify’d from msdn.microsoft.com The following example forces … Continue reading

Posted in Development, Uncategorized | Tagged , , , , | Comments Off on Reseed the identity on a SQL Server table

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’

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