existentia

Archive for October, 2008

Latitude & longitude on Google Maps

by Neil on Oct.08, 2008, under Technology

While building this page using the excellent Google MAPS API, I ran into a frustrating problem. The placement of the markers I have is pre-configured in an XML file that my web page parses when it displays. Here is an example of one of the markers in the XML file:

<marker lat=”57.18561055070526″ lng=”-2.085258590317864″ label=”AECC”>
	<infowindow>
		<![CDATA[
		<strong><a href="http://www.aecc.co.uk" target="_blank">Aberdeen Exhibition &amp; Conference Centre</a></strong><br/>
		Bridge of Don<br/>
		Aberdeen<br/>
		AB23 8BL<br/><br/>
		<strong>Tel:</strong> 01224 824824<br/>
		<strong>Email:</strong> <a href="mailto:aecc@aecc.co.uk">aecc@aecc.co.uk</a>
		]]>
	</infowindow>
</marker>

As you can see the position of the marker is determined using latitude (lat) and longitude (lng) parameters and not, for example, an address or post code. Now perform a quick search for an address on Google Maps and tell me where you can see the latitude and longitude of your location. Exactly. It isn’t displayed anywhere on the web front-end, from that I can see anyway.

Here is a little trick to get the latitude and longitude displayed though. Once you’ve searched your location in Google Maps, paste the following into the location bar in your web browser:

javascript:void(prompt(”,gApplication.getMap().getCenter()));

Hit return and boom! You should be presented with a JavaScript pop-up window with the latitude and longitude of your location. Far from ideal, but it’ll do for me!

Leave a Comment :, , more...

A better Apple TV

by Neil on Oct.07, 2008, under Technology

For the last six months or so, I’ve had a £199 small box sitting under my TV doing next to nothing. Yes, I made a impulse purchase of the 40GB Apple TV device and immediately felt some remorse. I did have an idea of what the Apple TV was capable of, but I didn’t realise it was so limited out-of-the-box.

The reason I purchased it was that my old, hulking home-built media centre PC gave up the ghost some time ago and I wanted something to replace it. That machine was running Windows Vista and used Windows Media Center to playback all the video and audio content I had (which sits separately on a NAS device) as well as record and playback digital TV. It was all hooked up to my HD television and 5.1 surround-sound system and for the most part, worked pretty well.

I knew I would be sacrificing any TV recording/playback capability with choosing the Apple TV, but that didn’t bother me as I rarely watch TV these days. However, I assumed it would be able to playback my existing video content sitting on my NAS device (mostly in Xvid and DivX format) in addition to all the music I had, as well as a handful of video podcasts and music tracks I had download from the iTunes store. I was wrong…or was I?

Like the iPod, Apple is very restrictive in what file formats it will playback on the Apple TV. In short, if it isn’t downloaded from the iTunes store then it is unlikely to play unless you first convert the file into a format that iTunes will support. For video files this usually means first converting them to the MPEG-4 format or better quality H.264 format. Which when you have gigabytes of video content can be a very time consuming process and that’s not to mention the degradation in quality you get when performing such tasks (transcoding).

But the Apple TV is just running a cut-down version of Mac OS X using Front Row as a front-end, isn’t it? Surely support for these video files could be added? Well, yes it could. Apple could add support easily if they so desired, but that is unlikely to happen while the iTunes store remains open. And so the user community has had to work it out for themselves and now a few options are available for those feeling brave enough to do a bit of Apple TV “modification”.

And so, with a spare USB drive in hand, I’ve tried a couple of “home-made” solutions to this problem. I’ve tried both ATVPatch and ATVFlash which both actually cost me money to try (I’m still confused as to the legality of actually being able to charge for something like this!) and they were partially what I was looking for. They provided me with the applications to playback the video formats I use, but it was the connecting to my NAS device on my home wireless network that often proved either impossible or that when the video playback did begin, it just wasn’t reliable.

However, a few days ago I made a great discovery that has really brought my Apple TV back to life. It all came about when I discovered an open-source project called Boxee which only very recently announced support for the Apple TV. I’ve signed up to test the alpha version (yes, it’s very early in development!) so I can’t actually use it yet until they give me a login (they are staggering the sign-ups to make sure they don’t get overrun with new users). However, I then also discovered that Boxee is built upon another open-source project called XBMC (X-Box Media Center).

And so using the excellent ATV USB Creator utility on my Macbook, I created a new USB “patch stick” which includes the XBMC and Boxee software as well as a launcher for them. I plugged the USB drive it into my Apple TV (I’m running v2.2 of the Apple TV software) and rebooted the device in order to perform the installation. You unfortunately need to yank out the power code to reboot the device at this stage (rather than down arrow + menu on the remote). After the second reboot, you should see XBMC and Boxee options in your Apple TV menu along with all the other usual options.

XBMC Home Screen

And XBMC really is the dog’s bollocks. It pretty much makes the Apple TV capable of everything I want from a media center (short of recording TV and playing back DVDs - both of which the Apple TV is currently physically unable to do). The playback of all my videos and music (regardless of file format!) from my NAS device is now possible and completely jitter free. The XBMC front-end is much more colourful and informative than the functional yet boring default Front Row interface. I believe XBMC even makes it possible to download and playback Torrents directly from your Apple TV through the use of additional plug-ins (which can add lots of other functionality and skins for the interface). All in all it is a very impressive application and one that can be easily quit from so you can return to the regular Apple TV interface at any time. A great find - Apple take note!

Leave a Comment :, , more...

Search

Use the form below to search the site:

Links

Some of my favourite links...