theblog

Javascript TypeOf with Array Support


function typeOf(obj) {
  if ( typeof(obj) == 'object' )
    if (obj.length)
      return 'array';
    else
      return 'object';
    } else
  return typeof(obj);
}

Just in case someone else was needing the ability to discern the difference between objects, arrays, and other data types in Javascript.

Server Changes Almost Complete

The server has been moved to it’s static IP address (some of you may have had trouble and seen this weird apache cpanel screen. I’m happy to say that unless you’re experiencing dns update issues. The only changes that we should be seeing is we’re going to be adding an ssl certificate for logins and webmail.

Server Upgrades

The server will be upgraded over the next few days, this will hopefully not affect service, but if it does this is why.

Not that Anybody Asked

Safari for Windows = iPhone SDK for Windows.

Oh look the only way to get 3rd party apps on the iPhone is to run then as widgets in Safari, oh wait on a totally on related note look Safari just got ported over to Windows. This would be an unlikely coincidence.

New Gallery

There is a new gallery of interest, it’s how a Friday’s supposed to be spent.

Nerf Quest

Is Live for Windows an Attempt to Lockout Other Platforms?

I was thinking about Microsoft’s initiative to push Live on the PC. This at first seemed nice, consolidation and playing with your friends, voice in every game, and etc I would be willing to pay for this service (I know most people piss and moan about the idea of that, but I’m fine with paying for a high quality of service). But the real thing is it would seem that any game that uses Live for Windows can only play with other Windows users (big deal to me, overall not that big of a deal though) and possibly only run on Windows servers (big deal). That is totally weak.

Some Changes

There are going to be some changes around here, everything is going to be the using the same color scheme. This is part of the operation to form a cohesive look and style. The color scheme is going to match the page that is currently siting on the page at the root of this domain.

The only this that’ll be visible as part of a work as progress is this blog, which I will try to switch back and forth. Everything else will be developed separate of where it’s currently in use.

UPDATE 1: it appears I am almost done updating the gallery and chat to match the overall style. The only thing after that is the blog (which is by far going to the hardest to do).

UPDATE 2: so far it looks like everything has been converted over, not everything is feature complete, but that is what is done from here on out, polish and features.

BBC Newspod in flash with updating

This is merely a test, I wrote a script to find the most recent BBC Newspod and redirect to it. I’ve combined that with the the mp3 player I’ve been using for some clips and we “should” have a player that grabs the newest BBC Newspod each day, it’s here for testing.

The code for this is provided below, it is provided as is with no documentation. At the moment I’m trying to track down the original site for the player I’m using so that i can check the conditions of the license. There are 3 files in the archive (podcast.php, index.php and embed.php)

  • podcast.php is the library that finds the most recent podcast entry and sets it to $fileURL.
  • index.php redirects the user to the file’s location.
  • embed.php generates a player and the location it is not particularly interesting.

podcast.zip

UPDATE: the newer version of the flash player that I’m using is actually supporting RSS as a playlist type, so that makes this script not incredibly useful anymore. Although upon further testing I discovered it does not support linking to external RSS feeds so it seems my PHP may still be of some use, plus honestly the new version is quite ugly.

Flash MP3 Player Website

« Previous PageNext Page »