Laurent Luce's Blog

Technical blog on web technologies

C++ Twilio REST and TwiML Helper Library

The C++ Twilio help library simplifies the process of making requests to the Twilio REST API, generating TwiML and validating HTTP request signatures using C++. Checkout the library: git clone https://laurentluce@github.com/laurentluce/twilio-cplusplus.git Source files: Rest.cpp: Twilio REST helper TwiML.cpp: TwiML generation helper Utils.cpp: Utils to validate a HTTP request signature: X-Twilio-Signature Examples.cpp: Examples of usage UnitTests.h:... » read more

Amazon S3 upload and download using Python/Django

This article describes how you can upload files to Amazon S3 using Python/Django and how you can download files from S3 to your local machine using Python. We assume that we have a file in /var/www/data/ which we received from the user (POST from a form for example). You need to create a bucket on... » read more

Facebook oauth and Graph API with Django

In this post, I am going to describe how I integrated Facebook into Gourmious, so users could post their favorite dishes on Gourmious and on Facebook at the same time. I wanted to keep the Gourmious login so the users could decide to login using their Gourmious credentials or using the Facebook login feature. I... » read more

Upload files from Python to Django

In this post, we are going to upload files using Python to a Django server in an efficient way (streaming style on both sides). We will upload all the files found in 1 folder to our Django server. We will also use authentication to post our data to the server. Client side A very nice... » read more

Create a Debian package for your Django application

This post is about building a Debian package to deploy a Django application on a Debian server. The package will take care of the following: Install application Web server configuration (in our case: Lighttpd with fastcgi) Init.d script to start/stop Django server We will also use a debconf template to ask 1 question to the... » read more