Docker for python pelican blog with nginx

Posted on 29 May, 2019 in Products

TL;DR

Dockerised pelican blog with deployment of static pages to nginx.

dockerfile:

FROM python:3.7-alpine as base

# container setup.
FROM base as builder

RUN mkdir /install
WORKDIR /install
COPY . ./

# Install language pack.
RUN apk --no-cache add ca-certificates wget && \
    wget -q -O /etc/apk/keys/sgerrand.rsa.pub https …

Continue reading

Replace webapp2 usage for self.response.write in python script

Posted on 07 May, 2016 in Products

I recently began to learn python and started by creating a simple app on google app engine, but then I decided to deploy it somewhere else.

(Although I know I can install webapp2 in a non-appengine python environment I would rather not because I prefer vanilla environments whenever possible.)

It's …


Continue reading

Pelican on GitLab Pages!

Posted on 25 March, 2016 in Products

This is a pelican blog hosted on GitLab Pages! The source code of this site is at https://gitlab.com/pages/pelican. Learn about GitLab Pages at https://pages.gitlab.io.


Five Traps of High-Stakes Decision Making, by Michael C Mankins

Posted on 09 December, 2015 in Process

...here @ HBR.

  • An unrealistic search for silver-bullet solutions.
  • Failure to consider alternatives explicitly.
  • Too many people involved.
  • Failure to consider opportunity cost.
  • Underestimating the challenges involved in execution and change management.

How to Think Like Bill Gates

Posted on 14 July, 2014 in People

...here @ Sources of Insight.

  • Prioritize;
  • Ask smarter questions;
  • Make data-driven decisions;
  • Divorce your ego;
  • Frame the problem;
  • Get perspectives on the problem;
  • Model the problem;
  • Think of the system and the ecosystem;
  • Think of the problem over time;
  • Think strategically.