How to set current_user in Tornado asynchronously

Something that I’ve missed when working on setting the current_user upon @tornado.web.authenticated.

»
Author's profile picture David Chua on devnotes

Setting Up Amazon VPC to VPC Peer Connection

Need to communicate between 2 Amazon VPCs securely and privately?

»
Author's profile picture David Chua on guides

Logging Tornado Logs To Graylog (with JSON)

If you’re building your microservices on Tornado and your chosen deployment strategy is to treat it like cattle instead of pets, logging is going to have to play a very important part of your architecture.

»
Author's profile picture David Chua on guides

Painless ECR authentication for Docker

I’ve been playing around with Jenkins lately and one of the problems I’ve been facing is that it gets tedious manually doing a aws ecr get-login every 12 hours on the Jenkins instances so that my builds can push docker images into ECR.

»
Author's profile picture David Chua on guides

Speed up NPM install in Docker Containers

NPM installs in your docker containers getting slow, make sure you set registry!

»
Author's profile picture David Chua on guides

Getting Started with Jenkins using Docker

$ docker run --user root --privileged -p 8080:8080 -p 50000:50000 -v /path/to/host/volume:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkins
»
Author's profile picture David Chua on guides

Installing Jenkins Plugins with their Dependencies in One Step

Assuming that your Jenkins server is listening at port 8080, all you need to do is to run the following curl command:

»
Author's profile picture David Chua on guides

Faceted Search - A Diagram

Faceted search, also called faceted navigation or faceted browsing, is a technique for accessing information organized according to a faceted classification system, allowing users to explore a collection of information by applying multiple filters. A faceted classification system classifies each information element along multiple explicit dimensions, called facets, enabling the classifications to be accessed and ordered in multiple ways rather than in a single, pre-determined, taxonomic order. - Wikipedia

»
Author's profile picture David Chua on devnotes

Hooking up Jekyll to Facebook Instant Articles

Run a Jekyll site? Want to get into the whole Facebook Instant Articles Action?

»
Author's profile picture David Chua on guides

Playing around with Facebook's Instant Articles

Over lunch yestrerday, Lester introduced me to how quick and easy setting up the newly available Facebook Instant Articles was.

»
Author's profile picture David Chua on opinions

A Python RethinkDB walkthrough

»
Author's profile picture David Chua on guides

Event Loop Tasks

A pictorial to understanding async loopings

»
Author's profile picture David Chua on devnotes

Packaging your Python Packages into PyPI (pip)

This is a quick walkthrough on submiting your module for a package. Most of it has been distiled from Peter Down’s article so any credits please send it his way. I’ve modified the walkthrough to use setuptools instead of disutils

»
Author's profile picture David Chua on guide

Installing GRPC, Protobuf and its dependencies for Python Development

Been having some trouble getting my local machine setup for GRPC development lately.

»
Author's profile picture David Chua on guide

Debugging Websockets with wscat (Websocket CLI Terminal)

So I’m currently working on a Websocket implementation from almost-scratch (Tornado/Websockets) and I’m working on implementing some form of rooms/channel functionality. This is mostly just for my learning experience to dive deeper into Python.

»
Author's profile picture David Chua on devnotes