'Uncategorized' Category

  • Binary Search Tree library in Python

    December 18, 2010

    This article is about a Python library I created to manage binary search trees. I will go over the following: Node class Insert method Lookup method Delete method Print method Comparing 2 trees Generator returning the tree elements one by one You can checkout the library code on GitHub: git clone https://laurentluce@github.com/laurentluce/python-algorithms.git. This folder contains […]

  • C++ Twilio REST and TwiML Helper Library

    December 16, 2010

    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: […]

  • Amazon S3 upload and download using Python/Django

    October 7, 2010

    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 […]

  • Upload to Django with progress bar using Ajax and jQuery

    September 30, 2010

    In this article, I am going to describe how I implemented upload to Django + progress bar with Ajax and jQuery. I needed this feature so users could post their dish pictures on Gourmious and follow the upload’s progress. Client Side We need a form so the user can select a file to upload. We […]

  • Facebook oauth and Graph API with Django

    August 23, 2010

    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 […]

  • Upload files from Python to Django

    January 24, 2010

    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 […]

  • Create a Debian package for your Django application

    January 2, 2010

    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 […]

Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org