Dec 9 2012

Python Error Logging to Amazon Web Services’ Simple Notification Service (SNS)

Jamie Begin

As part of the standard library, Python provides a very flexible logging module that includes the ability to define custom handlers. Commonly this is used to log errors to Syslog, SMTP, a database, etc. However, we can also easily adapt it to log to a Amazon Web Services Simple Notification Service (SNS) topic. Subscribers (either […] …

Read more

Aug 22 2012

3 Things You Must Know If You Develop on Amazon Web Services (EC2)

Jamie Begin

Amazon Web Services (AWS) is a great way to begin building highly-scalable, durable web apps almost immediately… er, which is a bit of a problem. If you’re developing applications on AWS, here are three important tips to keep in mind before diving in head first. Never run anything important on a single EC2 instance. If […] …

Read more

Mar 22 2012

A better way to authenticate users via a SQL database.

Jamie Begin

For years I’ve been using this simple design pattern when building a new user authentication backend for a project. Rather than just querying whether a username and password is valid, I perform a conditional INSERT on a login history table. It’s a pretty obvious idea, but not one that I’ve personally encountered in other developer …

Read more

Feb 9 2012

4 Non-Obvious Tips When Developing with Credit Card Gateways

Jamie Begin

I’ve been working with credit card payment gateways as a web developer since 1997, when I built an e-commerce website for a small computer store. It’s a complex industry with myriad fees intentionally obscured behind various jargon. I’ve picked up on some of it along the way, but didn’t really start to get a solid […] …

Read more