Debug window for Javascript

I wrote this short little function when I got tired of debugging JavaScript by using the alert() function. It pops up a new window and outputs whatever you send to the function along with the UTC date.
PLAIN TEXT
JavaScript:

function logOutput(message)

    {

    debugWindow = window.open(”, ‘dbgWindow’, ‘height=300,width=400′);

    var newDate = new Date();

  [...]

Auto updating your copyright year

Since the new year is starting it’s time to make sure your copyright notices are up to date. Since you’re going to be changing it anyway here are 3 snippets of code to automatically insert the current year so you don’t have to worry about it next year.
PHP
PLAIN TEXT
PHP:

<? echo date(‘Y’); ?>

ASP
PLAIN TEXT
ASP:

<%=year(date)%> [...]

Add a preview to your WordPress comment box

Yesterday I was browsing around the blog world and came across this posting on keeping a clean desk. I found the topic interesting enough to leave a comment, but that’s not really the point. What I saw as I typed was that below the comment box was a preview of what I was [...]

WordPress theme cheat sheet

Are you working on a theme for WordPress but spending too much time digging through the Codex for all the right calls? Take a look over at WordPress Candy for their WordPress Theme Cheat Sheet.

addthis_url = 'http%3A%2F%2Fforumsblogswikis.com%2F2007%2F11%2F03%2Fwordpress-theme-cheat-sheet%2F';
addthis_title = 'WordPress+theme+cheat+sheet';
addthis_pub = 'RyanNutt';

How to embed YouTube videos in SMF forum

There is a mod for SMF that allows you to embed YouTube videos fairly easily, but I didn’t find it until after I worked out a way that I think works as well and doesn’t take a separate modification, plus it’s pretty mindless to add Google or Yahoo videos as well.
I had the Custom BBC [...]