Updating PyCharm and JRE

When updating your Python IDE PyCharm to the latest version you might run into an issue on older machines.  It looks like PyCharm will helpfully install a 64-bit JRE, but not a 32-bit version, even if you opt to include both 32-bit and 64-bit startup shortcuts.

When trying to start 32-bit PyCharm after such an install you’ll get an error that looks like this:

But hold on.  You may not need to go out and search for and install a complete JDK to satisfy PyCharm’s needs.  A simple JRE will do and if you happen have an older version of Pycharm already installed on your machine you don’t need to download anything.

On my old Windows XP test VM I found a “jre” directory under “C:\Program Files\JetBrains\PyCharm 4.5.3\”.  Copy that directory into the new version’s location (“C:\Program Files\Jet Brains\PyCharm Community Edition 2017.2\” for me) and try again.

It worked.  No downloading and no new environment variable.

Posted in Programming, Python | Leave a comment

Coastal Rx

One of the nice things about living near the coast in California is there are options to be had when the temperatures get a bit high.  Highs in the 100’s in Austin, TX means you have to grin and bear it.  And hope that the AC doesn’t give out.

The Pacific Coast as seen from the Bluff Top Trail

In California, if the temperature gets above 100 in one of the valleys a drive to the coast can result in a 30-40 degree level of relief.  And that’s the prescription Penny and I took this past weekend when we went hiking near Gualala, CA.  The Bluff Top trail’s northern terminus starts in Gualala Point Regional Park and continues down for about 3.5 miles to Walk On Beach.  With some extra mileage thrown in we did more than 8 miles of hiking.

Penny looking down on one of the numerous small beaches along the trail, most of which are inaccessible.

It’s a bit of a drive, and in hindsight not one we’re likely to redo often for simple day trips.  Perhaps a weekend trip to more fully explore the area might be a better option.  Salt Point State Park is nearby, among others.

You can find more photos, and a map, of this outing on my Hiking Trailhead log page.




Posted in Uncategorized | Leave a comment

Taking Flight

For my recent birthday Penny decided to give me a gift of experience in the form of a flight over California Wine Country.  Vintage Aircraft at Schellville Airport offers rides on a number of vintage aircraft including biplanes, a T-6 Texan Trainer, P-40 Warhawk and even a P-51 Mustang.

Penny and me after our flight

In part because I thought the flight would be more enjoyable sharing it with Penny I opted for the 1942 Stearman open cockpit biplane, which allowed for side by side seating in the front cockpit.  That plane is almost as old as my Dad!

Our flight took us over southern Sonoma and a good deal of Marin counties.  We had the pleasure of flying over numerous vineyards, Sausalito, getting close to the Golden Gate Bridge, flying just under the peak of Mount Tamalpais, catching glimpses of wild deer darting over ridge tops and even circling over our house.

Our pilot, Chris, provided a silky smooth flight and to our great surprise the landing was perhaps the smoothest touchdown we’d encountered on any flight in a plane of any size.  Acrobatics are an option for flights here, but we opted for a more sedate outing this time around.

Great fun and a wonderful way to start the day.  We may have to pick another milestone in the future for a return visit.

This paper makes it official!

Posted in Family | Leave a comment

40,000 Acres

Penny and I have had a running joke about owning 40,000 acres of land for years.  It started due to a misunderstanding about the amount of land we were discussing as being acceptably large to qualify for a fine home in the country, away from the hustle and bustle of city life.  She thought I said 40,000 acres and repeated it back to me questioningly and we’ve run with it ever since.

Driving through the country and see a for sale sign listing 100 acres?  Too small.  It’s 39,900 acres short of acceptable.  Obviously our small city lot falls short of the mark, but we have to live somewhere until the minimally viable plot is acquired.

For my upcoming birthday Penny decided to finally do something about this.  She adopted an area of land far greater than 40,000 acres and presented me with a certificate.  Since the parcel was selected at random I lucked out in that it actually includes terra firma and not some slice of empty ocean.


Yeah.  It’s official with an ID number and everything!  How much land is this?  Well the website divided up the Earth into 64,000 parcels.  At 196.9 million square miles on the Earth’s surface, that comes out to 3,076 square miles.  That’s equal to 1,968,640 acres, safely over the 40,000 acre minimum and bigger than the state of Delaware.

