from __future__ import *

simplejson 1.8.1

March 24, 2008 at 07:40 AM | categories: python, simplejson | View Comments

simplejson is a simple, fast, complete, correct and extensible JSON (RFC 4627) encoder/decoder for Python 2.3+. It is pure Python code with no dependencies.

simplejson 1.8.1 is a major update:

  • Optional C extension for accelerating the decoding of JSON strings
  • Command line interface for pretty-printing JSON (via python -msimplejson)
  • Decoding of integers and floats is now extensible (e.g. to use Decimal) via parse_int, parse_float options.
  • Subversion and issue tracker moved to google code: http://code.google.com/p/simplejson/
  • Misc. bug fixes

There is one incompatible change:

  • "/" is no longer escaped, so if you're embedding JSON directly in HTML you'll want to use .replace("/", "\\/") to prevent a close-tag attack. Sorry, but the in-HTML use case just isn't worth the bloat in everyone else's documents.
Read and Post Comments

Cogent = Bad choice

March 15, 2008 at 02:58 PM | categories: General | View Comments

So it seems that I made the wrong decision for our uplink at Mochi Media. We have a gigabit line to Cogent at 365 Main. They've been mostly good so far (and cheap), but their recent spat with Telia has cut us off to parts of Europe (at least Sweden and Denmark). Not cool.

Anyone have any recommendations on other providers we should talk to? I don't want us to be dependent on Cogent for a minute longer than we have to be.

Read and Post Comments

Exploring Erlang @ C4[1] video

March 08, 2008 at 08:56 AM | categories: mochiweb, erlang | View Comments

The video of the Exploring Erlang talk I gave at C4[1] last August is up on the interwebs! It only took seven months :)

Video:
http://rentzsch.com/c4/c41VideosAvailable
Slides and source:
http://bob.pythonmac.org/archives/2007/08/11/exploring-erlang-c41/
Read and Post Comments