Author archives: Mike
Lazy Caching Proxy Results in Nginx
Written by
on
in
Snaking,
Pony,
Tuxedo.
If you are using nginx as your front-end server for Django, you can also use it as a proxy cache (for smaller websites). You configure the cache like so:
proxy_cache_key "$scheme://$host$request_uri"; proxy_cache_path /var/blog/cache levels=1:2 keys_zone=blogcache:120m; proxy_temp_path /var/blog/proxy; proxy_cache_valid 200 302 5m; proxy_cache_valid 404 1m; proxy_cache_use_stale updating; proxy_cache_bypass $cookie_sessionid; proxy_no_cache $cookie_sessionid;
The proxy_no_cache and proxy_cache_bypass lines ...
Toronto Django/Python Dates
Written by
on
in
Snaking.
The Django Toronto meetup this month is on the 13th, and the deadline for PyCon.ca presentation proposals is the 21st.
Blog Rebooted
Written by
on
in
Vindaloo.
I've moved the blog onto its own VPS, running Zinnia (a Django based blog platform). It's using the Zinnia Bootstrap theme, and hopefully most of the old content will have ported over properly. The server has a (free) SSL certificate, so you can, should you wish, browse or comment using SSL (I really can't imagine ...
Playing with EGL platform for PyOpenGL
Written by
on
in
Snaking.
Played around a bit today with generating an EGL wrapper (for mesa-egl). No real reason for it, other than I wanted to see what EGL is like. One thing that shows up is that the current idea of a "platform" in PyOpenGL is a little too limited. EGL is cross-platform, and apparently can work with ...
QIII Shader File Parser added to Twitch
Written by
on
in
Snaking.
So after yesterday's post, you *must* have been thinking: "where *are* all those textures"? No one has 30 missing textures in a map level. A few of them seem like something that might have been hard-coded, "noshader" "clip" and the like, but there's no way those "sky" textures were going to be hard-coded to content ...
Added Textures to Twitch this evening...
Written by
on
in
Snaking.
I've been playing at writing a small Quake III BSP map rendering engine using PyOpenGL (and OpenGLContext, for now) when I get the bug to do 3D.
Today I added basic texture rendering for "simple" surfaces (non bezier spline patches). With that you can wander around (unzipped) maps and tell what's going on, but nothing ...
Video from PyCon.ca is up...
Written by
on
in
Snaking.
The video has a number of drop-outs, and as noted elsewhere, it turns out that the section on Python 3 was wrong. Sigh. Python 3 did not clean up the profile/cProfile duality as it did for all other name/cName pairs, so Python 3 profiling works as long as you use Python 2 tools to process ...
PyCon.ca Tools Sprint wrap-up (a bit late)
Written by
on
in
Snaking.
Where does the time go?
Written by
on
in
Snaking.
So I just looked at my calendar and went "gulp". PyCon.ca is just 3 (or 4, depending how you want to count) days away. I've got my presentation roughed out, but I don't have Coldshot to the point where it can be released as a 1.0 implementation.
I also still need to play with statprof, ...
Coldshot reaches loose equivalence, now the fun part...
Written by
on
.
So as of now I can load Coldshot profiles into RunSnakeRun. So far they are no more informative than a cProfile profile. Now the fun part is seeing what kind of tools can actually be fashioned when you have all of this information...
Some ideas
- per-thread views (I think that's a given)
- browse into set ...