Meta tags:
Headings (most frequently used words):
2009, django, 01, 24, 09, python, leopard, the, of, in, with, speno, pythonic, avocado, 2010, 28, 12, 15, 07, 26, 03, 19, 17, latest, tweets, blog, archive, excellent, new, semi, podcast, mac, os, services, changes, between, tiger, and, snow, calculating, keytag, dnskey, using, syncdb, outside, running, wsgiref, that, also, serves, admin, media, rhymes, pony, snakes, bassinet, baby, first, open, source, project,
Text of the page (most frequently used words):
the (25), #django (17), python (16), and (14), that (13), #dnskey (12), key (11), speno (9), you (9), service (9), file (8), input (8), 2009 (7), posted (7), john (7), this (7), your (7), for (7), opts (7), comments (6), import (6), array (6), string (6), leopard (6), services (5), app (5), from (5), may (4), project (4), one (4), labels (4), with (4), using (4), keytag (4), selected (4), mac (4), files (4), folders (4), july (3), september (3), december (3), new (3), podcast (3), open (3), source (3), like (3), helpspot (3), uses (3), want (3), but (3), work (3), core (3), wsgiref (3), running (3), settings (3), its (3), models (3), fooapp (3), then (3), syncdb (3), return (3), ord (3), value (3), path (3), snow (3), october (2), march (2), april (2), june (2), january (2), excellent (2), semi (2), 2010 (2), posts (2), pushed (2), out (2), first (2), application (2), use (2), can (2), have (2), another (2), works (2), web (2), usps (2), got (2), make (2), need (2), owney (2), httpd (2), make_server (2), adminmediahandler (2), wsgihandler (2), also (2), serves (2), admin (2), media (2), orm (2), create (2), know (2), my_app (2), cmd (2), struct (2), any (2), details (2), see (2), algorithm (2), else (2), header (2), 0xffff (2), finder (2), fed (2), dev (2), nssendfiletypes (2), public (2), item (2), text (2), users (2), steve (2), tablet (2), rtf (2), tiger (2), pythonic (2), avocado (2), skip (2), august, 2005, 2006, november, 2007, 2008, blog, archive, follow, twitter, latest, tweets, subscribe, atom, home, older, comment, week, interface, help, desk, happily, recommend, find, github, thing, too, going, doggy, touch, api, snakes, bassinet, baby, yesterday, which, does, shipment, tracking, bit, well, rough, edges, please, watch, fingers, intend, polish, time, permits, usable, some, advice, how, enjoy, original, was, dog, very, interesting, life, rhymes, pony, serve_forever, 8000, servers, basehttp, handlers, wsgi, simple_server, wanted, run, built, module, consider, stepping, stone, cherrypy, working, isn, yet, applicaiton, there, has, own, configuration, system, build, configobj, optparase, before, tables, needs, lives, package, named, put, try, code, let, thanks, conf, management, commands, args, build_configuration, configure, database_engine, db_engine, database_name, db_name, database_user, db_user, database_password, db_pass, database_host, db_host, database_port, db_port, installed_apps, command, handle_noargs, outside, dnssec, dnsec, sometimes, record, here, implementation, def, given, dns, rdtypes, compute, rfc, 2535, section, pack, hbb, flags, protocol, enumerate, dnspython, calculating, macosx, when, folder, invoked, either, through, menu, keyboard, shortcut, depends, what, version, program, something, detect, more, center, happy, holidays, properties, starswith, startswith, think, nssendtypes, nsstringpboardtype, next, edit, library, foo, workflow, contents, info, plist, change, accepted, would, automatically, however, changed, still, possible, accept, both, plus, automator, are, forced, choose, other, pick, save, example, assuming, picked, configured, properly, will, url, absolute, changes, between, favorite, show, programmer, his, avocados, sidebar, main,
Text of the page (random words):
speno s pythonic avocado skip to main skip to sidebar speno s pythonic avocado one python programmer and his avocados 2010 01 28 excellent new semi python podcast the dev show is my new favorite python podcast posted by john speno at 8 18 am no comments 2009 12 24 mac os x services changes between tiger leopard and snow leopard when a file or folder is selected in the finder and a mac os x service is invoked either through the services menu or its keyboard shortcut the input fed to the service depends on what version of mac os x is running in tiger 10 4 no input is fed to the service in leopard 10 5 the absolute path to the file is the input e g users steve tablet rtf in snow leopard 10 6 if the service is configured properly to work on files and folders then the input will be file url like file users steve tablet rtf in leopard any service that accepted selected text would automatically work with selected files or folders in the finder however snow leopard changed that it is still possible for a service to accept both selected text and files plus folders but if you create a service using automator you are forced to choose one or the other so pick one and save your service for this example i m assuming you picked files and folders next edit the library services foo workflow contents info plist and change this key nssendfiletypes key array string public item string array to this key nssendfiletypes key array string public item string array key nssendtypes key array string nsstringpboardtype string array then in the python program that is your service you may want something like this to detect that your input is a file path if input starswith file or input startswith i think i got a file path as input for more details see services properties in the mac dev center happy holidays posted by john speno at 2 43 pm 5 comments labels macosx python 2009 09 24 calculating the keytag of a dnskey in python in dnsec sometimes you want to know the keytag of a dnskey record here s a python implementation that uses dnspython import struct def keytag dnskey given a dns rdtypes any dnskey dnskey compute and return its keytag for details see rfc 2535 section 4 1 6 if dnskey algorithm 1 a ord dnskey key 3 b ord dnskey key 2 return a b else header struct pack hbb dnskey flags dnskey protocol dnskey algorithm key header dnskey key ac 0 for i value in enumerate ord x for x in key if i 2 ac value else ac value ac ac 16 0xffff return ac 0xffff posted by john speno at 11 02 pm 3 comments labels dnssec python 2009 09 15 using django s syncdb outside of django i m working on another project that uses django s orm that isn t yet a web applicaiton there s no settings py file as the application has its own configuration system build on configobj and optparase but before you can use the app you need to create the tables that django s orm needs for your models if you app lives in a python package named fooapp then put your django models in fooapp models and try this code from django conf import settings from django core management commands import syncdb opts args build_configuration my_app fooapp settings configure database_engine opts db_engine database_name opts db_name database_user opts db_user database_password opts db_pass database_host opts db_host database_port opts db_port installed_apps my_app cmd syncdb command cmd handle_noargs and do let me know if that works thanks posted by john speno at 1 58 pm 2 comments labels django python 2009 07 26 running django with wsgiref that also serves admin media i wanted to run a django app using python s built in wsgiref module it also serves django admin media consider this a stepping stone to running your django app using cherrypy from wsgiref simple_server import make_server from django core handlers wsgi import wsgihandler from django core servers basehttp import adminmediahandler httpd make_server 8000 adminmediahandler wsgihandler httpd serve_forever posted by john speno at 11 05 am no comments 2009 03 19 rhymes with pony yesterday i pushed out owney which does usps shipment tracking in python it uses a bit of django as well it s got rough edges so please watch your fingers i intend to polish it as time permits i do want to make it a re usable django app but i need some advice on how to make that work the original owney was a dog with a very interesting life enjoy posted by john speno at 6 07 pm no comments labels python usps 2009 01 17 snakes in the bassinet baby s first open source project i pushed out my first open source project this week it s a python interface to helpspot s web services api helpspot is a help desk application that i use like and happily recommend you can find my project python helpspot on github i have another open source thing in the works too that one is going to be a doggy and it ll have a touch of the django posted by john speno at 11 49 am 1 comment older posts home subscribe to posts atom latest tweets follow me on twitter blog archive 2010 1 january 1 excellent new semi python podcast 2009 7 december 1 september 2 july 1 march 1 january 2 2008 13 december 2 october 1 june 3 may 2 april 5 2007 11 december 1 november 1 september 2 july 1 june 1 may 1 april 1 march 3 2006 1 may 1 2005 15 october 3 september 3 august 1 july 8
|