Weblog
Fun with pygame -/default
Here's a little program written so far to move a tank around. Early days.
Nvidia mobile graphics gpu - nvidia g86-770-a2/default
Just a note of what it was.
Setting up latest version of Django in a nutshell (don't ask me why it works)/default
Thought I'd give Django another go - had problems setting up the admin module (well, had to google it a bit) and so I thought I would capute here what happened.
Firstly, create the database
sqlite ifriends.db
Then manage.py sycndb
Then uncomment the lines from urls.py
from django.contrib import admin
admin.autodiscover()
(r'^admin/', include(admin.site.urls)),
Then add
django.contrib.admin
to the INSTALLED_APPS part of settings.py.
Then run ./manage syncdb - go through any steps it might ask you.
Then run the server and browse to localhost:8000/admin and hey presto.
As for adding a model to the admin class, you need to add an admin.py file to the app with the following:
from django.contrib import admin
fromfrom django.contrib import admin
iFriends.People.models import Person
class PersonAdmin(admin.ModelAdmin):
pass
admin.site.register(Person, PersonAdmin)
This imports the admin module and then the Person model. After that, it creates a subclass of ModelAdmin called person admin. You then call the site.register function with the original class and the new Admin class. I think you may need to run syncdb after this to enable it.
A6481 - Strimmer cable/default
Works a treat and available from www.amazon.co.uk
Jaunty flash/default
For some reason, when I updated mythbuntu to jaunty, it decided to install a free version of flash. Whilst I like free, it doesn't work well with my children's love of club penguin.
So, a quick
sudo apt-get remove --purge swfdec-mozilla swfdec-gnome mozilla-plugin-gnash gnash
fixed the issue, and now we're playing and everyone is happy.
Django/default
Django 1 seems slightly different in getting admin working for some models.
Within the application you need to create a admin.py file with the following:
from iFriends.People.models import Persondjango
from django.contrib import admin
admin.site.register(Person)
dvd::rip/default
Ubuntu 8.10 seems to be having problems with transcode using dvd::rip.
So I managed to find different settings which work on the PS3. Lucky me.
However, I know I need to record these details otherwise I'll never manage to stumble on them again.
Xvid4 works with mpeg and 4-high - wiht vhq to 1-mode selection.
MPC-L Viglen new web host/default
I have installed a MPC-L Viglen at home to act as a replacement for the
Slug, which hosts some Django stuff, but isn't beef enough to do
anything major.
Currently, this is running apache nicely and
has a couple of websites installed - this one (kabads.org.uk) and
learningtimes.org.uk - the latter will soon become a times table system
for the children to play with.
Openwrt setup/default
Tweaked my openwrt router. Needed to rm /etc/resolv.conf and edit it by hand to get ipkg working normally.
Feeling creative/default
OK - so I've messed around long enough on this laptop and it's time I got creative. I can feel that I need to write something. I've designed the schema for a database that will be behind a django application that manages teacher reports on pupils. However, that feels like too big a chunk of work to take on at the moment, so I will just park that for a while, and build up some confidence in Django using the book, Website development with Django. Watch this space.
Linkdump
Filmdb/linkdump
My film db (requires login)