Alexander Gromnitsky's Blog

Podcasts & Schedules

Latest update:

Sometimes it's immediately obvious whether podcast hosts are professionals or naïve armatures. This is a mapping of BBC's In Our Time show, where each dot represents a single podcast episode:

BBC In Our Time

They had only 1 schedule slippage! The day when the show was uploaded a couple of hours earlier was undeniably their producer's last day on the job. Due to his unfortunate mismanagement, he became an idle outcast who later mischievously voted for Brexit. It was truly a tragedy without equal, but we digress.

Compare this to Trade Talks podcast:

trade talks

A complete chaos! It's easy to spot that their initial day of the week was Friday but for some reason they failed to keep the commitment.

For anyone curious, all this nonsense about schedules can be obtained via:

$ curl URL | ./podcast-dow result.png

where podcast-dow is actually a makefile:

#!/usr/bin/make -f

# Requires nokogiri & gnuplot
#
# curl http://feeds.5by5.tv/b2w | ./podcast-dow 1.png [title=hello]

plot = @nokogiri -e 'puts $$_.css("item pubdate").map{|n| Date.parse(n).strftime("%Y-%m-%d %u %a")}' | cat <(echo "$$script") - | gnuplot -e 'set term $1;' - > $@

%.png:; $(call plot,png)
%.svg:; $(call plot,svg)

export define script :=
set grid
set title "$(title)"

set xdata time
set timefmt "%Y-%m-%d"
set format x "%Y-%m"

set xtics rotate by 60 right
set yrange [0:8]

plot "-" using 1:2:ytic(3) with points pointtype 5 title ""
endef

.DELETE_ON_ERROR:
SHELL := /bin/bash

(It works even under Cygwin.)


Tags: ойті
Authors: ag