Star Trek (2009) added to DVD collection!

Star TrekI’ve added Star Trek to my DVD Collection! :-D

This movie was AWESOME! They did a fantastic job re-introducing the Star Trek franchise with this film and handled the concerns I had going into it. By creating a new timeline (parallel universe) with Spock and the Romulan’s interactions, they are freed from having to match what the first crew did and experienced. It will also help explain why the technology of this particular crew will be so much more advanced than the original due to the input and advances introduced by the original Spock This, in turn, lets them get away with using better special effects than what the original series and movies had at their disposal.

What’s even better than all the effects is the character interaction, story, and acting (something which Star Wars I suffered from). Zachary Quinto as the new Spock was perfect. It’s amazing how much he looks like the original. It was good to see Leonard Nimoy playing Spock again as well. I’m not one to go on and on about movies, so I’ll just say this one more time: It was AWESOME!

I’ve included the outer cover image that the case slides into as well as the front and back images of the case itself. 3 Trailers and 1 TV spot are also included in a combination video that I found on YouTube.

Posted in DVD/Home Theater, Website Update | Tagged , | Leave a comment

Merry Christmas!

Christmas TreeJust wanting to wish everyone a Merry Christmas! Oh, and a safe one too! :)

Posted in Holiday | Leave a comment

Configured Winamp v5.57 and website to use new Now Playing plug-in.

After upgrading Winamp to its latest version (5.57), the Now Playing v2.1.2 plug-in I was using would cause Winamp to crash every time I closed Winamp which caused none of its settings to be saved. After some googling around I came across Brandon Fuller’s Now Playing: A Winamp Plugin which seemed to do what I needed. It would allow me to FTP a XML file containing information about the last X number of songs I played and would also let me send a HTTP post request to run a PHP script with the current song’s information contained within the $_POST variable. It calls this HTTP request a “ping”.

When this “ping” is sent, my PHP script parses the newly uploaded XML file to create the now playing images and song history (as seen on my Entertainment page), as well as a prepared Twitter message in a separate file should I choose to send a tweet out.

You can also send Twitter and Facebook updates using this plug-in. I’ve only tested it with Twitter and it seems to work; however, I use a separate PHP script to manually Tweet the song I’m currently listening to so I don’t fill my Twitter stream with song spam. I may enable it to send tweets out using my @mrheadrick_np account.

This plug-in does lack a couple things that the older one would do:

  1. Send an album cover image along with the rest of the song’s information in a $_POST variable such as a folder.jpg located in the same directory as the song; however, it will send a link to an Amazon album image if the information matches (sometimes it doesn’t match correctly or just can’t find one). I am working on a mechanism to get around some of these pitfalls by uploading album images and having my script check for the existence of the local album image first.
  2. Work with Shoutcast streams to extract out song information.

Even so, I will continue to use this plug-in for its compatibility and continuing support by the developer. It also seems to be a bit more reliable and stable than what I was using. Yes, I did purchase a license key. :)

Posted in Facebook, Twitter, Website Update | Tagged , , | Leave a comment

Blog has been upgraded to WordPress v2.9

I have updated my blog to WordPress v2.9 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;

I also had to edit the /wp-login.php file and add session_start(); at the beginning for the Register Plus plug-in to work properly as PHP sessions are not automatically started:

session_start();
/**
 * WordPress User Page

Other than the modifications above, which I have always had to do, the upgrade went smoothly. :)

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

Posted in WordPress | Tagged , , | Leave a comment

Updated MIDI embedding method on DVD pages.

I’ve updated the method I’m using to embed MIDI files in my DVD pages that had them. A couple of example pages are The Best of Benny Hill and Star Wars I: The Phantom Menace. I am using the JavaScript method that is described at MIDIStudio.com. It’s basically the same thing I was doing before directly within the page’s code without JavaScript; however, this script now adjusts the code based upon the browser it detects which should make it more compatible.  I did modify their code slightly by adding an optional autostart parameter with a default value of 0 if no value is given so that it does not automatically start playing.  Here’s my modified code:

// This script determines correct code required to embed MEDIA files 
// for a large number of browsers, including AOL and WebTV
// Windows Media Player is required and always used, except for WebTV
// Written by Les Gorven, http://midistudio.com/ 
// Ver. 4.0 (simple) auto-start parameter is true - Created: February 2, 2008
// autostart parameter added by Mark Headrick December 2, 2009
 
function playMedia(mediaURL,rpt,height,width,autostart) {
var mediaURL,rpt,height,width,autostart;
 
if (typeof autostart == "undefined") {
	autostart = 0;
}
 
if (GetBrowser() == "IE")
	playAll(mediaURL,rpt,height,width,autostart) ;  
else if (GetBrowser() == "unknown")
	embedSource(mediaURL,rpt,height,width,autostart) ;
else if (navigator.appName.substring(0,5) == "WebTV")
	embedSource(mediaURL,rpt,height,width,autostart) ;
else
	playAll(mediaURL,rpt,height,width,autostart) ;
}
 
function embedSource(mediaURL,rpt,height,width,autostart) {
 
	var CodeGen = "";
	var mediaURL,rpt,height,width,autostart;
 
	CodeGen = '<embed src="' + mediaURL + '"' + '\n' ;
	if (autostart == 0) {
	 	CodeGen += ' height=' + height + ' width=' + width + ' autostart="false"' + '\n';
	} else {
		CodeGen += ' height=' + height + ' width=' + width + ' autostart="true"' + '\n';	
	}
	CodeGen += ' LOOP=' + rpt + '>';
	document.write(CodeGen);
}
 
function playAll(mediaURL,rpt,height,width,autostart) {
	var CodeGen = ""; 
 
	CodeGen = '<embed type="application/x-mplayer2" ' + '\n' ;
	CodeGen += ' pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ' + '\n' ;
	CodeGen += 'Name="Player" ' + 'src="' + mediaURL + '" ' + '\n' ;
	CodeGen += 'autoStart=' + autostart + ' ' ;
	if ((height == 24) && (width == 299)) 
		CodeGen = CodeGen + 'ShowStatusBar=1 '; 
	if ((height >= 50) && (height <= 75) && (width >= 200)) 
		CodeGen = CodeGen + 'ShowStatusBar=1 '; 
	if ((height > 75) && (width >= 200)) 
		CodeGen = CodeGen + 'ShowStatusBar=0 '; 
	if ((height <= 49) && (width != 299))
		CodeGen += 'ShowStatusBar=0 '; 
	CodeGen += 'enableContextMenu=1 cache=0' + '\n' ;
	CodeGen += 'playCount=' + rpt + ' ' ;
	CodeGen += 'volume=-1 ' ;
	CodeGen += 'HEIGHT=' + height + ' WIDTH=' + width + '>' ;
	document.write(CodeGen);
}
 
function GetBrowser()
{
   var agt=navigator.userAgent.toLowerCase();
   if( ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) )
       return "IE";
   else if( ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
         && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
         && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)) )
       return "Netscape";
   else
       return "unknown";
}

Within the page itself, I just put the following where I want the player to appear:

	<script type="text/javascript"> 
	playMedia("/midi/SomeFileToPlay.mid",3,65,300)
	</script>

If I want the song to automatically start playing, then I would change the code to:

	<script type="text/javascript"> 
	playMedia("/midi/SomeFileToPlay.mid",3,65,300,1)
	</script>

Seems to work well in both Firefox 3.5.5 and Internet Explorer 8. :)

Posted in MIDI, Website Update | Tagged | Leave a comment