E-Scribe : a programmer’s blog

About Me

PBX I'm Paul Bissex. I build web applications using open source software, especially Django. Started my career doing graphic design for newspapers and magazines in the '90s. Then wrote tech commentary and reviews for Wired, Salon, Chicago Tribune, and others you never heard of. Then I built operations software at a photography school. Then I helped big media serve 40 million pages a day. Then I worked on a translation services API doing millions of dollars of business. Now I'm building the core platform of a global startup accelerator. Feel free to email me.

Book

I co-wrote "Python Web Development with Django". It was the first book to cover the long-awaited Django 1.0. Published by Addison-Wesley and still in print!

Colophon

Built using Django, served with gunicorn and nginx. The database is SQLite. Hosted on a FreeBSD VPS at Johncompanies.com. Comment-spam protection by Akismet.

Elsewhere

Pile o'Tags

Stuff I Use

Bitbucket, Debian Linux, Django, Emacs, FreeBSD, Git, jQuery, LaunchBar, macOS, Markdown, Mercurial, Python, S3, SQLite, Sublime Text, xmonad

Spam Report

At least 236562 pieces of comment spam killed since 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
Comments are closed for this post. But I welcome questions/comments via email or Twitter.