Unfortunately for us the ranch is not close to the Bay Area.  In fact, it’s in Russia.  Orenburg, capital of Orenburg Oblast, is the largest city nearby.  The town of Alexandrovsky might be closest town by road to the center of the area adopted.  Kazahkstan is just a bit farther to the south.

Penny says she’s not moving.  I thought this was her idea.  I may pass along a list of the top tourist attractions in Orenburg Oblast and see if I can soften her up.

You too can visit the NASA Adopt the Planet website to “lay your claim” to your slice of heaven.  Stear clear of Orenburg, if you please.  We’ve got big plans!

Posted in Uncategorized | Leave a comment

Klondike Challenge Conquered

After months of adding up walking and hiking mileage, I surpassed the 500 mile mark to complete the Klondike Challenge. The challenge is sponsored by Jack London State Historic Park to commemorate the 100th anniversary of the death of author Jack London. The 500 miles of walking or hiking reflect, roughly, the distance he traveled in the Klondike during the gold rush years, an experience which greatly shaped his writing career.

Jack London Centennial Banner

I would rather be ashes than dust!
I would rather that my spark burn out
in a brilliant blaze than it should be stifled by dry rot.
I would rather be a superb meteor every atom of me
in magnificent glow, than a sleepy and permanent planet.
The proper function of man is to live, not to exist.
I shall not waste my days in trying to prolong them.
I shall use my time.

The hike Penny and I took in Vallejo a few days ago pushed me over the 500 mile mark for the year. Penny surpassed the 500 mile mark months ago since she logs a number of miles before and/or after work each day. We’ll be be eligible for the “graduation ceremony” for participants to be held in January.

We’ll probably get another walk or hike in before New Years, but I doubt that I’ll be able to add substantially to my mileage.

Posted in Uncategorized | Leave a comment

Pomodoro One

Since November 2015 I’ve been working from home.  Though working from home has been a theoretical option for years, this is the first time I’ve taken the plunge and done it exclusively.

So far, things have turned out well, despite some initial fears.  Would I mix up personal and work spaces?  Would I too easily gravitate toward the TV or a frivolous website?

It’s generally accepted that a bit more than average self control may be called for when people work from home.  But I don’t consider myself above average in this regard.  To compensate for this I try to surround myself in practices and habits that facilitate focused activity around work.

One of standard tools I’ve come to use the Pomodoro Technique.  By breaking up the work day into small bits of focused activity I’m able to both concentrate when I need to and also break things up to avoid boredom and feelings of endless toil.

The original Pomodoro Method called for a kitchen timer to keep track of 25 minute sprints of activity.  Any mechanical kitchen timer would drive me crazy with its ticking, so instead I opted for the Pomodoro One app on my company’s MacBook Pro laptop.

When starting the app, some indicators are added to the Status Menu that show how many minutes and seconds remain in the next pomodoro.


Right click on the status and select “Show” to display the simple main dialog that shows dots for each pomodoro completed today and VCR-like controls to start, pause and stop the pomodoro.
Screen Shot 2016-03-08 at 9.59.45 PM

Press the cog wheel button to configure things such as the number of minutes in a pomodoro and in the break times between them.

Screen Shot 2016-03-08 at 9.59.50 PM

The name of the game with Pomodoro is to focus when working and acquire as many pomodoros in a given day as you can.  A summary shows the number of pomodoros completed for this week and last:

Screen Shot 2016-03-08 at 9.59.11 PM

There’s a lot more involved with the Pomodoro Technique than merely using a tool like Pomodoro One, but it’s a very useful, easy to use and free tool to get you started on being more productive at home, or wherever you happen to work.

Posted in Uncategorized | Leave a comment

The Klondike Challenge

I’m a bit of a sucker when it comes to checklists and challenges.  One of my favorite things about hiking (other than the hike itself) is logging my hikes on one of my websites and seeing yet another trail marked as hiked.  Another checkmark.

Challenges, like other goals, are pretty motivating too.  The Bay Area has a couple of challenges that are sponsored by park districts each year that attempt to get citizens to visit and walk through the large number of natural areas they provide.

Late last year I stumbled upon the Klondike Challenge.  The year 2016 marks the 100th anniversary of Jack London’s life.  Jack lived in Sonoma Valley and he’s left a large impression on the area.  In commemoration of this milestone the Jack London State Historic Park folks have organized a hiking and walking challenge to get people outdoors and channel the spirit of London’s adventurousness.

