Archive for December, 2018

2018: A good year for fitness

Monday, December 31st, 2018 | Life, Sport

It’s been a great year for my personal fitness. I’ve always considered myself reasonably fit anyway, but this year I made an extra effort to take it to the next level. I had three goals at the start of the year:

  • Run a sub-2-hour half marathon
  • Complete a standard distance triathlon
  • Run a marathon

I could have knocked one of the goals off within the first week of January as I was registered for the Sir Titus Trot half marathon. Unfortunately, I picked up a nagging injury in November that didn’t disappear, so I had to do the sensible thing and sit it out.

No worries, as in March I ran a 1:52:24 at the Leeds Liverpool Canal Canter. I also accidentally ran a much faster 1:45:25 in training in October.

Next on the list was a triathlon. I knocked my first race off in April with Skipton, but that was only a sprint. My first standard distance was Wetherby, closely followed by World Series Leeds.

Finally, the marathon. I completed my first marathon-length run in September, and still can’t really work out whether that counts or not. But, in any case, I completed the Yorkshire Marathon three weeks later. Sub-4 hours you say? Why yes, yes I did.

So, all three goals knocked off. But wait, there’s more…

I originally told myself I would stick to those and look at longer events, like a middle distance triathlon and ultra-marathon in 2019. But, having the flexibly to train while I completed my MSc proved too alluring.

In September, I completed my first middle distance (half Ironman) triathlon when I raced Sundowner, finishing comfortably within seven hours, and well before the eight-hour cut-off.

And, two weeks after the Yorkshire Marathon, I completed the Hubble Bubble ultramarathon. Mostly because the idea of going through another marathon training programme did not seem too appealing when I could piggyback of the training I was already doing for the Yorkshire Marathon.

What will 2019 bring?

Probably some more middle distance triathlon. But I’m waiting for the club calendar to come out before I decide. I’ve already signed up for Leeds and Skipton. And my 10km PB is currently the run segment at Wetherby Triathlon so it would be nice to move the chains on that. But, at the moment, I’m enjoying some time off.

Festive Fifty 2018

Sunday, December 30th, 2018 | Sport

My first ever sportive was the Festive Fifty on New Year’s Eve last year. So, it was fitting to close out 2018 by taking part in the Festive Fifty this year to raise money for Children’s Heart Surgery Fund at the Leeds General Infirmary.

It was great to be riding with Bogdan again, as we haven’t had a spin since August. It felt easier than last year. Last year there was a hill. This year, I wouldn’t even call it a hill. It was over before I realised it. The long road back home was once again a massive headwind but didn’t feel quite as long, either.

Doing the 50-mile route was certainly an option this year, but I haven’t dialled in my position on the Bianchi just yet, and with Venla being rather unwell at the moment, I wanted to get back to her as soon as possible. So, I settled for the 50km route, which was nice as it meant my toes stayed warm the whole way around.

Temple Newsam’s 300th Parkrun

Sunday, December 30th, 2018 | Sport

Yesterday, Temple Newsam held their 300th Parkrun. With it being a big round number, I decided to head across to test my legs.

It’s been a year since I’ve run Temple Newsam. The last one I did, which was my course PB, was part of the New Year’s Day double at the start of 2018 before I had started my triathlon training in earnest. So, the 27:12 I set there was inevitably going to fall.

In the end, I ran:

23:17

Really happy with that. I’ve only gone sub-23 twice at Woodhouse Moor, so once you factor in the hills of Temple Newsam, that feels like an excellent result. I knew I wasn’t running quite as fast as when I was marathon training, but I’m not far off.

It wasn’t much bigger than usual: 199 runners in total. They did have a photographer there, though, so at the start, I sprinted up the front to be in the photo. And, as you can see below, I made it! (Light blue Go Tri t-shirt on the far left, in case you can’t spot me). Thanks to ‎Phil Bland‎ for taking the photos!

Christmas ham

Friday, December 28th, 2018 | Food, Life

We’ve outdone ourselves this year. Usually, when we make our annual pilgrimage to buy the Christmas ham, they top out at about 6kg. But, this year, we found them all of the way up to 9kg.

We weren’t sure 9kg would fit in the oven. Or in the fridge. So, we went for a conservative 8.67kg ham. Which still beats our record by over two kilograms. Venla seemed pretty pleased with it.

