Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Sunday, August 15, 2010

Apache and HTML5 WebSockets

I was surprised to find out that there is no implementation for WebSockets support in Apache web server.
But there is a way to make it work.

pywebsocket project is an Apache "extension" written in python, so mod_python is required also, and with it Apache can support HTML5 WebSockets. it is very easy to install and configure.

I flowed the instructions in this URL: http://www.travisglines.com/web-coding/how-to-set-up-apache-to-serve-html5-websocket-applications-with-pywebsocket

Enjoy.

Monday, August 02, 2010

Google App Engine and Geo Targeting by IP using MaxMind DB

Hi,
I tried using my Java based GAE project to geo target my user using MaxMind but I found out that it is not possible because the current implementation of MaxMind Java API uses restricted classes by Google.

The only way I was able to do it is by using Python based GAE project and using this great piece of code for doing it: http://code.google.com/p/python-geoip/

Hope it helps anyone.