How to Install and Setup Simple Facebook Connect for WordPress

One of our users over at our Facebook community page asked us to cover the installation and setup of Simple Facebook Connect plugin for WordPress. For those who do not know, Simple Facebook Connect is a plugin created by Otto (@otto42) to make it easy for your site to use Facebook social plugins.

Flask-Mail windows-issues

Windows issues Flask-Mail requires the use of the Lamson library, which unfortunately has dependencies that do not work on Windows. You can install Flask-Mail, Lamson and other libraries with the no dependencies option: easy_install -N lamson chardet Flask-Mail

Debian Linux Named Most Popular Distro for Web Servers

Jan 12, 2012 2:20 am 1. Debian 2. CentOS 3. Ubuntu 4. Red Hat 5. Fedora 6. SuSE 7. Gentoo

flup vs uWSGI with cherokee

flup is slightly faster than uWSGI at this point but this has to be put into perspective and you need to take into consideration the features that come with uWSGI, an exhaustive list can be found here. uWSGI is unable to complete the ab test with the following argument -n 1000 -c 100 with its default settings you will need to adjust the timeout socket and socket listen queue. However it is interesting to note that the memory footprint for uwsgi is lower by an order of magnitude and that my laptop remains responsive during the ab test using uWSGI where it was almost taken down by same test with flup.

Creating a REST API in Python using Bottle and MongoDB

import json import bottle from bottle import route, run, request, abort from pymongo import Connection connection = Connection('localhost', 27017) db = connection.mydatabase @route('/documents', method='PUT') def put_document(): data = request.body.readline() if not data: abort(400, 'No data received') entity = json.loads(data) if not entity.has_key('_id'): abort(400, 'No _id specified') try: db['documents'].save(entity) except ValidationError as ve: abort(400, str(ve)) @route('/documents/:id', method='GET') def get_document(id): entity = db['documents'].find_one({'_id':id}) if not entity: abort(404, 'No document with id %s' % id) return entity run(host='localhost', port=8080)