Thursday, May 17, 2018

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.

Friday, December 29, 2017

Updating Book for New Edition

I am using SVN with Netbeans to store the contents of the book.

To avoid the issue with the project files being added to the repo, I have added the repo source files to a working directory and created a Netbeans project in a different folder, pointing the sources of the project to the working directory files.

I avoid using the NetBeans SVN and use a separate program. On the Mac I have used svnX, but it has problems with the newer OS. I am trying SmartSVN 9.2. I have a 31 day free, professional trial before reverting to a simple, free version.

I stored the source for the images in a separate repo. The branch only has the final version of each image.

The ROOT servlet on the website has an index. Controller that intercepts book and translates to the correct edition of the book.

I use an Index controller to access the chapters.

When setting up project on new computer:
  1. checkout repo
  2. create netbeans project from existing sources
  3. allow ssi in web.xml
  4. allow listings in web.xml
  5. edit tomcat-users 
  6. set context as privileged
One of the projects is a Maven project. After checking out the repo, download dependencies.






More Blogs

Followers