Archives week 48 of 2009

Nov. 30, 2009 - Dec. 6, 2009

Cleaning up Shadow Tutorial Code

Grabbed some time this evening to clean up the shadow tutorial code.  It's now refactored into reasonably small methods, supports N lights, uses the cache to store textures/fbos, and generally is a lot less messy.  I'm currently debating what the next step in the tutorial should be.  My current thinking is to use shaders to ...

Continue reading

Adding user-authentication to your Twisted web-site (Another HowTo for undocumented features...)

Following along from the recent post describing how to make your Twisted web-server use SSL sockets, a slightly more involved HowTo describing how to setup HTTP authentication and Twisted's cred module. First, before you say anything, yes, this (using Nevow to guard regular twisted.web) is the "right" way according to the Nevow developers (Nevow is ...

Continue reading

Minimal example of using twisted.manhole (Since it took me so long to get it working...)

Okay, so you want to take a Twisted server and provide a way to execute arbitrary Python code within it while it is running. A few moments of googling gives you the information you need, namely that you want to use the twisted.manhole package. A few minutes more and you come across what seems ...

Continue reading

HowTo: Create an SSL web-server in Twisted (Crude approach, but it works...)



The Twisted web howto doesn't mention the fairly common task of creating an SSL-secured communications channel for a web server. The process of doing so is fairly simple, but it requires tracking down a few pieces of information, so I've collected them here:

First things first, to create an SSL server, you need a private ...

Continue reading

Daily archives

Previous week

Week 47 of 2009

Next week

Week 49 of 2009

Archives