Sunday, September 20, 2015

Sailing (Round the Globe)

So one of the things my Love and I have talked about is the idea of taking off to a season of sailing. The ocean has a sort of primitive draw to me that is hard to explain and not particularly rational. I have no experience sailing. In fact, my experience on the water is limited to commercial ferries and canoeing a couple of hours at a time.

To take off on a trip like this, we would need a couple of prep steps: a boat, training in sailing, and a route would probably be good too.

As for timing, if we were to go in about 15 years, it might work perfect -- the kids would probably be between 10 and 17 years of age. Our other option would be to wait until they've all left home, which would push it out another 10 years or so.

One of thing I worry about with a boat is the limited space. For the mechanics of living, I don't think it would be an issue, but I wonder how well several kids would deal with each other (and me with them) in such tight quarters, with really nowhere to go. But the bigger the boat, the more expensive it becomes too.

Swimming lessons for the kids growing up (and possibility for me too) take on a whole new importance. Fishing too.

For a route, we could do something as simple as island hopping through the Caribbean or in Hawai'i, but the round-the-world trips are much more fun to muse about. So here's a proposed round-the-world sailing trip:

  • Fly to Vancouver, Canada, and pick up the sailboat
  • Sail down the Pacific coast of the US, and visit California
  • from somewhere between San Francisco and Cabo San Lucus, Mexico, sail west to Hawai'i. I remember hearing this is about a 3 week trip in a boat. This would probably be our longest open-water stretch.
  • visit the Hawai'ian islands
  • sail south to the South Pacific, and visit islands such as Tahiti.
  • keep sailing southwest to the land of 'The Long White Cloud', aka New Zealand
  • sail over to Australia. The biggest cities (and so the places to see?) are around the southeast 'corner' of the country. From here, we want to sail to the northwest 'corner', so we could probably go either way around, but if we follow the east and north coasts, we'll get to see the Great Barrier Reef
  • sail through Indonesia, towards India
  • in deciding where to go next from India, it takes some peering into the future. I'd like to go to the Mediterranean next, via the Suez Canal. Today, the Horn of Africa is too much of a piracy haven for my tastes. But one can hope that in 15 years it will be sorted out. If it's still a mess, then maybe we sail 'the long way round', via the Cape of Good Hope.
  • once in the Mediterranean, I would visit the ancient roots of western civilization — Egypt, Israel, Greece, and Rome, and possibly Carthage
  • being this close to Europe, the idea of visiting the rest of (western) Europe is tempting. The best plan might be to dock at someplace like Marseilles and then take the train to England, France, and Germany (Marseilles is 6 hours from Paris by train).
  • from the Pillars of Hercules, sail southwest to the Canaries.
  • how far south we go from here depends on how quick we want to be home. Assuming we're still at a leisurely pace, I would head on to Brazil.
  • depending on where we might sell the boat, we might stop early from here on out and just fly home, but barring that...
  • From Brazil, wander through the Caribbean islands
  • pay Florida a visit
  • sail up the east coast of the US. Stops as strike our fancy, but likely a minimum of Washington DC and New York City
  • and finish up in Halifax, sell the boat, and fly home

The trip seems to be about 49,300km long. Per this, a good average for a sailboat is 100 nautical miles, or 185km, per day. That would work out to 267 days on the water, giving no time for shore leave. If timed right (in regards to seasons and shore leave), could we pull this off inside a year?


As I put together a map of the trip, I found another family proposing something like this. They plan to go around the southern capes of both Africa and South American, and will end up crossing the Atlantic three times, but they do give some sense to the time such a trip will take — 75 countries in 75 months (6 years!)

Monday, July 20, 2015

Colourettu version 1.1 for Python released


Version 1.1.0 of Colourettu has been released.

Colourettu is a Python library I've written for dealing with colours and "palettes" (groups of colours).

A quick example:


import colourettu

c1 = colourettu.colour()                # defaults to #FFF
c2 = colourettu.colour("#eee")          # equivalent to #EEEEEE
c3 = colourettu.colour("#456bda")
c4 = colourettu.colour([3, 56, 129])    # as an RGB tuple or list
c5 = colourettu.colour((63, 199, 233))
c6 = colourettu.colour([0.242, 0.434, 0.165], normalized_rgb=True)

all_colours = [c1, c2, c3, c4, c5, c6]
p2 = colourettu.palette()
p2.from_list(all_colours)
p2.to_image('p2.png', max_width=360, vertical=False)


The easiest to install (or upgrade) Colourettu (assuming you already have Python installed) is to use pip:
pip install colourettu --upgrade

The changes for this version include a project logo (above), and the addition of the palette class.

Colourettu documentation is now online. A full changelog is online as part of that. The code for Colourettu is hosted on Github.

Saturday, January 17, 2015

Colourettu version 1.0 for Python released

Version 1.0.0 of Colourettu has been released.

Colourettu is a Python library I've written for dealing with colours, and specifically to determine the contrast between two colours.

A quick example:


import colourettu

c1 = colourettu.colour()                # defaults to #FFF
c2 = colourettu.colour("#eee")          # equivalent to #EEEEEE
c3 = colourettu.colour("#456bda")
c4 = colourettu.colour([3, 56, 129])    # as an RGB tuple or list
c5 = colourettu.colour((63, 199, 233))

>>> colourettu.contrast("#FFF", "#FFF") # white on white
1.0
>>> colourettu.contrast(c1, "#000")     # black on white
20.999999999999996
>>> colourettu.contrast(c4, c5)
4.363552233203198


The easiest to install (or upgrade) Colourett (assuming you already have Python installed) is to use pip:
pip install colourettu --upgrade

The biggest change with this release is that Colourettu documentation is now online. A full changelog is online as part of that. The code for Colourettu is hosted on Github.

Wednesday, January 14, 2015

MetaLibrary version 9 for OpenTTD released

Version 9 of MetaLibrary has been released.

To recap, MetaLibrary is a collection of code I've written to simplify writing an AI for OpenTTD, a remake of my childhood favorite, Transport Tycoon.

Version 9 brings a couple of bug fixes in the Python build script. The documentation for MetaLibrary has also been updated.

Thursday, December 11, 2014

Colourettu version 0.1.1 for Python released

Version 0.1.1 of Colourettu has been released.

Colourettu is a Python library I've written for dealing with colours, and specifically to determine the contrast between two colours.

A quick example:


import colourettu

c1 = colourettu.colour()                # defaults to #FFF
c2 = colourettu.colour("#eee")          # equivalent to #EEEEEE
c3 = colourettu.colour("#456bda")
c4 = colourettu.colour([3, 56, 129])    # as an RGB tuple or list
c5 = colourettu.colour((63, 199, 233))

>>> colourettu.contrast("#FFF", "#FFF") # white on white
1.0
>>> colourettu.contrast(c1, "#000")     # black on white
20.999999999999996
>>> colourettu.contrast(c4, c5)
4.363552233203198


The easiest to install Colourett (assuming you already have Python installed) is to use pip:
pip install colourettu

This is the first release of this library. The code for Colourettu is hosted on Github.