Testing New WordPress Versions Part 1: XAMPP

This is Part 1 of a multi-part series of posts discussing how I test new major releases of WordPress before upgrading my “live” sites. This first step gets us rolling with the Apache / MySql / PHP stack.  Subsequent articles will discuss database copying, code copying and, finally, testing the actual upgrade and features. 

This series assumes you’re on a Windows machine. You Linux guys can do your own version of this.  :-)

Since 2.3 is coming fast, it seemed like a good time to get this series finally rolling — it has been languishing on my “things to write about someday” list entirely too long!

The Goal: Make an exact and fully functioning copy of our current blog and then try the upgrade.  Plugins and all. 

Warning: What appears below will need to be adapted a bit if you are running the Windows web server (IIS) on your local machine. Simplest option would be to turn it off or uninstall it. We can cover that later, in comments, if there’s really a need — I’d guess that most people running IIS are doing so intentionally and can handle disabling.

Let’s get rolling then, shall we?

(more…)

Free Windows ISO Toys

CD ImageAbout two years ago I wrote a little article mentioning a pair of free Microsoft tools that are useful when working with ISO images.  Since that time, I’ve repeatedly searched that article out as I have built or reloaded my machines. 

Since I find these so useful, and a few more people visit now than 2 years ago, I thought I’d have my first “re-run” and present them again.  Enjoy!

  1. Isorecorder

    ISO Recorder is a tool (power toy) for Windows XP, 2003 and now Windows Vista, that allows (depending on the Windows version) to burn CD and DVD images, copy disks, make images of the existing data CDs and DVDs and create ISO images from a content of a disk folder.

    Yep, a “burn ISO to CD” Power Toy. How cool is that?
    No need to buy and install software to burn an ISO to a disk, just right-click and go.

  2. Win XP Virtual CD ROM Control Panel: (that’s a direct download from Microsoft, there really is no web page). Just as you might surmise, it’ll mount an ISO and treat it as a CD. A bit primitive, but the price is right. Here is the install info:

    Installation instructions
    =========================
    1. Copy VCdRom.sys to your %systemroot%\system32\drivers folder.
    2. Execute VCdControlTool.exe
    3. Click “Driver control”
    4. If the “Install Driver” button is available, click it. Navigate to the %systemroot%\system32\drivers folder, select VCdRom.sys, and click Open.
    5. Click “Start”
    6. Click OK
    7. Click “Add Drive” to add a drive to the drive list. Ensure that the drive added is not a local drive. If it is, continue to click “Add Drive” until an unused drive letter is available.
    8. Select an unused drive letter from the drive list and click “Mount”.
    9. Navigate to the image file, select it, and click “OK”. UNC naming conventions should not be used, however mapped network drives should be OK.

    You may now use the drive letter as if it were a local CD-ROM device. When you are finished you may unmount, stop, and remove the driver from memory using the driver control.

It may seem a bit complex, but you can have this installed and an ISO mounted to a drive letter in about a minute.

This is awesome when working with our MSDN subscription — I just download the ISO files, rarely do I actually burn them to a physical CD/DVD.

Are there other great (and free) utilities for working with ISO images in Windows?  Share!

My Cheap Alternative to the BlackBerry

This is a follow-up to “I Want One… No I Don’t“; an article in which I vacillated aimlessly between lusting for a BlackBerry and denying the obvious attraction. In hindsight, perhaps a bit pitiful to read.  :-)

After calming down and spending time on proper reflection I can say that I do not want a BlackBerry (or a Mogul ).  Their respective geek’ish siren songs are strong, but I’ve realized they would just tie me up with work more than I already am.

In fact, I’ve realized that the real need is a way to be notified when important emails show up — not when any or every email shows up!  That way lies madness. Once I realized that was my goal, the solution wasn’t far behind.

Poor Man’s Notification System

I’ll put the word out to folks that if there’s something considered an emergency to use a different email address.  Something clever like eeks@mydomain.com

I configured my Hosted Google account to have “eeks” as an alias — otherwise known as a nickname in Google-ese:

image

(no, “eeks” isn’t the address I really used, and it wasn’t on this pictured domain either — so save the joke emergencies!)

Google Mail has a pretty decent little filtering setup, so catching these and handling them is easily done.  For example:

Filtering, part 1

A click on “Next Step” shows:

Filtering part deux

I’ve opted to run it straight to archives since I’m labeling it as Emergency, so unread items with that label are quite simple to find.  I then also forward it to my phone’s email address — the important part.

Cool, huh?  Anything coming to that address becomes a message on my cell phone.

An alternate email address isn’t necessary either — it could just be done by keywords in the title as well.  “[Emergency]“, for instance, would be easy to filter for as well.

My first go around at this didn’t work out so well.  I was using my phone service’s “short mail” email address. One problem with that method: to read the email I either need to be near a web browser or have a data plan. 

Fortunately, the Wikipedia article on SMS Gateways discusses easy ways to forward emails to SMS.  That works much better! It also give me the message immediately with a bare minimum of button-mashing to read it.

In delightfully retro sort of way, I’m excited about my new alpha-numeric pager. I also have several hundred dollars still in my pocket and my cell plan didn’t need any additional services added.  I call that a win.

Finding Uptime for Windows

I’ve been happily using my little Pentium 2 Windows 2000 experiment for the past week and am happy to say it is working quite well.  About the only real tweaking I’ve done so far is to drop a custom Firefox build onto it.

I suppose I should plan to run through the BlackViper Win2k Service tuning guide soon though.  That might free up a bit more memory.

Today I realized that the little laptop has been running all week — I became curious about the actual uptime.  The *nix users know all about the uptime command, but it’s not something you find on your Windows machine.  For those, I’ve traditionally gone and found a 3rd party program to display it.  However, it turns out Microsoft can offer several ways to do this…

The Basic Way

According to Microsoft KB 555737, there are already commands built into most Windows versions that can be used to determine uptime.  For my Windows 2000 laptop, that command (typed in a command prompt) is:

net stats srv

For the XP machines, this one works:

net statistics server

In either case, there’s a line towards the top of the output that starts, “Statistics since” that lists the date/time of the last startup.

The “Less Math” Way

Don’t want to calculate the uptime yourself? KB 232243 offers the Microsoft update program.  Download and toss it somewhere in the path (like your windows directory).  Bring up a command prompt, type “uptime” and revel in the results.

uptime.exe output

The Network Way

Here’s another method, assuming your computer is on a LAN.  Check the adapter properties:

Uptime the Network Way

For XP, that’d be Start -> Connect To… and then select Show all Connections.  Double click your active adapter and check the properties. Kind of low-rent, but looks pretty accurate (the two images here are both from the same machine, you can calculate roughly how long it took me to write that last few paragraphs!)

Wrap Up

For my purposes any of these options work just fine.  Any know any other low-tech/simple ways to get uptime off a Windows machine?  Do Macs have the uptime command or are there interesting tips for those as well? Share!

How-to: Another Way to Exclude Posts From the Front Page

Over at WordPress support, it isn’t all that unusual to see folks wondering how to exclude certain posts from their front page. I typically suggest they grab a “category excluder” plugin[1] and add the posts they don’t want to see to a certain category.

The question came up again today, but the person was looking for something that wouldn’t be category based. That got me thinking

Well… I suppose you could look into a bit of theme hacking. Perhaps with a custom field (see Using_Custom_Fields) and then modify The_Loop to exlude posts with a custom field at a certain value?

Something to ponder at any rate.

So I pondered.
(more…)