codysoyland.com
Introduction to Surlex | codysoyland.com
http://codysoyland.com/2009/sep/6/introduction-surlex
Surlex (Simple URL Expression) is a language for matching and extracting text, similar to regex (regular expression). It works by generating a regular expression from a more concise syntax that is designed to produce easy-to-read url patterns. Surlex is indexed in PyPI, so it can be installed via pip or easy install:. Alternatively, the source code repository is available via git:. Git clone git:/ github.com/codysoyland/surlex.git. A capture is performed by enclosing a variable name inside angle brackets:.
codysoyland.com
Django Template Tag Namespaces Now Possible | codysoyland.com
http://codysoyland.com/2010/aug/9/django-template-tag-namespaces-now-possible
Django Template Tag Namespaces Now Possible. I've been interested in the Django template language for some time now, and I've admired much of its simplicity and extendibility. I even wrote a shell for it. And a two-phase template renderer. And some various discussions on the mailing list ( 1. And not requiring a fork of Django. This code is available on Github as django-smart-load-tag. Load lib1 %} {% tag1 %} {% tag2 %}. Load lib1 %} {% lib1.tag1 %} {% lib1.tag2 %}. To load a specific tag (optionally ren...
codysoyland.com
Django Template Debugging Made Easier with django-template-repl | codysoyland.com
http://codysoyland.com/2009/dec/13/django-template-debugging-made-easier
Django Template Debugging Made Easier with django-template-repl. Provides this type of tool for the Django. There are two ways to invoke the REPL. One uses a management command and the other uses a template tag. Run "python manage.py templateshell" to open the REPL:. Python manage.py templateshell. This behaves almost exactly like a python shell. It uses the readline library, so it handles command history. It also detects when you are inside a block tag, giving you decent multi-line support. If you need ...
codysoyland.com
codysoyland.com
http://codysoyland.com/2010/aug
Posts for August 2010. Django Template Tag Namespaces Now Possible. I've been interested in the Django template language for some time now, and I've admired much of its simplicity and extendibility. I even wrote a shell for it. And a two-phase template renderer. And some various discussions on the mailing list ( 1. And not requiring a fork of Django. This code is available on Github as django-smart-load-tag. This is the blog of Cody Soyland, a software developer living in Lawrence, KS. Evented Django par...
codysoyland.com
codysoyland.com
http://codysoyland.com/2011/feb
Posts for February 2011. Evented Django part one: Socket.IO and gevent. This is the blog of Cody Soyland, a software developer living in Lawrence, KS. Concurrent Python (AWPUG talk resources). Django on gevent Djangocon slides. Evented Django part one: Socket.IO and gevent. Django Template Tag Namespaces Now Possible. SSH tip: Automatic Reverse Tunnels for Workflow Simplification. Thread-Safe Object-Oriented Views in Django. Evaluating Django Caching Options. Evaluating Django Caching Options.
codysoyland.com
Evaluating Django Caching Options | codysoyland.com
http://codysoyland.com/2010/jan/17/evaluating-django-caching-options
Evaluating Django Caching Options. Django's template caching templatetag. Django's two-part caching middleware. On-disk caching with Django-staticgenerator. Varnish as front-end load-balancing cache. For the purpose of establishing a baseline, I ran ApacheBench on my setup with no caching turned on. I'm running 10 concurrent requests for a 1000 requests using the following ApacheBench command:. Ab -n 1000 -c 10 server-name. Here's a snipped version of the results:. Django's template caching templatetag.
fatphil.org
Working with GIT while your project uses Hg : hg-git
http://www.fatphil.org/linux/hg-git.html
Working with GIT while your project uses Hg : git-mercurial bridge. Just use Felipe Contreras' mercurial bridge. Ignore Everything Below Here. I worked the crap below out after scouring a whole load of tutorials I found on the web. After having some issues getting them to work, the. Helpful #mercurial IRC channel. Informed me everything I'd wasted my time trying to learn was horrifically out of date. The internet can be a good source of information, but a worse source of misinformation. Git] intree = 1.
jeanphix.me
ghost.py
http://jeanphix.me/Ghost.py
Ghostpy is a webkit web client written in python. From ghost import Ghost ghost = Ghost() page, extra resources = ghost.open("http:/ jeanphi.fr") assert page.http status= 200 and 'jeanphix' in ghost.content. First you need to install either PyQt. That are availables for many platforms. Then you may install ghost.py using pip:. Pip install Ghost.py. First of all, you need a instance of Ghost web client:. From ghost import Ghost ghost = Ghost(). Open a web page. The HTTP response status code. You can set a...
codysoyland.com
SSH tip: Automatic Reverse Tunnels for Workflow Simplification | codysoyland.com
http://codysoyland.com/2010/jun/6/ssh-tip-automatic-reverse-tunnels-workflow-simplif
SSH tip: Automatic Reverse Tunnels for Workflow Simplification. I came up with a trick today to simplify the workflow of certain tasks with SSH. The problem this solves is largely driven by a particular annoyance I had with remote SSH file management. Consider the following workflow for locating a remote file and copying it back to the local machine:. Find the remote file: local: $ ssh remote remote: $ find . -name file.tar.gz /home/cody/somewhere/deep/file.tar.gz # Ah, there it is! Now, the local machin...
benspaulding.us
notable | aprendía
http://www.benspaulding.us/notable
Nielson’s arguments regarding usability are valid. His case of users employing overly simple passwords or storing them in a text file I also believe to be accurate. However, one of the introductory paragraph’s falls down pretty hard. Of course, a truly skilled criminal can simply look at the keyboard and note which keys are being pressed. So, password masking doesn’t even protect fully against snoopers. There are few cases regarding. However, the bigger issue is in the sentence preceding that:. Anonymous...