<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rdf:RDF [
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
]>
<rdf:RDF
 xmlns="http://purl.org/rss/1.0/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel rdf:about="http://schwehr.org/blog/index.xml">
<title>Kurt's Weblog</title>
<link>http://schwehr.org/blog</link>
<description>electronic work log</description>
<dc:language>en-us</dc:language>
<dc:creator>Kurt</dc:creator>
<dc:date>2008-07-23T19:06:03-04:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-23T17_57_10.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-23T17_40_03.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-22T09_03_47.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-21T17_44_37.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-21T09_23_21.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-18T12_03_55.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-18T07_52_45.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-17T09_53_17.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-16T09_39_12.txt" />
<rdf:li rdf:resource="http://schwehr.org/blog/archives/2008-07.html#e2008-07-16T09_24_42.txt" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-23T17_57_10.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-23T17_57_10.txt</link>
<title>SQLITE tutorial</title>
<dc:date>2008-07-23T17:57:10-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[I told Gwennie that I would give her a quick SQL tutorial.  She is
another mac user (there were many at the Phoenix Sience Operations
Center... probably over 100 Macs at the SOC).  So here it is and this
assumes you are running on a Mac and are comfortable on the command
line.
<br /><br />
See also: <a href="http://www.sqlite.org/sqlite.html">http://www.sqlite.org/sqlite.html</a> for a quick tutorial
<br /><br />
First, the Mac comes with <a
href="http://www.sqlite.org/">Sqlite3</a>.  You can use either the Mac
one or the one from fink.  They are pretty much equivalent.
<pre>
% <b>type -a sqlite3</b>
sqlite3 is /sw/bin/sqlite3
sqlite3 is /usr/bin/sqlite3
</pre>
Sqlite is a great database program to use when learning SQL.  There is
no database server to setup.  It uses a file for the database and if
you don't like what you did, just delete the file.  Note, that sqlite2
and older use an ASCII database format and are really slow (and have
very large db files).  Let's get started!
<pre>
% sqlite3 demo.db3
sqlite&gt; <b>SELECT 1+1;</b>
2
sqlite&gt; <b>.quit</b>
</pre> 
Not so exciting, but it is a start.  You have to specify a file to use
as the database, but if unless you do something to the database, it
won't create the file.  <b>SELECT</b> is the basic lookup command.
You can do basic math with it.  You can also get the current time.
<pre>
sqlite&gt; <b>SELECT CURRENT_TIMESTAMP;</b>
2008-07-23 22:33:56
</pre>
Some quick SQL convention notes.  SQL reserved words are typically
done in all caps and comments start with '<b>--</b>'.  SQL statements
end with a '<b>;</b>'.
<br /><br />
Now we need to make some tables so we can do something a bit more
interesting.  This makes a 3 column table.  The .schema command lists
the tables in the database.
<pre>
sqlite&gt; <b>CREATE TABLE somedata (aNumber INT, aFloat REAL, aString VARCHAR(30));</b>
sqlite&gt <b>.schema</b>
CREATE TABLE somedata (aNumber INT, aFloat REAL, aString VARCHAR(30));
</pre>
Now put some data into the table:
<pre>
sqlite&gt; INSERT INTO somedata values (1, 1.001, "a first string");
sqlite&gt; INSERT INTO somedata values (6, 42.000001, "another string");
sqlite&gt; SELECT * FROM somedata;
1|1.001|a first string
6|42.000001|another string
</pre>
If you want to write out a csv file that you can import into Excel
or some other database, try something like this:
<pre>
sqlite&gt; .separator ", "
sqlite&gt; .output foo.csv
sqlite&gt; SELECT aFloat, aString FROM somedata;
sqlite&gt; .quit
% <b>cat foo.csv</b>
1.001, a first string
42.000001, another string
% <b>open .output foo.csv</b>
</pre>
The next thing to look at is <b>WHERE</b> to limit searches to a
subset of the data.]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-23T17_40_03.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-23T17_40_03.txt</link>
<title>GMT is 20 years old</title>
<dc:date>2008-07-23T17:40:03-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[<pre>Hello GMT users-
.
GMT quietly passed a major milestone sometime earlier this month.  20
years ago (in early July 1988), Walter and I released GMT version 1.0
to an unsuspecting group of students and scientists at Lamont-Doherty
Earth Observatory.  The first years GMT was used mostly at Lamont but
slowly migrated to other places as graduating students and various
visitors took 9-track tapes with them to their new institutions.
.
The official global launch of GMT did not take place until October 8,
1991 with our EOS article; hence we will hold off on the wild parties,
logo competitions, and other nerd trivia until we get closer to the
official 20-year anniversary in 2011.  Stay tuned!
.
Cheers,
Paul Wessel, Walter Smith, and the GMT team</pre>]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-22T09_03_47.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-22T09_03_47.txt</link>
<title>ogg and Apple</title>
<dc:date>2008-07-22T09:03:47-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[Apple's iTunes on the Mac does not play ogg?!?!  I'm having to run
Audacity to play a podcast.
<br /><br />
Also, the UNH IT team says that their VPN is not compatible with that
in Mac OSX 10.5.
<pre>
To the best of my understanding the Mac built in VPN will work with
generic PPTP VPNs or a Mac server IPSec VPN.  What we run on campus is a
Juniper SSL VPN.  The Mac's built in VPN software will not connect to
it.  It needs to connect via the web Browser.
</pre>
This big move to Browser RAS does not thrill me.
<br /><br />
And the UNH travel expense Excel spreadsheet does not seem to be
compatible with MS Office 2008 for Mac.]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-21T17_44_37.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-21T17_44_37.txt</link>
<title>Mac - Hiding the dock and menu bar</title>
<dc:date>2008-07-21T17:44:37-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[From Jake and Kenny: <a href="http://www.macworld.com/article/55321/2007/02/hidemenubar.html">How to hide the menu bar and Dock</a> on a Mac. [macworld]
<pre>
Have you ever wanted the ability to hide the Dock and/or the menu bar
on an application-by-application basis? That is, when you launch
iPhoto, the Dock is hidden, when you launch Google Earth both the Dock
and the menu bar are hidden? This can be useful when working on a
smaller screen with a program that requires most of the screen for its
visuals, or if you just find the Dock and menu bar are cluttering your
view of things.
.
While there are a number of third-party programs out that purport to
do just this- ASM and MenuShade come to mind - it's actually quite easy
to do yourself. It just takes a couple of simple edits in one file
within the given application.
...
</pre>
I made a copy of the Stickies application on my desktop.
<pre>
  % <b>cd ~/Desktop/StickiesCopy.app/Contents</b>
  % <b>emacs -nw  Info.plist</b>
</pre>
Then add the lines that say 'HERE:'...
<pre>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">?xml</font> <font color="#2040a0">version=</font><font color="#008000">&quot;1.0&quot;</font> <font color="#2040a0">encoding=</font><font color="#008000">&quot;UTF-8&quot;</font><font color="#2040a0">?</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">!DOCTYPE</font> <font color="#2040a0">plist</font> <font color="#2040a0">PUBLIC</font> <font color="#008000">&quot;-//Apple//DTD PLIST 1.0//EN&quot;</font> <font color="#008000">&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">plist</font> <font color="#2040a0">version=</font><font color="#008000">&quot;1.0&quot;</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">dict</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<!-- HERE: -->  <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">key</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>LSUIPresentationMode<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/key</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<!-- HERE: -->  <font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">integer</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>4<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/integer</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
	<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">key</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>CFBundleDevelopmentRegion<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/key</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
	<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">string</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>English<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/string</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
	<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">key</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>CFBundleDocumentTypes<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/key</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
  ...
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/dict</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
<font color="#2040a0"><strong><font color="4444FF"><strong>&lt;</strong></font><font color="#2040a0">/plist</font><font color="4444FF"><strong>&gt;</strong></font></strong></font>
</pre>
And the options for that variable:
<ul>
<li>LSUIPresentationMode 1 - Hides Dock. Dock will appear if mouse moved to where it is located.</li>
<li>LSUIPresentationMode 2 - Removes Dock.</li>
<li>LSUIPresentationMode 3 - Removes Menu Bar and Dock.</li>
<li>LSUIPresentationMode 4 - Hides Menu Bar and Dock. Menu Bar or Dock will appear if mouse moved to where Menu Bar or Dock is located.</li>
</ul>]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-21T09_23_21.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-21T09_23_21.txt</link>
<title>NOAA RNC disruption</title>
<dc:date>2008-07-21T09:23:21-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[I'm not sure what this means yet.  All caps as the USCG sends its
announcements.  Note to the USCG: Putting URLs in ALL CAPS is not
going to work.  Most web servers are case sensitive on the text after
the host name.
<pre>
SUBJ: <b>INTERRUPTION TO RASTER NAVIGATIONAL CHART (RNC) DISTRIBUTION</b>
A. COAST GUARD NAVIGATION STANDARDS MANUAL, COMDTINST M3530.2
(SERIES)
1. THE NATIONAL OCEANIC AND ATMOSPHERIC ADMINISTRATION (NOAA) HAS
ADVISED THE COAST GUARD THAT AS OF 15 JUNE 2008 THERE IS A
TEMPORARY INTERRUPTION TO THE STANDARD DISTRIBUTION OF RNC UPDATES
AND NOTICE TO MARINERS.  THIS INTERRUPTION COULD LAST UP TO TWELVE
MONTHS.  NOAA IS IN THE PROCESS OF UPGRADING THEIR CHART PRODUCTION
SYSTEM AND DECREASING THEIR RELIANCE ON THIRD-PARTY DISTRIBUTORS.
2. AS DISCUSSED IN REF A, THERE ARE FIVE TYPES OF CHART DATA
AUTHORIZED FOR COAST GUARD USE. THE ONLY DATA IMPACTED BY THIS
INTERRUPTION OF SERVICE IS RNC WHICH WILL AFFECT THE US EAST COAST,
US WEST COAST, US GULF COAST AND GREAT LAKES REGIONS.  C2CEN HAS
DETERMINED THAT THE FOLLOWING COAST GUARD NAVIGATION SYSTEMS AND
CUTTER CLASSES ARE HEAVILY DEPENDENT ON RNC DATA:
 A. COMDAC-INS (WMSL/WHEC/WMEC/WPB-110)
 B. CAPN VOYAGER (WHEC/WMEC/WPB-110/WLIC/WLI/WYTL/EAGLE/BUSL-49)
 C. VOYAGE MANAGEMENT SYSTEM (VMS) (WPC-179)
3. OUR CURRENT STANDARD IN REF A STATES THAT ELECTRONIC CHART DATA
IS CONSIDERED UP-TO-DATE IF IT HAS BEEN CORRECTED WITHIN THE LAST
FORTY-FIVE DAYS. CURRENT RNCS DISTRIBUTED BY MAPTECH WILL PROVIDE
CUTTERS WITH UP-TO-DATE CHARTS THROUGH JULY 2008.
4. NOAA OFFICIAL ELECTRONIC NAVIGATION CHARTS (ENC) ARE THE MOST
UP-TO-DATE ELECTRONIC CHARTS AVAILABLE AND ARE THE PREFERRED CHART
BASED ON THE HIERARCHY DISCUSSED IN REF A.  ENC CHARTS AND UPDATES
ARE AVAILABLE FOR FREE DOWNLOAD AT
HTTP://NAUTICALCHARTS.NOAA.GOV/MCD/ENC/INDEX.HTM.
...
</pre>]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-18T12_03_55.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-18T12_03_55.txt</link>
<title>Free online google earth NOAA charts for continental US</title>
<dc:date>2008-07-18T12:03:55-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[<a href="http://freegeographytools.com/2008/us-nautical-chart-overlay-for-google-earth">http://freegeographytools.com/2008/us-nautical-chart-overlay-for-google-earth</a>
<br /><br />
<a href="http://navimatics.com/maps.aspx">http://navimatics.com/maps.aspx</a>
<br /><br />
Make sure to zoom way into an area or you will only see the bounding boxes.]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-18T07_52_45.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-18T07_52_45.txt</link>
<title>TWIC and foreign students on ships</title>
<dc:date>2008-07-18T07:52:45-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[In the case of TWIC cards for Research Vessels, I really wonder what
the DHS was thinking.  Their cost-benefit model must be 'interesting'.
<br /><br />
<a href="http://insidehighered.com/news/2008/07/18/qt">Quick Takes:
Pentagon Pledges to Limit Restrictive Contracts, Oceanography Students
Declared Not to Be Threat...</a> [Inside Higher Ed]
<pre>
The U.S. Department of Homeland Security has agreed to lift the
designation of some foreign graduate students in oceanography as a
security threat. The designation prevented the students, enrolled at
the Massachusetts Institute of Technology, many from countries
considered close U.S. allies, from doing certain research work in
harbors. While officials at MIT and other universities have called the
designations absurd, the government didn't lift them until asked to do
so by Rep. Brad Miller, chair of the Investigation and Oversight
Subcommittee of the House Science and Technology Committee. Miller
released various letters on the matter, praising the lifting of the
classification and calling on the government to take steps to avoid
hindering graduate students in similar situations.
</pre>
And interesting read to go with this: <a
href=http://www.schneier.com/blog/archives/2008/07/homeland_securi_2.html">Homeland
Security Cost-Benefit Analysis</a> [Schneier on Security]
<pre>
The Pentagon has issued a policy statement that contracts for research
with universities should not generally have restrictions on
disseminating research findings unless the research is classified.
...</pre>
Now we need to keep some sense as to what is classified vrs unclassified.
I've experience people putting unclass data on the class networks expecting 
me to get it from there.  Um, no!]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-17T09_53_17.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-17T09_53_17.txt</link>
<title>Neptune LNG terminal construction</title>
<dc:date>2008-07-17T09:53:17-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[<a href="http://www.newburyportnews.com/punews/local_story_198225719.html">Work begins on 2nd local off-shore LNG site</a> [NewburyportNews.com]
<pre>
...
Carrying the 170 workers of Caldive, the global sea drilling company
from Quincy, the live-on construction barge Lone Star Horizon is now
in position for the project. It was towed out Tuesday night for Suez
Energy North America, according to company spokeswoman Carol
Churchill.
.
The site of the terminal - named Neptune - was challenged by the
fishing community, which objected to the loss of fruitful waters to
the energy industry, but then-Gov. Mitt Romney authorized the LNG
terminal on the site in December 2006. He also approved a second
terminal site to the south that has been built and began receiving the
tankers last month.
.
The Neptune site will consist of a buoy system at which the LNG
vessels will moor and discharge natural gas by using onboard
vaporization equipment, according to Suez Energy. The natural gas will
be transported via a 13-mile pipeline connecting to the existing
pipelines through Salem.
...
</pre>
<a href="http://www.neptunelngconstruction.com/">http://www.neptunelngconstruction.com/</a> by SUEZ
<pre>...
Neptune will implement vessel restrictions, including:
    * Speed restrictions to avoid striking marine mammals and sea turtles;
    * Downward lighting to minimize light attracting sea birds at night; and
    * Vessel shutdowns in the event of a marine mammal sighting.
During construction, two marine mammal observers (MMOs) are on duty on
each construction vessel 24 hours a day, seven days a week, to
visually monitor for the presence of marine mammals and sea
turtles. At night, the MMOs use infrared scanning devices to monitor
for the presence of marine mammals and sea turtles in the construction
area. In addition to visual observations, Neptune has installed a
series of acoustic buoys in the construction area that automatically
monitor for the presence of the endangered North Atlantic right
whale. If a right whale is detected, the MMOs are notified
immediately, and vessels will be placed on heightened alert.
...</pre>]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-16T09_39_12.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-16T09_39_12.txt</link>
<title>Phx Robotic Arm</title>
<dc:date>2008-07-16T09:39:12-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[I've headed away from the Phoenix project and am now back in the world
of NOAA.  However, I am still paying attention to the mission.
Phoenix is a fantastic mission from a science perspective.
<br /><br />
<a href="http://www.pcworld.idg.com.au/index.php/id;593684490">NASA:
Robotic arm on Mars Lander shuts down to save itself - As weather
window starts closing, scientists move to fix problem and speed up
tests</a>
<pre>...
After receiving instructions for a movement that would have damaged
its wrist, the robotic arm recognized the problem, tried to rectify it
and then shut down before it could damage itself, according to Ray
Arvidson, a co-investigator for the Mars Lander's robotic arm team and
a professor at Washington University in St. Louis.
.
NASA engineers yesterday worked to send new instructions to the Lander
so the robotic arm would come back to life and proceed with a new set
of instructions. The team is now waiting to see whether the code
resolved he problem.
...</pre>]]></description>
</item>
<item rdf:about="http://schwehr.org/blog/archives/2008-07.html#e2008-07-16T09_24_42.txt">
<link>http://schwehr.org/blog/archives/2008-07.html#e2008-07-16T09_24_42.txt</link>
<title>NOAA Tides Course</title>
<dc:date>2008-07-16T09:24:42-04:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[After my little exploration into tides I need to read up on tides.
NOAA has an online course.  This is a quick overview that will help
people get at least the basics.
<br /><br />
<a href="http://oceanservice.noaa.gov/education/kits/tides/">Tides and Water Levels</a>
<br /><br />
<img src="http://schwehr.org/blog/attachments/2008-07/noaa-tides-course.jpg"/>]]></description>
</item>
</rdf:RDF>
