Exporting HTML Presentations to PDF
Building a presentation with reveal.js is such a pleasure. And the results looks so good. Seriously doubt that I will ever use anything like PowerPoint again. Although it’s possible to export a presentation directly to PDF using a style sheet, this doesn’t always work perfectly (IMHO).
Fortunately there’s another way: decktape. It works with reveal.js and a bunch of other HTML5 presentation frameworks.Read more
Quick Wordpress Install with Docker
I’ve just put together a Wordpress site for my older daughter. It’s hosted on DigitalOcean and all of the infrastructure is handled with Docker. This post describes the steps in the (easy) install process.Read more
Diagnosing Killed Jobs on EC2
I’ve got a long running optimisation problem on a EC2 instance. Yesterday it was mysteriously killed. I shrugged it off as an anomaly and restarted the job. However, this morning it was killed again. Definitely not a coincidence! So I investigated. This is what I found and how I am resolving the problem.Read more
Removing Redundant Hostnames with NGINX
While poring over my Google Analytics data I noticed the notification below.
Obviously this is not a train smash, but it is compromising the quality of my data. And it also offends my OCD. This is what I did to fix the problem.Read more
Hosting a Plumber API on AWS
I’ve been putting together a small proof-of-concept API using R and plumber. It works flawlessly on my local machine and I was planning on deploying it on an EC2 instance to demo it for a client. However, I ran into a snag: despite opening the required port in my Security Group I was not able to access the API. This is what I needed to do to get it working.Read more
Installing Docker on Ubuntu
This procedure works on both my laptop and a fresh EC2 instance.Read more
Creating a S3 Bucket
There are many good reasons to use S3 (Simple Storage Service) storage. This is a quick overview of how to create a S3 bucket.Read more
Web Scraping Workshop at PyCon 2017 (Cape Town)
In a little under a month PyCon 2017 will be happening in Cape Town. I’m really looking forward to the conference and rather excited about giving a workshop on Web Scraping in Python. This is the abstract for the workshop.Read more
Creating an AWS Spot Instance
EC2 Spot Instances can provide very affordable computing on EC2 by allowing access to unused capacity at significant discounts.Read more
Building Osrm Instance
Global Variables in R Packages
I know that global variables are from the Devil, but sometimes you just can’t get around them.
I’m building a small package for a client that relies on a data file. For various reasons that file is not part of the package and can reside in different locations on users’ machines. Furthermore there are users on both Windows and Linux machines.Read more
Driving AWS from the Command Line
Although it’s very handy (and easy) to set up some cloud resources using the AWS Management Console, once you know what you need it makes a lot of sense to automate the process. Fortunately there’s a handy little command line tools,
aws, which makes this eminently possible. The AWS CLI Command Reference is the definitive resource for this tool. There’s a mind boggling array of possibilities. We’ll take a look at a small selection of them.
Route Asymmetry in Google Maps
I have been retrieving some route information using Rodrigo Azuero’s
gmapsdistance package and noted that there was some asymmetry in the results: the time and distance for the trip from A to B was not necessarily always the same as the time and distance for the trip from B to A. Although in retrospect this seems self-evident, it merited further investigation.
Setting Up Time Zones in BASH
Ensuring that your account is configured to run with appropriate time zone information can make your life a lot easier.
Of course, if you administer your own system then you can simply set your system time to local time. However, it’s generally a better idea to set system time to Universal Time (UTC) and then configure time zone information on a per-user basis.
Why does this make sense? Well, suppose that you have remote users logging onto your system. It’s very likely that a remote user will be operating in a different time zone and it’d be handy for them to have system time converted into their local time.Read more
Mysql Time Zones
Adding a Volume to an Ubuntu EC2 Instance
Some quick notes on adding a storage volume to an EC2 instance.Read more
Remote Desktop Ec2
A Timeline History of R
A record of some more or less important events in the history of R.
This is a work in progress. The information is cobbled together from a range of sources. If you have pertinent items to add, please let me know via the comments.
- useR! (Boston, MA, USA)
- useR! (Toulouse, France)
- R-3.4.3 “Kite-Eating Tree” (2017-11-30)
- RStudio-1.1.383 (2017-10-09)
- R-3.4.2 “Short Summer” (2017-09-28)
- RStudio-1.0.153 (2017-07-20)
- R-3.4.1 “Single Candle” (2017-06-30)
- R-3.4.0 “You Stupid Darkness” (2017-04-21)
- RStudio-1.0.143 (2017-04-19)
- R-3.3.3 “Another Canoe” (2017-03-06)
- useR! (Brussels, Belgium)
- satRday (Cape Town, South Africa)
- EARL (London; Boston, MA, USA; San Francisco, CA, USA)
- R/Finance (Chicago, IL, USA)
- rstudio::conf (Kissmmee, FL, USA)
- The R Journal (9/1)
- R-3.3.2 “Sincere Pumpkin Patch” (2016-10-31)
- R-3.3.1 “Bug in Your Hair” (2016-06-21)
- R-3.3.0 “Supposedly Educational” (2016-05-03)
- R-3.2.5 “Very, Very Secure Dishes” (2016-04-14)
- R-3.2.4 “Very Secure Dishes” (2016-03-10)
- RStudio-1.0.136 (2016-12-21)
- useR! (Stanford, CA, USA)
- satRday (Budapest, Hungary)
- EARL (London; Boston, MA, USA)
- R/Finance (Chicago, IL, USA)
- The R Journal (8/1 and 8/2)
- A new logo for R