Archive for April, 2006

April 27th 2006

Adobe and Acrobat Reader

As I mentioned before, Adobe‘s Acrobat Reader has issues with DEP.

At that point, I was running as Administrator, which I’m no-longer doing. (Try it, it really does work if you know what you’re doing.. yeah, I know, that’s the wrong way around, limited accounts should be for those who don’t know what’s going on).

Installers for some applications say things like “This installer must be run as administrator.”, or “This may not work unless run as administrator.”, it turns out that most of them are lying. The ones that won’t attempt run can normally be attacked with great tools like Jared Breland’s Universal Extractor.

Adobe, being the great company that they are, have decided to take a different approach. Running the Acrobat Reader (7.07) setup file as non-admin gives you the incredibly useful error message:


---------------------------
FEAD® 2.5 Optimizer©
---------------------------
Access is denied.

File: C:/Program Files/Adobe/Acrobat 7.0/Setup Files/RdrBig707/ENU

---------------------------
OK
---------------------------

Good work, guys.

Even better, trying to unpack the setup file manually suggests that they’ve used a “modified” version of UPX (new version released recently, btw). I wonder where the (GPL) source for it is?

Note: RyanVM’s alternate installer also (apparently) fails, but silently.

Update!

RyanVM’s alternate installer, while not working by itself, seems to be in a format that WinRAR can extract. Opening up the archive gives a resonably sane directory structure, from which you can just extract the “reader” folder, and everything seemingly works fine… not sure what all of those other files are for, as they’re clearly not required.

5 Comments »

April 16th 2006

TES Oblivion: Sutch

I was looking through the Bink video files (player) in the \Oblivion\Data\Video directory, and noticed something strange in CreditsMenu.bik…

Sutch?

Anyone who has played Oblivion will probably notice that Sutch doesn’t exist in the game, and is certainly not where it’s shown in this video.

Also, the name suggests that this video is shown from the main menu’s “credits” option.. it isn’t, the credits just scroll over the existing background (“Map loop.bik”), which seems to avoid Sutch’s location.

My guess is that the city was planned and removed. I wonder if the credits video is shown at the end, or if it was an accident to include it?

14 Comments »

April 15th 2006

NMEA -> MapPoint 2004 and Google Earth.

I’ve been playing around with GPS recievers, and the first thing I wanted to do turned out to be the hardest. Just to run through what I did, just in case anyone else wants to go through the same steps without the hours of googling and guessing. The overal aim was to get (and save) the data from my HOLOX BT-321 GPS reciever (which speaks NMEA) in some visualisable form using my Orange SPV 550 (HTC Hurricane) .

  • Saving the data: Devbuzz’ forums (thanks pdcira2) contain a modification of code given in Nick Gratton and Marshall Brian’s book: ‘Windows CE 3.0 Application Programming‘ to read and parse data from a COM port and write it to a file. This code required a bit of modificaiton to make it play nice with VS2005 and Smartphone 2003, my changes will be avaliable once I get my new site up, contact me if you’re impatient.
  • Log file format: You should now have a file that contains a list of lines looking something like..

    5213.8312|N|00004.2204|E|

    As explained on gpsinformation.org, this represents the degrees (52) and minutes (13.8312) north (N), and the degrees (0) and minutes (4.2204) east (E).
  • Applications: In this form, this information is completely useless to applications like Microsoft MapPoint 2004. Although this is incredibly poorly documented, they require the latitude and longitude to be given in degrees, as a decimal, with positive for north and east.
  • Conversion: Once you know this, the conversion is pretty trivial. Assuming that all the points are N and E, you simply need to divide each part by 100, the divide the fractional part by 0.6, eg:

    #!php
    // Quick and nasty conversion for N,E NMEA data to decimal degrees.
    < ?
    function conv($i)
    {
    return round(floor($i) + ($i-floor($i))/0.6, 4);
    }

    foreach (file('foo.txt') as $line)
    {
    $out = "";
    $t=explode('|N|', str_replace('|E|', '', trim($line)));
    $out.= conv($t[0]/100);
    $out.= ",";
    $out.= conv($t[1]/100);
    echo $out . "\n";
    }

  • Importing: Now the conversion has been done, you have a file consiting of lines that look something like:

    52.2305,0.0703

    • For MapPoint you can now use the ‘Import Data Wizard’ (Ctrl+I) on this file, telling it that the first column is latitude, the second longitude. It’ll give you a load of pushpins representing your dataset, hopefully at the correct places. The example I’ve been using happens to be the thrilling A428/M11 junction in Cambridge.
    • For Google Earth you need to do a little more processing. You can use GPS Visualizer’s KML generator to do it for you, simply delete everything in the “Or paste your data here:” box, and add “latitude,longitude” followed by the contents of your file, eg:

      latitude,longitude
      52.2305,0.0703
      ...etc.

      This’ll generate you a “kmz” file for download, poking it suggests that it’s just a zipped “kml” file, rename it to .kml.zip, extract and have a poke.
      You’ll notice that it’s just a list of space-seperated long,lat,alt, with all the altitudes being 0, pretty easy to generate yourself if you want.

Hope that saves someone a few hours.

1 Comment »