I occasionally make simple mashup of of gpx, google maps and flickr photos of walks. I record gpx on the Trails app on my phone, take photos with the phone too as they are nicely geo tagged and flickr  can use that information and provide in the API 1.

One of the things I noticed was that the GPX files can be pretty big, over a megabyte each. I know there was probably a lot of information in the file that was not needed to display the path on the map but was not sure of how to do so easily. I think I’ve used online services for this before. Finding a site, uploading a file and downloading is a lot of bother for something that I hope will be quick and simple. I also expect that the audience for the pages produced is one.

Having a look inside the gpx files I though that you could probably slim them down considerably, each point is recorded like this:

<trkpt lat="55.996687" lon="-4.389713"><ele>188.609</ele><time>2016-06-05T10:12:58Z</time><extensions><gpxtpx:TrackPointExtension><gpxtpx:speed>1.30</gpxtpx:speed><gpxtpx:course>206.37</gpxtpx:course></gpxtpx:TrackPointExtension><trailsio:TrackPointExtension><trailsio:hacc>5.00</trailsio:hacc><trailsio:vacc>3.00</trailsio:vacc><trailsio:steps>2</trailsio:steps></trailsio:TrackPointExtension></extensions></trkpt> 

I am pretty sure all we need is:
<trkpt lat="55.996687" lon="-4.389713"><ele>188.609</ele></trkpt>

and that a regular expression could do the trick.

I don’t know anything about RegEx other than I’ve found it offered as a solution when googling text replacement problems but this:

replace: <extensions>.*?</extensions> with nothing
followed by replace: <time>.*?</time> with nothing

I am guessing I could combine these, but it didn’t take long to run through a few files using them in this crude form.

did the trick. My 1MB file was now 160KB

This works both in BBEdit and TextMate. TextMate struggled a bit with the size of the files.

This post will be of little interest to anyone but myself and might just fit in the suchlike bit of this blogs sub title.

Featured Image: two screenshots, layered. my own CC-BY.

1.
I’ve blogged about some of the methods I’ve used before.

How does your daily engagement with different apps and websites look like? 

I’ve been musing on this one for a few days. A few years ago I wrote an AppleScript that would periodically do the F9 show all your windows and dump a screenshot. On Sunday afternoon I dug it out and ran it from just befoe 4pm until 11pm. I pulled these together in a gif.

I am not sure how much this tells me other than I have a lot of windows open most of the time. Luckly it does not show how many browser tab I am using…

I know we are in the days of lots of free space, but it is worth remembering when blogging (or making webpages) shrinking images is worth doing for your visitors.

I don’t always do it, but today as I updates a Glow Blogs Help page, I saved nearly half the space by using, ImageOptim — better Save for Web.

There are other tools, but this one is free & open source, works on a Mac, but lists and links to windows & linux tools.

coffee gatha

Write a Gatha Poem | The Daily Stillness

A while back I tried Idle Pleasure of the day: Wait for the tea to brew from The Daily Stillness and was quite horrified at how it turned out.

I’ve a pretty good routine for this: Grind coffee; while it buzzes I put water in the pot; I then add the coffee and put the pot on the stove; while it heats I prepare the cups; and pour when it bubbles.

It takes a while to boil and bubble up. I guess I usually look at my phone or read the paper, standing still that day i note that my attention is racing and I can hardly stand still, I shift from foot to foot to ‘keep busy’!

Since then I occasionally try and check my posture, relax and breath whicle the coffee is brewing, perhaps this gatha will help.

Â

Antique PBX

We found a lovely post that helped us reflect on life beyond the digital. Joel Dueck tells us about this item of furniture,

The secretary, a compartmentalized working-space, may be thought of as the RSS reader of the past.

from: The RSS reader of days gone by | The Daily Stillness

The linked post, is really only a paragraph but the idea in it is wonderful.Â

Today, I wrote a post on my 1999.io blog, read my RSS reader, tweeteted, answered tweets, found some  lovely stuff. I worked on a website and went back an forward many times on email.

The image of a bureau captures this delightfully. I imagine a webpage version that looks as organised as the image posted.

Image Credit: Antique PBX | Germany 2012 | Thomas Quine | Flickr Creative Commons — Attribution 2.0 Generic — CC BY 2.0

Dean Groom on Poekemon Go:

Teachers should care about Pokémon Go! – after from the initial network effects (craze) as it is a good way for kids to develop socially. It isn’t designed for education and certainly presents the all too common accessibility issues of commercial games – but THIS game leads you to start thinking about why games, play and learning are important – and how they can be connected with helping children deal with saturated media cultures – Great!

from: Should teachers care about Pokémon Go? | Playable

There is a lot more to think about in that post.

As usual with games, my mind wander and my eyes glaze, I’ve never caught the game bug (although I am interested when I read something like the above).

My first though was it is a wee bit like golf, a good walk spoiled. I am now wondering if some of my own behaviour fits the pattern.

fr_593_size640

  1. I wander about outside, searching, looking at the map on my phone
  2. I capture images
  3. Share and store online, socially, flickr, instagram.

Featured image my own, IMG_5868 | John Johnston | Flickr CC-BY, sort of hunting idea. The kind of Pokemon I look for.

After 38946 gifs and 24660 jpgs my Raspberry pi has stopped taking photos.

I am not sure why but it stopped recognising the camera module. I’ve decided to give that a rest while keeping the pi going as a server for other things. I’ve also moved it from the windowsill to a better position on my local network.

It is still running my River5 which I wrote about Raspberry River and a basic web-server: john’s pi server.

I’ve now added Dave Winer’s blogging software 1999.io: johnjohnston which has been running for nearly a week. Setup notes: 1999 set up on my pi

This has given me a chance to play (a little) with all the pieces, node, git, the pi and a new blogging system.

1999.io is quite opinionated software and has some differences from systems I am more familiar with. I’ve written some notes 9 Thoughts on 1999.io (archive.org link) & Comments, Rivers and Glossaries (Archive.org). It is helping me think a bit about how software affects us.

I’ve also bought a Pi NoIR camera which I’ve used on my other pi, grabbing photos every minute of the bin outside our window in the hope of catching some foxes. It is not posting to the web, but over the network to my mac. My poor craft skills mean it was balanced on some cardboard and slowly slipped through the night. No foxes were photographed on the first try. I’ll be getting a better mount and trying again.

I’d like that, second, pi to be portable with a few buttons to do different things, start timelapse, grab and post a gif, etc. I’ll need to learn a bit more.

This is a experiment, I’ve generated a list of my recent (last 6 weeks) Pinboard: bookmarks tagged ‘facebook’ and post them below.

This will hopefully be a useful reference for me and perhaps others.

I’ve been thinking about Facebook quite a bit recently. I still only visit occasionally and feel fairly negative about it. When I do visit I often see interesting things about folk I know, but not enough to make me visit more often. I also recognise that it can be used for really interesting projects for example the EAST Project we talked about on on Radio #EDUtalk.

The video, linked to by Alan, held my attention for the full hour (I find it hard to watch online videos for more than a few minutes).

The Featured Images is Soild links | SONY DSC | Bernard Spragg. NZ | Flickr used under a public domain license. Stamped with the stamped attributor version of flickr cc attribution bookmarklet maker.