Bluetooth remote control
Published on June 21, 2007Read MoreRemuco is a system to remotely control Linux music players with JavaME capable mobile devices via Bluetooth.
CSS for displaying code snippets in <pre> tags
Published on May 28, 2007I just had a look at this site using IE and was a bit shocked at how it looked. It was a disgrace! I use FF almost exclusivly except for sites in work which only work in IE and I use kubuntu on my laptop at home so I have never really tested the site in IE. The problem was code inside <code> tags which screwed up the widths of the divs in the page. (Everything inside <code> tags is also inside <pre> tags) I could of course go back and edit all the posts to shorten the lines but I found this which sorts out all the problems.
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
Read More
Comments
Published on May 19, 2007Django really is a wonderful piece of software. After watching a video of Jacob Kaplan-Moss' presentation at google where he mentioned that users can comment on almost all content on LJWorld.com I thought "hey that's a pretty cool idea, I want to do that too". So I did, but the really cool thing is just how easy it was to do.
First add 'django.contrib.comments', to your INSTALLED_APPS in settings.py
If your using a custom view instead of django's generic views then you'll need to add
from django.contrib.comments.models import FreeComment
to your views.py
At the top of the template where you want to display the comments add this in
{% load comments.comments %}
Read More
Django Wiki
Published on May 19, 2007Update: I have expanded on this some more here
Update: Fixed a number of issues, should now be working
Update: I have noticed a lot of people coming here after searching google for "django wiki". If you decide to use this code as a basis of your own template tag please let me know just so I know if it actually works reliably.
I've started designing a wiki for django as I can't seem to find one that exists already. It shouldn't be all that hard to do. I've started by just creating some simple search and replace statements using python's regex module re
Read MoreDjango on digiweb.ie
Published on May 18, 2007I finally got this site up and running on digiweb.ie's free student hosting package. The site is powered fully by django
The Web framework for perfectionists with deadlines
As digiweb do not support mod_python or fastcgi on this package I ended up having to use django.cgi to process requests. This method is described as being very slow as for each request an instance of python plus all of django's code needs to started and loaded into memory but I really haven't noticed a delay. Kudos to digiweb.ie for their very generous hosting package!
Read MoreFirefox IE Tab extension
Published on May 17, 2007I just found this extension to FF which allows you to embed MS Internet Explorer in it. Great for those websites which only really work in IE (like most I need to use in work). It would be nice if you still had FF's context menu and if a middle click on a link would open it in a new (IE)tab but it definitely is better than having to open up IE on it's own.
Read More

