Category Archives: code

don’t do this

http://72.14.253.104/search?q=cache:Q399HOw5t8MJ:www.attentiontrust.org/services+attention+firefox&hl=en&ct=clnk&cd=11&gl=us ouch: Fatal error: Unknown column ‘u.status’ in ‘where clause’ query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = ‘d875bff2aebf8ef0709e517ce1f1d1c1’ AND u.status Advertisements

idea:schema2class using breve and metaclass

I’m sorry this renders so poorly. WordPress won’t let me use CSS, so I’m stuck, until I get a proper site of my own. Try either http://deadbeefbabe.org/paste/4031 or http://pastebin.ca/399774 to see it better. “”” An experiment using breve xml library, and metaclass. Author: Ben West Email: bewest at gmail blog: https://bewest.wordpress.com/ I hang out on […]

s-expression templating in python

I’m constantly on the hunt for the perfect templating module. When I was much younger, primarily doing PHP, I quickly saw that string concatenation and variable interpolation were not good solutions when trying to author lots of complex documents. I did some searching, and found Smarty, which satisfied my needs at that time. Over the […]

tools: atom and atompub

I just had a realization that I’ve been trying to invent ATOM and the Atom Publishing Protocol. I’ve been pining for web services, and a standardized way for representing resources and URI publishing patterns. I wanted it to work with storage engines of my choosing (eg, mercurial) so that I could use my favorite tools […]

toolbox: Give Yourself a URI with Hcard

Summary Use to describe yourself on a web page People are more important than computers. The “person” datatype, and implications for Search Presenting Hcard Hello World Hcard Demystified Using an hcard on your web page helps search engines learn more about you, can help people find your site, improves the computing ecosystem, and makes it […]

toolbox: webdev unicorns: intro (0/4)

After years of using php for web development, my needs have changed, and I’ve decided to use python. I’ve been struggling to refill my toolbox with tools that suit my needs, and this post is the intro to a series of posts to capture my current findings in this search. There are five parts: intro […]

toolbox: webdev unicorns: templates (1/4)

Templating is an important way for multi-disciplined teams to work together on software projects. In addition, they serve as an important component for making applications loosely coupled and more easily understood. Templating Kid, the templating language isn’t working out for me very well. There are some basic things that I don’t understand how to do, […]

toolbox: webdev unicorns: servers (2/4)

Servers This is kind of a big topic because several components are so interconnected. Exposing Code to the Web I like cherrypy’s approach of navigating an object hierarchy slightly better than django’s approach of evaluating a list of regular expressions. The problem, of course, is how to deal with URIs that are illegal python symbols, […]

toolbox: webdev unicorns: components (3/4)

The web is a big place, and being a part of it increases the value of both the network your application interacts with and your application. This creates a need to interoperate with other applications on the web, the fulfillment of which actually helps create a better end-user experience. What this boils down to are […]

toolbox: webdev unicorns: conclusions (4/4)

Amid all the talk of web stacks, I’d like to take a step back to the Unix philosophy: do one small thing, do it well, make it pipeable and interoperable. I have a real need for separate, easily-understood coponents that are interoperable. They also need to perform well. Modern applications are getting so large, that […]