Mike Harris's blog

RIP Pete Ferne

My friend, and colleague at Bristol Wireless, Peter Clive Ferne died on the 7th October 2010 from a brain tumor.  He will be sorely missed by friends, family and the many people he knew on the Bristol technology scene.

 

New Tech Tools for Activism web site

A group that I've been involved in has produced a new web site called Tech Tools for Activism to go alongside a booklet that we produced some time ago.  Tech Tools for Activism, or TTFA for short, aims to provide a portal (to use the old .com term) for social and community activists and grassroots compaigners to find out information about the alternatives to corporate IC

A very simple PHP link shortener / simplifier

There's lots of web sites that provide link shorteners (bit.ly, tinyurl.com, imc.li, tiny.booki.cc; to name but a few).  In the past I'd always used tinyurl.com, but then I started working on a project to provide a book of useful technical tips for political activists and grassroots campaigners and some people on the project were concerned about the security implications of third parties logging the redirects, having to have a named account in order to edit the links and the potential of the lin

Hacking a Indymedia Bristol Film Night

Last night was great, did a talk with Sy from Bristol Indymedia at the Cube Microplex on the subject of hacktivism. I showed the film En Busca de Hackers, which is beginning to look slightly hackneyed to my eyes though I think it's still a good example and introduction to the topic. It's notable that the story lines are slightly open-ended with no clear conclusion.

Using xhost with Ubuntu/Kubuntu Linux running gdm or kdm

I was just chatting to a work colleague about the ease and wonders of X11 as part of extolling the virtues of the Linux Terminal Server Project, when I said I'd show him how it works.

So I tried to do 'xhost +' on his machine and then ran xeyes from my machine giving his machine's IP address in the -display option, but it didn't work! Trawling the web, I found that Ubuntu had tightened things up:

http://davesource.com/Solutions/20070912.Ubuntu-xhost.html

Disabling autonumbering in OpenOffice.org Writer

Autonumbering can be useful, but it can also be annoying. Personally I know what I want to do and I don't need some smart-arse word processor telling me otherwise.

Running a network batch file under Windows XP without the publisher could not be verified error appearing.

At my work for People & Planet, I was setting up a new PC running Windows XP (shock, horror).

One of things that the new machine has to do is to run a DOS batch file over the network to set a few things up when a user logs in. However Windows XP displays a warning dialogue box telling you The publisher could not be verified. Are you sure you want to run this software?.

'An illegal choice has been detected..' when submitting a form.

I was getting the message An illegal choice has been detected. Please contact the site administrator. when submitting forms, and more annoyingly when doing an AJAX image upload on a form.

The problem is caused by the radio buttons that I have on my form.  They are set up without a default value but as required.  I believe the issue is that if a radio group dosen't have a value set, it doesn't existing within the DOM for the form in question, therefore leading to an error on the form checking.

How to display a custom message on node creation.

Some users on a Drupal site I have can create nodes which aren't published immediately; they need to go through a moderation process by the site admins.  The content type in question is set not to publish right away.  When I added a new node as a user all I got was the standard Drupal 'Content type Not another story again! has been created.' in a green box:


Access Control module prevents View of user's own unpublished content

I was pulling my hair out about some Drupal 7 Views weirdness!  For some reason my normal users weren't able to view their own unpublished content even though they had the permission View own unpublished content permission set under the Node section.  Users could view and edit the node if they went to the node directly, but it wasn't possible to show the node in a view, unless the user was an Administrator that is.  I had got to the point of installing and using the Views Unpublished module, but this seemed like an imperfect solution.

Syndicate content