Archives January 2010
Didn't even think to enable epoll in Twisted+TG
Written by
on
in
Snaking.
Enabling the epoll reactor in Twisted is a two-line change:
from twisted.internet import epollreactor
epollreactor.install()
from twisted.internet import reactor
From there on the app is unchanged. I didn't have time to really test that today (paying work and all), but I don't really expect to see much of a change. EPoll is about scaling up, ...
Testing and Compressing and Timing, Oh My!
Written by
on
in
Snaking.
Finally got a URL set up for the little chatting application. And actually sat down and played with it for a while with the 3 browsers I have handy (Firefox 3.5, Chromium and IE 8). Good news is that (after having to fix a known jquery-on-ie bug), it all seems to pretty much work. Bad ...
PyCon 2010 Schedule is Up
Written by
on
.
How did I miss the announcement? Looks like I'm the last talk on Saturday afternoon. Greg's talking at the same time on Basie, Ned on Testing. Hrm, maybe don't need to worry about my server melting. Anyway, the schedule is up, now we can all start planning which sessions we have to give ...
Ported back to Twisted (but with TurboGears)
Written by
on
in
Snaking.
For those who are wondering about the Twisted + TurboGears posts. Yes, I did move ChatTrack back to Twisted, and I did go with an embedded WSGI-hosted TurboGears for the "webish" stuff.
As some of you may recall, I started off in December writing my little tool for real-time feedback using Athena... and wound up ...
Getting close on ChatTrack
Written by
on
in
Snaking.
I'm almost to the point where I want to get a few friends playing with the tool. I've still got Search, User "Blogs", RSS Feeds, and Highest-rated views to do, as well as lots of clean-ups. Also need to get the domain-name set up for the poor little server.
I expect that the VM will ...
Making your Twisted resource(s) a url sub-tree of your WSGI resource...
Written by
on
in
Snaking.
For those paddling about in the Twisted + WSGI-hosted app world (here I'm playing with TurboGears), one thing you may wind up wanting to do is to have your WSGI application be the "default" URL-tree, with only certain sub-trees handled by Twisted. To be more concrete, say you want your URLs to look like this: ...
Form Handling, is there a better path?
Written by
on
.
I've now written, worked with and generally explored form handling in web development a great deal more than I've enjoyed. I haven't seen anything that satisfies me.
You can code basic form handling in minutes, but then sharing with anyone else is lost. The intricate messy details of formatting/layout of the GUI widgets, the placement ...
TurboGears 2.1b1
Written by
on
in
Snaking.
Percious just released the first 2.1 beta. I've been using tip for my little project that embeds TG in Twisted, so I'm already there. If you're planning on moving your codebases to 2.1 from 2.0, now is the time to test your apps with it so you can report any bugs before the final release.
SQLAlchemy orm join against subquery
Written by
on
in
Snaking.
This is one of those things that I have to look up every time I go to do it after being away from SA for a while.
You have a table A, with a many-to-one table B referencing A. You want to get summary data from B joined with your table A. The query to ...
TurboGears as a Twisted WSGI Application (in 125 seconds)
Written by
on
in
Snaking.
Say you want to have a TurboGears application running inside a Twisted web-server (which lets you mix in all sorts of other protocols). J.P. has written up a 60-second recipe for getting a WSGI application running inside Twisted. This post takes you the rest of the way to getting TurboGears 2.1 running inside that ...
Daily archives
- Jan. 3, 2010
- Jan. 4, 2010
- Jan. 5, 2010
- Jan. 11, 2010
- Jan. 13, 2010
- Jan. 18, 2010
- Jan. 20, 2010
- Jan. 22, 2010
- Jan. 24, 2010
- Jan. 25, 2010
- Jan. 26, 2010
- Jan. 27, 2010
- Jan. 28, 2010
- Jan. 30, 2010
- Jan. 31, 2010