More Linux Australia website stuff

well, we’ve gotten everything into arch, and Pia and I have both committed to the central archive on digital fine. We’re getting places! this is *good*!

I think we’re nearly ready to go live. Just have to set up the news feeds for our “latest news” stuff. so, some mysql foo on digital, and it should all “just work”.

At some point soon, I plan to have a branch of memberdb in the archive so that the LA specific changes can be made there. Namely the site-look and site-messages folders.

These really should be seperate categories and use configs. I plan to do that soon… but possibly keep the website itself away from that (don’t want to scare Pia too much :)

Although arch does these things a *lot* better than other revision control systems. Although the user experience of the one we use at sgi is great – it’s all transparent to the user (unless you want to know).

Election methods

chatting to aj over last weekend, he proposed an interesting method of doing elections. Preferential, but where candidates set preferences, not people voting. This keeps UI simple, and possibly could help solve any situation where votes are tied (this could be really bad for online stuff).

(i think i got that right).

food for thought.

iPod Versus the Cassette

rather funny – and true….
iPod Versus the Cassette

but i still love my ipod – even if apple are being assholes with their attitude towards people who want to interface with parts of it (think FairPlay, Real).

even though i’ve never liked realplayer – they should be able to compete.

MemberDB Voting code (planning… in some sense of the word)

well… at some point there has to be some voting code done for MemberDB. Namely because Linux Australia has to have elections sometime early next year, and the code really should work before then!

Currently, we can easily work out who is a current member of the organisation. Only current members, with the appropriate type of membership should be able to vote. Initially, we will assume that if member_types.validates_membership=true and member_types.revokes_membership=false, they are able to vote (i.e. if they show up in the current_memberships view).

This means they can log in. This is a good thing (note, a member may have to reset their password first – this is supported in latest MemberDB snapshots).

Once logged in, the member should be able to see a list of elections they can currently participate in. Elections (election table?) should be tied to organisation and a time period. They should also have a name and description. Only the election_id should be unique.

e.g., something like:

create table election (
        id serial unique not null,
        org_id int not null,  -- election for this org (NULL=all orgs)
        name varchar(50) not null,
        start_advertising date, -- date that we'll display in a UI that "an election is coming"
        nominations_start date,
        nominations_close date,
        advertise_candidates date, -- list the candidates from date onwards
        live_results boolean, -- results in real-time
        start_voting date, -- when voting opens
        close_voting date, -- when it closes
        show_results date, -- show results from election from this date onwards (NULL=never). This field can be updated (i.e. after the results have been verified/approved)
        description text,
        CONSTRAINT "election_pkey" PRIMARY KEY (id),
        CONSTRAINT "election_org_id_fkey" FOREIGN KEY (org_id) references orgs(id) on update restrict
);

In the future, we may want to support more than one election type – this should be safe to introduce in the future as we can add a column to election and election_vote. Currently, we’re only going to care about “first past the post” style elections. i.e. the classic “a show of hands”.

Only authorised people should be able to change any details of the election – this should be a new activity, and members granted explicit permissions to do this. We will probably need to add a “data” field to the permissions table – allowing us to have more specialised permissions (i.e. only membey X can modify election Y, and only member A can modify election B).

We need positions to elect people into.
e.g.

create table election_position (
 id serial unique not null,
 election_id int not null,
 name varchar(50) not null,
 description text,
-- FIXME: insert constraints here
);

Each election needs candidates. Candidates need to be approved (by whoever can modify the election. Since the process for approving candidates can vary, this will require human thinking logic to work out that everything is okay before they click the “approve” button).

something like:

create table election_candidate (
     id serial unique not null,
     election_position_id int not null,
     approved boolean,
     member_id int not null,
     spiel text,
        CONSTRAINT "election_candidate_pkey" PRIMARY KEY (id),
        CONSTRAINT "election_candidate_election_position_id_fkey" FOREIGN KEY (org_id) references election_position(id) on update restrict,
      CONSTRAINT "election_candidate_member_id" FOREIGN KEY (member-id) references current_memberships(id)
 -- FIXME: need constraint that member is a member of the correct org.
 );

We’re currently making the assumption that only members can go for positions. This seems fair and reasonable – am open to arguments against it though.

So, an election has positions and each position has candidates. Candidates have spiels, and have to be approved before they’re listed.

Each member gets one vote per election position. They can change this anytime up until the closing date (this should take care of the “oh shit, someone dropped out of the election” thing too).

create table election_vote (
    election_position_id int not null,
    member_id int not null,
    election_candidate_id int not null
-- FIXME: constraints here
);

now… all that needs to be done is a UI… and some sanity checking of the above. :)

Fedora Core 3 Test 1

Installed it on my crash-and-burn box.

Dual PII 350mhz, 128MB RAM (and a number of disks… this is on a 120GB WD drive, but on a slow IDE controller)

and, of course, the ultimate in graphics power, an S3 Trio3D.

So, install took about an hour. Not very snappy, but it got there. Not enough time using CPU while doing disk writes. multithreaded RPM installation would rock :)

Reported a bunch of bugs, some feature enhancements and found the desktop backgrounds :)

SELinux is now on by default… and so far I’ve only hit one bug with it (namely that you couldn’t launch the software update). bytebot said I should update to get the update to fix the updater, so i ran ‘yum update’ in the terminal. Hrrm…. not so quick with only 128MB ram. oh well…

GNOME programming with only a GUI

http://www.flamingspork.com/junk/gnome-drivers.tar.bz2

Is my attempt at a little gnome app only using GUI utilities. It’s a graphical lsmod, showing what modules are currently loaded on your system.

I’m now kicking around trying to integrate modinfo with it so you can get a nice slab of information about what modules you’ve got loaded. Then I can go and integrate modprobe :)

the code is kind of ugly… really shows that this was a hack so that i could learn how GTK and all work a bit better… but, it’s libglade based, so that’s cool.

I’ve now learnt how programmed I am to the emacs key bindings while coding… it’s really annoying when they don’t all work. Maybe we need an emacs text editor widget.. :)

FTA disastrous for Australian computer industry and users

Dr Andrew Tridgell (or tridge as he is more commonly known as) has got a great paper up on his site about the AU-US FTA. It’s short, sweet and to the point.
FTA disastrous for Australian computer industry and users

In "About the Author" he does fail to simply say “tridge: genius”, but he does tend to be a bit modest :)

new hardware

A firewire card for my desktop (because my Asus P4P800 Deluxe motherboard’s connectors DO NOT WORK, but this shintaro one does), a TV tuner card (now i need an ariel), and a new wireless card for my laptop (802.11g, not that i have a g access point, but this one actually supports 128bit wep.).

Plus, it has open source linux drivers (that work on ppc).

Also some CDs and DVDs.