Archive for June, 2006

Design database systems with Glom

Wednesday, June 14th, 2006

Glom supposedly lets you “design database systems” including both “the database and the user interface.”

Interesting… I wonder how this compares to Base.

PyX

Wednesday, June 14th, 2006

From the PyX site:

PyX is a Python package for the creation of PostScript and PDF files. It combines an abstraction of the PostScript drawing model with a TeX/LaTeX interface. Complex tasks like 2d and 3d plots in publication-ready quality are built out of these primitives.

Sounds complicated.

Pygame.draw challenge

Wednesday, June 14th, 2006

New PyWeek challenge:

Create a game in up to 64kbytes of source code using only pygame (and python stdlib). No additional libraries, no external files (even ones loaded from a network). That means no PyOpenGL, no PNGs, no OGGs, etc.

The deadline for entry is midnight on the 25th of June, 2006 (UTC+10). Get to work!

Simple XML manipulation

Wednesday, June 14th, 2006

Bruce Eckel talks about simplifying XML manipulation:

Alas, I haven’t seen XML-RPC used yet in web-servicey things. I hope that it is used somewhere, but if you read my previous entry you’ll see that the first two services I tried to use — Fedex and the Post Office (and UPS apparently also works this way) — uses something that’s almost XML-RPC, but it’s not, and you’re expected to assemble your XML by hand and then use HTTP to send it to the server, then unbundle the XML that comes back.

As many of you know, I used to be a huge fan of XML… until I actually tried working with it. Now I agree with Nate that if XML is the answer, then you are asking the wrong question.

That said, it’s an interesting article. Check it out.

Dynamic module loading

Monday, June 12th, 2006

Kevin Dangoor metions dynamic module loading:

…Phillip Eby just released Importing which provides dynamic module loading (it also provides “load object Y from module X specified in python dotted notation string” utility functions, which could eliminate a utility we have in tg.util.)

I’ve looked into this subject before (here and here), but all the solutions seemed to be well beyond my Python skills at the time. Maybe it’s time to revist it.

New IPython

Monday, June 12th, 2006

Sounds like people like the new IPython.

Quoth Kompato:

I’m a big fan of IPython, and the latest version, 0.72, is terrific. I like some of the new features they’ve added, including the %timeit magic function and the ability to capture output more easily.

And you can use easy_install to grab it, which is always a Good Thing.

Extending the Django user model

Monday, June 12th, 2006

Some good tips on extending the Django user model at The B-List:

Because of the auth system’s popularity, though, one of the most common questions people ask about Django is “how do I extend the User model?” By default, users have a small but useful set of fields which take care of most common use cases, but there are plenty of times where it’d be extremely handy to be able to add just a few more to suit a particular application’s needs.

Cool.

WSGI in Python 2.5

Monday, June 12th, 2006

Quoth the Electronic Scrapbook:

WSGI Ref, the reference implementation for WSGI has been checked into Python svn repository for inclusion in the stdlib in Python 2.5.
Looks like the BDFL is serious about the Web

If you want to learn more about WSGI, check out PEP 333.

Use the TG force

Saturday, June 10th, 2006

The cover of the TurboGears book (previously mentioned) has a lightsaber on it? Um… ok.

Now where is that Django book?

Python vs. Ruby

Saturday, June 10th, 2006

Heh.