Thursday, November 27, 2008

Self Install


Nautig now self installs like a regular windows program. Download the setup file here. The initial program setup includes the basic charts and more detailed charts for the Chesapeake bay. For other detailed charts you still need to download and unzip one or more of the following files. They should be unzipped into the "chart" directory.


Charts_1.zip
100 mb Florida Keys to North Carolina

Charts_2.zip
90 mb North Carolina to Long Island Sound

Charts_3.zip
70 mb Long Island Sound to Maine

Tuesday, November 25, 2008

Beta Test


Enlarge Map

NautiG program files:


NautiG.zip
70 mb The program, directory structure,
basic charts and satellite imagery

Charts_1.zip
100 mb Florida Keys to North Carolina

Charts_2.zip
90 mb North Carolina to Long Island Sound

Charts_3.zip
70 mb Long Island Sound to Maine

Satellite_1.zip
40 mb Two more levels of satellite imagery

Satellite_2.zip
130 mb Final level of satellite imagery


If you can't tell, the above is a flash program. You can drag the map, just like in Google maps. You can click the buttons to zoom in and out. Although, you probably can't see the buttons very well unless you enlarge the map.

The program has nautical charts superimposed on satellite images. Kinda fun, but it's been done before. What I haven't seen, is an offline version which you can use on a boat without internet access. So that's what I've been writing the past few weeks. The files which make up the program are listed above. They include a lot of satellite and chart images, almost 500 megabytes worth, so I broke the program up into separate files.

The first file, NautiG.zip includes the basic files and program to get started. Once you unzip the file, you should see a directory structure which looks like this:



NautiG.exe (anchor icon) is the program. Subsequent chart_X.zip files should be unzipped into the the chart directory. Satellite_X.zip files should be unzipped into the satellite directory.

If you download and try the program, please let me know if it works, and what you think of it. I've installed it on three computers so far: two Windows XP computers and one Vista. So far, the program has run fine on all three. I'll ask family and friends to try the program over Thanksgiving, and then post about it on some sailing message boards. For the time being, the program only runs under Windows, although I have plans for Mac and Linux versions.

Have a Happy Thanksgiving!

Picture from last year's Thanksgiving on the boat in NC.

Thursday, November 13, 2008

Kyle and Maryanne Made It!

And they added my Yotreps widget to their blog. I'm honored. The widget doesn't exactly fit in the sidebar of their blog. I forgot to mention that the dimensions of the widget can be changed. Just fiddle with the width and height numbers in the code below until you find the appropriate size for your map.

<iframe
width="265" height="260"
src="http://nautig.com/wc/tracker/yotrepsHTML.pl?callSign=AI4QI&width=250&height=200">
</iframe>

I'm working on an update of my NautiG/Boyfriend Tracker/Nautical Chart GPS program. Hopefully I'll have something to post about that next week.

Sunday, November 2, 2008

Yotreps Widget

Update: Improved and moved the tracking widget to the sidebar. It now tracks all the boats reporting to Yotreps. Just select the boat's call sign from the list and hit the "get" button. Clicking "Enlarge Map" will take you to that boat's Yotreps page with more information about the boat. Kyle and Maryanne's call sign is AI4QI.

This widget can be embedded in any webpage. I used the code below in Google Blogger. (Change the call sign to whatever boat you want to track.) Let me know if you try to embed the widget in a webpage and have any problems.

Code:

<iframe
width="375" height="300"
src="http://nautig.com/wc/tracker/yotrepsHTML.pl?callSign=AI4QI">
</iframe>


Kyle and Maryanne left last week on their sailing adventure to the Caribbean. They have a Gemini catamaran too, although much newer than mine. They're much more adventuresome than I am. They did a little bit of the ICW to start the trip, but now are way out in the ocean. They're not even bothering to stop in Bermuda, which I hear is a nice place in the middle of the Atlantic to visit.

Being that far out, they do not have cell phone service. But they do have an Iridium satellite phone. They've been updating their position on a website called Yotreps, and sending short updates about their progress. They have a link to Yotreps on their blog, but I thought I'd create a little map for them like the one I used to track my progress.

Monday, October 27, 2008

Sarah! Sarah! Sarah!


