The blog ofJonathan Pepin

Counting

2018-05-30

this post is still a draft as I'm working on the examples design and ux We don't often think (or know) about it, but our everyday use of numbers is only one representation of values amongst many. If I ask...

Migrate Rails 5 from Sqlite3 to Postgres on Ubuntu 16

2018-05-10

Prepare Rails and local environment First, let's install postgres. On Mac, brew install postgres should do the trick. On other systems, looks at the Postgres official install page (https://www.postgresql.org/download/). Then, switch the Rails app to using Postgres. In your Gemfile,...

Automated Deploys for Rails 5, Puma, NGINX, Ubuntu 16 with Capistrano on Digital Ocean.

2018-05-02

What is the problem 1. Local and Prod work differently. Once you have a Rails app working locally, a lot of setup has to be done to get the app in production 2. PaaS like Heroku automate everything for...

Managing Configs and Secrets

2018-03-04

Although this post will use Flask for examples, this applies pretty much to any environment. ## Why do you need a config? ### Configs allow you to keep things DRY One of the most known concepts in software engineering is...

Notes from Ogilvy On Advertising [raw]

2018-02-21

Raw Kindle notes for Ogilvy On Advertising by David Ogilvy (http://a.co/geSdYmX) I do not regard advertising as entertainment or an art form, but as a medium of information. Consumers still buy products whose advertising promises them value for money, beauty, nutrition,...

Levels - Turning side project into startups [raw]

2018-02-09

travel is expensive, need money * depressed when going back home bc no more money * shovelling allows to cope with depression -> 12 startups in 12 months * nomad list was a shared spreadsheet by mistake, now big...

Docker Overview

2017-12-19

|term|comment| |---|---| |Docker image /assets/images/docker-image.png image|Lightweight, executable snapshop of an application to run. Holds code, env, libs, runtime, config files, etc.| |Docker Container /assets/images/docker-container.png container|Executed, running image. Runs completely isolated from host environment.| |Docker Kernel /assets/images/docker-kernel.png Kernel|One Docker Kernel per host. It's a...

Anti Pattern - ES6 default exports

2017-12-05

The new ES6 module system offers a built in export system coming with a better syntax than previously used CommonJS and AMD modules. You can now export modules with the following syntax: javascript class Foo {} export default Foo;...

Naming things

2017-11-21

It's been said that there are only two hard things in computer science; Cache invalidation, naming things and off-by-1 errors. Today I'd like to talk about naming things, because it's an issue that is often discussed and regularly comes back...

Notes from Rework [raw]

2017-11-18

Raw Kindle notes for Rework Jason Fried () We have something new to say about building, running, and growing (or not growing) a business. The moment the first hunter-gatherer set foot on an Australian beach was the moment that Homo sapiens...