Thursday, November 27, 2008 is nearing completion, anyone who want to index their photos on the site can create a username and import their flickr or picasa photos into our index where they will be analysed for colour information and then be searchable by colour. The url is:-
or, for the americans:-

I am just trying to finalse the rules surrounding copyright - users should only import photos that are licenced under creative commons or are their own photos.

Tuesday, November 11, 2008

Immersion - 4th December

I'll be doing a set at Immersion - Flea Pit, London. 4th Dec 2008, 7:30p

This is pixselpushers regular Tuesday night thing, always an impressive collection of artists performing there.

Thursday, July 24, 2008

IE DOM BUGS : innerHTML='' clears child elements.

I was using ELEMENT.innerHTML ='' to clear the children of a node, so i could layout the same elements after sorting an array - to my suprise when i tried to re-add the children in the correct sort order, they were all empty. Doing the same thing in firefox was ok. It turns out that this is a known bug in IE. So the moral of the story is, if you want to clear the children of a node but want to keep the children for use elsewhere then DON'T use ELEMENT.innerHTML=''. Instead do something like:-

while (ELEMENT.children.length>0) {

Here is more info about this little shocker

Monday, July 07, 2008

Dojo based style editor.

This is a fairly simple style editor I have built in DOJO for debugging style probs in IE. It works fairly well and uses the dojo.getComputedStyle method which retrieves the computed style for an HTML element, then it makes a property list of all the style attributes.

It just embeds with a single HTML tag, I usually position it past the right of the page so that it doesn't obscure anything else.

It runs with DOJO 1.1.0 but should be ok with 1.0 as well, as it uses fairly basic functions. You will also need to load the basic dojo library in the standard way(1) - I won't repeat it here. I have just been including the code with a JSP include - but really I should use the dojo packaging framework. Here is the component code(2)

So you need 3 things in this order:-
1. Dojo include
2. Component code include (just paste in or use [AS|JS|PH]P include)
3. The embed example below.

This is the embed example(3):-
<div id="styler" dojotype="robmunro.StyleEditor" style="position:absolute;left:1000px;top:0px;display:block">

Here is an explanation of the controls:-

textbox = input the id of an element(e.g."idElement") or some JS to select it (e.g. dojo.byId("idElement"))
undo = Undo last change (1 only) - may not work :(
get = Click on get and then the next click on any part of the page loads the clicked HTML element in the style editor.
show = Highlight the current element in the page.
parent = Highlights the parent element in the page - clicking loads it in the editor.
children = show a menu of the children of this element, clicking loads it and hovering highlights it in the page.
siblings = as for children.

The rest of the column shows the computed style for the page, the attributes are editable and if the edit was OK the text turns green, otherwise the attribute turns red, and the error is in the tool tip.

This has saved me loads of time debugging IE styles - which, as we all know, are quite buggy. So i hope it helps someone else out there as well.

I guess I should make it realizable and draggable as well. Maybe I will update it soon.

Here is a screenshot of it in action.

Wednesday, May 07, 2008

terminate called after throwing an instance of 'Gtk::IconThemeError'

I have been using my ubuntu setup at work lately and running vmware for windows apps - but after uninstalling kiba-dock (svn version) i got the above error and VMware wouldn't start, which gave me a bit of a heart attack as i really can't work without vmware.

I found the solution over here (translated) - when kiba dock was uninstalled it wiped out some of the icons inthe ./local/share/icons directory. So i was able to manually copy the icons from the vmware install directory to my local icons directory.
i.e. copy

this updated the missing icons and VMWare then started fine. I would say there are probably better solutions to the problem, but this got me put of trouble anyway. obviously, it's always a good idea to back up the target directory as well.

I seem to be missing icons left right and centre though, so i would not recommend uninstalling kiba-dock via 'make uninstall', and my desktop applets dont seem to take configuration any more. Will get to the bottom of it though ;)

Thursday, January 17, 2008

Facebook the biggest thing in tech?

After seeing that the top tech story on the BBC today is "Fans fight for Scrabulous future" i was a bit perplexed.

Is the main use of technology these days those time-wasting facebook apps. Surely there are much more relevant tech stories than the fact that some users can't waste 8 hours a day on Facebook. It is becoming the default easy news story, but really, how about something a bit more relevant. There was no 'Sun buys MySQL' or 'Oracle buys BEA' stories at all, both developments of that day being a lot more significant than whether some people can't play scrabble or not.