Friday, May 18, 2018

Audible on Garmin Nuvi

I have a Garmin Nuvi 650. It is old. I cannot find the Audible Manager for Mac that allows me to add books to the GPS.

I used to be able to add books to it.

I changed the SD card, so the old file structure was gone.

I downloaded the book files to my computer.

The fix was simple. Add a folder named Audible in the root of the SD card and copy the book files using Finder. I can listen to the books now.

Nuvi only recognizes .aa format, not .aax. Before downloading from Audible, select the Format4 option, which will download as .aa files.

Thursday, May 17, 2018

Sanitize RV Water System

I have adapted the notes form https://www.rvtrader.com/research/news-reviews/press-room/rv-how-tips-sanitize-your-rv-water-system.


  1. Drain the water heater.
  2. Open drain plug and all faucets.
  3. Turn off water pump when empty.
  4. The recommended ratio of bleach to water is 1/4 cup per 15 gallons. I have a 24 gallon tank, with a 6 gallon hot water heater. I will add 1/2 cup to 30 gallons.
  5. Add the bleach to a gallon of water and added it to the water tank.
  6. Fill the water tank with potable water.
  7. Run the faucets until bleach is smelled from each.
  8. Close valves.
  9. Drive truck to agitate the mixture.
  10. Let sit for 12 hours.
  11. Drain, including hot water heater.
  12. Fill with water. Run faucets until bleach smell is gone.
  13. Drain and fill.

Updating Maps on Garmin Nuvi 650

The internal memory of the Garmin Nuvi 650 is too small for modern maps.

The Nuvi can handle up to a 32 GB SD card. I have a card of 8 GB with maps from 2014 and 2017.

I inserted a new card to install the maps for 2019.

Garmin Express only wants to install to the internal memory.

Use Garmin Express to install the maps on the computer only.

On my Mac, the location is in the my Library/Application Support/Garmin. The old maps are installed in the Maps folder. The new maps are installed in the Express/Maps/NA.2019.11/IMG. The folder has two files, .10 and .11. I copied both to the Garmin/Maps folder. Now they appear in MapInstall.

Use MapInstall to select the memory card on the Nuvi, select the new maps from the drop down and install. The install took 2 hours.

One year late...

On Windows, the maps are in /ProgramData/Garmin. (City Navigator North America NT 2020.10.gmap). I did not have to copy the new maps, they were already in the folder that MapInstall reads.

Monday, May 7, 2018

Using Maven

I have added my web development project using Spring to Maven.

It is easy to set dependencies.

I had a problem connecting to a database using mysql-connector-java-6.0.6.jar. I received an error about the wrong time zone.

com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: 
The server time zone value 'EDT' is unrecognized or represents more than one time zone.
You must configure either the server or JDBC driver (via the serverTimezone configuration property) 
to use a more specifc time zone value if you want to utilize time zone support.

I changed to a different mysql server and received an SSL error.

com.mysql.cj.core.exceptions.UnableToConnectException: CLIENT_PLUGIN_AUTH is required

I attempted to add useSSL=false to my connection string. but it did not fix the problem.

I reverted to mysql-connector-java-5.1.44.jar. It fixed both problems.




Tuesday, April 24, 2018

Remembering how to use svn

I have been using git and GitHub for a while, but I still have some repos that are under svn. Of course, I don't remember the svn commands anymore.

List available repos with
svn list svn://server:port

To view all the folders in a particular repo
svn list svn://server:port | egrep "\$"

The folder layout should be
/trunk
/branch
/tag

I do not have any branches, just trunk and tag.

I work in NetBeans. I checked out the trunk into a local folder, not a NetBeans project. I used the built-in svn client in NetBeans.

I created a separate NetBeans project, outside the version controlled folder. I created a web app with existing sources.

To add an existing project to the repo, use the import command on the client. Use a root folder and a trunk subfolder.
svn import svn://server:port/root-dir/trunk

I also use the command line for checkout from the project_dir on the server to the local_dir
svn co svn://server:port/project_dir local_dir






Tuesday, March 27, 2018

Where are things in YII

Constants can be created and accessed in a controller with

const YEAR = '2018';

then accessed with

self::YEAR

In a Yii app, place constants in config/main.php

'params'=>array(
// this is used in contact page
                'year_senate'=>'2018',
),

then access it with

Yii::app()->params['year_senate']


Thursday, March 15, 2018

MAC Information

Generating sha256 on Mac

To generate a sha 256 hash on Mac OSX, use

openssl sha -sha256 file

or

shasum -a 256 file

Upgrading HTML Tidy to HTML5

The Html Tidy that shipped with MAC OSX does not support HTML5.

Get the binary from http://binaries.html-tidy.org/

Verify the sha256 hash before installing.

Adding HTML Tidy to TextWrangler

From http://www.mzoo.org/html-tidy-with-text-wrangler/

Change to
~/Library/Application Support/TextWrangler/Text Filters/

(I did not have a folder for TextWrangler, so I created one and add a Text Filters subfolder.)

Create a file named HTML Tidy.sh containing

#!/bin/sh

/usr/bin/tidy -utf8 -asxhtml -indent -wrap 100 -quiet 2> /dev/null

Restart TextWrangler and access filter from Text -> Apply Text Filter -> HTML Tidy

The last used filter will be available from the Text menu.


Thursday, February 1, 2018

Connecting to GitHub in Visual Studio Community for Mac

I am using build 7.3.3 of Visual Studio Community for Mac.

I have an existing repo on GitHub that contains a .gitignore for Visual Studio and a Readme file.

To add a project to the repo, I follow these steps:


  1. Create a new F# console project.
  2. Right-click the top level folder in the project and select Publish in Version Control.
  3. I am asked to enter my credentials. I cancel this operation, since I know it will fail until I perform an update from the repo.
  4. After cancelling the push, I can select update from the version control context menu for the solution.
  5. After entering my credentials, the update completes. (For some reason, I have to enter my credentials multiple times.)
  6. Now I can perform a push that will succeed. All of the files for the project will be added to the repo.
I am unable to store my username and password credentials in Visual Studio. I have added the credential manager at the command line, and am able to push, fetch, pull without having to re-authenticate. If anyone knows how to remember credentials in Visual Studio for Mac, please let me know.

Followers