Recent Posts

Hello Bluesky

I was a twitter use for many years and you'll find the archeological remains of my twitter use in the blog by the broken embedded tweets that remain.

After Elon Musk took over twitter, I decided to leave and I closed down my first account. I still have an archive at cpjobling.github.io/cpjobling-tweets. I had a skeleton presence for some time, but that closed too a few months ago.

Now, I've gone over to Bluesky (bsky.app) where I can be found as @cpjobling.bluesky.social. The recent support from Musk for the riots and against the prime minister, and worsening atmosphere as "free speech" turns toxic, is encouraging other long-time twitter users to make the move.

Perhaps my old friends will move over too. I look forward to seeing you.

Transitioning from Word Press to Hugo

Introduction

In August 2024, I decided that I would attempt to move my old Fresh and Crispy WordPress blog to a new static website using the Hgo tool. This is a record of the process that I followed.

Installing Hugo

I installed Hugo by following the instructions given on the Quick Start.

This is the first page that I created using

hugo new content/posts/my-first-post.md

This is what the new blog site looks like after this first step

New Fresh and Crispy blog in Hugo

Export WordPress Site

I logged into my WordPress site for the first time since November 2020 and posted a quick post about my plans to transition to hugo.

I went to the dashboard and exported my old blog to an XML file.

Import to Hugo

There are a number of ways to migrate content from other sources to Hugo which you can follow up by reading Migrate to Hugo.

There seem to be two options available:

After a quick read of the documentation for both tools, it seemed that wp2hugo would be good for the first attempt.

Building wp2hugo

I decided to build wp2hugo from source:

$ git clone git@github.com:ashishb/wp2hugo.git
$ cd wp2hugo/src/wp2hugo
$ make build_prod
# `./bin/wp2hugo` will contain the binary and you can use it as `$ ./bin/wp2hugo --source wordpress-export.xml --download-media`

I ran the application as

~/bin/wp2hugo --source wpblog.xml --download-media

but there were errors downloading the media which caused the program to bail. So, I tried ~/bin/wp2hugo --source wpblog.xml instead.

I got the text of my posts out of WP this way, but would need to manually go through my posts on WP to rescue what images I could.

Tomorrow, I will try blog2md to see if that's more error-tolerant.

Building blog2md

This is a node application. This is how I built it:

mkdir ~/code/src/github.com/palaniraja
cd $_
git clone https://github.com/palaniraja/blog2md.git
cd blog2md
npm install
npm audit fix --force # Needed to correct some warnings

Converting blog using blog2md

This seemed to work well! From the directory were I built blog2md, I ran:

node index.js w ~/Downloads/delete_me/freshandcrispy.WordPress.2024-08-08.xml out m paragraph-fix

and it seemed to work without issues!

$ ls out | wc
569     569   17725

Viewing the new blog

After conversion, all the markdown files appear in a flat directory. Each markdown file has meta data like:

---
title: 'Welcome to my new home'
date: Fri, 11 Feb 2011 21:21:23 +0000
draft: false
tags: ['Uncategorised']
---

These files just needed to be copied over to content/posts in the Hugo site and served using

hugo server -D

On visiting the served site, there was one YAML error that I quickly corrected.

There were a number of files, e.g. social media links, that need to be taken out of the posts content. And I'll need to go through WordPress to reclaim images, etc.

I will start to tidy up tomorrow!

In the meantime, I checked the new content into version control!!

Some tuning

I arranged the posts into folders by year. This was a largely manual process in which I first identified the posts using grep:

grep -l "2024 " *.md > mv2024

I then edited the file mv2024 to prepend mv to each line and add 2024. The result is a file

mkdir 2024
mv .... 2024
mv .... 2024
:

This can then be excuted using

sh mv2004

I am sure that this could be done more cleverly, but it was a one time operation.

Setting up .gitignore

The public folder is regenerated whenever the site is previewed and you get a lot of false versions if public is commited to version control. I edited .gitignore to ignore public.

