Author Archives: Mark Headrick

X-Men Origins: Wolverine added to DVD Collection!

Wow! It’s been a while since I’ve said anything on my blog.

I have added X-Men Origins: Wolverine to my DVD Collection. As usual I have scanned in a copy of the front cover and provided a movie trailer. It’s a great movie and I highly recommend watching it if you haven’t! 😎 The Roots of Wolverine: A Conversation with Stan Lee and Len Wein featurette was interesting and informative.

Blog has been upgraded to WordPress v2.8.1

I have updated my blog to WordPress v2.8.1 which was just released. I did the auto upgrade option again which seems to have worked well. Even so, once again I had to edit the /wp-includes/vars.php file to force $is_apache to true (see below) since the SERVER_SOFTWARE variable comes back as WebServerX instead of Apache.

// Server detection
/**
 * Whether the server software is Apache or something else
 * @global bool $is_apache
 */

//$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;
$is_apache = true;
/**
 * Whether the server software is IIS or something else
 * @global bool $is_IIS
 */

$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true : false;

Other than the modification to vars.php which I have always had to do, the upgrade went smoothly. 🙂

Of course, I did perform a complete database and file backup before upgrading! 🙂

Happy 4th of July and Independence Day added to DVD Collection!

Happy Fourth of July!

First, I want to wish everyone a Happy (and safe) Fourth of July! 🙂

Second, I somehow managed not to own a copy of Independence Day. Well, that situation has now been rectified! I bought the last copy they had at Blockbuster Video and is now part of my DVD Collection! As usual, I’ve included an image of the DVD front cover and a decent quality movie trailer.


How I got LongURL Mobile Expander 2.0.0 to Show Tooltips Again.

After updating to LongURL Mobile Expander v2.0.0 it stopped showing Tooltips with the destination when I would move the mouse over a short URL. I would also get “current domain is NULL” errors when browsing locally (I have a local copy of Apache installed for development). The problem existed in both Firefox 3.0.11 and 3.5.

I got it working after seeing a comment here: https://addons.mozilla.org/en-US/firefox/addon/8636 so all the credit goes to Matthias Jansen.

Edit the file: C:\Documents and Settings\(user)\Application Data\Mozilla\Firefox\Profiles\(your profile)\extensions\{a7101e54-830c-4d33-a3ed-bedc17ec44da}\content\longurlmobileexpander.js

I am using Windows XP so your location might be different.

Around line 79, change

var current_domain = document.location.href.match(/^https?:\/\/(?:www\.)?([^\.]+\.[^\/]+)/i);

To:

var current_domain = document.location.href.match(/^https?:\/\/(?:www\.)?([^\.]+(\.[^\/]+)?)/i);

Update: I’ve been told here that the following change is also needed. Around line 89, change

if ((domain !== current_domain[1]) && (typeof(this.known_services[domain]) !== 'undefined')) {

To:

if ((current_domain != null) && (domain !== current_domain[1]) && (typeof(this.known_services[domain]) !== 'undefined')) {

After doing this and re-enabling the extension.. it started working. I can now see the tooltip pop-ups and it’s supposed to fix the current_domain is null problem. Hopefully this will help anyone else that ran into this issue. 🙂

My URL Shortening Service now has a preview mode.

My URL shortening service at http://mhurl.com, that I mainly use with my blog to create Short URLs for new posts to be tweeted about, now has a preview option you can enable that will show the destination URL, which you can then decide if you wish to click on or not rather than automatically being redirected to the destination. In order for this to work your browser must be set to accept cookies. If you are like me and have 3rd-party cookies disabled, that is fine.

Once you have it set, you can test it with this Short URL which should be created after I publish the post: http://mhurl.com/2.

Even though I will not send anyone to a questionable site, I understand many would want this ability. 🙂