Get captions working on Facebooks ads

Thursday, December 27th, 2018 | Business & Marketing

If you’ve tried uploading an SRT file to a video on Facebook, you may encounter an error like this:

The captions file you selected is in a format that we don’t support.

What’s wrong? You cry, not that you’re using the standard format for SRT files. It could be that Facebook is throwing an unnecessary hissy fit because you’re using zero-indexing in the blocks, but more likely to be something even simpler: the filename.

Facebook insists that the files are named filename.en_GB.srt, or whatever language combination you are using (for example, filename.en_US.srt. If you don’t include the “.en_GB” bit, Facebook will reject the file, even though it’s a valid SRT file.

As soon as you add that the filename, it works!

Happy advertising.

Team Sky unveil 2019 bus design

Wednesday, December 26th, 2018 | Distractions

Pro cycling outfit Team Sky have unveiled their design for the 2019 team buses. 2019 will be the last year the time exists in its current form, with Sky announcing that it will end its sponsorship deal with the team after the 2019 season.

Sky as recently acquired by US media giant Comcast, after a bitting war with 21st Century Fox, who owned 40% of Sky’s shares prior to the takeover. Sky’s takeover was, ironically, partly made possible by the collapse of the pound after the Brexit vote.

Surviving the JavaScript ecosystem updates of 2018

Tuesday, December 18th, 2018 | Programming

When I first launched the WAM website it was built using a reasonably straightforward stack of React + Babel + Webpack. That was a year or two ago and a lot has happened since then. Notably, there have also been some JS security issues, too, so we’re going to start upgrading the stack on a regular basis.

As anyone who has worked with JavaScript knows, though, that is a massive pain in the ass. Here are some notes on the upgrade process.

Upgrading Gulp

Gulp has now moved to version 4. First off, you need to uninstall any previous versions of Gulp. You then install the Guli CLI globally, and the latest version of Gulp locally.

npm install -g gulp-cli

This was a massive hassle. The uninstalls did not work and I had to manually go through the file system to get rid of the thing.

There were also some changes to the config itself. Any paths such as dest('') had to be changed to dest('.'), and all of the functions that defined the Gulp tasks had to now return, rather than just being called.

return gulp.task('name', () => { });

The way tasks were run within them has also changed. So, anywhere that used tp be ['sass'], for example, now needs to be:

gulp.series('sass')

Ugrading Node

You’ll want to upgrade Node to the latest LTS version. This includes editing the engine in your package.json file, especially if you are using Heroku.

Upgrading React

This was as simple as updating the versions in package.json and running an update. However, I did run into a problem with the React CSS Transition group, where I had to update to a drop in replacement.

npm install --save react-transition-group@1.x
npm remove react-addons-css-transition-group

And then change the import statement to import from:

react-transition-group/CSSTransitionGroup

Upgrading Babel

This was mostly a case of bumping the version numbers, but I also had to update my .babelrc file. I think the spread operator was previously a different package, and I had to change the name.

{
    "presets": ["@babel/react", "@babel/preset-env"],
    "plugins": ["@babel/plugin-proposal-object-rest-spread"]
}

Upgrading Webpack

Again, this started with bumping all of the versions. There were also some config changes. Most notably, Webpack now has an environment property.

config.mode = 'production';

It has also changed the way that UglifyJS is brought in if you’re using that to minify your code. You’ll need to install the new package.

npm install uglifyjs-webpack-plugin webpack-cli --save-dev

And then update your Webpack config, too.

config.optimization = {
  minimizer: [
    new UglifyJsPlugin({
      uglifyOptions: {
        output: {
          comments: false
        }
      }
    })
  ]
}

Hopefully this will come in handy if you are upgrading a similar stack and wondering why everything has exploded.

Digital Marketing for Therapists

Wednesday, December 12th, 2018 | Business & Marketing, News

In June, I launched my course Digital Marketing for Restaurants to help restaurant owners and managers access new customers via digital media. Since then over a thousand people have enrolled on it and it has achieved a 5-star rating.

I’m now pleased to announce that I have launched a brand new digital marketing course, this time for therapists and counsellors.

It covers building websites, using Google Ads, using Google My Business, Facebook pages, posts and ads, and using Eventbrite. It’s available now on Udemy and you can preview it here.

Here’s the preview video: