Reading Mac formatted drives/images in Windows

HFSExplorer Main WindowThe other day I was going to watch a couple of episodes of Drew Carey’s Improv-A-Ganza at my girlfriends place and I brought my laptop so we could hook it up to the TV via HDMI. She runs all Mac and had an external drive with her which she transferred the episodes onto. What we didn’t know and what I didn’t think of at first was that the external drive was formatted in HFS+ which Windows can’t handle. So what do we do when we stumble upon such a problem? We use HFSExplorer from Catacombae!

[box icon=”info”]HFSExplorer is an application that can read Mac-formatted hard disks and disk images.

It can read the file systems HFS (Mac OS Standard), HFS+ (Mac OS Extended) andHFSX (Mac OS Extended with case sensitive file names).[/box]

Using this handy tool it was an ease to extract the episodes from the drive and everyone was happy!

If you encounter an error that you’re missing MSVCP71.dll which I did (I run Windows 7) you’ll find the files you need at this site. Also included is an easy guide on how to install the files which is copying the two files to either WindowsSystem32 or WindowsSysWOW64 if you run a 64-bit system.

C# Geographic/UTM Coordinate Converter Class

Been a while since my last post so I thought I would like to share a C# / .NET class that I converted from a javascript source. This one has proven to be quite helpful when dealing with GPS in one of my Windows Phone 7 projects. I’m currently working on an application for checking real-time data, travel routes etc from Trafikanten which provides data from the subway, train, bus and so on. Official applications already exist for Android and iPhone so I thought I’d give it a go for WP7.

This class allows for converting between Geographic (Latitude and Longitude) to UTM (X and Y positions) and vice-versa. Using the GPS on WP7 returns Latitude and Longitude coordinates while the JSON API provided by Trafikanten utilizes X and Y positions.

Using the class is very simple; first you have to import the namespace

[box]using trafikappen.Utils;[/box]

and to convert to UTM you can type

[box]GeoUTMConverter gutmConverter = new GeoUTMConverter();

gutmConverter.ToUTM(Latitude, Longitude);[/box]

or the other way around

[box]gutmConverter.ToLatLon(X, Y, Zone, Hemisphere.Northern|Hemisphere.Southern)[/box]

That’s all there is to it.

Download source: GeoUTMConverter.cs

Sources:

[box icon=”info”]Copyright 1997-1998 by Charles L. Taylor

http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html

Javascript converted from http://cambertx.com/utm/[/box]