This time I was ready to really act upon a challenge.  My intention is to meet, or exceed, the challenge’s 500 mile goal.  As of Jan. 4 Penny and I have already covered a bit over 10 miles.  On Jan. 2 that included an 8.5 mile trek through Sugarloaf Ridge State Park.

The 500 mile goal of the challenge is based on the rough distance travelled by London during his trip from the Yukon to the Klondike during the Alaskan gold rush around the dawn of the 20th century.

Overall, I’ve logged close to 1,000 miles on my websites.  But that was spread out over several years.  Five hundred miles in one year will definitely be a record.  Walks around town don’t really have a place on my sites so I’ll keep track of them on something like MapMyHike.  I already have about 1.5 miles there.

Through the challenge Jack London State Historic Park also hopes to raise some money for much needed trail restoration.  California’s parks are unbelievably gorgeous.  But they have suffered severe budgetary cutbacks during the last few years.  Some parks now operate under the control of entirely volunteer organizations which stepped in to avoid having the parks close altogether.  Combined with my hiking goal, I’m also hoping to help raise some money for the cause through a new crowd funding campaign.

I’d appreciate it if you could contribute a couple of dollars to the campaign to help give this wonderful park a needed boost.  I intend to cover all of the credit card costs of any donations and provide a check for the total amount of contributions.

See you on the trails!


Posted in Uncategorized | Leave a comment

Mount Robert Barron

Penny and I play a little game whenever we go on vacation.  At any souvenir shop we come across that features the typical display of personalized trinkets, such as keychains with names on them, we look to see if we can spot one with “Penny” on it.  Thus far we have not spotted a single item.

During a recent cruise to Alaska, Penny and I visited the Mendenhall Glacier outside of Juneau. While perusing the displays about glaciers and the area’s natural wonders a familiar sight caught my eye on a relief map on the wall.

Wait. What is that?  My own personalized mountain?

Yes, there’s a summit bearing my name on Admiralty Island not too far from the state’s capital. I’m not sure what I’d done to deserve such accolades, so of course I did some research to find out the true story.

This Robert Barron was the son of James Barron who helped develop the Funter Bay region.  James for a time was the President of the Thlinket Packing Company. Robert graduated from Boston University and would serve as Vice President of the company. Years prior to that young Robert’s face was apparently used on the “Buster Brand” labelling for the company.  “Buster” was a nickname that applied to both Robert and his father.

Young Robert Barron

When the US entered World War I Robert joined the Aviation Training Corps at MIT and was killed during training while trying to rescue some fellow pilots who had fallen into the Delaware River in Pennsylvania.  His father received a personal letter from President Wilson.

Cadet Robert Barron

In 1919 the US Geological Survey named the peak on Admiralty Island in his honor.  One last image, of his gravestone, offers up one more interesting fact:

Grave Marker

He also had my middle name.  Or is that the other way around?

I know of no relationship between these Barron’s and us, but it made for an interesting find nonetheless.

Posted in Travel | 3 Comments

Locking files for testing

Getting errors when trying to access locked files is a common situation that must be addressed by programs.  On Windows machines it’s fairly easy to replicate the scenario of a locked file using a simple technique that I picked up recently.  Simply run the following command with notepad.

notepad >> filename.txt

The file will remain locked until Notepad is closed.  No need to an additional tool or utility to apply a lock to a file.

Posted in Programming | Leave a comment

HTML escape characters in Azure app settings

Windows applications can make use of XML nodes in appSettings to pass configuration information into a program.  Because the app.config (or web.config) file is XML some characters need to be escaped so that they are not improperly parsed as part of the XML markup.

In a recent project I ran into a problem with the following setting:

John Doe <address@foo.com>

This represented the email address from which email was to be sent on behalf of the application.  The less than and greater than characters needed to be escaped:

John Doe &lt;address@foo.com&gt;

So now the app ran fine on my development box with the escaped characters properly converted to ‘<‘ and ‘>’ respectively.  Upload the app to an Azure web job and configure the app settings with the same value as above and this results in …..  errors.  The email program complained about invalid semi-colons.

Note that the Azure app settings values are not represented in an XML file and thus should not be HTML escaped.  Changing the Azure app setting to the original value:

John Doe <address@foo.com>

and the email code now works as expected.

Posted in Programming | Tagged | Leave a comment