The design of this site is being fiddled with. Any strange sights and sounds are to be welcomed, not feared.

Moodle Heritage Block

July 18th, 2008

As part of our integration project at work I’ve created a Moodle block that integrates with the Heritage library management system. It parses an XML feed outputted by Heritage and obtains a list of current loans, along with their due dates and media type.

If this kinda think floats your boat you can download it here.

It’s the middle of July…

July 18th, 2008

…and I have the fire on.

Global warming, my arse.

Git -> Mercurial

July 3rd, 2008

Right, forget Git. I’m in love with Mercurial right now (so much nicer!).

Dell XPS M1330 - object of desire

July 1st, 2008

I’ve been wanting a new laptop for a while now, ever since my last one (a Samsung Q25) spat out smoke and started melting any power adapter connected to it. Up until now I’ve always assumed that I’d end up with a Macbook, but today I came across the Dell XPS M1330.

Dear lordie, this is one sexy laptop. Only 13″ across (helloooo? Metric?) it’s mega-portable, but has got enough power to play modern 3D games, thanks to a dedicated graphics card, dual core processor and oodles of memory. Plus, it comes in pink and is sold with Ubuntu pre-installed!

I need it so badly.

CMS Made Simple

July 1st, 2008

Getting annoyed at the CMSMS developers. Their attitude is turning increasingly unfriendly and the lead developer, who is a throughly nice guy, is never to be seen.

Good job my workplace is thinking of outsourcing our CMSMS-powered website. (Am I annoyed at this outsourcing? Nope, as it leaves me all the more time to play with Moodle & Mahara!)

Mega Moodle Meet

June 25th, 2008

Yays:

  • Lovely venue (Birmingham Thinktank)
  • Very, very nice food (mmm, cream cheese bagels)
  • Lots of people like my idea of a Moodle technical event
  • Presentation from ULCC - use of Mahara and systems integration
  • Free memory sticks (if it’s free, it’s good)
  • All the normal lovely people, plus a few new faces

Nays:

  • To be honest, a lot of what we’ve seen before
  • Lights with a life of their own
  • Sparkling water disguised as normal water
  • Public transport is so fucking bad it makes my teeth grind. I am never getting the train anywhere again.
  • Jim Judges is leaving as RSC-WM compere organiser.

The fuckwit’s guide to Git

June 24th, 2008

I’ve just spent a day learning about GIt - we’re starting on a big project over the summer with additional developers and we’ll need a source control system. It’s been a bit of a steep learning curve as I’ve had to learn about versioning systems from scratch as well and now my brain needs to download.

So here is the fuckwits guide to starting a git-based project.

First of all, install Git. On Ubuntu that’ll be:

sudo apt-get install git-core

I don’t care what it is on other systems, as I don’t use them. Go figure it out yourself.

If you’re in an organisation then you’ll probably want a central repository. Choose the machine the repo will live on, install git-core, create a new user to own your repo (I’ve just called it “git”) and create a directory for you new project to live in (I just create a folder in the git user’s home dir).

sudo adduser git

su git

cd ~/

mkdir projecthome

cd projecthome

You’ll now need to make this folder into a git project:

git init

Fucking chavs are even in SCMs now (”give me yer money, init!?”).

Create a file, just to test things.

touch index.php

You’ll now need to tell git that you’re thinking of commiting this file to the repo.

git add index.php

or to add everything in the dir:

git add .

Once you’ve added any files you’ll need to commit them. This is the big deal and what Git is all about:

git commit -m "This is the first commit of the project"

The message is very important, as it tells other people what you did in this commit.

To see what you just did, type:

git log

Woo, you now have a project. You may now do a small dance.

Now switch to the machine where you will actually do your work on. You’ll need to make a copy of the repo on your repo server (make sure git-core is installed):

git clone git@<yourserveraddress>:/home/git/projecthome/

You’ll see some gumph appear and hopefully if you do an “ls” you’ll see:

index.php

Nice! You’ve got a working copy from a remote repo.

Now, try adding a new file here:

touch another.php

You’ll need to tell Git you want to add this file to your local repo:

git add another.php

And now we’ll commit it to the local repo:

git commit -m "I've just added another file"

And check out the log to see what has been done:

git log

Now, at this point you’ve committed your changes to your local copy (remember the clone?) of the project repo. Nothing wrong with that - you’ve got content versioning going on and can do all kinds of fancy things. However, none of your coworkers can see the changes you’ve made. Not much use really. Therefore you’ll push those changes back to the central repo, with, erm:

git push

Woo! Now everyone else can access the changes you’ve made.

If one of your co-workers makes a change on their copy of the repo and pushes it back to the central repo you’ll need to pull it back down. It’s just as obvious a command again:

git pull

Any changes they’ve made will show up in your directory.

I’m going to brain dump some more here later on. For now I’m off to figure out branching and merging…

Git…

June 23rd, 2008

The SCM that is very definitely written by nerds. Probably the type who put people down with “RTFM” and get frustrated with people who don’t know the OSI seven layer model.

I will get “git push” working…

George Carlin

June 23rd, 2008

The filthy old bastard is dead:-(

Moodle countdown block

May 20th, 2008

Just realised that the Moodle countdown block that I co-authored has been published on moodle.org. If you’re ever in need of a big ol’ countdown then this block is for yoooooooou!


ClickHeat : track clicks