Deep insights from our research and experience

Thumbnail image for Sandboxing Services with Systemd

Sandboxing Services with Systemd

<p>With Ubuntu 14.04 (Trusty) now a year away from end-of-life, we’ve been planning and performing upgrades for the soon-to-be legacy OS. The biggest change is the move from</p><p>Upstart</p><p>to</p><p>Systemd</p><p>for managing services. It’s trivial to convert a service …</p>
Thumbnail image for Logging to Systemd's Journal in Python

Logging to Systemd's Journal in Python

<p>I’ll be the first to admit that I was skeptical about</p><p>Systemd</p><p>and its companion log aggregator</p><p>Journald</p><p>, but after working with if for a few months, I’ve seen the light (or drunk the Kool Aid… not sure).</p><p>Typically …</p>
Thumbnail image for Goodbye manage.py

Goodbye manage.py

<p>Every Django project starts with a</p><p>manage.py</p><p>file in its root. It’s a convenience script that allows you to run administrative tasks like Django’s included</p><p>django-admin</p><p>.</p><p>In</p><p>our last post</p><p>, we discussed the merits of including a</p><p>setup.py …</p>
Thumbnail image for Django Logging, The Right Way

Django Logging, The Right Way

<p>Good logging is critical to debugging and troubleshooting problems. Not only is it helpful in local development, but in production it’s indispensable. When reviewing logs for an issue, it’s rare to hear somebody say, “We have too much logging in …</p>
Thumbnail image for Disabling Error Emails in Django

Disabling Error Emails in Django

<p>One of Django’s nice “batteries included” features is the ability to send emails when an error is encountered. This is a great feature for small sites where minor problems would otherwise go unnoticed.</p><p>Once your site start getting lots of …</p>
Thumbnail image for Dynamic Test Servers with Salt

Dynamic Test Servers with Salt

<p>One of the things I love about the DevOps movement is how (when done right) it empowers developers to work with infrastructure in a safe and controlled manner. Once you’ve nailed down deployments to a static set of servers (production, …</p>
Thumbnail image for The Trouble with Thumbnails: Part 2

The Trouble with Thumbnails: Part 2

<p>In this long overdue follow-up to</p><p>Part 1</p><p>, I’ll be discussing the infrastructure issues associated with creating and serving image thumbnails at scale. The naive solution to generating thumbnails is to declare the image sizes you want in your …</p>
Thumbnail image for Django Patterns: Fat Models and cached_property

Django Patterns: Fat Models and cached_property

<p>One of my favorite patterns in Django is the combination of “fat” models and</p><p>cached_property</p><p>from</p><p>django.utils.functional</p><p>.</p><p>Fat models are a general MVC concept which encourages pushing logic into methods on your Model layer rather than the Controller (“view” …</p>
Thumbnail image for Linting SCSS with sass-lint

Linting SCSS with sass-lint

<p>Linting SCSS with sass-lint</p><p>Complex projects always require multiple developers and design heavy web sites are no exception. Sass/SCSS is still our language of choice when writing CSS, both for its wide support and flexibility. The latter can be a …</p>