E-Scribe News : a programmer’s blog

About Me

PBX My name is Paul Bissex, and e-scribe.com is my consulting business. I build web applications using as much open source software as possible. From September to June I teach web design and other important non-photographic professional skills to photographers. In the '90s I wrote technology commentary and reviews for magazines, newspapers, and web publications, including Wired, Salon.com, FamilyPC, the late lamented Web Review, and the Chicago Tribune. Feel free to email me.

Book

Python Web Development with Django I'm co-author of "Python Web Development with Django", an excellent guide to my favorite web framework. Its strong points include an introduction to Python, and better coverage of Django 1.0 than nearly anybody else. Published by Addison-Wesley, it is available from Amazon and your favorite technical bookstore as well.

Colophon

This runs on Django, served by Apache and mod_python. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive. The markup engine is Markdown.

Pile o'Tags

Stuff I Use

Akismet, del.icio.us, Django, dpaste.com, Emacs, FreeBSD, Freenode, jQuery, LaunchBar, MacPorts, Markdown, Mercurial, OS X, Postfix, Python, SQLite, Subversion, TextMate, Trac, Ubuntu Linux, wmii

Spam Report

At least 59054 pieces of comment spam killed since January 2008, mostly via Akismet.

Pastebin update: Pygments

This past spring I posted about a simple pastebin app I wrote using Django. This week I updated it to use the excellent Pygments syntax-coloring library (formerly known as Pykleur).

Pygments has support for a healthy number of languages/syntaxes, offers a great deal of flexibility, ships with several different color schemes, and can produce output in HTML/CSS, LaTEX, or ANSI terminal colors. I created a "pcat" alias to take advantage of that last one when working in the shell.

It would have been trivial for the Pygments team to put together their own pastebin (in fact, that's effectively what their demo is), but they were very helpful with a couple questions I had while rolling this out.

Update: As of a few days ago, the Pygments/Pocoo folks do now have their own pastebin, which shows off the full complement of language/syntax options (I only use a small subset because of my focus on Python

I added an "about" page to the site that explains some of the details. (I even included Ruby support!) That URL again:

http://paste.e-scribe.com/

Friday, October 20th, 2006
+ + +
1 comment

Comment from Benoit , later that day

Hi I create my own pastebin app using your old code with generic view. I create view, added rss é put pygments. You can view it here : http://archlinuxfr.org/paste/

Code is available here : http://projet.archlinuxfr.org/svn/trunk/archlinux/

Hope it could hel you :) And thanks to published your code :)

  • Benoît

Post a comment

Comments use Markdown syntax. Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.


(Will not be shared)

(Optional)