# Flask-SocketIO on OpenShift: fallback on another port

## TL; DR

I hacked the SocketIO client 0.9.16 to support specifying a special port (wsport) to use only for the WebSocket protocol, while keeping all other traffic on the default port. This is required by setups such as OpenShift which require WebSocket traffic to come over a different …

# Kemeny-Young Optimal Rank Aggregation in Python

Rank aggregation is a problem with many important applications and naive approaches to it go wrong in subtle ways. Let’s say that your national Quidditch league is dominated by five major wizard sports newspapers. Yes, the ones with moving images and everything. Every week after the games, each of them publishes a ranking of the star players. For now, let’s suppose that the set of players under investigation is always the same, as the problem becomes a bit more complicated otherwise. …

# Site move

Category: meta
#pelican #blog

I finally got around to moving my entire website, including the blog, to Pelican. I probably would have gotten away with it too if it weren’t for those meddling kids who hacked my friend’s server and convinced me that it’s worth the effort to go static.

It …