Category Archives: Uncategorized

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()

Poor Man’s C# Profiling

I needed to time a method in production and needed some context about which methods called it, but didn’t have any great ways to do it. I came up with an idea and I’ll share it here soon. It’s not … Continue reading

Posted in Uncategorized | Comments Off on Poor Man’s C# Profiling