Tue 28 February 2017

Install and configure a full software stack for a Flask app: Apache, Gunicorn, MongoDB, Redis
A few days ago, I had to deploy a new Flask application for a customer and here are some notes which could be useful for somebody, as well. I will show how everything is configured, even if here, in this tutorial, I have just a minimal Flask app, in one ...

Mon 10 October 2016

Deploy your Flask Web Application on Ubuntu 16.04 with Apache, Gunicorn and systemd
I still get questions from time to time about how to deploy a python web application using Apache and not NGINX. Here is a quick tutorial to deploy your Flask application on Ubuntu 16.04 or any linux distribution (considering relevant changes) using Apache, Gunicorn and systemd. Until some weeks ...

Fri 24 June 2016

Scale your Flask Python Web Application with Docker and HAProxy
For the last few months I was using Docker quite intensively for my projects and I really like it. In this post I will just describe the necessary steps to deploy a minimal Flask python application and scale it using docker-compose and HAProxy. So, here is a diagram with what ...

Sun 23 November 2008

Mod_python on OpenSUSE 11.0
Mod_python is an Apache module that embeds the Python interpreter within the server. Here is step by step what I did to configure it for OpenSUSE 11.0: 1. Install mod_python: $ sudo zypper in apache2-mod_python 2. Enable mod_python: edit /etc/sysconfig/apache2 and add python to the APACHE_MODULES line, so ...

Sat 11 October 2008

Is Mathematics Beautiful? First part: Surfaces
"Mathematics, as much as music or any other art, is one of the means by which we rise to a complete self-consciousness. The significance of Mathematics resides precisely in the fact that it is an art; by informing us of the nature of our own minds it informs us of ...

Tue 30 September 2008

Graphics with Gnuplot from C and Python language
If you are doing a lot of calculations/simulations, like me, using C or/and Python language, you also need to visualize your simulated data. One way to do it is just to generate/write a "data" file and plot it with your plotting preferred package after the simulation is ...

Sat 07 June 2008

SciComp on Windows with Python(x,y)
If you are doing a lot of Scientific Computing and you want to use Windows as a platform, then my advice is to switch on Linux/Unix. If you don't agree with me then a good solution for you is Python(x,y). What is it? From their web ...