Firmaliiga 4/2015 Nuuksionpää

1: too much zigzag along paths with a big U-turn before the control
2: OK
3: ran past the control, then to the wrong stone (some other course had a control here), and then back to my control
4: OKish but straighter would have been better
5: OK until I was distracted by others just before the control and made a stupid loop before returning to the original plan.
6-7-F: nothing to report..

Hot and humid.

2015-08-11_firmaliiga_nuuksionpaa_C_qr

Kiintorastit Pirttimäki

Quite warm and humid on Saturday.

OK in the beginning: start-91-86-88-84-89

The last two controls were difficult, 97 on a steep downslope where we climbed the hill a bit too soon, and struggled to get down from the hill after finding the control. 92 was easy enough to get close to, but in hindsight I suspect it's not actually located in the place indicated on the map...

2015-08-08_pirttimaki_qr

Jakob halvmaraton

Without much training and without any time goal I participated in the Jakob half-marathon.

Up to 10 km things went smoothly. Then the steady uphill towards 11 km felt quite tough, although I sort of kept up the pace until about 14 km. From there it was a fight with a bit of walking now and then... The steady slow-down towards the finish shows in my 5k splits: 26:23, 27:25, 28:51, and 30:16. For comparison in 2012 on this course my 5k splits were: 23:47, 24:17, 24:20, and 24:09 - very steady and not slowing towards the end.

Here's a chart with the min/km times from the half-marathons I've run.

half-marathon_chart_2015-07-25

Next year I must remember to do one or two 90-120 minute training runs per month and things will go much smoother...

NTP stratum-1 on Ubuntu 14.04LTS

Some (incomplete) notes on setting up a stratum-1 NTP server on Ubuntu 14.04LTS

To handle the upcoming leap-second we want a leapfile, from: http://www.ietf.org/timezones/data/leap-seconds.list

The path of the leapfile goes into /etc/ntp.conf
leapfile /etc/leap-seconds.list
But Ubuntu uses apparmor, so we must grant permission for the ntp service to read this file in /etc/apparmor.d/usr.sbin.ntpd by adding:
/etc/leap-seconds.list r,
To make apparmor parse and apply the new rules we do:
sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.ntpd
when the ntp service starts it is useful to look at /var/log/syslog where ntp will complain if it doesn't have permission to read the leapfile or if it is badly formatted.

Now let's edit the default options for the ntp service in /etc/default/ntp by adding:
NTPD_OPTS='-gN'
(-N runs ntpd at highest priority, -g makes it more robust agaist large time offsets, see man ntpd)

To get time in NMEA-format and a pulse-per-second (PPS) from gpsd we add two shared-memory (type 28) refclock drivers to /etc/ntp.conf

# GPS Serial data reference
server 127.127.28.0 maxpoll 3
fudge 127.127.28.0 time1 -0.230 refid GPS

# GPS PPS reference
server 127.127.28.1 prefer maxpoll 2
fudge 127.127.28.1 refid PPS

(the time1 adjustment number needs to be calibrated somehow..).

Finally we let ntp distribute time to the outside world by adding this line to /etc/ntp.conf (this is usually at the end of the file).
restrict default noquery

Now let's set up gpsd. The service configuration file is /etc/default/gpsd, and as suggested in the file we edit it with the utility:
sudo dpkg-reconfigure gpsd
The options that worked for me are device /dev/ttyS0 and options -n (don't wait for clients to connect). After running the utility /etc/default/gpsd should look something like:

START_DEAMON="true"
GPSD_OPTIONS="-n"
DEVICES="/dev/ttyS0"
USBAUTO="false"
GPSD_SOCKET="/var/run/gpsd.sock"

You can verify that gpsd is working with cgps, xgps, or gpsmon.

This should result in Ubuntu automagically starting gpsd and ntpd in the correct order at bootup, and ntpq -p should show something along the lines of:
Screenshot - 06262015 - 10:18:31 AM

If you want to manually restart (or just start or stop) the services, required e.g. after any changes are made to /etc/ntp.conf, it is done with
sudo service ntp restart
sudo service gpsd restart