Entries in Category: Web Design
Last.fm
Having a few spare minutes, I've added a template tag to my site that shows the last 10 songs I've listened to on last.fm.
@register.inclusion_tag('blog/lastfm_tracks.html')
def latest_tracks():
url = 'http://ws.audioscrobbler.com/1.0/user/DReynolds/recenttracks.txt'
response = urllib2.urlopen(url)
songs = []
for line in response.read().split('\n'):
if not re.match(r"^$", line):
songdetail = re.split(",", line)[1]
artist, song = re.split(" \xe2\x80\x93 ", songdetail)
songs.append({'artist' : artist, 'song' : song})
return {'songs' : songs}
Slight redesign redux
This time along with a completely different design (which isn't completely finished) I have updated the blog app to work with django trunk, along with adding a delicious template tag. The blog app also now uses markdown - a massive improvement since I was manually entering HTML before which proved quite time consuming. Hopefully these additions may make me update this a bit more often.
Slight redesign
I've just taken the opportunity of being quite awake at 11pm (for some reason) to give the site a quick ...
Things to do
Migrate VDS to new VDS - Before 31/10/2007 Fix various things after the migration - after 31/10/2007 Update my blog ...
Fixing OpenID
I finally got around to fixing openid on this site, so now when you post a comment, you can sign ...
Javascript Ajax caching issues in Internet Explorer 6
I'm sure this is an old, long talked about issue but I'm mainly recording it here for my own memory. ...
