<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>ckp</title>
		<link>/</link>
		<description>Recent content on ckp</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Fri, 14 Aug 2026 21:19:38 +0100</lastBuildDate>
		
			<atom:link href="/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Slo.ppt</title>
				<link>/2026/08/14/slo-ppt/</link>
				<pubDate>Fri, 14 Aug 2026 21:19:38 +0100</pubDate>
				<guid>/2026/08/14/slo-ppt/</guid>
				<description>&lt;p&gt;&lt;em&gt;See also: poopdecks, PowerSlop&lt;/em&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Slo.ppt is a poor quality slide deck generated with AI. Symptoms include lack of cohesive story and too much text. Audience members may feel like they are reading a document pasted over several slides.&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>Learn to tow</title>
				<link>/2024/05/09/learn-to-tow/</link>
				<pubDate>Thu, 09 May 2024 12:00:00 +0000</pubDate>
				<guid>/2024/05/09/learn-to-tow/</guid>
				<description>&lt;p&gt;How do you train up people to tow a long trailer, filled with expensive boats?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Notes on taking a trailer to camp</title>
				<link>/2024/04/18/trailering-to-camp/</link>
				<pubDate>Thu, 18 Apr 2024 12:00:00 +0000</pubDate>
				<guid>/2024/04/18/trailering-to-camp/</guid>
				<description>&lt;p&gt;Notes on taking a trailer of boats to camp.&lt;/p&gt;&#xA;&lt;p&gt;This was my first real journey with a trailer full of boats. It took about 24 hours from London to near Bordeaux.This included pick up of rental truck and faffing before we left.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Keeping a worklog</title>
				<link>/2024/01/12/keeping-a-worklog/</link>
				<pubDate>Fri, 12 Jan 2024 18:09:47 +0000</pubDate>
				<guid>/2024/01/12/keeping-a-worklog/</guid>
				<description>&lt;p&gt;When young, I never understood the point of a journal or diary. I&amp;rsquo;m now a strong proponent of journals, though occassionally forgetful&lt;/p&gt;</description>
			</item>
			<item>
				<title>Reflections on 2023</title>
				<link>/2024/01/03/reflections-on-2023/</link>
				<pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate>
				<guid>/2024/01/03/reflections-on-2023/</guid>
				<description>&lt;p&gt;This year was a busy year. At first glance, I&amp;rsquo;m not sure what progress I&amp;rsquo;ve made. It is demoralising to think I have wasted a year.&#xA;The title and direction of this post changed a bit as I reflected on the past year. I didn&amp;rsquo;t make any intentional goals for 2023. Without a goal, can I fail to have achieved it?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using Peach Powerline on Arm Based Macs</title>
				<link>/2023/11/24/using-peach-powerline--on-arm-based-macs/</link>
				<pubDate>Fri, 24 Nov 2023 12:00:46 +0000</pubDate>
				<guid>/2023/11/24/using-peach-powerline--on-arm-based-macs/</guid>
				<description>&lt;p&gt;Peach Powerline is used for analysing the Peach systems logger data. It only runs on Windows.&#xA;It is possible to use Powerline on Mac via a virtual machine such as via Parallels. Downloading data from the logger on an ARM based Mac will not work without updating the logger drivers to use the ARM based drivers&lt;/p&gt;</description>
			</item>
			<item>
				<title>Introduction to Helix</title>
				<link>/2022/12/17/introduction-to-helix/</link>
				<pubDate>Sat, 17 Dec 2022 00:00:00 +0000</pubDate>
				<guid>/2022/12/17/introduction-to-helix/</guid>
				<description>&lt;p&gt;I once spent a few weeks trying to use Vim. I liked the principle of navigating and editing texts with commands.&#xA;I gave up eventually as the amount of plugins and configuration for the experience I wanted was too high.&#xA;It was easier to just go back to VSCode.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Reviewing existing codebases with Pull requests</title>
				<link>/2022/02/16/using-pr-to-review-an-existing-codebase/</link>
				<pubDate>Wed, 16 Feb 2022 00:00:00 +0000</pubDate>
				<guid>/2022/02/16/using-pr-to-review-an-existing-codebase/</guid>
				<description>&lt;p&gt;Sometimes it&amp;rsquo;s useful to review an existing codebase. But how?&lt;/p&gt;</description>
			</item>
			<item>
				<title>CloudFormation Rules</title>
				<link>/2022/01/20/cloudformation-rules/</link>
				<pubDate>Thu, 20 Jan 2022 00:00:00 +0000</pubDate>
				<guid>/2022/01/20/cloudformation-rules/</guid>
				<description>&lt;p&gt;CloudFormation Rules are a lesser known feature that allow you to validate parameters of CloudFormation templates.&#xA;Use Rules to improve the user experience of deploying templates by failing faster and providing helpful error messages.&lt;/p&gt;</description>
			</item>
			<item>
				<title>A Tale of Two Tests</title>
				<link>/2022/01/13/a-tale-of-two-tests/</link>
				<pubDate>Thu, 13 Jan 2022 00:00:00 +0000</pubDate>
				<guid>/2022/01/13/a-tale-of-two-tests/</guid>
				<description>&lt;p&gt;How long would it take you to row 2000 meters?&lt;/p&gt;</description>
			</item>
			<item>
				<title>The Importance of Names</title>
				<link>/2021/03/27/the-importance-of-names/</link>
				<pubDate>Sat, 27 Mar 2021 00:00:00 +0000</pubDate>
				<guid>/2021/03/27/the-importance-of-names/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;There are only two hard things in Computer Science: cache invalidation and naming things.&#xA;&amp;ndash; Phil Karlton&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
			<item>
				<title>CSS For JS Course Review</title>
				<link>/2021/03/19/css-for-js-devs-review/</link>
				<pubDate>Fri, 19 Mar 2021 00:00:00 +0000</pubDate>
				<guid>/2021/03/19/css-for-js-devs-review/</guid>
				<description>&lt;p&gt;I am often curious about other people&amp;rsquo;s experiences of courses. Is it useful? Is it engaging? Often, these experiences can be missing context of what the person&amp;rsquo;s goals and past experience are. I wanted to write a short review of a course I am enjoying, with context of my skills and goals. Hopefully it helps someone else 🙂&lt;/p&gt;</description>
			</item>
			<item>
				<title>Tips for when you get stuck</title>
				<link>/2021/03/03/tips-for-when-you-get-stuck/</link>
				<pubDate>Wed, 03 Mar 2021 00:00:00 +0000</pubDate>
				<guid>/2021/03/03/tips-for-when-you-get-stuck/</guid>
				<description>&lt;p&gt;In my first technical role, I managed to get stuck for two weeks. Two weeks!&#xA;In that time, I didn&amp;rsquo;t ask for help. I lacked any real plan on how to get unstuck.&#xA;In my defense, I didn&amp;rsquo;t know any better. I certainly would not do that now.&#xA;Getting unstuck when you encounter a technical problem is a valuable skill. My default is to muddle through, trying small changes or googling terms until it works.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Tips for novices</title>
				<link>/2021/01/23/tips-for-rowing-novices/</link>
				<pubDate>Sat, 23 Jan 2021 00:00:00 +0000</pubDate>
				<guid>/2021/01/23/tips-for-rowing-novices/</guid>
				<description>&lt;p&gt;Here&amp;rsquo;s a list of useful kit I&amp;rsquo;ve collected since I&amp;rsquo;ve started rowing.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Misleading statistics in the wild</title>
				<link>/2019/04/06/misleading-statistics-in-the-wild/</link>
				<pubDate>Sat, 06 Apr 2019 00:00:00 +0000</pubDate>
				<guid>/2019/04/06/misleading-statistics-in-the-wild/</guid>
				<description>&lt;p&gt;April 5th has many finance departments rushing in the UK. It&amp;rsquo;s the last day of the tax year. In the past two years, another department has started feeling the pressure.&#xA;Since 2017, all UK companies over 250 employees must provide a report on the Gender Pay Gap within their company.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Improving Personal Skills</title>
				<link>/2019/02/17/improving-personal-skills/</link>
				<pubDate>Sun, 17 Feb 2019 00:00:00 +0000</pubDate>
				<guid>/2019/02/17/improving-personal-skills/</guid>
				<description>&lt;p&gt;When I was younger, I was very socially awkward. I didn&amp;rsquo;t know how to be around other people. This continued for a lot of my childhood, culminating when I was about 15. On my current track, I would not had a happy life.&#xA;I didn&amp;rsquo;t know how, but the thought of awkward encounters for the rest of my life drove me to try and fix it. Unsure where to start, I read a lot, trying to learn what seemed obvious to everyone else.&#xA;I&amp;rsquo;m less awkward now 😀&lt;/p&gt;</description>
			</item>
			<item>
				<title>Cold balls in squash</title>
				<link>/2019/01/20/cold-balls-in-squash/</link>
				<pubDate>Sun, 20 Jan 2019 00:00:00 +0000</pubDate>
				<guid>/2019/01/20/cold-balls-in-squash/</guid>
				<description>&lt;h2 id=&#34;we-all-use-the-wrong-ball&#34;&gt;We all use the wrong ball&lt;/h2&gt;&#xA;&lt;p&gt;Go to most squash clubs in the country and you&amp;rsquo;ll see the double yellow dot ball everywhere. They&amp;rsquo;re on sale in the club shop, nestled in players bags, and in action on courts.  They&amp;rsquo;re the default ball choice, but should they be? I believe that most people use the wrong ball. Cold courts, short rallies and low shot power lead to balls failing to reach and stay at playing temperature (45°C). Changing to a faster ball would allow players to reach and maintain the desired temperature of the ball, for the benefit of the players, their match and the sport in general.&lt;/p&gt;</description>
			</item>
			<item>
				<title>How to solve the big problem in squash</title>
				<link>/2019/01/19/how-to-solve-the-big-problem-in-squash/</link>
				<pubDate>Sat, 19 Jan 2019 00:00:00 +0000</pubDate>
				<guid>/2019/01/19/how-to-solve-the-big-problem-in-squash/</guid>
				<description>&lt;h1 id=&#34;squash-has-a-problem&#34;&gt;Squash has a problem&lt;/h1&gt;&#xA;&lt;p&gt;There&amp;rsquo;s not much  data available for squash membership, but read the (squash) news and you can see that the game is facing challenges. Members clubs are closing, leisure centre courts are being converted, and the average age of members is increasing.&#xA;The game itself hasn&amp;rsquo;t worsened in this time, if anything it has improved. Squash TV produces exceptionally high quality coverage of tournements. Squash Skills provides world class coaching online for a low fee. Squash Levels produces fascinating ratings of players according to their match results. So what&amp;rsquo;s happened?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Ad Tech Talk</title>
				<link>/2018/11/18/ad-tech-talk/</link>
				<pubDate>Sun, 18 Nov 2018 11:34:17 +0000</pubDate>
				<guid>/2018/11/18/ad-tech-talk/</guid>
				<description>&lt;h1 id=&#34;congrats&#34;&gt;Congrats!&lt;/h1&gt;&#xA;&lt;p&gt;Well done for finding this post. This is my dog Saffy.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Squash Lesson Notes</title>
				<link>/2018/08/11/squash-lesson-notes/</link>
				<pubDate>Sat, 11 Aug 2018 00:00:00 +0000</pubDate>
				<guid>/2018/08/11/squash-lesson-notes/</guid>
				<description>&lt;h2 id=&#34;exercises-to-practice&#34;&gt;Exercises to practice&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Stand midcourt on one side. Hit a high loop, then drop it using the new technique.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Aim to practice dropping the ball with no back swing&lt;/li&gt;&#xA;&lt;li&gt;Extension: practice hitting a high volley to the back with the same &amp;ldquo;no backswing&amp;rdquo; shot&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Practice fast hands by standing close to the front wall and hitting the ball up, then down off of the front wall.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Practice cutting the ball&lt;/li&gt;&#xA;&lt;li&gt;Become familiar with hitting with no backswing&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;things-discussed&#34;&gt;Things discussed&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Using the outside cut&lt;/li&gt;&#xA;&lt;li&gt;Dropping the ball by just stretching for it. No back swing&lt;/li&gt;&#xA;&lt;li&gt;When volleying both sides, keep the swing shorter and more punchy. Move more slowly to arrive in time for the ball (not before)&lt;/li&gt;&#xA;&lt;li&gt;Regardless of which foot you hit off, rotate to ensure you have options to hit both ways.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;new-dropshot-technique&#34;&gt;New dropshot technique&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;No backswing&lt;/li&gt;&#xA;&lt;li&gt;reach out to touch the ball, then direct it in.&lt;/li&gt;&#xA;&lt;li&gt;See Nick Matthew for an example.&lt;/li&gt;&#xA;&lt;li&gt;Slightly rotate arm to apply cut&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>How to rename a linked service in Azure Data Factory</title>
				<link>/2018/06/06/how-to-rename-a-linked-service-in-azure-data-factory/</link>
				<pubDate>Wed, 06 Jun 2018 00:00:00 +0000</pubDate>
				<guid>/2018/06/06/how-to-rename-a-linked-service-in-azure-data-factory/</guid>
				<description>&lt;div id=&#34;how-to-rename-linked-services-in-azure-data-factory&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;How to rename Linked Services in Azure Data Factory&lt;/h1&gt;&#xA;&lt;p&gt;If you’re reading this, you’ve probably hit the same issue I did! How do you rename a linked service in Azure Data Factory without manually updating each dataset that uses the linked service?&lt;/p&gt;&#xA;&lt;p&gt;As the time of writing, there isn’t a good solution. I’d expect the functionality to appear in the GUI tool eventually, but it’s not there yet. Here’s a way to do it.&lt;/p&gt;&#xA;&lt;p&gt;This guide assumes that you are using the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ADF V2&lt;/li&gt;&#xA;&lt;li&gt;Git for VSTS connected with your ADF.&lt;/li&gt;&#xA;&lt;li&gt;You can do this without using Git. Instead of cloning the repository, export the ARM template instead. Perform the find and replace on the template and parameter file, then import it again.&lt;/li&gt;&#xA;&lt;li&gt;Be warned, this is much more messy.&lt;/li&gt;&#xA;&lt;li&gt;Are not using Azure Key Vault - There’s currently glitch that will cause your connection to error if you set a dataset to a new LinkedService using a Key Vault for connection details. There is a workaround however. Create a new linked service as specified below, but don’t use Key Vault to store the credentials. Perform upto step 6, then change your connection to use the Key Vault.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div id=&#34;how-to&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;How to&lt;/h2&gt;&#xA;&lt;ol style=&#34;list-style-type: decimal&#34;&gt;&#xA;&lt;li&gt;Create a new branch. I called mine &lt;code&gt;rename-linked-services&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create your new linked services you wish to use in the GUI.&lt;/li&gt;&#xA;&lt;li&gt;Open this branch in your local VSTS. (You will need to connect to the git repo, clone a local version and swap to the &lt;code&gt;rename-linked-services&lt;/code&gt; branch).&lt;/li&gt;&#xA;&lt;li&gt;Perform a find and replace (&lt;code&gt;CTRL + F&lt;/code&gt;), searching for the linked service you wish to rename, and replacing it with the name of your newly created linked service.&lt;/li&gt;&#xA;&lt;li&gt;Delete your old linked service JSON file.&lt;/li&gt;&#xA;&lt;li&gt;Commit the changes and sync with the remote repository&lt;/li&gt;&#xA;&lt;li&gt;Open up the &lt;code&gt;rename-linked-services&lt;/code&gt; branch in your ADF. Test your connection of the linked service, and run a pipeline using it.&lt;/li&gt;&#xA;&lt;li&gt;If it’s working, merge the changes into your dev branch.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>How to set up a SQL Server docker container on your windows computer</title>
				<link>/2018/04/22/how-to-set-up-a-sql-server-docker-container-on-your-windows-computer/</link>
				<pubDate>Sun, 22 Apr 2018 00:00:00 +0000</pubDate>
				<guid>/2018/04/22/how-to-set-up-a-sql-server-docker-container-on-your-windows-computer/</guid>
				<description>&lt;h1 id=&#34;how-to-set-up-sql-server-dev-edition-on-your-windows-docker-machine-and-access-it-from-localhost&#34;&gt;How to set up SQL Server Dev edition on your Windows Docker Machine (and access it from localhost!)&lt;/h1&gt;&#xA;&lt;p&gt;I recently needed to get SQL server running locally on my laptop. As an experiment, I thought I&amp;rsquo;d try using the docker image provided by Microsoft. It took a bit of figuring out, so I&amp;rsquo;d thought I&amp;rsquo;d write down the process in case anyone else is&lt;/p&gt;</description>
			</item>
			<item>
				<title>How to add your own logo to the Blogdown default theme</title>
				<link>/2018/04/09/add-your-own-logo-to-the-blogdown-default-theme/</link>
				<pubDate>Mon, 09 Apr 2018 00:00:00 +0000</pubDate>
				<guid>/2018/04/09/add-your-own-logo-to-the-blogdown-default-theme/</guid>
				<description>&lt;p&gt;One thing I&amp;rsquo;ve been meaning to fix on this site was changing the logo from the default for the theme. In case anyone else wishes to do it, here&amp;rsquo;s a simple way (but not the only).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Graham Norton&#39;s Guests</title>
				<link>/2017/10/16/graham-norton-s-guests/</link>
				<pubDate>Mon, 16 Oct 2017 00:00:00 +0000</pubDate>
				<guid>/2017/10/16/graham-norton-s-guests/</guid>
				<description>&lt;div id=&#34;the-guests-of-the-graham-norton-show&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;The Guests of the Graham Norton Show&lt;/h1&gt;&#xA;&lt;p&gt;Sick, lying on the sofa trying to pass an evening. I found myself in desperate need of something easy to watch as I waited for the headache, sore throat and fever to leave me. Of the shows I did want to watch, all are shows I watch with my girlfriend. Even sick, I don’t think I could get away with that level of betrayl!&lt;/p&gt;&#xA;&lt;p&gt;So I put of Graham Norton. As my girlfriend describes it, “It’s okay if you miss a bit”. Perfect for when you’re half dozing.&lt;/p&gt;&#xA;&lt;p&gt;Nicole Kidman was the first guest on this weeks show. At the start, she says “I think I’ve been on here the most of anyone”. That was like drugs to a sniffer dog, even to my tired mind. Now that I’m feeling a little better, let’s see if we can answer it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/List_of_The_Graham_Norton_Show_episodes&#34;&gt;Wikipedia has a page detailing every episode and it’s guests&lt;/a&gt;. We can extract the information from this to get our data for analysis.&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(rvest)&#xA;library(purrr)&#xA;library(dplyr)&#xA;library(stringr)&#xA;library(tidyr)&#xA;library(ggplot2)&#xA;library(lubridate)&#xA;&#xA;page &amp;lt;- read_html(&amp;quot;https://en.wikipedia.org/wiki/List_of_The_Graham_Norton_Show_episodes&amp;quot;)&#xA;&#xA;#list all of the selectors&#xA;selector_guests &amp;lt;- &amp;quot;.summary&amp;quot;&#xA;selector_episode_no &amp;lt;- &amp;quot;.vevent td:nth-child(2)&amp;quot;&#xA;selector_overall_episode_no &amp;lt;- &amp;quot;.vevent th&amp;quot;&#xA;selector_air_date &amp;lt;- &amp;quot;.vevent td:nth-child(4)&amp;quot;&#xA;&#xA;selectors &amp;lt;- c(air_date = selector_air_date, &#xA;               guests = selector_guests, &#xA;               episode_no = selector_episode_no, &#xA;               overall_episode_no = selector_overall_episode_no)&#xA;&#xA;# Create general function to extract text from page&#xA;extract_graham_norton &amp;lt;- function(site, selector) {&#xA;  site %&amp;gt;% html_nodes(selector) %&amp;gt;% html_text()&#xA;}&#xA;&#xA;lists_mania &amp;lt;- map_df(selectors, ~extract_graham_norton(page, .x))&#xA;&#xA;df &amp;lt;- bind_cols(lists_mania)&#xA;&#xA;head(df)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 6 x 4&#xA;##                        air_date&#xA;##                           &amp;lt;chr&amp;gt;&#xA;## 1                             &#xA;## 2 22 February 2007 (2007-02-22)&#xA;## 3     1 March 2007 (2007-03-01)&#xA;## 4     8 March 2007 (2007-03-08)&#xA;## 5    15 March 2007 (2007-03-15)&#xA;## 6    22 March 2007 (2007-03-22)&#xA;## # ... with 3 more variables: guests &amp;lt;chr&amp;gt;, episode_no &amp;lt;chr&amp;gt;,&#xA;## #   overall_episode_no &amp;lt;chr&amp;gt;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;We have the data in it’s rough form, but we’ll need to extract the names into something we can work with. Currently they are in the form of &lt;code&gt;&amp;quot;guest1, guest2, ..., guest(n-1) and guest(n)&amp;quot;&lt;/code&gt;. We’ll need to split the string on &lt;code&gt;&amp;quot;,&amp;quot;&lt;/code&gt; and &lt;code&gt;&amp;quot;and&amp;quot;&lt;/code&gt;, then unnest our new dataframe to create a record for every guest appearance on the show.&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df &amp;lt;- df %&amp;gt;%&#xA;  &#xA;  #Remove &amp;quot;compilation show episodes. These have no guests&amp;quot;&#xA;  filter(guests != &amp;quot;Compilation show&amp;quot;) %&amp;gt;%&#xA;  &#xA;  # Extract the air date and parse it. Wikipedia has a strange format for these dates&#xA;  mutate(air_date_tidy = str_extract(air_date, &amp;quot;(.{1,2}\\W[A-z]+\\W\\d{4})&amp;quot;) %&amp;gt;% dmy(),&#xA;         &#xA;         # Split the listing the guests on &amp;quot;,&amp;quot; or &amp;quot;and&amp;quot;&#xA;         guests = str_split(guests, &amp;quot;,|\\band\\b&amp;quot;)) %&amp;gt;%&#xA;  &#xA;  tidyr::unnest() %&amp;gt;%&#xA;  &#xA;  # Tidy up the names so that they are in a uniform format&#xA;  mutate(guests = str_to_lower(guests) %&amp;gt;% str_replace_all(&amp;quot;pilot|\\(|\\)&amp;quot;, &amp;quot;&amp;quot;) %&amp;gt;% str_trim())&#xA;&#xA;#filename &amp;lt;- paste(&amp;quot;output-data/&amp;quot;, &amp;quot;graham-norton-guests_&amp;quot;, Sys.Date(), &amp;quot;.csv&amp;quot;, sep = &amp;quot;&amp;quot;)&#xA;#write.csv(tidy_df, file = filename)&#xA;&#xA;head(tidy_df)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 6 x 5&#xA;##                        air_date episode_no overall_episode_no&#xA;##                           &amp;lt;chr&amp;gt;      &amp;lt;chr&amp;gt;              &amp;lt;chr&amp;gt;&#xA;## 1                                                         &#xA;## 2                                                         &#xA;## 3 22 February 2007 (2007-02-22)          1                  1&#xA;## 4 22 February 2007 (2007-02-22)          1                  1&#xA;## 5 22 February 2007 (2007-02-22)          1                  1&#xA;## 6 22 February 2007 (2007-02-22)          1                  1&#xA;## # ... with 2 more variables: air_date_tidy &amp;lt;date&amp;gt;, guests &amp;lt;chr&amp;gt;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Our data is now fit for purpose. Is Nicole Kidman the most common guest on the show? Let’s check the top 5&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  count(guests) %&amp;gt;%&#xA;  arrange(desc(n)) %&amp;gt;%&#xA;  top_n(5, n)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 8 x 2&#xA;##             guests     n&#xA;##              &amp;lt;chr&amp;gt; &amp;lt;int&amp;gt;&#xA;## 1    ricky gervais    10&#xA;## 2      dawn french     9&#xA;## 3     miranda hart     9&#xA;## 4  dame judi dench     8&#xA;## 5 daniel radcliffe     8&#xA;## 6   jack whitehall     8&#xA;## 7     james mcavoy     8&#xA;## 8      john bishop     8&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;She’s no where near! How many times has she been on the show?&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  filter(guests ==&amp;quot;nicole kidman&amp;quot;) %&amp;gt;%&#xA;  count()&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 1 x 1&#xA;##       n&#xA;##   &amp;lt;int&amp;gt;&#xA;## 1     5&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;div id=&#34;bonus&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Bonus&lt;/h2&gt;&#xA;&lt;div id=&#34;histogram-of-guest-frequency&#34; class=&#34;section level3&#34;&gt;&#xA;&lt;h3&gt;Histogram of Guest frequency&lt;/h3&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  count(guests) %&amp;gt;%&#xA;  ggplot(aes(x = n)) + geom_bar() + labs(x = &amp;quot;Occurence&amp;quot;, y = &amp;quot;Frequency&amp;quot;, title = &amp;quot;A barchart to show the number of times each guest has appeared on the show &amp;quot;, subtitle = &amp;quot;Most guests only appear once&amp;quot;)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;img src=&#34;./post/2017-10-16-graham-norton-analysis_files/figure-html/unnamed-chunk-5-1.png&#34; width=&#34;672&#34; /&gt;&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  count(guests) %&amp;gt;%&#xA;  group_by(n) %&amp;gt;%&#xA;  summarise(count = n())&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 10 x 2&#xA;##        n count&#xA;##    &amp;lt;int&amp;gt; &amp;lt;int&amp;gt;&#xA;##  1     1   477&#xA;##  2     2   159&#xA;##  3     3    75&#xA;##  4     4    34&#xA;##  5     5    15&#xA;##  6     6    19&#xA;##  7     7     2&#xA;##  8     8     5&#xA;##  9     9     2&#xA;## 10    10     1&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;number-of-distinct-guests&#34; class=&#34;section level3&#34;&gt;&#xA;&lt;h3&gt;Number of distinct guests&lt;/h3&gt;&#xA;&lt;p&gt;How many guests has Graham Norton had?&lt;/p&gt;&#xA;&lt;p&gt;Graham has had &lt;code&gt;{r} nrow(tidy_df)&lt;/code&gt; guest appearances. How many of these were distinct guests have made an appearance?&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;# Total Guest appearances&#xA;nrow(tidy_df)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## [1] 1427&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;# Distinct number of guests&#xA;tidy_df %&amp;gt;%&#xA;  distinct(guests) %&amp;gt;%&#xA;  count()&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 1 x 1&#xA;##       n&#xA;##   &amp;lt;int&amp;gt;&#xA;## 1   789&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;number-of-guests-per-epidsode&#34; class=&#34;section level3&#34;&gt;&#xA;&lt;h3&gt;Number of Guests Per Epidsode&lt;/h3&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  count(overall_episode_no) %&amp;gt;%&#xA;  arrange(desc(n)) %&amp;gt;%&#xA;  top_n(10, wt = n)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 27 x 2&#xA;##    overall_episode_no     n&#xA;##                 &amp;lt;chr&amp;gt; &amp;lt;int&amp;gt;&#xA;##  1                206    14&#xA;##  2                248     9&#xA;##  3                136     8&#xA;##  4                171     8&#xA;##  5                313     8&#xA;##  6                240     7&#xA;##  7                298     7&#xA;##  8                345     7&#xA;##  9                103     6&#xA;## 10                189     6&#xA;## # ... with 17 more rows&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;What’s so special about epidsode 206? It appears to be a New Years Eve special 2013&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  filter(overall_episode_no == 206) &lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 14 x 5&#xA;##                         air_date episode_no overall_episode_no&#xA;##                            &amp;lt;chr&amp;gt;      &amp;lt;chr&amp;gt;              &amp;lt;chr&amp;gt;&#xA;##  1 31 December 2013 (2013-12-31)         11                206&#xA;##  2 31 December 2013 (2013-12-31)         11                206&#xA;##  3 31 December 2013 (2013-12-31)         11                206&#xA;##  4 31 December 2013 (2013-12-31)         11                206&#xA;##  5 31 December 2013 (2013-12-31)         11                206&#xA;##  6 31 December 2013 (2013-12-31)         11                206&#xA;##  7 31 December 2013 (2013-12-31)         11                206&#xA;##  8 31 December 2013 (2013-12-31)         11                206&#xA;##  9 31 December 2013 (2013-12-31)         11                206&#xA;## 10 31 December 2013 (2013-12-31)         11                206&#xA;## 11 31 December 2013 (2013-12-31)         11                206&#xA;## 12 31 December 2013 (2013-12-31)         11                206&#xA;## 13 31 December 2013 (2013-12-31)         11                206&#xA;## 14 31 December 2013 (2013-12-31)         11                206&#xA;## # ... with 2 more variables: air_date_tidy &amp;lt;date&amp;gt;, guests &amp;lt;chr&amp;gt;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;tidy_df %&amp;gt;%&#xA;  group_by(overall_episode_no) %&amp;gt;%&#xA;  count() %&amp;gt;% &#xA;  ungroup() %&amp;gt;%&#xA;  summarise(mean_no_of_guests = mean(n),&#xA;            median_no_of_guests = median(n),&#xA;            max_no_of_guests = max(n),&#xA;            min_no_of_guests = min(n))&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## # A tibble: 1 x 4&#xA;##   mean_no_of_guests median_no_of_guests max_no_of_guests min_no_of_guests&#xA;##               &amp;lt;dbl&amp;gt;               &amp;lt;dbl&amp;gt;            &amp;lt;dbl&amp;gt;            &amp;lt;dbl&amp;gt;&#xA;## 1          4.148256                   4               14                1&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>What&#39;s the most popular car in the UK?</title>
				<link>/2017/10/10/what-s-the-most-popular-car-in-the-uk/</link>
				<pubDate>Tue, 10 Oct 2017 00:00:00 +0000</pubDate>
				<guid>/2017/10/10/what-s-the-most-popular-car-in-the-uk/</guid>
				<description>&lt;p&gt;The Office of National Statistics is a brilliant source of interesting data sets. &lt;a href=&#34;https://www.gov.uk/government/statistics&#34;&gt;This page&lt;/a&gt; lists recently released datasets. Check regularly and you’ll soon notice these data sets feed into news articles by the Economist, BBC news and more.&lt;/p&gt;</description>
			</item>
			<item>
				<title>How does `&#43;` in ggplot work?</title>
				<link>/2017/09/06/how-does-in-ggplot-work/</link>
				<pubDate>Wed, 06 Sep 2017 00:00:00 +0000</pubDate>
				<guid>/2017/09/06/how-does-in-ggplot-work/</guid>
				<description>&lt;p&gt;I am a big fan of &lt;code&gt;ggplot2&lt;/code&gt;. As one of the most popular R packages, I’m clearly not alone. As well as making great plots, it’s given me a deeper concept of what a plot is, and to use ggplot terms, how data maps to a geom.&lt;/p&gt;</description>
			</item>
			<item>
				<title>What is Spark?</title>
				<link>/2017/08/19/what-is-apache-spark/</link>
				<pubDate>Sat, 19 Aug 2017 00:00:00 +0000</pubDate>
				<guid>/2017/08/19/what-is-apache-spark/</guid>
				<description>&lt;div id=&#34;what-is-spark&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;What is Spark?&lt;/h1&gt;&#xA;&lt;p&gt;Yesterday I completed the Data Camp Introduction to Sparklyr course. This covered an introduction to Spark, as well as sparklyr, a package to interface with spark through R. Before I forget it all, I wanted to write down an explanation of it, some key points and functions.&lt;/p&gt;&#xA;&lt;p&gt;Spark is an open source cluster-computer framework, maintained by the Apache Software Foundation. If like me, that doesn’t help much, then this is a more simplified explanation/motivation for it.&lt;/p&gt;&#xA;&lt;p&gt;Suppose you want to analyse a dataset of your personal taxi (or uber) journeys. Unless you work as a taxi driver (or for uber), you probably won’t have many. You’ve got a bit of expierence with R, so you load it into R Studio and carry on. Simple!&lt;/p&gt;&#xA;&lt;p&gt;But now, let’s say you need to analyse the Uber Journeys for everyone in London. This is a lot more data. R is limited by the size of RAM on your computer. If the size of the data you wish to process is bigger than the size of your RAM, then your out of luck. If it’s even approaching the limit, it will probably be quite slow.&lt;/p&gt;&#xA;&lt;p&gt;What do you do? Well there are many options. An obvious one is to get a faster computer, with more RAM. Spark is an alternative solution. Instead of one powerful computer, it provides a framework to let you create and utilise a “cluster” of many computers to do your data analysis bidding. This is a simplification of all the benefits provided, but it helps to provide a simple motivation.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately for R users out there, Spark is written in Scala. Until recently to work with it, you’ve needed to use Scala, Java or Python. &lt;code&gt;sparklyr&lt;/code&gt; is the R interface to Spark. With it, you can work with Spark with familiar &lt;code&gt;dplyr&lt;/code&gt; methods.&lt;/p&gt;&#xA;&lt;p&gt;There are a few differences to understand when using splarklyr to manipulate data in the spark cluster rather than dplyr on your local machine&lt;/p&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>The Visual Display of Quantative Information</title>
				<link>/2017/08/14/the-visual-display-of-quantative-information/</link>
				<pubDate>Mon, 14 Aug 2017 00:00:00 +0000</pubDate>
				<guid>/2017/08/14/the-visual-display-of-quantative-information/</guid>
				<description>&lt;div id=&#34;the-visual-display-of-quantative-information-by-edward-tufte&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;The Visual Display of Quantative Information by Edward Tufte&lt;/h1&gt;&#xA;&lt;div id=&#34;summary&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;Last weekend I was browsing my local when I was pleasantly surprised to come across “The Visual Display of Quantative Information” by Edward Tufte. Despite the dry sounding title, it’s been highly recomendded to me. It’s a beautiful book to look at, and a very informative read.&lt;/p&gt;&#xA;&lt;p&gt;Whilst common to us now, the idea of representating data in graphical format is a rather abstract one. Th book explores the history and significance of it’s development. Along the way, it presents some classic graphs and what makes them so good. These are distilled into fundamental ideas to consider when trying to represent data visually.&lt;/p&gt;&#xA;&lt;p&gt;THe format of the book is notable for it’s clean and minimalist style. This is further conveyed by Tufte’s instructions to strip away the ink on the page.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;what-i-learnt&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;What I learnt&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Each visualisation should have an intention. It should be clear to the reader&lt;/li&gt;&#xA;&lt;li&gt;It should be accurate and proportional. Charts have the potential to misrepresent the data in many ways. It’s your responsibility to avoid this.&lt;/li&gt;&#xA;&lt;li&gt;The representation of data goes beyond bar charts, pie charts and scatter plots. Think about the data you wish to display. These forms of charts are common, but more is always possible.&lt;/li&gt;&#xA;&lt;li&gt;Often less is more when it comes to charts. Every dot of ink on the page should have a purpose. Redundant ink distracts from your point. Clever use of ink can leave more information being conveyed by less ink.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;summary-1&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;This book warrants a re-read to extract all the learning. From my first pass, it’s made me consider displaying data beyond the process of deciding what chart type fits best, to how do I want to convey the data. Some of my favourite charts in the book are unique to the data they are presenting. It takes more effort, but it produces far better results.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;practical-examples&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Practical Examples&lt;/h2&gt;&#xA;&lt;p&gt;Included are a few practical examples inspired by the book.&lt;/p&gt;&#xA;&lt;p&gt;First, let’s create a basic graph. As many have before us, we’ll use the diamonds dataset included in the ggplot library.&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(ggplot2)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Warning: package &amp;#39;ggplot2&amp;#39; was built under R version 3.3.3&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(dplyr)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Warning: package &amp;#39;dplyr&amp;#39; was built under R version 3.3.3&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## &#xA;## Attaching package: &amp;#39;dplyr&amp;#39;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## The following objects are masked from &amp;#39;package:stats&amp;#39;:&#xA;## &#xA;##     filter, lag&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## The following objects are masked from &amp;#39;package:base&amp;#39;:&#xA;## &#xA;##     intersect, setdiff, setequal, union&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;str(diamonds)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Classes &amp;#39;tbl_df&amp;#39;, &amp;#39;tbl&amp;#39; and &amp;#39;data.frame&amp;#39;:    53940 obs. of  10 variables:&#xA;##  $ carat  : num  0.23 0.21 0.23 0.29 0.31 0.24 0.24 0.26 0.22 0.23 ...&#xA;##  $ cut    : Ord.factor w/ 5 levels &amp;quot;Fair&amp;quot;&amp;lt;&amp;quot;Good&amp;quot;&amp;lt;..: 5 4 2 4 2 3 3 3 1 3 ...&#xA;##  $ color  : Ord.factor w/ 7 levels &amp;quot;D&amp;quot;&amp;lt;&amp;quot;E&amp;quot;&amp;lt;&amp;quot;F&amp;quot;&amp;lt;&amp;quot;G&amp;quot;&amp;lt;..: 2 2 2 6 7 7 6 5 2 5 ...&#xA;##  $ clarity: Ord.factor w/ 8 levels &amp;quot;I1&amp;quot;&amp;lt;&amp;quot;SI2&amp;quot;&amp;lt;&amp;quot;SI1&amp;quot;&amp;lt;..: 2 3 5 4 2 6 7 3 4 5 ...&#xA;##  $ depth  : num  61.5 59.8 56.9 62.4 63.3 62.8 62.3 61.9 65.1 59.4 ...&#xA;##  $ table  : num  55 61 65 58 58 57 57 55 61 61 ...&#xA;##  $ price  : int  326 326 327 334 335 336 336 337 337 338 ...&#xA;##  $ x      : num  3.95 3.89 4.05 4.2 4.34 3.94 3.95 4.07 3.87 4 ...&#xA;##  $ y      : num  3.98 3.84 4.07 4.23 4.35 3.96 3.98 4.11 3.78 4.05 ...&#xA;##  $ z      : num  2.43 2.31 2.31 2.63 2.75 2.48 2.47 2.53 2.49 2.39 ...&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;diamonds %&amp;gt;%&#xA;ggplot(aes(x = carat, y = price)) + geom_point() +&#xA;  xlab(&amp;quot;Carat&amp;quot;) +&#xA;  ylab(&amp;quot;Price&amp;quot;)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;img src=&#34;./post/2017-08-14-the-visual-display-of-quantative-information_files/figure-html/intial_plot-1.png&#34; width=&#34;672&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a solid chart. It displays the data, you can see the outlines of the dataset. But how could it be improved?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The chart has turned into a mass of black. Whilst there is nothing wrong with black, it hides the true density of the points in it’s area. Can we better convey the relative density of points in an area?&lt;/li&gt;&#xA;&lt;li&gt;To do this, we could change the alpha setting to reduce overplotting. Alternatively, we could try a different method of representing the data, such as a density plot. For this example, we’ll reduce the alpha&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;diamonds %&amp;gt;%&#xA;ggplot(aes(x = carat, y = price)) + geom_point(alpha = 0.1) +&#xA;  xlab(&amp;quot;Carat&amp;quot;) +&#xA;  ylab(&amp;quot;Price&amp;quot;)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;img src=&#34;./post/2017-08-14-the-visual-display-of-quantative-information_files/figure-html/revised_plot-1.png&#34; width=&#34;672&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;Ah, much better. But what else could be improved? What are the minimum and maximum values in the dataset? Currently we can’t easily see these. Tufte suggests editing the axis to become range bars. With less ink, you convey more information (magic!).&lt;/p&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(ggthemes)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre&gt;&lt;code&gt;## Warning: package &amp;#39;ggthemes&amp;#39; was built under R version 3.3.3&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;diamonds %&amp;gt;%&#xA;ggplot(aes(x = carat, y = price)) + geom_point(alpha = 0.1) +&#xA;  geom_rangeframe() +&#xA;  xlab(&amp;quot;Carat&amp;quot;) +&#xA;  ylab(&amp;quot;Price&amp;quot;) +&#xA;  scale_x_continuous(breaks = extended_range_breaks()(diamonds$carat)) +&#xA;  scale_y_continuous(breaks = extended_range_breaks()(diamonds$price)) + &#xA;  theme_tufte() &lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;img src=&#34;./post/2017-08-14-the-visual-display-of-quantative-information_files/figure-html/tufte_theme_plot-1.png&#34; width=&#34;672&#34; /&gt;&lt;/p&gt;&#xA;&lt;p&gt;So what’s different in this plot?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;We’ve reduced the overplotting of the points by lowering their alpha level. It’s now more easy to see the density of the points.&lt;/li&gt;&#xA;&lt;li&gt;We’ve changed the axis into range bars. It’s now easy to read the range values for the data set&lt;/li&gt;&#xA;&lt;li&gt;We’ve stripped out the nonessential ink, such as the background and gridlines.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To do this, we used a few tools included in the &lt;code&gt;ggtheme&lt;/code&gt; package.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;geom_range()&lt;/code&gt; to change the axis into range bars&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;theme_tufte()&lt;/code&gt; to remove the background and gridlines&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;extended_range_breaks()&lt;/code&gt; to create axis breaks that include the extreme values of the data.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;conclusion&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;ggplot2&lt;/code&gt; makes it very easy to produce good looking visualisations. But sometimes less is more. In the Visual Display of Quantative Information, Tufte demonstrates that with a bit of thought, plots can be made even more effective at conveying information. Rather than mixing data with a chart style and “mixing well”, we should envision the end product of what we wish to convey.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Learning about API&#39;s and R</title>
				<link>/2017/08/02/learning-about-api-s-and-r/</link>
				<pubDate>Wed, 02 Aug 2017 00:00:00 +0000</pubDate>
				<guid>/2017/08/02/learning-about-api-s-and-r/</guid>
				<description>&lt;div id=&#34;apis-in-r&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;API’s in R&lt;/h1&gt;&#xA;&lt;p&gt;Amanda from Rstudio recently hosted a very helpful Webinar on &lt;a href=&#34;https://www.rstudio.com/resources/webinars/web-api-updates/&#34;&gt;API’s in R&lt;/a&gt;. After watching it, I wanted to write down some of the key points and put them into practice.&lt;/p&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Two years at IBM</title>
				<link>/2017/08/01/2-years-at-ibm/</link>
				<pubDate>Tue, 01 Aug 2017 00:00:00 +0000</pubDate>
				<guid>/2017/08/01/2-years-at-ibm/</guid>
				<description>&lt;div id=&#34;two-years-at-ibm&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;Two Years at IBM&lt;/h1&gt;&#xA;&lt;p&gt;On July 27th 2017 I reached my two year anniversairy at IBM. Coincidentally, I had an internal interview the day previous. In it, I was asked “If you could go back to the beginning, what would you tell yourself?”. I thought it was an interesting question (must be why it’s now a cliche).&lt;/p&gt;&#xA;&lt;p&gt;My two years at IBM have had highs and lows. I don’t think I could have avoided all of the lows, but I think with the right advice, I could have maybe shortened them. At the same time, there have been some lessons that I’ve heard before, but I haven’t learnt until I’ve had the weight of my own experience to drive them home. I suppose that’s the cruel part of learning from other people. You can listen, but you won’t understand always.&lt;/p&gt;&#xA;&lt;p&gt;I suppose my IBM career can be simplified into a few broad strokes&lt;/p&gt;&#xA;&lt;ol style=&#34;list-style-type: decimal&#34;&gt;&#xA;&lt;li&gt;Burning out on my first project&lt;/li&gt;&#xA;&lt;li&gt;Moving to become more technical&lt;/li&gt;&#xA;&lt;li&gt;Getting involved with the &lt;strong&gt;extracurricular activities&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div id=&#34;burning-out&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Burning Out&lt;/h2&gt;&#xA;&lt;p&gt;I was on my first project for nearly a year. It’s only a year later that I can appreciate all that I learnt whilst on it. I took a lot of experience for granted at the time. TO try and avoid the experiences that taught me all of that would be silly, it’s who I am now. But if I could message myself, I would advise the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Get help. Don’t suffer in silence. If something isn’t clear, ask. If they can’t help, ask someone else. Keep asking.&lt;/li&gt;&#xA;&lt;li&gt;Stand up for yourself. Everyone has an agenda (not in a machivellian aspect), everyone has their own problems, both in work and outside. People are great, but you shouldn’t rely on them to solve your problems, or look out for yourself. I was in my first project for far longer than beneficial because I went with the flow to support other people, rather than insisting to move on.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;becoming-more-technical&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Becoming more technical&lt;/h2&gt;&#xA;&lt;p&gt;Soon after joining IBM, I decided I wanted to become &lt;em&gt;technical&lt;/em&gt;. I’d looked on longingly at those with the ability to code, but I never believed I could do it. Since then, I’ve started following my interests. It’s been stop-start, bumpy, disheartening, but slowly successful. I feel a bit like climbing to the top of the mountain, only to realise there’s another peak behind, that’s even further away. The more I learn, the more I discover I don’t know. Finding the time to learn more is difficult, but it’s taught me to start reflecting the quality and quantity of what I do. “Is this taking me towards my goals?”.&lt;/p&gt;&#xA;&lt;p&gt;I’d tell myself&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Yes you can do it! I wish I’d started earlier&lt;/li&gt;&#xA;&lt;li&gt;It’s okay to get distracted, feel overwhelmed. It takes time, practice and a bit of luck.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;getting-involved&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;Getting Involved&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use giveback to my advantage.&lt;/li&gt;&#xA;&lt;li&gt;Find opportunities that interest me&lt;/li&gt;&#xA;&lt;li&gt;Mentoring&lt;/li&gt;&#xA;&lt;li&gt;Data Analysis&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>My Morning Routine</title>
				<link>/2017/07/29/my-morning-routine/</link>
				<pubDate>Sat, 29 Jul 2017 00:00:00 +0000</pubDate>
				<guid>/2017/07/29/my-morning-routine/</guid>
				<description>&lt;div id=&#34;a-morning-routine&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;A Morning Routine&lt;/h1&gt;&#xA;&lt;p&gt;Whilst listening to my usual parade of podcasts last week, I came across one discussing morning routines of “successful people”. I didn’t fully buy in to some of the routines, but the idea of consciously deciding how to start every day did appeal. Creating a habit of a certain morning routine could help start each day well, increasing my likelihood of being productive that morning and hopefully following on into the rest of the day. Additionally, it may be a good opportunity to make small regular gains in a skill or activity, which like compound interest, can lead to large gains over time.&lt;/p&gt;&#xA;&lt;div id=&#34;my-current-routine&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;My Current Routine&lt;/h2&gt;&#xA;&lt;p&gt;When I reflected on my current routine, I realised that it was quite variable. I consistently woke up around 7am, but that’s about it. Beyong that, my next actions varied depending on if I was at home or in a hotel.&lt;/p&gt;&#xA;&lt;p&gt;At a hotel, I usually wake up, then immediately shower. After that I’ll settle down to address any non work tasks I want to do. I usually intend to do learning or coding at this time, but don’t always succeed.&lt;/p&gt;&#xA;&lt;p&gt;At home, I generally go to the gym immediately after waking up. It’s a pleasant way to start the day, but not always possible. After that, it’s a quick shower and on with my day.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;what-to-consider-in-a-new-routine&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;What to consider in a new routine?&lt;/h2&gt;&#xA;&lt;p&gt;When considering what my &lt;em&gt;conscious&lt;/em&gt; routine should look like, I decided it aim for the following:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Brief&lt;/li&gt;&#xA;&lt;li&gt;Simple&lt;/li&gt;&#xA;&lt;li&gt;Repeatable&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;These three things are all interlinked. The biggest challenge of intentionally setting myself a routine is making sure I stick to it. My enemies in this are a lack of time, not having the resources, and lack of willpower. Keeping it simple to start with should help with this. Once it’s consistent, I could look to achieve more.&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;what-to-include-in-a-routine&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;What to include in a routine?&lt;/h2&gt;&#xA;&lt;p&gt;The goal of having a routine is to:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ensure I’m productive&lt;/li&gt;&#xA;&lt;li&gt;Make regular small progress in a chosen area.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;With that in mind, some possible items could be&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Practice my squash swing&lt;/li&gt;&#xA;&lt;li&gt;Stretching&lt;/li&gt;&#xA;&lt;li&gt;Read on a topic I’m trying to understand&lt;/li&gt;&#xA;&lt;li&gt;Writing/Journaling&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;None of these fit into a perfect routine. My girlfriend won’t appreciate me swinging my squash racket around whilst she’s asleep. Reading a topic, especially if it’s dry, may send me back to sleep!&lt;/p&gt;&#xA;&lt;p&gt;In my first attempt at a routine, I’ve decided to go a bit higher level. It looks like this&lt;/p&gt;&#xA;&lt;ol style=&#34;list-style-type: decimal&#34;&gt;&#xA;&lt;li&gt;Wake up (of course…)&lt;/li&gt;&#xA;&lt;li&gt;~ 5 Minutes of something physical. Either stretching or grooving my squash swing&lt;/li&gt;&#xA;&lt;li&gt;~ 5 minutes of something mental. Either journaling or writing a blog post&lt;/li&gt;&#xA;&lt;li&gt;Shower!&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;After that, I should be ready to start my day.&lt;/p&gt;&#xA;&lt;p&gt;I have concerns that after my shower I can often get distracted. Perhaps having a task following it would help lead me into the next productive activity?&lt;/p&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>The Winning Mindset</title>
				<link>/2017/07/19/the-winning-mindset/</link>
				<pubDate>Wed, 19 Jul 2017 00:00:00 +0000</pubDate>
				<guid>/2017/07/19/the-winning-mindset/</guid>
				<description>&lt;p&gt;“Think Positive”. I’ve heard it multiple times. It can make a big difference in what you’re doing. I recently had a memorable experience of it at squash training.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Food Report - Homemade Burgers</title>
				<link>/2017/07/17/food-report-homemade-burgers/</link>
				<pubDate>Mon, 17 Jul 2017 00:00:00 +0000</pubDate>
				<guid>/2017/07/17/food-report-homemade-burgers/</guid>
				<description>&lt;div id=&#34;burgers&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;Burgers&lt;/h1&gt;&#xA;&lt;p&gt;For the past few months I’ve been slacking. Burger nights have become a common weekend dinner. Peanut butter, fried onions, mayoniaise, sweet chilli sauce are all regularly featured.&lt;/p&gt;&#xA;&lt;p&gt;Every time though, I’ve taken the path of least resistance and bought pre-made burgers. Despite my best efforts, they’ve always tasted better than my own attempts. Better texture, better flavour (and also easier).&lt;/p&gt;&#xA;&lt;p&gt;Recently though, I came across the burger section “The Food Lab” by J. Kenji Lopez. It’s inspired me to try again at burger mastery. I’m pleased to say this weekend I came a step closer.&lt;/p&gt;&#xA;&lt;div id=&#34;what-worked&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;What worked?&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;Freshly ground beef from the Farmers Market. This was an instant winner, with a much better texture and taste than store bought.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Patties made from only ground beef. No onions, seasoning or any other distractions.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Only season the outside of the patty.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Freshly made sourdough bun from the Farmers Market. This managed to hold it’s integrity despite the juices.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Toasting the buns with butter in a pan. This created a lovely crisp texture and golden colour.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Resting the burgers after cooking&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;div id=&#34;what-could-be-better&#34; class=&#34;section level2&#34;&gt;&#xA;&lt;h2&gt;What could be better?&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;p&gt;I still managed to overcook the burger! Next time I need to be more strict with measuring the internal temperature.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;At 200g, the burgers were a quite large for my preference. Next time I will try smaller ~120g patties.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Toppings. Maybe I just missed peanut butter (thanks diet), but it seemed a little bland. Next time I’d like to plan a more cohesive topping selection ahead of time, rather than making it up on the spot.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;p&gt;Photo’s! I should take some photos of the steps and results.&lt;/p&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Food vs &#34;Food&#34;</title>
				<link>/2017/06/15/food-vs-food/</link>
				<pubDate>Thu, 15 Jun 2017 00:00:00 +0000</pubDate>
				<guid>/2017/06/15/food-vs-food/</guid>
				<description>&lt;p&gt;The majority of the food I eat (and enjoy), I wouldn’t have considered 5 years ago. In that time, my diet has changed significantly. I attribute the majority of this change to living with my girlfriend, who expanded my horizons.&lt;/p&gt;</description>
			</item>
			<item>
				<title>How to predict an election</title>
				<link>/2017/06/11/how-to-predict-an-election/</link>
				<pubDate>Sun, 11 Jun 2017 00:00:00 +0000</pubDate>
				<guid>/2017/06/11/how-to-predict-an-election/</guid>
				<description>&lt;p&gt;Whilst the UK is digesting the results of the General Election this weekend, I went down a series of rabbit holes that led to this great article on how the exit polls are used to predict the election results.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Words of the Day</title>
				<link>/2017/06/11/words-of-the-day/</link>
				<pubDate>Sun, 11 Jun 2017 00:00:00 +0000</pubDate>
				<guid>/2017/06/11/words-of-the-day/</guid>
				<description>&lt;p&gt;I came across two great new words today (in the Economist - Thanks Emily). I’m not sure I’ll get the chance to use them in conversation any time soon..&lt;/p&gt;</description>
			</item>
			<item>
				<title>Deploying to Netlify</title>
				<link>/2017/06/10/deploying-to-netlify/</link>
				<pubDate>Sat, 10 Jun 2017 00:00:00 +0000</pubDate>
				<guid>/2017/06/10/deploying-to-netlify/</guid>
				<description>&lt;p&gt;After creating the skeleton of the site using &lt;code&gt;blogdown&lt;/code&gt;, my first goal is to get it up and running on netlify, using a free domain name. After I’ve achieved that, I’ll consider a custom domain name (that will be another post..)&lt;/p&gt;</description>
			</item>
			<item>
				<title>My First Post</title>
				<link>/2017/06/10/my-first-post/</link>
				<pubDate>Sat, 10 Jun 2017 00:00:00 +0000</pubDate>
				<guid>/2017/06/10/my-first-post/</guid>
				<description>&lt;p&gt;This is my first post on my website. It can only go up from here.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