Thinking of transitioning to Hugo

Hugo is a static web generator written in Go. I’m thinking of exporting this WordPress site to Hugo so that all the posts, pages and assets are text, easily version controlled and ready for writing as I transition from academia to private life.

I’ll keep notes on the process and post them in the new Hugo site.

My Own 25 Years Of Ed Tech

Yesterday, I received my copy of Martin Weller's book 25 Years of Ed Tech. Inspired by Chapter 2 The Web (1995), I travelled back in time to my own first attempt to teach online. I visited the Way Back Machine (web.archive.org) to discover that the first official University website (www.swan.ac.uk) was archived on 11th December 1997.

Navigating through that web site, I discovered that the Department of Electrical and Electronic Engineering website (which I built) was archived a few months earlier. I also rediscovered that I had published a potted history of the Electronic and Electrical Engineering web site on this blog.

In the spirit of celebrating my own 35-year career in teaching, I looked back at my own first attempt at e-learning. And here is my web site for EE208: Control Systems, circa May 1997.

My 25 Years of EdTech Electrical and Electronic Engineering, Swansea University, May 1997. Captured from the Internet Archive’s Way Back Machine on 7th November 2020.

The course notes were created using LaTex2HTML, but unfortunately, the images and the mathematics, which was presented using images, have rotted in the archive. Today I use Markdown for my lecture notes, and MathJax for math generation, but the technology that delivers my content to students is still web-based.

So for me, like most ed-tech folks, the key technology in my teaching career has been the World Wide Web. The difference now, for most of us, is that we don't need to know that!

Notes on SALT Conference 2020

SALT Conference 2020

Yesterday was the 12th Annual conference of the Swansea Academy of Learning and Teaching (SALT) which, due to circumstances, had to be held on line. I attended but didn't present but as usual I came away with a head full of ideas and links to follow up on.

https://twitter.com/cpjobling/status/1280789564794208256

The highlights for me were the session on formative feedback by Monika Seisenberger and Teaching Award winner Liam O'Brien from Computer Science; the Coffee Lounge where I met up with folks for the first time since March; the talk on aligning our Canvas tools to the future of assessment with Instructure's Jonathan Perry (beamed live from Britains most boring town and Birthplace of Margaret Thatcher Grantham, Lincs.) ; and the panel on the values and assumptions of assessment and feedback chaired by Swansea University's Dean of Assessment Jo Berry.

My unordered notes, thoughts and links shared by the participants are recorded in my Journal.

The New Day to Day ...

Shall we zoom?

Inspired by Brian Mathers here's a little sketch I made about my daily reality. I seem to spend my entire day on (or is it in?) Zoom -- meetings, working groups, office hours , examples classes and even social events. Meanwhile my grey beard grows and I turn into a caricature of a mad professor.

What's your day-to-day like?

This was the rest of my day Journal, 19th May 2020.

Journal Entry - Tuesday, 28th April 2020

Day 36 of the first 2020 Covid-19 Lockdown

I'm a bit envious of the Covid-19 journals of my friends and colleagues Chrissi Nerantzi and Sheila MacNeill so today I thought I'd try an experiment and post my Crispy Journal entry for 28th April 2020 here in my blog. There was a bit of formatting to do to convert TiddlyWiki markup to WordPress blocks which would go away if I used MarkDown in both places. I think it might be better going forward to just link to the Journal page and post some highlights and a reflection. But, hey, what is a Covid-19 lockdown if it isn't a chance to experiment.

My Tweets

https://twitter.com/cpjobling/status/1255030119820931072

https://twitter.com/cpjobling/status/1255030116624850950

Did

  • Some Extenuating Circumstance reviews
  • Some Alternative Assessment Moderation and Sign Off
  • Zoom office hours for EG-247
  • Zoom consultancy for EGLM03 - some tricky problems which led to a break through at around 11:00 pm:

https://twitter.com/cpjobling/status/1255260283616010241

Attended

Catch-up Webinars