Code + Product

Custom Jinja template filters in Flask

Oct 30th, 2016 in Python

A short snippet for creating a template filter, to present datetime objects in Jinja templates.

JSON field type in SQLAlchemy (Flask / Python)

Sep 8th, 2016 in Python

Want to store JSON-serialized data in your database? But sick of calling `json.loads()` and `json.dumps()` when dealing with this data in your Flask app? Read on!

Debugging mobile apps with Charles proxy

Aug 15th, 2016 in Tools | Android

Notes on using a HTTP / reverse proxy (Charles) to view all traffic between your mobile device and the internet.

Using iptables to open a port on CentOS

Jul 25th, 2016 in Servers and Scaling

A quick look at using iptables to manage a simple firewall and enable restricted public access to your server.

Creating lists of CSS selectors with SASS

Jun 21st, 2016 in Tools

I like to use CSS selectors like .margin-top-10, .padding-right-20, etc to quickly style a new page. Here's how I create them in SASS.

Resolving alembic merge branch conflicts

May 23rd, 2016 in Python

How to fix alembic's "Multiple head revisions are present for given argument 'head'" error.

Automated server deployments with Ansible

Apr 18th, 2016 in Servers and Scaling

Guide to automating server deployments with Ansible playbooks, with example files.

Sending log files to Logstash with Elastic's Filebeat

Mar 8th, 2016 in Servers and Scaling

Centralize your logging by using Filebeat to send log files to Logstash.

Using Python's Watchdog to monitor changes to a directory

A small Python script to take action whenever a new file is uploaded to a directory or its contents change.

Data Pipelines - Airflow vs Pinball vs Luigi

Review of 3 common Python-based data pipeline / workflow frameworks from AirBnb, Pinterest, and Spotify.