Amy emailed me this morning that Sarah Palin was coming to our town today. Regardless of her politics, there is something about a woman running for vice president, who hunts and fishes, and was a former beauty queen, which pushes some buttons in my male "joe sixpack" psyche. Amy seems to tolerate my fascination with Sarah Palin, and I guess by emailing me about the event, she also indulges me.

I brought a camera with me, and had visions of getting a photo of Gov. Palin and me together. The reality turned out to be me standing in the cold rain for an hour elbowing a bunch of cold, wet conservatives for a good view. She spent most of the visit indoors, but came out to greet the crowd briefly before leaving. Disappointingly, the best pics I got were some blurry photos of her waving as her bus passed by.

Wednesday, October 22, 2008

Mostly Unabridged

Finally completed a version of the book which contains most of the blog, including comments. Most of what was deleted, was for space. With all the pictures and formatting, it can be tough to get everything right without orphaned pictures and lots of blank wasted space. But I'm pretty pleased with the result. You can read it here.

I was able to get it all in under 400 pages. Grampa suggests that this is too long for a book, even if a lot of it is pictures. I'm going to start work on a "tightened up" version of the book. I'd like to get it down closer to 300 pages, while getting rid of extraneous stuff and making it more readable.

If anyone has specific suggestions of stuff to cut, or more general advice on how to edit the book, I'd love to hear it.

In other news, Kyle and Maryanne left Portsmouth, VA heading south on the ICW. I'm not sure where their destination is. But I'm pretty jealous that I'm not going with them.

Monday, October 20, 2008

Amy-Cuda


I'm thinking about getting this for xmas as a present for Amy.

Friday, October 3, 2008

Unabridged

Work on a version of a book including comments, is coming along swimmingly. The first version of the book I mostly copy & pasted, and formatted by hand. For this version, I've mostly automated the process. I wrote the perl script below to download the blog and strip a lot of the html formatting from the text.


#!/usr/bin/perl
use LWP::Simple;

open INFILE, "bloglinks.txt";
@lines = <INFILE>;
close INFILE;


foreach $line (@lines)
{
if ($line =~ /(http.+html)"/){unshift @urls, $1;}
}

open OF, ">blogcontent.txt";

foreach $url (@urls)
{
$on = 0;
my $content = get $url;
@content = split(/\n/, $content);
foreach $content1 (@content)
{
if ($content1 =~ /Post a Comment/){$on = 0}
if ($on == 1)
{
$content1 =~ s/<br \/>/\n/g;
$content1 =~ s/<br\/>/\n/g;
$content1 =~ s/<BR \/>/\n/g;
$content1 =~ s/<BR\/>/\n/g;
$content1 =~ s/<\/h3>/(-\/B-)/;
$content1 =~ s/<p.*?>/\n\n/g;
$content1 =~ s/<span style="font-style:italic;">/(-I-)/;
$content1 =~ s/<.*?>//g;
$content1 =~ s/.+, 200.+M/\n\n/;
$content1 =~ s/(comments:)/$1\n\n/;
$content1 =~ s/^ +$//;
$content1 =~ s/<dd class='comment-footer'>/\n\n/;
print OF $content1;
}
if ($content1 =~ /<h3 class='post-title entry-title'>/)
{
$on = 1;
print OF "(-B-)";
}
}
}
close OF;


Also, I've refamiliarized myself with regular expressions. Regular expressions are a really powerful tool for parsing texts. I use them often when programming, but they would be really useful to anyone who had to do large scale editing and formatting of texts.

Not sure if the perl script would be of use to anyone else. If there were a demand from people who wanted to download their blog to their computer, I could probably place the script on my server and hook it up to the web to automate the process for others.

I should have a pdf of the unabridged book completed sometime next week. So far with text only, no pictures and little formatting, the book is about 300 pages. When done, I'm guessing it will be 500 some pages. If that's the case, it should cost about $20 including shipping.

So far eight copies of the book have been sold. At first I assumed that maybe grampa had bought a bunch of copies to give to friends, but additional copies of the book have been ordered. So maybe Grampa and I don't account for all the orders. If you ordered a book, thanks! Please let me know what you think of it (including any corrections/typos).

And wish the Admiral and me luck. We're running in a 5k tomorrow. I haven't run in a road race in years, but I've been working out daily at the college gym. Hopefully I'll have a good time.