Bryan Pieper's Blog

html5I recently went through the fairly painless of process of upgrading thepiepers.net to html5. This will allow me more flexibility in the future as more browsers expand their support for html5. In addition, html5 has a number of improvements over html4 that will make my front-end work a little easier.

In the process of upgrading the site, I implemented the following

  1. Internet Explorer overrides for html5 elements
  2. Fixed display issues for non-html5 elements
  3. Implemented Django html5 form inputs

uWSGILooking for a command line utility to control a uWSGI Django web application?

I have been using uWSGI with nginx for a good while now and am very satisfied with the stability and performance. However, as most know that us it, there are numerous options for executing and controlling a uWSGI app.

Let me begin by stating this is not the only solution to preventing spam, but rather a compromise between annoying inputs (reCAPTCHA, math inputs, etc) and making forms more difficult for spam bots. I personally cannot stand having to input reCAPTCHA values, though, it is a proven technique for mitigating spam. If you are going to use Akismet, I prefer to use it as one of two lines of defense since it can produce false positives and doesn't stop unknown signatures.

Rather, I prefer the honeypot for small to medium-sized sites. It takes the irritation out of forms that also improves form conversions. Happy visitors, unhappy spam bots ;-)

Django uWSGII recently upgraded the uWSGI instance on my server from v0.9.5 to v0.9.6 and ran into a small glitch in the process.

After compiling uWSGI and recompiling nginx, the process seemed work as expected. I fired up Django and hit homepage. Then, I refreshed a few times and got this error message “uWSGI wsgi application not found.”

At first I thought this was odd because the initial request worked but it was the successive requests beyond the number of processes that caused the issue.