Category archives: Snaking
Discussions of programming, particularly of programming Python
Ah, the wonders of recursive searching (Search-within-a-search just drops in my lap...)
Written by
on
in
Snaking.
As mentioned last night, today's first order of business was to get seach working. At the moment this is limited to searching for modems. One of the key requirements, however (again, none of this actually laid out in the original spec, we just decided on Friday) is that search be such that you can optionally ...
That's it for tonight (Didn't get the search functions working yet...)
Written by
on
in
Snaking.
There are 3 user stories I'd like to get done for the demo; modem search, data graphs and at least one of the synthetic hierarchy types (devices). I'm about 1/2 done the search story now. The database-access bug on cmon is still keeping it from completing the requirements (i.e. running the full demo), but the ...
Hmm, and then the simple things decide to bite you... (Installing matplotlib on Gentoo turns out to be a chore)
Written by
on
in
Snaking.
Matplotlib (which I was intending to use for plotting the data-value graphs) turns out to be a bit of a pain to install. Looks like it's looking for the "CXX" library as part of the Freetype-wrapper build process, which, it turns out, is actually hard-masked (i.e. -* flag) on Gentoo AMD64.
No idea why this ...!-->!-->
Don't solve all problems that could possibly be... tonight... (Or puzzles that open doorways to hell...)
Written by
on
in
Snaking.
I'm not in hell at this point in the day, which I attribute to reigning in my natural impulse to solve all problems.
You see, at heart I'm a philosopher/theorist. I am happiest when I am searching for the grand patterns in life, the ones that explain everything. That's a great trait when you're ...!-->!-->
Good day for productivity (But didn't touch the big, evil bug...)
Written by
on
in
Snaking.
After visiting grams (score: 2 all), I spent a solid 7 hours on Cinemon. Finished approximately 10 todo items. Since Bryan isn't too tense about finishing for Tuesday, I think I'll consider the day finished and try to relax a little (particularly, I need to give my hands some time to rest).
Biggest user stories ...!-->!-->
Not the most productive day in the world (Plus: Twisted, redirect with Nevow Guard to deep-linked page...)
Written by
on
in
Snaking.
Fixed 3 bugs today, 1 trivial, 1 cosmetic, but important, and 1 a "feature" that was annoying enough to get classified as a bug on Friday. Unfortunately, made 0 headway against the show-stopping bug (the database-failure-on-write one), and only implemented a single trivial todo item (ignoring failures in a particular import).
Need to write up ...!-->!-->
Adapting Nevow's IRequest for Zope Page Templates (TAL) (For those migrating this way...)
Written by
on
in
Snaking.
Today's little micro-recipe is how to adapt Nevow's IRequest interface to one which is compatible enough with Zope's TAL request objects that you can port templates from Zope into Twisted fairly quickly. Note, this doesn't include the TemplateAdapter class, nor the Cinemon Template class, which make a Template act like a Nevow resource and add ...
but 19 hours of sleep makes you a new man (Well, gets you to the point where you aren't sleepy... almost.)
Written by
on
in
Snaking.
Demo went fairly well, despite 2 major bugs that made it impossible to do a true dress-rehearsal (i.e. stepping through each and every element of a demonstration as if we had an audience). I basically answered emails and then went to sleep when I got home yesterday. Have been sleeping on and off since then. ...
4 Hours of sleep does wonders (Well, better than none...)
Written by
on
in
Snaking.
Decided I just wasn't working well enough to keep going last night, so took 4 hours to at least get my eyes to the point where they can focus again (better take the bus up). Still have a couple of things I'd like to get working before the demo, namely the "here are the modems ...
May be hitting point of diminishing returns (2.5 weeks "always on" seems to be reducing my efficiency somewhat...)
Written by
on
in
Snaking.
10 or 11 hours to go, and I spend 40 minutes trying to figure out why the emails just will not send. This code has been stable for... well... at least a year now. Finally realise, I'm on Linux, not Windows, and my workstation has no mail transport agent set up (i.e. sendmail just isn't ...