Posted on Dec. 9, 2006 at 3:25 A.M.

If you have noticed, there are now icons next to each comments link. These are provided, free of cost, by famfamfam.com. If some 16x16 icons are needed, and you are not graphically or creatively inclined, this is your one-stop-shop.

In other news, a Speed graph has been added to the running page as well as a distance graph. In doing that, I ran into a problem which was hard to debug, since it only happens on the live site. In Django, trying to serialize a Numeric data type with simplejson will not work, so make sure to cast it to a python-native data type first.

Problem code:

i = 0
for run in runs:
    distance = run.distance()
    speed_data.append((i,distance/run.time))
    distance_data.append((i,distance))
    i = i + 1

Solution:

i = 0
for run in runs:
    distance = run.distance()
    speed_data.append((i,distance/float(run.time)))
    distance_data.append((i,distance))
    i = i + 1

I also noticed a problem with my Pygments function, due to the regular expression, where it only allowed me to post one code snippet. As you can see in this post, that has been fixed (although it was another particularly nasty bug to track down, and required a complete refactoring of my code in the end).

Search

 

Recent Links

  • Callcast - Discussion with Jeff Croft
  • Great discussion with Jeff Croft and Kevin Fricovsky, talking about Django, design, web standards, and various other things. Kevin has really been on fire lately in his blog, and Jeff has some good stuff to say. Both their sites are bookmarks, for sure.

  • git-issues: A distributed issue tracker built-in to Git.
  • I predicted this back in March--can't believe a solution has surfaced so soon. It makes so much sense to build in an issue tracker to a revision control system. Since you're working with the code, might as well track the issues in the same system and take advantage of the extra metadata. This is really cool (and as a bonus, it's written in Python) so I hope to see it really grow and flourish!

  • How I Work Daily
  • Daily blog by Kevin Fricovsky. In addition to having some really great content, he has started to post audio interviews with people from the Django community. This is a site to keep an eye on in the coming days and months.

  • django-arcade
  • Demo site for django-arcade, an open source reusable Django app to add new flash games to any django-powered site. Looks very cool for easily creating game portals. It also comes from my future employer.

  • Facebook Chat and Scalability (with Erlang)
  • Eugene Letuchy talks about how they they took Facebook Chat from no users to 70 million users, with the help of Erlang.

  • Simon Willison: The Implications of OpenID
  • I somehow missed this presentation when it came out, but it's an absolutely fantastic overview and defense of OpenID by Simon Willison. If you are in any way interested in what OpenID is and what it can offer, you owe it to yourself to check out this presentation.

  • See the rest of my links...

Pownce

Badges

  • django badge
  • apache badge
  • GeoURL
  • XFN Friendly
  • Valid HTML 4.01 Transitional